/* 世界杯直播 - mixin8.cn 全站样式 */
/* 原创配色方案：深海蓝 #0a1628 | 皇家金 #d4a843 | 草坪绿 #1a8c3a | 纯白 #ffffff | 浅灰 #f4f6f9 */

:root {
    --primary-dark: #0a1628;
    --primary-blue: #0d2240;
    --royal-gold: #d4a843;
    --grass-green: #1a8c3a;
    --light-green: #2ecc71;
    --pure-white: #ffffff;
    --light-gray: #f4f6f9;
    --medium-gray: #e8edf3;
    --text-dark: #1a1a2e;
    --text-light: #6b7b8d;
    --accent-red: #e74c3c;
    --accent-orange: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--light-gray);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--royal-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.site-logo h1 {
    color: var(--royal-gold);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.site-logo h1 span {
    color: var(--pure-white);
    font-size: 0.75rem;
    display: block;
    font-weight: 400;
    letter-spacing: 0;
}

/* 导航菜单 */
.main-nav {
    background: rgba(13, 34, 64, 0.95);
    border-top: 1px solid rgba(212, 168, 67, 0.2);
}

.main-nav ul {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: block;
    padding: 14px 22px;
    color: var(--pure-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--royal-gold);
    border-bottom-color: var(--royal-gold);
    background: rgba(212, 168, 67, 0.08);
}

/* 搜索框 */
.search-bar {
    background: var(--primary-blue);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    max-width: 600px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.search-form input {
    flex: 1;
    padding: 12px 24px;
    border: none;
    font-size: 0.95rem;
    outline: none;
    background: var(--pure-white);
}

.search-form button {
    padding: 12px 28px;
    background: var(--royal-gold);
    color: var(--pure-white);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #c49a38;
}

/* Hero Banner */
.hero-section {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.4) 0%, rgba(10, 22, 40, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content h2 {
    color: var(--royal-gold);
    font-size: 2.8rem;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    color: var(--pure-white);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 24px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--royal-gold);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.hero-btn:hover {
    background: var(--pure-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 通用标题区块 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--royal-gold);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 16px;
}

/* 内容区块 */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: var(--pure-white);
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.video-card .video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-card .video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 168, 67, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-card .play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--pure-white);
    margin-left: 4px;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-card .video-info {
    padding: 16px 20px;
}

.video-card .video-info h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .video-meta {
    display: flex;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.82rem;
}

.video-card .video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(212, 168, 67, 0.15);
    color: var(--royal-gold);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 比赛赛程 */
.match-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.match-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.match-card:hover {
    border-color: var(--royal-gold);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.15);
}

.match-team {
    text-align: center;
    flex: 1;
}

.match-team .flag {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.match-team .flag img {
    width: 36px;
    height: 27px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    object-fit: cover;
    display: inline-block;
}

.match-team .team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.match-vs {
    padding: 0 20px;
    text-align: center;
}

.match-vs .score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.match-vs .match-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.match-vs .match-status {
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-red);
    color: var(--pure-white);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
}

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.expert-card .expert-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--royal-gold), var(--grass-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--pure-white);
}

.expert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.expert-card .expert-role {
    color: var(--royal-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.expert-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}

.expert-card .expert-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: var(--primary-dark);
    color: var(--royal-gold);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.expert-card .expert-btn:hover {
    background: var(--royal-gold);
    color: var(--primary-dark);
}

/* FAQ区块 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--pure-white);
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
}

.faq-item .faq-question {
    padding: 18px 24px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-item .faq-question:hover {
    background: var(--light-gray);
}

.faq-item .faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--royal-gold);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item .faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 500px;
}

/* 用户评论 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid var(--medium-gray);
}

.review-card .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-card .review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--royal-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-weight: 700;
    font-size: 1rem;
}

.review-card .review-name {
    font-weight: 600;
    color: var(--text-dark);
}

.review-card .review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-card .review-stars {
    color: var(--royal-gold);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review-card .review-text {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d1f38 100%);
    color: var(--pure-white);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--royal-gold);
    font-size: 1.1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--royal-gold);
}

.footer-col p,
.footer-col li {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 2;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a:hover {
    color: var(--royal-gold);
    padding-left: 4px;
}

.footer-col .qr-code {
    width: 120px;
    height: 120px;
    background: var(--pure-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom .update-time {
    margin-top: 6px;
    color: rgba(255,255,255,0.4);
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.88rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--royal-gold);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

/* 内页Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    padding: 60px 0;
    text-align: center;
}

.page-banner h2 {
    color: var(--royal-gold);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 内页内容 */
.page-content {
    padding: 40px 0 60px;
}

.page-content .intro-text {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-left: 4px solid var(--royal-gold);
}

.page-content .intro-text p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 2;
}

/* 社交分享 */
.share-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pure-white);
    transition: all 0.3s ease;
}

.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00a1d6; }

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 合作品牌 */
.brand-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.brand-wall .brand-item {
    width: 140px;
    height: 70px;
    background: var(--pure-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--medium-gray);
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.brand-wall .brand-item:hover {
    border-color: var(--royal-gold);
    color: var(--royal-gold);
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid var(--medium-gray);
}

.contact-card .contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--royal-gold), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--pure-white);
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li a {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .hero-section {
        height: 360px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .match-schedule {
        grid-template-columns: 1fr;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .match-card {
        padding: 16px;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-form button {
        border-radius: 0 0 12px 12px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--medium-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--royal-gold);
    color: var(--pure-white);
}

/* 统计数据 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--pure-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.stat-item .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--royal-gold);
    margin-bottom: 6px;
}

.stat-item .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 内页特殊布局 */
.list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    gap: 20px;
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.list-item .list-thumb {
    width: 240px;
    min-height: 160px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.list-item .list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item .list-content {
    padding: 20px;
    flex: 1;
}

.list-item .list-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.list-item .list-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
    }
    
    .list-item .list-thumb {
        width: 100%;
        min-height: 180px;
    }
}

/* 网格布局变体 */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* 瀑布流布局 */
.masonry-grid {
    columns: 3;
    column-gap: 20px;
}

.masonry-grid .masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .masonry-grid {
        columns: 1;
    }
}
