/* 
 * 足球电竞竞猜网站 - 全新设计样式
 * 配色方案：深蓝 #0d1b2a + 橙色 #ff6b35 + 金色 #f7c948
 * 移动端优先响应式设计
 */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-dark: #0d1b2a;
    --primary-blue: #1b3a5f;
    --accent-orange: #ff6b35;
    --accent-gold: #f7c948;
    --text-light: #e8e8e8;
    --text-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0d1b2a 0%, #1b3a5f 50%, #0d1b2a 100%);
    --card-bg: rgba(27, 58, 95, 0.6);
    --border-glow: rgba(255, 107, 53, 0.3);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-gold);
}

/* 容器布局 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 顶部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.98) 0%, rgba(13, 27, 42, 0.85) 100%);
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--border-glow);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.site-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    display: none;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* 主导航 */
.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--primary-dark);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.main-nav.active {
    display: flex;
}

.main-nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--accent-orange);
    color: var(--text-white);
}

.main-nav a:last-child {
    border-bottom: none;
}

/* CTA按钮 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e55a2b 100%);
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
    color: var(--text-white);
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
    color: var(--accent-orange);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item::after {
    content: '›';
    color: var(--accent-orange);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--accent-gold);
}

/* 内容区块 */
.section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    border-radius: 2px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-soft);
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.375rem 0.875rem;
    background: var(--accent-orange);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 比分卡片 */
.score-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--accent-gold);
}

.score-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.team {
    text-align: center;
    flex: 1;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 0.5rem;
}

.score-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
    min-width: 80px;
    text-align: center;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #e53935;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 赔率表格 */
.odds-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.odds-table th,
.odds-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.odds-table th {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.875rem;
}

.odds-table td {
    color: var(--text-light);
}

.odds-value {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--primary-dark);
    border-radius: 6px;
    font-weight: 600;
    color: var(--accent-orange);
    transition: var(--transition-smooth);
}

.odds-value:hover {
    background: var(--accent-orange);
    color: var(--text-white);
}

/* 作者信息卡 */
.author-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-orange);
}

.author-info h4 {
    font-size: 1.125rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.credential-tag {
    padding: 0.25rem 0.625rem;
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-orange);
    font-size: 0.75rem;
    border-radius: 4px;
}

/* 用户评论 */
.review-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-white);
    font-size: 1.125rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-white);
}

.reviewer-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--accent-gold);
    font-size: 1rem;
}

.star.empty {
    color: rgba(255, 255, 255, 0.3);
}

.review-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.review-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* FAQ手风琴 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-orange);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* 支付方式 */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition-smooth);
}

.payment-item:hover {
    border-color: var(--accent-orange);
}

.payment-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.payment-item span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 牌照区域 */
.license-section {
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.8) 0%, rgba(13, 27, 42, 0.9) 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(247, 201, 72, 0.3);
}

.license-badge {
    max-width: 180px;
    margin: 0 auto 1.5rem;
}

.license-info h3 {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.license-number {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* 客服支持 */
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.support-text h4 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.support-text p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #050a10 100%);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-orange);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(229, 57, 53, 0.2);
    border: 1px solid #e53935;
    border-radius: 8px;
    color: #e53935;
    font-weight: 600;
    font-size: 0.875rem;
}

.age-restriction img {
    width: 24px;
    height: 24px;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}

/* 内容文章样式 */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-orange);
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-left: 4px solid var(--accent-orange);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* 响应式断点 */
@media (min-width: 480px) {
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .site-logo span {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .main-nav {
        display: flex;
        flex-direction: row;
        width: auto;
        background: transparent;
        margin-top: 0;
        gap: 0.25rem;
    }
    
    .main-nav a {
        padding: 0.625rem 1rem;
        border-bottom: none;
        border-radius: 6px;
        font-size: 0.9rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-card {
        flex-direction: row;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .card-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 懒加载图片占位 */
img[loading="lazy"] {
    background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255, 255, 255, 0.1) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
