/* 足球直播 - gvzuobu.cn 全站样式 */
/* 原创配色：深墨绿 #0a1f1a | 翡翠绿 #1db954 | 金色 #d4af37 | 暗金 #b8860b | 浅灰 #f0f2f5 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a1f1a;
    --primary-green: #1db954;
    --primary-gold: #d4af37;
    --dark-gold: #b8860b;
    --light-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6b7280;
    --gradient-green: linear-gradient(135deg, #0a1f1a 0%, #1a3a2a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.site-header {
    background: var(--gradient-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.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: 42px;
    height: 42px;
    border-radius: 50%;
}

.logo-wrap h1 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
}

.logo-wrap h1 span {
    color: var(--primary-gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: #e0e0e0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(29, 185, 84, 0.2);
    color: var(--primary-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 搜索框 */
.search-bar {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    outline: none;
}

.search-form button {
    background: var(--gradient-gold);
    border: none;
    padding: 12px 24px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-form button:hover {
    opacity: 0.85;
}

/* Hero区域 */
.hero-section {
    position: relative;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background: var(--gradient-gold);
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.6);
    color: #fff;
}

/* 通用板块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-title h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1rem;
}

.section-title .accent {
    color: var(--primary-green);
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-card .thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-card .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.video-card:hover .thumb img {
    transform: scale(1.05);
}

.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(29, 185, 84, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-card .play-btn::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.video-card .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-card .card-body {
    padding: 14px 16px;
}

.video-card .card-body h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.video-card .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 比赛赛程表 */
.match-schedule {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.match-item:last-child {
    border-bottom: none;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 35%;
}

.match-team.right {
    flex-direction: row-reverse;
    text-align: right;
}

.match-team img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.match-team span {
    font-weight: 600;
    font-size: 0.95rem;
}

.match-center {
    text-align: center;
    width: 30%;
}

.match-score {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
}

.match-time {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 2px;
}

.match-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.match-status.live {
    background: #fee2e2;
    color: #dc2626;
}

.match-status.upcoming {
    background: #dbeafe;
    color: #2563eb;
}

.match-status.finished {
    background: #d1fae5;
    color: #059669;
}

/* FAQ区域 */
.faq-section {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary-green);
    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.4s ease, padding 0.4s ease;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 300px;
}

/* 用户评论 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.review-card .stars {
    color: var(--primary-gold);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.review-card .review-text {
    color: var(--text-gray);
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.7;
}

.review-card .reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-card .reviewer .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.review-card .reviewer .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-card .reviewer .date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* 专家展示 */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.expert-card:hover {
    transform: translateY(-4px);
}

.expert-card .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;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.expert-card h4 {
    margin-bottom: 6px;
}

.expert-card .role {
    color: var(--primary-green);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.expert-card .expert-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.expert-card .btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-sm {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    transition: all 0.3s;
}

.btn-sm:hover {
    background: var(--primary-green);
    color: #fff;
}

.btn-sm.filled {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

/* 页脚 */
.site-footer {
    background: var(--gradient-green);
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    line-height: 2;
    color: #aaa;
}

.footer-col a:hover {
    color: var(--primary-green);
}

.footer-col .qr-codes {
    display: flex;
    gap: 12px;
}

.footer-col .qr-codes img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom .social-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-bottom .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    transition: all 0.3s;
}

.footer-bottom .social-links a:hover {
    background: var(--primary-green);
    color: #fff;
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-green);
}

.breadcrumb span {
    margin: 0 8px;
}

/* 内页通用 */
.page-hero {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.page-hero .page-title {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.page-hero .page-title h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.page-hero .page-title p {
    opacity: 0.85;
}

.content-section {
    padding: 50px 0;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
}

/* 合作品牌墙 */
.brand-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
}

.brand-wall .brand-item {
    width: 120px;
    height: 60px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.contact-card h4 {
    margin-bottom: 12px;
    color: var(--primary-green);
}

/* 内页布局变体 */
.layout-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.layout-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.layout-masonry {
    columns: 3;
    column-gap: 20px;
}

.layout-masonry .masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-green);
}

/* 列表布局 */
.list-layout .list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.list-layout .list-item:hover {
    transform: translateX(4px);
}

.list-layout .list-item .item-thumb {
    width: 200px;
    min-height: 130px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.list-layout .list-item .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-layout .list-item .item-info {
    flex: 1;
}

.list-layout .list-item .item-info h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.list-layout .list-item .item-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 卡片网格 - 内页 */
.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-card .card-img {
    height: 160px;
    overflow: hidden;
}

.info-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.info-card:hover .card-img img {
    transform: scale(1.05);
}

.info-card .card-content {
    padding: 16px;
}

.info-card .card-content h4 {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-card .card-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 统计数字 */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 12px;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        height: 360px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .match-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .match-team {
        width: 100%;
        justify-content: center;
    }
    
    .match-team.right {
        flex-direction: row;
    }
    
    .match-center {
        width: 100%;
    }
    
    .layout-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .layout-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .layout-masonry {
        columns: 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
    }

    .list-layout .list-item {
        flex-direction: column;
    }

    .list-layout .list-item .item-thumb {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 懒加载占位 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* How-To指南 */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step .step-content h4 {
    margin-bottom: 4px;
}

.howto-step .step-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00a1d6; }

/* 国旗图标用CSS模拟 */
.flag-icon {
    display: inline-block;
    width: 28px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    vertical-align: middle;
    object-fit: cover;
}
