/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6b7fd7;
    --primary-light: #8b9fe8;
    --primary-dark: #4a5bb5;
    --accent-warm: #f4a261;
    --accent-green: #2a9d8f;
    --accent-purple: #9b5de5;
    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;
    --text-primary: #eaeaea;
    --text-secondary: #a0a0b0;
    --text-muted: #707080;
    --mist-color: rgba(200, 200, 220, 0.15);
    --glow-blue: rgba(107, 127, 215, 0.6);
    --glow-orange: rgba(244, 162, 97, 0.6);
    --glow-green: rgba(42, 157, 143, 0.6);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

#app {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ===== 屏幕切换 ===== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.screen.fade-out {
    opacity: 0;
}

.screen.fade-in {
    opacity: 1;
}

/* ===== 按钮样式 ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(107, 127, 215, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 127, 215, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 10px rgba(107, 127, 215, 0.3);
    filter: brightness(0.9);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(50%);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    padding: 12px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 127, 215, 0.3);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.97);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-color: var(--text-muted) !important;
}

/* 按钮波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-btn:active {
    transform: translateY(0) scale(0.96);
}

/* ===== 登录页 ===== */
#login-screen {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 420px;
    width: 90%;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-logo {
    margin-bottom: 40px;
}

.auth-logo .game-title-large {
    font-size: 48px;
    letter-spacing: 12px;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 3px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-family: inherit;
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.auth-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-tip .link {
    color: var(--primary-light);
    cursor: pointer;
    text-decoration: underline;
}

.auth-footer {
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== 用户信息栏 ===== */
.user-info-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.user-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.logout-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.logout-btn:hover {
    background: rgba(239, 71, 111, 0.2);
    border-color: rgba(239, 71, 111, 0.4);
    color: #ef476f;
}

/* ===== 开发者工具栏 ===== */
.dev-toolbar {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: rgba(107, 127, 215, 0.15);
    border: 1px solid rgba(107, 127, 215, 0.3);
    border-radius: var(--radius-md);
    z-index: 100;
    max-width: 320px;
    backdrop-filter: blur(10px);
}

.dev-badge {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 4px;
    width: 100%;
}

.dev-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.dev-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== 烟雾缭绕效果（融合型） ===== */
.fog-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.fog-layer {
    position: absolute;
    width: 180%;
    height: 100%;
    left: -40%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(180, 185, 210, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 60%, rgba(190, 195, 220, 0.3) 0%, transparent 45%),
        radial-gradient(ellipse 70% 45% at 80% 40%, rgba(185, 190, 215, 0.32) 0%, transparent 48%),
        radial-gradient(ellipse 90% 55% at 30% 70%, rgba(175, 180, 205, 0.28) 0%, transparent 52%),
        radial-gradient(ellipse 65% 42% at 65% 25%, rgba(188, 193, 218, 0.3) 0%, transparent 46%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 2.5s ease, transform 2.5s ease;
    filter: blur(35px);
    animation: fogFlow 20s ease-in-out infinite;
}

.fog-layer::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 80%;
    top: 10%;
    left: -20%;
    background: 
        radial-gradient(ellipse 50% 35% at 30% 50%, rgba(195, 200, 225, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 70% 45%, rgba(190, 195, 220, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse 55% 38% at 50% 65%, rgba(185, 190, 215, 0.28) 0%, transparent 48%);
    border-radius: 50%;
    animation: fogSwirl1 15s ease-in-out infinite;
}

.fog-layer::after {
    content: '';
    position: absolute;
    width: 160%;
    height: 70%;
    top: 20%;
    left: -30%;
    background: 
        radial-gradient(ellipse 45% 32% at 25% 40%, rgba(188, 193, 218, 0.28) 0%, transparent 48%),
        radial-gradient(ellipse 55% 38% at 75% 55%, rgba(182, 187, 212, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse 48% 33% at 50% 35%, rgba(192, 197, 222, 0.3) 0%, transparent 50%);
    border-radius: 50%;
    animation: fogSwirl2 18s ease-in-out infinite;
}

.fog-layer.cleared {
    opacity: 0 !important;
    transform: translateY(-100px) scale(1.3);
    filter: blur(50px);
}

@keyframes fogFlow {
    0%, 100% { 
        transform: translateX(0) scale(1);
    }
    25% { 
        transform: translateX(5%) scale(1.02);
    }
    50% { 
        transform: translateX(-3%) scale(0.98);
    }
    75% { 
        transform: translateX(4%) scale(1.01);
    }
}

@keyframes fogSwirl1 {
    0%, 100% { 
        transform: translateX(-5%) translateY(0) rotate(0deg);
    }
    33% { 
        transform: translateX(8%) translateY(-3%) rotate(2deg);
    }
    66% { 
        transform: translateX(-3%) translateY(2%) rotate(-1deg);
    }
}

@keyframes fogSwirl2 {
    0%, 100% { 
        transform: translateX(3%) translateY(0) rotate(0deg);
    }
    50% { 
        transform: translateX(-6%) translateY(-2%) rotate(-2deg);
    }
}

/* ===== 启动页 ===== */
#disclaimer-screen {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-container {
    max-width: 560px;
    padding: 40px;
    text-align: center;
}

.game-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: left;
    margin-bottom: 30px;
}

.disclaimer-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--accent-warm);
}

.disclaimer-box ul {
    list-style: none;
    margin-bottom: 20px;
}

.disclaimer-box li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.disclaimer-box li::before {
    content: "·";
    position: absolute;
    left: 5px;
    color: var(--primary-color);
}

.disclaimer-box strong {
    color: var(--text-primary);
}

.hotline-box {
    background: rgba(244, 162, 97, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
}

.hotline-box p {
    font-size: 14px;
    color: var(--accent-warm);
    margin: 6px 0;
}

.hotline-box strong {
    font-size: 16px;
}

.footer-text {
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== 主菜单 ===== */
#main-menu {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-light) 100%);
}

.menu-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-title-area {
    text-align: center;
    margin-bottom: 60px;
    z-index: 2;
}

.game-title-large {
    font-size: 64px;
    font-weight: 200;
    letter-spacing: 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.menu-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 280px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.25s ease, 
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.menu-btn:hover {
    background: rgba(107, 127, 215, 0.2);
    border-color: var(--primary-color);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 127, 215, 0.2);
}

.menu-btn:active {
    transform: translateX(4px) translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(107, 127, 215, 0.15);
}

.btn-icon {
    font-size: 24px;
}

.btn-text {
    letter-spacing: 2px;
}

.mist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(107, 127, 215, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(244, 162, 97, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: mistFloat 10s ease-in-out infinite;
}

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

/* ===== 通用标题 ===== */
.section-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 8px;
    padding-top: 60px;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

/* ===== 主线进度面板 ===== */
.main-story-panel {
    max-width: 480px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(107, 127, 215, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.story-progress-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

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

.story-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.story-progress-text {
    font-size: 12px;
    color: var(--text-muted);
}

.story-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-warm));
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(107, 127, 215, 0.5);
}

.story-current-stage {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.stage-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.stage-label {
    font-size: 12px;
    color: var(--accent-warm);
    font-weight: 500;
}

.theme-label {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.stage-goal {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 12px;
    border-left: 2px solid rgba(107, 127, 215, 0.3);
}

/* ===== 关卡选择（认知之山） ===== */
#level-select {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 30%, var(--bg-light) 100%);
}

.mountain-container {
    height: 100%;
    position: relative;
    padding-bottom: 40px;
}

.mountain {
    position: relative;
    max-width: 400px;
    height: calc(100vh - 180px);
    margin: 0 auto;
}

.mountain-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 180px solid transparent;
    border-right: 180px solid transparent;
    border-bottom: 400px solid rgba(107, 127, 215, 0.15);
}

.mountain-mist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud-layer {
    position: absolute;
    left: 0;
    width: 100%;
    transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: none;
}

.cloud-layer.level-5 {
    top: 75%;
    opacity: 1;
}

.cloud-layer.level-4 {
    top: 61%;
    opacity: 1;
}

.cloud-layer.level-3 {
    top: 45%;
    opacity: 1;
}

.cloud-layer.level-2 {
    top: 29%;
    opacity: 1;
}

.cloud-layer.level-1 {
    top: 13%;
    opacity: 1;
}

.cloud-layer.cleared {
    opacity: 0;
    transform: translateY(-30px);
}

.cloud-emoji {
    font-size: 48px;
    opacity: 0.6;
    position: absolute;
    animation: cloudFloat 6s ease-in-out infinite;
}

.cloud-emoji:nth-child(1) { left: 10%; animation-delay: 0s; }
.cloud-emoji:nth-child(2) { left: 35%; animation-delay: -2s; font-size: 56px; }
.cloud-emoji:nth-child(3) { left: 60%; animation-delay: -4s; font-size: 44px; }
.cloud-emoji:nth-child(4) { left: 82%; animation-delay: -1s; }

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(10px) translateY(-5px); }
}

.level-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.level-node:hover:not(.locked) {
    transform: translateX(-50%) scale(1.1);
}

.level-node.locked {
    cursor: not-allowed;
    opacity: 0.7;
    filter: grayscale(30%);
}

.level-node.locked .node-icon {
    border-color: var(--text-muted);
    background: rgba(100, 100, 120, 0.3);
}

.level-node.locked .node-label {
    color: var(--text-muted);
}

.level-node.active .node-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(107, 127, 215, 0.3); }
    50% { box-shadow: 0 0 30px rgba(107, 127, 215, 0.6); }
}

.node-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-medium);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 8px;
}

.node-label {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    margin-bottom: 4px;
}

.node-status {
    font-size: 11px;
    color: var(--accent-green);
}

.node-status.locked {
    color: #7a7a8a;
    font-weight: 500;
}

.level-0 { bottom: 5%; }
.level-1 { bottom: 20%; }
.level-2 { bottom: 36%; }
.level-3 { bottom: 52%; }
.level-4 { bottom: 68%; }
.level-5 { bottom: 82%; }

/* ===== 知识图谱 ===== */
#knowledge-graph {
    background: var(--bg-dark);
}

.graph-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 0 var(--glow-blue);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.category-card:hover {
    background: rgba(107, 127, 215, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.category-card:hover::before {
    box-shadow: 0 0 20px 2px rgba(107, 127, 215, 0.2);
}

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

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.cat-progress {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.knowledge-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.knowledge-detail.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ===== 灵魂画像 ===== */
#soul-portrait-screen {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
}

.portrait-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.portrait-display {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.portrait-visual {
    width: 280px;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portrait-face {
    font-size: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.portrait-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.portrait-info {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.glow-meter {
    margin-bottom: 30px;
}

.glow-meter p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.glow-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-warm));
}

.trait-list {
    margin-bottom: 30px;
}

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

.trait-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.trait-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* ===== 关于页面 ===== */
#about-screen {
    background: var(--bg-dark);
}

.about-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.about-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 30px;
    line-height: 1.8;
}

.about-content h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.about-content h4 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--accent-warm);
}

.about-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.version-info {
    margin-top: 30px;
    text-align: center;
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

/* ===== 存档选择页面 ===== */
#save-select {
    background: var(--bg-dark);
}

.save-select-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.save-slots {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.save-slot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.save-slot:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.save-slot-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.save-slot-info {
    flex: 1;
    min-width: 0;
}

.save-slot-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.save-slot-progress {
    font-size: 13px;
    color: var(--accent-green);
    margin-bottom: 2px;
}

.save-slot-date {
    font-size: 12px;
    color: var(--text-muted);
}

.save-slot-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.slot-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
}

.slot-btn:hover {
    transform: scale(1.1);
}

.play-btn:hover {
    background: rgba(42, 157, 143, 0.3);
}

.delete-btn:hover {
    background: rgba(239, 71, 111, 0.3);
}

.new-save-form {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.new-save-form h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.new-save-form .input-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.name-input {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
    font-family: inherit;
    margin-bottom: 20px;
}

.name-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.name-input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* ===== 关卡通用样式 ===== */
.level-screen {
    background: rgba(20, 20, 40, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.level-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.level-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 70px;
}

.level-header h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 4px;
}

.level-progress {
    position: absolute;
    right: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 弹窗 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
    backdrop-filter: blur(4px);
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 300ms ease-in-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.report-modal {
    max-width: 600px;
}

.report-modal h2 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 4px;
}

.report-actions {
    margin-top: 30px;
    text-align: center;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast:not(.hidden) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.hidden {
    display: none;
}

/* ===== 小游戏画布 ===== */
.mini-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.mini-game-header .btn-back {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.mini-game-header .btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

#mini-game-title {
    font-size: 18px;
    font-weight: bold;
}

.mini-game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 70px);
    background: #1a1b26;
}

#game-canvas {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* ===== 伙伴对话系统 ===== */
.companion-dialogue-box {
    background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
    border: 2px solid #6b7fd7;
    border-radius: 20px;
    padding: 30px;
    max-width: 550px;
    width: 90%;
    position: relative;
    animation: dialoguePop 0.3s ease;
}

@keyframes dialoguePop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.companion-avatar {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

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

.companion-name {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 15px;
}

.companion-dialogue-text {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    min-height: 80px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.companion-dialogue-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.choice-btn {
    background: rgba(107, 127, 215, 0.2);
    border: 1px solid #6b7fd7;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s ease;
}

.choice-btn:hover {
    background: rgba(107, 127, 215, 0.4);
    transform: translateX(5px);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .game-title {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .game-title-large {
        font-size: 42px;
        letter-spacing: 8px;
    }
    
    .menu-btn {
        width: 240px;
    }
    
    .knowledge-categories {
        grid-template-columns: 1fr;
    }
    
    .portrait-display {
        flex-direction: column;
    }
    
    .constellation-sky {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        min-height: 600px;
    }
    
    .overall-progress-stats {
        gap: 20px;
    }
    
    .overall-stat-value {
        font-size: 22px;
    }
    
    .overview-constellation-icon {
        font-size: 24px;
    }
    
    .overview-constellation-name {
        font-size: 10px;
    }
    
    .constellation-detail-header {
        padding: 20px;
    }
    
    .constellation-detail-icon {
        font-size: 44px;
    }
    
    .constellation-detail-name {
        font-size: 20px;
    }
    
    .constellation-detail-body {
        padding: 18px;
    }
}

/* ===== 帮助按钮和弹窗 ===== */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    background: rgba(107, 127, 215, 0.2);
    border-radius: 50%;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.help-btn:hover {
    background: rgba(107, 127, 215, 0.4);
    transform: scale(1.1);
}

.all-traits-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.all-traits-modal.hidden {
    display: none;
}

.all-traits-content {
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

.all-traits-content h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: 2px;
}

.all-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.all-trait-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.all-trait-item.yours {
    border-color: var(--primary-color);
    background: rgba(107, 127, 215, 0.1);
}

.all-trait-item.yours::after {
    content: "（你的类型）";
    display: block;
    font-size: 11px;
    color: var(--primary-light);
    margin-top: 8px;
}

.all-trait-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.all-trait-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.all-trait-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== 全局动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(107, 127, 215, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(107, 127, 215, 0.6)); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(107, 127, 215, 0.3),
                    0 0 10px rgba(107, 127, 215, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(107, 127, 215, 0.6),
                    0 0 40px rgba(107, 127, 215, 0.3);
    }
}

.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.6s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.5s ease forwards; }
.animate-bounce { animation: bounce 1s ease infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* 粒子背景效果 */
.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(107, 127, 215, 0.4);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    box-shadow: 0 0 6px rgba(107, 127, 215, 0.5);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 卡片悬浮效果增强 */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 按钮点击效果 */
.btn-press:active {
    transform: scale(0.97);
}

/* 渐入列表项 */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }

/* 闪光效果 */
.shimmer-effect {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.typewriter-active {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--primary-color);
    font-weight: 300;
}

.typewriter-cursor-blink {
    animation: typewriter-blink 0.75s step-end infinite;
}

@keyframes typewriter-blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.ritual-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    animation: ritualFadeIn 0.5s ease forwards;
    backdrop-filter: blur(4px);
}

@keyframes ritualFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ritual-choice-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    width: 90%;
    max-width: 600px;
    text-align: center;
    animation: ritualScaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ritualScaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.ritual-question {
    font-size: 22px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    min-height: 80px;
}

.ritual-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ritual-option {
    position: relative;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: ritualOptionIn 0.6s ease forwards;
}

@keyframes ritualOptionIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ritual-option:hover {
    background: rgba(107, 127, 215, 0.2);
    border-color: var(--primary-color);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 32px rgba(107, 127, 215, 0.3);
}

.ritual-option:active {
    transform: translateX(4px) scale(0.98);
}

.ritual-option.chosen {
    background: rgba(244, 162, 97, 0.2);
    border-color: var(--accent-warm);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(244, 162, 97, 0.4);
    animation: ritualChosen 0.6s ease;
}

@keyframes ritualChosen {
    0% { transform: scale(1); }
    30% { transform: scale(0.95); }
    60% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

.ritual-option-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(244, 162, 97, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    animation: ritualGlowPulse 3s ease-in-out infinite;
}

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

.ritual-option:hover .ritual-option-glow {
    opacity: 1;
}

.ritual-option-text {
    position: relative;
    z-index: 1;
}

.ritual-feedback-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    width: 90%;
    max-width: 550px;
    padding: 36px;
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.95), rgba(20, 20, 50, 0.95));
    border: 2px solid rgba(107, 127, 215, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: ritualFeedbackIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ritualFeedbackIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

.ritual-feedback-text {
    font-size: 16px;
    line-height: 2;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 1px;
    white-space: pre-wrap;
}

.ending-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ending-content {
    text-align: center;
    color: #fff;
    z-index: 10;
}

.ending-title {
    font-size: 48px;
    font-weight: 200;
    letter-spacing: 12px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: endingTitleGlow 3s ease-in-out infinite;
}

@keyframes endingTitleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8)); }
}

.ending-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.ending-traits {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ending-trait {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 2px;
}

.ending-philosophy {
    max-width: 500px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.ending-continue {
    pointer-events: auto;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-warm));
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    animation: endingBtnPulse 2s ease-in-out infinite;
}

@keyframes endingBtnPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(107, 127, 215, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(244, 162, 97, 0.6); }
}

.ending-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(244, 162, 97, 0.6);
}

.memory-scenes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.memory-scene {
    position: absolute;
    width: 150px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    animation: memoryAppear 1s ease forwards;
}

@keyframes memoryAppear {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    box-shadow: 0 0 8px rgba(107, 127, 215, 0.4);
}

::-webkit-scrollbar-thumb:active {
    background: var(--primary-dark);
}

/* Firefox滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.03);
}

/* 选中文字效果 */
::selection {
    background: rgba(107, 127, 215, 0.3);
    color: var(--text-primary);
}

/* ===== 徽章墙 ===== */
.badge-wall-container {
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.badge-wall-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 20px;
}

.badge-wall-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.1), rgba(244, 162, 97, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-progress {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.badge-count {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-warm);
}

.badge-total {
    font-size: 24px;
    color: var(--text-muted);
}

.badge-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-left: 10px;
}

.badge-progress-bar {
    max-width: 400px;
    margin: 0 auto;
    height: 8px;
}

.badge-category {
    margin-bottom: 30px;
}

.badge-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-category-header .cat-icon {
    font-size: 24px;
}

.badge-category-header .cat-name {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.badge-category-header .cat-count {
    font-size: 14px;
    color: var(--text-muted);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.badge-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.badge-item.unlocked {
    border-color: rgba(244, 162, 97, 0.3);
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(107, 127, 215, 0.05));
}

.badge-item.unlocked:hover {
    border-color: var(--accent-warm);
    box-shadow: 0 0 25px rgba(244, 162, 97, 0.3), 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px) scale(1.02);
}

.badge-item.locked {
    opacity: 0.5;
}

.badge-icon {
    font-size: 36px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.badge-item.unlocked:hover .badge-icon {
    transform: scale(1.1);
}

.badge-name {
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.4;
}

.badge-item.unlocked .badge-name {
    color: var(--text-primary);
}

/* 徽章解锁通知 */
.badge-unlock-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-warm);
    box-shadow: 0 10px 40px rgba(244, 162, 97, 0.3);
    z-index: 10000;
    transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    max-width: 350px;
    opacity: 0;
}

.badge-unlock-notification.show {
    right: 20px;
    opacity: 1;
}

.badge-unlock-icon {
    font-size: 48px;
    animation: badgeBounce 1s ease infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.badge-unlock-text {
    flex: 1;
}

.unlock-title {
    font-size: 14px;
    color: var(--accent-warm);
    font-weight: 600;
    margin-bottom: 5px;
}

.unlock-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.unlock-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== 视图切换 ===== */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== 星座图谱 ===== */
.constellation-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.constellation-sky {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, #0a0a1f 0%, #1a1a3e 30%, #2d1b4e 60%, #1a1a3e 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.sky-stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.sky-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: var(--min-opacity, 0.3); 
        transform: scale(0.8);
    }
    50% { 
        opacity: var(--max-opacity, 1); 
        transform: scale(1.2);
    }
}

.meteor {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.meteor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255,255,255,0.8);
}

@keyframes meteorFall {
    0% {
        opacity: 0;
        transform: translateY(-100px) translateX(0) rotate(45deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(600px) translateX(300px) rotate(45deg);
    }
}

.constellation-group {
    position: relative;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.constellation-group:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 127, 215, 0.3);
    transform: scale(1.02);
}

.constellation-name-tag {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    z-index: 10;
    white-space: nowrap;
}

.constellation-icon {
    font-size: 14px;
}

.star {
    position: absolute;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.star-inner {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.star.lit .star-inner {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: starPulse 2s ease-in-out infinite;
}

.star.partial .star-inner {
    background: rgba(255, 255, 255, calc(0.3 + var(--partial-opacity, 0) * 0.7));
    box-shadow: 0 0 calc(5px + var(--partial-opacity, 0) * 5px) rgba(255, 255, 255, calc(0.3 + var(--partial-opacity, 0) * 0.5));
}

@keyframes starPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(244, 162, 97, 0.5);
    }
}

.star-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.constellation-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 0.5;
    fill: none;
    transition: all 0.5s ease;
}

.constellation-line.lit {
    stroke: rgba(244, 162, 97, 0.6);
    stroke-width: 0.8;
    filter: drop-shadow(0 0 2px rgba(244, 162, 97, 0.5));
}

.constellation-line.partial {
    stroke: rgba(244, 162, 97, 0.3);
    stroke-width: 0.6;
}

.constellation-progress-ring {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.constellation-group:hover .constellation-progress-ring {
    opacity: 1;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.constellation-info {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.constellation-hint {
    font-size: 14px;
    color: var(--text-muted);
}

.star.unlocking .star-inner {
    animation: starUnlock 1s ease-out forwards;
}

@keyframes starUnlock {
    0% {
        transform: scale(0.5);
        opacity: 0.3;
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(2);
        opacity: 1;
        box-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(244, 162, 97, 0.8);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

.star.unlocking .star-glow {
    animation: glowExpand 1s ease-out forwards;
}

@keyframes glowExpand {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(3);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

.constellation-group.complete .star.lit .star-inner {
    animation: constellationCompleteFlash 2s ease-in-out;
}

@keyframes constellationCompleteFlash {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    25% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 50px rgba(244, 162, 97, 0.8);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(155, 93, 229, 0.6);
    }
    75% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 50px rgba(42, 157, 143, 0.7);
    }
}

.stardust-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
}

@keyframes stardustFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx, 50px), var(--dy, -100px)) scale(0);
    }
}

.overview-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.overview-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.overview-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.overview-btn.active {
    background: var(--accent-warm);
    color: #fff;
    border-color: var(--accent-warm);
}

.constellation-overview {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, #050515 0%, #0f0f2d 40%, #1a1040 70%, #0f0f2d 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
}

.overview-sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.overview-constellation {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: var(--radius-md);
}

.overview-constellation:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

.overview-constellation-icon {
    font-size: 32px;
    text-align: center;
    margin-bottom: 4px;
}

.overview-constellation-name {
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
    white-space: nowrap;
}

.overview-constellation.complete .overview-constellation-icon {
    animation: overviewGlow 2s ease-in-out infinite;
}

@keyframes overviewGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(244, 162, 97, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(244, 162, 97, 0.9)); }
}

.overview-mini-stars {
    position: relative;
    width: 60px;
    height: 40px;
    margin: 0 auto;
}

.overview-mini-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
}

.overview-mini-star.lit {
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: miniStarTwinkle 2s ease-in-out infinite;
}

@keyframes miniStarTwinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== 音效按钮 ===== */
.audio-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    background: rgba(107, 127, 215, 0.3);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* ===== 音量控制面板 ===== */
.audio-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 280px;
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: audioPanelSlide 0.3s ease;
}

@keyframes audioPanelSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.audio-panel.hidden {
    display: none;
}

.audio-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
    font-weight: 500;
}

.audio-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.audio-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.audio-panel-content {
    padding: 20px;
}

.volume-control {
    margin-bottom: 20px;
}

.volume-control:last-child {
    margin-bottom: 0;
}

.volume-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.volume-label span:last-child {
    color: var(--primary-light);
    font-weight: 500;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-slider-container input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(107, 127, 215, 0.4);
}

.volume-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider-container input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(107, 127, 215, 0.4);
}

.mute-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.overall-progress {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.1), rgba(155, 93, 229, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.overall-progress-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.overall-stat {
    text-align: center;
}

.overall-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-warm);
}

.overall-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.starry-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.starry-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #6b7fd7 0%, 
        #9b5de5 30%, 
        #f4a261 60%, 
        #ffd700 100%);
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.starry-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10px 3px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 30px 6px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 50px 2px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 70px 8px, rgba(255,255,255,0.7), transparent);
    background-size: 80px 12px;
    animation: progressStars 2s linear infinite;
}

@keyframes progressStars {
    0% { background-position: 0 0; }
    100% { background-position: 80px 0; }
}

.constellation-detail-modal .modal-content {
    max-width: 550px;
    padding: 0;
    overflow: hidden;
}

.constellation-detail-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple));
    padding: 30px;
    text-align: center;
    position: relative;
}

.constellation-detail-icon {
    font-size: 56px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.constellation-detail-name {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.constellation-detail-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.constellation-detail-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.detail-progress-section {
    margin-bottom: 20px;
}

.detail-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-next-star {
    background: rgba(244, 162, 97, 0.1);
    border: 1px solid rgba(244, 162, 97, 0.3);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.detail-next-star-text {
    font-size: 13px;
    color: var(--accent-warm);
}

.detail-next-star-count {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-warm);
}

.knowledge-list-section h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.knowledge-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.knowledge-mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.knowledge-mini-item.learned {
    background: rgba(42, 157, 143, 0.1);
}

.knowledge-mini-item:hover {
    background: rgba(255,255,255,0.08);
}

.knowledge-mini-check {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.knowledge-mini-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.knowledge-mini-item.learned .knowledge-mini-name {
    color: var(--text-primary);
}

.knowledge-mini-category {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-view-full-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-view-full-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 127, 215, 0.4);
}

.constellation-complete-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.95), rgba(255, 215, 0, 0.95));
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    z-index: 30;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.constellation-complete-banner.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ===== 小游戏入口按钮 ===== */
.mini-game-entry {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.mini-game-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.15), rgba(244, 162, 97, 0.05));
    border: 2px solid var(--accent-warm);
    color: var(--accent-warm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mini-game-btn:hover {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.25), rgba(244, 162, 97, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.mini-game-btn:active {
    transform: translateY(0);
}

.mini-game-icon {
    font-size: 20px;
}

.mini-game-text {
    font-size: 14px;
}

/* ===== 伙伴状态UI ===== */
.companion-status {
    position: fixed;
    top: 60px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(155, 93, 229, 0.4);
    border-radius: 30px;
    z-index: 50;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.companion-status:hover {
    background: rgba(26, 26, 46, 0.95);
    border-color: rgba(155, 93, 229, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
}

.companion-status-avatar {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

.companion-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.companion-status-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.companion-status-affinity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.affinity-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.affinity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-warm), #ffd700);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.affinity-value {
    font-size: 11px;
    color: var(--text-muted);
}

.companion-status-label {
    font-size: 10px;
    color: var(--accent-purple);
    padding: 2px 8px;
    background: rgba(155, 93, 229, 0.15);
    border-radius: 10px;
}

@media (max-width: 600px) {
    .companion-status {
        top: auto;
        bottom: 20px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .companion-status-avatar {
        font-size: 24px;
    }
    
    .affinity-bar {
        width: 60px;
    }
}

/* 伙伴对话模态框样式补充 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay[style*="display: none"] {
    display: none !important;
}

/* ===== 最终灵魂肖像报告 ===== */
.soul-report-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
}

.soul-report-content {
    max-height: 75vh;
    overflow-y: auto;
    padding: 0;
}

.final-soul-report {
    background: linear-gradient(180deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    min-height: 100%;
}

.report-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple));
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.report-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

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

.report-glow-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

.report-portrait-icon {
    font-size: 48px;
}

.report-title {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.report-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

.report-glow-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.glow-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.glow-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-warm);
}

.report-sections {
    padding: 20px;
}

.report-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.section-icon {
    font-size: 24px;
}

.section-header h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(107, 127, 215, 0.2);
    color: var(--primary-light);
    border-radius: 12px;
}

.trait-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.trait-mini-card {
    background: rgba(107, 127, 215, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(107, 127, 215, 0.15);
}

.trait-mini-card.green {
    background: rgba(42, 157, 143, 0.08);
    border-color: rgba(42, 157, 143, 0.15);
}

.trait-mini-card.blue {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.15);
}

.trait-mini-card.teal {
    background: rgba(26, 188, 156, 0.08);
    border-color: rgba(26, 188, 156, 0.15);
}

.trait-mini-card.pink {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.15);
}

.trait-mini-card.red {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.15);
}

.trait-mini-card.orange {
    background: rgba(244, 162, 97, 0.08);
    border-color: rgba(244, 162, 97, 0.15);
}

.trait-mini-card.purple {
    background: rgba(155, 93, 229, 0.08);
    border-color: rgba(155, 93, 229, 0.15);
}

.trait-mini-card.gold {
    background: rgba(241, 196, 15, 0.08);
    border-color: rgba(241, 196, 15, 0.15);
}

.trait-mini-card.indigo {
    background: rgba(52, 73, 94, 0.15);
    border-color: rgba(52, 73, 94, 0.25);
}

.trait-mini-card.gradient {
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.15), rgba(244, 162, 97, 0.15));
    border-color: rgba(155, 93, 229, 0.25);
}

.trait-mini-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.trait-mini-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.trait-mini-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.subsection {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection.purple {
    background: rgba(155, 93, 229, 0.05);
}

.subsection h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subsection p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.trait-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trait-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(244, 162, 97, 0.15);
    color: var(--accent-warm);
    border-radius: 12px;
    font-size: 12px;
}

.compare-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: start;
    background: rgba(107, 127, 215, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.compare-side h5 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.compare-side p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.compare-arrow {
    color: var(--accent-warm);
    font-size: 20px;
    padding-top: 20px;
    text-align: center;
}

.process-bar-item {
    margin-bottom: 10px;
}

.process-bar-item:last-child {
    margin-bottom: 0;
}

.process-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.process-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.process-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-warm));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.intelligence-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 6px;
}

.intelligence-item:last-child {
    margin-bottom: 0;
}

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

.intel-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.intel-score {
    font-size: 13px;
    color: var(--accent-purple);
    font-weight: 500;
}

.style-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.stat-row {
    display: flex;
    gap: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-green);
}

.progress-bar-small {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-green));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-fill-small.warning {
    background: linear-gradient(90deg, var(--accent-warm), #e74c3c);
}

.growth-section {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05), rgba(244, 162, 97, 0.05));
    border-color: rgba(42, 157, 143, 0.15);
}

.growth-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}

.growth-start,
.growth-end {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 16px;
}

.growth-start h5,
.growth-end h5 {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.growth-start p,
.growth-end p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.growth-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.arrow-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-warm));
}

.arrow-text {
    font-size: 12px;
    color: var(--accent-warm);
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(244, 162, 97, 0.15);
    border-radius: 8px;
}

.growth-milestones {
    margin-bottom: 16px;
}

.growth-milestones h5 {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.milestones-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    position: relative;
}

.milestone-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.milestone-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.milestone-step {
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.growth-summary h5 {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.growth-summary p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.summary-section {
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.08), rgba(107, 127, 215, 0.08));
    border-color: rgba(155, 93, 229, 0.2);
}

.final-portrait-display {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.portrait-glow-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.3), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

.portrait-center {
    text-align: center;
}

.portrait-emoji {
    font-size: 48px;
    margin-bottom: 8px;
}

.portrait-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.portrait-glow-text {
    font-size: 12px;
    color: var(--accent-warm);
}

.summary-traits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.summary-trait-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
}

.summary-trait-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.summary-trait-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.glow-comment {
    background: rgba(244, 162, 97, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.glow-comment h5 {
    font-size: 13px;
    color: var(--accent-warm);
    margin-bottom: 8px;
}

.glow-comment p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.final-quote blockquote {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
}

.final-quote footer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: normal;
}

.report-footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.2);
}

.report-footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

.soul-report-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.soul-report-actions .btn-primary,
.soul-report-actions .btn-secondary {
    flex: 1;
    max-width: 200px;
}

/* 徽章解锁通知样式补充 */
.badge-unlock-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
    border: 1px solid var(--accent-warm);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 3000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
}

.badge-unlock-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.badge-unlock-icon {
    font-size: 40px;
    flex-shrink: 0;
    animation: bounce 1s ease infinite;
}

.badge-unlock-text {
    flex: 1;
}

.unlock-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-warm);
    margin-bottom: 4px;
}

.unlock-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.unlock-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .soul-report-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .compare-section {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .compare-arrow {
        padding: 0;
        transform: rotate(90deg);
    }
    
    .growth-compare {
        grid-template-columns: 1fr;
    }
    
    .growth-arrow {
        flex-direction: row;
        padding: 8px 0;
    }
    
    .arrow-line {
        width: 100%;
        height: 2px;
    }
    
    .trait-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .soul-report-actions {
        flex-direction: column;
    }
    
    .soul-report-actions .btn-primary,
    .soul-report-actions .btn-secondary {
        max-width: 100%;
    }
}

/* ===== 成长足迹页面 ===== */
#growth-screen {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-light) 100%);
}

.growth-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.growth-content {
    margin-top: 20px;
}

.growth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.15), rgba(244, 162, 97, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.player-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.2), rgba(244, 162, 97, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 0 20px rgba(107, 127, 215, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

.avatar-icon {
    font-size: 40px;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.player-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
}

.achievement-points-display {
    text-align: right;
    flex: 1;
    max-width: 300px;
}

.points-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.points-value {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-warm), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.points-progress {
    width: 100%;
}

.points-progress .progress-bar {
    height: 8px;
    margin-bottom: 8px;
}

.points-next {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-warm));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-content {
    margin-bottom: 12px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-total {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.time-value {
    font-size: 18px;
    font-weight: 600;
}

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

.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: width 1s ease;
}

.stat-levels .stat-bar-fill {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.stat-knowledge .stat-bar-fill {
    background: linear-gradient(90deg, var(--primary-color), #9b5de5);
}

.stat-badges .stat-bar-fill {
    background: linear-gradient(90deg, var(--accent-warm), #ffd700);
}

.stat-constellations .stat-bar-fill {
    background: linear-gradient(90deg, #9b5de5, #ff6b9d);
}

.stat-glow .stat-bar-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-warm));
}

.stat-time .stat-bar-fill {
    background: linear-gradient(90deg, #2a9d8f, #4caf50);
}

/* 成长区块 */
.growth-section {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.section-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 关卡时间线 */
.level-timeline {
    position: relative;
    padding-left: 30px;
}

.level-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-medium);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-dot {
    background: linear-gradient(135deg, var(--accent-green), #4caf50);
    border-color: var(--accent-green);
    color: white;
    box-shadow: 0 0 15px rgba(42, 157, 143, 0.4);
}

.timeline-item.unlocked .timeline-dot {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(107, 127, 215, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-item.locked .timeline-dot {
    opacity: 0.5;
}

.dot-icon {
    font-size: 14px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.timeline-item.completed .timeline-content {
    border-left: 3px solid var(--accent-green);
}

.timeline-item.unlocked .timeline-content {
    border-left: 3px solid var(--primary-color);
}

.timeline-level {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.timeline-item.completed .timeline-status {
    color: var(--accent-green);
}

.timeline-line {
    position: absolute;
    left: -22px;
    top: 36px;
    bottom: -8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.timeline-item.completed .timeline-line {
    background: var(--accent-green);
    opacity: 0.5;
}

/* 小游戏成绩 */
.mini-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.mini-game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-game-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(244, 162, 97, 0.3);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.1);
}

.mini-game-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.mini-game-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mini-game-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.score-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-warm);
}

.score-rank {
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--accent-warm), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 1px solid rgba(244, 162, 97, 0.3);
    border-radius: 4px;
}

/* 成长足迹响应式 */
@media (max-width: 768px) {
    .growth-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .player-profile {
        flex-direction: column;
    }
    
    .achievement-points-display {
        text-align: center;
        max-width: 100%;
    }
    
    .points-next {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .time-value {
        font-size: 14px;
    }
    
    .mini-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-game-grid {
        grid-template-columns: 1fr;
    }
    
    .points-value {
        font-size: 32px;
    }
}

/* ===== 关卡加载效果 ===== */
.level-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
}

.level-loader.show {
    opacity: 1;
    visibility: visible;
}

.level-loader-content {
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 400ms ease;
}

.level-loader.show .level-loader-content {
    transform: scale(1);
    opacity: 1;
}

.level-loader-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: loaderFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(107, 127, 215, 0.6));
}

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

.level-loader-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-loader-text {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.level-loader-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.level-loader-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.level-loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.level-loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.level-loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== 数字滚动动画 ===== */
.number-roll {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ===== Toast动画优化 ===== */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), visibility 300ms ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.hidden {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== 知识详情弹窗动画增强 ===== */
.knowledge-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 300ms ease-in-out, 
                visibility 300ms ease-in-out;
}

.knowledge-detail:not(.hidden) {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.knowledge-detail.hidden {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== 存档卡片悬停效果增强 ===== */
.save-slot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    cursor: pointer;
}

.save-slot:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ===== 星座图谱卡片悬停效果增强 ===== */
.constellation-group {
    position: relative;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.constellation-group:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 127, 215, 0.3);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ===== 成长足迹统计卡片增强 ===== */
.stat-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ===== 通用按钮点击效果类 ===== */
.btn-clickable {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-clickable:hover {
    transform: translateY(-2px);
}

.btn-clickable:active {
    transform: scale(0.97);
}

/* ===== 渐显动画类 ===== */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.animate-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.animate-stagger > *:nth-child(10) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(11) { animation-delay: 0.55s; }
.animate-stagger > *:nth-child(12) { animation-delay: 0.6s; }

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

/* ===== 灵魂肖像容器增强 ===== */
.portrait-visual {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portrait-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(107, 127, 215, 0.2);
    border-color: rgba(107, 127, 215, 0.3);
}

/* ===== 等级节点悬停增强 ===== */
.level-node {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.3s ease,
                opacity 0.3s ease;
}

.level-node:hover:not(.locked) {
    transform: translateX(-50%) scale(1.15);
    filter: drop-shadow(0 0 15px var(--glow-blue));
}

.level-node:active:not(.locked) {
    transform: translateX(-50%) scale(1.05);
}

/* ===== 视觉系统 Canvas 背景 ===== */
.visual-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.opening-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.opening-canvas.active {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* ===== 半透明卡片风格 ===== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
    overflow-y: auto;
    z-index: 1;
}

.level-container {
    position: relative;
    z-index: 1;
}

.menu-container,
.auth-container,
.disclaimer-container,
.save-select-container,
.mountain-container,
.graph-container,
.portrait-container,
.growth-page-container,
.about-container,
.badge-wall-container {
    position: relative;
    z-index: 1;
}

/* ===== 主菜单增强 ===== */
#main-menu {
    background: transparent;
}

.menu-buttons {
    position: relative;
    z-index: 2;
}

.menu-title-area {
    position: relative;
    z-index: 2;
}

.user-info-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ===== 关卡头部半透明效果 ===== */
.level-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    position: relative;
    min-height: 70px;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.level-header h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 4px;
}

.level-progress {
    position: absolute;
    right: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
}

/* ===== 伙伴对话框 Canvas 头像 ===== */
.companion-avatar {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.companion-avatar canvas {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
}

/* ===== 伙伴状态 Widget ===== */
.companion-status {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.companion-status:hover {
    background: rgba(107, 127, 215, 0.2);
    border-color: var(--primary-color);
    transform: translateX(-4px);
}

.companion-status-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.companion-status-avatar canvas {
    width: 40px;
    height: 40px;
}

/* ===== 登录页半透明卡片 ===== */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

#login-screen {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

#disclaimer-screen {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: left;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* ===== 关卡内容半透明卡片 ===== */
.level-content {
    position: relative;
    z-index: 1;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .user-info-bar {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .companion-status {
        top: 70px;
        right: 10px;
        padding: 8px 12px;
    }
}

/* ===== 星野侧边评论气泡 ===== */
.companion-side-comment {
    position: fixed;
    bottom: 100px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 200;
    max-width: 280px;
}

.companion-side-comment.show {
    opacity: 1;
    transform: translateY(0);
}

.companion-side-comment.left {
    left: 20px;
}

.companion-side-comment.right {
    right: 20px;
    flex-direction: row-reverse;
}

.side-comment-avatar {
    font-size: 32px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
    animation: side-avatar-float 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes side-avatar-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

.side-comment-bubble {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    flex: 1;
}

.companion-side-comment.left .side-comment-bubble::before {
    content: '';
    position: absolute;
    left: -7px;
    bottom: 12px;
    border: 7px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.97);
}

.companion-side-comment.right .side-comment-bubble::before {
    content: '';
    position: absolute;
    right: -7px;
    bottom: 12px;
    border: 7px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.97);
}

.side-comment-name {
    display: block;
    font-size: 11px;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 3px;
}

.side-comment-text {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 768px) {
    .companion-side-comment {
        bottom: 90px;
        max-width: 220px;
    }
    
    .companion-side-comment.left {
        left: 12px;
    }
    
    .companion-side-comment.right {
        right: 12px;
    }
    
    .side-comment-avatar {
        font-size: 26px;
    }
    
    .side-comment-text {
        font-size: 12px;
    }
}

/* ===== 关卡开场介绍 ===== */
.level-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(8px);
}

.level-intro-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.level-intro-content {
    text-align: center;
    max-width: 400px;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.15), rgba(255, 183, 77, 0.1));
    border: 1px solid rgba(107, 127, 215, 0.3);
    border-radius: 24px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-intro-overlay.show .level-intro-content {
    transform: translateY(0) scale(1);
}

.intro-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

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

.intro-stage {
    font-size: 13px;
    color: var(--accent-warm);
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.intro-level-name {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-theme {
    margin-bottom: 20px;
}

.theme-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(107, 127, 215, 0.2);
    border: 1px solid rgba(107, 127, 215, 0.4);
    border-radius: 20px;
    font-size: 14px;
    color: var(--accent-blue);
}

.intro-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.intro-goal-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 183, 77, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.intro-goal-label {
    font-size: 12px;
    color: var(--accent-warm);
    margin-bottom: 6px;
    font-weight: 500;
}

.intro-goal-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
}

.intro-growth {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.intro-growth span:last-child {
    color: var(--accent-warm);
    font-weight: 500;
}

.intro-start-btn {
    min-width: 160px;
    font-size: 15px;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .level-intro-content {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .intro-icon {
        font-size: 48px;
    }
    
    .intro-level-name {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .intro-description {
        font-size: 13px;
    }
}

/* ===== 第3关：心灯·古寺 ===== */
.temple-intro {
    text-align: center;
    padding: 40px 20px;
}

.temple-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.temple-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temple-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 30px;
    font-style: italic;
}

.practice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto 30px;
}

.practice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(107, 127, 215, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.practice-item.completed {
    background: rgba(107, 127, 215, 0.15);
    border-color: rgba(107, 127, 215, 0.4);
}

.practice-icon {
    font-size: 24px;
}

.practice-name {
    flex: 1;
    text-align: left;
    font-size: 14px;
    color: var(--text-primary);
}

.practice-check {
    color: var(--accent-warm);
    font-weight: bold;
}

.practice-container {
    padding: 20px;
}

.practice-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(107, 127, 215, 0.2);
}

.practice-big-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.practice-header h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.practice-subtitle {
    font-size: 13px;
    color: var(--accent-warm);
    margin: 0;
}

.practice-body {
    margin-bottom: 25px;
}

.practice-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.practice-footer {
    text-align: center;
}

/* 情绪命名 */
.emotion-scenario {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.scenario-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.question {
    font-size: 15px;
    color: var(--accent-warm);
    font-weight: 500;
}

.emotion-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.emotion-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(107, 127, 215, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emotion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.emotion-card.selected {
    background: rgba(107, 127, 215, 0.2);
    transform: scale(1.02);
}

.emotion-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.emotion-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.emotion-insight {
    margin-top: 20px;
}

.insight-box {
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.15), rgba(255, 183, 77, 0.1));
    border: 1px solid rgba(107, 127, 215, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.insight-box p {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.insight-box p:last-child {
    margin-bottom: 0;
}

.knowledge-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 12px;
    border-left: 2px solid var(--accent-warm);
}

/* 呼吸冥想 */
.breathing-practice {
    text-align: center;
}

.breathing-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    margin: 30px 0;
}

.breathing-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.3), rgba(52, 152, 219, 0.3));
    border: 3px solid rgba(107, 127, 215, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(107, 127, 215, 0.3);
}

.breathing-text {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 2px;
}

.breathing-timer {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breathing-controls {
    margin-bottom: 25px;
}

.breathing-tips {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.breathing-tips p {
    font-size: 13px;
    color: var(--accent-warm);
    margin-bottom: 8px;
}

.breathing-tips ul {
    margin: 0;
    padding-left: 20px;
}

.breathing-tips li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* 情绪急救：接地技术 */
.grounding-practice {
    text-align: center;
}

.grounding-intro {
    margin-bottom: 25px;
}

.grounding-method {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(155, 89, 182, 0.15));
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.grounding-method h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.grounding-method p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.grounding-steps-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.grounding-step-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.4;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.03);
}

.grounding-step-dot.done {
    opacity: 1;
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
}

.grounding-step-dot.current {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    animation: grounding-pulse 2s ease-in-out infinite;
}

@keyframes grounding-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 0 35px rgba(52, 152, 219, 0.6); }
}

.grounding-current-step {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(107, 127, 215, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-sense {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.step-prompt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.grounding-items {
    margin-bottom: 20px;
}

.grounding-items-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.grounding-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.grounding-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
}

.grounding-item.found {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ECC71;
    color: #2ECC71;
    transform: scale(1.1);
    animation: found-pop 0.4s ease;
}

@keyframes found-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.1); }
}

.grounding-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
}

/* 情绪工具箱 */
.stress-meter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.stress-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.stress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ECC71, #F39C12, #E74C3C);
    border-radius: 6px;
    transition: width 1s ease;
}

.stress-value {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.toolbox-prompt {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.toolbox-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbox-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.toolbox-item.selected {
    border-color: var(--accent-warm);
    background: rgba(255, 183, 77, 0.15);
}

.tool-icon {
    font-size: 28px;
}

.tool-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.toolbox-actions {
    text-align: center;
    margin-bottom: 20px;
}

/* 自我关怀 */
.scenario-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.scenario-number {
    font-size: 12px;
    color: var(--accent-warm);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.scenario-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
}

.compassion-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.compassion-option {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(107, 127, 215, 0.2);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compassion-option:hover {
    border-color: rgba(107, 127, 215, 0.5);
    background: rgba(107, 127, 215, 0.1);
}

.compassion-option.selected.correct {
    border-color: #2ECC71;
    background: rgba(46, 204, 113, 0.15);
}

.compassion-option.selected.wrong {
    border-color: #E74C3C;
    background: rgba(231, 76, 60, 0.15);
}

/* 完成界面 */
.temple-complete {
    text-align: center;
    padding: 60px 20px;
}

.lamp-animation {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.lamp-icon {
    font-size: 100px;
    position: relative;
    z-index: 2;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 183, 77, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 183, 77, 0.8)); }
}

.lamp-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 183, 77, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

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

.temple-complete h2 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-warm), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.complete-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 30px;
    font-style: italic;
}

.complete-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

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

.stat-value {
    font-size: 32px;
    font-weight: 300;
    color: var(--accent-warm);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .emotion-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbox-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .temple-title {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .complete-stats {
        gap: 20px;
    }
}

/* ===== 第4关：花园·耕耘 ===== */
.garden-intro {
    text-align: center;
    padding: 40px 20px;
}

.garden-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.garden-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-warm), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.garden-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 30px;
    font-style: italic;
}

.garden-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto 30px;
}

.garden-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.garden-item.completed {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.4);
}

.garden-icon-small {
    font-size: 24px;
}

.garden-name {
    flex: 1;
    text-align: left;
    font-size: 14px;
    color: var(--text-primary);
}

.garden-check {
    color: #2ECC71;
    font-weight: bold;
}

.garden-container {
    padding: 20px;
}

.garden-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.garden-big-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.garden-header h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.garden-subtitle {
    font-size: 13px;
    color: #2ECC71;
    margin: 0;
}

.garden-body {
    margin-bottom: 25px;
}

.garden-footer {
    text-align: center;
}

/* 认知除草 */
.weed-progress {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 15px;
}

.weed-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.weed-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #E74C3C;
    margin-bottom: 10px;
}

.weed-icon {
    font-size: 24px;
}

.weed-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.weed-example {
    background: rgba(231, 76, 60, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.example-label {
    color: var(--text-muted);
    margin-right: 6px;
}

.example-text {
    color: var(--text-primary);
    font-style: italic;
}

.weed-question {
    font-size: 14px;
    color: var(--accent-warm);
    text-align: center;
    margin-bottom: 15px;
}

.weed-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* 种子播种 */
.seed-prompt {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.seed-card {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seed-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.seed-card.selected {
    border-color: #2ECC71;
    background: rgba(46, 204, 113, 0.15);
    transform: scale(1.05);
}

.seed-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.seed-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.seed-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.planting-actions {
    text-align: center;
    margin-bottom: 20px;
}

/* 花园边界 */
.boundary-scenario-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.boundary-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.boundary-option {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(46, 204, 113, 0.2);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boundary-option:hover {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.1);
}

.boundary-option.selected.good {
    border-color: #2ECC71;
    background: rgba(46, 204, 113, 0.15);
}

.boundary-option.selected.bad {
    border-color: #E74C3C;
    background: rgba(231, 76, 60, 0.15);
}

/* 岔路抉择：问题解决 */
.problem-solving-garden {
    text-align: center;
}

.problem-progress {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 15px;
}

.problem-scenario-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(52, 152, 219, 0.1));
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.problem-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.problem-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.problem-option {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(155, 89, 182, 0.2);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.problem-option:hover {
    border-color: rgba(155, 89, 182, 0.5);
    background: rgba(155, 89, 182, 0.1);
    transform: translateX(4px);
}

.problem-option.selected {
    border-color: #9B59B6;
    background: rgba(155, 89, 182, 0.15);
}

.problem-consequence {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-warm);
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: left;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 四季成长 */
.season-display {
    text-align: center;
    margin: 30px 0;
}

.season-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: season-pulse 3s ease-in-out infinite;
}

@keyframes season-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.season-name {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--text-primary);
}

.season-desc {
    text-align: center;
    margin-bottom: 25px;
}

.season-desc p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.season-progress {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.season-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.season-dot.active {
    background: var(--accent-warm);
    box-shadow: 0 0 10px rgba(255, 183, 77, 0.5);
}

.growth-actions {
    text-align: center;
    margin-bottom: 20px;
}

/* 完成界面 */
.garden-complete {
    text-align: center;
    padding: 60px 20px;
}

.garden-final {
    margin-bottom: 30px;
}

.flowers-row {
    font-size: 48px;
    animation: flowers-bloom 2s ease-out;
}

@keyframes flowers-bloom {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.garden-complete h2 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2ECC71, var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .seed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .garden-title {
        font-size: 24px;
        letter-spacing: 4px;
    }
}

/* ===== 新手引导 ===== */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.guide-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.guide-tooltip {
    position: fixed;
    max-width: 300px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(107, 127, 215, 0.95), rgba(255, 183, 77, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.guide-tooltip.show {
    opacity: 1;
    pointer-events: auto;
}

.guide-step-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: white;
    margin-bottom: 12px;
}

.guide-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.guide-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 16px;
}

.guide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: white;
    color: var(--accent-blue);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.guide-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.guide-skip {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s ease;
}

.guide-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .guide-tooltip {
        max-width: 85%;
        margin: 0 auto;
    }
}
