/* 足球直播 - syhafll.cn 全站样式 */
/* 设计风格：运动能量爆发 - 深绿+金黄+深灰 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #0D4F2B;
    --primary-dark: #1A1A2E;
    --accent-gold: #F5A623;
    --accent-light: #FFD700;
    --text-white: #FFFFFF;
    --text-light: #E8E8E8;
    --text-gray: #AAAAAA;
    --bg-card: #1E2A3A;
    --bg-section: #0F1923;
    --border-color: #2A3A4A;
    --gradient-green: linear-gradient(135deg, #0D4F2B, #1A7A4C);
    --gradient-dark: linear-gradient(180deg, #0F1923, #1A1A2E);
    --shadow-gold: 0 4px 20px rgba(245, 166, 35, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.site-header {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-wrap h1 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-nav a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 搜索框 */
.search-bar {
    background: var(--bg-section);
    padding: 15px 0;
    margin-top: 65px;
    border-bottom: 1px solid var(--border-color);
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid var(--primary-green);
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-card);
    border: none;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
}

.search-form input::placeholder {
    color: var(--text-gray);
}

.search-form button {
    padding: 12px 28px;
    background: var(--gradient-green);
    border: none;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-form button:hover {
    opacity: 0.9;
}

/* 英雄区 */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 40px;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content h2 span {
    color: var(--accent-gold);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 6px;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--primary-dark);
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* 通用板块 */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-section);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--accent-gold);
}

.section-title p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-thumb::after {
    opacity: 1;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(245, 166, 35, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
}

.play-btn::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--primary-dark);
    margin-left: 4px;
}

.video-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 2;
}

.video-info {
    padding: 16px;
}

.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 12px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 比赛赛程 */
.match-list {
    display: grid;
    gap: 16px;
}

.match-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.match-card:hover {
    border-color: var(--accent-gold);
}

.match-team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.match-team img {
    width: 40px;
    height: 30px;
    object-fit: contain;
}

.match-team span {
    font-weight: 600;
    font-size: 1rem;
}

.match-score {
    text-align: center;
    min-width: 100px;
}

.match-score .score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.match-score .time {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.match-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-live {
    background: #E53935;
    color: white;
}

.status-upcoming {
    background: var(--primary-green);
    color: white;
}

.status-finished {
    background: #555;
    color: #ccc;
}

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.expert-card:hover {
    transform: translateY(-4px);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-gold);
}

.expert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.expert-card .role {
    color: var(--accent-gold);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.expert-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-gold);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 300px;
}

/* 用户评论 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-gold);
}

.review-name {
    font-weight: 600;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 社区模块 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.community-item {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, transform 0.3s;
}

.community-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.community-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-icon svg {
    stroke: var(--accent-gold);
}

.community-item h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.community-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 页脚 */
.site-footer {
    background: #0A0E14;
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-qr {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.footer-qr-item {
    text-align: center;
}

.footer-qr-item .qr-placeholder {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.footer-qr-item span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* 分享按钮 */
.share-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: border-color 0.3s;
}

.share-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* 面包屑 */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 79, 43, 0.3);
    border: 1px solid var(--primary-green);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 4px;
}

/* 内页布局 */
.page-hero {
    padding: 100px 0 50px;
    background: var(--bg-section);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero h1 span {
    color: var(--accent-gold);
}

.page-hero p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 40px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 12px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .match-team {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .share-bar {
        flex-wrap: wrap;
    }

    .search-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .expert-grid {
        grid-template-columns: 1fr;
    }
}

/* 懒加载占位 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 世界杯球队展示 */
.worldcup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.team-badge {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

.team-badge:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

.team-badge .flag {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-badge .flag img {
    width: 40px;
    height: auto;
    border-radius: 2px;
}

.team-badge span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* AI赋能模块 */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ai-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.ai-card h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.ai-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 合作品牌墙 */
.brand-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.brand-item {
    width: 120px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 600;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.contact-card h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}
