/* ==========================================================================
   特工19 - 紫色神秘风格样式表
   布局：全屏大图背景，内容居中叠加
   排版：垂直单列布局，大标题小段落
   配色：紫色#7c3aed + 深紫#5b21b6 + 霓虹紫#a78bfa
   ========================================================================== */

:root {
    --purple-primary: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-light: #a78bfa;
    --purple-neon: #c084fc;
    --dark-bg: #0f0a1e;
    --darker-bg: #050208;
    --text-white: #ffffff;
    --text-purple: #e9d5ff;
    --text-gray: #a1a1aa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
    background: var(--darker-bg);
    color: var(--text-white);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 星空背景 */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    animation: stars-move 50s linear infinite;
}

.stars2 {
    background-image:
        radial-gradient(1px 1px at 40px 60px, white, transparent),
        radial-gradient(1px 1px at 110px 90px, white, transparent),
        radial-gradient(1px 1px at 150px 30px, white, transparent);
    background-size: 250px 250px;
    animation: stars-move 100s linear infinite;
}

.stars3 {
    background-image:
        radial-gradient(1px 1px at 75px 125px, var(--purple-neon), transparent),
        radial-gradient(1px 1px at 175px 75px, var(--purple-neon), transparent);
    background-size: 300px 300px;
    animation: stars-move 150s linear infinite;
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* 侧边栏导航 */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(15, 10, 30, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
}

.nav-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--purple-primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.logo-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--purple-neon);
    text-shadow: 0 0 10px var(--purple-neon);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--purple-neon);
    background: rgba(124, 58, 237, 0.1);
}

.nav-icon {
    font-size: 20px;
}

.nav-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-icon {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--purple-neon);
    transform: scale(1.2);
}

/* 主内容区域 */
.main-content {
    margin-left: 80px;
    position: relative;
    z-index: 1;
}

/* Hero全屏区域 */
.hero-dark {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 48px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.hero-content-center {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--purple-primary);
    border-radius: 100px;
    color: var(--text-purple);
    font-size: 14px;
    margin-bottom: 32px;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.badge-star {
    color: var(--purple-neon);
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title-dark {
    margin-bottom: 48px;
}

.title-line {
    display: block;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-purple);
    letter-spacing: 8px;
    margin-bottom: 16px;
}

.title-number-dark {
    display: block;
    font-size: 120px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(124, 58, 237, 0.5);
    margin: 24px 0;
}

.hero-quote {
    max-width: 700px;
    margin: 0 auto 48px;
    padding: 32px;
    border-left: 3px solid var(--purple-primary);
    background: rgba(124, 58, 237, 0.05);
    font-style: italic;
}

.hero-quote p {
    font-size: 18px;
    line-height: 2;
    color: var(--text-purple);
    margin-bottom: 16px;
}

.hero-quote p:last-child {
    margin-bottom: 0;
}

.hero-stats-dark {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.stat-item-dark {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-purple);
    font-size: 16px;
}

.stat-icon-dark {
    color: var(--purple-neon);
    font-size: 20px;
}

.stat-divider {
    color: var(--purple-primary);
}

.hero-actions-dark {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 80px;
}

.btn-glow {
    position: relative;
    padding: 16px 48px;
    background: var(--purple-primary);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.8);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to { left: 100%; }
}

.btn-outline-dark {
    padding: 16px 48px;
    background: transparent;
    color: var(--purple-neon);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--purple-primary);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--purple-neon);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-arrow {
    font-size: 20px;
    color: var(--purple-neon);
}

.hero-image-dark {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    opacity: 0.3;
    z-index: 1;
}

.image-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    filter: blur(40px);
}

.hero-image-dark img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

/* 故事区域 */
.story-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 96px 48px;
}

.story-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-header-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 64px;
}

.section-ornament {
    color: var(--purple-neon);
    font-size: 24px;
}

.section-title-dark {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-white);
    letter-spacing: 4px;
}

.story-quote {
    margin-bottom: 48px;
    padding: 32px;
    border-left: 3px solid var(--purple-primary);
    background: rgba(124, 58, 237, 0.05);
}

.quote-text {
    font-size: 24px;
    line-height: 2;
    color: var(--text-purple);
    font-style: italic;
}

.story-text p {
    font-size: 18px;
    line-height: 2.2;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.story-text em {
    color: var(--purple-neon);
    font-style: italic;
}

/* 特性区域 */
.features-dark {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 96px 48px;
}

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

.features-list-dark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.feature-item-dark {
    text-align: center;
    padding: 48px 32px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item-dark:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--purple-primary);
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

.feature-icon-dark {
    font-size: 48px;
    color: var(--purple-neon);
    margin-bottom: 24px;
}

.feature-title-dark {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.feature-desc-dark {
    font-size: 16px;
    line-height: 2;
    color: var(--text-gray);
}

/* 画廊区域 */
.gallery-dark {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 96px 48px;
}

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

.gallery-grid-dark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.gallery-item-dark {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.gallery-item-dark img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item-dark:hover img {
    transform: scale(1.1);
}

.gallery-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 10, 30, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-dark:hover .gallery-overlay-dark {
    opacity: 1;
}

.gallery-caption {
    font-size: 20px;
    color: var(--text-white);
    font-weight: 300;
    letter-spacing: 2px;
}

/* 下载区域 */
.download-dark {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 96px 48px;
}

.download-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.download-quote {
    margin: 48px 0;
    padding: 24px;
    border-left: 3px solid var(--purple-primary);
    background: rgba(124, 58, 237, 0.05);
}

.download-quote p {
    font-size: 20px;
    color: var(--text-purple);
    font-style: italic;
}

.download-options-dark {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 64px;
}

.download-btn-dark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 48px;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid var(--purple-primary);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn-dark:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
}

.download-icon {
    font-size: 48px;
}

.download-text {
    font-size: 18px;
    color: var(--text-white);
    font-weight: 300;
    letter-spacing: 2px;
}

.download-glow {
    position: absolute;
    inset: -2px;
    background: var(--purple-primary);
    border-radius: 16px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.download-btn-dark:hover .download-glow {
    opacity: 0.5;
}

/* 页脚 */
.footer-dark {
    padding: 64px 48px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer-content-dark {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-dark {
    margin-bottom: 32px;
}

.footer-number {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo-dark p {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 2px;
    margin-top: 8px;
}

.footer-links-dark {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.footer-links-dark a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-dark a:hover {
    color: var(--purple-neon);
}

.footer-divider {
    color: var(--purple-primary);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-gray);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar-nav {
        width: 70px;
    }

    .main-content {
        margin-left: 70px;
        padding: 40px 24px;
    }

    .nav-text {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    /* 侧边栏改为顶部导航 */
    .sidebar-nav {
        width: 100%;
        height: 64px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        border-right: none;
        border-bottom: 1px solid rgba(124, 58, 237, 0.3);
        background: rgba(15, 10, 30, 0.95);
    }

    .nav-logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .nav-logo img {
        width: 40px;
        height: 40px;
    }

    .logo-number {
        font-size: 22px;
    }

    .nav-menu {
        flex-direction: row;
        gap: 6px;
        flex: 1;
        justify-content: center;
        align-items: center;
    }

    .nav-item {
        flex-direction: column;
        align-items: center;
        padding: 6px 10px;
        gap: 3px;
        min-width: 50px;
    }

    .nav-icon {
        font-size: 18px;
    }

    .nav-text {
        font-size: 11px;
        white-space: nowrap;
    }

    .nav-social {
        flex-direction: row;
        gap: 10px;
    }

    .social-icon {
        font-size: 18px;
    }

    .main-content {
        margin-left: 0;
        margin-top: 64px;
        padding: 20px 16px;
    }

    /* Hero区域优化 */
    .hero-dark {
        min-height: 85vh;
        padding: 40px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content-center {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .hero-badge-dark {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 24px;
    }

    .title-number-dark {
        font-size: 72px;
        line-height: 1;
    }

    .title-line {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-subtitle-dark {
        font-size: 15px;
        margin: 16px 0;
        line-height: 1.6;
    }

    .hero-quote-dark {
        font-size: 16px;
        padding: 20px 16px;
        margin: 28px 0;
        line-height: 1.8;
    }

    .quote-author {
        font-size: 13px;
        margin-top: 12px;
    }

    /* 内容区域优化 */
    .section-dark {
        padding: 48px 0;
    }

    .section-title-dark {
        font-size: 30px;
        margin-bottom: 28px;
    }

    /* 按钮组优化 */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
        width: 100%;
    }

    .btn-dark-primary,
    .btn-dark-secondary {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        text-align: center;
        justify-content: center;
    }

    /* 标签优化 */
    .hero-tags {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin: 24px 0;
    }

    .tag-item {
        font-size: 13px;
        padding: 6px 14px;
    }

    .features-list-dark,
    .gallery-grid-dark,
    .download-options-dark {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .download-btn-dark {
        width: 100%;
        padding: 28px 24px;
    }

    .feature-item-dark {
        padding: 24px 20px;
    }

    .feature-icon-dark {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .feature-title-dark {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .feature-desc-dark {
        font-size: 15px;
        line-height: 1.7;
    }

    /* 画廊优化 */
    .gallery-item-dark {
        height: 240px;
    }

    /* 下载卡片优化 */
    .download-card-dark {
        padding: 28px 20px;
    }

    .platform-icon-dark {
        font-size: 40px;
    }

    .platform-name-dark {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 */
    .sidebar-nav {
        height: 58px;
        padding: 6px 10px;
    }

    .nav-logo img {
        width: 34px;
        height: 34px;
    }

    .logo-number {
        font-size: 20px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-item {
        padding: 5px 8px;
        min-width: 45px;
    }

    .nav-icon {
        font-size: 16px;
    }

    .nav-text {
        font-size: 10px;
    }

    .nav-social {
        display: none;
    }

    .main-content {
        margin-top: 58px;
        padding: 16px 12px;
    }

    /* Hero区域 */
    .hero-dark {
        min-height: 75vh;
        padding: 32px 16px;
    }

    .hero-badge-dark {
        font-size: 11px;
        padding: 6px 12px;
    }

    .title-number-dark {
        font-size: 56px;
    }

    .title-line {
        font-size: 28px;
    }

    .hero-subtitle-dark {
        font-size: 14px;
    }

    .hero-quote-dark {
        font-size: 15px;
        padding: 16px 14px;
        margin: 24px 0;
    }

    .quote-author {
        font-size: 12px;
    }

    /* 按钮优化 */
    .btn-dark-primary,
    .btn-dark-secondary {
        padding: 14px 20px;
        font-size: 15px;
    }

    /* 内容区域 */
    .section-dark {
        padding: 36px 0;
    }

    .section-title-dark {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .section-subtitle-dark {
        font-size: 14px;
    }

    .feature-item-dark {
        padding: 20px 16px;
    }

    .feature-icon-dark {
        font-size: 32px;
    }

    .feature-title-dark {
        font-size: 18px;
    }

    .feature-desc-dark {
        font-size: 14px;
    }

    /* 画廊优化 */
    .gallery-item-dark {
        height: 220px;
    }

    /* 下载卡片优化 */
    .download-card-dark {
        padding: 24px 16px;
    }

    .platform-icon-dark {
        font-size: 36px;
    }

    .platform-name-dark {
        font-size: 18px;
    }
}

/* 移动端容器宽度修复 */
@media (max-width: 768px) {
    .story-container,
    .features-container,
    .gallery-container,
    .download-container {
        max-width: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .story-container,
    .features-container,
    .gallery-container,
    .download-container {
        padding: 0 12px;
    }
}

/* 移动端下载区域优化 */
@media (max-width: 768px) {
    .download-icon {
        font-size: 56px;
    }
    
    .download-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .download-icon {
        font-size: 48px;
    }
    
    .download-text {
        font-size: 18px;
    }
    
    .download-btn-dark {
        padding: 24px 20px;
    }
}
