/**
 * 树洞 —— 前台样式（沉浸式绿色森林 · 全绿版 + 小鸟）
 *
 * 本轮调整：
 *   ① 移除按钮扫光效果（用户反馈太快）；
 *   ② 保留脉冲光晕（只改 alpha，性能友好）+ 小鸟动画。
 *
 * ⚠️ 兼容政务主题（.dd-body-page）：父容器关键属性 !important；
 *    所有子选择器加 `.th-world ` 前缀；容器色全部走 --th-* 自有变量。
 *
 * @file plugins/tree_hole/assets/style.css
 */

/* ==================== 森林容器 ==================== */
.th-world {
    --th-deep:       #16301a;
    --th-forest:     #24461f;
    --th-moss:       #3d6b28;
    --th-leaf:       #5b9c34;
    --th-leaf-soft:  #86bf58;
    --th-sun:        #dcefb6;
    --th-mist:       #f0f8e4;
    --th-bark:       #5d3a1f;
    --th-bark-light: #8b6f47;
    --th-glow:       rgba(134, 191, 88, 0.45);
    --th-shadow:     rgba(22, 48, 26, 0.18);

    --th-card-bg:      #eef7d6;
    --th-card-bg-soft: #f5fbe3;
    --th-card-bg-deep: #dcefba;
    --th-card-border:  rgba(74, 124, 46, 0.28);
    --th-text:         #243a16;
    --th-text-muted:   #567044;
    --th-border:       rgba(74, 124, 46, 0.22);

    --th-cta-1: #d4f24a;
    --th-cta-2: #a4d93a;
    --th-cta-3: #7cb342;
    --th-cta-gold: #f6c445;

    position: relative;
    padding:        26px 22px 44px !important;
    box-sizing:     border-box;
    border:         none !important;
    border-radius:  22px !important;
    overflow:       hidden !important;
    color:          var(--th-text) !important;
    background:
        radial-gradient(ellipse 60% 22% at 50% -8%,
            rgba(255, 255, 240, 0.85) 0%,
            rgba(255, 255, 240, 0) 70%),
        radial-gradient(ellipse 30% 40% at 0% 30%,
            rgba(36, 70, 31, 0.28) 0%,
            transparent 75%),
        radial-gradient(ellipse 30% 40% at 100% 30%,
            rgba(36, 70, 31, 0.28) 0%,
            transparent 75%),
        linear-gradient(180deg,
            #e2f1c8 0%,
            #cee6ab 18%,
            #b8db92 38%,
            #c6e3a4 58%,
            #a9d281 78%,
            #8fc069 100%) !important;
    box-shadow:
        inset 0 0 80px rgba(36, 70, 31, 0.15),
        inset 0 -30px 60px -20px rgba(36, 70, 31, 0.35) !important;
}

.th-world::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle 6px at 12% 22%, rgba(255,255,220,0.55), transparent 70%),
        radial-gradient(circle 4px at 78% 15%, rgba(255,255,220,0.5), transparent 70%),
        radial-gradient(circle 5px at 42% 8%,  rgba(255,255,230,0.45), transparent 70%),
        radial-gradient(circle 7px at 88% 40%, rgba(255,255,220,0.35), transparent 70%),
        radial-gradient(circle 5px at 8%  55%, rgba(255,255,230,0.35), transparent 70%);
    animation: th-breathe 9s ease-in-out infinite;
}
@keyframes th-breathe {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(-4px); }
}

.th-world > * { position: relative; z-index: 1; }
.th-world *  { box-sizing: border-box; }

/* —— 暗色主题 —— */
html[data-theme="modern-night"] .th-world,
body.theme-modern-night .th-world,
.dark-theme .th-world {
    --th-deep:       #050d05;
    --th-forest:     #16301a;
    --th-moss:       #2c5420;
    --th-leaf:       #6fae3f;
    --th-leaf-soft:  #9ed36a;
    --th-sun:        #c8e79a;
    --th-mist:       #1c2c1a;
    --th-bark:       #3d2818;
    --th-bark-light: #6b5238;
    --th-glow:       rgba(158, 211, 106, 0.35);
    --th-shadow:     rgba(0, 0, 0, 0.5);

    --th-card-bg:      #1e3a1c;
    --th-card-bg-soft: #223f1e;
    --th-card-bg-deep: #1a3318;
    --th-card-border:  rgba(158, 211, 106, 0.3);
    --th-text:         #e8f3dc;
    --th-text-muted:   #9fb894;
    --th-border:       rgba(158, 211, 106, 0.22);

    --th-cta-1: #b8e04a;
    --th-cta-2: #8bc437;
    --th-cta-3: #6a9c2b;
    --th-cta-gold: #d4a838;

    background:
        radial-gradient(ellipse 60% 22% at 50% -8%,
            rgba(158, 211, 106, 0.18) 0%,
            transparent 70%),
        linear-gradient(180deg,
            #0a1a08 0%,
            #122612 20%,
            #183018 40%,
            #142a14 62%,
            #0e200e 82%,
            #081608 100%) !important;
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.5),
        inset 0 -30px 60px -20px rgba(0, 0, 0, 0.7) !important;
}
html[data-theme="modern-night"] .th-world::before,
body.theme-modern-night .th-world::before,
.dark-theme .th-world::before {
    background:
        radial-gradient(circle 5px at 15% 25%, rgba(200,231,154,0.35), transparent 70%),
        radial-gradient(circle 4px at 72% 18%, rgba(200,231,154,0.3), transparent 70%),
        radial-gradient(circle 6px at 48% 42%, rgba(200,231,154,0.25), transparent 70%);
}

/* ==================== 森林入口（Hero） ==================== */
.th-world .th-hero {
    position: relative;
    margin: 0 0 26px;
    padding: 34px 22px 30px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(255, 255, 250, 0.55) 0%,
        rgba(255, 255, 250, 0.18) 60%,
        rgba(255, 255, 250, 0) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.th-world .th-hero-sm { padding: 26px 20px 22px; }

.th-world .th-hero-trees {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-size: 42px;
    opacity: 0.55;
    filter: drop-shadow(0 6px 10px rgba(22, 48, 26, 0.25));
}
.th-world .th-tree {
    position: absolute;
    animation: th-sway 6s ease-in-out infinite;
}
@keyframes th-sway {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-2px) rotate(1deg); }
}
.th-world .th-tree-1 { left: 5%;  bottom: -6px; font-size: 76px; animation-delay: 0s; }
.th-world .th-tree-2 { left: 20%; bottom: 0;    font-size: 56px; animation-delay: 0.8s; }
.th-world .th-tree-3 { right: 22%; bottom: -4px; font-size: 62px; animation-delay: 1.5s; }
.th-world .th-tree-4 { right: 6%;  bottom: 0;    font-size: 46px; animation-delay: 0.4s; }
.th-world .th-tree-5 { left: 46%; bottom: 2px;   font-size: 32px; opacity: 0.7; animation-delay: 1.1s; }

.th-world .th-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.th-world .th-hole {
    position: relative;
    width: 108px;
    height: 120px;
    margin: 0 auto 16px;
    filter: drop-shadow(0 10px 20px rgba(22, 48, 26, 0.35));
}
.th-world .th-hole-ring {
    position: absolute; inset: 0;
    border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
    background: linear-gradient(180deg, var(--th-bark-light), var(--th-bark));
    box-shadow:
        0 8px 22px rgba(22, 48, 26, 0.35),
        inset 0 -6px 12px rgba(0,0,0,0.4),
        inset 0 4px 8px rgba(255,255,255,0.15);
}
.th-world .th-hole-core {
    position: absolute; inset: 12px 12px 8px;
    border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
    background: radial-gradient(ellipse at 50% 30%, #000 0%, #051505 80%);
    animation: th-glow-pulse 3.5s ease-in-out infinite;
}
@keyframes th-glow-pulse {
    0%, 100% { box-shadow:
        inset 0 10px 22px rgba(0,0,0,0.95),
        inset 0 -4px 8px rgba(134,191,88,0.35),
        0 0 22px var(--th-glow); }
    50%      { box-shadow:
        inset 0 10px 22px rgba(0,0,0,0.95),
        inset 0 -4px 8px rgba(134,191,88,0.55),
        0 0 34px var(--th-glow); }
}

.th-world .th-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--th-forest);
    letter-spacing: 6px;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.7),
        0 2px 8px rgba(22, 48, 26, 0.15);
}
html[data-theme="modern-night"] .th-world .th-title,
body.theme-modern-night .th-world .th-title,
.dark-theme .th-world .th-title {
    color: var(--th-sun);
    text-shadow: 0 2px 12px rgba(158, 211, 106, 0.4);
}

.th-world .th-subtitle {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: var(--th-forest);
    opacity: 0.85;
    letter-spacing: 0.5px;
}
html[data-theme="modern-night"] .th-world .th-subtitle,
.dark-theme .th-world .th-subtitle { color: var(--th-sun); opacity: 0.75; }

/* ⭐ ============ 喊话按钮（无扫光 · 保留脉冲光晕） ============ ⭐ */
.th-world a.th-shout-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 999px;
    background: linear-gradient(180deg,
        var(--th-cta-1) 0%,
        var(--th-cta-2) 55%,
        var(--th-cta-3) 100%);
    color: #1a3a08 !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1.5px;
    border: 2px solid var(--th-cta-gold);
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    box-shadow:
        0 0 0 6px rgba(212, 242, 74, 0.28),
        0 10px 24px rgba(74, 124, 46, 0.45),
        inset 0 2px 0 rgba(255,255,255,0.65),
        inset 0 -3px 0 rgba(40, 70, 10, 0.18);
    transition: transform .22s cubic-bezier(.3,.7,.4,1.4),
                box-shadow .22s,
                background .22s;
    animation: th-cta-pulse 2.8s ease-in-out infinite;
    overflow: hidden !important;
    isolation: isolate;
}
/* ⭐ 已移除 ::before 扫光伪元素 */

/* 脉冲：只改 alpha，不改 spread（性能友好） */
@keyframes th-cta-pulse {
    0%, 100% { box-shadow:
        0 0 0 6px rgba(212, 242, 74, 0.28),
        0 10px 24px rgba(74, 124, 46, 0.45),
        inset 0 2px 0 rgba(255,255,255,0.65),
        inset 0 -3px 0 rgba(40, 70, 10, 0.18); }
    50%      { box-shadow:
        0 0 0 6px rgba(212, 242, 74, 0.06),
        0 10px 24px rgba(74, 124, 46, 0.45),
        inset 0 2px 0 rgba(255,255,255,0.65),
        inset 0 -3px 0 rgba(40, 70, 10, 0.18); }
}

.th-world a.th-shout-btn:hover {
    transform: translateY(-3px) scale(1.04);
    background: linear-gradient(180deg,
        #e0ff5c 0%,
        var(--th-cta-1) 55%,
        var(--th-cta-2) 100%);
    box-shadow:
        0 0 0 6px rgba(212, 242, 74, 0.4),
        0 16px 34px rgba(74, 124, 46, 0.6),
        inset 0 2px 0 rgba(255,255,255,0.75),
        inset 0 -3px 0 rgba(40, 70, 10, 0.2);
    animation-play-state: paused;
}
.th-world a.th-shout-btn:active {
    transform: translateY(-1px) scale(1.01);
}
.th-world a.th-shout-btn > span:not(.th-bird) {
    position: relative;
    z-index: 2;
}

/* 小号版本 */
.th-world a.th-shout-btn-sm {
    padding: 10px 22px;
    font-size: 14px;
    letter-spacing: 1px;
    border-width: 1.5px;
    gap: 8px;
}

/* ==================== Flash ==================== */
.th-world .th-flash { margin: 0 0 16px; border-radius: 12px; }

/* ==================== 情绪叶片栏 ==================== */
.th-world .th-mood-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(220, 240, 180, 0.55);
    border: 1px solid rgba(255,255,250,0.6);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 2px 8px rgba(22, 48, 26, 0.06);
}
html[data-theme="modern-night"] .th-world .th-mood-bar {
    background: rgba(30, 58, 28, 0.55);
    border-color: rgba(158,211,106,0.25);
}
.th-world a.th-leaf {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    border-radius: 999px 999px 999px 4px;
    background: rgba(255,255,250,0.5);
    color: var(--th-forest) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.th-world a.th-leaf:hover {
    background: rgba(255,255,250,0.85);
    color: var(--th-deep) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 48, 26, 0.12);
}
.th-world a.th-leaf.is-active {
    background: linear-gradient(180deg, var(--th-cta-2), var(--th-cta-3));
    color: #14300a !important;
    box-shadow:
        0 4px 12px rgba(36, 70, 31, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.5);
    font-weight: 700;
    border: 1px solid var(--th-cta-gold);
}
html[data-theme="modern-night"] .th-world a.th-leaf {
    color: var(--th-sun) !important;
    background: rgba(158,211,106,0.15);
}
html[data-theme="modern-night"] .th-world a.th-leaf.is-active {
    color: #14300a !important;
    background: linear-gradient(180deg, var(--th-cta-2), var(--th-cta-3));
}

/* ==================== 列表卡片 ==================== */
.th-world .th-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.th-world .th-card {
    position: relative;
    padding: 18px 20px;
    border-radius: 18px 18px 18px 6px;
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
    border: 1px solid var(--th-card-border);
    box-shadow:
        0 2px 4px rgba(22, 48, 26, 0.08),
        0 8px 24px -8px rgba(22, 48, 26, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.7);
    transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
    color: var(--th-text);
}
.th-world .th-card::before {
    content: '';
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--th-cta-2), var(--th-moss));
    opacity: 0.65;
}
.th-world .th-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg,
        #f9fdeb 0%,
        var(--th-card-bg-soft) 100%);
    box-shadow:
        0 4px 8px rgba(22, 48, 26, 0.1),
        0 16px 32px -8px rgba(22, 48, 26, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: var(--th-cta-2);
}
.th-world .th-card:hover::before { opacity: 1; }
.th-world .th-card.is-pinned {
    border-color: var(--th-cta-gold);
    background: linear-gradient(180deg,
        #fbfce0 0%,
        var(--th-card-bg) 100%);
    box-shadow:
        0 4px 12px rgba(212, 242, 74, 0.35),
        0 12px 28px -8px rgba(22, 48, 26, 0.25);
}
.th-world .th-card.is-pending { border-style: dashed; opacity: 0.9; }
.th-world .th-card.is-hidden { opacity: 0.6; }

html[data-theme="modern-night"] .th-world .th-card {
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
    border-color: var(--th-card-border);
}
html[data-theme="modern-night"] .th-world .th-card:hover {
    background: linear-gradient(180deg,
        #253f22 0%,
        var(--th-card-bg-soft) 100%);
}

.th-world .th-pin { margin-right: 6px; }

.th-world .th-card-mood {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(124, 179, 66, 0.25);
    color: var(--th-forest);
    border: 1px solid rgba(94, 140, 50, 0.35);
}
html[data-theme="modern-night"] .th-world .th-card-mood {
    background: rgba(158, 211, 106, 0.18);
    color: var(--th-sun);
    border-color: rgba(158,211,106,0.35);
}
.th-world .th-mood-emoji { font-size: 14px; }

.th-world a.th-card-body {
    display: block;
    text-decoration: none;
    color: inherit;
}
.th-world .th-card-text {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--th-text);
    word-break: break-word;
    white-space: pre-wrap;
    letter-spacing: 0.2px;
}

.th-world .th-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--th-text-muted);
    border-top: 1px dashed var(--th-border);
    padding-top: 12px;
}
.th-world .th-stat { display: inline-flex; align-items: center; gap: 3px; }
.th-world .th-time { margin-left: auto; }
.th-world a.th-go {
    color: var(--th-moss) !important;
    text-decoration: none;
    font-weight: 700;
    transition: color .15s, transform .15s;
    display: inline-block;
}
.th-world a.th-go:hover {
    color: var(--th-forest) !important;
    transform: translateX(2px);
}
html[data-theme="modern-night"] .th-world a.th-go { color: var(--th-leaf-soft) !important; }

.th-world .th-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.th-world .th-badge-st0 { background: #fef3c7; color: #92400e; }
.th-world .th-badge-st1 { background: #d9f0a8; color: #2e5c10; }
.th-world .th-badge-st2 { background: #d5e4c4; color: #405030; }
.th-world .th-badge-st3 { background: #f3c9cb; color: #991b1b; }

/* ==================== 空状态 ==================== */
.th-world .th-empty {
    padding: 56px 24px;
    text-align: center;
    color: var(--th-forest);
    border-radius: 20px;
    background: rgba(220, 240, 180, 0.5);
    border: 1px dashed rgba(94, 140, 50, 0.5);
}
.th-world .th-empty-tree { font-size: 56px; margin-bottom: 10px; opacity: 0.9; }
.th-world .th-empty p { font-size: 14px; opacity: 0.9; }
.th-world .th-empty-sm { padding: 28px 18px; }
html[data-theme="modern-night"] .th-world .th-empty {
    color: var(--th-sun);
    background: rgba(30, 58, 28, 0.5);
    border-color: rgba(158,211,106,0.35);
}

/* ==================== 分页 ==================== */
.th-world .th-pager {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.th-world a.th-page-btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(74, 124, 46, 0.4);
    background: rgba(240, 250, 220, 0.8);
    color: var(--th-forest) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.th-world a.th-page-btn:hover {
    background: var(--th-card-bg-soft);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(22,48,26,0.15);
    border-color: var(--th-cta-2);
}
html[data-theme="modern-night"] .th-world a.th-page-btn {
    color: var(--th-sun) !important;
    background: rgba(30, 58, 28, 0.7);
    border-color: rgba(158,211,106,0.4);
}
.th-world .th-page-info {
    font-size: 13px;
    color: var(--th-forest);
    opacity: 0.85;
    font-weight: 700;
}
html[data-theme="modern-night"] .th-world .th-page-info { color: var(--th-sun); }

/* ==================== 返回链接 ==================== */
.th-world a.th-back {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(240, 250, 220, 0.75);
    color: var(--th-forest) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(74, 124, 46, 0.3);
    transition: background .15s, transform .15s;
}
.th-world a.th-back:hover {
    background: var(--th-card-bg-soft);
    transform: translateX(-2px);
}
html[data-theme="modern-night"] .th-world a.th-back {
    color: var(--th-sun) !important;
    background: rgba(30, 58, 28, 0.7);
    border-color: rgba(158,211,106,0.35);
}

/* ==================== 详情：树洞本体 ==================== */
.th-world .th-cave {
    position: relative;
    margin: 0 auto 24px;
    max-width: 780px;
    padding: 12px;
    border-radius: 32px 32px 32px 8px;
    background: linear-gradient(180deg, var(--th-bark-light), var(--th-bark));
    box-shadow:
        0 18px 44px -8px rgba(22, 48, 26, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -4px 8px rgba(0,0,0,0.3);
}
.th-world .th-cave-bark {
    position: absolute;
    inset: 8px;
    border-radius: 26px 26px 26px 6px;
    background-image:
        repeating-linear-gradient(180deg,
            transparent 0 22px,
            rgba(0,0,0,0.08) 22px 24px),
        repeating-linear-gradient(90deg,
            transparent 0 40px,
            rgba(255,255,255,0.05) 40px 42px);
    pointer-events: none;
    opacity: 0.9;
}
.th-world .th-cave-mouth {
    position: relative;
    z-index: 2;
    margin: 12px;
    padding: 30px 30px 22px;
    border-radius: 24px 24px 24px 6px;
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
    border: 1px solid var(--th-card-border);
    box-shadow:
        inset 0 12px 30px rgba(30, 60, 15, 0.28),
        inset 0 -4px 10px rgba(134,191,88,0.28),
        0 0 36px var(--th-glow);
}
html[data-theme="modern-night"] .th-world .th-cave-mouth {
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
    border-color: var(--th-card-border);
}

.th-world .th-cave-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.th-world .th-cave-mood {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(124, 179, 66, 0.28);
    color: var(--th-forest);
    border: 1px solid rgba(94, 140, 50, 0.4);
}
html[data-theme="modern-night"] .th-world .th-cave-mood {
    background: rgba(158,211,106,0.2);
    color: var(--th-sun);
    border-color: rgba(158,211,106,0.35);
}
.th-world .th-cave-id { font-size: 12px; color: var(--th-text-muted); font-style: italic; }

.th-world .th-cave-body {
    font-size: 15.5px;
    line-height: 2;
    color: var(--th-text);
    word-break: break-word;
    white-space: pre-wrap;
    letter-spacing: 0.3px;
}

.th-world .th-cave-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 16px;
}
.th-world .th-cave-images img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--th-border);
    box-shadow: 0 4px 12px -2px rgba(22,48,26,0.15);
}

.th-world .th-cave-foot {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--th-border);
    font-size: 12px;
    color: var(--th-text-muted);
}

/* ==================== 拥抱按钮 ==================== */
.th-world .th-hug-zone {
    text-align: center;
    margin: 26px 0 36px;
}
.th-world .th-hug-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 18px 38px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--th-cta-2), var(--th-cta-3));
    color: #14300a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 12px 28px rgba(36, 70, 31, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.5),
        inset 0 -3px 0 rgba(0,0,0,0.15);
    transition: transform .2s, box-shadow .2s;
}
.th-world .th-hug-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow:
        0 18px 36px rgba(36, 70, 31, 0.5),
        inset 0 2px 0 rgba(255,255,255,0.5);
}
.th-world .th-hug-btn:disabled,
.th-world .th-hug-btn.is-hugged {
    background: linear-gradient(180deg, var(--th-cta-1), var(--th-cta-2));
    cursor: default;
    opacity: 1;
}
.th-world .th-hug-emoji { font-size: 24px; line-height: 1; }
.th-world .th-hug-count { font-size: 22px; font-weight: 800; line-height: 1.1; }
.th-world .th-hug-label { font-size: 12px; opacity: 0.95; letter-spacing: 0.5px; }
.th-world .th-hug-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--th-forest);
    opacity: 0.85;
    letter-spacing: 0.5px;
}
html[data-theme="modern-night"] .th-world .th-hug-hint { color: var(--th-sun); }

@keyframes th-ripple {
    0%   { box-shadow:
        0 0 0 0 var(--th-glow),
        0 12px 28px rgba(36, 70, 31, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.5); }
    100% { box-shadow:
        0 0 0 28px rgba(134, 191, 88, 0),
        0 12px 28px rgba(36, 70, 31, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.5); }
}
.th-world .th-hug-btn.th-ripple { animation: th-ripple .7s ease-out; }

/* ==================== 回声（回复） ==================== */
.th-world .th-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--th-forest);
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
html[data-theme="modern-night"] .th-world .th-section-title {
    color: var(--th-sun);
    text-shadow: none;
}
.th-world .th-count {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(240, 250, 220, 0.85);
    color: var(--th-forest);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(74, 124, 46, 0.3);
}
html[data-theme="modern-night"] .th-world .th-count {
    color: var(--th-sun);
    background: rgba(30, 58, 28, 0.7);
    border-color: rgba(158,211,106,0.35);
}

.th-world .th-echo-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.th-world .th-echo {
    position: relative;
    padding: 14px 16px 14px 40px;
    border-radius: 4px 16px 16px 16px;
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
    border: 1px solid var(--th-card-border);
    box-shadow:
        0 2px 4px rgba(22,48,26,0.06),
        0 6px 16px -6px rgba(22,48,26,0.15);
}
.th-world .th-echo.is-op {
    border-color: var(--th-cta-2);
    background:
        linear-gradient(90deg, rgba(164, 217, 58, 0.18), transparent 45%),
        linear-gradient(180deg, var(--th-card-bg-soft) 0%, var(--th-card-bg) 100%);
    box-shadow:
        0 2px 4px rgba(22,48,26,0.06),
        0 8px 20px -6px rgba(164, 217, 58, 0.35);
}
html[data-theme="modern-night"] .th-world .th-echo {
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
}
.th-world .th-echo-leaf {
    position: absolute;
    left: 10px;
    top: 12px;
    font-size: 18px;
    opacity: 0.85;
}
.th-world .th-echo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--th-text-muted);
}
.th-world .th-echo-name { font-weight: 700; color: var(--th-moss); }
html[data-theme="modern-night"] .th-world .th-echo-name { color: var(--th-sun); }
.th-world .th-echo-time { margin-left: auto; }
.th-world .th-echo-body {
    font-size: 14px;
    line-height: 1.85;
    color: var(--th-text);
    word-break: break-word;
    white-space: pre-wrap;
}

.th-world .th-report-btn {
    padding: 3px 10px;
    border: 1px solid rgba(200, 60, 40, 0.3);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.6);
    color: #b03030;
    font-size: 11px;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}
.th-world .th-report-btn:hover {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}
.th-world .th-report-btn-lg { padding: 7px 18px; font-size: 12.5px; }

/* ==================== 回复框 ==================== */
.th-world .th-reply-form { margin-top: 8px; }
.th-world .th-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.th-world .th-char-count { font-size: 12px; color: var(--th-forest); opacity: 0.85; }
.th-world .th-char-count.is-near { color: #dc2626; font-weight: 700; opacity: 1; }
html[data-theme="modern-night"] .th-world .th-char-count { color: var(--th-sun); }

/* ==================== 表单通用 ==================== */
.th-world .th-field { margin-bottom: 20px; }
.th-world .th-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--th-forest);
    letter-spacing: 0.3px;
}
html[data-theme="modern-night"] .th-world .th-label { color: var(--th-sun); }

.th-world .th-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--th-card-border);
    border-radius: 14px;
    background: var(--th-card-bg-soft);
    color: var(--th-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-shadow: inset 0 1px 3px rgba(22,48,26,0.08);
}
.th-world .th-input:focus {
    border-color: var(--th-cta-2);
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(164, 217, 58, 0.35),
        inset 0 1px 3px rgba(22,48,26,0.05);
}
html[data-theme="modern-night"] .th-world .th-input {
    background: var(--th-card-bg-deep);
    color: var(--th-text);
}
html[data-theme="modern-night"] .th-world .th-input:focus {
    background: #253f22;
}
.th-world .th-textarea {
    line-height: 1.85;
    resize: vertical;
    min-height: 100px;
    white-space: pre-wrap;
}
.th-world .th-textarea-lg { min-height: 200px; }

.th-world .th-char-row { display: flex; justify-content: flex-end; margin-top: 8px; }

.th-world .th-file {
    padding: 12px;
    background: var(--th-card-bg-deep);
    cursor: pointer;
}
html[data-theme="modern-night"] .th-world .th-file { background: rgba(158,211,106,0.08); }
.th-world .th-help { margin: 8px 0 0; font-size: 12px; color: var(--th-forest); opacity: 0.8; }
html[data-theme="modern-night"] .th-world .th-help { color: var(--th-sun); }

.th-world .th-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.th-world .th-preview img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--th-card-border);
    box-shadow: 0 4px 12px -2px rgba(22,48,26,0.2);
}

/* ==================== 按钮 ==================== */
.th-world .th-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform .18s, box-shadow .18s, background .18s;
}
.th-world .th-btn-primary {
    background: linear-gradient(180deg, var(--th-cta-2), var(--th-cta-3));
    color: #14300a !important;
    box-shadow:
        0 6px 16px rgba(36, 70, 31, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1.5px solid var(--th-cta-gold);
}
.th-world .th-btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, var(--th-cta-1), var(--th-cta-2));
    box-shadow:
        0 12px 24px rgba(36, 70, 31, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.6);
}
.th-world a.th-btn-ghost {
    background: rgba(240, 250, 220, 0.75);
    color: var(--th-forest) !important;
    border: 1px solid var(--th-card-border);
}
.th-world a.th-btn-ghost:hover { background: var(--th-card-bg-soft); }
html[data-theme="modern-night"] .th-world a.th-btn-ghost {
    color: var(--th-sun) !important;
    background: rgba(30, 58, 28, 0.7);
    border-color: rgba(158,211,106,0.35);
}

/* ⭐ 发布页提交按钮：无扫光 */
.th-world .th-btn-shout {
    position: relative;
    padding: 12px 28px;
    font-size: 15px;
    gap: 10px;
    overflow: hidden !important;
}
/* ⭐ 已移除 ::before 扫光伪元素 */

.th-world .th-btn-shout > span:not(.th-bird) {
    position: relative;
    z-index: 2;
}
.th-world .th-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.th-world .th-link-danger {
    background: none;
    border: none;
    padding: 0;
    color: #dc2626 !important;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}
.th-world .th-link-danger:hover { text-decoration: underline; }

.th-world .th-inline-form { display: inline-block; }

/* ==================== 发布页 ==================== */
.th-world .th-create-hero {
    text-align: center;
    margin-bottom: 26px;
    padding: 20px 0;
}
.th-world .th-create-tree {
    font-size: 68px;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 8px 14px rgba(22,48,26,0.25));
    animation: th-sway 5s ease-in-out infinite;
}

.th-world .th-shout-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
    border: 1.5px solid var(--th-card-border);
    box-shadow:
        0 4px 8px rgba(22,48,26,0.08),
        0 16px 40px -12px rgba(22,48,26,0.25),
        inset 0 1px 0 rgba(255,255,255,0.75);
}
html[data-theme="modern-night"] .th-world .th-shout-form {
    background: linear-gradient(180deg,
        var(--th-card-bg-soft) 0%,
        var(--th-card-bg) 100%);
    border-color: var(--th-card-border);
}
.th-world .th-quota {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(164, 217, 58, 0.3);
    color: var(--th-forest);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(94, 140, 50, 0.35);
}
html[data-theme="modern-night"] .th-world .th-quota {
    color: var(--th-sun);
    background: rgba(158,211,106,0.2);
    border-color: rgba(158,211,106,0.35);
}

.th-world .th-mood-pick { border: none; padding: 0; margin: 0 0 20px; }
.th-world .th-mood-pick legend {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--th-forest);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
html[data-theme="modern-night"] .th-world .th-mood-pick legend { color: var(--th-sun); }
.th-world .th-mood-pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.th-world .th-leaf-pick {
    position: relative;
    padding: 9px 16px;
    border: 1.5px solid var(--th-card-border);
    background: var(--th-card-bg-soft);
    border-radius: 999px 999px 999px 4px;
    cursor: pointer;
    user-select: none;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.th-world .th-leaf-pick:hover {
    background: var(--th-card-bg-deep);
    border-color: var(--th-cta-2);
    transform: translateY(-1px);
}
.th-world .th-leaf-pick input { position: absolute; opacity: 0; pointer-events: none; }
.th-world .th-leaf-pick:has(input:checked) {
    background: linear-gradient(180deg, var(--th-cta-2), var(--th-cta-3));
    color: #14300a;
    border-color: var(--th-cta-gold);
    box-shadow:
        0 6px 14px rgba(36, 70, 31, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.5);
    transform: translateY(-1px);
}
.th-world .th-leaf-emoji { font-size: 15px; }
.th-world .th-leaf-text { font-size: 13px; font-weight: 600; }

.th-world .th-notice {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 245, 200, 0.65);
    border-left: 4px solid #e0a020;
    color: #7a5a10;
    font-size: 12.5px;
    line-height: 1.7;
    margin-bottom: 18px;
}
html[data-theme="modern-night"] .th-world .th-notice {
    background: rgba(224, 160, 32, 0.15);
    color: #f0d090;
    border-left-color: #d0a020;
}

/* ==================== 举报主帖 ==================== */
.th-world .th-report-post {
    text-align: center;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px dashed rgba(74, 124, 46, 0.35);
}

/* ============================================================
   小鸟 · 停在按钮内文字左侧
   ============================================================ */

.th-world .th-bird {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 32px;
    margin-top: -2px;
    pointer-events: none;
    z-index: 4;
    animation: th-bird-bob 2.4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(22, 48, 26, 0.3));
}
@keyframes th-bird-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}

.th-world .th-bird-tail {
    position: absolute;
    left: 0;
    bottom: 7px;
    width: 13px;
    height: 9px;
    background: linear-gradient(90deg, #a87820, #d9a930);
    clip-path: polygon(100% 0, 100% 100%, 0 80%, 20% 50%, 0 20%);
    transform-origin: 100% 50%;
    animation: th-bird-tail 1.2s ease-in-out infinite;
    z-index: 0;
}
@keyframes th-bird-tail {
    0%, 100% { transform: rotate(0); }
    50%      { transform: rotate(-6deg); }
}

.th-world .th-bird-body {
    position: absolute;
    left: 7px;
    top: 3px;
    width: 26px;
    height: 26px;
    background:
        radial-gradient(circle at 32% 30%, #fff5b8 0%, #f5cf55 45%, #d9a930 100%);
    border-radius: 58% 42% 42% 58% / 55% 55% 45% 45%;
    box-shadow:
        inset -3px -3px 6px rgba(160, 105, 20, 0.35),
        inset 3px 3px 5px rgba(255, 245, 180, 0.7);
    z-index: 1;
}

.th-world .th-bird-eye {
    position: absolute;
    right: 5px;
    top: 6px;
    width: 5px;
    height: 5px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.85);
    z-index: 2;
}

.th-world .th-bird-beak-top {
    position: absolute;
    left: 31px;
    top: 10px;
    width: 9px;
    height: 5px;
    background: linear-gradient(180deg, #f08030, #d9691a);
    clip-path: polygon(0 0, 100% 55%, 0 100%);
    transform-origin: 0% 50%;
    animation: th-bird-chirp-top 0.42s ease-in-out infinite;
    z-index: 3;
}
@keyframes th-bird-chirp-top {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(-25deg); }
}

.th-world .th-bird-beak-bottom {
    position: absolute;
    left: 31px;
    top: 15px;
    width: 9px;
    height: 5px;
    background: linear-gradient(180deg, #c95114, #a03f0d);
    clip-path: polygon(0 0, 100% 45%, 0 100%);
    transform-origin: 0% 50%;
    animation: th-bird-chirp-bot 0.42s ease-in-out infinite;
    z-index: 3;
}
@keyframes th-bird-chirp-bot {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(25deg); }
}

.th-world .th-bird-wing {
    position: absolute;
    left: 3px;
    top: 10px;
    width: 12px;
    height: 10px;
    background: linear-gradient(135deg, #d9a930, #9e7218);
    border-radius: 65% 35% 55% 60%;
    transform-origin: 20% 20%;
    animation: th-bird-wing 0.42s ease-in-out infinite;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.25);
    z-index: 2;
}
@keyframes th-bird-wing {
    0%, 100% { transform: rotate(-10deg); }
    50%      { transform: rotate(8deg); }
}

.th-world .th-bird-wave {
    position: absolute;
    top: 12px;
    left: 40px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(212, 242, 74, 1) 0%,
        rgba(212, 242, 74, 0.6) 45%,
        rgba(212, 242, 74, 0) 75%);
    transform-origin: center;
    animation: th-bird-wave 1.6s ease-out infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}
.th-world .th-bird-wave-2 { animation-delay: 0.53s; }
.th-world .th-bird-wave-3 { animation-delay: 1.06s; }

@keyframes th-bird-wave {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
    20%  { opacity: 1; transform: translate(3px, -3px) scale(0.85); }
    100% { opacity: 0; transform: translate(14px, -8px) scale(0.3); }
}

/* 暗色主题 */
html[data-theme="modern-night"] .th-world .th-bird,
body.theme-modern-night .th-world .th-bird,
.dark-theme .th-world .th-bird {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}
html[data-theme="modern-night"] .th-world .th-bird-body,
body.theme-modern-night .th-world .th-bird-body,
.dark-theme .th-world .th-bird-body {
    background:
        radial-gradient(circle at 32% 30%, #fff5b8 0%, #f5cf55 45%, #b8940a 100%);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 640px) {
    .th-world {
        padding: 16px 12px 30px !important;
        border-radius: 16px !important;
    }
    .th-world .th-hero { padding: 26px 16px 22px; border-radius: 16px; }
    .th-world .th-title { font-size: 22px; letter-spacing: 3px; }
    .th-world .th-subtitle { font-size: 12.5px; }
    .th-world .th-hero-trees { font-size: 30px; }
    .th-world .th-tree-1 { font-size: 58px; }
    .th-world .th-tree-2 { font-size: 44px; }
    .th-world .th-tree-3 { font-size: 48px; }
    .th-world .th-tree-4 { font-size: 36px; }
    .th-world .th-hole { width: 84px; height: 96px; }
    .th-world .th-card { padding: 14px 16px; }
    .th-world .th-card-text { font-size: 14px; line-height: 1.8; }
    .th-world .th-cave-mouth { padding: 20px; }
    .th-world .th-cave-body { font-size: 14.5px; line-height: 1.9; }
    .th-world .th-shout-form { padding: 20px; border-radius: 18px; }
    .th-world .th-hug-btn { padding: 15px 30px; }
    .th-world .th-mood-bar { padding: 8px; }
    .th-world a.th-leaf { padding: 6px 12px; font-size: 12.5px; }

    .th-world a.th-shout-btn {
        padding: 10px 20px;
        font-size: 14.5px;
        letter-spacing: 1px;
        gap: 8px;
    }
    .th-world a.th-shout-btn-sm {
        padding: 9px 18px;
        gap: 6px;
    }
    .th-world .th-btn-shout {
        padding: 11px 22px;
        gap: 8px;
    }

    .th-world .th-bird {
        width: 34px;
        height: 28px;
    }
    .th-world .th-bird-body {
        width: 22px;
        height: 22px;
        left: 6px;
        top: 3px;
    }
    .th-world .th-bird-eye { right: 4px; top: 5px; width: 4px; height: 4px; }
    .th-world .th-bird-beak-top { left: 26px; top: 9px; width: 8px; height: 4px; }
    .th-world .th-bird-beak-bottom { left: 26px; top: 13px; width: 8px; height: 4px; }
    .th-world .th-bird-wing { width: 10px; height: 9px; left: 3px; top: 9px; }
    .th-world .th-bird-tail { width: 11px; height: 8px; bottom: 6px; }
    .th-world .th-bird-wave { left: 34px; top: 11px; width: 6px; height: 6px; }
}