/* ============================================================
   拾念岛 · 极简日系樱青风格
   和纸米白 #faf7f2 / 樱粉 #a87878 / 青磁绿 #4f6b58
   2026©拾念岛 上海珠声文化传媒有限公司
   ============================================================ */

:root {
    --paper:       #faf7f2;   /* 和纸米白 */
    --paper-deep:  #f3ede2;
    --card:        #fffdf8;
    --ink:         #3f3d39;
    --ink-soft:    #7d786e;
    --ink-faint:   #b3ac9f;
    --sakura:      #a87878;   /* 樱粉 */
    --sakura-deep: #966565;
    --sakura-soft: #f4e7e4;
    --celadon:     #4f6b58;   /* 青磁绿 */
    --celadon-deep:#3f5747;
    --celadon-soft:#e7ece6;
    --line:        #e9e1d2;
    --line-soft:   #f0e9dc;
    --danger:      #b05c5c;
    --radius:      14px;
    --radius-sm:   10px;
    --shadow:      0 6px 24px rgba(90, 74, 58, .07);
    --shadow-hover:0 12px 32px rgba(90, 74, 58, .12);
    --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --sans:  -apple-system, BlinkMacSystemFont, "PingFang SC",
             "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background-color: var(--paper);
    /* 和纸纹理：细颗粒 + 淡淡暖色云影 */
    background-image:
        radial-gradient(circle at 15% 20%, rgba(168, 120, 120, .05), transparent 42%),
        radial-gradient(circle at 85% 12%, rgba(79, 107, 88, .05), transparent 40%),
        radial-gradient(circle at 50% 95%, rgba(168, 120, 120, .04), transparent 45%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.48 0 0 0 0 0.38 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--celadon); text-decoration: none; }
a:hover { color: var(--sakura); }

.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
}
.container-narrow {
    width: min(680px, 92vw);
}

.site-main { flex: 1; }

/* ---------------- 飘落樱瓣装饰 ---------------- */
.petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.petal {
    position: absolute;
    top: -6vh;
    width: 14px;
    height: 14px;
    background: var(--sakura);
    opacity: .18;
    border-radius: 100% 0 100% 0;
    animation: petal-fall linear infinite;
}
.petal.p1 { left: 8%;  animation-duration: 17s; animation-delay: -3s; }
.petal.p2 { left: 30%; animation-duration: 22s; animation-delay: -12s; width: 10px; height: 10px; }
.petal.p3 { left: 66%; animation-duration: 19s; animation-delay: -7s; }
.petal.p4 { left: 88%; animation-duration: 25s; animation-delay: -16s; width: 11px; height: 11px; }

@keyframes petal-fall {
    0%   { transform: translateY(-6vh) translateX(0) rotate(0deg); }
    50%  { transform: translateY(52vh) translateX(3vw) rotate(180deg); }
    100% { transform: translateY(108vh) translateX(-2vw) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .petal { animation: none; display: none; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------- 页头 / 导航 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 247, 242, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .18em;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-nav a {
    color: var(--ink-soft);
    font-size: 14.5px;
    padding: 7px 14px;
    border-radius: 999px;
    transition: all .25s ease;
}
.site-nav a:hover {
    color: var(--sakura);
    background: var(--sakura-soft);
}
.site-nav a.is-active {
    color: var(--sakura-deep);
    background: var(--sakura-soft);
}
.site-nav a.nav-admin {
    font-size: 13px;
    color: var(--ink-faint);
}
.site-nav a.nav-admin:hover { color: var(--celadon); background: var(--celadon-soft); }
.site-nav a.nav-admin.is-active { color: var(--celadon-deep); background: var(--celadon-soft); }

/* ----------------  Hero  ---------------- */
.hero {
    text-align: center;
    padding: 72px 0 40px;
    position: relative;
    z-index: 1;
}
.hero-kicker {
    font-size: 13px;
    letter-spacing: .35em;
    color: var(--sakura);
    margin: 0 0 18px;
    text-indent: .35em;
}
.hero-kicker span { color: var(--ink-faint); margin: 0 .4em; }
.hero-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4.6vw, 42px);
    font-weight: 600;
    margin: 0 0 18px;
    letter-spacing: .06em;
    line-height: 1.35;
}
.hero-sub {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0 auto 30px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-family: var(--sans);
    letter-spacing: .05em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .28s ease;
    line-height: 1.4;
}
.btn-primary {
    background: var(--sakura);
    color: #fffdf8;
    box-shadow: 0 6px 16px rgba(168, 120, 120, .28);
}
.btn-primary:hover {
    background: var(--sakura-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(168, 120, 120, .34);
}
.btn-ghost {
    background: transparent;
    color: var(--celadon);
    border-color: var(--celadon);
}
.btn-ghost:hover {
    background: var(--celadon-soft);
    color: var(--celadon-deep);
    transform: translateY(-2px);
}
.btn-block { width: 100%; padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-green { color: var(--celadon); border-color: var(--celadon); }
.btn-green:hover { background: var(--celadon-soft); color: var(--celadon-deep); }
.btn-danger { color: var(--danger); border-color: rgba(176, 92, 92, .5); }
.btn-danger:hover { background: rgba(176, 92, 92, .08); color: var(--danger); }
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------------- Tabs ---------------- */
.wall-section { padding: 8px 0 64px; position: relative; z-index: 1; }

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 36px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    width: fit-content;
    box-shadow: var(--shadow);
}
.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14.5px;
    color: var(--ink-soft);
    transition: all .25s ease;
}
.tab .tab-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}
.tab-green:hover, .tab-green.is-active { color: var(--celadon); background: var(--celadon-soft); }
.tab-pink:hover, .tab-pink.is-active { color: var(--sakura-deep); background: var(--sakura-soft); }
.tab:not(.tab-green):not(.tab-pink):hover { color: var(--ink); background: var(--paper-deep); }
.tab.is-active { font-weight: 600; }

/* ---------------- 卡片瀑布流 ---------------- */
.wall-columns {
    columns: 3;
    column-gap: 20px;
}
.card {
    break-inside: avoid;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px 16px;
    margin: 0 0 20px;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--celadon);
    opacity: .8;
}
.card-pink::before { background: var(--sakura); }
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 3px 11px;
    border-radius: 999px;
    letter-spacing: .12em;
    font-weight: 600;
}
.tag-green { background: var(--celadon-soft); color: var(--celadon-deep); }
.tag-pink  { background: var(--sakura-soft);  color: var(--sakura-deep); }

.to-name {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--sakura-deep);
    letter-spacing: .05em;
}
.card-content {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.95;
    color: var(--ink);
    word-break: break-word;
}
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.card-author {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.avatar {
    width: 30px; height: 30px;
    flex: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fffdf8;
    font-family: var(--serif);
}
.avatar-green { background: var(--celadon); }
.avatar-pink  { background: var(--sakura); }
.author-name {
    font-size: 13px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}
.card-meta time {
    font-size: 12.5px;
    color: var(--ink-faint);
}
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    color: var(--ink-faint);
    font-size: 13px;
    font-family: var(--sans);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 999px;
    transition: all .25s ease;
}
.like-btn:hover { color: var(--sakura); background: var(--sakura-soft); }
.like-btn.is-liked { color: var(--sakura); }
.like-btn.is-liked svg path { fill: var(--sakura); }
.like-btn.pop svg { animation: like-pop .4s ease; }
@keyframes like-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

/* ---------------- 空状态 / 分页 / 底部CTA ---------------- */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--ink-soft);
}
.empty-state svg { margin-bottom: 18px; opacity: .9; }
.empty-title {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink);
    margin: 0 0 8px;
}
.empty-sub { margin: 0 0 24px; font-size: 14.5px; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 44px 0 8px;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 14px;
    transition: all .2s ease;
}
.page-btn:hover { border-color: var(--sakura); color: var(--sakura); }
.page-btn.is-current {
    background: var(--sakura);
    border-color: var(--sakura);
    color: #fffdf8;
    font-weight: 600;
}
.page-btn.is-disabled {
    opacity: .4;
    pointer-events: none;
}
.page-ellipsis { color: var(--ink-faint); padding: 0 4px; }
.page-info { color: var(--ink-faint); font-size: 13.5px; padding: 0 8px; }

.wall-cta {
    text-align: center;
    margin-top: 56px;
    padding: 38px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.wall-cta p {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--ink-soft);
    margin: 0 0 18px;
    letter-spacing: .04em;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    border-top: 1px solid var(--line-soft);
    background: rgba(255, 253, 248, .6);
    padding: 30px 0 34px;
    position: relative;
    z-index: 1;
}
.footer-inner { text-align: center; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sakura);
    font-family: var(--serif);
    letter-spacing: .2em;
    font-size: 15px;
    margin-bottom: 8px;
}
.footer-copy {
    margin: 0;
    font-size: 13px;
    color: var(--ink-soft);
}
.footer-note {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--ink-faint);
    letter-spacing: .08em;
}

/* ============================================================
   投稿页
   ============================================================ */
.post-section { padding: 56px 0 72px; position: relative; z-index: 1; }
.post-head { text-align: center; margin-bottom: 34px; }
.page-title {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: .1em;
}
.page-sub {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.post-form,
.admin-login-card,
.install-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 34px 30px;
    box-shadow: var(--shadow);
}

/* 类型切换 */
.type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.type-option { cursor: pointer; position: relative; }
.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all .25s ease;
    background: var(--paper);
    height: 100%;
}
.type-option-green .type-icon { color: var(--celadon); }
.type-option-pink  .type-icon { color: var(--sakura); }
.type-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .15em;
}
.type-desc {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.type-option input:checked + .type-card {
    border-color: var(--celadon);
    background: var(--celadon-soft);
    box-shadow: 0 4px 14px rgba(79, 107, 88, .12);
}
.type-option-pink input:checked + .type-card {
    border-color: var(--sakura);
    background: var(--sakura-soft);
    box-shadow: 0 4px 14px rgba(168, 120, 120, .14);
}
.type-option input:focus-visible + .type-card {
    outline: 2px solid var(--celadon);
    outline-offset: 2px;
}

/* 表单 */
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: .04em;
}
.req { color: var(--sakura); }
.optional { color: var(--ink-faint); font-weight: 400; font-size: 12.5px; }

.form-field input[type="text"],
.form-field input[type="password"],
.form-field input[type="datetime-local"],
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: var(--sans);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.9;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--celadon);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 107, 88, .12);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-faint); }

.form-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}
.form-row .field-nickname { flex: 1; }

.anonymous-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    padding-bottom: 10px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.anonymous-check input {
    width: 17px; height: 17px;
    accent-color: var(--sakura);
    cursor: pointer;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 6px;
}
.char-count em {
    font-style: normal;
    color: var(--sakura);
    font-weight: 600;
}
.field-hint {
    margin: 7px 0 0;
    font-size: 12.5px;
    color: var(--ink-faint);
    line-height: 1.7;
}

.captcha-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.captcha-row input { flex: 1; }
.captcha-question {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    background: var(--celadon-soft);
    color: var(--celadon-deep);
    border-radius: var(--radius-sm);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .05em;
    white-space: nowrap;
}

.form-msg {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.7;
}
.form-msg-error {
    background: #f7e8e6;
    color: var(--danger);
    border: 1px solid rgba(176, 92, 92, .25);
}
.form-msg-ok {
    background: var(--celadon-soft);
    color: var(--celadon-deep);
    border: 1px solid rgba(79, 107, 88, .25);
}

.form-tip {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-faint);
}

/* 投稿成功 */
.post-success {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 50px 34px;
    box-shadow: var(--shadow);
}
.post-success h2 {
    font-family: var(--serif);
    font-size: 24px;
    margin: 18px 0 10px;
    color: var(--celadon-deep);
}
.post-success p { color: var(--ink-soft); margin: 0 0 26px; }
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   管理后台
   ============================================================ */
.admin-section { padding: 48px 0 72px; position: relative; z-index: 1; }
.admin-login-section { padding: 70px 0; position: relative; z-index: 1; }
.admin-login-card { max-width: 440px; margin: 0 auto; }
.admin-login-card .page-title { font-size: 24px; text-align: center; }
.admin-login-card .page-sub { text-align: center; margin-bottom: 24px; }
.admin-login-form { margin-top: 8px; }

.admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}
.admin-head .page-title { font-size: 26px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    text-align: center;
    transition: all .25s ease;
    color: var(--ink);
}
.stat-card:hover { border-color: var(--sakura); transform: translateY(-2px); }
.stat-card.is-active {
    border-color: var(--sakura);
    box-shadow: 0 4px 14px rgba(168, 120, 120, .16);
}
.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-top: 4px;
    letter-spacing: .05em;
}
.stat-green .stat-num { color: var(--celadon); }
.stat-sakura .stat-num { color: var(--sakura); }
.stat-muted .stat-num { color: var(--ink-faint); }

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    align-items: center;
}
.filter-chip {
    padding: 6px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    font-size: 13.5px;
    transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--celadon); color: var(--celadon); }
.filter-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.filter-sep {
    width: 1px;
    height: 18px;
    background: var(--line);
    margin: 0 6px;
}

.admin-list { display: flex; flex-direction: column; gap: 14px; }
.admin-item {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
}
.admin-item-main { flex: 1; min-width: 0; }
.admin-item-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.state-badge {
    font-size: 12px;
    padding: 3px 11px;
    border-radius: 999px;
    letter-spacing: .05em;
}
.state-visible   { background: var(--celadon-soft); color: var(--celadon-deep); }
.state-scheduled { background: var(--sakura-soft); color: var(--sakura-deep); }
.state-pending   { background: #f6ecd8; color: #8a6d2f; }
.state-hidden    { background: #ece7df; color: var(--ink-soft); }

.admin-item-content {
    margin: 0 0 10px;
    font-size: 14.5px;
    line-height: 1.9;
    word-break: break-word;
}
.admin-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12.5px;
    color: var(--ink-faint);
}
.admin-contact { color: var(--celadon); }
.admin-ip { font-family: ui-monospace, Consolas, monospace; }

.admin-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: none;
    justify-content: center;
}
.admin-item-actions form { margin: 0; }
.admin-item-actions .btn { width: 86px; }
.logout-form { margin: 0; flex: none; }

/* ============================================================
   安装检测
   ============================================================ */
.install-card { margin-bottom: 24px; padding: 10px 26px; }
.install-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 4px;
    border-bottom: 1px dashed var(--line);
}
.install-row:last-child { border-bottom: none; }
.install-icon {
    width: 28px; height: 28px;
    flex: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.is-ok  .install-icon { background: var(--celadon); }
.is-bad .install-icon { background: var(--danger); }
.install-name { margin: 2px 0 3px; font-weight: 600; font-size: 14.5px; }
.install-info { margin: 0; font-size: 13px; color: var(--ink-soft); word-break: break-all; }
.install-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.install-warn {
    background: #f6ecd8;
    border: 1px solid rgba(138, 109, 47, .25);
    color: #7a6028;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}
.install-warn code {
    background: rgba(138, 109, 47, .12);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 12.5px;
}

/* ============================================================
   登录 / 注册
   ============================================================ */
.auth-section { padding: 64px 0 72px; position: relative; z-index: 1; }
.auth-head { text-align: center; margin-bottom: 30px; }

.auth-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 34px 26px;
    box-shadow: var(--shadow);
}
.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 18px 0 26px;
    padding: 5px;
    background: var(--paper);
    border-radius: 999px;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    border-radius: 999px;
    font-size: 15px;
    color: var(--ink-soft);
    transition: all .25s ease;
    letter-spacing: .12em;
}
.auth-tab:hover { color: var(--sakura); }
.auth-tab.is-active {
    background: var(--sakura);
    color: #fffdf8;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(168, 120, 120, .28);
}
.auth-form .form-field:last-of-type { margin-bottom: 22px; }
.auth-switch {
    text-align: center;
    margin: 18px 0 4px;
    font-size: 13.5px;
    color: var(--ink-faint);
}
.auth-switch a { color: var(--sakura); font-weight: 600; }

/* 导航中的登录态 */
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px 4px 14px;
    border-radius: 999px;
    background: var(--sakura-soft);
}
.nav-user-name {
    font-size: 13.5px;
    color: var(--sakura-deep);
    font-weight: 600;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-logout { margin: 0; }
.nav-logout button {
    border: none;
    background: transparent;
    color: var(--ink-faint);
    font-size: 12.5px;
    font-family: var(--sans);
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}
.nav-logout button:hover { color: var(--sakura-deep); background: rgba(168, 120, 120, .12); }

/* 投稿页登录身份条 */
.login-banner {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--celadon-soft);
    border: 1px solid rgba(79, 107, 88, .22);
    color: var(--celadon-deep);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13.5px;
    margin: -8px 0 22px;
}
.login-banner strong { font-weight: 600; }
.login-banner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--celadon);
    flex: none;
}
.login-banner-logout { margin: 0 0 0 auto; }
.login-banner-logout button {
    border: none;
    background: transparent;
    color: var(--celadon);
    font-size: 12.5px;
    font-family: var(--sans);
    cursor: pointer;
    padding: 2px 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.login-banner-logout button:hover { color: var(--celadon-deep); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
    .wall-columns { columns: 2; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .hero { padding: 52px 0 28px; }
    .wall-columns { columns: 1; }
    .card { padding: 18px 18px 14px; }
    .tabs { width: 100%; justify-content: center; }
    .tab { padding: 8px 14px; font-size: 13.5px; }

    .post-form, .admin-login-card, .install-card { padding: 24px 18px; }
    .type-switch { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; align-items: stretch; gap: 0; }
    .anonymous-check { padding-bottom: 20px; }

    .admin-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-item { flex-direction: column; gap: 12px; }
    .admin-item-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .admin-item-actions .btn { width: auto; }
    .header-inner { height: 56px; }
    .brand-name { font-size: 18px; }
    .site-nav a { padding: 6px 10px; font-size: 13.5px; }
    .site-nav a.nav-admin { padding: 6px 8px; }
    .nav-user { padding-left: 10px; }
    .nav-user-name { max-width: 56px; font-size: 12.5px; }

    .auth-card { padding: 8px 20px 22px; }
    .auth-section { padding: 44px 0 56px; }

    .captcha-row { flex-direction: column; }
    .captcha-question { padding: 11px 16px; justify-content: center; }
    .petal { display: none; }
}
