/* ============================================
   球友会 qqfddv.cn - 全新原创样式
   配色：绿色系 + 金色点缀 + 白色背景
   布局：左右分栏 + 卡片网格 + 横向滚动
   ============================================ */

:root {
    --primary: #1b8c3d;
    --primary-dark: #146b2e;
    --primary-light: #e8f5e9;
    --accent: #ffc107;
    --accent-dark: #ff8f00;
    --bg-main: #f5f7fa;
    --bg-white: #ffffff;
    --bg-dark: #1a2332;
    --text-main: #2c3e50;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --border: #e0e6ed;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(27,140,61,0.15);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ===== Header - 横向导航+搜索 ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1240px;
    margin: 0 auto;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo img { height: 38px; width: auto; }
.site-logo h1 {
    font-size: 22px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}
.site-logo h1 span { color: var(--accent-dark); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    background: var(--primary);
    color: var(--text-white);
}

/* ===== Search Bar ===== */
.search-bar {
    background: var(--primary-light);
    padding: 10px 20px;
}
.search-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-bar input {
    flex: 1;
    padding: 10px 18px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,193,7,0.2); }
.search-bar button {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--accent-dark); }
.search-hot { font-size: 13px; color: var(--text-light); }
.search-hot a { margin-left: 8px; color: var(--primary); font-weight: 500; }

/* ===== Hero Banner - 左文右图 ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2ecc71 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-text { color: var(--text-white); }
.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.hero-text h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}
.hero-text p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}
.hero-btn:hover { background: var(--text-white); color: var(--primary); transform: translateY(-2px); }
.hero-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.hero-live-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e53935;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

/* ===== Section Common ===== */
.section { padding: 50px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    padding-left: 16px;
}
.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}
.section-header .more-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* ===== Video Cards - 横向网格 ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.video-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #1a2332;
    overflow: hidden;
}
.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(27,140,61,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.video-play::after {
    content: '';
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent white;
    margin-left: 3px;
}
.video-card:hover .video-play { opacity: 1; }
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}
.video-info { padding: 14px; }
.video-info h3 { font-size: 14px; font-weight: 600; line-height: 1.5; 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: 12px; color: var(--text-light); }
.video-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}

/* ===== Match Schedule - 表格样式 ===== */
.match-section { background: var(--bg-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.match-date {
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}
.match-list { list-style: none; }
.match-item {
    display: grid;
    grid-template-columns: 60px 1fr 100px 40px 100px 80px 60px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.match-item:last-child { border-bottom: none; }
.match-time { font-size: 14px; font-weight: 600; color: var(--text-main); }
.match-event { font-size: 12px; color: var(--text-light); }
.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}
.match-team img { width: 22px; height: 16px; border-radius: 2px; }
.match-vs { text-align: center; font-weight: 700; color: var(--accent-dark); }
.match-score { text-align: center; font-weight: 700; font-size: 15px; color: var(--primary); }
.match-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    text-align: center;
    font-weight: 600;
}
.status-live { background: #e53935; color: white; }
.status-done { background: #e0e0e0; color: #666; }
.status-upcoming { background: var(--primary-light); color: var(--primary); }

/* ===== Teams Grid ===== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.team-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.team-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border: 2px solid var(--primary); }
.team-item img { width: 48px; height: 36px; margin: 0 auto 10px; border-radius: 3px; }
.team-item .team-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.team-item .team-group { font-size: 12px; color: var(--text-light); }

/* ===== AI Section - 三列卡片 ===== */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ai-card {
    background: linear-gradient(145deg, var(--bg-white), var(--primary-light));
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.ai-icon { margin-bottom: 14px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; margin-left: auto; margin-right: auto; }
.ai-icon svg { width: 28px; height: 28px; }
.ai-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--primary-dark); }
.ai-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== Community - 两列布局 ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.community-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.community-card:hover { box-shadow: var(--shadow-hover); }
.community-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--primary-light); border-radius: 50%; }
.community-icon svg { width: 22px; height: 22px; }
.community-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.community-card p { font-size: 13px; color: var(--text-light); }

/* ===== Experts ===== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.expert-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.expert-card img { width: 100%; height: 200px; object-fit: cover; }
.expert-body { padding: 20px; }
.expert-body h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.expert-body .role { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.expert-body p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.expert-btns a {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.btn-primary { background: var(--primary); color: white; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); }

/* ===== Reviews ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.review-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-light); }
.review-stars { font-size: 16px; margin-bottom: 8px; }
.review-stars .star.filled { color: var(--accent); }
.review-stars .star.empty { color: #ddd; }
.review-text { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; font-size: 20px; color: var(--primary); font-weight: 700; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    display: none;
}
.faq-item.active .faq-answer { display: block; }

/* ===== Share ===== */
.share-section {
    background: var(--primary-light);
    padding: 30px 0;
    text-align: center;
}
.share-btns { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.share-btns a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}
.share-btns a:hover { background: var(--accent-dark); transform: scale(1.1); }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-brand h3 { color: var(--text-white); font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; opacity: 0.8; }
.footer-col h5 { color: var(--text-white); font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.7;
}
.footer-qr { display: flex; gap: 20px; }
.footer-qr img { width: 80px; height: 80px; border-radius: 4px; }
.footer-qr span { display: block; text-align: center; font-size: 11px; margin-top: 4px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== Inner Page ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 0;
    color: var(--text-white);
}
.page-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 15px; opacity: 0.9; }
.page-content { padding: 40px 0; }
.page-content .intro { font-size: 15px; line-height: 1.9; color: var(--text-main); margin-bottom: 30px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .teams-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 10px; position: relative; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; white-space: nowrap; padding: 8px 0; border-top: 1px solid var(--border); }
    .main-nav a { font-size: 13px; padding: 4px 10px; display: inline-block; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .teams-grid { grid-template-columns: repeat(3, 1fr); }
    .ai-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    .expert-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .match-item { grid-template-columns: 50px 1fr 80px 30px 80px 60px 50px; font-size: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .teams-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h2 { font-size: 22px; }
    .hero-text p { font-size: 13px; }
    .site-logo h1 { font-size: 18px; }
    .section-header h2 { font-size: 18px; }
    .search-bar input { font-size: 14px; }
    .match-item { grid-template-columns: 40px 60px 70px 24px 70px 50px 40px; font-size: 11px; gap: 4px; }
    .match-team img { width: 16px; height: 12px; }
    .community-grid { grid-template-columns: 1fr; }
    .ai-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-qr { justify-content: center; }
}
