/* 
 * 体育足球资讯网站样式表
 * 独特配色方案：深蓝 #0d1b2a + 橙色 #f97316 + 青色 #06b6d4
 * 移动优先响应式设计
 */

/* CSS Reset 和基础样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-dark: #0d1b2a;
    --primary-blue: #1b3a5f;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --bg-light: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-orange);
}

/* 容器布局 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 42px;
    width: auto;
}

.site-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* 主导航 */
.main-nav {
    display: none;
    width: 100%;
    padding-top: 16px;
}

.main-nav.active {
    display: block;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
        width: auto;
        padding-top: 0;
    }
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 992px) {
    .nav-list {
        flex-direction: row;
        gap: 4px;
    }
}

.nav-list a {
    display: block;
    padding: 10px 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
}

/* CTA按钮 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-light) !important;
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(27, 58, 95, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 48px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
        max-width: 65%;
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 16px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.breadcrumb-list li::after {
    content: "›";
    margin-left: 8px;
    color: var(--border-color);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-dark);
}

.breadcrumb-list a:hover {
    color: var(--accent-orange);
}

/* 内容区块 */
.content-section {
    padding: 48px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    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-cyan));
    border-radius: 2px;
}

.section-desc {
    font-size: 1rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .card-grid.four-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 比赛卡片 */
.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.match-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.match-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.match-card:hover .match-card-img img {
    transform: scale(1.05);
}

.match-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--accent-orange);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.match-card-body {
    padding: 20px;
}

.match-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.match-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.match-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.match-card-link:hover {
    color: var(--accent-orange);
}

/* 特色区块 */
.feature-block {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .feature-block {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-block.reverse {
        direction: rtl;
    }
    
    .feature-block.reverse > * {
        direction: ltr;
    }
}

.feature-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--accent-cyan);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

/* 作者信息卡片 */
.author-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 576px) {
    .author-card {
        flex-direction: row;
        align-items: center;
    }
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--accent-cyan);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.author-info .title {
    font-size: 0.875rem;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.author-info p {
    font-size: 0.9rem;
    color: #64748b;
}

/* 用户评论 */
.review-card {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.review-meta h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.review-meta .location {
    font-size: 0.8rem;
    color: #94a3b8;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-stars span {
    color: #fbbf24;
    font-size: 1rem;
}

.review-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* FAQ手风琴 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-orange);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 支付方式 */
.payment-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.payment-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.payment-item h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.payment-item p {
    font-size: 0.8rem;
    color: #64748b;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f2744 100%);
    color: var(--text-light);
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-orange);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.6);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-badges img {
    height: 40px;
    width: auto;
}

/* 标签页面 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* 内页样式 */
.page-header {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

.page-desc {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.85);
    max-width: 600px;
}

/* 文章内容 */
.article-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .article-content {
        padding: 48px;
    }
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 32px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--accent-orange);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: #475569;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    color: #475569;
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

/* 侧边栏 */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-cyan);
}

/* 响应式工具类 */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 背景装饰 */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-btn {
        display: none;
    }
}
