/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 热血激烈色系 */
    --primary-red: #FF0040;
    --primary-orange: #FF6B00;
    --dark-red: #CC0033;
    --bright-orange: #FF8533;
    
    /* 辅助色 */
    --bg-dark: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-card: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    
    /* 特效色 */
    --neon-blue: #00FFFF;
    --neon-purple: #FF00FF;
    --energy-green: #00FF88;
    
    /* 字体 */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Noto Sans SC', sans-serif;
    
    /* 阴影和边框 */
    --shadow-glow: 0 0 30px rgba(255, 0, 64, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-neon: 2px solid var(--primary-red);
    
    /* 动画时长 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;

    /* 布局变量 */
    --navbar-height: 80px; /* 导航栏高度 */
    --footer-height: 100px; /* 页脚高度 */
    --section-padding: 100px 0; /* 页面各section的上下内边距 */
}

/* 全局样式 */
body {
    font-family: var(--font-secondary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用按钮样式 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.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 var(--transition-slow) ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-orange));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 0, 64, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 0, 64, 0.2);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 18px;
    color: white;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-orange), var(--neon-blue));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-sub {
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--primary-orange);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center; /* 垂直居中对齐 */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-normal) ease;
}

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

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

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



/* 语言切换器样式 */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px; /* 与其他导航项保持距离 */
}

.lang-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 5px;
    transition: all var(--transition-normal) ease;
}

.lang-link:hover {
    color: var(--primary-red);
    background-color: rgba(var(--primary-red-rgb), 0.1);
}



.lang-separator {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.lang-switcher .lang-link.active {
    color: var(--primary-orange); /* 激活语言使用主橙色 */
    background-color: rgba(var(--primary-orange-rgb), 0.2); /* 激活状态的背景色 */
    font-weight: bold;
}



.lang-switcher .lang-link:not(.active):hover {
    color: var(--text-primary); /* 非激活状态的悬停颜色 */
    background-color: rgba(255, 255, 255, 0.05); /* 非激活状态的悬停背景色 */
}

.lang-switcher .lang-separator {
    color: var(--text-muted); /* 分隔符颜色 */
    font-size: 1rem;
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-normal) ease;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/hero-background.png') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) contrast(1.2);
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-red) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--primary-orange) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.energy-field {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title h1 {
    font-family: var(--font-secondary);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
}

/* 故障效果 */
.glitch {
    position: relative;
    color: var(--text-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary-red);
    animation: glitch 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--neon-blue);
    animation: glitch 0.3s infinite reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-orange);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.slogan {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.hero-robot {
    position: absolute;
    right: 10%;
    bottom: 0;
    width: 300px;
    height: 400px;
    z-index: 1;
}

.robot-silhouette {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
    clip-path: polygon(40% 0%, 60% 0%, 70% 30%, 80% 50%, 75% 80%, 60% 100%, 40% 100%, 25% 80%, 20% 50%, 30% 30%);
    opacity: 0.3;
}

.energy-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--energy-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: energyPulse 1.5s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* 章节标题 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.title-text {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    position: relative;
}

.title-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
}

/* 赛事信息 */
.events {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.event-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 0, 64, 0.1);
    position: relative;
    transition: all var(--transition-normal) ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-red);
}

.main-event {
    position: relative;
    overflow: hidden;
}

.main-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
}

.event-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.event-status.live {
    background: var(--primary-red);
    color: white;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.event-status.upcoming {
    background: var(--primary-orange);
    color: white;
}

.event-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.event-date {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* 战队展示 */
.teams {
    padding: 100px 0;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 0, 64, 0.1);
    transition: all var(--transition-normal) ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-red);
}

.team-avatar {
    width: 250px;
    height: 250px;
    border-radius: 0;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 2px solid var(--primary-red);
}

.team-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    filter: brightness(0.7) contrast(1.1);
    transition: transform 0.3s ease;
}

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

.team-rank {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.team-record {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.team-stats {
    display: flex;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: visible;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* 新闻资讯 */
.news {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 64, 0.1);
    transition: all var(--transition-normal) ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-red);
}

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    height: 300px; /* 放大图片高度 */
    /* background is now set inline in index.html for logo.png */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



.news-category {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr; /* 单列 */
    justify-items: center; /* 居中 */
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 64, 0.1);
}

.contact-form h3 {
    margin-bottom: 30px;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.2);
}

.contact-form button {
    width: 100%;
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 0, 64, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Changed to make columns equal width */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal) ease;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    flex-wrap: wrap; /* Added to allow items to wrap */
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 10px 15px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-normal) ease;
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* 视频模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    z-index: 1000; /* 放置在最上层 */
    left: 0;
    top: 0;
    width: 100%; /* 全宽 */
    height: 100%; /* 全高 */
    overflow: auto; /* 如果内容溢出则添加滚动条 */
    background-color: rgba(0, 0, 0, 0.9); /* 半透明黑色背景 */
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 白皮书页面样式 */
.whitepaper-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
}

.whitepaper-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.whitepaper-content h1, .whitepaper-content h2, .whitepaper-content h3 {
    font-family: var(--font-primary);
    color: var(--primary-red);
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whitepaper-content h1 {
    font-size: 2.8rem;
    text-align: center;
    color: var(--primary-orange);
    margin-bottom: 40px;
}

.whitepaper-content h2 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}

.whitepaper-content h3 {
    font-size: 1.8rem;
    color: var(--neon-blue);
}

.whitepaper-content p {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.whitepaper-content ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 20px;
}

.whitepaper-content ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.whitepaper-content ul li::before {
    content: '»'; /* 使用特殊字符作为列表标记 */
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.whitepaper-content strong {
    color: var(--text-primary);
}

.whitepaper-content a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color var(--transition-normal) ease;
}

.whitepaper-content a:hover {
    color: var(--primary-red);
}

