/* ===== 全局重置与变量 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #0a0a18;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --accent-red: #e94560;
    --accent-blue: #0f3460;
    --text-primary: #e0e0f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --glass-bg: rgba(22, 33, 62, 0.7);
    --glass-border: rgba(233, 69, 96, 0.15);
    --glow-red: rgba(233, 69, 96, 0.4);
    --glow-blue: rgba(15, 52, 96, 0.6);
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(233, 69, 96, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(15, 52, 96, 0.15) 0%, transparent 60%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    position: relative;
}

.page {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: flex;
}

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

/* ===== 玻璃卡片 ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ===== 按钮 ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 48px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--glow-red);
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(233, 69, 96, 0.6);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(160, 160, 184, 0.3);
    border-radius: 10px;
    padding: 10px 32px;
    font-size: 15px;
    cursor: pointer;
    margin: 6px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* ===== 页面标题 ===== */
.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===== 首页 ===== */
#page-home {
    justify-content: center;
    gap: 20px;
}

.energy-capsule {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 10px;
}

.capsule-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.capsule-core {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    animation: orbit 8s linear infinite;
}

.ring-1 { width: 140px; height: 140px; }
.ring-2 { width: 110px; height: 110px; animation-duration: 6s; animation-direction: reverse; }
.ring-3 { width: 80px; height: 80px; animation-duration: 10s; }

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

.core-sphere {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff6b81, var(--accent-red));
    box-shadow: 0 0 40px var(--glow-red), 0 0 80px rgba(233, 69, 96, 0.2);
    animation: core-beat 2s ease-in-out infinite;
}

@keyframes core-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.home-card {
    max-width: 380px;
    padding: 32px 24px;
}

.home-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 6px;
    margin: 4px 0 12px;
    text-transform: uppercase;
}

.home-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ===== 首页 Logo 区域 ===== */
.home-logos {
    margin-top: 16px;
    text-align: center;
}

.logo-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.logo-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item svg {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.logo-item svg:hover {
    opacity: 1;
}

.logo-divider {
    width: 1px;
    height: 28px;
    background: rgba(160, 160, 184, 0.2);
    border-radius: 1px;
}

/* ===== 情绪投递页 ===== */
.emotion-textarea {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(160, 160, 184, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.emotion-textarea:focus {
    border-color: var(--accent-red);
}

.emotion-textarea::placeholder {
    color: var(--text-muted);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 12px;
}

.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.tag {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
    color: var(--text-secondary);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.tag.selected {
    background: rgba(233, 69, 96, 0.25);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* ===== 处理页 ===== */
.processing-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particles-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.light-beams {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.beam {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(233, 69, 96, 0.4), transparent);
    top: 50%;
    left: 50%;
    transform-origin: center top;
    animation: beam-sweep 4s linear infinite;
}

.b1 { animation-delay: 0s; }
.b2 { animation-delay: 1.3s; }
.b3 { animation-delay: 2.6s; }

@keyframes beam-sweep {
    from { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 0; }
    to { transform: translate(-50%, -50%) rotate(360deg); opacity: 0; }
}

.processing-card {
    position: relative;
    z-index: 1;
    padding: 40px 28px;
}

.processing-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.processing-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent-red);
    border-right-color: rgba(233, 69, 96, 0.3);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

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

.processing-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--glow-red);
}

.processing-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.processing-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-red), #ff6b81);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ===== 成果展示页 ===== */
.result-card {
    padding: 32px 24px;
}

.artwork-frame {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(233, 69, 96, 0.15);
}

.artwork-frame canvas {
    width: 100%;
    height: auto;
    display: block;
}

.quote-box {
    background: rgba(233, 69, 96, 0.08);
    border-left: 3px solid var(--accent-red);
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.quote-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.emotion-display {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.result-buttons {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ===== 海报页 ===== */
.poster-card {
    padding: 28px 20px;
}

.poster-preview {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.poster-preview canvas {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.poster-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 400px) {
    .home-title { font-size: 26px; }
    .page { padding: 30px 16px; }
    .glass-card { padding: 24px 18px; }
}
（内容由AI生成，仅供参考）
