/* ==========================================================================
   邻讯 · 简单信息发布系统
   风格：深海军蓝 / 金色点缀 / 衬线标题 / 多层阴影
   ========================================================================== */

:root {
    /* 纸面与卡片 */
    --bg: #f6f8fc;
    --bg-deep: #eef2f8;
    --surface: #ffffff;
    --surface-2: #fafbfe;
    --surface-3: #f1f4f9;

    /* 文字 */
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --muted-2: #94a3b8;

    /* 主色：皇家靛蓝 */
    --brand: #1d4ed8;
    --brand-dark: #1e3a8a;
    --brand-deep: #0b1729;
    --brand-soft: #eff4ff;
    --brand-line: #d5e0f7;
    --brand-2: #4f83ea;

    /* 金色点缀 */
    --gold: #b8894a;
    --gold-soft: #faf3e6;
    --gold-line: #e8d7b8;

    /* 辅助色 */
    --amber: #b7791f;
    --amber-soft: #fdf6e7;
    --red: #c53030;
    --red-soft: #fdf0ef;
    --blue: #0e7490;
    --blue-soft: #ecf9fc;

    /* 线条与阴影 */
    --line: #e4eaf3;
    --line-strong: #d2dbe9;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
    --shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 24px 48px -20px rgba(15, 23, 42, .22);

    /* 圆角 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --container: 1160px;

    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;

    --header-h: 68px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.7;
    font-feature-settings: "tnum" 1, "kern" 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
}

ul, ol {
    padding: 0;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(29, 78, 216, .16);
    color: var(--brand-dark);
}

:focus-visible {
    outline: 2px solid rgba(29, 78, 216, .45);
    outline-offset: 2px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 64px 0;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    transform: translateY(-160%);
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

/* 大标题统一衬线，提升质感 */
.hero h1,
.section-heading h2,
.how-intro h2,
.page-head-row h1,
.article-head h1,
.auth-card-head h1,
.auth-aside h2,
.admin-login-head h2,
.admin-login-art h1,
.error-code {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.28;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .01em;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(180deg, #2a5ce0 0%, var(--brand) 100%);
    border-color: var(--brand-dark);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 8px 20px -8px rgba(29, 78, 216, .5);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, var(--brand-dark) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 10px 24px -8px rgba(29, 78, 216, .6);
}

.btn-dark {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: #000;
    border-color: #000;
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink-2);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--muted-2);
    color: var(--ink);
}

.btn-outline {
    border-color: var(--brand-line);
    color: var(--brand);
    background: var(--brand-soft);
}

.btn-outline:hover {
    background: #e3ebff;
    border-color: var(--brand-2);
}

.btn-danger {
    background: var(--red);
    border-color: #a52828;
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(197, 48, 48, .5);
}

.btn-danger:hover {
    background: #a52828;
}

.btn-danger-ghost {
    border-color: #f0d0d0;
    color: var(--red);
    background: transparent;
}

.btn-danger-ghost:hover {
    background: var(--red-soft);
    border-color: var(--red);
}

.btn-sm {
    min-height: 32px;
    padding: 6px 13px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-sm .icon {
    width: 14px;
    height: 14px;
}

.btn-lg {
    min-height: 48px;
    padding: 13px 28px;
    font-size: 14.5px;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}

.text-link .icon {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.text-link:hover .icon {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a5ce0, var(--brand-dark));
    color: #fff;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 14px -6px rgba(29, 78, 216, .6);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-light .brand-mark {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--gold);
    box-shadow: none;
}

.brand-light .brand-copy strong {
    color: #f8fafc;
}

.brand-light .brand-copy small {
    color: rgba(248, 250, 252, .4);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
}

.nav-link {
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.nav-link:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.nav-link.is-active {
    color: var(--brand);
    font-weight: 600;
    background: var(--brand-soft);
}

.nav-search {
    display: flex;
    align-items: center;
    width: 200px;
    height: 36px;
    padding: 0 4px 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    transition: border-color .2s ease, background .2s ease, width .25s ease, box-shadow .2s ease;
}

.nav-search:focus-within {
    width: 226px;
    border-color: var(--brand-line);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .08);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12px;
}

.nav-search input::placeholder {
    color: var(--muted-2);
}

.nav-search button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
}

.nav-search button:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.nav-search .icon {
    width: 15px;
    height: 15px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.nav-login {
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
}

.nav-login:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.user-menu {
    position: relative;
}

.user-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    list-style: none;
    cursor: pointer;
    transition: background .2s ease;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu summary:hover,
.user-menu[open] summary {
    background: var(--surface-3);
}

.avatar {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #e4ecff, #cfe0ff);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--brand-line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}

.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.avatar-lg {
    width: 46px;
    height: 46px;
    font-size: 17px;
}

.user-name {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
}

.user-menu .chevron {
    width: 13px;
    height: 13px;
    color: var(--muted);
    transition: transform .2s ease;
}

.user-menu[open] .chevron {
    transform: rotate(180deg);
}

.user-pop {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 218px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: popIn .16s ease both;
}

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

.user-pop-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 5px;
}

.user-pop-head strong {
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pop-head span {
    color: var(--muted-2);
    font-size: 10.5px;
    flex: 0 0 auto;
}

.user-pop > a,
.user-pop form button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-2);
    font-size: 12.5px;
    text-align: left;
}

.user-pop > a:hover,
.user-pop form button:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.user-pop .icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.user-pop form {
    margin: 0;
}

.user-pop form button {
    color: var(--red);
}

.user-pop form button:hover {
    background: var(--red-soft);
    color: var(--red);
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 4.5px 0;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .22s ease, opacity .22s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Flash
   -------------------------------------------------------------------------- */

.flash-stack {
    position: fixed;
    z-index: 400;
    top: 84px;
    right: max(20px, calc((100vw - var(--container)) / 2));
    width: min(400px, calc(100% - 40px));
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.flash-stack-inline {
    position: static;
    width: auto;
    margin-bottom: 20px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow);
    pointer-events: auto;
    animation: flashIn .22s ease both;
}

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

.flash-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
}

.flash-icon .icon {
    width: 13px;
    height: 13px;
}

.flash-text {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.6;
    padding-top: 1px;
}

.flash-close {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
}

.flash-close:hover {
    background: var(--surface-3);
}

.flash-close .icon {
    width: 13px;
    height: 13px;
}

.flash-success {
    border-color: var(--brand-line);
}

.flash-error {
    border-color: #f0d0d0;
}

.flash-error .flash-icon {
    background: var(--red-soft);
    color: var(--red);
}

.flash-info .flash-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.flash.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.field-foot .is-near-limit {
    color: var(--amber);
}

.password-toggle.is-visible {
    color: var(--brand);
    background: var(--brand-soft);
}

.btn.is-loading {
    opacity: .6;
    cursor: wait;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: auto;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(29, 78, 216, .18), transparent 55%),
        linear-gradient(180deg, #0d1a30 0%, #0b1729 100%);
    color: rgba(248, 250, 252, .62);
    padding: 56px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 18px;
    color: rgba(248, 250, 252, .42);
    font-size: 12.5px;
    line-height: 1.85;
}

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

.footer-col h3 {
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(248, 250, 252, .48);
    font-size: 12.5px;
    transition: color .2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(248, 250, 252, .3);
    font-size: 11px;
    letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background:
        radial-gradient(ellipse at 88% 0%, rgba(29, 78, 216, .12), transparent 48%),
        radial-gradient(ellipse at 0% 100%, rgba(79, 131, 234, .08), transparent 42%),
        linear-gradient(180deg, #eef4ff 0%, #f6f8fc 100%);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image: radial-gradient(rgba(29, 78, 216, .16) .7px, transparent .7px);
    background-size: 20px 20px;
    mask-image: linear-gradient(90deg, transparent 5%, #000 45%, transparent 96%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .78fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .14);
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -.035em;
}

.hero h1 span {
    color: var(--brand);
    background: linear-gradient(transparent 74%, rgba(29, 78, 216, .14) 0);
    padding-bottom: 2px;
}

.hero-lead {
    max-width: 565px;
    margin-top: 20px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.9;
}

.hero-search {
    width: min(620px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.hero-search:focus-within {
    border-color: var(--brand-line);
    box-shadow: 0 8px 28px -12px rgba(29, 78, 216, .3), 0 0 0 3px rgba(29, 78, 216, .08);
}

.hero-search-icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 7px 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
}

.hero-search input::placeholder {
    color: var(--muted-2);
}

.hero-search .btn {
    min-height: 40px;
    padding-inline: 24px;
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 11.5px;
}

.hero-meta strong {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
}

.meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

.hero-panel {
    position: relative;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 40px 80px -40px rgba(15, 23, 42, .32);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: -1;
    transform: translate(12px, 12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-line);
}

.hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px 14px;
}

.live-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.live-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .14);
    animation: pulseDot 2.2s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(29, 78, 216, .14); }
    50% { box-shadow: 0 0 0 7px rgba(29, 78, 216, .04); }
}

.hero-panel-head a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
}

.hero-panel-head a:hover {
    color: var(--brand);
}

.hero-panel-head .icon {
    width: 13px;
    height: 13px;
}

.hero-panel-list {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    overflow: hidden;
}

.hero-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    transition: background .2s ease;
}

.hero-item:last-child {
    border-bottom: 0;
}

.hero-item:hover {
    background: var(--brand-soft);
}

.hero-index {
    color: var(--brand-line);
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hero-item-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.hero-item-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.hero-item-copy span {
    color: var(--muted);
    font-size: 10.5px;
}

.hero-arrow {
    width: 15px;
    height: 15px;
    margin-left: auto;
    color: var(--muted-2);
    transition: transform .2s ease, color .2s ease;
}

.hero-item:hover .hero-arrow {
    transform: translateX(3px);
    color: var(--brand);
}

.hero-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 8px 3px;
}

.hero-mini-stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.hero-mini-stat strong {
    color: var(--brand);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.hero-mini-stat span {
    color: var(--muted);
    font-size: 10.5px;
}

.hero-mini-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

.hero-mini-note .icon {
    width: 13px;
    height: 13px;
    color: var(--brand);
}

.empty-mini {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    font-size: 12.5px;
}

.category-strip {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.category-strip-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.category-label .icon {
    width: 14px;
    height: 14px;
}

.category-scroll {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 500;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.category-pill span {
    color: var(--muted-2);
    font-size: 9.5px;
    font-variant-numeric: tabular-nums;
}

.category-pill:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
}

.category-all {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--muted);
    font-size: 11.5px;
}

.category-all:hover {
    color: var(--brand);
}

.category-all .icon {
    width: 12px;
    height: 12px;
}

.home-section {
    padding-top: 64px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-kicker {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.section-heading h2,
.how-intro h2 {
    font-size: clamp(24px, 2.8vw, 32px);
    letter-spacing: -.025em;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 26px;
    align-items: start;
}

.post-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.post-card-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 14px;
}

.post-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.5;
    white-space: nowrap;
}

.tag-chip .icon {
    width: 11px;
    height: 11px;
}

.tag-chip.tone-1,
.tag-dot.tone-1 { background: #eef4ff; color: #1d4ed8; }
.tag-chip.tone-2,
.tag-dot.tone-2 { background: #fdf6e7; color: #b7791f; }
.tag-chip.tone-3,
.tag-dot.tone-3 { background: #ecf9fc; color: #0e7490; }
.tag-chip.tone-4,
.tag-dot.tone-4 { background: #fdf0ef; color: #c53030; }
.tag-chip.tone-5,
.tag-dot.tone-5 { background: #f3f0f9; color: #6b46c1; }

.post-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 10.5px;
    white-space: nowrap;
}

.post-time .icon {
    width: 12px;
    height: 12px;
}

.post-card h3 {
    margin-top: 13px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: -.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 11px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10.5px;
}

.author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--ink-2);
    font-size: 11px;
}

.author .avatar {
    width: 22px;
    height: 22px;
    font-size: 9.5px;
}

.post-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    white-space: nowrap;
}

.post-views .icon {
    width: 13px;
    height: 13px;
}

.home-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 14px;
}

.aside-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.publish-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(29, 78, 216, .4), transparent 48%),
        linear-gradient(180deg, #0d1a30 0%, #0b1729 100%);
    border-color: transparent;
    color: #fff;
}

.publish-card::after {
    content: "邻";
    position: absolute;
    right: -8px;
    bottom: -40px;
    color: rgba(255, 255, 255, .04);
    font-family: var(--font-serif);
    font-size: 140px;
    line-height: 1;
    pointer-events: none;
}

.aside-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--gold);
}

.aside-icon .icon {
    width: 17px;
    height: 17px;
}

.publish-card h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.4;
}

.publish-card p {
    position: relative;
    z-index: 1;
    margin: 8px 0 17px;
    color: rgba(248, 250, 252, .55);
    font-size: 12px;
    line-height: 1.8;
}

.publish-card .btn-primary {
    position: relative;
    z-index: 1;
    background: #fff;
    border-color: #fff;
    color: var(--brand-dark);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4);
}

.publish-card .btn-primary:hover {
    background: #f1f5ff;
    border-color: #f1f5ff;
}

.publish-card .aside-hint {
    margin: 12px 0 0;
    color: rgba(248, 250, 252, .32);
    font-size: 10px;
    text-align: center;
}

.aside-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 17px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.aside-title h3 {
    font-size: 14px;
    font-weight: 650;
}

.aside-title > span {
    color: var(--gold);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.aside-title > .icon {
    width: 17px;
    height: 17px;
    color: var(--brand);
}

.steps {
    display: grid;
    gap: 15px;
    list-style: none;
}

.steps li {
    display: flex;
    gap: 12px;
}

.steps li > span {
    padding-top: 1px;
    color: var(--brand-line);
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 700;
}

.steps strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
}

.steps p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.safety-card {
    background: var(--surface-2);
}

.safety-card p {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.8;
}

.how-strip {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(29, 78, 216, .22), transparent 55%),
        linear-gradient(180deg, #0d1a30 0%, #0b1729 100%);
    color: #f8fafc;
}

.how-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) .6px, transparent .6px);
    background-size: 22px 22px;
    opacity: .2;
    mask-image: linear-gradient(90deg, transparent, #000 45%, transparent);
}

.how-strip-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 36px;
}

.how-intro h2 {
    margin-top: 2px;
    color: #f8fafc;
}

.how-intro .section-kicker {
    color: var(--gold);
}

.how-item > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--gold);
}

.how-item > span .icon {
    width: 17px;
    height: 17px;
}

.how-item h3 {
    font-size: 13.5px;
    font-weight: 600;
}

.how-item p {
    margin-top: 8px;
    color: rgba(248, 250, 252, .45);
    font-size: 11.5px;
    line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Empty states
   -------------------------------------------------------------------------- */

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 58px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
    text-align: center;
}

.empty-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
}

.empty-icon .icon {
    width: 22px;
    height: 22px;
}

.empty-state h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
}

.empty-state p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
}

.empty-state .btn,
.empty-actions {
    margin-top: 20px;
}

.empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.empty-actions .btn {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Page header / breadcrumbs
   -------------------------------------------------------------------------- */

.page-head {
    padding: 28px 0 42px;
    background:
        radial-gradient(ellipse at 92% 0%, rgba(29, 78, 216, .08), transparent 42%),
        linear-gradient(180deg, #eef4ff, #f6f8fc);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11.5px;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb .icon {
    width: 11px;
    height: 11px;
    color: var(--muted-2);
}

.page-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
}

.page-head-row h1 {
    font-size: clamp(28px, 3.8vw, 38px);
}

.page-head-row p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.head-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11.5px;
    box-shadow: var(--shadow-sm);
}

.head-user .icon {
    width: 14px;
    height: 14px;
    color: var(--brand);
}

.head-user strong {
    color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   List page
   -------------------------------------------------------------------------- */

.list-search {
    width: min(720px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 5px 5px 5px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.list-search:focus-within {
    border-color: var(--brand-line);
    box-shadow: 0 4px 16px -8px rgba(29, 78, 216, .2), 0 0 0 3px rgba(29, 78, 216, .06);
}

.list-search-icon {
    width: 17px;
    height: 17px;
    color: var(--muted);
}

.list-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.list-section {
    padding-top: 30px;
}

.list-container {
    max-width: 980px;
}

.filter-bar {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

.filter-label .icon {
    width: 13px;
    height: 13px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 12px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.filter-chip span {
    color: var(--muted-2);
    font-size: 9.5px;
}

.filter-chip:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.filter-chip.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand-dark);
    font-weight: 500;
    box-shadow: 0 4px 12px -6px rgba(29, 78, 216, .5);
}

.filter-chip.is-active span {
    color: rgba(255, 255, 255, .7);
}

.result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 2px 14px;
    color: var(--muted);
    font-size: 11.5px;
}

.result-toolbar strong {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    margin: 0 2px;
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
}

.clear-filter:hover {
    color: var(--red);
}

.clear-filter .icon {
    width: 12px;
    height: 12px;
}

.result-list {
    display: grid;
    gap: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.result-main {
    min-width: 0;
    flex: 1;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.result-time .icon {
    width: 11px;
    height: 11px;
}

.result-item h2 {
    margin-top: 9px;
    font-size: 16.5px;
    font-weight: 650;
    line-height: 1.45;
}

.result-item p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 11px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.result-foot .author {
    font-size: 10.5px;
}

.dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

.result-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted-2);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.result-arrow .icon {
    width: 14px;
    height: 14px;
}

.result-item:hover .result-arrow {
    transform: translateX(2px);
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 11.5px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.page-btn .icon {
    width: 13px;
    height: 13px;
}

.page-btn:hover {
    border-color: var(--brand-line);
    color: var(--brand);
    background: var(--brand-soft);
}

.page-btn.is-current {
    background: var(--brand);
    border-color: var(--brand-dark);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px -6px rgba(29, 78, 216, .5);
}

.page-gap {
    width: 20px;
    text-align: center;
    color: var(--muted-2);
    font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Detail
   -------------------------------------------------------------------------- */

.detail-top {
    padding-top: 24px;
}

.preview-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--gold-line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: #7a5a1e;
    font-size: 12px;
}

.preview-notice .icon {
    width: 16px;
    height: 16px;
}

.preview-notice a {
    margin-left: auto;
    color: #7a5a1e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.detail-section {
    padding-top: 24px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 326px;
    gap: 24px;
    align-items: start;
}

.detail-article {
    min-width: 0;
    padding: 36px 40px 30px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.article-head {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.article-head h1 {
    font-size: clamp(26px, 3.3vw, 35px);
    line-height: 1.3;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 11.5px;
}

.article-meta .author {
    font-size: 12px;
    font-weight: 500;
}

.article-meta .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
}

.meta-item .icon {
    width: 13px;
    height: 13px;
    color: var(--muted-2);
}

.article-body {
    padding: 30px 0 34px;
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 2.05;
    overflow-wrap: anywhere;
}

.article-body br {
    display: block;
    content: "";
    margin-top: 5px;
}

.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    scroll-margin-top: 100px;
}

.article-actions strong {
    display: block;
    font-size: 12.5px;
}

.article-actions span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10.5px;
}

.related-block {
    margin-top: 34px;
}

.related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.related-head h2 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.related-card {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.related-card .tag-chip {
    padding: 2px 7px;
    font-size: 9.5px;
}

.related-card h3 {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    margin-top: auto;
    padding-top: 9px;
    color: var(--muted-2);
    font-size: 9.5px;
}

.detail-aside {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: grid;
    gap: 13px;
}

.contact-card {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0, rgba(29, 78, 216, .06), transparent 55%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}

.contact-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: linear-gradient(135deg, #2a5ce0, var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 10px -4px rgba(29, 78, 216, .5);
}

.contact-icon .icon {
    width: 17px;
    height: 17px;
}

.contact-head h2 {
    font-size: 13.5px;
    font-weight: 650;
}

.contact-head p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.contact-value {
    margin-top: 17px;
    padding: 15px;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
}

.contact-actions {
    margin-top: 10px;
}

.contact-tip {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.contact-tip .icon {
    width: 12px;
    height: 12px;
    margin-top: 1px;
    color: var(--brand);
}

.contact-tip a {
    color: var(--brand);
    font-weight: 600;
}

.locked-contact {
    position: relative;
    margin-top: 16px;
    padding: 16px;
    border: 1px dashed var(--brand-line);
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    text-align: center;
    overflow: hidden;
}

.locked-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.8s ease infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

.locked-contact span,
.locked-contact strong {
    position: relative;
    display: block;
}

.locked-contact span {
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: .12em;
}

.locked-contact strong {
    margin-top: 4px;
    color: var(--brand);
    font-size: 13.5px;
}

.contact-card .btn-block {
    margin-top: 13px;
}

.author-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.author-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.author-card-head strong {
    display: block;
    font-size: 12.5px;
}

.author-card-head span:not(.avatar) {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9.5px;
}

.author-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--line);
    overflow: hidden;
}

.author-stats div {
    padding: 10px;
    background: var(--surface-2);
    text-align: center;
}

.author-stats strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--brand);
}

.author-stats span {
    color: var(--muted);
    font-size: 9.5px;
}

.safety-panel {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.safety-panel h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.safety-panel h3 .icon {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.safety-panel ul {
    margin-top: 10px;
    padding-left: 16px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.9;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.status-badge .icon {
    width: 10px;
    height: 10px;
}

.status-published,
.status-resolved,
.status-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.status-hidden,
.status-rejected {
    background: #f1f4f9;
    color: #64748b;
}

.status-warning,
.status-pending {
    background: var(--amber-soft);
    color: #8a5a14;
}

.status-banned {
    background: var(--red-soft);
    color: var(--red);
}

/* --------------------------------------------------------------------------
   Dialog / modal
   -------------------------------------------------------------------------- */

.modal {
    width: min(540px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 40px 100px -40px rgba(15, 23, 42, .45);
    overflow: auto;
}

.modal::backdrop {
    background: rgba(8, 15, 30, .55);
    backdrop-filter: blur(3px);
}

.modal[open] {
    animation: modalIn .22s ease both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 17px;
    border-bottom: 1px solid var(--line);
}

.modal-kicker {
    color: var(--gold);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.modal-head h2 {
    margin-top: 6px;
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
}

.modal-close:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.modal-close .icon {
    width: 15px;
    height: 15px;
}

.modal-form {
    padding: 20px 26px 24px;
}

.modal-desc {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 17px 0;
    padding: 0;
    border: 0;
}

.reason-option {
    position: relative;
    cursor: pointer;
}

.reason-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reason-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 12px;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.reason-option:hover span {
    border-color: var(--brand-line);
}

.reason-option input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.reason-option input:focus-visible + span {
    outline: 2px solid rgba(29, 78, 216, .4);
    outline-offset: 2px;
}

.modal-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0;
    color: var(--muted);
    font-size: 10.5px;
}

.modal-note .icon {
    width: 13px;
    height: 13px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.error-section {
    padding: 70px 0;
}

.error-state {
    max-width: 680px;
    margin-inline: auto;
    padding: 70px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.error-code {
    font-size: 64px;
    line-height: 1;
    color: var(--brand-line);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
    display: block;
    margin-bottom: 18px;
}

.field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
}

.field-label em {
    color: var(--red);
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.6;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .1);
}

.field textarea {
    min-height: 126px;
    resize: vertical;
}

.field-hint,
.field-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.field-hint .icon {
    width: 11px;
    height: 11px;
    vertical-align: -2px;
}

.field-foot span:last-child {
    font-variant-numeric: tabular-nums;
    color: var(--muted-2);
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid #f0d0d0;
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
    background: var(--red-soft);
    color: #8f2525;
    font-size: 12px;
}

.form-alert > .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--red);
}

.form-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.form-alert ul {
    padding-left: 16px;
    line-height: 1.8;
}

.form-alert p {
    line-height: 1.7;
}

.form-alert-compact {
    margin-bottom: 18px;
    padding: 12px 14px;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    cursor: pointer;
}

.check-field input {
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    accent-color: var(--brand);
    flex: 0 0 auto;
}

.check-field-compact {
    margin: 2px 0 18px;
    font-size: 10.5px;
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
}

.password-toggle:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.password-toggle .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Publish
   -------------------------------------------------------------------------- */

.publish-section {
    padding-top: 32px;
}

.publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.form-card {
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.publish-form {
    padding: 30px 32px;
}

.publish-form > .form-alert {
    margin-bottom: 26px;
}

.form-section {
    padding-bottom: 27px;
    margin-bottom: 27px;
    border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
    border-bottom: 0;
}

.form-section-head {
    display: flex;
    gap: 13px;
    margin-bottom: 20px;
}

.form-step {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--brand-line);
}

.form-section-head h2 {
    font-size: 16.5px;
    font-weight: 650;
    line-height: 1.4;
}

.form-section-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.tag-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-option {
    position: relative;
    cursor: pointer;
}

.tag-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tag-option span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 12px;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.tag-option:hover span {
    border-color: var(--brand-line);
}

.tag-option input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

.tag-option input:focus-visible + span {
    outline: 2px solid rgba(29, 78, 216, .4);
    outline-offset: 2px;
}

.inline-empty {
    padding: 15px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 11.5px;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.form-note {
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 10px;
}

.publish-aside {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: grid;
    gap: 13px;
}

.tip-list {
    display: grid;
    gap: 15px;
    list-style: none;
}

.tip-list li {
    display: flex;
    gap: 9px;
}

.tip-list li > span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
}

.tip-list .icon {
    width: 11px;
    height: 11px;
}

.tip-list p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.tip-list strong {
    display: block;
    margin-bottom: 1px;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 600;
}

.rules-card {
    background: var(--surface-2);
}

.rules-card h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
}

.rules-card h3 .icon {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.rules-card p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.rule-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.rule-tags span {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    font-size: 9px;
}

.mini-help h3 {
    font-size: 13px;
}

.mini-help p {
    margin: 6px 0 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Auth (login / register)
   -------------------------------------------------------------------------- */

.auth-page {
    padding: 44px 0 64px;
    background:
        radial-gradient(ellipse at 85% 10%, rgba(29, 78, 216, .08), transparent 42%),
        var(--bg);
}

.auth-shell {
    max-width: 980px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 40px 80px -40px rgba(15, 23, 42, .3);
    overflow: hidden;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 42px 38px 32px;
    background:
        radial-gradient(circle at 100% 0, rgba(29, 78, 216, .42), transparent 45%),
        linear-gradient(180deg, #0d1a30 0%, #0b1729 100%);
    color: #f8fafc;
    overflow: hidden;
}

.auth-aside::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .02), 0 0 0 65px rgba(255, 255, 255, .012);
    pointer-events: none;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--gold);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-badge .icon {
    width: 11px;
    height: 11px;
}

.auth-aside h2 {
    margin-top: 28px;
    font-size: 29px;
    line-height: 1.38;
}

.auth-aside-top p {
    margin-top: 14px;
    color: rgba(248, 250, 252, .48);
    font-size: 11.5px;
    line-height: 1.85;
}

.auth-points {
    display: grid;
    gap: 11px;
    margin-top: 30px;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(248, 250, 252, .66);
    font-size: 11px;
}

.auth-points li span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(29, 78, 216, .32);
    color: #a9c8ff;
}

.auth-points .icon {
    width: 10px;
    height: 10px;
}

.auth-quote {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 37px;
    color: rgba(248, 250, 252, .28);
    font-family: var(--font-serif);
    font-size: 11px;
    font-style: italic;
}

.auth-card {
    padding: 42px 46px 30px;
}

.auth-card-head {
    margin-bottom: 23px;
}

.auth-kicker {
    color: var(--gold);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.auth-card-head h1 {
    margin-top: 7px;
    font-size: 27px;
}

.auth-card-head p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11.5px;
}

.auth-card-head a {
    color: var(--brand);
    font-weight: 600;
}

.auth-form .field {
    margin-bottom: 14px;
}

.auth-form .btn-block {
    margin-top: 9px;
}

.demo-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding: 10px 13px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
}

.demo-note code {
    color: var(--brand-dark);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 10px;
}

.auth-footnote {
    margin-top: 19px;
    color: var(--muted-2);
    font-size: 9.5px;
    line-height: 1.7;
    text-align: center;
}

.auth-shell-register .auth-card {
    padding-top: 36px;
}

/* --------------------------------------------------------------------------
   My posts
   -------------------------------------------------------------------------- */

.my-section {
    padding-top: 28px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--surface-3);
    color: var(--ink-2);
}

.stat-icon .icon {
    width: 16px;
    height: 16px;
}

.stat-icon-green {
    background: var(--brand-soft);
    color: var(--brand);
}

.stat-icon-amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.stat-icon-red {
    background: var(--red-soft);
    color: var(--red);
}

.stat-card strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.stat-card span:not(.stat-icon) {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.my-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 14px;
}

.segmented {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.segmented a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 11.5px;
    transition: background .18s ease, color .18s ease;
}

.segmented a span {
    color: var(--muted-2);
    font-size: 9px;
}

.segmented a:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.segmented a.is-active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 3px 10px -4px rgba(29, 78, 216, .5);
}

.segmented a.is-active span {
    color: rgba(255, 255, 255, .65);
}

.my-count {
    color: var(--muted);
    font-size: 10.5px;
}

.my-list {
    display: grid;
    gap: 10px;
}

.my-post {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 19px 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.my-post:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.my-post-main {
    min-width: 0;
    flex: 1;
}

.my-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.my-post h2 {
    margin-top: 8px;
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.45;
}

.my-post h2 a:hover {
    color: var(--brand);
}

.my-post p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-post-foot {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 10px;
}

.my-post-foot span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.my-post-foot .icon {
    width: 11px;
    height: 11px;
}

.my-post-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.my-post-actions form {
    margin: 0;
}

.my-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
}

.my-note .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--brand);
}

.my-note p {
    font-size: 10.5px;
    line-height: 1.7;
}

/* ==========================================================================
   ADMIN
   ========================================================================== */

.admin-auth-body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(29, 78, 216, .1), transparent 38%),
        var(--bg);
}

.admin-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 30px 20px;
}

.admin-auth-brand {
    width: min(100%, 1080px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.admin-auth-brand .brand-copy strong {
    color: var(--ink);
}

.admin-auth-brand .brand-copy small {
    color: var(--muted);
}

.admin-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
}

.admin-back:hover {
    color: var(--brand);
}

.admin-back .icon {
    width: 13px;
    height: 13px;
}

.admin-login-shell {
    width: min(100%, 1000px);
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    margin: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 40px 100px -40px rgba(15, 23, 42, .35);
    overflow: hidden;
}

.admin-login-art {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: 46px 44px 34px;
    background:
        radial-gradient(circle at 90% 10%, rgba(29, 78, 216, .48), transparent 42%),
        linear-gradient(180deg, #0d1a30 0%, #0b1729 100%);
    color: #f8fafc;
    overflow: hidden;
}

.admin-login-art::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: radial-gradient(rgba(255, 255, 255, .4) .6px, transparent .6px);
    background-size: 22px 22px;
    mask-image: linear-gradient(135deg, #000, transparent 65%);
}

.admin-login-art::after {
    content: "邻";
    position: absolute;
    right: -30px;
    bottom: -75px;
    color: rgba(255, 255, 255, .04);
    font-family: var(--font-serif);
    font-size: 290px;
    line-height: 1;
    pointer-events: none;
}

.admin-auth-kicker {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.admin-login-art h1 {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    font-size: 35px;
    line-height: 1.36;
}

.admin-login-art > p {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin-top: 15px;
    color: rgba(248, 250, 252, .48);
    font-size: 11.5px;
    line-height: 1.85;
}

.admin-art-grid {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 38px;
    margin-top: 34px;
}

.admin-art-grid strong {
    display: block;
    color: #f8fafc;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.admin-art-grid span {
    display: block;
    margin-top: 6px;
    color: rgba(248, 250, 252, .34);
    font-size: 9.5px;
}

.admin-art-line {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 1px;
    margin-top: auto;
    background: rgba(255, 255, 255, .09);
}

.admin-art-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px !important;
    color: rgba(248, 250, 252, .3) !important;
    font-size: 9.5px !important;
}

.admin-art-note .icon {
    width: 13px;
    height: 13px;
}

.admin-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 46px;
}

.admin-login-head {
    margin-bottom: 25px;
}

.admin-login-head h2 {
    margin-top: 8px;
    font-size: 28px;
}

.admin-login-head p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11.5px;
}

.admin-login-card .field {
    margin-bottom: 15px;
}

.admin-login-card .btn-block {
    margin-top: 8px;
}

.demo-note-dark {
    margin-top: 21px;
    background: var(--surface-2);
    border-color: var(--line-strong);
}

.admin-login-foot {
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 9.5px;
    text-align: center;
}

.admin-auth-footer {
    width: min(100%, 1080px);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 20px auto 0;
    color: var(--muted-2);
    font-size: 9.5px;
}

/* Admin shell */

.admin-body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 300;
    width: 250px;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 18px;
    background:
        radial-gradient(circle at 0 0, rgba(29, 78, 216, .3), transparent 48%),
        linear-gradient(180deg, #0d1a30 0%, #0b1729 100%);
    color: rgba(248, 250, 252, .6);
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--gold);
    box-shadow: none;
    font-size: 18px;
}

.admin-brand strong {
    display: block;
    color: #f8fafc;
    font-family: var(--font-serif);
    font-size: 17px;
    letter-spacing: .08em;
    line-height: 1.2;
}

.admin-brand small {
    display: block;
    margin-top: 3px;
    color: rgba(248, 250, 252, .28);
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-nav-label {
    padding: 23px 12px 9px;
    color: rgba(248, 250, 252, .22);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 2px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(248, 250, 252, .5);
    font-size: 12.5px;
    transition: background .18s ease, color .18s ease;
}

.admin-nav a .icon {
    width: 16px;
    height: 16px;
    color: rgba(248, 250, 252, .32);
    transition: color .18s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, .05);
    color: #f8fafc;
}

.admin-nav a:hover .icon {
    color: rgba(248, 250, 252, .7);
}

.admin-nav a.is-active {
    background: rgba(29, 78, 216, .3);
    color: #f8fafc;
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--gold);
}

.admin-nav a.is-active .icon {
    color: var(--gold);
}

.nav-badge {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.admin-sidebar-foot {
    display: grid;
    gap: 2px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.admin-sidebar-foot a,
.admin-sidebar-foot button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(248, 250, 252, .34);
    font-size: 11px;
    text-align: left;
}

.admin-sidebar-foot a:hover,
.admin-sidebar-foot button:hover {
    background: rgba(255, 255, 255, .05);
    color: #f8fafc;
}

.admin-sidebar-foot .icon {
    width: 14px;
    height: 14px;
}

.admin-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: 250px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
}

.admin-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
}

.admin-menu-btn .icon {
    width: 18px;
    height: 18px;
}

.admin-title p {
    color: var(--muted-2);
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-title h1 {
    margin-top: 2px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-2);
    font-size: 11px;
}

.admin-home-link {
    min-height: 32px;
}

.admin-content {
    flex: 1;
    width: 100%;
    max-width: 1460px;
    padding: 26px 32px 12px;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    color: var(--muted-2);
    font-size: 9.5px;
}

.admin-overlay {
    display: none;
}

/* Admin stats */

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-stat-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.admin-stat-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--surface-3);
    color: var(--ink-2);
}

.admin-stat-icon .icon {
    width: 17px;
    height: 17px;
}

.admin-stat-icon.is-green {
    background: var(--brand-soft);
    color: var(--brand);
}

.admin-stat-icon.is-amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.admin-stat-icon.is-gray {
    background: var(--surface-3);
    color: var(--muted);
}

.admin-stat-icon.is-blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.admin-stat-icon.is-red {
    background: var(--red-soft);
    color: var(--red);
}

.admin-stat div > span {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.admin-stat div > strong {
    display: block;
    margin-top: 1px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* Admin panels */

.admin-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 21px;
    border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
    font-family: var(--font-serif);
    font-size: 15.5px;
    font-weight: 700;
}

.admin-panel-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.admin-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 21px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 270px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
}

.admin-search:focus-within {
    border-color: var(--brand-line);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .08);
}

.admin-search .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
}

.admin-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11.5px;
}

.admin-select select {
    height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 11.5px;
    outline: 0;
    cursor: pointer;
}

.admin-select select:focus {
    border-color: var(--brand-line);
}

.admin-clear {
    color: var(--muted);
    font-size: 10.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-clear:hover {
    color: var(--red);
}

.admin-count-pill {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 9px;
}

.admin-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 21px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.admin-panel-foot .pagination {
    margin: 0;
}

.admin-panel-foot .page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 10px;
}

.admin-panel-foot .page-btn .icon {
    width: 11px;
    height: 11px;
}

/* Admin tables */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.admin-table th {
    padding: 10px 13px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table th:first-child,
.admin-table td:first-child {
    padding-left: 21px;
}

.admin-table th:last-child,
.admin-table td:last-child {
    padding-right: 21px;
}

.admin-table td {
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: var(--brand-soft);
}

.table-title {
    min-width: 210px;
    max-width: 330px;
}

.table-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.table-title a:hover {
    color: var(--brand);
}

.table-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 9px;
}

.admin-table .tag-chip {
    font-size: 9px;
    padding: 2px 7px;
}

.nowrap {
    white-space: nowrap;
}

.muted {
    color: var(--muted-2);
    font-size: 9.5px;
}

.report-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--amber-soft);
    color: #8a5a14;
    font-size: 9px;
    font-weight: 600;
}

.report-count .icon {
    width: 10px;
    height: 10px;
}

.th-actions {
    text-align: right !important;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.table-actions form {
    margin: 0;
}

.table-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 9.5px;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.table-btn .icon {
    width: 11px;
    height: 11px;
}

.table-btn:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
}

.table-btn-danger:hover {
    border-color: #f0d0d0;
    background: var(--red-soft);
    color: var(--red);
}

.table-btn[disabled] {
    opacity: .4;
    cursor: not-allowed;
}

.table-btn[disabled]:hover {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink-2);
}

.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    color: var(--muted);
    text-align: center;
}

.admin-empty > .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    color: var(--muted-2);
}

.admin-empty h3 {
    color: var(--ink-2);
    font-size: 13.5px;
}

.admin-empty p {
    margin-top: 3px;
    font-size: 10.5px;
}

/* Admin split layouts */

.admin-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
    align-items: start;
}

.admin-split-wide {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.admin-side-panel {
    position: sticky;
    top: 95px;
}

.admin-side-panel .admin-panel-head {
    padding-bottom: 16px;
}

.admin-form {
    padding: 18px 21px 20px;
}

.admin-form .field {
    margin-bottom: 14px;
}

.admin-form .field-label {
    font-size: 10.5px;
}

.admin-form .field input {
    padding: 9px 11px;
    font-size: 12px;
}

.admin-form .field-hint {
    font-size: 9px;
}

.admin-form .btn-block {
    min-height: 38px;
    font-size: 11.5px;
}

.admin-form .btn-block + .btn-block {
    margin-top: 6px;
}

.admin-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 21px 20px;
    padding: 11px 12px;
    border: 1px solid var(--gold-line);
    border-left: 2px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-soft);
    color: #6d5019;
}

.admin-tip .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.admin-tip p {
    font-size: 9px;
    line-height: 1.7;
}

.admin-tip-wide {
    margin: 18px 21px 20px;
}

.admin-guide {
    margin: 0 21px 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.admin-guide h3 {
    margin-bottom: 7px;
    color: var(--ink-2);
    font-size: 10.5px;
    font-weight: 650;
}

.admin-guide ul {
    padding-left: 15px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.8;
}

.admin-guide code {
    color: var(--brand);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 9px;
}

/* Tag admin */

.tag-admin-list {
    display: grid;
}

.tag-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 21px;
    border-bottom: 1px solid var(--line);
}

.tag-admin-row:last-child {
    border-bottom: 0;
}

.tag-admin-info {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.tag-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--brand-soft);
}

.tag-dot.tone-1 { background: #1d4ed8; }
.tag-dot.tone-2 { background: #b7791f; }
.tag-dot.tone-3 { background: #0e7490; }
.tag-dot.tone-4 { background: #c53030; }
.tag-dot.tone-5 { background: #6b46c1; }

.tag-admin-info strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.tag-admin-info span:not(.tag-dot) {
    display: block;
    margin-top: 1px;
    color: var(--muted-2);
    font-size: 9px;
}

.tag-admin-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.tag-admin-actions form {
    margin: 0;
}

/* Keywords */

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 21px;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 11.5px;
}

.keyword-chip > span {
    color: var(--ink-2);
}

.keyword-chip form {
    margin: 0;
}

.keyword-chip button {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted-2);
}

.keyword-chip button:hover {
    background: var(--red-soft);
    color: var(--red);
}

.keyword-chip .icon {
    width: 11px;
    height: 11px;
}

/* Reports */

.report-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 16px 20px;
    border: 1px solid var(--gold-line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    background: linear-gradient(100deg, var(--gold-soft), var(--surface));
}

.report-summary-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.report-summary-main strong {
    display: block;
    color: #6d5019;
    font-family: var(--font-serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
}

.report-summary-main div > span {
    color: #7a5a1e;
    font-size: 10.5px;
}

.report-summary > p {
    color: #7a5a1e;
    font-size: 10.5px;
    text-align: right;
}

.admin-tabs {
    display: flex;
    gap: 3px;
    padding: 11px 21px 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 8px 12px 11px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 10.5px;
}

.admin-tabs a span {
    min-width: 17px;
    padding: 1px 4px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted-2);
    font-size: 8.5px;
    text-align: center;
}

.admin-tabs a:hover {
    color: var(--ink);
}

.admin-tabs a.is-active {
    border-bottom-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
}

.admin-tabs a.is-active span {
    background: var(--brand-soft);
    color: var(--brand);
}

.filter-context {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 21px 0;
    padding: 9px 11px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 9.5px;
}

.filter-context .icon {
    width: 12px;
    height: 12px;
}

.filter-context a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    font-weight: 600;
}

.report-list {
    display: grid;
    gap: 9px;
    padding: 17px 21px;
}

.report-item {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.report-item.is-pending {
    border-left: 3px solid var(--amber);
}

.report-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.report-reason {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-reason-text {
    color: var(--ink-2);
    font-size: 10.5px;
    font-weight: 600;
}

.report-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 9px;
    white-space: nowrap;
}

.report-date .icon {
    width: 10px;
    height: 10px;
}

.report-post {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
}

.report-post > .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--brand);
}

.report-post a {
    display: block;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
}

.report-post a:hover {
    color: var(--brand);
}

.report-post span {
    display: block;
    margin-top: 1px;
    color: var(--muted-2);
    font-size: 8.5px;
}

.report-detail {
    margin: 10px 0 0;
    padding: 0 0 0 11px;
    border-left: 2px solid var(--line-strong);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.75;
}

.report-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.report-reporter,
.report-handled {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 9px;
}

.report-reporter .icon,
.report-handled .icon {
    width: 11px;
    height: 11px;
}

.report-handled {
    color: var(--muted);
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.report-actions form {
    margin: 0;
}

.report-actions .btn-sm {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 9px;
}

.report-actions .btn-sm .icon {
    width: 12px;
    height: 12px;
}

/* Users */

.table-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.table-user strong {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
}

.table-user div > span {
    display: block;
    color: var(--muted-2);
    font-size: 8.5px;
}

.self-tag {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 8px;
    font-style: normal;
    font-weight: 500;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.role-badge .icon {
    width: 9px;
    height: 9px;
}

.role-admin {
    background: var(--gold-soft);
    color: #8a5a14;
}

.user-post-count {
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Admin settings / SEO / SMS
   -------------------------------------------------------------------------- */

.settings-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 21px 23px;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 100% 0, rgba(29, 78, 216, .08), transparent 48%),
        linear-gradient(120deg, #eff4ff, var(--surface));
}

.settings-kicker {
    color: var(--gold);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.settings-intro h2 {
    margin-top: 6px;
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
}

.settings-intro p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10.5px;
}

.settings-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.settings-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.settings-badge .icon {
    width: 11px;
    height: 11px;
}

.settings-badge.is-on {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.settings-main,
.settings-aside {
    display: grid;
    gap: 16px;
}

.settings-aside {
    position: sticky;
    top: 95px;
}

.settings-panel {
    overflow: hidden;
}

.panel-head-icon {
    width: 18px;
    height: 18px;
    color: var(--brand);
    opacity: .8;
}

.settings-section {
    padding: 19px 21px;
    border-bottom: 1px solid var(--line);
}

.settings-section:last-of-type {
    border-bottom: 0;
}

.settings-section > h3 {
    margin-bottom: 14px;
    color: var(--ink-2);
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.settings-panel .field {
    margin-bottom: 15px;
}

.settings-panel .field-label {
    font-size: 10.5px;
}

.settings-panel .field input,
.settings-panel .field textarea {
    font-size: 12px;
}

.settings-panel .field textarea {
    min-height: 70px;
}

.settings-panel .field-hint {
    font-size: 9px;
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 15px 21px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.settings-actions .btn {
    min-height: 38px;
    font-size: 11.5px;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.settings-toggle-row strong {
    display: block;
    color: var(--ink-2);
    font-size: 11px;
}

.settings-toggle-row > div > span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch > span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--line-strong);
    transition: background .2s ease;
}

.switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

.switch input:checked + span {
    background: var(--brand);
}

.switch input:checked + span::after {
    transform: translateX(18px);
}

.switch input:focus-visible + span {
    outline: 2px solid rgba(29, 78, 216, .4);
    outline-offset: 2px;
}

.settings-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid var(--gold-line);
    border-left: 2px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-soft);
    color: #6d5019;
}

.settings-help > .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.settings-help p {
    font-size: 9px;
    line-height: 1.75;
}

.settings-help code,
.sms-log-item code {
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(29, 78, 216, .08);
    color: var(--brand-dark);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 9px;
}

.settings-side-card .admin-form {
    padding-top: 15px;
}

.settings-side-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
    text-align: center;
}

.sms-log-list {
    max-height: 305px;
    padding: 6px 15px 10px;
    overflow-y: auto;
}

.sms-log-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.sms-log-item:last-child {
    border-bottom: 0;
}

.sms-log-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--muted-2);
}

.sms-log-dot.is-ok {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.sms-log-dot.is-fail {
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, .09);
}

.sms-log-item strong {
    display: block;
    color: var(--ink-2);
    font-size: 9.5px;
    font-weight: 600;
}

.sms-log-item em {
    margin-left: 4px;
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 8px;
    font-style: normal;
    font-weight: 400;
}

.sms-log-item div > span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-log-empty {
    padding: 20px 0;
    color: var(--muted-2);
    font-size: 9.5px;
    text-align: center;
}

.settings-note-card {
    padding: 18px;
}

.settings-note-card h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: 11px;
}

.settings-note-card h3 .icon {
    width: 14px;
    height: 14px;
    color: var(--brand);
}

.settings-note-card p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.75;
}

/* SMS verification in register */

.sms-code-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.sms-code-row input {
    flex: 1;
    min-width: 0;
}

.sms-send-btn {
    flex: 0 0 auto;
    min-width: 102px;
    min-height: 41px;
    padding-inline: 12px;
    font-size: 10.5px;
}

.sms-feedback.is-error {
    color: var(--red);
}

.sms-feedback.is-success {
    color: var(--brand);
}

@media (max-width: 1080px) {
    .settings-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-aside .settings-note-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .settings-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 17px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-full {
        grid-column: auto;
    }

    .settings-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 15px;
    }

    .settings-actions .btn {
        width: 100%;
    }

    .settings-aside {
        grid-template-columns: 1fr;
    }

    .sms-code-row {
        flex-direction: column;
    }

    .sms-send-btn {
        min-height: 38px;
    }
}

/* --------------------------------------------------------------------------
   Post operation badges / admin operation dialog
   -------------------------------------------------------------------------- */

.post-card-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.op-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    padding: 2px 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
    white-space: nowrap;
    vertical-align: middle;
}

.op-badge .icon {
    width: 10px;
    height: 10px;
}

.op-badge-top {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand);
}

.op-badge-recommend {
    border-color: #d6c7f5;
    background: #f3f0fb;
    color: #6b46c1;
}

.op-badge-hot {
    border-color: #f0d0d0;
    background: var(--red-soft);
    color: #c53030;
}

.op-badge-ad {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: #8a5a14;
}

.op-badge.is-expired,
.op-badge.is-scheduled {
    border-style: dashed;
    filter: grayscale(.35);
    opacity: .72;
}

.op-badge.is-hidden {
    display: none;
}

.hero-item-copy .op-badge {
    padding: 1px 4px;
    font-size: 8px;
}

.hero-item-copy .op-badge .icon {
    width: 8px;
    height: 8px;
}

.table-op-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.op-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 92px;
}

.op-cell .op-badge {
    padding: 2px 5px;
    font-size: 8px;
}

.op-cell .op-badge .icon {
    width: 9px;
    height: 9px;
}

.table-op-badges .op-badge {
    padding: 1px 5px;
    font-size: 8px;
}

.table-op-badges .op-badge .icon {
    width: 9px;
    height: 9px;
}

.table-btn-op {
    color: var(--brand);
    border-color: var(--brand-line);
    background: var(--brand-soft);
}

.table-btn-op:hover {
    background: #e3ebff;
}

.op-modal {
    width: min(720px, calc(100% - 32px));
}

.op-modal-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10.5px;
}

.op-form {
    padding: 18px 24px 23px;
}

.op-post-title {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
}

.op-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 11px 0 16px;
    padding: 9px 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--surface-2);
}

.op-preview-label {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
}

.op-preview-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.label-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.label-card {
    padding: 11px 12px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.label-card.is-enabled {
    border-color: var(--brand-line);
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--brand);
}

.label-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-card-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.label-card-title small {
    color: var(--muted);
    font-size: 8.5px;
    line-height: 1.4;
}

.label-status {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.label-status.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.label-status.is-scheduled {
    background: var(--amber-soft);
    color: #8a5a14;
}

.label-status.is-expired {
    background: var(--red-soft);
    color: var(--red);
}

.switch-sm {
    width: 36px;
    height: 21px;
}

.switch-sm > span::after {
    width: 15px;
    height: 15px;
}

.switch-sm input:checked + span::after {
    transform: translateX(15px);
}

.label-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
    opacity: .48;
    transition: opacity .18s ease;
}

.label-card.is-enabled .label-time-grid {
    opacity: 1;
}

.label-time-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.label-time-grid label > span {
    color: var(--muted);
    font-size: 8.5px;
}

.label-time-grid input {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 4px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ink-2);
    font-size: 9.5px;
    outline: 0;
}

.label-time-grid input:focus {
    border-color: var(--brand-line);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .07);
}

.label-time-grid input:disabled {
    background: var(--surface-3);
    color: var(--muted-2);
}

.op-tip {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.op-tip .icon {
    width: 12px;
    height: 12px;
    color: var(--brand);
}

.op-form .modal-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
    .op-modal {
        width: calc(100% - 22px);
    }

    .op-form {
        padding: 15px 17px 19px;
    }

    .label-grid {
        grid-template-columns: 1fr;
    }

    .label-time-grid {
        grid-template-columns: 1fr;
    }

    .op-preview {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
    .header-inner {
        gap: 20px;
    }

    .site-nav {
        gap: 2px;
    }

    .nav-search {
        width: 170px;
    }

    .nav-search:focus-within {
        width: 190px;
    }

    .home-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .hero-grid {
        gap: 44px;
    }

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

    .admin-stat-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .header-inner {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - var(--header-h) - 12px);
        margin: 0;
        padding: 10px 20px 20px;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 var(--radius) var(--radius);
        background: var(--surface);
        box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .2);
        overflow-y: auto;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 12px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .nav-link.is-active {
        color: var(--brand);
        font-weight: 600;
        background: transparent;
    }

    .nav-search {
        width: 100%;
        height: 42px;
        margin: 14px 0 6px;
        padding-left: 14px;
    }

    .nav-search:focus-within {
        width: 100%;
    }

    .nav-actions {
        gap: 12px;
        padding-top: 10px;
    }

    .nav-publish {
        flex: 1;
    }

    .user-menu {
        margin-left: auto;
    }

    .user-pop {
        position: static;
        width: 100%;
        margin-top: 10px;
        border-color: var(--line);
        box-shadow: none;
        background: var(--surface-2);
    }

    .user-menu summary {
        justify-content: flex-end;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 26px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
        gap: 34px;
    }

    .hero h1 {
        font-size: clamp(32px, 4.6vw, 46px);
    }

    .post-feed {
        gap: 12px;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 18px;
    }

    .detail-article {
        padding: 28px 28px 24px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .publish-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .publish-form {
        padding: 26px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .24s ease;
        box-shadow: 20px 0 50px rgba(0, 0, 0, .25);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-menu-btn {
        display: grid;
    }

    .admin-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 250;
        background: rgba(8, 15, 30, .42);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .admin-nav-open .admin-overlay {
        opacity: 1;
        visibility: visible;
    }

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

    .admin-stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-block: auto;
    }

    .admin-login-art {
        display: none;
    }

    .admin-login-card {
        padding: 40px 42px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 50px 0 46px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-copy {
        max-width: 640px;
    }

    .hero-panel {
        max-width: 560px;
    }

    .category-strip-inner {
        min-height: 62px;
        gap: 14px;
    }

    .category-label {
        display: none;
    }

    .how-strip-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-aside .publish-card {
        grid-column: 1 / -1;
    }

    .detail-layout,
    .publish-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside,
    .publish-aside {
        position: static;
    }

    .detail-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-aside .contact-card {
        grid-row: span 2;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-aside {
        display: none;
    }

    .auth-card {
        padding: 36px 36px 28px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-split,
    .admin-split-wide {
        grid-template-columns: 1fr;
    }

    .admin-side-panel {
        position: static;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
    }

    .footer-col:last-child {
        display: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    :root {
        --header-h: 60px;
    }

    .header-inner {
        min-height: 60px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 9px;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .brand-copy small {
        font-size: 8.5px;
    }

    .site-nav {
        padding-inline: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .hero {
        padding: 38px 0 34px;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 38px);
    }

    .hero-lead {
        margin-top: 14px;
        font-size: 13.5px;
        line-height: 1.85;
    }

    .eyebrow {
        margin-bottom: 16px;
        font-size: 9px;
    }

    .hero-search {
        margin-top: 22px;
        padding-left: 14px;
    }

    .hero-search .btn {
        min-height: 38px;
        padding-inline: 18px;
        font-size: 12px;
    }

    .hero-search input {
        font-size: 12.5px;
    }

    .hero-meta {
        gap: 8px;
        font-size: 10.5px;
    }

    .hero-meta strong {
        font-size: 12px;
    }

    .hero-panel {
        padding: 10px;
    }

    .hero-panel::after {
        display: none;
    }

    .hero-panel-head {
        padding: 6px 6px 11px;
    }

    .hero-item {
        padding: 13px 12px;
    }

    .hero-panel-foot {
        padding: 11px 6px 2px;
    }

    .category-strip-inner {
        min-height: 56px;
    }

    .category-pill {
        padding: 6px 11px;
        font-size: 11px;
    }

    .home-section {
        padding-top: 38px;
    }

    .section-heading {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .section-heading h2,
    .how-intro h2 {
        font-size: 23px;
    }

    .post-feed {
        grid-template-columns: 1fr;
    }

    .post-card h3 {
        font-size: 15.5px;
    }

    .home-aside {
        grid-template-columns: 1fr;
    }

    .home-aside .publish-card {
        grid-column: auto;
    }

    .how-strip {
        padding: 40px 0;
    }

    .how-strip-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .how-intro {
        margin-bottom: 2px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-col:last-child {
        display: flex;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
        margin-top: 28px;
    }

    .page-head {
        padding: 22px 0 30px;
    }

    .page-head-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-top: 17px;
    }

    .page-head-row h1 {
        font-size: 28px;
    }

    .page-head-row p {
        font-size: 11.5px;
    }

    .page-head-row > .btn {
        width: 100%;
    }

    .head-user {
        align-self: flex-start;
    }

    .list-search {
        margin-top: 20px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .filter-label {
        padding-top: 0;
    }

    .filter-chip {
        padding: 5px 11px;
        font-size: 11px;
    }

    .result-item {
        gap: 12px;
        padding: 16px;
    }

    .result-item h2 {
        font-size: 15.5px;
    }

    .result-item p {
        font-size: 11.5px;
    }

    .result-arrow {
        width: 30px;
        height: 30px;
    }

    .pagination {
        gap: 4px;
    }

    .page-btn {
        min-width: 33px;
        height: 33px;
        padding: 0 8px;
        font-size: 11px;
    }

    .page-btn span {
        display: none;
    }

    .page-btn .icon {
        width: 13px;
        height: 13px;
    }

    .detail-top {
        padding-top: 18px;
    }

    .detail-section {
        padding-top: 18px;
    }

    .detail-article {
        padding: 22px 20px 20px;
    }

    .article-head {
        padding-bottom: 20px;
    }

    .article-head h1 {
        font-size: 24px;
        line-height: 1.4;
    }

    .article-meta {
        gap: 10px;
        margin-top: 15px;
    }

    .article-body {
        padding: 22px 0 25px;
        font-size: 14.5px;
        line-height: 1.95;
    }

    .article-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding: 14px;
    }

    .article-actions .btn {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card {
        min-height: 102px;
    }

    .detail-aside {
        grid-template-columns: 1fr;
    }

    .detail-aside .contact-card {
        grid-row: auto;
    }

    .contact-card {
        padding: 19px;
    }

    .modal {
        width: calc(100% - 22px);
        max-height: calc(100vh - 22px);
    }

    .modal-head {
        padding: 20px 20px 15px;
    }

    .modal-form {
        padding: 16px 20px 20px;
    }

    .modal-actions {
        justify-content: stretch;
    }

    .modal-actions .btn {
        flex: 1;
    }

    .reason-grid {
        grid-template-columns: 1fr 1fr;
    }

    .publish-form {
        padding: 20px 17px;
    }

    .form-section {
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .form-section-head {
        gap: 10px;
        margin-bottom: 16px;
    }

    .form-section-head h2 {
        font-size: 15.5px;
    }

    .form-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .form-submit .btn {
        width: 100%;
    }

    .tag-option span {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 11.5px;
    }

    .auth-page {
        padding: 24px 0 44px;
    }

    .auth-card {
        padding: 30px 22px 24px;
    }

    .auth-card-head h1 {
        font-size: 24px;
    }

    .stat-grid {
        gap: 8px;
    }

    .stat-card {
        gap: 9px;
        padding: 13px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .stat-card strong {
        font-size: 19px;
    }

    .my-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
    }

    .my-post {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .my-post-actions {
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .my-post-actions .btn {
        flex: 1;
    }

    .my-post-actions form {
        flex: 1;
    }

    .my-post-actions form .btn {
        width: 100%;
    }

    .admin-auth {
        padding: 18px 14px;
    }

    .admin-auth-brand {
        padding-inline: 4px;
    }

    .admin-login-card {
        padding: 30px 22px;
    }

    .admin-login-head h2 {
        font-size: 24px;
    }

    .admin-topbar {
        min-height: 64px;
        padding: 10px 14px;
    }

    .admin-title h1 {
        font-size: 18px;
    }

    .admin-user {
        display: none;
    }

    .admin-content {
        padding: 16px 14px 8px;
    }

    .admin-footer {
        flex-direction: column;
        gap: 3px;
        padding: 14px;
    }

    .admin-stat-grid,
    .admin-stat-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .admin-stat {
        gap: 9px;
        padding: 12px;
    }

    .admin-stat-icon {
        width: 32px;
        height: 32px;
    }

    .admin-stat div > strong {
        font-size: 19px;
    }

    .admin-panel-head {
        padding: 15px;
    }

    .admin-panel-head h2 {
        font-size: 15px;
    }

    .admin-filters {
        padding: 11px 15px;
    }

    .admin-search {
        width: 100%;
    }

    .admin-table th:first-child,
    .admin-table td:first-child {
        padding-left: 15px;
    }

    .admin-table th:last-child,
    .admin-table td:last-child {
        padding-right: 15px;
    }

    .admin-page-info .admin-table th:nth-child(3),
    .admin-page-info .admin-table td:nth-child(3),
    .admin-page-info .admin-table th:nth-child(5),
    .admin-page-info .admin-table td:nth-child(5),
    .admin-page-info .admin-table th:nth-child(6),
    .admin-page-info .admin-table td:nth-child(6),
    .admin-page-info .admin-table th:nth-child(7),
    .admin-page-info .admin-table td:nth-child(7),
    .admin-page-info .admin-table th:nth-child(8),
    .admin-page-info .admin-table td:nth-child(8),
    .admin-page-users .admin-table th:nth-child(4),
    .admin-page-users .admin-table td:nth-child(4),
    .admin-page-users .admin-table th:nth-child(5),
    .admin-page-users .admin-table td:nth-child(5) {
        display: none;
    }

    .admin-page-info .table-title {
        min-width: 110px;
        max-width: 170px;
    }

    .admin-page-info .admin-table th,
    .admin-page-info .admin-table td,
    .admin-page-users .admin-table th,
    .admin-page-users .admin-table td {
        padding: 10px 6px;
    }

    .admin-page-info .admin-table th:first-child,
    .admin-page-info .admin-table td:first-child,
    .admin-page-users .admin-table th:first-child,
    .admin-page-users .admin-table td:first-child {
        padding-left: 15px;
    }

    .admin-page-info .admin-table th:last-child,
    .admin-page-info .admin-table td:last-child,
    .admin-page-users .admin-table th:last-child,
    .admin-page-users .admin-table td:last-child {
        padding-right: 15px;
    }

    .admin-table .table-btn {
        padding: 4px 6px;
    }

    .admin-table .table-btn span {
        display: none;
    }

    .admin-page-users .table-user {
        min-width: 110px;
    }

    .admin-stat-grid:not(.admin-stat-grid-4) .admin-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .admin-panel-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 13px 15px;
    }

    .tag-admin-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 13px 15px;
    }

    .keyword-cloud {
        padding: 15px;
    }

    .report-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .report-summary > p {
        text-align: left;
    }

    .report-list {
        padding: 13px 15px;
    }

    .report-item-head,
    .report-item-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .report-actions {
        width: 100%;
    }

    .report-actions form {
        flex: 1;
    }

    .report-actions .table-btn,
    .report-actions .btn {
        width: 100%;
    }

    .admin-split {
        gap: 12px;
    }

    .admin-tip {
        margin-inline: 15px;
    }

    .admin-form {
        padding: 15px;
    }
}

@media (max-width: 460px) {
    .nav-actions {
        flex-wrap: wrap;
    }

    .nav-publish {
        width: 100%;
        flex: auto;
    }

    .user-menu {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 27px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .meta-divider {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col:last-child {
        display: flex;
    }

    .post-card-link {
        padding: 17px 17px 13px;
    }

    .post-card-foot {
        padding-inline: 17px;
    }

    .result-item {
        padding: 15px;
    }

    .result-arrow {
        display: none;
    }

    .article-head h1 {
        font-size: 22px;
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .reason-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .segmented {
        width: 100%;
    }

    .segmented a {
        flex: 1;
        justify-content: center;
    }

    .admin-stat-grid,
    .admin-stat-grid-4 {
        grid-template-columns: 1fr;
    }

    .admin-login-card {
        padding: 26px 18px;
    }

    .admin-top-actions .admin-home-link {
        display: none;
    }

    .admin-tabs {
        padding-inline: 15px;
    }

    .report-reason {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .table-actions {
        flex-direction: column;
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/* --------------------------------------------------------------------------
   分类条折叠
   -------------------------------------------------------------------------- */

.category-pill.is-extra {
    display: none;
}

.category-scroll.is-expanded .category-pill.is-extra {
    display: inline-flex;
}

/* 「全部」从链接改为按钮后的样式重置 */
button.category-all {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

button.category-all:hover {
    color: var(--brand);
}

.category-toggle-icon {
    width: 13px;
    height: 13px;
    transition: transform .2s ease;
}

button.category-all[aria-expanded="true"] .category-toggle-icon {
    transform: rotate(180deg);
}
/* --------------------------------------------------------------------------
   发布页审核提示
   -------------------------------------------------------------------------- */

.publish-review-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--gold-line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: #6d5019;
}

.publish-review-notice .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--gold);
}

.publish-review-notice strong {
    display: block;
    font-size: 12.5px;
    font-weight: 650;
    margin-bottom: 3px;
}

.publish-review-notice p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.75;
    color: #7a5a1e;
}

@media (max-width: 720px) {
    .publish-review-notice {
        padding: 12px 14px;
    }

    .publish-review-notice strong {
        font-size: 12px;
    }

    .publish-review-notice p {
        font-size: 11px;
    }
}
/* --------------------------------------------------------------------------
   发布页审核提示
   -------------------------------------------------------------------------- */

.publish-review-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--gold-line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: #6d5019;
}

.publish-review-notice .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--gold);
}

.publish-review-notice strong {
    display: block;
    font-size: 12.5px;
    font-weight: 650;
    margin-bottom: 3px;
}

.publish-review-notice p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.75;
    color: #7a5a1e;
}

@media (max-width: 720px) {
    .publish-review-notice {
        padding: 12px 14px;
    }

    .publish-review-notice strong {
        font-size: 12px;
    }

    .publish-review-notice p {
        font-size: 11px;
    }
}

    .article-ai-summary {
        margin-top: 22px;
        padding: 14px 16px;
        border: 1px solid var(--brand-line);
        border-left: 3px solid var(--brand);
        border-radius: 6px;
        background: var(--brand-soft);
    }
    .article-ai-summary-label {
        margin: 0 0 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .2em;
        color: var(--brand);
        text-transform: uppercase;
    }
    .article-ai-summary p:last-child {
        margin: 0;
        font-size: 13px;
        line-height: 1.85;
        color: var(--ink-2);
    }

    .article-faq {
        margin-top: 32px;
        padding-top: 22px;
        border-top: 1px dashed var(--line-strong);
    }
    .article-faq-details { width: 100%; }
    .article-faq-summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        cursor: pointer;
        padding: 4px 0;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .article-faq-summary::-webkit-details-marker { display: none; }
    .article-faq-summary::marker { content: ""; }
    .article-faq-summary-text h2 {
        margin: 0;
        font-family: var(--font-serif);
        font-size: 16.5px;
        font-weight: 700;
        color: var(--ink);
        line-height: 1.3;
    }
    .article-faq-kicker {
        margin: 0 0 4px;
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: .2em;
        color: var(--brand);
        text-transform: uppercase;
    }
    .article-faq-toggle {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 12px;
        border: 1px solid var(--brand-line);
        border-radius: 999px;
        background: var(--brand-soft);
        color: var(--brand);
        font-size: 11.5px;
        font-weight: 600;
        white-space: nowrap;
        transition: background .18s ease, border-color .18s ease;
    }
    .article-faq-summary:hover .article-faq-toggle {
        background: #e3ebff;
        border-color: var(--brand-2);
    }
    .article-faq-toggle::after {
        content: "";
        width: 5px;
        height: 5px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .2s ease;
    }
    .article-faq-details[open] .article-faq-toggle::after {
        transform: translateY(1px) rotate(-135deg);
    }
    .article-faq-toggle-text::before { content: "展开"; }
    .article-faq-details[open] .article-faq-toggle-text::before { content: "收起"; }

    .article-faq-body {
        padding-top: 16px;
        margin-top: 14px;
        border-top: 1px solid var(--line);
    }
    .article-faq-list { display: grid; gap: 9px; margin: 0; }
    .article-faq-item {
        padding: 13px 15px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface-2);
    }
    .article-faq-item dt { font-size: 13px; font-weight: 650; color: var(--ink); }
    .article-faq-item dd { margin: 5px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
    .article-faq-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }

    @media (max-width: 720px) {
        .article-faq-summary h2 { font-size: 15px; }
        .article-faq-toggle { padding: 4px 10px; font-size: 11px; }
        .article-ai-summary { padding: 12px 14px; }
        .article-ai-summary p:last-child { font-size: 12.5px; }
    }

        .promo-bar {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #ffa8c2 0%, #ef5d94 52%, #d93d78 100%);
            color: #fff;
            box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 26px -20px rgba(217, 61, 120, .85);
        }

        .promo-bar::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: radial-gradient(rgba(255, 255, 255, .4) .7px, transparent .7px);
            background-size: 16px 16px;
            opacity: .3;
            mask-image: linear-gradient(90deg, transparent, #000 35%, transparent 92%);
            pointer-events: none;
        }

        .promo-bar-inner {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 54px;
            padding-block: 9px;
        }

        .promo-bar-icon {
            display: grid;
            place-items: center;
            width: 30px;
            height: 30px;
            flex: 0 0 auto;
            border-radius: 50%;
            background: rgba(255, 255, 255, .2);
            color: #fff;
            animation: promoHeartbeat 2.6s ease-in-out infinite;
        }

        .promo-bar-icon svg {
            width: 16px;
            height: 16px;
        }

        @keyframes promoHeartbeat {
            0%, 100% { transform: scale(1); }
            12% { transform: scale(1.14); }
            24% { transform: scale(1); }
            36% { transform: scale(1.08); }
            48% { transform: scale(1); }
        }

        .promo-bar-copy {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 3px 10px;
            min-width: 0;
            font-size: 13.5px;
            line-height: 1.5;
        }

        .promo-bar-copy strong {
            font-size: 14.5px;
            font-weight: 700;
            letter-spacing: .02em;
            white-space: nowrap;
        }

        .promo-bar-copy span {
            color: rgba(255, 255, 255, .92);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .promo-bar-btn {
            margin-left: auto;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            min-height: 32px;
            padding: 6px 14px;
            border-radius: 999px;
            background: #fff;
            color: #d63a72;
            font-size: 12.5px;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(120, 20, 60, .22);
            transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
        }

        .promo-bar-btn:hover {
            transform: translateY(-1px);
            background: #fff5f9;
            box-shadow: 0 6px 16px rgba(120, 20, 60, .3);
        }

        .promo-bar-btn svg {
            width: 14px;
            height: 14px;
            transition: transform .18s ease;
        }

        .promo-bar-btn:hover svg {
            transform: translateX(2px);
        }

        @media (max-width: 900px) {
            .promo-bar-copy {
                font-size: 12.5px;
            }

            .promo-bar-copy strong {
                font-size: 13.5px;
            }

            .promo-bar-copy span {
                white-space: normal;
            }
        }

        @media (max-width: 720px) {
            .promo-bar-inner {
                min-height: 50px;
                padding-block: 8px;
                gap: 9px;
            }

            .promo-bar-icon {
                width: 26px;
                height: 26px;
            }

            .promo-bar-icon svg {
                width: 14px;
                height: 14px;
            }

            .promo-bar-copy {
                gap: 2px 8px;
                font-size: 12px;
            }

            .promo-bar-copy strong {
                font-size: 13px;
            }

            .promo-bar-btn {
                min-height: 30px;
                padding: 5px 11px;
                font-size: 12px;
            }
        }

        @media (max-width: 460px) {
            .promo-bar-copy span {
                display: none;
            }

            .promo-bar-btn {
                padding: 5px 10px;
            }
        }
