* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #e10600;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #333333;
    --light-gray: #f5f5f5;
    --blue: #0066cc;
    --yellow: #ffcc00;
}

[data-theme="dark"] {
    --red: #ff1a1a;
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #333333;
    --card-bg: #1f1f1f;
    --input-bg: #2a2a2a;
}

[data-theme="light"] {
    --red: #e10600;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 40px !important; /* 与用户/管理按钮拉开明显间距 */
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

/* 导航栏右侧控件容器：水平居中排列所有按钮 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--red);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 10px;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
}

.register-btn {
    background-color: var(--red);
    padding: 10px 20px;
    border-radius: 5px;
}

.register-btn:hover {
    background-color: #c00505;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(225,6,0,0.4) 100%);
}

.hero-slide-1 {
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-slide-2 {
    background-image: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #e10600 100%);
}

.hero-slide-3 {
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 50%, #e10600 100%);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.7);
}

.carousel-dot.active {
    background: var(--red);
    border-color: var(--white);
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="2" fill="%23e10600" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 120px;
    font-weight: bold;
    color: var(--red);
    margin-bottom: 10px;
    letter-spacing: 10px;
    animation: pulse 2s infinite;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero-desc {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #c00505;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
}

.hero-car {
    font-size: 150px;
    color: var(--red);
    animation: drive 3s ease-in-out infinite;
}

.hero-stats {
    display: flex;
    gap: 80px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--red);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

.bg-dark .section-title {
    color: var(--text-primary);
}

.bg-dark .section-desc {
    color: var(--text-secondary);
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.driver-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.driver-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.15);
}

.driver-card[data-team="red"] { border-left-color: #e10600; }
.driver-card[data-team="blue"] { border-left-color: #0066cc; }
.driver-card[data-team="silver"] { border-left-color: #c0c0c0; }
.driver-card[data-team="yellow"] { border-left-color: #ffcc00; }
.driver-card[data-team="green"] { border-left-color: #00cc00; }
.driver-card[data-team="purple"] { border-left-color: #9900cc; }

.driver-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #ff4d4d);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.driver-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.driver-number {
    font-size: 14px;
    color: var(--red);
    font-weight: bold;
    margin-bottom: 5px;
}

.driver-shortname {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 5px;
}

.driver-team {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.driver-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.calendar-timeline {
    position: relative;
}

.calendar-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray);
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 100px;
}

.calendar-event:last-child {
    margin-bottom: 0;
}

.event-date {
    position: absolute;
    left: 0;
    width: 80px;
    text-align: center;
}

.date-day {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--red);
}

.date-month {
    display: block;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 5px;
}

.event-info p {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.event-status {
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: #333;
    color: #999;
}

.calendar-event.past .event-status {
    background-color: #2a2a2a;
    color: #666;
}

.calendar-event.current .event-status {
    background-color: var(--red);
    color: var(--white);
}

.event-winner {
    font-size: 14px;
    color: var(--yellow);
}

.event-action .btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.standings-table {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.standings-header {
    display: grid;
    grid-template-columns: 80px 2fr 2fr 100px 80px 80px;
    background: linear-gradient(135deg, var(--red), #ff4d4d);
    color: var(--white);
    padding: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.standings-row {
    display: grid;
    grid-template-columns: 80px 2fr 2fr 100px 80px 80px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.standings-row:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.1);
}

.standings-row.leader {
    background: linear-gradient(90deg, rgba(225, 6, 0, 0.15), transparent);
}

.col-position {
    font-weight: bold;
    font-size: 24px;
    color: var(--red);
}

.col-driver {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray), #4a4a4a);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.col-team {
    color: var(--text-secondary);
}

.col-points {
    font-weight: bold;
    font-size: 18px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.featured {
    grid-column: span 2;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-category {
    font-size: 12px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 10px;
}

.news-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-date {
    font-size: 12px;
    color: #666;
}

.cars-container {
    position: relative;
    height: 600px;
}

.car-showcase {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.car-showcase.active {
    display: flex;
    opacity: 1;
}

.car-image img {
    width: 75%;
    height: 500px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

.car-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--black);
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
}

.spec-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.spec-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--red);
}

.car-selector {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.car-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-btn:hover,
.car-btn.active {
    color: var(--black);
}

.car-btn i {
    font-size: 20px;
}

.livery-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.livery-btn {
    padding: 8px 16px;
    background-color: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--black);
}

.livery-btn:hover {
    background-color: #ddd;
}

.livery-btn.active {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.track-card {
    background-color: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.track-card:hover {
    transform: translateY(-5px);
}

.track-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.track-info {
    padding: 20px;
}

.track-info h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 15px;
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #999;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.register-form {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
}

.register-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--black);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.btn-full {
    width: 100%;
}

.register-info {
    padding: 40px;
}

.register-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.register-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.register-info li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.contact-info h4 {
    margin-bottom: 15px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    margin-bottom: 10px;
}

.footer {
    background-color: var(--black);
    padding: 60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 24px;
    color: var(--red);
    margin-bottom: 10px;
}

.footer-section h4 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section p {
    color: #666;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--red);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--red);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn i {
    font-size: 16px;
}

.share-btn:nth-child(1) {
    background-color: #12b7f5;
    color: white;
}

.share-btn:nth-child(1):hover {
    background-color: #0da0db;
}

.share-btn:nth-child(2) {
    background-color: #e6162d;
    color: white;
}

.share-btn:nth-child(2):hover {
    background-color: #c41328;
}

.share-btn:nth-child(3) {
    background-color: #333;
    color: white;
}

.share-btn:nth-child(3):hover {
    background-color: #444;
}

.copy-notification {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes drive {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--black);
        padding: 20px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 40px;
    }

    .stat-item {
        flex: 1 1 100px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .drivers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .driver-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .calendar-timeline {
        padding: 0;
    }

    .calendar-event {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 15px;
    }

    .event-date {
        margin-bottom: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
    }

    .news-card {
        margin-bottom: 20px;
    }

    .standings-table {
        font-size: 12px;
    }

    .standings-header,
    .standings-row {
        grid-template-columns: 50px 1fr 60px;
        padding: 12px 10px;
    }

    .col-team,
    .col-wins,
    .col-poles {
        display: none;
    }

    .car-showcase {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        position: relative;
        height: auto;
    }

    .car-showcase.active {
        display: flex;
        opacity: 1;
        z-index: 1;
    }

    .car-selector {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
        position: relative;
        z-index: 2;
        background: var(--white);
        margin-bottom: 20px;
    }

    .car-btn {
        font-size: 12px;
        padding: 8px 12px;
        background: rgba(255,255,255,0.1);
        border-radius: 20px;
    }

    .car-btn span {
        display: none;
    }

    .car-image img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }

    .car-info h3 {
        font-size: 20px;
        margin: 15px 0;
    }

    .livery-selector {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .livery-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .car-specs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .spec-item {
        padding: 12px;
    }

    .spec-value {
        font-size: 16px;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .track-card {
        margin-bottom: 0;
    }

    .track-image img {
        height: 180px;
    }

    .register-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .register-form h3,
    .register-info h3 {
        font-size: 22px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 14px 20px;
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 18px;
    }

    .footer-section ul {
        padding: 0;
    }

    .social-links {
        justify-content: center;
    }

    .share-buttons {
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .standings-header,
    .standings-row {
        grid-template-columns: 40px 1fr 50px;
        font-size: 11px;
        padding: 10px 5px;
    }

    .col-driver .flag {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .car-btn i {
        font-size: 16px;
    }

    .car-image img {
        max-height: 200px;
    }

    .track-image img {
        height: 150px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    font-size: 14px;
    font-weight: 600;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
       left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--red);
}

#modalCaption {
    margin-top: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.helmet-modal {
    background: radial-gradient(circle, #1a1a2e 0%, #0f0f1a 100%);
}

.helmet-content {
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid var(--red);
    box-shadow: 0 0 50px rgba(255, 23, 68, 0.3);
    animation: helmetZoomIn 0.4s ease;
}

@keyframes helmetZoomIn {
    from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

#helmetCaption {
    margin-top: 25px;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.driver-card[data-helmet] .driver-info {
    position: relative;
}

.driver-card[data-helmet]::after {
    content: '👆';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    opacity: 0.6;
    pointer-events: none;
}

.driver-card[data-helmet] {
    cursor: pointer;
}

.driver-card[data-helmet]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.3);
}

@media (max-width: 768px) {
    .driver-card[data-helmet]::after {
        opacity: 0.8;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 70vh;
    }

    #modalCaption {
        font-size: 18px;
        padding: 0 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-overlay {
        padding: 10px;
    }

    .gallery-overlay span {
        font-size: 11px;
    }

    .helmet-content {
        max-width: 280px;
        max-height: 280px;
    }

    #helmetCaption {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .helmet-content {
        max-width: 220px;
        max-height: 220px;
        border-width: 3px;
    }

    #helmetCaption {
        font-size: 16px;
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.page-hero {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a2e 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-hero .hero-title {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-hero .hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0,0,0,0.95);
    min-width: 150px;
    border-radius: 5px;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: var(--red);
}

.team-standings-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.team-standing-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #666;
}

.team-standing-card.leader {
    background: linear-gradient(90deg, rgba(255,23,68,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-left-color: var(--red);
}

.team-rank {
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    color: var(--red);
}

.team-logo {
    font-size: 32px;
}

.team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.team-name-en {
    color: #333 !important;
}

.about-text {
    color: var(--text-primary) !important;
}

.about-card p {
    color: var(--text-primary);
}

.about-card li {
    color: var(--text-primary);
}

.points-position {
    color: var(--text-primary);
}

.points-row.fastest .points-position {
    color: var(--red);
}

.contact-card h4 {
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
}

.contact-card p a {
    color: var(--red);
    text-decoration: none;
}

.contact-card p a:hover {
    text-decoration: underline;
}

.cta-section h3 {
    color: var(--text-primary);
}

.cta-section p {
    color: var(--text-secondary);
}

.about-card h3 {
    color: var(--text-primary);
}

.about-icon {
    color: var(--red);
}

.team-info {
    flex: 1;
}

.team-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.team-points {
    text-align: center;
}

.points-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--red);
}

.points-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.points-legend {
    margin-top: 50px;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 10px;
}

.points-legend h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    font-size: 14px;
}

.legend-item .pos {
    font-weight: bold;
}

.legend-item .pts {
    color: var(--red);
}

.race-results-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.tab-btn {
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--red);
}

.race-result-content {
    display: none;
}

.race-result-content.active {
    display: block;
}

.race-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 20px;
}

.race-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.race-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.race-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
}

.race-status.finished {
    background: var(--red);
}

.race-table {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.race-table-header, .race-table-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 1fr 60px;
    padding: 15px 20px;
    align-items: center;
}

.race-table-header {
    background: rgba(255,255,255,0.1);
    font-weight: bold;
    font-size: 13px;
}

.race-table-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.race-table-row:last-child {
    border-bottom: none;
}

.col-pts {
    color: var(--red);
    font-weight: bold;
}

.race-fastest-lap {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,23,68,0.1);
    border-radius: 10px;
    text-align: center;
}

.race-fastest-lap i {
    color: var(--red);
    margin-right: 10px;
}

.fastest-laps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fastest-lap-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fl-track {
    text-align: center;
}

.fl-track i {
    font-size: 28px;
    color: var(--red);
    margin-bottom: 10px;
}

.fl-track h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.fl-track p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.fl-details {
    text-align: center;
}

.fl-time {
    font-size: 24px;
    font-weight: bold;
    color: var(--red);
    margin-bottom: 5px;
}

.fl-driver {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.about-icon {
    font-size: 48px;
    color: var(--red);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.about-card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li::before {
    content: "✓";
    color: var(--red);
    margin-right: 10px;
}

.points-table {
    max-width: 600px;
    margin: 30px auto 0;
}

.points-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.points-row.fastest {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.points-position {
    width: 50px;
    font-weight: bold;
    font-size: 16px;
}

.points-bar {
    height: 20px;
    background: var(--red);
    border-radius: 3px;
    min-width: 20px;
}

.points-row.fastest .points-bar {
    background: var(--yellow);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.contact-card i {
    font-size: 48px;
    color: var(--red);
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-card p {
    color: rgba(255,255,255,0.7);
}

.cta-section {
    text-align: center;
    padding: 60px 0;
}

.cta-section h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

.news-card {
    background: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(225, 6, 0, 0.2);
}

.track-card {
    background: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.car-btn {
    position: relative;
    overflow: hidden;
}

.car-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.car-btn:hover::before {
    left: 100%;
}

.spec-item {
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(225, 6, 0, 0.2);
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--red);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .page-hero .hero-title {
        font-size: 36px;
    }

    .team-standing-card {
        flex-wrap: wrap;
        text-align: center;
    }

    .team-rank {
        width: 100%;
        margin-bottom: 10px;
    }

    .team-points {
        width: 100%;
        margin-top: 15px;
    }

    .race-results-tabs {
        justify-content: center;
    }

    .tab-btn {
        font-size: 12px;
        padding: 10px 15px;
    }

    .race-table-header, .race-table-row {
        grid-template-columns: 40px 1fr 80px;
    }

    .col-time, .col-team {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(0,0,0,0.95);
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown.active .dropdown-content a {
        padding: 12px 20px;
        display: block;
        color: #ccc;
        font-size: 14px;
        text-transform: none;
    }

    .dropdown.active .dropdown-content a:hover {
        background: var(--red);
        color: #fff;
    }

    .nav-container {
        position: relative;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .hero-carousel {
        display: none;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        padding: 20px;
    }

    .chart-container {
        height: 250px;
    }

    .pie-chart-container {
        height: 280px;
    }
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.chart-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-header h3 {
    font-size: 18px;
    margin: 0;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

[data-theme="light"] .legend-item {
    color: rgba(0,0,0,0.7);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chart-container {
    height: 300px;
    position: relative;
}

.pie-chart-container {
    height: 320px;
    max-width: 400px;
    margin: 0 auto;
}

.charts-grid .chart-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

[data-theme="light"] .chart-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

[data-theme="light"] .chart-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 教程页面样式 */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tutorial-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.2);
    border-color: rgba(225, 6, 0, 0.3);
}

.tutorial-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tutorial-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><circle cx="20" cy="20" r="1.5" fill="%23e10600" opacity="0.15"/></svg>');
    background-size: 40px 40px;
}

.tutorial-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 1;
}

.tutorial-thumbnail i {
    font-size: 64px;
    color: rgba(255,255,255,0.8);
    z-index: 1;
}

/* ==================== JFC 账号系统样式 ==================== */

/* --- 通用组件 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff3333; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-danger { background: #333; color: #ff5555; }
.btn-danger:hover { background: #444; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-small { padding: 6px 14px; font-size: 0.8rem; }

.form-group { margin-bottom: 1.25rem; }
/* 使用高优先级选择器覆盖旧版 .form-group label / input 的白底深字样式 */
.form-group label.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.form-group input.form-input,
.form-group select.form-input,
.form-group textarea.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input.form-input:focus,
.form-group select.form-input:focus,
.form-group textarea.form-input:focus {
    outline: none;
    border-color: var(--red);
}
.form-group .form-input::placeholder { color: var(--text-secondary); opacity: 0.6; }
.form-group .form-input option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}
/* 浏览器自动填充（autofill）样式，避免浅蓝底白字 */
.form-group input.form-input:-webkit-autofill,
.form-group input.form-input:-webkit-autofill:hover,
.form-group input.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset;
    caret-color: var(--text-primary);
    transition: background-color 5000s ease-in-out 0s;
}
textarea.form-input { resize: vertical; min-height: 80px; }

.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-right: 40px; }
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}
.toggle-password:hover { color: var(--red); }

.auth-error {
    color: var(--red);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    display: none;
}

/* --- 登录/注册页 --- */
.auth-container {
    max-width: 460px;
    margin: 0 auto;
}
.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.5rem;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.auth-tab.active { background: var(--red); color: #fff; }
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}
.auth-logged-in { text-align: center; }
.auth-logged-in .auth-card {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}
.auth-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 3px solid var(--red);
}
.auth-avatar-large i { font-size: 2.5rem; color: var(--text-secondary); }
.auth-logged-in-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* --- 个人主页 --- */
.profile-section { padding-top: 100px; }
.profile-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.profile-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--red) 0%, #660000 50%, var(--bg-tertiary) 100%);
    position: relative;
}
.profile-banner::after {
    content: 'JFC';
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    letter-spacing: 4px;
}
.profile-main {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 2rem 1.5rem;
    flex-wrap: wrap;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--card-bg);
    margin-top: -40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}
.profile-badge-driver {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: bold;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.profile-team { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.3rem; }
.profile-meta { display: flex; gap: 1.2rem; font-size: 0.82rem; color: var(--text-secondary); flex-wrap: wrap; }
.profile-actions { flex-shrink: 0; display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.profile-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .profile-body { grid-template-columns: 1fr; }
    .profile-main { padding: 0 1rem 1rem; }
}
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.profile-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.profile-card-header h3 { margin-bottom: 0; }
.profile-bio { font-size: 0.9rem; line-height: 1.7; }
.profile-album {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.album-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.album-item:hover img { transform: scale(1.05); }
.album-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #ff5555;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.album-item:hover .album-delete { opacity: 1; }
.profile-post-item {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.profile-post-item:hover { border-color: var(--red); }
.profile-post-cat {
    display: inline-block;
    font-size: 0.7rem;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.profile-post-item h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.profile-post-item p { font-size: 0.82rem; color: var(--text-secondary); }
.profile-post-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* --- 社区页面 --- */
.community-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.community-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.cat-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cat-btn:hover { border-color: var(--red); color: var(--text-primary); }
.cat-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.community-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
}
.sort-btn.active { color: var(--red); border-color: var(--red); }

.community-post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}
.community-post-card:hover { border-color: var(--red); transform: translateY(-2px); }
.post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}
.post-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}
.post-author-info { display: flex; flex-direction: column; flex: 1; }
.post-author-name { font-size: 0.85rem; font-weight: 600; }
.post-time { font-size: 0.75rem; color: var(--text-secondary); }
.post-category-tag {
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.cat-race-discussion { background: rgba(225,6,0,0.15); color: var(--red); }
.cat-general { background: rgba(0,102,204,0.15); color: var(--blue); }
.cat-media { background: rgba(255,204,0,0.15); color: var(--yellow); }
.cat-qna { background: rgba(0,200,100,0.15); color: #28a745; }
.cat-suggestions { background: rgba(150,100,255,0.15); color: #9966ff; }
.post-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.post-preview { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.post-actions-row {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.post-stat { display: flex; align-items: center; gap: 4px; }
.view-more { margin-left: auto; color: var(--red); }
.community-empty { text-align: center; padding: 3rem; flex-direction: column; }

/* --- 详情模态框 --- */
.jfc-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.jfc-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    /* 不用 backdrop-filter：模糊层会导致弹窗内大图解码后不重绘（需悬停才显示的 Chromium bug） */
}
.jfc-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
}
.jfc-modal-large { max-width: 700px; }
.jfc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}
.jfc-modal-header h2 { font-size: 1.1rem; }
.jfc-modal-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}
.jfc-modal-header button:hover { color: var(--red); }
.jfc-modal-body { padding: 1.5rem; }

.detail-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.detail-content {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}
.detail-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.detail-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.detail-like-btn.liked { color: var(--red); border-color: var(--red); }
.detail-like-btn.liked i { color: var(--red); }
.detail-delete-btn {
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: #ff5555;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
}

.detail-comments-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.comment-input-area { margin-bottom: 1.5rem; }
.comment-login-prompt {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.comments-list { display: flex; flex-direction: column; gap: 0.75rem; }
.comment-item {
    display: flex;
    gap: 10px;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}
.comment-author { font-size: 0.82rem; font-weight: 600; }
.comment-time { font-size: 0.72rem; color: var(--text-secondary); }
.comment-content { font-size: 0.85rem; line-height: 1.5; }
.comment-delete-btn {
    margin-top: 0.3rem;
    background: none;
    border: none;
    color: #ff5555;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

/* --- 图片预览模态框 --- */
.image-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
}
.image-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
}
.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}
.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Toast 提示 --- */
.jfc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    white-space: nowrap;
}
.jfc-toast-info { background: #333; color: #fff; }
.jfc-toast-success { background: #28a745; color: #fff; }
.jfc-toast-error { background: var(--red); color: #fff; }

/* --- 导航栏账号入口 --- */
.nav-account-link {
    text-decoration: none;
    transition: all 0.2s;
}
.nav-account-link:hover { opacity: 0.85; }

/* --- 主席控制台 --- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.admin-stat-num { font-size: 1.5rem; font-weight: 800; }
.admin-stat-label { font-size: 0.8rem; color: var(--text-secondary); }

.admin-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.admin-table th {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.role-select {
    font-family: inherit;
}
.role-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.admin-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.admin-action-btn:hover { border-color: var(--blue); color: var(--blue); }
.admin-action-btn.danger:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 640px) {
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 0.5rem; }
}

/* --- 响应式 --- */
@media (max-width: 640px) {
    .community-toolbar { flex-direction: column; align-items: stretch; }
    .community-sort { justify-content: flex-end; }
    .profile-main { flex-direction: column; align-items: center; text-align: center; }
    .profile-actions { margin-top: 0.5rem; }
    .jfc-modal-content { max-height: 90vh; }
    .detail-actions { flex-wrap: wrap; }
    .detail-delete-btn { margin-left: 0; }

    .tutorial-thumbnail i {
        transition: all 0.3s ease;
    }
}

.tutorial-card:hover .tutorial-thumbnail i {
    transform: scale(1.2);
    color: var(--red);
}

.tutorial-info {
    padding: 25px;
}

.tutorial-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tutorial-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    line-height: 1.6;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background: #c00505;
    transform: scale(1.05);
}

/* 视频模态框样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    animation: zoomIn 0.3s ease;
}

.video-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-close:hover {
    background: var(--red);
}

.video-modal video {
    width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    outline: none;
}

.video-title {
    margin-top: 20px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* 响应式教程页面 */
@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-thumbnail {
        height: 150px;
    }

    .tutorial-thumbnail i {
        font-size: 48px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* 规则页面样式 */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.rules-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.rules-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.15);
    border-color: rgba(225, 6, 0, 0.3);
}

.rules-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    flex-shrink: 0;
}

.rules-icon-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.rules-icon-info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.rules-info {
    flex: 1;
}

.rules-info h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rules-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

.rules-action {
    font-size: 24px;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.rules-card:hover .rules-action {
    color: var(--red);
    transform: translateX(5px);
}

/* 积分规则速览 */
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.points-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.points-card.points-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 183, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.points-card.points-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(168, 168, 168, 0.05) 100%);
    border-color: rgba(192, 192, 192, 0.3);
}

.points-card.points-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(184, 115, 51, 0.05) 100%);
    border-color: rgba(205, 127, 50, 0.3);
}

.points-position {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.points-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-primary);
}

.points-card.points-gold .points-value {
    color: #ffd700;
}

.points-card.points-silver .points-value {
    color: #c0c0c0;
}

.points-card.points-bronze .points-value {
    color: #cd7f32;
}

/* 规则高亮 */
.rules-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.rules-highlight-item {
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid rgba(225, 6, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.rules-highlight-item i {
    font-size: 28px;
    color: var(--red);
    flex-shrink: 0;
}

.rules-highlight-item h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.rules-highlight-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* PDF模态框样式 */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
}

.pdf-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-close:hover {
    background: var(--red);
}

.pdf-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pdf-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.pdf-viewer {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-viewer {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

#pdfCanvas {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
}

.pdf-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pdf-loading p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.pdf-nav {
    padding: 15px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pdf-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
}

.pdf-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pdf-page-info {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
}

.pdf-actions {
    padding: 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
}

.pdf-actions a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pdf-actions a:hover {
    background: #c00505;
    transform: scale(1.05);
}

/* 响应式规则页面 */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .rules-card {
        padding: 25px;
    }

    .rules-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .points-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .points-card {
        padding: 15px;
    }

    .points-value {
        font-size: 24px;
    }

    .rules-highlight {
        grid-template-columns: 1fr;
    }

    .pdf-modal-content {
        width: 95%;
        height: 80vh;
    }

    .pdf-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* ==================== 历史赛季页面 ==================== */

/* 赛季选择条 */
.history-season-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.season-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.season-pill:hover {
    border-color: var(--red);
    color: var(--text-primary);
}

.season-pill.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.season-pill-period {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.75;
}

/* 赛季横幅 */
.season-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--red);
    border-radius: 6px;
    padding: 28px;
    margin-bottom: 30px;
}

.season-banner-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.season-banner-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(225, 6, 0, 0.12);
    border: 1px solid rgba(225, 6, 0, 0.35);
    border-radius: 3px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.season-banner-head h2 {
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.season-banner-head p {
    font-size: 14px;
    color: var(--text-secondary);
}

.season-banner-head p i {
    color: var(--red);
    margin-right: 6px;
}

.season-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.35);
    border-radius: 4px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* 双冠王卡片 */
.season-champions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.champion-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.champion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.champion-driver::before {
    background: linear-gradient(90deg, #ffd700, #ffb300);
}

.champion-team::before {
    background: linear-gradient(90deg, #c0c0c0, #8a8a8a);
}

.champion-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 22px;
    margin-bottom: 14px;
}

.champion-driver .champion-icon {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.champion-team .champion-icon {
    background: rgba(192, 192, 192, 0.12);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.champion-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.champion-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.champion-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 16px;
}

.champion-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.champion-stats span {
    font-size: 13px;
    color: var(--text-secondary);
}

.champion-stats b {
    font-size: 18px;
    color: var(--text-primary);
    margin-right: 3px;
}

/* 子导航标签 */
.history-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 26px;
}

.history-tab {
    padding: 12px 22px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.history-tab i {
    margin-right: 7px;
}

.history-tab:hover {
    color: var(--text-primary);
}

.history-tab.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.history-view {
    display: none;
}

.history-view.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* 数据表格 */
.history-table-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 640px;
}

.history-table th {
    padding: 13px 14px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

.history-table td {
    padding: 12px 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr {
    transition: background 0.15s ease;
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.history-table th.num {
    text-align: right;
}

.history-table .narrow {
    min-width: 42px;
    padding-left: 6px;
    padding-right: 6px;
}

.history-table .zero {
    color: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .history-table .zero {
    color: rgba(0, 0, 0, 0.28);
}

.col-rank {
    width: 56px;
    text-align: center;
}

.cell-driver b {
    font-weight: 700;
}

.cell-num {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 6px;
    font-weight: 400;
}

.cell-points {
    font-size: 16px;
    font-weight: 800;
    color: var(--red) !important;
}

/* 前三名行高亮 */
.podium-row td {
    background: rgba(255, 215, 0, 0.04);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #e6a800);
    border-color: #ffd700;
    color: #1a1a1a;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #d4d4d4, #a8a8a8);
    border-color: #c0c0c0;
    color: #1a1a1a;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #d08a4f, #a8652d);
    border-color: #cd7f32;
    color: #1a1a1a;
}

.team-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 9px;
    vertical-align: middle;
}

.history-table-note {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.history-table-note i {
    color: var(--red);
    margin-right: 6px;
}

/* 历史赛季页响应式 */
@media (max-width: 768px) {
    .season-banner {
        padding: 20px;
    }

    .season-banner-head h2 {
        font-size: 21px;
    }

    .history-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .history-table {
        font-size: 13px;
    }

    .history-table th,
    .history-table td {
        padding: 10px;
    }
}

/* ==================== 赛道展示页 ==================== */

.track-card-jfc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.track-card-jfc:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 6, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.track-card-jfc .track-image {
    position: relative;
    overflow: hidden;
}

.track-card-jfc .track-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.track-card-jfc:hover .track-image img {
    transform: scale(1.05);
}

.track-round-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 1px;
}

.track-card-jfc .track-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.track-card-jfc .track-info h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.track-country {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.track-country i {
    color: var(--red);
    margin-right: 4px;
}

.track-card-jfc .track-details {
    display: flex;
    gap: 18px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.track-card-jfc .track-details i {
    color: var(--red);
    margin-right: 5px;
}

.track-jfc-record {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.track-record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.track-record-label {
    color: var(--text-secondary);
}

.track-record-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.track-ref {
    color: var(--text-secondary) !important;
    font-weight: 400;
    font-size: 12px;
}

/* 赛道展示页响应式 */
@media (max-width: 768px) {
    .track-card-jfc .track-image img {
        height: 140px;
    }

    .track-card-jfc .track-info {
        padding: 16px;
    }

    .track-card-jfc .track-info h3 {
        font-size: 16px;
    }
}

/* ==================== 荣誉墙页面 ==================== */

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.award-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 204, 0, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.award-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 16px;
    border: 1px solid;
}

.award-icon-default {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.award-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.award-winner {
    font-size: 22px;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 2px;
}

.award-winner-pending {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
}

.award-team {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.award-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.award-pending {
    opacity: 0.7;
}

/* 荣誉墙响应式 */
@media (max-width: 640px) {
    .awards-grid {
        grid-template-columns: 1fr;
    }

    .award-card {
        padding: 22px 18px;
    }
}

/* ============ 社区帖子配图 ============ */
.post-images-strip {
    display: flex;
    gap: 0.4rem;
    margin: 0.6rem 0 0.2rem;
}

.post-images-strip img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transform: translateZ(0);
}

.post-images-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 72px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    border: 1px solid var(--border-color);
    transition: opacity 0.2s;
    transform: translateZ(0);
}

.detail-image:hover {
    opacity: 0.85;
}

/* ==================== 移动端统一适配（≤768px） ==================== */
@media (max-width: 768px) {
    /* 全局防横向溢出 */
    html, body {
        overflow-x: clip;
        max-width: 100vw;
    }
    img, video, canvas, iframe {
        max-width: 100%;
    }
    .container {
        padding: 0 15px;
    }
    /* 表格横向滑动 */
    main table, section table, .content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* ---------- 导航栏 ---------- */
    .navbar {
        max-width: 100vw;
    }
    .nav-container {
        padding: 0 12px;
        max-width: 100vw;
    }
    .logo-text {
        font-size: 22px;
    }
    /* 账号胶囊：手机上只显示头像/图标，隐藏用户名 */
    #navAccountBtn {
        padding: 4px 8px !important;
        max-width: 44px;
        overflow: hidden;
    }
    #navAccountBtn span {
        display: none;
    }
    .theme-toggle {
        margin-left: 4px !important;
        width: 32px;
        height: 32px;
    }
    .lang-toggle {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    .nav-controls {
        gap: 4px;
        flex-shrink: 1;
        min-width: 0;
    }
    /* 展开的移动菜单铺满并支持滚动 */
    .nav-links.active {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.97);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    /* ---------- 弹窗 ---------- */
    .jfc-modal-content {
        width: 94vw !important;
        max-width: 94vw !important;
        max-height: 88vh !important;
        margin: 0 !important;
    }

    /* ---------- 社区页 ---------- */
    .community-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
    }
    .community-tabs .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .community-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .community-sort {
        width: 100%;
        justify-content: flex-start;
    }
    .post-card {
        padding: 15px !important;
    }
    .post-title {
        font-size: 1.05rem !important;
    }
    .detail-images {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .detail-header h2 {
        font-size: 1.2rem !important;
    }
    .comment-input-area .form-input {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* 防 iOS 聚焦自动放大 */
    }

    /* ---------- 个人主页 ---------- */
    .profile-header {
        flex-direction: column !important;
        text-align: center;
    }
    .profile-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    .profile-body {
        grid-template-columns: 1fr !important;
    }
    .album-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* ---------- 新闻 ---------- */
    .news-grid, .news-list {
        grid-template-columns: 1fr !important;
    }

    /* ---------- 页脚 ---------- */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 24px;
    }
    .footer-social {
        justify-content: center;
    }
}

/* 超小屏（≤480px）进一步收紧 */
@media (max-width: 480px) {
    .logo-sub {
        display: none;
    }
    .hero-title {
        font-size: 36px;
    }
    .section-title {
        font-size: 24px !important;
    }
    .album-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .post-stats {
        flex-wrap: wrap;
        gap: 8px !important;
    }
}
