@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF0000;      /* 鲜红色 - 主色 */
    --secondary: #CC0000;    /* 深红色 - 副色 */
    --accent: #999999;       /* 银灰色 - 强调色 */
    --dark: #1a1a1a;         /* 深黑色 */
    --darker: #0a0a0a;       /* 更深的黑色 */
    --light: #ffffff;        /* 白色 */
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: var(--darker);
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(204, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Navigation */
nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(255, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav a {
    color: var(--light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: transparent;
}

nav a:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(153, 153, 153, 0.1));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
    position: relative;
    text-align: center;
    padding: 150px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 0, 0.03) 2px, rgba(255, 0, 0, 0.03) 4px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.9));
    }
}

.hero p {
    font-size: 1.8rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}

/* Content */
.content {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

.content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Season Overview Cards */
.season-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.season-card-link {
    text-decoration: none;
    display: block;
}

.season-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(40, 20, 20, 0.9));
    border: 2px solid var(--primary);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.season-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.5);
    border-color: var(--secondary);
}

.season-card-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.season-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(40, 20, 20, 0.9));
    border: 2px solid var(--primary);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.season-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 2025机器人PNG图片特殊处理 */
.season-card-image img[src*="2025-robot-main.png"] {
    object-fit: contain;
    object-position: calc(50% - 10px) 85%;
    transform: scale(0.8);
}

/* 2025机器人hover效果调整 */
.season-card:hover .season-card-image img[src*="2025-robot-main.png"] {
    transform: scale(0.95);
}

.season-logo {
    position: absolute !important;
    top: 15px;
    right: 15px;
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    background: transparent;
    border-radius: 10px;
    padding: 8px;
    border: none;
    box-shadow: none;
    z-index: 10;
}

/* 2024-2018 赛季的 LOGO 调大 */
.logo-2024,
.logo-2023,
.logo-2022,
.logo-2021,
.logo-2020,
.logo-2019,
.logo-2018 {
    width: 150px !important;
    height: 150px !important;
    top: 0px;
    right: 0px;
}

/* 2023, 2020-2018 的 LOGO 再调大一些 */
.logo-2023,
.logo-2020,
.logo-2019,
.logo-2018 {
    width: 180px !important;
    height: 180px !important;
    top: -15px;
    right: -15px;
}

/* 2023 的 LOGO 再大一点 */
.logo-2023 {
    width: 210px !important;
    height: 210px !important;
    top: -30px;
    right: -30px;
}

.season-card:hover .season-card-image img {
    transform: scale(1.1);
}

.season-card-info {
    padding: 10px;
    text-align: center;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.season-card-info h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.robot-name {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Section Divider */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 80px 0;
}

/* Season Content */
.season-content {
    margin-bottom: 100px;
    padding-top: 50px;
}

/* Season Selector (deprecated, keeping for compatibility) */
.season-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.season-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(153, 153, 153, 0.1));
    border: 2px solid var(--primary);
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.season-btn:hover,
.season-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(40, 20, 20, 0.8));
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.4);
}

.card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Robot Hero Image */
.robot-hero {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 50px;
    text-align: center;
}

.robot-hero img {
    width: 50%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.robot-hero img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.5);
}

.robot-hero-caption {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.robot-hero-name {
    margin-top: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
}

/* Back Button */
.back-btn {
    display: inline-block;
    margin-bottom: 30px;
    padding: 12px 25px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary);
    transform: translateX(-5px);
}

/* Download Button */
.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.6);
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.media-item {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
}

.media-item iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

.media-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.media-item:hover img {
    transform: scale(1.05);
}

/* Team Members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.member {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(40, 20, 20, 0.9));
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.4);
    border-color: var(--secondary);
}

.member h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Achievement List */
.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1), transparent);
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.achievement-list li:hover {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.2), transparent);
    transform: translateX(10px);
}

/* Footer */
footer {
    background: rgba(26, 26, 26, 0.95);
    border-top: 2px solid var(--primary);
    color: var(--light);
    text-align: center;
    padding: 30px;
    margin-top: 100px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 5px;
    }

    nav a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .content h2 {
        font-size: 2rem;
    }

    .card-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .season-selector {
        flex-direction: column;
    }

    .season-btn {
        width: 100%;
    }
}