/* ========================================
   君临传奇 - 攻速高爆福利版 样式表
   响应式设计 · 移动优先
   ======================================== */

/* ===== CSS 变量 ===== */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --primary-light: #ff6b6b;
    --gold: #f4a261;
    --gold-light: #ffd166;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-4: #222222;
    --light: #e0e0e0;
    --light-muted: #999;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #e63946, #f4a261);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --gradient-card: linear-gradient(180deg, #1a1a1a, #111111);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(230,57,70,0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ===== 全局重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid var(--primary);
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--light-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 导航菜单 */
.nav-list {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-list a {
    padding: 8px 16px;
    font-size: 1.05rem;
    color: var(--light-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--white);
}

.nav-list a:hover::after {
    width: 24px;
}

.nav-list a.active {
    color: var(--white);
}

.nav-list a.active::after {
    width: 24px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 主横幅 Hero ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,0.3) 0%,
        rgba(10,10,10,0.6) 50%,
        rgba(10,10,10,0.95) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 60px;
    max-width: 800px;
}

.hero-badge {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.badge-fire {
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.badge-new {
    background: var(--gold);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
    50% { box-shadow: 0 0 0 15px rgba(230,57,70,0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 4px;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gold-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--light-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* 首屏下载按钮二维码弹窗 */
.hero-qr-popup {
    position: fixed;
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
    line-height: 0;
    pointer-events: none;
}

.hero-qr-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.hero-qr-popup img {
    display: block;
    width: 140px;
    height: 140px;
}

.hero-qr-popup.visible {
    opacity: 1;
    visibility: visible;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230,57,70,0.5);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(230,57,70,0.1);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Hero 统计 */
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-muted);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== 通用区块标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-desc {
    color: var(--light-muted);
    font-size: 1rem;
}

/* ===== 游戏特色 ===== */
.features {
    padding: 100px 0;
    background: var(--dark-2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230,57,70,0.2);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--light-muted);
    line-height: 1.7;
}

/* ===== 职业介绍 ===== */
.classes {
    padding: 100px 0;
    background: var(--dark);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.class-card {
    background: var(--dark-3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.class-card.warrior:hover {
    border-color: rgba(230,57,70,0.3);
    box-shadow: 0 8px 40px rgba(230,57,70,0.2);
}

.class-card.mage:hover {
    border-color: rgba(74,144,226,0.3);
    box-shadow: 0 8px 40px rgba(74,144,226,0.2);
}

.class-card.taoist:hover {
    border-color: rgba(126,211,33,0.3);
    box-shadow: 0 8px 40px rgba(126,211,33,0.2);
}

.class-info {
    padding: 28px;
}

.class-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.class-tag {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 500;
}

.class-desc {
    font-size: 0.9rem;
    color: var(--light-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.class-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.class-skills li {
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--light-muted);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===== 福利展示 ===== */
.welfare {
    padding: 100px 0;
    background: var(--dark-2);
}

.welfare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.welfare-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.welfare-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244,162,97,0.2);
    box-shadow: var(--shadow-lg);
}

.welfare-card.highlight {
    border-color: rgba(244,162,97,0.3);
    background: linear-gradient(180deg, #1f1510, #111111);
}

.welfare-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.welfare-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.welfare-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.welfare-card p {
    font-size: 0.88rem;
    color: var(--light-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.welfare-value {
    display: inline-block;
    background: rgba(244,162,97,0.1);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(244,162,97,0.2);
}

/* ===== 装备展示 ===== */
.equipment {
    padding: 100px 0;
    background: var(--dark);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.equipment-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-item:hover {
    transform: translateY(-6px);
    border-color: rgba(230,57,70,0.3);
    box-shadow: var(--shadow-lg);
}

.equipment-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.equipment-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.equipment-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.equipment-info span {
    font-size: 0.85rem;
    color: var(--light-muted);
}



/* ===== 游戏截图 ===== */
.gallery {
    padding: 100px 0;
    background: var(--dark-2);
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 0.9rem;
    color: var(--light);
}

/* 轮播按钮 */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.gallery-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.gallery-btn.prev { left: 20px; }
.gallery-btn.next { right: 20px; }

/* 指示点 */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(230,57,70,0.6);
}

/* ===== 下载区域 ===== */
.download {
    padding: 100px 0;
    background: var(--dark);
}

.download-card {
    background: var(--dark-3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.download-content {
    padding: 50px 40px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.download-text {
    flex: 1;
}

.download-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.download-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-content > p {
    color: var(--light-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.download-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.download-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dl-label {
    font-size: 0.75rem;
    color: var(--light-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dl-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-code {
    line-height: 0;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.qr-code img {
    display: block;
    width: 120px;
    height: 120px;
}

.qr-tip {
    font-size: 0.8rem;
    color: var(--light-muted);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark-3);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--light-muted);
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--light-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

/* ===== 友情链接 ===== */
.footer-friendly {
    width: 100%;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-friendly h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.friendly-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.friendly-links a {
    font-size: 0.8rem;
    color: var(--light-muted);
    transition: var(--transition);
    padding: 2px 0;
}

.friendly-links a:hover {
    color: var(--primary);
}

.friendly-links a:not(:last-child)::after {
    content: '|';
    margin-left: 16px;
    color: rgba(255,255,255,0.1);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--light-muted);
    line-height: 1.8;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ===== 图片灯箱 ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.95rem;
    background: rgba(0,0,0,0.6);
    padding: 8px 24px;
    border-radius: 20px;
}

/* ===== 动画 ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式设计 ===== */

/* 平板 (≤1024px) */
@media (max-width: 1024px) {
    .download-content {
        padding: 40px 30px;
        flex-direction: column;
        gap: 30px;
    }

    .download-action {
        flex-direction: row;
        align-items: center;
        gap: 30px;
        width: 100%;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
    }

    .classes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 平板竖屏 (≤768px) */
@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 16px;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-list.active {
        right: 0;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }

    .nav-list a {
        padding: 14px 20px;
        font-size: 1.15rem;
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .welfare-grid {
        grid-template-columns: 1fr;
    }

    .gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .features,
    .classes,
    .welfare,
    .equipment,
    .gallery,
    .download {
        padding: 60px 0;
    }

    .download-content {
        flex-direction: column;
        gap: 30px;
    }

    .download-action {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .download-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 (≤480px) */
@media (max-width: 480px) {
    .hero-content {
        padding: 80px 16px 40px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-item {
        min-width: 60px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .gallery-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .gallery-btn.prev { left: 10px; }
    .gallery-btn.next { right: 10px; }

    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .download-content {
        padding: 30px 20px;
    }

    .download-info {
        gap: 12px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .class-info {
        padding: 20px;
    }
}
