/* ============================================
   情绪回收站 - EmoRecycle 样式表
   主色调：深蓝黑底 #1a1a2e / #16213e
   强调色：霓虹红 #e94560 / 科技蓝 #0f3460
   ============================================ */

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

:root {
    --bg-deep: #1a1a2e;
    --bg-mid: #16213e;
    --accent-pink: #e94560;
    --accent-blue: #0f3460;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b8;
    --glow-pink: rgba(233, 69, 96, 0.5);
    --glow-blue: rgba(15, 52, 96, 0.5);
    --glass-bg: rgba(22, 33, 62, 0.45);
    --glass-border: rgba(233, 69, 96, 0.2);
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(15, 52, 96, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(233, 69, 96, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(15, 52, 96, 0.3) 0%, transparent 50%);
}

#app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ===== 页面容器 ===== */
.page {
    display: none;
    width: 100%;
    max-width: 520px;
    padding: 24px;
    animation: pageIn 0.5s ease-out;
}

.page.active {
    display: block;
}

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

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

/* ===== 首页 - 能量舱 ===== */
.energy-capsule {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
}

.capsule-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.25) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

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

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

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid;
    animation: orbitSpin linear infinite;
}

.ring-1 {
    width: 120px; height: 120px;
    border-color: rgba(233, 69, 96, 0.5);
    animation-duration: 8s;
}
.ring-2 {
    width: 90px; height: 90px;
    border-color: rgba(15, 52, 96, 0.6);
    animation-duration: 6s;
    animation-direction: reverse;
}
.ring-3 {
    width: 60px; height: 60px;
    border-color: rgba(233, 69, 96, 0.4);
    animation-duration: 4s;
}

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

.core-sphere {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e94560, #0f3460);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.6), 0 0 60px rgba(233, 69, 96, 0.3);
    animation: coreBeat 2s ease-in-out infinite;
}

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

.home-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #e94560, #f07b8c, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.home-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 28px;
}

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-block;
    padding: 14px 48px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e94560, #c73a52);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.35);
}

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

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

.btn-secondary {
    display: inline-block;
    padding: 12px 36px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(233, 69, 96, 0.35);
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
}

/* ===== 情绪投递页 ===== */
.page-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.emotion-textarea {
    width: 100%;
    height: 120px;
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 12px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition);
}

.emotion-textarea:focus {
    border-color: rgba(233, 69, 96, 0.6);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.1);
}

.emotion-textarea::placeholder {
    color: rgba(160, 160, 184, 0.5);
}

.char-count {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
    margin-bottom: 16px;
}

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

.tag {
    padding: 8px 18px;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: rgba(233, 69, 96, 0.08);
    border: 1px solid rgba(233, 69, 96, 0.25);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.tag:hover {
    background: rgba(233, 69, 96, 0.18);
    border-color: rgba(233, 69, 96, 0.5);
}

.tag.active {
    background: rgba(233, 69, 96, 0.25);
    border-color: #e94560;
    box-shadow: 0 0 12px rgba(233, 69, 96, 0.3);
}

/* ===== AI转化页 ===== */
.processing-container {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.processing-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
}

/* 粒子层 */
.particles-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatUp var(--dur) var(--delay) linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0%   { transform: translateY(100vh) translateX(0) scale(0.2); opacity: 0; }
    5%   { opacity: 0.9; }
    85%  { opacity: 0.9; }
    100% { transform: translateY(-10vh) translateX(var(--drift)) scale(1.8); opacity: 0; }
}

/* 光柱 */
.light-beams {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.beam {
    position: absolute;
    top: -10%;
    width: 1.5px;
    height: 120%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(233, 69, 96, 0.7) 20%,
        rgba(15, 52, 96, 0.4) 50%,
        rgba(233, 69, 96, 0.3) 80%,
        transparent 100%);
    animation: beamSweep 3s ease-in-out infinite;
    filter: blur(1px);
}

.b1 { left: 25%; animation-delay: 0s; }
.b2 { left: 50%; animation-delay: 1s; }
.b3 { left: 75%; animation-delay: 2s; }

@keyframes beamSweep {
    0%, 100% { opacity: 0.2; transform: scaleY(0.8); }
    50%      { opacity: 0.9; transform: scaleY(1.1); }
}

/* 转化图标 */
.processing-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
}

.processing-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e94560;
    border-right-color: rgba(233, 69, 96, 0.5);
    animation: spin 1s linear infinite;
}

.processing-dot {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #e94560, #0f3460);
    animation: dotPulse 1.5s ease-in-out infinite;
}

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

@keyframes dotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(233, 69, 96, 0.4); }
    50%      { transform: scale(1.25); box-shadow: 0 0 35px rgba(233, 69, 96, 0.7); }
}

.processing-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: textFade 2s ease-in-out infinite;
}

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

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

.processing-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0f3460, #e94560, #f07b8c);
    border-radius: 2px;
    transition: width 0.3s linear;
}

/* ===== 成果展示页 ===== */
.artwork-frame {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    padding: 4px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.5), rgba(15, 52, 96, 0.5), rgba(233, 69, 96, 0.5));
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(233, 69, 96, 0.4), 0 0 30px rgba(15, 52, 96, 0.3); }
    50%      { box-shadow: 0 0 25px rgba(233, 69, 96, 0.6), 0 0 50px rgba(15, 52, 96, 0.5); }
}

#artwork-canvas {
    display: block;
    border-radius: 9px;
    max-width: 100%;
    height: auto;
}

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

.quote-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
}

.emotion-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 海报页 ===== */
.poster-card {
    max-width: 640px;
}

.poster-preview {
    margin: 20px auto;
    max-width: 300px;
}

#poster-canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 600px) {
    .page {
        padding: 16px;
    }

    .glass-card {
        padding: 24px 16px;
    }

    .home-title {
        font-size: 1.5rem;
    }

    .home-desc {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 12px 36px;
        font-size: 0.9rem;
    }

    .btn-secondary {
        padding: 10px 28px;
        font-size: 0.85rem;
    }

    .energy-capsule {
        width: 120px;
        height: 120px;
    }

    .capsule-core {
        width: 120px;
        height: 120px;
    }

    .ring-1 { width: 90px; height: 90px; }
    .ring-2 { width: 68px; height: 68px; }
    .ring-3 { width: 46px; height: 46px; }

    .core-sphere {
        width: 24px;
        height: 24px;
    }

    .emotion-tags {
        gap: 8px;
    }

    .tag {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.2rem;
    }
}
（内容由AI生成，仅供参考）
