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

:root {
    --bg-base: #06061a;
    --bg-deep: #0a0a24;
    --bg-card: rgba(20, 20, 40, 0.6);
    --bg-card-solid: #14142a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(120, 115, 245, 0.3);
    
    --c-pink: #ff6ec7;
    --c-purple: #7873f5;
    --c-blue: #4facfe;
    --c-cyan: #00f2fe;
    --c-green: #4ade80;
    --c-yellow: #fbbf24;
    --c-orange: #fb923c;
    
    --gradient-rainbow: linear-gradient(135deg, #ff6ec7 0%, #7873f5 50%, #4facfe 100%);
    --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #ff6ec7 50%, #7873f5 100%);
    --gradient-cool: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7873f5 100%);
    --gradient-success: linear-gradient(135deg, #4ade80 0%, #00f2fe 100%);
    --gradient-danger: linear-gradient(135deg, #ff6ec7 0%, #fb923c 100%);
    
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Orbitron', 'Inter', monospace;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

.app {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 20% 20%, rgba(120, 115, 245, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 10%, rgba(255, 110, 199, 0.1) 0px, transparent 50%),
        radial-gradient(at 60% 80%, rgba(79, 172, 254, 0.1) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(74, 222, 128, 0.08) 0px, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--c-pink);
    top: -200px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--c-purple);
    bottom: -150px;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--c-blue);
    top: 40%;
    right: 20%;
    animation: orbFloat3 18s ease-in-out infinite;
}

.bg-orb-4 {
    width: 350px;
    height: 350px;
    background: var(--c-cyan);
    bottom: 20%;
    left: 30%;
    animation: orbFloat4 22s ease-in-out infinite;
}

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

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -50px) scale(1.15); }
}

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

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 40px) scale(1.05); }
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(120, 115, 245, 0.03) 50%, 
        transparent 100%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: scanlineMove 8s linear infinite;
    opacity: 0.5;
}

@keyframes scanlineMove {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(120, 115, 245, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 115, 245, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--gradient-rainbow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(120, 115, 245, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-rainbow);
    border-radius: 12px;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.logo-icon {
    font-size: 20px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 1.5px;
}

.nav-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    padding: 10px 20px;
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.nav-tab:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--gradient-rainbow);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(120, 115, 245, 0.3);
}

.main {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 48px 80px;
}

.hidden {
    display: none !important;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(120, 115, 245, 0.1);
    border: 1px solid rgba(120, 115, 245, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--c-purple);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120, 115, 245, 0.2), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.badge-icon {
    font-size: 14px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.badge-version {
    padding: 2px 8px;
    background: var(--gradient-rainbow);
    border-radius: 100px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.hero-cta {
    display: flex;
    align-items: center;
    gap: 32px;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    color: white;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(120, 115, 245, 0.4);
    overflow: hidden;
    animation: gradientShift 3s ease-in-out infinite;
    font-family: inherit;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(120, 115, 245, 0.6);
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-primary:hover:not(:disabled) .btn-icon {
    transform: translateX(4px);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-rainbow);
    border-radius: 14px;
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.btn-primary:hover:not(:disabled) .btn-glow {
    opacity: 0.6;
}

.cta-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    background: rgba(120, 115, 245, 0.1);
    transform: translateY(-2px);
}

.btn-icon-small {
    font-size: 16px;
}

.hero-visual {
    position: relative;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
    perspective: 1200px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.crystal-stage {
    position: relative;
    width: 380px;
    height: 380px;
    transform-style: preserve-3d;
}

.crystal-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%) rotateX(-15deg) rotateY(45deg);
    transform-style: preserve-3d;
    animation: crystalFloat 6s ease-in-out infinite;
    cursor: grab;
}

.crystal-3d:active {
    cursor: grabbing;
}

@keyframes crystalFloat {
    0%, 100% { transform: translate(-50%, -50%) rotateX(-10deg) rotateY(0deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotateX(-10deg) rotateY(0deg) translateY(-12px); }
}

/* ===== 魔幻科技太极 ===== */
.taiji-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(0, 242, 254, 0.35) 0%,
        rgba(120, 115, 245, 0.25) 40%,
        transparent 70%);
    filter: blur(20px);
    animation: taijiGlowPulse 3s ease-in-out infinite;
}

@keyframes taijiGlowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.taiji-disk {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(to right,
        #0a0a2e 0%, #1a1248 50%,
        #d0f7ff 50%, #00f2fe 100%);
    box-shadow:
        0 0 50px rgba(0, 242, 254, 0.6),
        0 0 90px rgba(120, 115, 245, 0.45),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 242, 254, 0.55);
    overflow: hidden;
    animation: taijiSpin 14s linear infinite;
}

@keyframes taijiSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 阳半凸起（上方，亮色科技） */
.taiji-yang-half {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #00f2fe 60%, #4facfe 100%);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
}

/* 阴半凸起（下方，暗色魔幻） */
.taiji-yin-half {
    position: absolute;
    bottom: 0;
    right: 25%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1248 0%, #2d1b4e 60%, #0a0a2e 100%);
    box-shadow: 0 0 25px rgba(120, 115, 245, 0.6);
}

/* 阳中阴眼 */
.taiji-eye-yin {
    position: absolute;
    top: 13%;
    left: 37.5%;
    width: 25%;
    height: 25%;
    border-radius: 50%;
    background: radial-gradient(circle, #2d1b4e 0%, #0a0a2e 100%);
    box-shadow:
        0 0 12px rgba(120, 115, 245, 0.9),
        inset 0 0 8px rgba(0, 0, 0, 0.6);
}

/* 阴中阳眼 */
.taiji-eye-yang {
    position: absolute;
    bottom: 13%;
    right: 37.5%;
    width: 25%;
    height: 25%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #00f2fe 100%);
    box-shadow:
        0 0 14px rgba(0, 242, 254, 1),
        inset 0 0 8px rgba(255, 255, 255, 0.6);
    animation: eyeBlink 4s ease-in-out infinite;
}

@keyframes eyeBlink {
    0%, 90%, 100% { box-shadow: 0 0 14px rgba(0, 242, 254, 1), inset 0 0 8px rgba(255, 255, 255, 0.6); }
    95% { box-shadow: 0 0 30px rgba(0, 242, 254, 1), inset 0 0 12px rgba(255, 255, 255, 0.9); }
}

/* 扫描线（科技感） */
.taiji-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0, 242, 254, 0.8) 50%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
    animation: taijiScan 3s linear infinite;
    pointer-events: none;
}

@keyframes taijiScan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 八卦符文环 */
.taiji-runes {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    animation: runesSpin 24s linear infinite;
    pointer-events: none;
}

@keyframes runesSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.taiji-runes span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fbbf24;
    text-shadow:
        0 0 8px #fbbf24,
        0 0 16px rgba(251, 191, 36, 0.6);
    transform: rotate(calc(var(--i) * 45deg)) translateY(-135px) rotate(calc(var(--i) * -45deg));
}

.taiji-runes span:nth-child(odd) {
    color: #00f2fe;
    text-shadow: 0 0 8px #00f2fe, 0 0 16px rgba(0, 242, 254, 0.6);
}

.crystal-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(120, 115, 245, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: energyPulse 2s ease-in-out infinite;
    filter: blur(5px);
}

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

.crystal-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(120, 115, 245, 0.5) 0%, transparent 70%);
    filter: blur(15px);
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.2); }
}

.crystal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.crystal-ring-outer {
    width: 380px;
    height: 380px;
    animation: ringRotate 30s linear infinite;
}

.crystal-ring-inner {
    width: 280px;
    height: 280px;
    animation: ringRotate 20s linear infinite reverse;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    padding: 8px 14px;
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    animation: cardFloat 4s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.float-card .fc-num {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--c-cyan);
    font-size: 14px;
}

.fc-1 {
    top: 30px;
    left: -20px;
    animation-delay: 0s;
}

.fc-2 {
    top: 60px;
    right: -10px;
    animation-delay: 1s;
}

.fc-3 {
    bottom: 80px;
    left: -30px;
    animation-delay: 2s;
}

.fc-4 {
    bottom: 50px;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.quiz {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

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

.quiz-header {
    margin-bottom: 48px;
    padding: 24px 28px;
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.quiz-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quiz-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.label-icon {
    color: var(--c-yellow);
    animation: sparkle 1.5s ease-in-out infinite;
}

.label-count {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-cyan);
}

#progress-text {
    font-size: 24px;
}

.count-sep {
    color: var(--text-tertiary);
    margin: 0 2px;
}

.label-count span:last-child {
    color: var(--text-tertiary);
    font-size: 16px;
}

.progress-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: visible;
}

.progress-fill {
    position: relative;
    height: 100%;
    width: 0%;
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(120, 115, 245, 0.6);
}

.progress-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--c-pink) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(3px);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.progress-fill:not([style*="width: 0%"]) ~ .progress-glow {
    opacity: 1;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(120, 115, 245, 0.1), rgba(255, 110, 199, 0.05));
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    margin-top: 8px;
    animation: fadeInUp 0.5s ease-out;
}

.category-header:first-child {
    margin-top: 0;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.question-block {
    position: relative;
    padding: 24px 28px;
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    animation: questionSlideIn 0.5s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s;
}

.question-block:hover {
    border-color: var(--border-glow);
    background: rgba(20, 20, 40, 0.6);
}

.question-block:nth-child(1) { animation-delay: 0.05s; }
.question-block:nth-child(2) { animation-delay: 0.1s; }
.question-block:nth-child(3) { animation-delay: 0.15s; }
.question-block:nth-child(4) { animation-delay: 0.2s; }
.question-block:nth-child(5) { animation-delay: 0.25s; }
.question-block:nth-child(6) { animation-delay: 0.3s; }
.question-block:nth-child(7) { animation-delay: 0.35s; }
.question-block:nth-child(8) { animation-delay: 0.4s; }

@keyframes questionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--gradient-cool);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.question-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.question-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    margin-left: 44px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-left: 44px;
}

.option-btn {
    position: relative;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-family: inherit;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120, 115, 245, 0.1), transparent);
    transition: left 0.5s ease;
}

.option-btn:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    background: rgba(120, 115, 245, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.option-btn.selected {
    border-color: var(--c-pink);
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.15), rgba(120, 115, 245, 0.15));
    color: var(--text-primary);
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.3);
    transform: scale(1.02);
}

.option-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 22px;
    height: 22px;
    background: var(--gradient-rainbow);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(255, 110, 199, 0.5);
}

@keyframes checkPop {
    0% { transform: translateY(-50%) scale(0) rotate(-180deg); }
    100% { transform: translateY(-50%) scale(1) rotate(0deg); }
}

.option-btn .option-score {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-weight: 400;
}

.option-btn.selected .option-score {
    color: rgba(255, 110, 199, 0.8);
}

.quiz-footer {
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

.btn-submit {
    padding: 20px 56px;
    font-size: 16px;
}

.result {
    max-width: 800px;
    margin: 0 auto;
    animation: resultAppear 0.8s ease-out;
}

@keyframes resultAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.result-stage {
    position: relative;
    padding: 4px;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    border-radius: 24px;
    animation: gradientShift 4s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(120, 115, 245, 0.4);
}

.result-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    border-radius: 24px;
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
    animation: gradientShift 4s ease-in-out infinite;
}

.result-card {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-pink), var(--c-purple), var(--c-cyan), transparent);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.result-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
}

.result-badge {
    padding: 8px 16px;
    background: rgba(120, 115, 245, 0.15);
    color: var(--c-purple);
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    border: 1px solid rgba(120, 115, 245, 0.3);
    letter-spacing: 1px;
    transition: all 0.4s;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.score-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(120, 115, 245, 0.1), transparent, rgba(255, 110, 199, 0.1), transparent);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    z-index: 1;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(120, 115, 245, 0.5));
}

#score-ring {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number-wrap {
    display: inline-block;
}

#score-number {
    font-family: var(--font-mono);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.score-unit {
    font-size: 18px;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-weight: 600;
}

.rating-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.rating-icon {
    font-size: 48px;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes bounceIn {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.3) rotate(20deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.rating-text {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.rating-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(74, 222, 128, 0.15);
    color: var(--c-green);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    letter-spacing: 2px;
    width: fit-content;
}

.category-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.cat-score-block {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.cat-score-block:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.cat-score-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.cat-score-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cat-score-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(120, 115, 245, 0.4);
}

.cat-score-num {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-cyan);
    text-align: right;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.result-block {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s;
}

.result-block:hover {
    border-color: var(--border-glow);
    background: rgba(120, 115, 245, 0.05);
    transform: translateY(-2px);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.block-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.factor-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.factor-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.3s;
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.factor-list li:hover {
    background: rgba(120, 115, 245, 0.05);
    transform: translateX(4px);
}

.factor-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 8px var(--c-green);
}

.weakness-block .factor-list li::before {
    background: var(--c-orange);
    box-shadow: 0 0 8px var(--c-orange);
}

.tip-block {
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.1), rgba(120, 115, 245, 0.1));
    border: 1px solid rgba(255, 110, 199, 0.2);
    border-radius: 14px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.tip-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
}

.tip-icon {
    font-size: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

.tip-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.tip-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    position: relative;
}

.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 24px;
    color: var(--text-tertiary);
    font-size: 12px;
}

@media (max-width: 968px) {
    .header {
        padding: 16px 24px;
        flex-direction: column;
        gap: 16px;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
    }

    .nav-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

    .main {
        padding: 24px 24px 60px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }

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

    .hero-visual {
        height: 380px;
        order: -1;
    }

    .crystal-stage {
        width: 300px;
        height: 300px;
    }

    .crystal-3d {
        width: 140px;
        height: 140px;
    }

    .taiji-disk {
        width: 160px;
        height: 160px;
    }

    .taiji-glow {
        width: 190px;
        height: 190px;
    }

    .taiji-runes {
        width: 220px;
        height: 220px;
    }

    .taiji-runes span {
        transform: rotate(calc(var(--i) * 45deg)) translateY(-105px) rotate(calc(var(--i) * -45deg));
    }

    .crystal-ring-outer { width: 300px; height: 300px; }
    .crystal-ring-inner { width: 220px; height: 220px; }

    .options-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .question-desc {
        margin-left: 0;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .category-scores {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .score-display {
        flex-direction: column;
        text-align: center;
    }

    .result-card {
        padding: 28px 20px;
    }

    .cta-stats {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-status {
        display: none;
    }
}

/* ===== 网易云音乐顶部播放器条 ===== */
.netease-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(90deg, rgba(10, 10, 26, 0.95), rgba(20, 20, 40, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    z-index: 10000;
    transition: height 0.3s ease;
    overflow: hidden;
}

.netease-bar.expanded {
    height: 110px;
}

.netease-label {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.netease-bar iframe {
    border: none;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.netease-bar.expanded iframe {
    opacity: 1;
}

.netease-toggle {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.netease-toggle:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* 顶部播放器条占据空间，app 内容下移 */
.app {
    margin-top: 52px;
}


/* 返回销售学习系统按钮 */
.nav-tabs { flex-wrap: wrap; }
.nav-return {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s, border-color 0.3s;
}
.nav-return:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 968px) {
    .nav-return { margin-left: 0; font-size: 12px; padding: 6px 12px; }
}
