:root {
    /* 通用变量 */
    --transition-speed: 0.8s;
    --font-std: 'Noto Sans SC', sans-serif;
    --panel-bg: rgba(255, 255, 255, 0.12);
    --muted-color: rgba(0, 0, 0, 0.45);
    --glow-color: rgba(217, 58, 40, 0.28);
}

/* 优先尊重系统的“减少动态效果”设置，统一关闭大部分动画/过渡 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ================== 风格1：新春国风 (.style-china) ================== */
.style-china {
    --primary-color: #d93a28; /* 中国红 */
    --secondary-color: #ffd700; /* 鎏金 */
    --bg-color: #f7f1e3; /* 米白 */
    --text-color: #2c0e0e;
    --font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
    --bg-image: radial-gradient(circle at 20% 20%, #e6dace 0%, transparent 20%),
                radial-gradient(circle at 80% 80%, #e6dace 0%, transparent 20%);
    --btn-shape: 4px; /* 略微圆角 */
    --btn-border: 2px solid var(--secondary-color);
    --shadow: 0 4px 12px rgba(168, 26, 26, 0.3);
    --panel-bg: rgba(255, 245, 230, 0.9);
    --muted-color: rgba(44, 14, 14, 0.66);
    --glow-color: rgba(217, 58, 40, 0.28);
}
.style-china body {
    background-image: var(--bg-image);
    background-size: 50px 50px; /* 模拟纹样 */
}

/* ================== 风格1.5：简约清新 (.style-simple) ================== */
.style-simple {
    --primary-color: #90c2d8;
    --secondary-color: #f5d3ce;
    --bg-color: #fdf8f3;
    --text-color: #2f3a3f;
    --font-family: 'Quicksand', 'Noto Sans SC', sans-serif;
    --bg-image: radial-gradient(circle at 25% 20%, rgba(144, 194, 216, 0.18) 0%, transparent 22%),
                radial-gradient(circle at 70% 65%, rgba(245, 211, 206, 0.22) 0%, transparent 30%);
    --btn-shape: 14px;
    --btn-border: 1px solid rgba(47,58,63,0.12);
    --shadow: 0 10px 30px rgba(47,58,63,0.08);
    --panel-bg: rgba(255, 255, 255, 0.94);
    --muted-color: rgba(47,58,63,0.58);
    --glow-color: rgba(144, 194, 216, 0.2);
}
.style-simple body { background-size: 120px 120px; }

/* ================== 风格2：科技未来 (.style-tech) ================== */
.style-tech {
    --primary-color: #00f3ff; /* 荧光蓝 */
    --secondary-color: #bc13fe; /* 霓虹紫 */
    --bg-color: #050b14; /* 深空黑 */
    --text-color: #e0f7fa;
    --font-family: 'Orbitron', monospace;
    --bg-image: linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    --btn-shape: 0px; /* 硬朗直角 */
    --btn-border: 1px solid var(--primary-color);
    --shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    --panel-bg: rgba(5, 11, 20, 0.7);
    --muted-color: rgba(224, 247, 250, 0.65);
    --glow-color: rgba(0, 243, 255, 0.22);
}
.style-tech body {
    background-size: 40px 40px; /* 网格大小 */
}

/* ================== 风格3：可爱卡通 (.style-cute) ================== */
.style-cute {
    --primary-color: #ff9a9e; /* 粉嫩 */
    --secondary-color: #fad0c4; /* 浅桃 */
    --bg-color: #fff1f2; /* 浅粉背景 */
    --text-color: #555;
    --font-family: 'ZCOOL KuaiLe', cursive;
    --bg-image: radial-gradient(#ffd1ff 15%, transparent 16%),
                radial-gradient(#fff5b2 15%, transparent 16%);
    --btn-shape: 25px; /* 圆润 */
    --btn-border: none;
    --shadow: 4px 4px 0px rgba(255, 154, 158, 0.4);
    --panel-bg: rgba(255, 255, 255, 0.92);
    --muted-color: rgba(85, 85, 85, 0.65);
    --glow-color: rgba(255, 154, 158, 0.3);
}
.style-cute body {
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

/* ================== 温馨治愈 (.style-warm) ================== */
.style-warm {
    --primary-color: #e3965b; /* 暖橙 */
    --secondary-color: #f2d1a8; /* 奶咖金 */
    --bg-color: #fff7ed; /* 米白暖底 */
    --text-color: #3c2a1e;
    --font-family: 'Noto Sans SC', sans-serif;
    --bg-image: radial-gradient(circle at 15% 20%, rgba(227,150,91,0.15), transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(242,209,168,0.18), transparent 35%);
    --btn-shape: 12px;
    --btn-border: 1px solid rgba(60,42,30,0.2);
    --shadow: 0 18px 32px rgba(227,150,91,0.2);
    --panel-bg: rgba(255, 247, 237, 0.96);
    --muted-color: rgba(60,42,30,0.62);
    --glow-color: rgba(227,150,91,0.18);
}

/* ================== 像素复古 (.style-pixel) ================== */
.style-pixel {
    --primary-color: #e63946; /* 红 */
    --secondary-color: #ffd166; /* 黄 */
    --bg-color: #0f0f0f;
    --text-color: #f8f8f8;
    --font-family: 'Press Start 2P', monospace;
    --bg-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 20px),
                repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 20px);
    --btn-shape: 0px;
    --btn-border: 2px solid #ffd166;
    --shadow: 0 0 0 2px #000, 0 10px 0 #000;
    --panel-bg: rgba(20, 20, 20, 0.92);
    --muted-color: rgba(248, 248, 248, 0.75);
    --glow-color: rgba(230, 57, 70, 0.28);
}
.style-pixel body {
    image-rendering: pixelated;
    background-size: 22px 22px;
}

/* ================== 风格：黑金贵雅 (.style-noble) ================== */
.style-noble {
    --primary-color: #f7d08a; /* 香槟金 */
    --secondary-color: #b38b3d; /* 古铜金 */
    --bg-color: #0a0a0c;
    --text-color: #f0e6d2;
    --font-family: 'Noto Serif SC', serif;
    --bg-image: linear-gradient(to bottom, #1a1a20, #0a0a0c);
    --btn-shape: 2px;
    --btn-border: 1px solid var(--primary-color);
    --shadow: 0 10px 40px rgba(0,0,0,0.8);
    --panel-bg: rgba(20, 20, 25, 0.9);
    --muted-color: rgba(240, 230, 210, 0.6);
    --glow-color: rgba(247, 208, 138, 0.15);
}
.style-noble body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10L90 90M90 10L10 90' stroke='%23f7d08a' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}
.style-noble .wish-card {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(179, 139, 61, 0.2);
    background: linear-gradient(135deg, rgba(30,30,35,0.95), rgba(15,15,20,0.95));
}
.style-noble .action-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #111;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================== 风格4：极简先锋 (.style-minimalist) ================== */
.style-minimalist {
    --primary-color: #1a1a1a; /* 纯黑 */
    --secondary-color: #d4af37; /* 金色 */
    --bg-color: #fafafa; /* 极浅灰 */
    --text-color: #2a2a2a;
    --font-family: 'Noto Sans SC', sans-serif;
    --bg-image: linear-gradient(90deg, transparent 24%, rgba(212, 175, 55, 0.05) 25%, rgba(212, 175, 55, 0.05) 26%, transparent 27%, transparent 74%, rgba(212, 175, 55, 0.05) 75%, rgba(212, 175, 55, 0.05) 76%, transparent 77%, transparent),
                linear-gradient(transparent 24%, rgba(212, 175, 55, 0.05) 25%, rgba(212, 175, 55, 0.05) 26%, transparent 27%, transparent 74%, rgba(212, 175, 55, 0.05) 75%, rgba(212, 175, 55, 0.05) 76%, transparent 77%, transparent);
    --btn-shape: 2px; /* 极简直角 */
    --btn-border: 1px solid var(--primary-color);
    --shadow: none;
    --panel-bg: rgba(255, 255, 255, 0.95);
    --muted-color: rgba(42, 42, 42, 0.66);
    --glow-color: rgba(212, 175, 55, 0.18);
}
.style-minimalist body {
    background-size: 50px 50px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: var(--bg-image);
    position: relative;
    isolation: isolate;
    --cursor-x: 50%;
    --cursor-y: 50%;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.wish-card, .info-card, .deep-card, .action-btn, .theme-btn {
    transition: background-color var(--transition-speed), color var(--transition-speed), border-radius var(--transition-speed), transform 0.3s, box-shadow 0.3s;
}

/* 动态光效与网格覆盖层（参考优秀站点的视觉渐变） */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--cursor-x) var(--cursor-y), var(--glow-color), transparent 55%);
    opacity: 0.65;
    mix-blend-mode: screen;
    transition: opacity 0.6s ease;
    z-index: -1;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 40%),
                linear-gradient(300deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 45%);
    pointer-events: none;
    z-index: -2;
}

.ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -3;
}
.orb {
    position: absolute;
    width: 38vw;
    height: 38vw;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: floaty 12s ease-in-out infinite;
}
.orb-1 { background: #ffafbd; top: -8%; left: -6%; }
.orb-2 { background: #c9ffbf; bottom: -10%; right: -8%; animation-duration: 14s; }
.orb-3 { background: #a1c4fd; top: 30%; right: 16%; animation-duration: 16s; }
.style-tech .orb { filter: blur(70px); opacity: 0.55; }
.style-minimalist .orb { opacity: 0.25; }

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.4;
    mix-blend-mode: soft-light;
}

.entry-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(140deg, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
    display: grid;
    place-items: center;
    z-index: 2500;
    backdrop-filter: blur(12px);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.entry-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.entry-box {
    background: rgba(255,255,255,0.08);
    padding: 28px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    max-width: 520px;
    width: 90%;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.entry-kicker { letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; margin-bottom: 10px; }
.entry-box h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 12px; }
.entry-note { opacity: 0.9; margin-bottom: 18px; line-height: 1.6; }
.entry-btn {
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: #000;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.entry-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,0,0,0.28); }
.entry-btn:active { transform: translateY(0); box-shadow: 0 12px 24px rgba(0,0,0,0.22); }

/* ================== 导航栏 ================== */
.theme-switcher {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    z-index: 100;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.theme-switcher::-webkit-scrollbar {
    display: none;
}

.theme-btn {
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: var(--btn-border);
    border-radius: var(--btn-shape);
    color: var(--text-color);
    backdrop-filter: blur(5px);
    min-width: 72px;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.style-tech .theme-btn.active {
    background: rgba(0, 243, 255, 0.25);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.style-pixel .theme-btn.active {
    background: var(--secondary-color);
    color: #000;
}
/* 国风 hover 特效 */
.style-china .theme-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
}
/* 科技 hover 特效 */
.style-tech .theme-btn:hover {
    box-shadow: 0 0 20px var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}
/* 卡通 hover 特效 */
.style-cute .theme-btn:hover {
    transform: scale(1.1) rotate(-3deg);
    background: #fff;
    color: var(--primary-color);
}
/* 极简 hover 特效 */
.style-minimalist .theme-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ================== 主视觉区 ================== */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.visual-center {
    margin: 3rem auto;
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.1);
}

.fu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: radial-gradient(circle at 40% 35%, #fff2, transparent 50%),
                linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fu-badge:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 34px rgba(0,0,0,0.22); }
.fu-badge:active { transform: translateY(0) scale(0.98); }
.style-pixel .fu-badge { font-family: 'Press Start 2P', monospace; box-shadow: 0 0 0 2px #000; border-radius: 6px; }

/* 视觉元素显示逻辑 */
.horse-wrapper > * {
    display: none; /* 默认隐藏所有 */
    animation: fadeIn 1s ease;
}

.style-china .china-horse { display: block; width: 100%; height: 100%; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2)); }
.style-tech .tech-horse-container { display: flex; flex-direction: column; align-items: center; color: var(--primary-color); }
.style-cute .cute-horse-container { display: block; font-size: 8rem; animation: bounce 2s infinite; }
.style-simple .china-horse { display: block; width: 86%; height: 86%; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.08)); }
.style-warm .china-horse { display: block; width: 90%; height: 90%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12)); }
.style-pixel .pixel-horse-container { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--secondary-color); background: #111; border: 2px solid var(--secondary-color); padding: 10px; box-shadow: 0 0 0 2px #000; width: 100%; height: 100%; image-rendering: pixelated; }

/* 科技风格特定动画 */
.tech-circle {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: spin 10s linear infinite;
    position: absolute;
}
.tech-text {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-color);
}

/* ================== 文本排版 ================== */
.main-title {
    font-size: clamp(2.4rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tagline {
    color: var(--muted-color);
    max-width: 620px;
    margin: 0 auto 1.4rem;
    line-height: 1.6;
}

/* 页面分块布局优化 */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 3.5rem 0 1.5rem;
    text-align: center;
    color: var(--primary-color);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.section-title::before, .section-title::after {
    content: "";
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}
.section-title::after { transform: scaleX(-1); }

.core-section {
    width: 100%;
    margin: 1rem auto;
    position: relative;
    z-index: 20;
}

.social-section, .milestone-section, .other-section {
    width: 100%;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.08);
    font-weight: 800;
    box-shadow: 0 8px 24px var(--glow-color);
}
.action-btn.primary:hover {
    transform: scale(1.12);
}

.achievement-brief {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline dotted;
    margin: 10px 0;
}

.status-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

/* 场景切换器 */
.scenario-switcher {
    margin: 1.2rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 820px;
}
.scenario-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
}
.scenario-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}
.pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: none;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pill:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.pixel-hud {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.06);
    margin-bottom: 1rem;
    border: 1px dashed rgba(0,0,0,0.15);
}
.style-pixel .pixel-hud {
    background: #111;
    border: 2px solid #ffd166;
    color: #ffd166;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 0 0 0 2px #000;
}
.pixel-label { opacity: 0.75; }

.year {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-color);
}

/* 祝福语卡片 */
.wish-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--btn-shape);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.wish-card.flash {
    animation: flashCard 1s ease;
    box-shadow: 0 0 0 3px var(--secondary-color), var(--shadow);
}

@keyframes flashCard {
    0% { box-shadow: 0 0 0 0 var(--secondary-color); }
    50% { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 3px var(--secondary-color), var(--shadow); }
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 3000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.pixel-item {
    position: fixed;
    z-index: 2200;
    width: 48px;
    height: 48px;
    border: 2px solid #ffd166;
    background: #111;
    color: #ffd166;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 2px #000;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.pixel-item:hover { transform: translateY(-4px) scale(1.05); }
.pixel-item:active { transform: translateY(0) scale(0.96); }

.style-warm .pixel-item,
.style-simple .pixel-item,
.style-china .pixel-item,
.style-tech .pixel-item,
.style-cute .pixel-item { display: none; }

.style-china .wish-card {
    background: rgba(255, 245, 230, 0.9);
    border: 2px solid var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h2v2H1V1zm4 0h2v2H5V1zm4 0h2v2H9V1z' fill='%23d93a28' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
}
.style-china .wish-card::before,
.style-china .wish-card::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    height: 14px;
    background: repeating-linear-gradient(90deg, #b1271a 0 10px, #ffd700 10px 14px);
}
.style-china .wish-card::before { top: -6px; }
.style-china .wish-card::after { bottom: -6px; }
}

.style-tech .wish-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.2);
}

.style-cute .wish-card {
    background: #fff;
    border: 4px solid var(--secondary-color);
    border-radius: 30px;
}

.style-minimalist .wish-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}
.style-simple .wish-card { border-radius: 18px; border: 1px solid rgba(47,58,63,0.12); box-shadow: 0 20px 40px rgba(47,58,63,0.08); }
.style-warm .wish-card { border: 1px solid rgba(227,150,91,0.4); box-shadow: 0 24px 50px rgba(227,150,91,0.16); }
.style-pixel .wish-card {
    background: #111;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    box-shadow: 0 0 0 2px #000, 0 14px 0 #000;
    font-family: 'Press Start 2P', monospace;
}

#wishText {
    font-size: clamp(1.1rem, 3.8vw, 1.5rem);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* 按钮组 */
.action-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff; /* 按钮文字保持白色或对比色 */
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.style-china .action-btn { background: var(--primary-color); color: #fff; }
.style-tech .action-btn { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }
.style-tech .action-btn:hover { background: var(--primary-color); color: #000; box-shadow: 0 0 15px var(--primary-color); }
.style-cute .action-btn { background: var(--primary-color); box-shadow: 4px 4px 0 var(--secondary-color); }
.style-cute .action-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--secondary-color); }
.style-minimalist .action-btn { background: var(--primary-color); color: var(--secondary-color); border: 1px solid var(--primary-color); }
.style-minimalist .action-btn:hover { background: var(--secondary-color); color: var(--primary-color); }

.action-btn.ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px dashed var(--primary-color);
    box-shadow: none;
}
.style-tech .action-btn.ghost { border-color: var(--primary-color); color: var(--primary-color); }
.style-cute .action-btn.ghost { border-color: var(--secondary-color); color: var(--primary-color); }
.style-minimalist .action-btn.ghost { border-color: var(--primary-color); color: var(--primary-color); }

.highlight-meta {
    width: 100%;
    max-width: 720px;
    margin: 1.8rem auto 1rem;
    padding: 1rem 1.2rem;
    background: var(--panel-bg);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.progress-track { display: flex; flex-direction: column; gap: 8px; }
.progress-label-row { display: flex; justify-content: space-between; align-items: center; }
.progress-label { font-weight: 700; color: var(--text-color); }
.progress-value { color: var(--muted-color); font-weight: 700; }
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.style-tech .progress-bar { background: rgba(255,255,255,0.12); }
.style-china .progress-bar { background: rgba(217, 58, 40, 0.12); }
.progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    box-shadow: 0 0 16px var(--glow-color);
    background-size: 200% 100%;
    animation: gradientFlow 4s ease infinite;
    width: 0%;
    transition: width 0.6s ease;
}
.progress-hint { color: var(--muted-color); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto 0;
}
.info-card {
    background: var(--panel-bg);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.card-top {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-body {
    position: relative;
    z-index: 1;
}
.counter {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}
.mission-card .mission-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
}
.mission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted-color);
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,0.03);
    transition: background 0.2s;
}
.mission-item.done {
    text-decoration: line-through;
    opacity: 0.6;
}
.mission-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.mission-item.done .mission-checkbox::after {
    content: "✓";
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
}
.menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
}
.menu-btn:hover {
    background: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.style-tech .info-card { 
    border-color: rgba(0, 243, 255, 0.3); 
    background: rgba(5, 11, 20, 0.8);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}
.style-tech .menu-btn {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
    border-color: rgba(0, 243, 255, 0.3);
}
.style-tech .mission-item { background: rgba(0,243,255,0.05); color: #cceeff; }

.style-cute .info-card { 
    border: 3px solid var(--secondary-color); 
    box-shadow: 6px 6px 0 rgba(250, 208, 196, 0.5);
    background: #fff;
}

/* 底部全息弹幕 */
.danmu-layer {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.danmu-item {
    position: absolute;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    animation: danmuMove 10s linear infinite;
    will-change: transform;
}
.style-china .danmu-item { background: rgba(217, 58, 40, 0.8); border: 1px solid gold; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.style-tech .danmu-item { background: rgba(0, 243, 255, 0.2); border: 1px solid var(--primary-color); color: var(--primary-color); text-shadow: 0 0 5px var(--primary-color); }
@keyframes danmuMove {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px 20px; /* 适配 iPhone 底部 */
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 2000;
    pointer-events: none;
}
.bar-input-group {
    pointer-events: auto;
    display: flex;
    gap: 8px;
    background: var(--panel-bg);
    padding: 6px;
    border-radius: 99px;
    border: 1px solid rgba(128,128,128,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    width: 90%;
    max-width: 420px;
}
.bar-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--text-color);
    outline: none;
}
.bar-input-group button {
    border-radius: 99px;
    padding: 8px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}
.bar-input-group button:hover { transform: scale(1.05); }

/* 弹窗通用优化 */
.modal {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
}
.modal-content {
    background: var(--panel-bg);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    position: relative;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: var(--muted-color);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}
.info-body-scroll {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-color);
    line-height: 1.6;
}
.info-body-scroll h3 { color: var(--primary-color); margin-bottom: 10px; margin-top: 16px; }
.info-body-scroll li { margin-bottom: 8px; list-style: none; position: relative; padding-left: 18px; }
.info-body-scroll li::before { content:"•"; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }


.deep-wishes {
    width: 100%;
    max-width: 980px;
    margin: 2rem auto 0;
    padding: 1.2rem;
    background: var(--panel-bg);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 44px rgba(0,0,0,0.1);
}
.section-head { margin-bottom: 1rem; text-align: left; }
.section-head h2 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.section-head p { color: var(--muted-color); line-height: 1.5; }

.deep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.deep-card {
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    min-height: 160px;
}
.deep-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.deep-next {
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.deep-next:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.12); }
.deep-next:active { transform: translateY(0); }
.style-pixel .deep-next { font-family: 'Press Start 2P', monospace; border: 2px solid #ffd166; background: #111; color: #ffd166; box-shadow: 0 0 0 2px #000; }
.style-simple .deep-next { border-color: rgba(47,58,63,0.12); background: #fff; }
.style-warm .deep-next { border-color: rgba(227,150,91,0.24); background: #fff7ed; }
.deep-list { list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--text-color); }

/* --- 倒计时组件 --- */
.countdown-widget {
    background: var(--panel-bg);
    padding: 12px 24px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--text-color);
    margin: 10px auto 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s;
}
.countdown-widget span { color: var(--primary-color); font-weight: 800; font-size: 1.1rem; }
.style-tech .countdown-widget {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0,243,255,0.15);
    background: rgba(0,0,0,0.6);
}
.style-pixel .countdown-widget {
    border-radius: 4px;
    border: 2px solid var(--secondary-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    box-shadow: 0 0 0 2px #000;
}

/* --- 标题特效升级 --- */
.main-title { position: relative; margin-bottom: 20px; }
.year-glitch {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 0.8;
    position: relative;
    display: inline-block;
}
.style-tech .year-glitch::before,
.style-tech .year-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}
.style-tech .year-glitch::before {
    color: #f0f;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.style-tech .year-glitch::after {
    color: #0ff;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
@keyframes glitch-anim-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

.china-title {
    font-size: 2.2rem;
    margin: 10px 0;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.style-china .china-title .char {
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 20-20 20L0 20z' fill='%23d93a28' fill-opacity='0.15'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    padding: 10px;
    animation: floatTitle 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}
@keyframes floatTitle { 0%, 100% {transform:translateY(0);} 50% {transform:translateY(-8px);} }

.sub-title-tech {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    opacity: 0.8;
}
.sub-title-tech .line { flex: 1; height: 1px; background: var(--primary-color); max-width: 60px; }
.style-tech .sub-title-tech { display: flex; justify-content: center; margin-top: 5px; }

/* 禁用原有的简单标题样式 */
.main-title .year, .main-title .zodiac, .main-title .greeting-text { display: none; }

.deep-list li {
    padding: 8px 10px;
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
    border: 1px dashed rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.deep-text { flex: 1; }
.deep-copy {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-color);
    padding: 4px 6px;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.deep-copy:hover { background: rgba(0,0,0,0.06); transform: translateY(-1px); }
.deep-copy.copied { color: #16a34a; }
.style-tech .deep-card { background: rgba(0,0,0,0.65); border-color: rgba(0,243,255,0.3); box-shadow: 0 0 24px rgba(0,243,255,0.12); }
.style-tech .deep-list li { background: rgba(255,255,255,0.04); border-color: rgba(0,243,255,0.2); color: var(--text-color); }
.style-cute .deep-card { background: #fff; border-color: rgba(255,154,158,0.3); box-shadow: 6px 6px 0 rgba(250, 208, 196, 0.5); }
.style-cute .deep-list li { background: rgba(255,154,158,0.08); border-color: rgba(255,154,158,0.25); }
.style-minimalist .deep-card { background: #fff; border-color: rgba(0,0,0,0.06); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.style-minimalist .deep-list li { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); }

.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}


/* ================== 下落特效容器 ================== */
#falling-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}
.falling-item {
    position: absolute;
    will-change: transform;
    pointer-events: none;
    user-select: none;
}

/* ================== 音乐控制 ================== */
.music-controls {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 20px;
    z-index: 500;
}
.music-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.5s;
    animation: rotateMusic 4s linear infinite;
    animation-play-state: paused;
}

.music-prompt {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: 16px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 1200;
    backdrop-filter: blur(6px);
}
.music-prompt.show { display: inline-flex; }
.music-prompt:hover { transform: translateY(-2px); }
.style-tech .music-prompt { background: rgba(0,0,0,0.85); border: 1px solid var(--primary-color); }
.style-cute .music-prompt { background: #ff9a9e; color: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,0.15); }
.style-minimalist .music-prompt { background: #111; color: #f5f5f5; }
.music-icon.playing {
    animation-play-state: running;
}

/* 跨年小游戏弹层 */
.game-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}
.game-overlay.show { display: flex; }
.game-panel {
    background: rgba(255,255,255,0.92);
    color: #222;
    border-radius: 16px;
    padding: 16px;
    width: min(520px, 96vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 2px solid var(--primary-color);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.game-overlay.show .game-panel {
    transform: scale(1);
    opacity: 1;
}
.game-header { display: flex; justify-content: space-between; align-items: center; }
.game-desc { margin: 8px 0 12px; color: #444; }
.game-info { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.95rem; margin-bottom: 10px; }
.game-area {
    position: relative;
    background: #0c0c0f;
    border-radius: 12px;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.45);
    cursor: crosshair;
}

.game-area.shake {
    animation: gameShake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes gameShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.firework-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    will-change: transform, opacity;
}
.game-actions { margin-top: 12px; display: flex; gap: 10px; }
.game-hint { font-size: 0.9rem; color: #555; margin-top: 6px; }
.game-item { position: absolute; user-select: none; touch-action: none; }
/* 游戏选择器 */
.game-picker { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin:8px 0; }
.game-picker .action-btn.small { padding:6px 10px; font-size:0.85rem; border-radius:8px; }
.game-picker .action-btn.small.active { box-shadow: 0 6px 18px rgba(0,0,0,0.12); transform: translateY(-2px); }

/* 新增小游戏样式 */
.quick-target { width:48px; height:48px; border-radius:10px; background:linear-gradient(135deg, var(--secondary-color), var(--primary-color)); display:flex; align-items:center; justify-content:center; font-size:1.2rem; cursor:pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.hacker-burst { padding:6px 10px; border-radius:6px; background: rgba(0,0,0,0.6); color: var(--text-color); font-family: monospace; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.relax-dot { width:44px; height:44px; border-radius:50%; border:2px solid rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; font-size:1.1rem; cursor:pointer; background: rgba(255,255,255,0.02); }
.game-pet { font-size:56px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.game-fortune-jar { width:120px; height:120px; border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); display:flex; align-items:center; justify-content:center; font-weight:700; cursor:pointer; box-shadow: inset 0 0 18px rgba(0,0,0,0.35); }
.game-tea-cup { width:120px; height:90px; border-radius:8px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); overflow:hidden; }
.game-tea-cup .tea-fill { position:absolute; bottom:0; left:0; height:100%; background: linear-gradient(180deg, rgba(227,150,91,0.9), rgba(243,198,150,0.9)); transition: width 0.4s; }
.note { font-size:28px; color:var(--secondary-color); text-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.pixel-coin { font-size:20px; filter: drop-shadow(0 6px 6px rgba(0,0,0,0.2)); }

/* 小屏/移动优化 */
@media (max-width: 720px) {
    .game-panel { width: 96vw; padding:12px; }
    .game-area { min-height: 340px; }
    .game-picker .action-btn.small { padding:8px 12px; font-size:0.92rem; }
}
.game-basket { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: 72px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.game-lantern { width: 54px; height: 72px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #fff7, transparent 70%), var(--primary-color); border: 2px solid #fff3; display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.game-lantern:active { transform: scale(0.92); }
.firework-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 12px currentColor; }
.firework-burst { position: absolute; pointer-events: none; animation: fadeBurst 0.9s ease-out forwards; }

.score-pop {
    position: absolute;
    top: -20px;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    animation: scoreFloat 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes scoreFloat {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-40px); opacity: 0; }
}

.combo-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
    animation: comboShow 1s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes comboShow {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -80%) scale(1); opacity: 0; }
}

@keyframes fadeBurst {
    0% { opacity: 1; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(1.4); }
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    font-size: 0.9rem;
}

.control-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 10px;
    display: none; /* 默认隐藏，移动端点击音乐球展开 */
    flex-direction: column;
    gap: 5px;
    width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.music-controls:hover .control-panel {
    display: flex;
}
.music-controls.controls-open .control-panel {
    display: flex;
}
.style-tech .control-panel { background: rgba(0,0,0,0.8); border: 1px solid var(--primary-color); }

/* ================== 动画定义 ================== */
@keyframes fall {
    0% { transform: translate3d(0, -100px, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate3d(0, 110vh, 0) rotate(360deg); opacity: 0; }
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes rotateMusic { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.03); } }
@keyframes gradientFlow { 0% { background-position: 0 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================== 模态框 ================== */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    align-items: center; justify-content: center;
}
.modal-content {
    background-color: var(--bg-color);
    padding: 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--btn-shape);
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow);
}
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;}
.close-btn:hover { color: var(--primary-color); }

/* ================== 移动端适配 ================== */
@media screen and (max-width: 768px) {
    .main-title { font-size: clamp(2rem, 5vw, 2.4rem); }
    .year { font-size: clamp(2.6rem, 6vw, 3rem); }
    .wish-card { padding: 1.2rem; margin-bottom: 80px; }
    .action-buttons { 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .action-btn { 
        width: 100%;
        margin: 0;
        min-width: unset;
        font-size: 0.9rem;
        padding: 12px 8px;
    }
    /* 让某些重要按钮占满整行 */
    .action-btn:nth-child(3) { /* Relay Button often 3rd after recent edit */
         grid-column: span 2;
         background: linear-gradient(45deg, var(--secondary-color), #ffeeb0);
         color: #333 !important;
         font-weight: bold;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 15px;
    }
    .relay-timeline {
        padding: 10px;
        margin-left: 10px;
    }
    .relay-node::before {
        left: -16px;
    }

    .music-controls { bottom: calc(12px + env(safe-area-inset-bottom)); right: 12px; left: auto; }
    .music-icon { width: 46px; height: 46px; font-size: 18px; }
    .music-prompt { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); font-size: 0.9rem; }
    
     /* 场景切换器优化 */
    .scenario-switcher {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }
    .scenario-btn {
        flex: 0 0 auto;
    }
}

/* ================== 分享卡片纯净模式 ================== */
.share-card-box {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.share-card-container {
    background: var(--card-bg); /* Use theme bg */
    width: 320px;
    min-height: 480px;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    border: 4px solid var(--primary-color);
    overflow: hidden;
    color: var(--text-color);
}

/* Decorative corners */
.card-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-color);
    opacity: 0.8;
}
.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.card-year {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Ma Shan Zheng', cursive;
}

.card-divider {
    width: 40%;
    height: 2px;
    background: var(--secondary-color);
    margin-bottom: 30px;
}

.card-wish {
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    flex: 1;
    display: flex;
    align-items: center;
    font-family: 'Noto Sans SC', sans-serif;
}

.card-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.card-qr-box {
    width: 60px;
    height: 60px;
    background: #fff;
    padding: 2px;
}
.qr-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-sign {
    text-align: right;
    display: flex;
    flex-direction: column;
}
.card-sign span { font-weight: bold; font-size: 0.9rem; }
.card-sign small { font-size: 0.7rem; opacity: 0.7; }

.share-tips {
    color: #fff;
    margin-top: 20px;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
    animation: pulse 1.5s infinite;
}

.close-btn-round {
    margin-top: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}

/* 主题适配卡片 */
.style-tech .share-card-container {
    background: #0f172a;
    border-color: #00f3ff;
    color: white;
}
.style-tech .card-year, .style-tech .card-wish { color: #00f3ff; text-shadow: 0 0 5px #00f3ff; }
.style-warm .share-card-container {
    background: #fff8e1;
    border-color: #e67e22;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 更小屏幕（手机）进一步优化 */
@media screen and (max-width: 480px) {
    .visual-center {
        width: 40vw;
        height: 40vw;
        margin-bottom: 1rem;
    }

    .style-china .china-horse,
    .style-tech .tech-horse-container,
    .style-cute .cute-horse-container {
        width: 100%;
        height: 100%;
    }

    .main-title { font-size: 1.6rem; }
    .year { font-size: 2.2rem; }

    .wish-card { padding: 0.8rem; max-width: 95%; width: 95%; }

    .theme-switcher {
        position: fixed;
        top: 8px;
        left: 8px;
        right: 8px;
        gap: 8px;
        padding: 8px;
        background: rgba(255,255,255,0.06);
        backdrop-filter: blur(6px);
        border-radius: 999px;
        z-index: 1500;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .theme-btn { padding: 8px 12px; font-size: 0.95rem; min-width: 64px; }

    .music-controls { bottom: calc(10px + env(safe-area-inset-bottom)); right: 10px; left: auto; }
    .music-icon { width: 44px; height: 44px; font-size: 18px; }
    .music-prompt { right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); padding: 8px 12px; }

    #wishText { font-size: 1.05rem; min-height: 60px; }

    .action-buttons { flex-wrap: wrap; gap: 10px; padding: 4px; }

    /* 在手机上禁用大型持续旋转等消耗动画 */
    .tech-circle { display: none; }
    .cute-horse-container { animation: none; }
}

/* ================== 成就系统样式 ================== */
.achievement-entry {
    position: fixed;
    bottom: calc(70px + env(safe-area-inset-bottom)); /* 位于音乐按钮上方 */
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--panel-bg);
    border: 1px solid var(--btn-border);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.3s;
}
.achievement-entry:hover { transform: scale(1.1); }

.achievement-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: none;
}
.achievement-dot.active { display: block; }

.achievement-box {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.achievement-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-val { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.stat-label { font-size: 0.85rem; color: var(--muted-color); }

.achievement-list {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}
.achievement-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--panel-bg);
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    opacity: 0.6;
    filter: grayscale(0.8);
    transition: all 0.3s;
}
.achievement-item.unlocked {
    opacity: 1;
    filter: none;
    border-color: var(--primary-color);
    background: linear-gradient(to right, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
}
.ach-icon { font-size: 2rem; margin-right: 15px; width: 40px; text-align: center; }
.ach-info { flex: 1; }
.ach-name { font-weight: bold; margin-bottom: 4px; color: var(--text-color); }
.ach-desc { font-size: 0.85rem; color: var(--muted-color); }
.ach-points { font-size: 0.8rem; font-weight: bold; color: var(--secondary-color); margin-left: 10px; }

/* Toast Notification */
.achievement-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -100px);
    background: rgba(40, 40, 40, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    pointer-events: none;
}
.achievement-toast.show { transform: translate(-50%, 0); }
.toast-icon { font-size: 1.5rem; }
.toast-title { font-size: 0.8rem; opacity: 0.8; margin-bottom: 2px; }
.toast-desc { font-size: 1rem; font-weight: bold; }

@media (max-width: 768px) {
    .achievement-entry { bottom: calc(60px + env(safe-area-inset-bottom)); right: 20px; width: 40px; height: 40px; font-size: 20px;}
    .relay-btn-trigger { width: 100%; }
}

/* ================== 祝福接力样式 ================== */
.relay-btn-trigger {
    width: auto;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.relay-box {
    width: 95%;
    max-width: 600px;
    height: 85vh; /* Taller for timeline */
}
.relay-intro {
    text-align: center;
    padding: 30px;
}
.relay-chain-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chain-header {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.relay-timeline {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
    border-left: 2px dashed var(--secondary-color);
    margin-left: 20px;
}
.relay-node {
    position: relative;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.7);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    animation: slideIn 0.3s ease-out;
}
.relay-node::before {
    content: '';
    position: absolute;
    left: -26px; /* 20px padding + 2px border + 4px gap */
    top: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
}
.r-name { font-weight: bold; color: var(--text-color); font-size: 0.9rem; }
.r-bless { color: var(--primary-color); font-size: 1.1rem; margin: 5px 0; }
.r-time { font-size: 0.75rem; color: var(--muted-color); }

.relay-action {
    padding: 15px;
    background: rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.1);
}
#myRelayBlessing {
    width: 100%;
    height: 60px;
    padding: 10px;
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: inherit;
}

/* ================== 主题补丁：黑金贵雅 (.style-noble) ================== */
.style-noble .deep-card {
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(247, 208, 138, 0.3);
    color: #f0e6d2;
}
.style-noble .deep-list li {
    background: rgba(247, 208, 138, 0.05);
    border-color: rgba(247, 208, 138, 0.1);
    color: #f0e6d2;
}
.style-noble .deep-next {
    background: #b38b3d;
    color: #000;
    border: none;
    font-size: 0.75rem;
}
.style-noble .relay-node {
    background: rgba(40, 40, 45, 0.9);
    color: #f0e6d2;
}
.style-noble .r-name { color: #f7d08a; }

/* ================== 其他 UI 组件 ================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--panel-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: #fff;
}

/* ============ 移动端适配补丁 ============ */
body.mobile {
    font-size: 16px;
}
.mobile .theme-switcher { padding: 12px 8px; gap: 10px; }
.mobile .theme-btn { padding: 12px 16px; font-size: 1rem; min-width: 72px; }
.mobile .action-btn { padding: 14px 18px; font-size: 1.05rem; border-radius: 12px; }
.mobile .action-btn.small { padding: 10px 12px; }
.mobile .action-buttons { gap: 12px; flex-direction: column; align-items: stretch; }
.mobile .game-area { min-height: 360px; }
.mobile .game-item { touch-action: manipulation; }
.mobile .pixel-item { width: 56px; height: 56px; font-size: 1rem; }

/* 降低复杂动效以节省移动端资源 */
@media (max-width: 768px) {
    .orb { display: none; }
    .grid-overlay { opacity: 0.15; }
    body::before { opacity: 0.35; }
}

/* 确保底部安全区域兼容 iOS 刘海屏 */
body { padding-bottom: env(safe-area-inset-bottom); }

.share-btn {
    width: 100%;
    padding: 12px;
    background: #07c160; /* WeChat Green */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    display: none; /* Hidden until joined */
}

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

/* ================== ������ǩ (Fortune Stick) ================== */
.fortune-stick-entry {
    position: absolute;
    right: 15%;
    top: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    animation: floating 3s ease-in-out infinite;
    z-index: 15;
    transition: transform 0.3s;
}
.fortune-stick-entry:hover {
    transform: scale(1.1) rotate(5deg);
}
.stick-jar-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}
.fortune-stick-entry span {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fortune-box {
    text-align: center;
    max-width: 400px;
    background: var(--panel-bg);
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(15px);
}

.divination-jar {
    width: 100px;
    height: 160px;
    background: linear-gradient(135deg, #d23a28, #8a1c1c);
    margin: 30px auto;
    position: relative;
    border-radius: 5px 5px 15px 15px;
    border: 2px solid #f7d08a;
    box-shadow: inset 5px 0 10px rgba(0,0,0,0.3);
    transform-origin: bottom center;
}
.jar-body {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 40px;
    color: #f7d08a;
    font-family: 'Ma Shan Zheng', cursive;
    opacity: 0.8;
}
.sticks-group {
    position: absolute;
    top: -20px;
    left: 10px;
    width: 80px;
    height: 40px;
    overflow: hidden;
}
.stick {
    width: 8px;
    height: 60px;
    background: #f0e6d2;
    position: absolute;
    bottom: 0;
    border-radius: 4px 4px 0 0;
    border: 1px solid #cbbba0;
}
.stick.s1 { left: 10px; transform: rotate(-5deg); height: 50px; }
.stick.s2 { left: 30px; transform: rotate(2deg); height: 55px; }
.stick.s3 { left: 50px; transform: rotate(-3deg); height: 45px; }
.stick.s4 { left: 65px; transform: rotate(5deg); height: 52px; }

/* ҡǩ���� */
@keyframes shakeJar {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg) translateY(-10px); }
    50% { transform: rotate(-15deg) translateY(-5px); }
    75% { transform: rotate(10deg) translateY(-10px); }
    100% { transform: rotate(0deg); }
}
.shaking.divination-jar {
    animation: shakeJar 0.4s infinite linear;
}

/* ��ǩ��� */
.result-card {
    padding: 10px;
    animation: slideUp 0.6s ease;
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.fortune-level {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Ma Shan Zheng', cursive;
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--glow-color);
}
.result-poem {
    border-left: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    padding: 15px;
    background: rgba(255,255,255,0.05);
    margin: 15px 0;
    font-family: serif;
    font-size: 1.2rem;
    line-height: 1.6;
}
.result-interpret {
    background: rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-color);
}
.result-interpret h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-color);
}


/* Ensure modals are hidden and overlay screen */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}

/* Enhanced modal visuals */
.modal-overlay .modal-content {
    width: min(680px, 94vw);
    max-width: 760px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    color: var(--text-color);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 6px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 0.36s cubic-bezier(.22,.9,.3,1), opacity 0.28s ease, box-shadow 0.28s;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.modal-overlay .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.modal-overlay .modal-header h2 { margin: 0; font-size: 1.1rem; color: var(--primary-color); }
.modal-overlay .modal-body {
    padding: 18px 22px;
    max-height: 62vh;
    overflow-y: auto;
    line-height: 1.6;
    color: var(--text-color);
}
.modal-overlay .modal-footer {
    padding: 12px 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(0,0,0,0.04);
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.01));
}

/* Close button refined */
.modal-overlay .close-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    color: #333;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    font-size: 20px;
}
.modal-overlay .close-btn:hover { transform: scale(1.04); color: var(--primary-color); }

/* Decorative corner accents for share-card and special boxes */
.modal-overlay .modal-content .corner-decor {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
    opacity: 0.12;
}
.modal-overlay .modal-content .corner-decor.tl { left: 8px; top: 8px; background: radial-gradient(circle at 30% 30%, var(--primary-color), transparent 40%); border-radius:6px; }
.modal-overlay .modal-content .corner-decor.br { right: 8px; bottom: 8px; background: radial-gradient(circle at 70% 70%, var(--secondary-color), transparent 40%); border-radius:6px; }

/* Responsive tweaks */
@media (max-width: 680px) {
    .modal-overlay .modal-content { width: 96vw; padding: 0; border-radius: 12px; }
    .modal-overlay .modal-header, .modal-overlay .modal-body, .modal-overlay .modal-footer { padding-left: 14px; padding-right: 14px; }
    .modal-overlay .close-btn { width: 36px; height: 36px; top: 10px; right: 10px; }
}


/* ================== Mobile Responsiveness Update ================== */
@media screen and (max-width: 768px) {
    /* 1. Fortune Stick Positioning */
    .fortune-stick-entry {
        right: 10px;
        top: auto;
        bottom: 120px; /* Above bottom controls */
        transform: scale(0.9);
    }
    
    /* 2. Container Padding */
    .container {
        width: 100%;
        padding: 10px 15px;
    }

    /* 3. Grid Adjustments to Single Column */
    .info-grid, .deep-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 15px;
    }

    /* 4. Font Sizes */
    .section-title { font-size: 1.5rem; }
    h1.main-title { font-size: 2rem; }

    /* 5. Modal Sizes */
    .modal-content, .fortune-box, .relay-box {
        width: 90%;
        max-width: none; /* Full width on mobile */
        padding: 20px;
    }
    
    /* 6. Button Sizes */
    .action-btn, .entry-btn {
        padding: 14px 24px; /* Larger touch targets */
        font-size: 1rem;
    }

    /* 7. Danmu Adjustments */
    .danmu-layer {
        top: 15%;
        height: 30%; /* Take less space */
    }
    .danmu-item {
        font-size: 14px;
        padding: 4px 10px;
    }
    
    /* 8. Hide less important graphics if needed */
    .orb { opacity: 0.5; }
}


/* ================== Deep Exquisite Card (Enhanced) ================== */
.share-card-container {
    background: linear-gradient(135deg, var(--card-bg) 0%, #fffbf0 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), inset 0 0 40px rgba(255,255,255,0.4);
}

.style-noble .share-card-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.style-noble .share-card-container .card-year {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(to bottom, #ffd700, #cfb53b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.share-card-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIiBzdHlsZT0iZmlsbDojZDRhZjM3OyBvcGFjaXR5OjAuMDU7Ij48cGF0aCBkPSJNMjAgMGwyMCAyMC0yMCAyMC0yMC0yMHoiLz48L3N2Zz4=');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.style-noble .share-card-container::before {
    opacity: 0.1;
}

.card-decoration {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.style-noble .card-decoration {
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.card-qr-box {
    border: 4px double var(--secondary-color);
    padding: 5px;
    background: #fff;
    border-radius: 8px;
}

.style-noble .card-qr-box {
    border-color: #d4af37;
}

