/* 
 * 体育足球资讯网站 - 核心样式表
 * 移动端优先设计 | 2026年SEO优化
 * 配色方案：深蓝 #1a365d | 橙色 #f97316 | 浅灰 #f8fafc
 */

/* CSS Reset 和基础设置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #1a365d;
    --primary-orange: #f97316;
    --secondary-blue: #2563eb;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-orange);
}

/* 容器布局 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f172a 100%);
    padding: 12px 0;
    position: relative;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.site-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

/* 主导航菜单 */
.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
}

.nav-list li a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-list li a:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.nav-list li a.active {
    background: var(--primary-orange);
    color: var(--white);
}

/* CTA按钮 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ea580c 100%);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

/* Hero横幅区域 */
.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,54,93,0.85) 0%, rgba(15,23,42,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 16px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-list li::after {
    content: "›";
    margin-left: 8px;
    color: var(--gray-text);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--gray-text);
}

.breadcrumb-list a:hover {
    color: var(--primary-orange);
}

/* 内容区块 */
.content-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-text);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 作者信息 */
.author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 32px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--gray-text);
}

/* 用户评论 */
.review-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-text);
}

.reviewer-location {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 1rem;
}

.review-content {
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* FAQ手风琴 */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary-orange);
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--gray-text);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 支付方式区块 */
.payment-section {
    background: var(--white);
    padding: 40px 0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

.payment-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
}

/* 牌照信息 */
.license-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f172a 100%);
    padding: 40px 0;
    color: var(--white);
}

.license-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.license-badge {
    width: 150px;
    height: auto;
}

.license-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.license-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 客户支持 */
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.support-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.support-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ea580c 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.support-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 6px;
}

.support-info p {
    font-size: 0.875rem;
    color: var(--gray-text);
}

/* 页脚 */
.site-footer {
    background: #0f172a;
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #dc2626;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-orange);
}

/* 文章内容样式 */
.article-content {
    background: var(--white);
    padding: 32px 20px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--light-bg);
    border-left: 4px solid var(--primary-orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-text);
}

/* 标签页面 */
.tags-section {
    padding: 40px 0;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-item {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

/* APP下载页面 */
.app-download-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
}

.app-feature {
    padding: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}

.app-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.app-feature p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 32px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 响应式媒体查询 */
@media (min-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-list {
        justify-content: flex-end;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .license-content {
        flex-direction: row;
        text-align: left;
    }
    
    .app-features {
        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, #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;
        line-height: 1.5;
    }
}
