/* 足球直播 - bpnjk.cn 全局样式 */
/* 设计风格：运动场馆沉浸式 Stadium Atmosphere */

:root {
    --primary: #1B5E20;
    --primary-light: #2E7D32;
    --accent: #FF6F00;
    --accent-light: #FF8F00;
    --neon-green: #00E676;
    --bg-dark: #0D1117;
    --bg-card: #161B22;
    --bg-card-hover: #1C2128;
    --text-white: #F0F6FC;
    --text-gray: #8B949E;
    --text-light: #C9D1D9;
    --border-color: #21262D;
    --red-live: #E53935;
    --gold: #FFD700;
    --shadow-glow: 0 0 20px rgba(0, 230, 118, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--neon-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.site-header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.site-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--neon-green);
    background: rgba(0, 230, 118, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 搜索框 */
.search-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 16px;
    width: 100%;
    max-width: 540px;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--neon-green);
    box-shadow: var(--shadow-glow);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    padding: 6px 8px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-gray);
}

.search-box button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-light);
}

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,17,23,0.3) 0%, rgba(13,17,23,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content h1 .highlight {
    color: var(--neon-green);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 24px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--neon-green);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
}

/* 直播状态标签 */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red-live);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 板块标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-title .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.section-title .more-link {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* 视频卡片 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 230, 118, 0.3);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.play-btn svg {
    width: 48px;
    height: 48px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.video-info {
    padding: 14px;
}

.video-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 比分板 */
.score-board {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.score-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.score-match:last-child {
    border-bottom: none;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.team-info img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.team-info span {
    font-size: 0.9rem;
    font-weight: 500;
}

.score-center {
    text-align: center;
    min-width: 80px;
}

.score-center .score {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--neon-green);
}

.score-center .match-time {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.team-right {
    justify-content: flex-end;
}

/* 专家卡片 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.expert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.expert-card .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.expert-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.expert-card .role {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.expert-card p {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.expert-card .btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.btn-outline:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-light);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--neon-green);
}

.faq-item.active .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    padding: 0 20px 16px;
    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: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.review-card .stars {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review-card .review-text {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.review-card .reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-card .reviewer .avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.review-card .reviewer-info span {
    display: block;
}

.review-card .reviewer-info .name {
    font-size: 0.85rem;
    font-weight: 600;
}

.review-card .reviewer-info .date {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* 页脚 */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text-white);
}

.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: block;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--neon-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-gray);
}

.footer-qr {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 16px 0;
}

.footer-qr .qr-item {
    text-align: center;
}

.footer-qr .qr-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.footer-qr .qr-item span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* 社交分享 */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.share-bar span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.share-bar a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.share-bar a:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(0, 230, 118, 0.08);
}

/* 面包屑 */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.82rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--neon-green);
}

.breadcrumb span {
    margin: 0 6px;
}

/* 内页布局 */
.page-section {
    padding: 48px 0;
}

.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.page-hero .hero-bg {
    filter: brightness(0.35);
}

.page-hero .hero-content h1 {
    font-size: 2.2rem;
}

/* 网格布局变体 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--neon-green);
}

/* 响应式 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expert-grid {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .score-match {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* 懒加载占位 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* 世界杯球队旗帜 */
.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    object-fit: cover;
}

.community-card .flag-img {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 社区功能卡片 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.community-card:hover {
    border-color: var(--neon-green);
    box-shadow: var(--shadow-glow);
}

.community-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-card .icon svg {
    width: 32px;
    height: 32px;
    fill: var(--neon-green);
}

.community-card h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.community-card p {
    font-size: 0.78rem;
    color: var(--text-gray);
}

/* AI赋能模块 */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.ai-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(27, 94, 32, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.25s ease;
}

.ai-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.ai-card .ai-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.ai-card .ai-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--neon-green);
}

.ai-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.ai-card p {
    font-size: 0.82rem;
    color: var(--text-gray);
}
