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

:root {
    --color-bg: #0b0b1a;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.07);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-text: #e8e8ed;
    --color-text-secondary: #9494a8;
    --color-text-tertiary: #6b6b80;
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-2: linear-gradient(135deg, #f43f5e, #ec4899, #d946ef);
    --gradient-3: linear-gradient(135deg, #06b6d4, #3b82f6, #6366f1);
    --glow-image: rgba(99, 102, 241, 0.3);
    --glow-video: rgba(244, 63, 94, 0.3);
    --glow-chat: rgba(6, 182, 212, 0.3);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -15%;
    left: -10%;
    animation: float-1 18s infinite alternate;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: -10%;
    right: -8%;
    animation: float-2 22s infinite alternate;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-3);
    top: 40%;
    left: 50%;
    animation: float-3 20s infinite alternate;
}

@keyframes float-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 60px) scale(1.1); }
    100% { transform: translate(-30px, -40px) scale(0.95); }
}

@keyframes float-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -50px) scale(1.15); }
    100% { transform: translate(40px, 30px) scale(0.9); }
}

@keyframes float-3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 40px) scale(0.9); }
    100% { transform: translate(60px, -30px) scale(1.08); }
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    background: rgba(11, 11, 26, 0.7);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
}

.nav-link-active {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
}

.main {
    position: relative;
    z-index: 1;
}

.home-page {
    display: block;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 700px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 520px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
    padding: 20px 40px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

.modules {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.module-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.05);
}

#image.module-card:hover {
    box-shadow: 0 0 60px var(--glow-image), 0 8px 40px rgba(0, 0, 0, 0.3);
}

#video.module-card:hover {
    box-shadow: 0 0 60px var(--glow-video), 0 8px 40px rgba(0, 0, 0, 0.3);
}

#chat.module-card:hover {
    box-shadow: 0 0 60px var(--glow-chat), 0 8px 40px rgba(0, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#image .card-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 60%);
}

#video .card-glow {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.08), transparent 60%);
}

#chat .card-glow {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 60%);
}

.module-card:hover .card-glow {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.image-icon {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}

.video-icon {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
}

.chat-icon {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.sub-module {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.sub-module:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--color-border-hover);
    transform: translateX(4px);
}

.sub-module-full {
    flex-wrap: wrap;
}

.sub-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.sub-icon svg {
    width: 20px;
    height: 20px;
}

.sub-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sub-title {
    font-size: 15px;
    font-weight: 600;
}

.sub-desc {
    font-size: 12px;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-text-tertiary);
    transition: all 0.25s ease;
}

.sub-module:hover .sub-arrow {
    color: var(--color-text);
    transform: translateX(3px);
}

.chat-tags {
    display: flex;
    gap: 6px;
    margin-left: 50px;
    flex-wrap: wrap;
}

.chat-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.1);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.page-content {
    display: none;
}

.detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    animation: pageIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.detail-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.back-btn:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

.detail-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
}

.detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon svg {
    width: 40px;
    height: 40px;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.detail-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 480px;
    line-height: 1.6;
}

.detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--color-text-tertiary);
    opacity: 0.6;
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.placeholder-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.placeholder-hint {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    font-size: 13px;
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 20px 40px;
    }

    .hero-stats {
        padding: 16px 24px;
        gap: 20px;
    }

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

    .modules {
        grid-template-columns: 1fr;
        padding: 10px 20px 60px;
    }

    .module-card {
        padding: 22px;
    }

    .card-title {
        font-size: 19px;
    }

    .chat-tags {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

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

    .detail-page {
        padding: 32px 16px 60px;
    }

    .detail-title {
        font-size: 24px;
    }

    .chat-msg {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }
}