/* ===== 基础重置与变量 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B9DC3;
    --secondary-color: #DFE3EE;
    --accent-color: #F7F7F7;
    --text-color: #5c534c;
    --text-light: #8a8078;
    --bg-gradient-start: #ebe4dc;
    --bg-gradient-end: #ddd4cb;
    --warm-cream: #faf6f0;
    --warm-linen: #f3ebe2;
    --warm-apricot: #f8efe5;
    --warm-blush: #f6ebe6;
    --warm-honey: #f5ead8;
    --warm-sand: #efe6dc;
    --warm-peach: #f9e8df;
    --card-bg: rgba(255, 252, 248, 0.88);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --muyu-orange: #e86b2a;
    --muyu-orange-light: #f5a070;
    --atmosphere-height: 22vh;
    --atmosphere-min-height: 180px;
    --atmosphere-max-height: 240px;
    /* 心语飘动节奏：偏慢，便于阅读 */
    --cloud-track-duration: 100s;
    --float-word-duration: 18s;
    /* 心语情绪 · 暖色低饱和（PC 长时间观看不刺眼） */
    --mood-calm-accent: #8f9a7e;
    --mood-calm-bg: rgba(143, 154, 126, 0.14);
    --mood-calm-sticker-bg: rgba(143, 154, 126, 0.16);
    --mood-joy-accent: #c49a62;
    --mood-joy-bg: rgba(196, 154, 98, 0.14);
    --mood-joy-sticker-bg: rgba(196, 154, 98, 0.18);
    --mood-relief-accent: #a89585;
    --mood-relief-bg: rgba(168, 149, 133, 0.14);
    --mood-relief-sticker-bg: rgba(168, 149, 133, 0.16);
    --mood-gentle-accent: #c48878;
    --mood-gentle-bg: rgba(196, 136, 120, 0.14);
    --mood-gentle-sticker-bg: rgba(196, 136, 120, 0.17);
    --mood-neutral-accent: #a09084;
    --mood-neutral-bg: rgba(160, 144, 132, 0.12);
    --mood-neutral-sticker-bg: rgba(160, 144, 132, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-color);
}

/* ===== 顶部流转心语氛围条 ===== */
.atmosphere-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--atmosphere-height);
    min-height: var(--atmosphere-min-height);
    max-height: var(--atmosphere-max-height);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 180, 140, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, rgba(250, 246, 240, 0.97) 0%, rgba(245, 240, 234, 0.9) 100%);
    backdrop-filter: blur(12px) saturate(1.02);
    z-index: 100;
    padding: 12px 0 18px;
    box-shadow: 0 4px 28px rgba(80, 60, 40, 0.07);
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(232, 107, 42, 0.08);
}

.atmosphere-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 107, 42, 0.25), transparent);
    pointer-events: none;
}

.atmosphere-header {
    text-align: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.atmosphere-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.atmosphere-title-badge {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(232, 107, 42, 0.2));
}

.atmosphere-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-color);
    background: linear-gradient(120deg, #6b5c4f 0%, #c47848 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.atmosphere-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muyu-orange);
    box-shadow: 0 0 0 0 rgba(232, 107, 42, 0.5);
    animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.55; transform: scale(0.9); box-shadow: 0 0 0 0 rgba(232, 107, 42, 0.35); }
    50% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 6px rgba(232, 107, 42, 0); }
}

.atmosphere-hint {
    font-size: 10px;
    color: var(--text-light);
    opacity: 0.75;
    letter-spacing: 0.06em;
}

.cloud-words-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.cloud-words-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 48px,
        rgba(232, 107, 42, 0.03) 48px,
        rgba(232, 107, 42, 0.03) 49px
    );
    pointer-events: none;
    z-index: 0;
}

.cloud-words-track-inner {
    display: flex;
    gap: 18px;
    animation: scrollTrack var(--cloud-track-duration) linear infinite;
    width: max-content;
    padding: 6px 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 流转心语卡片 */
.cloud-word-card {
    flex: 0 0 auto;
    width: 232px;
    min-height: 108px;
    border-radius: 18px;
    padding: 14px 18px 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2,  1), box-shadow 0.35s ease;
    animation: cardBreath 6s ease-in-out infinite;
    border: 1px solid rgba(220, 200, 180, 0.35);
    box-shadow:
        0 2px 6px rgba(90, 70, 50, 0.04),
        0 6px 18px rgba(90, 70, 50, 0.05),
        inset 0 1px 0 rgba(255, 252, 248, 0.85);
}

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

.cloud-word-card:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 14px 36px rgba(80, 60, 40, 0.1);
    z-index: 2;
}

.cloud-card-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 65%;
    height: 75%;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(32px);
    pointer-events: none;
}

.cloud-card-quote {
    position: absolute;
    top: 2px;
    left: 10px;
    font-size: 36px;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    opacity: 0.07;
    pointer-events: none;
}

.cloud-word-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

/* 情绪表情（圆底衬，统一全站心语层级） */
.mood-sticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 50%;
    background: var(--mood-neutral-sticker-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mood-sticker-calm { background: var(--mood-calm-sticker-bg); }
.mood-sticker-joy { background: var(--mood-joy-sticker-bg); }
.mood-sticker-relief { background: var(--mood-relief-sticker-bg); }
.mood-sticker-gentle { background: var(--mood-gentle-sticker-bg); }
.mood-sticker-neutral { background: var(--mood-neutral-sticker-bg); }

.cloud-sticker {
    width: 32px;
    height: 32px;
    font-size: 17px;
}

.float-sticker {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

.collected-sticker {
    width: 22px;
    height: 22px;
    font-size: 12px;
}

.parade-sticker {
    width: 28px;
    height: 28px;
    font-size: 15px;
}

.mood-sticker .sticker-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.pack-twemoji .sticker-fallback {
    display: none;
    line-height: 1;
}

.pack-twemoji:not(:has(.sticker-img)) .sticker-fallback,
.pack-fallback-visible .sticker-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.parade-shape-twemoji {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.parade-shape-sticker {
    width: 48px;
    height: 48px;
    font-size: 0;
}

.atmosphere-hint a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.85;
}

.atmosphere-hint a:hover {
    opacity: 1;
}

.cloud-word-variant-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.85;
}

.cloud-word-text {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.cloud-word-foot {
    position: relative;
    z-index: 1;
}

.cloud-word-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

/* 卡片形态变体（6 种暖色肌理，避免冷色渐变） */
.cloud-card-v1 { background: linear-gradient(148deg, var(--warm-cream) 0%, var(--warm-linen) 100%); }
.cloud-card-v2 { background: linear-gradient(155deg, #fffbf6 0%, var(--warm-honey) 100%); }
.cloud-card-v3 { background: linear-gradient(140deg, var(--warm-cream) 0%, var(--warm-apricot) 100%); }
.cloud-card-v4 { background: linear-gradient(150deg, #fffcf9 0%, var(--warm-blush) 100%); }
.cloud-card-v5 { background: linear-gradient(145deg, var(--warm-cream) 0%, var(--warm-sand) 100%); }
.cloud-card-v6 { background: linear-gradient(152deg, #fffaf7 0%, var(--warm-peach) 100%); }

.cloud-card-v1 .cloud-word-variant-dot { background: linear-gradient(135deg, #e8b888, #c47848); }
.cloud-card-v2 .cloud-word-variant-dot { background: linear-gradient(135deg, #d4b896, #a88868); }
.cloud-card-v3 .cloud-word-variant-dot { background: linear-gradient(135deg, #e0b898, #b88868); }
.cloud-card-v4 .cloud-word-variant-dot { background: linear-gradient(135deg, #ddb0a0, #b87868); }
.cloud-card-v5 .cloud-word-variant-dot { background: linear-gradient(135deg, #c8b8a0, #9a8878); }
.cloud-card-v6 .cloud-word-variant-dot { background: linear-gradient(135deg, #e0a890, #c07058); }

.cloud-card-v1::before,
.cloud-card-v2::before,
.cloud-card-v3::before,
.cloud-card-v4::before,
.cloud-card-v5::before,
.cloud-card-v6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    opacity: 0.75;
}

.cloud-card-v1::before { background: linear-gradient(90deg, #e8c8a8, #c47848); opacity: 0.55; }
.cloud-card-v2::before { background: linear-gradient(90deg, #dcc8a8, #a88868); opacity: 0.55; }
.cloud-card-v3::before { background: linear-gradient(90deg, #e8d0b0, #b88868); opacity: 0.55; }
.cloud-card-v4::before { background: linear-gradient(90deg, #e8c0b0, #b87868); opacity: 0.55; }
.cloud-card-v5::before { background: linear-gradient(90deg, #d8ccc0, #9a8878); opacity: 0.55; }
.cloud-card-v6::before { background: linear-gradient(90deg, #e8b8a0, #c07058); opacity: 0.55; }

/* 情绪主题叠加 */
.cloud-word-card.mood-calm .cloud-card-glow { background: var(--mood-calm-accent); }
.cloud-word-card.mood-calm .cloud-word-tag {
    color: #6d7564;
    background: var(--mood-calm-bg);
    border-color: rgba(143, 154, 126, 0.22);
}
.cloud-word-card.mood-joy .cloud-card-glow { background: var(--mood-joy-accent); }
.cloud-word-card.mood-joy .cloud-word-tag {
    color: #8a7048;
    background: var(--mood-joy-bg);
    border-color: rgba(196, 154, 98, 0.22);
}
.cloud-word-card.mood-relief .cloud-card-glow { background: var(--mood-relief-accent); }
.cloud-word-card.mood-relief .cloud-word-tag {
    color: #7a6e62;
    background: var(--mood-relief-bg);
    border-color: rgba(168, 149, 133, 0.22);
}
.cloud-word-card.mood-gentle .cloud-card-glow { background: var(--mood-gentle-accent); }
.cloud-word-card.mood-gentle .cloud-word-tag {
    color: #8a6458;
    background: var(--mood-gentle-bg);
    border-color: rgba(196, 136, 120, 0.22);
}
.cloud-word-card.mood-neutral .cloud-card-glow { background: var(--mood-neutral-accent); }
.cloud-word-card.mood-neutral .cloud-word-tag {
    color: var(--mood-neutral-accent);
    background: var(--mood-neutral-bg);
    border-color: rgba(154, 143, 133, 0.2);
}

/* ===== 进度条区域（顶部氛围条下方） ===== */
.progress-section {
    position: fixed;
    top: calc(var(--atmosphere-height) + 16px);
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
    padding: 12px 20px;
}

.collection-status {
    background: var(--card-bg);
    padding: 12px 28px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    min-width: 260px;
    backdrop-filter: blur(10px);
}

.status-text {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
}

#collectionCount {
    color: var(--muyu-orange);
    font-weight: 600;
    font-size: 18px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(180, 155, 130, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

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

.milestone-markers {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-light);
}

.milestone {
    padding: 1px 5px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.milestone.active {
    background: var(--muyu-orange);
    color: white;
}

/* ===== 心语飘过动画区域 ===== */
.floating-words-area {
    position: fixed;
    top: 24vh;
    left: 0;
    right: 0;
    height: 50vh;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    color: rgba(92, 83, 76, 0.9);
    padding: 7px 18px 7px 10px;
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.94) 0%, rgba(245, 236, 226, 0.88) 100%);
    border-radius: 999px;
    backdrop-filter: blur(8px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(232, 107, 42, 0.06);
    animation: floatLeft var(--float-word-duration) linear forwards;
    pointer-events: none;
}

.floating-word.float-size-lg {
    font-size: 15px;
    padding: 10px 20px 10px 14px;
}

.float-word-text {
    max-width: min(42vw, 320px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-word.mood-calm {
    border-left: 3px solid var(--mood-calm-accent);
    box-shadow: 0 2px 12px rgba(143, 154, 126, 0.1);
}
.floating-word.mood-joy {
    border-left: 3px solid var(--mood-joy-accent);
    box-shadow: 0 2px 12px rgba(196, 154, 98, 0.1);
}
.floating-word.mood-relief {
    border-left: 3px solid var(--mood-relief-accent);
    box-shadow: 0 2px 12px rgba(168, 149, 133, 0.1);
}
.floating-word.mood-gentle {
    border-left: 3px solid var(--mood-gentle-accent);
    box-shadow: 0 2px 12px rgba(196, 136, 120, 0.1);
}
.floating-word.mood-neutral {
    border-left: 3px solid var(--mood-neutral-accent);
}

.float-variant-1,
.float-variant-2,
.float-variant-3,
.float-variant-4,
.float-variant-5,
.float-variant-6 {
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.95), rgba(245, 236, 226, 0.9));
}

@keyframes floatLeft {
    0% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
        opacity: 0;
        filter: blur(2px);
    }
    6% {
        opacity: 0.92;
        filter: blur(0);
    }
    82% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(-220px) translateY(-24px) rotate(-1deg);
        opacity: 0;
    }
}

/* ===== 底部核心木鱼互动区 ===== */
.muyu-interaction-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65vh;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    z-index: 10;
}

/* 心语收集列表 - 优化支持30条显示 */
.collected-words {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 92%;
    max-height: 140px;
    overflow-y: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 107, 42, 0.3) transparent;
}

.collected-words::-webkit-scrollbar {
    width: 4px;
}

.collected-words::-webkit-scrollbar-track {
    background: transparent;
}

.collected-words::-webkit-scrollbar-thumb {
    background: rgba(232, 107, 42, 0.3);
    border-radius: 2px;
}

.collected-word-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 168px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 248, 244, 0.9) 100%);
    padding: 5px 10px 5px 6px;
    border-radius: 16px;
    font-size: 11px;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    animation: wordAppear 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    white-space: nowrap;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collected-word-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.collected-index {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--muyu-orange-light), var(--muyu-orange));
    border-radius: 50%;
}

.collected-icon {
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.collected-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.collected-word-item.mood-calm { border-left: 2px solid var(--mood-calm-accent); }
.collected-word-item.mood-joy { border-left: 2px solid var(--mood-joy-accent); }
.collected-word-item.mood-relief { border-left: 2px solid var(--mood-relief-accent); }
.collected-word-item.mood-gentle { border-left: 2px solid var(--mood-gentle-accent); }
.collected-word-item.mood-neutral { border-left: 2px solid var(--mood-neutral-accent); }

.collected-v2 .collected-index { background: linear-gradient(135deg, #dcc8a8, #a88868); }
.collected-v3 .collected-index { background: linear-gradient(135deg, #e0b898, #b88868); }
.collected-v4 .collected-index { background: linear-gradient(135deg, #ddb0a0, #b87868); }
.collected-v5 .collected-index { background: linear-gradient(135deg, #c8b8a0, #9a8878); }
.collected-v6 .collected-index { background: linear-gradient(135deg, #e0a890, #c07058); }

@keyframes wordAppear {
    from { opacity: 0; transform: scale(0.85) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== 组合光影 · 心语游行 ===== */
.words-parade {
    position: fixed;
    inset: 0;
    z-index: 55;
    pointer-events: none;
    overflow: hidden;
}

.parade-group {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.parade-shape {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.12));
    animation: paradeFloat 5s ease-in-out infinite;
    line-height: 1;
}

.parade-shape-bird { animation-duration: 4.2s; }
.parade-shape-plant { animation-duration: 5.5s; }
.parade-shape-cloud { animation-duration: 6s; filter: drop-shadow(0 8px 18px rgba(180, 150, 120, 0.2)); }

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

.parade-word-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0;
    animation: tagFadeIn 1s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 248, 244, 0.9) 100%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(6px);
}

.parade-word-tag.mood-calm {
    border-left: 3px solid var(--mood-calm-accent);
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(242, 238, 230, 0.92));
}
.parade-word-tag.mood-joy {
    border-left: 3px solid var(--mood-joy-accent);
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(250, 242, 228, 0.92));
}
.parade-word-tag.mood-relief {
    border-left: 3px solid var(--mood-relief-accent);
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(245, 238, 232, 0.92));
}
.parade-word-tag.mood-gentle {
    border-left: 3px solid var(--mood-gentle-accent);
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(250, 238, 232, 0.92));
}
.parade-word-tag.mood-neutral {
    border-left: 3px solid var(--mood-neutral-accent);
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(245, 240, 234, 0.92));
}

.parade-variant-2 .parade-tag-text { font-style: normal; letter-spacing: 0.03em; }
.parade-variant-5 .parade-word-tag { border-radius: 12px 20px 20px 12px; }

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

/* ===== 木鱼场景 ===== */
.muyu-container {
    position: relative;
    margin-bottom: 30px;
}

.muyu-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    cursor: pointer;
    user-select: none;
}

.ground-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.muyu-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 107, 42, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.muyu-glow.active {
    opacity: 1;
    animation: glowPulse 0.6s ease-out;
}

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

.ripple-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(232, 107, 42, 0.3);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.ripple-pattern.active {
    animation: rippleExpand 0.8s ease-out forwards;
}

@keyframes rippleExpand {
    0% { width: 200px; height: 200px; opacity: 0.8; }
    100% { width: 400px; height: 400px; opacity: 0; }
}

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

.target-wrap {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.knock-target-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.knock-target-img.breathe {
    animation: targetBreathe 0.3s ease;
}

@keyframes targetBreathe {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.mallet-wrap {
    position: absolute;
    right: -25px;
    top: 15px;
    width: 90px;
    height: 90px;
    transform-origin: bottom left;
    transform: rotate(-30deg);
    z-index: 3;
    transition: transform 0.08s ease;
}

.mallet-wrap.strike {
    transform: rotate(15deg);
}

.mallet-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* 控制按钮区 */
.control-panel {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mode-toggle,
.launch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-medium);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.mode-toggle {
    background: white;
    color: var(--text-color);
}

.mode-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.mode-toggle.auto-mode {
    background: var(--muyu-orange);
    color: white;
}

.launch-btn {
    background: linear-gradient(135deg, #FFD93D, #F6AD55);
    color: #333;
}

.launch-btn:disabled {
    background: #E0E0E0;
    color: #999;
    cursor: not-allowed;
}

.launch-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.mode-icon,
.launch-icon {
    font-size: 18px;
}

/* 右侧控制区 */
.side-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-toggle,
.audio-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-toggle:hover,
.audio-toggle:hover {
    transform: scale(1.1);
}

.audio-toggle.muted {
    opacity: 0.5;
}

/* 音色选择器 */
.sound-selector {
    display: none;
    position: absolute;
    bottom: 68px;
    right: 64px;
    background: white;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    padding: 8px;
    min-width: 160px;
}

.sound-selector.show {
    display: block;
}

.sound-option {
    padding: 8px 12px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sound-option:hover {
    background: var(--secondary-color);
}

.sound-option.selected {
    background: rgba(232, 107, 42, 0.1);
}

.sound-option .sound-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.sound-option .sound-desc {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* 特效画布 */
.effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-medium);
    font-size: 13px;
    margin-bottom: 8px;
    animation: toastSlide 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.toast.hiding {
    animation: toastHide 0.3s ease forwards;
}

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

/* 模板选择弹窗 */
.template-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.template-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-large);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-medium);
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

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

.template-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.template-item:hover {
    background: var(--secondary-color);
}

.template-item.selected {
    border-color: var(--muyu-orange);
    background: rgba(232, 107, 42, 0.1);
}

.template-preview-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
}

.template-item span {
    font-size: 12px;
    color: var(--text-color);
}

.close-modal {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-medium);
    background: var(--secondary-color);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    background: var(--muyu-orange);
    color: white;
}

/* ===== 左下：桌宠下载 + 公众号飘语 ===== */
.corner-entries-left {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    pointer-events: none;
}

.corner-entries-left > * {
    pointer-events: auto;
}

.corner-entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.corner-entry-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 12px;
    border: 1px solid rgba(200, 170, 140, 0.35);
    border-radius: 999px;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.corner-entry-trigger:hover,
.corner-entry.is-open .corner-entry-trigger {
    border-color: rgba(232, 107, 42, 0.35);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.corner-entry-trigger-icon {
    font-size: 18px;
    line-height: 1;
}

.corner-entry-panel {
    width: min(280px, calc(100vw - 40px));
    padding: 16px 18px 14px;
    border-radius: var(--radius-medium);
    background: var(--card-bg);
    border: 1px solid rgba(200, 170, 140, 0.28);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(12px);
    animation: cornerPanelIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.corner-entry-panel[hidden] {
    display: none;
}

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

.corner-entry-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.corner-entry-desc {
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 12px;
}

.corner-entry-desc strong {
    color: var(--muyu-orange);
    font-weight: 600;
}

.corner-entry-foot {
    font-size: 11px;
    text-align: center;
    margin: 4px 0 10px;
}

.corner-entry-inline-link {
    color: var(--muyu-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.corner-entry-inline-link:hover {
    opacity: 0.85;
}

.corner-entry-close {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-small);
    background: rgba(139, 157, 195, 0.18);
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.corner-entry-close:hover {
    background: var(--muyu-orange);
    color: #fff;
}

/* 桌宠下载 */
.pet-download-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.pet-download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-small);
    border: 1px solid rgba(232, 107, 42, 0.22);
    background: rgba(255, 252, 248, 0.9);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.pet-download-btn:hover {
    border-color: rgba(232, 107, 42, 0.45);
    background: rgba(232, 107, 42, 0.08);
    transform: translateY(-1px);
}

.pet-download-platform {
    font-size: 13px;
    font-weight: 600;
}

.pet-download-meta {
    font-size: 11px;
    color: var(--text-light);
}

.pet-download-integrity {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    word-break: break-all;
}

.pet-download-btn.is-unavailable {
    opacity: 0.55;
    pointer-events: none;
    border-style: dashed;
}

.oa-qrcode-desc strong {
    color: var(--muyu-orange);
    font-weight: 600;
}

.oa-qrcode-frame {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin: 0 auto 10px;
    max-width: 156px;
    border-radius: var(--radius-small);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.oa-qrcode-img {
    display: block;
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.oa-qrcode-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .muyu-wrapper {
        width: 200px;
        height: 200px;
    }

    .target-wrap {
        width: 130px;
        height: 130px;
    }

    .mallet-wrap {
        width: 70px;
        height: 70px;
        right: -15px;
    }

    .template-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cloud-word-card {
        width: 168px;
        min-height: 96px;
        padding: 12px 14px 10px;
    }

    .atmosphere-title {
        font-size: 14px;
    }

    .collected-words {
        max-height: 90px;
    }

    .corner-entries-left {
        left: 12px;
        bottom: 16px;
    }

    .corner-entry-panel {
        width: min(260px, calc(100vw - 24px));
    }
}



