/* ============================================
   城市树洞 · 全局样式
   森林绿、暖木色与城市夜色
   ============================================ */

:root {
    --green-950: #173327;
    --green-900: #1d4031;
    --green-700: #35654b;
    --green-500: #54866a;
    --green-300: #91b49a;
    --green-100: #e8f0e8;
    --wood-700: #80583e;
    --wood-500: #ad7b53;
    --cream-50: #fbf9f4;
    --cream-100: #f4f0e7;
    --cream-200: #e9e2d5;
    --text-900: #292b25;
    --text-600: #62645b;
    --text-400: #898a80;
    --white: #fffefa;
    --shadow-sm: 0 5px 18px rgba(32, 54, 41, .07);
    --shadow-md: 0 14px 40px rgba(32, 54, 41, .11);
    --shadow-lg: 0 24px 70px rgba(23, 51, 39, .2);
    --radius: 18px;
    --radius-lg: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--text-900);
    background:
        radial-gradient(ellipse at 90% 2%, rgba(218, 228, 211, .3), transparent 30rem),
        var(--cream-50);
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

button, select, textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

::selection {
    color: var(--green-950);
    background: #dce9d9;
}

:focus-visible {
    outline: 3px solid rgba(84, 134, 106, .55);
    outline-offset: 3px;
}

h1, h2, h3 {
    color: var(--green-950);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-weight: 700;
    letter-spacing: .025em;
}

/* 导航 */
.nav {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(233, 226, 213, .78);
    background: rgba(251, 249, 244, .88);
    backdrop-filter: blur(16px);
}

.nav-inner {
    display: flex;
    max-width: 1200px;
    min-height: 74px;
    margin: 0 auto;
    padding: 12px 28px;
    align-items: center;
    justify-content: space-between;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green-900);
    font-family: 'Noto Serif SC', serif;
    font-size: 19px;
    font-weight: 700;
}

.brand-icon {
    display: grid;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(84, 134, 106, .2);
    border-radius: 50%;
    background: var(--green-100);
    font-size: 20px;
    place-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-links a {
    padding: 8px 17px;
    border-radius: 999px;
    color: var(--text-600);
    font-size: 14px;
    transition: color .2s, background .2s, transform .2s;
}

.nav-links a:hover {
    color: var(--green-700);
    background: var(--green-100);
}

.nav-links a.active {
    color: var(--white);
    background: var(--green-700);
    box-shadow: 0 4px 12px rgba(53, 101, 75, .2);
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-account a, .nav-account button {
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--green-900);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
}

.nav-account-register {
    border-color: var(--green-700) !important;
    color: var(--white) !important;
    background: var(--green-700) !important;
}

.nav-account-register:hover { background: var(--green-900) !important; }
.nav-account-login:hover, .nav-account-profile:hover, .nav-account-logout:hover { background: var(--green-100); }
.nav-account-profile { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.nav-account-logout { color: var(--text-600) !important; }

/* 首页主视觉 */
.hero {
    position: relative;
    display: flex;
    max-width: 1200px;
    min-height: 530px;
    margin: 0 auto;
    padding: 74px 48px 80px;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 42px;
    right: 0;
    width: 55%;
    height: 430px;
    border-radius: 48% 52% 42% 58% / 52% 42% 58% 48%;
    background: radial-gradient(ellipse at 50% 45%, #edf1e8 0%, #f0eee3 58%, rgba(240, 238, 227, 0) 72%);
    content: '';
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 23px;
    padding: 7px 13px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(84, 134, 106, .28);
    border-radius: 999px;
    color: var(--green-700);
    background: rgba(255, 254, 250, .6);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
}

.hero-badge::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-500);
    content: '';
    box-shadow: 0 0 0 4px rgba(84, 134, 106, .12);
}

.hero-title {
    margin-bottom: 21px;
    color: var(--green-950);
    font-size: clamp(42px, 5vw, 64px);
    letter-spacing: .06em;
    line-height: 1.42;
}

.hero-sub {
    margin-bottom: 31px;
    color: var(--text-600);
    font-size: 16px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--green-700);
    box-shadow: 0 8px 20px rgba(53, 101, 75, .2);
}

.btn-primary:hover {
    background: var(--green-900);
    box-shadow: 0 12px 25px rgba(53, 101, 75, .25);
}

.btn-ghost {
    border-color: var(--cream-200);
    color: var(--green-700);
    background: rgba(255, 254, 250, .6);
}

.btn-ghost:hover {
    border-color: var(--green-300);
    background: var(--green-100);
}

.btn-light {
    color: var(--green-900);
    background: var(--cream-50);
}

.btn-light:hover {
    box-shadow: 0 8px 20px rgba(15, 40, 28, .18);
}

.btn-full {
    width: 100%;
}

/* CSS 树插画 */
.hero-tree {
    position: relative;
    width: 300px;
    height: 350px;
    margin-right: 55px;
    flex: 0 0 auto;
    filter: drop-shadow(0 22px 18px rgba(36, 57, 39, .12));
}

.hero-tree::after {
    position: absolute;
    right: -44px;
    bottom: 1px;
    left: -44px;
    height: 24px;
    border-radius: 50%;
    background: rgba(92, 111, 77, .1);
    content: '';
    filter: blur(8px);
}

.tree-canopy {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 50%;
    width: 240px;
    height: 210px;
    transform: translateX(-50%);
    border-radius: 48% 52% 48% 52% / 54% 48% 52% 46%;
    background:
        radial-gradient(circle at 23% 60%, #77977a 0 13%, transparent 13.5%),
        radial-gradient(circle at 77% 55%, #3f7151 0 16%, transparent 16.5%),
        radial-gradient(circle at 48% 28%, #729575 0 25%, transparent 25.5%),
        radial-gradient(circle at 49% 65%, #588263 0 34%, transparent 34.5%),
        #456f50;
    box-shadow: inset -15px -15px 32px rgba(23, 51, 39, .2), inset 12px 10px 24px rgba(255, 255, 255, .13);
}

.tree-canopy::before {
    position: absolute;
    top: 28px;
    left: 56px;
    width: 68px;
    height: 42px;
    transform: rotate(-33deg);
    border-radius: 100% 0 100% 0;
    background: rgba(231, 239, 216, .34);
    content: '';
}

.leaf {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 100% 0 100% 0;
    background: #8da981;
}

.leaf-1 { top: 17px; left: 23px; transform: rotate(-18deg); }
.leaf-2 { top: 34px; right: 16px; transform: rotate(67deg); background: #78956f; }
.leaf-3 { bottom: 16px; left: 17px; transform: rotate(32deg); background: #355f43; }
.leaf-4 { right: 7px; bottom: 19px; transform: rotate(88deg); background: #71906a; }

.tree-trunk {
    position: absolute;
    z-index: 1;
    bottom: 7px;
    left: 50%;
    width: 76px;
    height: 190px;
    transform: translateX(-50%);
    border-radius: 24px 24px 9px 9px;
    background: linear-gradient(90deg, #714b34 0%, #a87950 33%, #b28358 56%, #80583e 100%);
    box-shadow: inset 8px 0 12px rgba(255, 235, 199, .16), inset -9px 0 14px rgba(46, 28, 17, .15);
}

.tree-trunk::before, .tree-trunk::after {
    position: absolute;
    top: 0;
    width: 28px;
    height: 68px;
    border-radius: 70% 70% 0 0;
    background: #8c6443;
    content: '';
}

.tree-trunk::before { left: -14px; transform: rotate(-16deg); }
.tree-trunk::after { right: -14px; transform: rotate(16deg); }

.hole {
    position: absolute;
    top: 52px;
    left: 50%;
    width: 43px;
    height: 58px;
    transform: translateX(-50%);
    border: 4px solid rgba(213, 168, 117, .35);
    border-radius: 50% 50% 46% 46%;
    background: radial-gradient(ellipse at 40% 35%, #33271f, #17120f 75%);
    box-shadow: inset 2px 3px 8px rgba(0, 0, 0, .55), 0 0 0 2px rgba(87, 57, 36, .35);
}

/* 通用内容区 */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 78px 28px;
}

.section-alt {
    max-width: none;
    border-top: 1px solid rgba(233, 226, 213, .7);
    border-bottom: 1px solid rgba(233, 226, 213, .7);
    background:
        radial-gradient(ellipse at 8% 0%, rgba(232, 240, 232, .6), transparent 30rem),
        rgba(255, 254, 250, .7);
}

.section-alt > * {
    max-width: 1144px;
    margin-right: auto;
    margin-left: auto;
}

.section-header {
    margin-bottom: 42px;
    text-align: center;
}

.section-title {
    margin-bottom: 9px;
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: .04em;
}

.section-desc {
    color: var(--text-400);
    font-size: 15px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    border: 1px solid rgba(233, 226, 213, .8);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.feature-card::before {
    position: absolute;
    top: 0;
    right: 25%;
    left: 25%;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--green-300), transparent);
    content: '';
    opacity: 0;
    transition: opacity .25s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(145, 180, 154, .7);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 17px;
    border-radius: 22px;
    background: var(--green-100);
    font-size: 30px;
    place-items: center;
}

.feature-card:nth-child(2) .feature-icon { background: #f4eee3; }
.feature-card:nth-child(3) .feature-icon { background: #eaf0e9; }

.feature-card h3 {
    margin-bottom: 9px;
    font-size: 19px;
}

.feature-card p {
    color: var(--text-600);
    font-size: 14px;
    line-height: 1.85;
}

/* 城市卡片 */
.city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.city-card {
    position: relative;
    overflow: hidden;
    min-height: 217px;
    padding: 25px 22px 22px;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius);
    background: rgba(255, 254, 250, .82);
    cursor: default;
    color: var(--text-900);
    font: inherit;
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    width: 100%;
}

.city-card::after {
    position: absolute;
    right: -26px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(232, 240, 232, .75);
    content: '';
    transition: transform .25s;
}

.city-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-300);
    box-shadow: var(--shadow-md);
}

.city-card:hover::after { transform: scale(1.25); }

.city-top {
    position: relative;
    z-index: 1;
    display: grid;
    width: 53px;
    height: 53px;
    margin: 0 auto 8px;
    border-radius: 18px;
    background: var(--cream-100);
    font-size: 28px;
    place-items: center;
}

.city-card h3, .city-card p, .city-count {
    position: relative;
    z-index: 1;
}

.city-card h3 {
    margin-bottom: 2px;
    font-size: 20px;
}

.city-card p {
    min-height: 27px;
    margin-bottom: 12px;
    color: var(--text-600);
    font-size: 13px;
}

.city-count {
    display: inline-block;
    padding: 3px 11px;
    border: 1px solid rgba(84, 134, 106, .12);
    border-radius: 999px;
    color: var(--green-700);
    background: var(--green-100);
    font-size: 12px;
}

.city-view-link {
    position: relative;
    z-index: 1;
    display: flex;
    margin: 12px 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.city-view-link > span:last-child {
    color: var(--green-700);
    font-size: 12px;
}

.city-submit {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid rgba(84, 134, 106, .2);
    border-radius: 999px;
    color: var(--green-700);
    background: var(--green-100);
    font-size: 12px;
    transition: background .2s, color .2s;
}

.city-submit:hover {
    color: var(--white);
    background: var(--green-700);
}

/* 管理员公开倾诉管理 */
.admin-main {
    max-width: 960px;
    min-height: 65vh;
    margin: 0 auto;
    padding: 48px 24px 110px;
}

.admin-header {
    margin-bottom: 30px;
    text-align: center;
}

.admin-header .about-tag { margin-bottom: 8px; }
.admin-header h1 { margin-bottom: 8px; font-size: 34px; }
.admin-header > p:last-child { color: var(--text-600); font-size: 14px; }

.admin-login-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.admin-login-card h2 { margin-bottom: 6px; font-size: 21px; }
.admin-login-card > p { margin-bottom: 18px; color: var(--text-600); font-size: 13px; }
.admin-login-card form { display: grid; gap: 12px; }
.admin-login-card label { color: var(--text-600); font-size: 13px; }
.admin-login-card input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--cream-200);
    border-radius: 10px;
    color: var(--text-900);
    background: var(--cream-50);
}

.admin-login-card .btn { justify-self: start; }

.admin-toolbar {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-toolbar p { color: var(--text-600); font-size: 14px; }
.admin-story-list { display: grid; gap: 14px; }

.admin-story-card {
    padding: 20px;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.admin-story-heading {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-story-meta { color: var(--text-400); font-size: 12px; }
.admin-story-content {
    color: var(--text-900);
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.btn-danger {
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid rgba(168, 75, 58, .25);
    border-radius: 999px;
    color: #984b3c;
    background: #fbefec;
    cursor: pointer;
    font-size: 12px;
    transition: background .2s, color .2s;
}

.btn-danger:hover { color: var(--white); background: #984b3c; }
.btn-danger:disabled { opacity: .6; cursor: wait; }

.admin-empty {
    padding: 30px 20px;
    border: 1px dashed var(--cream-200);
    border-radius: var(--radius);
    color: var(--text-600);
    text-align: center;
}

.admin-load-more { display: block; margin: 20px auto 0; }

/* 城市公开倾诉页 */
.public-city-main {
    max-width: 820px;
    min-height: 65vh;
    margin: 0 auto;
    padding: 38px 24px 120px;
}

.public-city-back {
    color: var(--green-700);
    font-size: 14px;
}

.public-city-back:hover { color: var(--green-900); }

.public-city-header {
    margin: 30px 0 28px;
    text-align: center;
}

.public-city-header .secret-icon { margin-bottom: 12px; }
.public-city-header .about-tag { margin-bottom: 8px; }

.public-city-header h1 {
    margin: 0 0 6px;
    font-size: 34px;
}

.public-city-header > p:last-child {
    color: var(--text-600);
    font-size: 14px;
}

.public-story-list {
    display: grid;
    gap: 14px;
}

.public-story-card {
    padding: 20px 22px;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.public-story-meta {
    margin: 0 0 10px;
    color: var(--text-400);
    font-size: 12px;
}

.public-story-content {
    margin: 0;
    color: var(--text-900);
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.public-city-empty {
    padding: 28px 20px;
    border: 1px dashed var(--cream-200);
    border-radius: var(--radius);
    color: var(--text-600);
    background: rgba(255, 254, 250, .7);
    font-size: 14px;
    text-align: center;
}

.public-city-submit {
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
}

/* 行动号召 */
.cta-section {
    padding-top: 68px;
    padding-bottom: 50px;
    text-align: center;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 58px 30px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius-lg);
    color: var(--white);
    background:
        radial-gradient(ellipse at 85% 0%, rgba(191, 207, 165, .22), transparent 35%),
        linear-gradient(125deg, #234b37, #426d4e 65%, #587b56);
    box-shadow: var(--shadow-lg);
}

.cta-box::before, .cta-box::after {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: '';
}

.cta-box::before { top: -145px; right: 10%; }
.cta-box::after { right: 3%; bottom: -180px; width: 290px; height: 290px; }

.cta-box h2 {
    position: relative;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 32px;
}

.cta-box p {
    position: relative;
    margin-bottom: 23px;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
}

.cta-box .btn { position: relative; }

/* 心理援助 */
.help-banner {
    max-width: 1144px;
    margin: 0 auto;
    padding: 17px 22px;
    border: 1px solid rgba(145, 180, 154, .32);
    border-radius: 14px;
    color: var(--green-900);
    background: linear-gradient(100deg, #edf3eb, #f3f4e9);
    font-size: 13px;
    text-align: center;
}

.help-banner strong { margin-right: 9px; }
.help-banner b { color: var(--green-700); }

.help-fixed {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: none;
    padding: 9px 16px;
    border: 0;
    border-top: 1px solid rgba(145, 180, 154, .42);
    border-radius: 0;
    background: rgba(237, 243, 235, .94);
    backdrop-filter: blur(12px);
    font-size: 12px;
}

/* 页脚 */
.footer {
    margin-top: 42px;
    padding: 42px 28px 30px;
    color: rgba(255, 255, 255, .78);
    background: var(--green-950);
}

.footer-inner {
    display: grid;
    max-width: 1144px;
    margin: 0 auto;
    align-items: start;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
}

.footer-brand span {
    color: var(--white);
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    font-weight: 600;
}

.footer-brand p {
    margin-top: 5px;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.footer-links a {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    transition: color .2s;
}

.footer-links a:hover { color: var(--white); }

.footer-note {
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    text-align: right;
}

.footer-note .footer-small { margin-top: 5px; }

/* 倾诉页面 */
.secret-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 54px 24px 120px;
}

.secret-container {
    padding: 43px 48px;
    border: 1px solid rgba(233, 226, 213, .85);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.secret-header {
    margin-bottom: 32px;
    text-align: center;
}

.secret-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border: 1px solid rgba(84, 134, 106, .14);
    border-radius: 26px;
    background: linear-gradient(145deg, #edf3eb, #f5f0e7);
    font-size: 39px;
    place-items: center;
}

.secret-header h1 {
    margin-bottom: 5px;
    font-size: 31px;
}

.secret-header p {
    color: var(--text-400);
    font-size: 14px;
}

.form-group { margin-bottom: 22px; }

.form-error {
    margin: -5px 0 16px;
    padding: 10px 13px;
    border: 1px solid #e8c5bd;
    border-radius: 10px;
    color: #8d4034;
    background: #fbefec;
    font-size: 13px;
}

.form-group > label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-900);
    font-size: 14px;
    font-weight: 600;
}

.label-hint {
    color: var(--text-400);
    font-size: 12px;
    font-weight: 400;
}

select, textarea {
    width: 100%;
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    color: var(--text-900);
    background: #fcfbf7;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

select {
    min-height: 48px;
    padding: 0 14px;
}

select:focus, textarea:focus {
    border-color: var(--green-500);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(84, 134, 106, .12);
}

textarea {
    min-height: 165px;
    padding: 14px 15px;
    line-height: 1.85;
    resize: vertical;
}

textarea::placeholder { color: #aaa99f; }

.content-policy-hint {
    margin: 8px 0 0;
    color: var(--text-400);
    font-size: 12px;
    line-height: 1.6;
}

.char-count {
    margin-top: 5px;
    color: var(--text-400);
    font-size: 12px;
    text-align: right;
}

.mood-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mood-option { display: inline-flex; }

.mood-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.mood-option span {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid var(--cream-200);
    border-radius: 999px;
    color: var(--text-600);
    background: #fcfbf7;
    cursor: pointer;
    font-size: 13px;
    transition: border-color .2s, color .2s, background .2s;
}

.mood-option span:hover {
    border-color: var(--green-300);
}

.mood-option input:checked + span {
    border-color: var(--green-500);
    color: var(--green-700);
    background: var(--green-100);
    font-weight: 600;
}

.mood-option input:focus-visible + span {
    outline: 3px solid rgba(84, 134, 106, .4);
    outline-offset: 2px;
}

.anon-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-600);
    cursor: default;
    font-size: 13px;
}

.anon-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--green-700);
}

.share-group {
    padding: 14px 15px;
    border: 1px solid var(--cream-200);
    border-radius: 13px;
    background: #fcfbf7;
}

.account-section {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius);
    background: rgba(255, 254, 250, .85);
}

.account-heading { margin-bottom: 15px; }
.account-heading h2 { margin-bottom: 4px; font-size: 19px; }
.account-heading p { color: var(--text-600); font-size: 13px; }

.account-mode-tabs {
    display: flex;
    margin-bottom: 16px;
    gap: 8px;
}

.account-mode-tab {
    padding: 7px 13px;
    border: 1px solid var(--cream-200);
    border-radius: 999px;
    color: var(--text-600);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
}

.account-mode-tab.is-active {
    border-color: var(--green-500);
    color: var(--green-900);
    background: var(--green-100);
}

.account-form { display: grid; gap: 14px; }
.account-form .form-group { margin: 0; }
.account-form input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--cream-200);
    border-radius: 10px;
    color: var(--text-900);
    background: var(--white);
}

.account-form .label-hint { display: block; margin-top: 3px; }
.nickname-input-row { display: flex; gap: 9px; }
.nickname-random { flex: 0 0 auto; }

.account-signed-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-signed-in[hidden] { display: none; }
.account-signed-in p { color: var(--text-600); font-size: 14px; }
.account-signed-in strong { color: var(--green-900); }

.account-shortcut {
    display: flex;
    margin-top: 20px;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--cream-200);
    border-radius: 13px;
    background: rgba(255, 254, 250, .8);
}

.account-shortcut[hidden] { display: none; }
.account-shortcut > p { color: var(--text-600); font-size: 12px; }
.account-shortcut-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.account-shortcut-actions .btn { min-height: 38px; padding: 7px 12px; font-size: 12px; }

.account-page {
    max-width: 760px;
    min-height: 68vh;
    margin: 0 auto;
    padding: 55px 24px 100px;
}

.account-page-header { margin-bottom: 28px; text-align: center; }
.account-page-header .about-tag { margin-bottom: 8px; }
.account-page-header h1 { margin-bottom: 10px; font-size: 31px; }
.account-page-header > p:last-child { color: var(--text-600); font-size: 14px; }

.account-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.account-card[hidden] { display: none; }
.account-card .account-mode-tabs { justify-content: center; }
.account-card .account-form { gap: 17px; }
.account-card .account-form .form-group { margin: 0; }
.account-card .account-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--cream-200);
    border-radius: 10px;
    color: var(--text-900);
    background: var(--cream-50);
}

.account-card .account-form .label-hint { display: block; margin-top: 3px; }
.account-card .nickname-input-row { display: flex; gap: 9px; }
.account-card .nickname-random { flex: 0 0 auto; }
.account-card .account-form .btn-full { width: 100%; }
.account-existing { margin-top: 18px; text-align: center; }
.account-existing p { margin-bottom: 8px; color: var(--text-600); font-size: 13px; }

.account-profile-card { text-align: center; }
.account-profile-icon { margin-bottom: 8px; font-size: 38px; }
.account-profile-card .about-tag { margin-bottom: 6px; }
.account-profile-card h2 { margin-bottom: 8px; }
.account-profile-card > p:not(.about-tag) { margin-bottom: 18px; color: var(--text-600); font-size: 13px; }
.account-profile-card .btn { margin: 4px; }
.account-page-note { margin-top: 17px; color: var(--text-400); font-size: 12px; text-align: center; }

.share-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green-900);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.share-label input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    accent-color: var(--green-700);
}

.share-notice {
    margin: 7px 0 0 26px;
    color: var(--text-400);
    font-size: 12px;
    line-height: 1.7;
}

.success-box {
    padding: 35px 20px;
    text-align: center;
}

.success-icon {
    margin-bottom: 12px;
    font-size: 63px;
}

.success-box h2 {
    margin-bottom: 8px;
    font-size: 27px;
}

.success-box p {
    margin-bottom: 22px;
    color: var(--text-600);
    font-size: 14px;
}

.feedback-form {
    margin: 28px auto 0;
    padding: 23px;
    border: 1px solid var(--cream-200);
    border-radius: 17px;
    background: #fcfbf7;
    text-align: left;
}

.feedback-group {
    min-width: 0;
    border: 0;
}

.feedback-group legend {
    color: var(--green-950);
    font-size: 15px;
    font-weight: 600;
}

.feedback-hint {
    margin: 3px 0 14px !important;
    color: var(--text-400) !important;
    font-size: 12px !important;
}

.feedback-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.feedback-option {
    display: flex;
    min-height: 48px;
    align-items: center;
}

.feedback-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.feedback-option span {
    display: grid;
    width: 100%;
    min-height: 44px;
    padding: 7px 9px;
    border: 1px solid var(--cream-200);
    border-radius: 11px;
    color: var(--text-600);
    background: var(--white);
    cursor: pointer;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    place-items: center;
    transition: border-color .2s, color .2s, background .2s;
}

.feedback-option span:hover {
    border-color: var(--green-300);
}

.feedback-option input:checked + span {
    border-color: var(--green-500);
    color: var(--green-700);
    background: var(--green-100);
    font-weight: 600;
}

.feedback-option input:focus-visible + span {
    outline: 3px solid rgba(84, 134, 106, .4);
    outline-offset: 2px;
}

.feedback-message-group {
    margin: 20px 0 16px;
}

.feedback-message-group textarea {
    min-height: 82px;
}

.feedback-skip {
    display: block;
    margin-top: 15px;
    color: var(--text-400);
    font-size: 13px;
    text-align: center;
}

.feedback-skip:hover {
    color: var(--green-700);
}

.feedback-thanks {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid rgba(145, 180, 154, .3);
    border-radius: 16px;
    background: var(--green-100);
}

.feedback-thanks-icon {
    margin-bottom: 5px;
    font-size: 30px;
}

.feedback-thanks h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.feedback-thanks p {
    margin-bottom: 17px;
    font-size: 13px;
}

.history-section {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--cream-200);
    border-radius: 17px;
    background: var(--white);
}

.history-toggle {
    display: flex;
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    color: var(--green-900);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.history-count {
    color: var(--text-400);
    font-size: 12px;
    font-weight: 400;
}

.history-toggle-icon {
    color: var(--green-700);
    font-size: 20px;
    transition: transform .2s;
}

.history-toggle[aria-expanded="true"] .history-toggle-icon {
    transform: rotate(180deg);
}

.history-panel {
    padding: 0 18px 17px;
}

.history-notice, .history-save-note {
    margin: 0 0 13px;
    color: var(--text-400);
    font-size: 12px;
    line-height: 1.7;
}

.history-save-note {
    padding: 9px 11px;
    border-radius: 9px;
    color: #80583e;
    background: #f7f0e5;
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-card {
    padding: 14px;
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    background: #fcfbf7;
    text-align: left;
}

.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-card-details {
    margin: 0;
    color: var(--text-400);
    font-size: 12px;
}

.history-delete, .history-clear, .history-unshare {
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    color: var(--text-400);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.history-delete:hover, .history-clear:hover {
    color: #8d4034;
    background: #fbefec;
}

.history-unshare {
    margin-top: 9px;
    padding: 5px 10px;
    color: #8d4034;
    background: #fbefec;
}

.history-unshare:hover {
    background: #f6dfda;
}

.history-card-content {
    margin: 10px 0 0;
    color: var(--text-900);
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.history-empty {
    margin: 0;
    padding: 15px 8px;
    color: var(--text-400);
    font-size: 13px;
    text-align: center;
}

.history-clear {
    display: block;
    margin: 10px 0 0 auto;
}

.history-clear[hidden] { display: none; }

/* 关于页面 */
.about-main { padding-bottom: 110px; }

.about-hero {
    padding: 67px 24px 49px;
    background: radial-gradient(ellipse at 50% 0, rgba(220, 232, 218, .75), transparent 72%);
    text-align: center;
}

.about-hero h1 {
    margin-bottom: 7px;
    font-size: clamp(34px, 4vw, 44px);
}

.about-hero p {
    color: var(--text-600);
    font-size: 15px;
}

.about-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 48px 28px;
}

.about-content {
    display: grid;
    align-items: center;
    grid-template-columns: 1.2fr 1fr;
    gap: 52px;
}

.about-content.reverse { grid-template-columns: 1fr 1.2fr; }

.about-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--green-700);
    background: var(--green-100);
    font-size: 12px;
    font-weight: 600;
}

.about-text h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.about-text p {
    margin-bottom: 13px;
    color: var(--text-600);
    font-size: 14px;
    line-height: 1.95;
}

.about-text strong { color: var(--green-700); }

.tree-hole-illu {
    padding: 28px 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center, #edf1e8, rgba(237, 241, 232, 0) 70%);
    text-align: center;
}

.illu-canopy {
    width: 190px;
    height: 150px;
    margin: 0 auto;
    border-radius: 48% 52% 46% 54%;
    background:
        radial-gradient(circle at 26% 62%, #77977a 0 15%, transparent 15.5%),
        radial-gradient(circle at 75% 58%, #3f7151 0 18%, transparent 18.5%),
        radial-gradient(circle at 50% 32%, #739575 0 28%, transparent 28.5%),
        #4d7957;
    box-shadow: inset -10px -12px 24px rgba(23, 51, 39, .16);
}

.illu-trunk {
    position: relative;
    width: 64px;
    height: 145px;
    margin: -5px auto 0;
    border-radius: 10px 10px 7px 7px;
    background: linear-gradient(90deg, #714b34, #ad7b53 45%, #80583e);
}

.illu-hole {
    position: absolute;
    top: 34px;
    left: 50%;
    width: 36px;
    height: 49px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at 40% 35%, #33271f, #17120f 75%);
}

.about-quote {
    padding: 32px;
    border: 1px solid rgba(145, 180, 154, .28);
    border-left: 4px solid var(--green-500);
    border-radius: 4px var(--radius) var(--radius) 4px;
    color: var(--green-900);
    background: linear-gradient(135deg, #edf3eb, #f4f2e9);
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    line-height: 2;
}

.promise-list {
    display: grid;
    list-style: none;
    gap: 10px;
}

.promise-list li {
    padding: 12px 15px;
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    color: var(--text-600);
    background: var(--white);
    font-size: 13px;
}

.promise-list strong { color: var(--green-700); }

.about-cta-card {
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(145deg, #234b37, #54805a);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-cta-card h3 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 25px;
}

.about-cta-card p {
    margin-bottom: 19px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

/* 平板与手机 */
@media (max-width: 900px) {
    .hero {
        min-height: 475px;
        padding: 55px 32px 60px;
        gap: 20px;
    }

    .hero-tree {
        margin-right: 10px;
        transform: scale(.86);
    }

    .hero-title { font-size: 49px; }
    .features, .city-grid { gap: 14px; }
    .feature-card { padding: 28px 18px; }

    .about-content, .about-content.reverse {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 680px) {
    .nav-inner {
        min-height: 64px;
        padding: 10px 16px;
    }

    .brand { gap: 7px; font-size: 16px; }
    .brand-icon { width: 34px; height: 34px; font-size: 18px; }
    .nav-right { gap: 3px; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 7px 8px; font-size: 12px; }
    .nav-account { gap: 2px; }
    .nav-account a, .nav-account button { min-height: 34px; padding: 6px 8px; font-size: 11px; }

    .hero {
        min-height: auto;
        padding: 30px 22px 58px;
        flex-direction: column-reverse;
        gap: 12px;
        text-align: center;
    }

    .hero::before {
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 310px;
    }

    .hero-tree {
        width: 245px;
        height: 235px;
        margin: 0;
        transform: scale(.67);
        transform-origin: center top;
        margin-bottom: -76px;
    }

    .hero-badge { margin-bottom: 15px; }
    .hero-title { margin-bottom: 13px; font-size: 42px; }
    .hero-sub { margin-bottom: 22px; font-size: 14px; }
    .hero-actions { justify-content: center; }
    .btn { min-height: 45px; padding: 10px 20px; }

    .section { padding: 56px 20px; }
    .section-header { margin-bottom: 27px; }
    .features, .city-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 25px 22px; }
    .city-card { min-height: 195px; padding: 20px; }

    .cta-section { padding-top: 38px; padding-bottom: 36px; }
    .cta-box { padding: 43px 20px; border-radius: 22px; }
    .cta-box h2 { font-size: 26px; }
    .cta-box p { font-size: 13px; }

    .help-banner { padding: 14px 13px; font-size: 12px; }
    .help-banner strong { display: block; margin: 0 0 2px; }
    .help-fixed strong { display: inline; margin-right: 5px; }

    .footer { margin-top: 25px; padding: 34px 20px 28px; }
    .footer-inner { grid-template-columns: 1fr; gap: 15px; text-align: center; }
    .footer-links { gap: 18px; }
    .footer-note { text-align: center; }

    .secret-main { padding: 30px 15px 100px; }
    .secret-container { padding: 30px 20px; border-radius: 21px; }
    .secret-header { margin-bottom: 27px; }
    .secret-header h1 { font-size: 27px; }
    .account-section { padding: 17px; }
    .nickname-input-row { align-items: stretch; flex-direction: column; }
    .account-signed-in { align-items: flex-start; flex-direction: column; }
    .account-shortcut { align-items: flex-start; flex-direction: column; }
    .account-shortcut-actions { width: 100%; }
    .account-shortcut-actions .btn { flex: 1; text-align: center; }
    .account-page { padding: 35px 16px 80px; }
    .account-page-header h1 { font-size: 26px; }
    .account-card { padding: 19px; }
    .mood-picker { gap: 7px; }
    .mood-option span { padding: 7px 10px; font-size: 12px; }
    .feedback-form { padding: 17px 14px; }
    .feedback-options { grid-template-columns: 1fr; gap: 6px; }
    .feedback-option span { min-height: 42px; }

    .about-main { padding-bottom: 90px; }
    .about-hero { padding: 45px 20px 32px; }
    .about-section { padding: 32px 21px; }
    .about-content, .about-content.reverse { grid-template-columns: 1fr; gap: 20px; }
    .about-content.reverse .about-quote { order: 2; }
    .about-text h2 { font-size: 25px; }
    .about-quote { padding: 25px; font-size: 15px; }
    .about-cta-card { padding: 32px 22px; }
    .public-city-main { padding: 25px 16px 100px; }
    .public-city-header { margin: 23px 0; }
    .public-city-header h1 { font-size: 29px; }
    .public-story-card { padding: 16px; }
    .admin-main { padding: 30px 16px 90px; }
    .admin-header h1 { font-size: 28px; }
    .admin-login-card, .admin-story-card { padding: 17px; }
    .admin-story-heading { align-items: flex-start; }
    .admin-toolbar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
