/* 
 * 体育赛事网站主样式表
 * 移动端优先设计 - 独特配色方案
 * 2026年SEO优化版本
 */

/* CSS变量定义 - 独特配色 */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #159895;
    --accent-color: #57c5b6;
    --dark-bg: #0c2d48;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f1f5f9;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #159895 50%, #57c5b6 100%);
    --gradient-dark: linear-gradient(180deg, #0c2d48 0%, #1a5f7a 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    line-height: 1.75;
    color: var(--text-primary);
    background-color: var(--light-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部导航 - 非sticky */
.site-header {
    background: var(--gradient-dark);
    padding: 0.75rem 0;
    position: relative;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrap img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.logo-wrap h1 {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 700;
}

/* 主导航 */
.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-list li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-light);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255,255,255,0.15);
    color: var(--accent-color);
}

/* CTA按钮 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.cta-btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.cta-btn-secondary:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
}

/* Hero区域 */
.hero-section {
    position: relative;
    background: var(--gradient-dark);
    padding: 3rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
}

.hero-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-secondary);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

/* 内容区块 */
.content-section {
    padding: 2.5rem 0;
}

.content-section:nth-child(even) {
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* 比赛卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.game-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.game-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.game-card:hover .game-card-img img {
    transform: scale(1.05);
}

.game-card-body {
    padding: 1rem;
}

.game-card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.game-card-body p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 特色区块 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 评论区块 */
.reviews-section {
    background: var(--light-bg);
}

.reviews-grid {
    display: grid;
    gap: 1rem;
}

.review-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
}

.review-meta h4 {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.review-meta span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.review-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.5rem;
}

.review-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--warning-color);
}

.review-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.review-date {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* FAQ区块 */
.faq-section {
    background: #fff;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(26,95,122,0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1rem;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 支付方式 */
.payment-section {
    background: var(--light-bg);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.payment-item {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.payment-item img {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}

.payment-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 牌照区块 */
.license-section {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
}

.license-content {
    text-align: center;
}

.license-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-badge img {
    width: 48px;
    height: 48px;
}

.license-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.license-content p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 页脚 */
.site-footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 2.5rem 0 1rem;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-color);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-payments img {
    height: 28px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-payments img:hover {
    opacity: 1;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239,68,68,0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.age-restriction span {
    font-size: 0.875rem;
    color: #fca5a5;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* 作者信息 */
.author-box {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info .title {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 标签页面 */
.tags-section {
    padding: 2rem 0;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.tag-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 内容文章 */
.article-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-content h2 {
    font-size: 1.375rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 1.25rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

/* 负责任体育 */
.responsible-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.responsible-section h3 {
    color: var(--warning-color);
    margin-bottom: 0.75rem;
}

.responsible-section p {
    color: #92400e;
    font-size: 0.875rem;
}

.responsible-section a {
    color: #b45309;
    text-decoration: underline;
}

/* APP下载页面 */
.app-section {
    text-align: center;
    padding: 3rem 0;
}

.app-preview {
    max-width: 280px;
    margin: 0 auto 1.5rem;
}

.app-preview img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--dark-bg);
    color: #fff;
    border-radius: var(--radius-lg);
    min-width: 200px;
    transition: all var(--transition-fast);
}

.app-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.app-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.app-btn-text {
    text-align: left;
}

.app-btn-text small {
    display: block;
    font-size: 0.625rem;
    opacity: 0.7;
}

.app-btn-text span {
    font-size: 1rem;
    font-weight: 600;
}

/* 响应式设计 - 平板 */
@media (min-width: 640px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-content h2 {
        font-size: 2.75rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .article-content {
        padding: 2.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 懒加载图片占位 */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 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 {
        font-size: 12pt;
        color: #000;
    }
}
