/* ============================================
   超燃杯 RC-CHAMPIONSHIP v2.1
   1:1 原型复刻版 — 基于Figma设计稿
   ============================================ */

/* CSS Variables — 原型配色体系 */
:root {
    /* 主色：藏蓝渐变 #0E2557 → #0066AE */
    --color-bg-primary: #0E2557;
    --color-bg-secondary: #0B1D47;
    --color-bg-card: #FFFFFF;
    --color-bg-card-dark: #0E2557;
    --color-bg-gradient-start: #0E2557;
    --color-bg-gradient-end: #0066AE;
    --color-border: #1A3A6E;
    --color-border-light: rgba(255,255,255,0.15);
    --color-text-primary: #FFFFFF;
    --color-text-dark: #1F2329;
    --color-text-secondary: #DCDDDD;
    --color-text-muted: #8B9DB8;
    --color-accent-red: #E1251B;
    --color-racing-red: #F80000;
    --color-highlight-red: #EF1C26;
    --color-yellow: #FFF100;
    --color-yellow-green: #CCDC38;
    --color-blue-light: #C0EAFF;
    --color-footer-bg: #1F2329;
    --color-bronze: #D97706;
    --color-success: #10B981;

    /* Typography */
    --font-cn: 'Noto Sans SC', sans-serif;
    --font-title-en: 'Russo One', sans-serif;
    --font-body-en: 'Inter', sans-serif;
    --font-number: 'Oswald', sans-serif;

    /* Font Sizes */
    --fs-h1: 64px;
    --fs-h2: 48px;
    --fs-h3: 36px;
    --fs-h4: 28px;
    --fs-h5: 20px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-caption: 12px;

    /* Spacing */
    --section-spacing: 120px;
    --container-max: 1400px;

    /* Effects */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    /* Navbar */
    --navbar-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-cn);
    background: linear-gradient(180deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(14, 37, 87, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(14, 37, 87, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-cn);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-red);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* 导航栏右侧合作伙伴 */
.navbar-partners {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 32px;
    padding-left: 32px;
    border-left: 1px solid var(--color-border-light);
}

.navbar-partners-label {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.navbar-partner-logo {
    height: 16px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.navbar-partner-logo:hover {
    opacity: 1;
}

.navbar-toggle {
    display: none;
    font-size: 24px;
    color: var(--color-text-primary);
    padding: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/hero/Banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 37, 87, 0.8) 0%,
        rgba(0, 102, 174, 0.0) 50%,
        rgba(14, 37, 87, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-logo {
    width: 800px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
    opacity: 0.95;
}

.hero-slogan-en {
    font-family: var(--font-body-en);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-yellow);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-title-en);
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-slogan-cn {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    margin-bottom: 48px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: var(--fs-body);
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-accent-red);
    color: var(--color-text-primary);
}

.btn-primary:hover {
    background: var(--color-racing-red);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(225, 37, 27, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
    transform: scale(1.02);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: var(--fs-caption);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   Sections — 通用
   ============================================ */
.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* 深色区块：蓝渐变背景 */
.section-dark {
    background: linear-gradient(180deg, #0B1D47 0%, #0E2557 50%, #0B1D47 100%);
}

/* 浅色区块：白底（合作伙伴区） */
.section-light {
    background: #F5F7FA;
    color: var(--color-text-dark);
}

.section-light .section-title {
    color: var(--color-text-dark);
}

.section-light .section-title span {
    color: #666;
}

.section-light .section-subtitle {
    color: #666;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header-left {
    text-align: left;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.section-title span {
    font-family: var(--font-title-en);
    font-size: 24px;
    color: var(--color-text-muted);
    margin-left: 16px;
}

.section-subtitle {
    font-size: var(--fs-h5);
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* ============================================
   Schedule Section — 横版卡片
   ============================================ */

/* 赛事日程选项卡 — 16:9横向长方体 */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.schedule-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.schedule-card:hover {
    transform: scale(1.05);
}

.schedule-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.schedule-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, rgba(14,37,87,0.1) 0%, rgba(14,37,87,0.6) 50%, rgba(14,37,87,0.9) 90%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 24px;
}

.schedule-card-city {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 20px;
    background: rgba(225, 37, 27, 0.85);
    color: white;
    font-family: var(--font-title-en);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.schedule-card-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.schedule-card-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    display: flex;
    gap: 16px;
}

.schedule-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-card-meta i {
    font-size: 12px;
}

/* ============================================
   Standings Section
   ============================================ */
.standings-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 40px;
    min-width: 160px;
    font-size: var(--fs-body);
    font-weight: 600;
    text-align: center;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: all var(--transition-fast);
}

.tab-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.tab-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 原型Tab：白底红字激活态 */
.tab-btn.active {
    background: #FFFFFF;
    color: var(--color-accent-red);
}

.standings-container {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    color: var(--color-text-dark);
}

.standings-panel {
    display: none;
}

.standings-panel.active {
    display: block;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.standings-table thead {
    background: #F3F4F6;
}

.standings-table th {
    padding: 14px 16px;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: left;
    color: #666;
}

.standings-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background var(--transition-fast);
}

.standings-table tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.standings-table tbody tr:hover {
    background: #EFF6FF;
}

.standings-table td {
    padding: 14px 16px;
    font-size: var(--fs-body);
    color: var(--color-text-dark);
}

.rank-cell {
    font-family: var(--font-number);
    font-size: 20px;
    font-weight: 700;
    width: 60px;
}

.rank-1 { color: var(--color-yellow); }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: var(--color-bronze); }

.driver-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.driver-name {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* 红色圆点国旗标识 */
.nationality-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nationality-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-racing-red);
    flex-shrink: 0;
}

.nationality-text {
    font-size: var(--fs-small);
    color: #555;
}

.pts-cell {
    font-family: var(--font-number);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent-red);
}

.standings-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-small);
    font-weight: 600;
    color: #666;
    background: #F3F4F6;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    background: #E5E7EB;
    color: var(--color-text-dark);
}

.page-btn.active {
    background: var(--color-accent-red);
    color: var(--color-text-primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.standings-updated {
    text-align: center;
    margin-top: 24px;
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
}

/* ============================================
   Teams Section — 集装箱场景
   ============================================ */
.teams-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
}

.teams-checkered {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.checkered-pattern {
    width: 80px;
    height: 80px;
    background: repeating-conic-gradient(#1F2329 0% 25%, #FFFFFF 0% 50%) 50% / 20px 20px;
    border-radius: 8px;
}

.teams-brand-text {
    font-family: var(--font-title-en);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.teams-brand-text small {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.teams-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.team-name-btn {
    padding: 10px 24px;
    min-width: 120px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    color: var(--color-text-primary);
    font-size: var(--fs-body);
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.team-name-btn:hover {
    background: var(--color-accent-red);
    border-color: var(--color-accent-red);
}

.team-name-btn.active {
    background: var(--color-accent-red);
    border-color: var(--color-accent-red);
}

.teams-scene {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
}

.teams-scene img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   About Section
   ============================================ */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text h3 {
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--color-yellow);
    margin: 32px 0 16px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 2;
    margin-bottom: 16px;
    text-align: justify;
}

.about-video {
    position: sticky;
    top: 120px;
}

.video-placeholder {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* 原型：白色播放按钮 */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-text-dark);
    transition: all var(--transition-fast);
}

.video-play-btn i {
    margin-left: 4px;
}

.video-placeholder:hover .video-play-btn {
    background: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    font-size: var(--fs-small);
    font-weight: 500;
    border-radius: 4px;
}

/* ============================================
   Partners Section — 蓝色调三行
   ============================================ */
.section-partners {
    background: #0B1D47;
    padding-bottom: 0;
}

.section-partners .section-header {
    margin-bottom: 32px;
}

.partners-rows {
    display: flex;
    flex-direction: column;
}

.partner-row {
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-row-1 {
    background: #0E2557;
}

.partner-row-2 {
    background: #0A1F50;
}

.partner-row-3 {
    background: #071842;
}

.partner-row .partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.partner-row .partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: all var(--transition-fast);
    min-width: unset;
    min-height: unset;
    box-shadow: none;
}

.partner-row .partner-logo:hover {
    transform: scale(1.08);
    box-shadow: none;
}

.partner-row .partner-logo img {
    max-width: 140px;
    max-height: 50px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.partner-row .partner-logo:hover img {
    opacity: 1;
}

.partner-logo-text {
    font-family: var(--font-title-en);
    font-size: 18px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   Footer — 深灰 #1F2329
   ============================================ */
.footer {
    background: var(--color-footer-bg);
    padding: 48px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand-col {
    flex-shrink: 0;
}

.footer-logo {
    height: 30px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-tagline {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-style: italic;
}

.footer-contact-col {
    text-align: right;
}

.footer-contact p {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.footer-contact i {
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
}

.footer-copyright {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-style: italic;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #0E2557;
    border-radius: 16px;
    padding: 32px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-accent-red);
    color: var(--color-text-primary);
}

.modal-title {
    font-size: var(--fs-h4);
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    padding-right: 48px;
}

.modal-drivers {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-driver {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.modal-driver-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-driver-info {
    flex: 1;
}

.modal-driver-name {
    font-size: var(--fs-h5);
    font-weight: 600;
    margin-bottom: 4px;
}

.modal-driver-name-en {
    font-family: var(--font-title-en);
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.modal-driver-desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.modal-video {
    max-width: 900px;
    background: transparent;
}

.modal-video video {
    width: 100%;
    border-radius: 8px;
}

.modal-qr {
    max-width: 360px;
    text-align: center;
    background: #FFFFFF;
    color: var(--color-text-dark);
}

.modal-qr .modal-close {
    background: #F3F4F6;
    color: #666;
}

.modal-qr .modal-close:hover {
    background: var(--color-accent-red);
    color: white;
}

.modal-qr .modal-title {
    color: var(--color-text-dark);
}

.qr-container {
    display: flex;
    justify-content: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    margin-top: 16px;
}

.qr-container canvas,
.qr-container img {
    display: block;
}

/* Schedule Event Modal */
.modal-schedule-event {
    max-width: 480px;
    text-align: center;
    background: #FFFFFF;
    color: var(--color-text-dark);
    padding: 40px 32px;
}

.modal-schedule-event .modal-close {
    background: #F3F4F6;
    color: #666;
}

.modal-schedule-event .modal-close:hover {
    background: var(--color-accent-red);
    color: white;
}

.schedule-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.schedule-modal-city {
    font-family: var(--font-title-en);
    font-size: 14px;
    color: #999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.schedule-modal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: #666;
}

.schedule-modal-info span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.schedule-modal-info i {
    color: var(--color-accent-red);
}

.schedule-modal-ended {
    font-size: 24px;
    font-weight: 700;
    color: #999;
    padding: 40px 0;
}

.schedule-modal-qr {
    padding: 24px;
    background: #F9FAFB;
    border-radius: 12px;
}

.schedule-modal-qr-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.schedule-modal-qr #scheduleQrContainer {
    display: flex;
    justify-content: center;
}

/* ============================================
   Animation
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktop >= 1400px */
@media (max-width: 1399px) {
    :root {
        --fs-h1: 56px;
        --fs-h2: 42px;
        --fs-h3: 32px;
        --fs-h4: 24px;
        --section-spacing: 100px;
    }

    .hero-title {
        font-size: 60px;
    }
}

/* Desktop >= 1200px */
@media (max-width: 1199px) {
    :root {
        --fs-h1: 48px;
        --fs-h2: 36px;
        --fs-h3: 28px;
        --fs-h4: 22px;
        --section-spacing: 80px;
        --navbar-height: 70px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-slogan-cn {
        font-size: 28px;
    }

    .section-title span {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-video {
        position: static;
        order: -1;
    }

    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .schedule-city-tag {
        font-size: 15px;
        padding: 8px 16px;
    }
}

/* Tablet >= 992px */
@media (max-width: 991px) {
    :root {
        --section-spacing: 70px;
    }

    .navbar-menu {
        gap: 24px;
    }

    .navbar-partners {
        display: none;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teams-hero {
        flex-direction: column;
        text-align: center;
    }

    .teams-checkered {
        flex-direction: column;
    }
}

/* Mobile >= 768px */
@media (max-width: 767px) {
    :root {
        --fs-h1: 36px;
        --fs-h2: 28px;
        --fs-h3: 24px;
        --fs-h4: 20px;
        --fs-h5: 18px;
        --section-spacing: 60px;
        --navbar-height: 60px;
    }

    .navbar-container {
        padding: 0 16px;
    }

    .navbar-brand .brand-logo {
        height: 32px;
    }

    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: rgba(14, 37, 87, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-toggle {
        display: block;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-slogan-en {
        font-size: 14px;
    }

    .hero-slogan-cn {
        font-size: 22px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-scroll-hint {
        display: none;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .standings-container {
        padding: 16px;
    }

    .standings-table th,
    .standings-table td {
        padding: 12px 8px;
        font-size: var(--fs-small);
    }

    .rank-cell {
        font-size: 16px;
    }

    .driver-avatar {
        width: 32px;
        height: 32px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: var(--fs-small);
    }

    .teams-list {
        flex-direction: column;
    }

    .team-name-btn {
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .modal-content {
        padding: 24px 16px;
        margin: 16px;
    }

    .modal-driver {
        flex-direction: column;
        text-align: center;
    }

    .modal-driver-avatar {
        margin: 0 auto;
    }
}

/* Small Mobile >= 576px */
@media (max-width: 575px) {
    :root {
        --fs-h1: 28px;
        --fs-h2: 24px;
        --fs-h3: 20px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .standings-pagination {
        gap: 6px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: var(--fs-caption);
    }
}

/* Extra Small < 576px */
@media (max-width: 375px) {
    :root {
        --fs-h1: 24px;
        --fs-h2: 20px;
    }

    .btn {
        padding: 14px 24px;
        font-size: var(--fs-small);
    }
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 16px;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.footer-social .social-link:hover {
    background: var(--color-accent-red);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-contact-col {
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
}
/* ... 之前已有的样式 ... */

.footer-filing {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-filing a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-filing a:hover {
    color: rgba(255, 255, 255, 0.7);
}
/* ↓ 新增，紧跟在 .footer-filing a:hover 后面 ↓ */
.beian-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
    margin-top: -2px;
}
