/* ============================================================
   南林淮共享 · 主样式
   无外部字体 / 图标依赖，所有图形均由 CSS 与内联 SVG 构成
   ============================================================ */

:root {
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --bg: #f5f7f1;
    --bg-soft: #edf3e7;
    --surface: #ffffff;
    --surface-2: #f9fbf6;
    --surface-3: #eff5ea;
    --ink: #10251a;
    --ink-2: #263d2f;
    --muted: #66776b;
    --muted-2: #8a978e;
    --line: #dfe8d8;
    --line-strong: #cbd9c3;
    --brand: #136b45;
    --brand-2: #1c8758;
    --brand-3: #35a571;
    --brand-soft: #e2f2e5;
    --brand-softer: #f0f8ee;
    --btn-bg: #136b45;
    --btn-bg-hover: #0e5838;
    --lime: #d9f3a9;
    --amber: #d97706;
    --red: #dc2626;
    --blue: #2563eb;
    --violet: #7c3aed;
    --white: #ffffff;
    --shadow-xs: 0 2px 8px rgba(16, 37, 26, .04);
    --shadow-sm: 0 8px 24px rgba(16, 37, 26, .06);
    --shadow-md: 0 18px 44px rgba(16, 37, 26, .09);
    --shadow-lg: 0 30px 80px rgba(16, 37, 26, .13);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --header-h: 76px;
    --ease: cubic-bezier(.22, .8, .32, 1);
    --container: 1240px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #08130d;
    --bg-soft: #0c1b13;
    --surface: #0f1f17;
    --surface-2: #12251b;
    --surface-3: #162b1f;
    --ink: #edf7ee;
    --ink-2: #d3e5d7;
    --muted: #9bafa1;
    --muted-2: #7b8f82;
    --line: #21372a;
    --line-strong: #2c4837;
    --brand: #5fc98f;
    --brand-2: #72d9a1;
    --brand-3: #8ae6b2;
    --brand-soft: #143625;
    --brand-softer: #10271b;
    --btn-bg: #1f7a50;
    --btn-bg-hover: #279260;
    --lime: #c9ee94;
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, .2);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .22);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, .32);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .42);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .3s ease, color .3s ease;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

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

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

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

button {
    cursor: pointer;
    border: 0;
    background: none;
}

::selection {
    background: var(--brand);
    color: #fff;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 38%, transparent);
    outline-offset: 3px;
}

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

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

.skip-link:focus {
    top: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1.4;
}

.eyebrow--light {
    color: #9bdcb0;
}

.dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted-2);
    display: inline-block;
}

/* ------------------------------------------------------------
   按钮 / 图标按钮 / 头像
   ------------------------------------------------------------ */

.btn {
    --btn-py: 11px;
    --btn-px: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: var(--btn-py) var(--btn-px);
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

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

.btn svg {
    flex: none;
}

.btn--primary {
    background: var(--btn-bg);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--btn-bg) 22%, transparent);
}

.btn--primary:hover {
    background: var(--btn-bg-hover);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--btn-bg) 28%, transparent);
}

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

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

.btn--light {
    background: #fff;
    color: #0d3b28;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}

.btn--light:hover {
    background: #f2faef;
}

.btn--outline-light {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .45);
}

.btn--danger-ghost {
    background: color-mix(in srgb, var(--red) 7%, var(--surface));
    border-color: color-mix(in srgb, var(--red) 18%, var(--line));
    color: var(--red);
}

.btn--danger-ghost:hover {
    background: color-mix(in srgb, var(--red) 12%, var(--surface));
}

.btn--sm {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 12.5px;
    gap: 6px;
}

.btn--lg {
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14.5px;
}

.btn--block {
    width: 100%;
}

.btn--upload {
    border-radius: 11px;
}

.btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    color: var(--ink-2);
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--brand);
}

.theme-toggle__moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__moon {
    display: block;
}

.avatar {
    --avatar-size: 40px;
    width: var(--avatar-size);
    height: var(--avatar-size);
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .34), transparent 45%),
        var(--avatar-color, #136b45);
    color: #fff;
    font-size: calc(var(--avatar-size) * .42);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    user-select: none;
}

.avatar--xs { --avatar-size: 24px; font-size: 10px; }
.avatar--sm { --avatar-size: 32px; font-size: 12px; }
.avatar--md { --avatar-size: 40px; font-size: 15px; }
.avatar--lg { --avatar-size: 54px; font-size: 21px; }
.avatar--xl { --avatar-size: 104px; font-size: 40px; }

/* ------------------------------------------------------------
   顶部公告条 / 导航
   ------------------------------------------------------------ */

.topbar {
    background: #0b3524;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    letter-spacing: .04em;
    position: relative;
    z-index: 60;
}

.topbar__inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar__note,
.topbar__right {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar__right {
    color: rgba(255, 255, 255, .5);
}

.topbar__pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8ce0a9;
    box-shadow: 0 0 0 4px rgba(140, 224, 169, .12);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(140, 224, 169, .1); }
    50% { box-shadow: 0 0 0 6px rgba(140, 224, 169, .02); }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(16, 37, 26, .05);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
    min-width: 0;
}

.brand__mark {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #e9ffe7;
    background:
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .28), transparent 42%),
        linear-gradient(145deg, #1e8a5b, #0b4a30);
    box-shadow: 0 8px 20px rgba(18, 107, 69, .26), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.brand__leaf {
    transform: rotate(-6deg);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 5px;
}

.brand__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ink);
    white-space: nowrap;
}

.brand__name em {
    font-style: normal;
    color: var(--brand);
    padding-left: 1px;
}

.brand__en {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .24em;
    color: var(--muted-2);
    white-space: nowrap;
}

.brand--footer .brand__name,
.brand--light .brand__name {
    color: #fff;
}

.brand--footer .brand__name em,
.brand--light .brand__name em {
    color: #9bdcb0;
}

.brand--footer .brand__en,
.brand--light .brand__en {
    color: rgba(255, 255, 255, .45);
}

.brand--light .brand__mark,
.brand--footer .brand__mark {
    color: #0d3b28;
    background: linear-gradient(145deg, #d8f3a8, #8fd6a8);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 18px;
}

.nav-link {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s ease, background .2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 1px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link.is-active {
    color: var(--ink);
}

.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-upload {
    margin-left: 4px;
}

.nav-login {
    padding: 8px 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 8px;
}

.nav-login:hover {
    color: var(--ink);
}

.nav-register {
    margin-left: 2px;
}

.user-menu {
    position: relative;
    margin-left: 4px;
}

.user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.user-menu__trigger:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-xs);
}

.user-menu__name {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 700;
}

.user-menu__chevron {
    color: var(--muted-2);
    transition: transform .2s ease;
}

.user-menu.is-open .user-menu__chevron {
    transform: rotate(180deg);
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 264px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
    z-index: 70;
}

.user-menu.is-open .user-menu__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-menu__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 10px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.user-menu__head div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-menu__head strong {
    font-size: 13.5px;
}

.user-menu__head span {
    font-size: 11px;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-menu__list a,
.user-menu__logout button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink-2);
    text-align: left;
    transition: background .18s ease, color .18s ease;
}

.user-menu__list a:hover,
.user-menu__logout button:hover {
    background: var(--brand-softer);
    color: var(--brand);
}

.user-menu__logout {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 6px;
}

.user-menu__logout button {
    color: var(--muted);
}

.mobile-toggle {
    display: none;
}

.mobile-toggle__close {
    display: none;
}

.mobile-toggle.is-open .mobile-toggle__open {
    display: none;
}

.mobile-toggle.is-open .mobile-toggle__close {
    display: block;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 12px 0 24px;
}

.mobile-nav.is-open {
    display: block;
    animation: fadeDown .25s var(--ease);
}

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

.mobile-nav__links {
    display: flex;
    flex-direction: column;
}

.mobile-nav__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 700;
}

.mobile-nav__links a span {
    font-size: 9px;
    letter-spacing: .18em;
    color: var(--muted-2);
    font-weight: 700;
}

.mobile-nav__foot {
    display: flex;
    gap: 10px;
    padding-top: 18px;
}

.mobile-nav__foot .btn {
    flex: 1;
}

/* ------------------------------------------------------------
   搜索弹层 / Flash
   ------------------------------------------------------------ */

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
    padding-top: 12vh;
}

.search-modal[hidden] {
    display: none;
}

.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 18, 11, .58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fadeIn .2s ease;
}

.search-modal__panel {
    position: relative;
    width: min(680px, calc(100% - 36px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .3);
    animation: modalIn .28s var(--ease);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.search-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
}

.search-modal h2 {
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -.04em;
    margin: 10px 0 22px;
}

.search-modal__form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 7px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 15px;
    background: var(--surface-2);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-modal__form:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent);
}

.search-modal__icon {
    color: var(--muted-2);
    flex: none;
}

.search-modal__form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.search-modal__hints {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted-2);
}

.search-modal__hints a {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--brand-softer);
    color: var(--brand);
    font-weight: 600;
}

.search-modal__hints a:hover {
    background: var(--brand-soft);
}

.search-modal__tip {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

kbd {
    font-family: var(--font-sans);
    font-size: 10px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 5px;
    background: var(--surface-2);
}

.flash-stack {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100% - 32px));
}

.flash-stack--inline {
    position: static;
    width: 100%;
    margin-bottom: 18px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    animation: flashIn .35s var(--ease);
}

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

.flash.is-leaving {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .25s ease, transform .25s ease;
}

.flash__icon {
    flex: none;
    margin-top: 1px;
}

.flash--success .flash__icon { color: var(--brand); }
.flash--error .flash__icon { color: var(--red); }
.flash--info .flash__icon { color: var(--blue); }

.flash__text {
    flex: 1;
    line-height: 1.55;
}

.flash__close {
    flex: none;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--muted-2);
    margin-top: -1px;
}

.flash__close:hover {
    background: var(--surface-3);
    color: var(--ink);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
    position: relative;
    padding: 68px 0 56px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 60% at 76% 22%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
        radial-gradient(ellipse 46% 50% at 12% 8%, color-mix(in srgb, #d9f3a9 25%, transparent), transparent 65%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 0%, transparent 78%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.hero__orb--one {
    width: 440px;
    height: 440px;
    right: -120px;
    top: 60px;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 68%);
}

.hero__orb--two {
    width: 300px;
    height: 300px;
    left: -140px;
    bottom: -80px;
    background: radial-gradient(circle, color-mix(in srgb, #f0b429 12%, transparent), transparent 68%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    align-items: center;
    gap: 36px;
}

.hero__copy {
    animation: heroCopy .7s var(--ease) both;
}

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

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px 7px 8px;
    background: color-mix(in srgb, var(--surface) 74%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .16em;
    box-shadow: var(--shadow-xs);
}

.hero__eyebrow-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-soft);
    position: relative;
}

.hero__eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.hero h1 {
    margin: 24px 0 22px;
    font-size: clamp(44px, 5.15vw, 74px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.07;
}

.hero__mark {
    position: relative;
    color: var(--brand);
    display: inline-block;
    white-space: nowrap;
}

.hero__mark svg {
    position: absolute;
    left: 2%;
    right: 0;
    bottom: -7px;
    width: 96%;
    height: 13px;
    color: color-mix(in srgb, var(--brand) 40%, transparent);
    overflow: visible;
}

.hero__lead {
    max-width: 540px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.9;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 7px 7px 7px 17px;
    max-width: 600px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 16px 44px rgba(16, 37, 26, .09);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hero-search:focus-within {
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
    box-shadow: 0 18px 50px rgba(16, 37, 26, .12), 0 0 0 4px color-mix(in srgb, var(--brand) 8%, transparent);
}

.hero-search__icon {
    color: var(--muted-2);
    flex: none;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

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

.hero-search .btn {
    min-height: 46px;
    border-radius: 11px;
    padding-inline: 20px;
}

.hero__hot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
    font-size: 11px;
    color: var(--muted-2);
}

.hero__hot > span {
    margin-right: 2px;
}

.hero__hot a {
    padding: 4px 9px;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.hero__hot a:hover {
    color: var(--brand);
    border-color: var(--line);
    background: var(--surface);
}

.hero__people {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 32px;
}

.avatar-stack {
    display: flex;
    padding-left: 8px;
}

.avatar-stack .avatar {
    margin-left: -8px;
    border: 2px solid var(--bg);
}

.hero__people p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.hero__people strong {
    color: var(--ink);
    font-size: 14px;
}

.hero__people p span {
    display: block;
    color: var(--muted-2);
    font-size: 11px;
}

.hero__visual {
    position: relative;
    height: 500px;
    animation: heroVisual .8s .1s var(--ease) both;
}

@keyframes heroVisual {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__visual-glow {
    position: absolute;
    inset: 8% 0 4% 6%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 44% 40%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 65%),
        radial-gradient(circle at 70% 70%, rgba(217, 243, 169, .3), transparent 55%);
    filter: blur(30px);
}

.preview-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 21px;
    box-shadow: 0 26px 70px rgba(16, 37, 26, .16), 0 2px 6px rgba(16, 37, 26, .04);
}

.preview-card--main {
    top: 32px;
    right: 6px;
    width: min(390px, 92%);
    padding: 20px;
    transform: rotate(-2.5deg);
    z-index: 3;
    transition: transform .5s var(--ease);
}

.hero__visual:hover .preview-card--main {
    transform: rotate(-1deg) translateY(-5px);
}

.preview-card__top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.file-tile {
    width: 45px;
    height: 52px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px 13px 9px 9px;
    background: color-mix(in srgb, var(--tile, #136b45) 12%, var(--surface));
    color: var(--tile, #136b45);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    border: 1px solid color-mix(in srgb, var(--tile, #136b45) 20%, var(--line));
    position: relative;
}

.file-tile::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 0 11px 0 4px;
    background: color-mix(in srgb, var(--tile, #136b45) 35%, var(--surface));
}

.preview-card__title {
    flex: 1;
    min-width: 0;
}

.preview-card__title strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.preview-card__dots {
    display: flex;
    gap: 3px;
    align-self: flex-start;
    padding-top: 4px;
}

.preview-card__dots i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted-2);
}

.preview-card__body {
    margin-top: 18px;
    padding: 16px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.preview-card__line {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    margin-bottom: 8px;
}

.preview-card__line.is-wide { width: 88%; }
.preview-card__line.is-mid { width: 54%; }

.preview-card__toc {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.preview-card__toc span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--muted);
}

.preview-card__toc b {
    color: var(--brand);
    font-size: 8px;
    letter-spacing: .06em;
}

.preview-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.preview-card__author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    color: var(--muted);
}

.preview-card__stats {
    display: flex;
    gap: 12px;
    font-size: 10.5px;
    color: var(--muted);
}

.preview-card__stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.preview-card__overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 5;
}

.preview-card--code {
    left: 0;
    bottom: 22px;
    width: min(305px, 78%);
    transform: rotate(2.4deg);
    background: #0d2117;
    border-color: rgba(255, 255, 255, .1);
    color: #d7ead9;
    z-index: 4;
    overflow: hidden;
    transition: transform .5s var(--ease);
}

.hero__visual:hover .preview-card--code {
    transform: rotate(1deg) translateY(4px);
}

.code-card__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 8.5px;
    color: rgba(255, 255, 255, .4);
    letter-spacing: .04em;
}

.code-dots {
    display: flex;
    gap: 4px;
}

.code-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
}

.code-dots i:first-child { background: #f87171; }
.code-dots i:nth-child(2) { background: #fbbf24; }
.code-dots i:nth-child(3) { background: #4ade80; }

.code-card__badge {
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(74, 222, 128, .12);
    color: #86efac;
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: .1em;
}

.preview-card--code pre {
    margin: 0;
    padding: 15px 15px 10px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 9.5px;
    line-height: 1.75;
    overflow: hidden;
    color: #c3dac8;
}

.preview-card--code .c-key { color: #93c5fd; }
.preview-card--code .c-str { color: #a7f3c4; }

.code-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 8.5px;
    color: rgba(255, 255, 255, .45);
}

.code-card__foot span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.code-card__live {
    color: #86efac;
}

.code-card__live i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .12);
}

.floating-pill {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px 9px 9px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 9.5px;
    color: var(--muted);
    animation: float 5s ease-in-out infinite;
}

.floating-pill strong {
    display: block;
    color: var(--ink);
    font-size: 10.5px;
    line-height: 1.3;
}

.floating-pill__icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
}

.floating-pill--upload {
    top: 6px;
    left: 8%;
}

.floating-pill--safe {
    right: 0;
    bottom: 6px;
    color: var(--brand);
    font-weight: 600;
    animation-delay: -2.2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.hero__stamp {
    position: absolute;
    right: 18px;
    bottom: 2px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent);
    border-radius: 50%;
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    line-height: 1.1;
    transform: rotate(10deg);
    opacity: .7;
}

.hero__stamp small {
    font-size: 5.5px;
    letter-spacing: .16em;
}

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 46px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 24px;
    position: relative;
}

.hero-stat + .hero-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24%;
    bottom: 24%;
    width: 1px;
    background: var(--line);
}

.hero-stat__icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--brand-softer);
    color: var(--brand);
}

.hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
}

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

/* ------------------------------------------------------------
   通用区块
   ------------------------------------------------------------ */

.section {
    padding: 78px 0;
    position: relative;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-head--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 42px;
}

.section-head--compact {
    margin-bottom: 22px;
    align-items: center;
}

.section-head__copy .eyebrow {
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.18;
}

.section-head p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 13.5px;
}

.section-head--center p {
    margin-top: 12px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 700;
    transition: color .2s ease, border-color .2s ease, gap .2s ease;
}

.link-arrow span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    transition: transform .2s ease;
}

.link-arrow:hover {
    color: var(--brand);
    border-color: var(--brand);
    gap: 11px;
}

.link-arrow:hover span {
    transform: translateX(2px);
}

.count-pill {
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 10.5px;
    font-weight: 800;
    vertical-align: 3px;
    letter-spacing: 0;
}

/* ------------------------------------------------------------
   分类卡片
   ------------------------------------------------------------ */

.section--categories {
    padding-top: 86px;
}

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

.cat-card {
    --cat: #136b45;
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 96px;
    padding: 19px;
    border-radius: 17px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}

.cat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -40px;
    bottom: -45px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cat) 8%, transparent);
    transition: transform .35s var(--ease);
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--cat) 25%, var(--line));
    box-shadow: var(--shadow-md);
}

.cat-card:hover::after {
    transform: scale(1.4);
}

.cat-card__icon {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--cat) 9%, var(--surface));
    color: var(--cat);
    border: 1px solid color-mix(in srgb, var(--cat) 13%, transparent);
}

.cat-card__body {
    flex: 1;
    min-width: 0;
}

.cat-card__body strong {
    display: block;
    font-size: 14.5px;
    letter-spacing: -.02em;
}

.cat-card__body small {
    display: block;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cat-card__count {
    flex: none;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 800;
    color: var(--cat);
    letter-spacing: -.03em;
}

.cat-card__count small {
    font-size: 8px;
    font-weight: 600;
    color: var(--muted-2);
    margin-left: 2px;
}

.cat-card__arrow {
    position: absolute;
    right: 17px;
    bottom: 13px;
    color: var(--muted-2);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.cat-card:hover .cat-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.cat-card--feature {
    grid-column: span 2;
    background:
        radial-gradient(circle at 88% 10%, rgba(217, 243, 169, .18), transparent 45%),
        linear-gradient(135deg, #125d3b, #0a3d27);
    border-color: transparent;
    color: #fff;
}

.cat-card--feature .cat-card__icon {
    background: rgba(255, 255, 255, .1);
    color: #d9f3a9;
    border-color: rgba(255, 255, 255, .15);
}

.cat-card--feature .cat-card__body small,
.cat-card--feature .cat-card__count small {
    color: rgba(255, 255, 255, .52);
}

.cat-card--feature .cat-card__count {
    color: #d9f3a9;
}

.cat-card--feature .cat-card__body strong {
    font-size: 17px;
}

.cat-card--feature::after {
    width: 190px;
    height: 190px;
    right: -40px;
    bottom: -100px;
    background: rgba(217, 243, 169, .08);
}

.cat-card--feature .cat-card__arrow {
    color: rgba(255, 255, 255, .6);
}

/* ------------------------------------------------------------
   资源卡片
   ------------------------------------------------------------ */

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

.resource-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.resource-grid--featured .res-card__cover {
    height: 230px;
}

.resource-grid--featured .res-card__title {
    font-size: 20px;
}

.res-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}

.res-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tone) 22%, var(--line));
    box-shadow: var(--shadow-md);
}

.res-card__cover {
    position: relative;
    display: block;
    height: 164px;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .19), transparent 42%),
        linear-gradient(135deg, color-mix(in srgb, var(--tone) 92%, #06160d), color-mix(in srgb, var(--tone) 55%, #07150d));
}

.res-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.res-card:hover .res-card__cover img {
    transform: scale(1.04);
}

.res-card__cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .02) 40%, rgba(0, 0, 0, .3));
}

.cover-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .86);
}

.cover-art__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.cover-art__icon {
    position: relative;
    z-index: 1;
    opacity: .82;
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .16));
}

.cover-art__ext {
    position: absolute;
    right: 15px;
    bottom: 10px;
    z-index: 1;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.05em;
    color: rgba(255, 255, 255, .12);
    line-height: 1;
}

.cover-art__ring {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .13);
    right: -35px;
    top: -45px;
}

.cover-art__ring::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .1);
}

.kind-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .9);
    color: #0d3b28;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .02em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    line-height: 1;
}

.res-card__cover > .kind-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.kind-badge--app {
    background: #0e2b1d;
    color: #a7f3c4;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.res-card__cover > .status-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.status-pill.is-approved {
    background: rgba(220, 252, 231, .92);
    color: #166534;
}

.status-pill.is-pending {
    background: rgba(254, 243, 199, .94);
    color: #92400e;
}

.status-pill.is-rejected {
    background: rgba(254, 226, 226, .94);
    color: #991b1b;
}

[data-theme="dark"] .status-pill.is-approved { background: rgba(20, 83, 45, .9); color: #86efac; }
[data-theme="dark"] .status-pill.is-pending { background: rgba(120, 53, 15, .9); color: #fcd34d; }
[data-theme="dark"] .status-pill.is-rejected { background: rgba(127, 29, 29, .9); color: #fca5a5; }

.card-unfav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
}

.card-unfav button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #0d3b28;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.card-unfav button:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.card-manage {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #0d3b28;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.card-manage:hover {
    background: #fff;
    color: #136b45;
}

.res-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 17px;
}

.res-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 9.5px;
    color: var(--muted-2);
}

.res-card__cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--muted);
}

.res-card__cat i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.res-card__title {
    margin-top: 9px;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.res-card__title a {
    background-image: linear-gradient(var(--brand), var(--brand));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .25s ease, color .2s ease;
}

.res-card:hover .res-card__title a {
    color: var(--brand);
}

.res-card__desc {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

.res-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.res-card__tags a {
    font-size: 9.5px;
    color: var(--muted-2);
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.res-card__tags a:hover {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.res-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.res-card__author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 10px;
    color: var(--muted);
}

.res-card__author span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
}

.res-card__stats {
    display: flex;
    gap: 10px;
    flex: none;
    color: var(--muted-2);
    font-size: 10px;
}

.res-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ------------------------------------------------------------
   空状态
   ------------------------------------------------------------ */

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

.empty-state--wide {
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 5%, transparent), transparent 55%),
        var(--surface);
}

.empty-state__art {
    position: relative;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 24px;
    background: var(--brand-softer);
    color: var(--brand);
    transform: rotate(-4deg);
}

.empty-state__sheet {
    display: grid;
    place-items: center;
}

.empty-state__spark {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    border: 3px solid var(--surface);
}

.empty-state h3 {
    font-size: 21px;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 430px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.empty-state__actions {
    display: flex;
    gap: 10px;
}

/* ------------------------------------------------------------
   小程序深绿面板
   ------------------------------------------------------------ */

.section--miniapp {
    padding-top: 20px;
}

.mini-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    align-items: center;
    gap: 50px;
    padding: 60px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 88% 12%, rgba(217, 243, 169, .16), transparent 45%),
        linear-gradient(135deg, #0e4a30, #072c1d 75%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(9, 44, 29, .25);
}

.mini-panel__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -120px;
    top: -160px;
    background: radial-gradient(circle, rgba(217, 243, 169, .13), transparent 65%);
}

.mini-panel__copy {
    position: relative;
    z-index: 2;
}

.mini-panel h2 {
    margin: 16px 0 18px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.22;
    letter-spacing: -.045em;
    color: #fff;
}

.mini-panel__copy > p {
    max-width: 500px;
    color: rgba(255, 255, 255, .6);
    font-size: 13.5px;
    line-height: 1.9;
}

.mini-panel__stats {
    display: flex;
    gap: 38px;
    margin-top: 28px;
}

.mini-panel__stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-panel__stats strong {
    font-size: 25px;
    font-weight: 800;
    color: #d9f3a9;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.mini-panel__stats span {
    font-size: 10px;
    color: rgba(255, 255, 255, .4);
}

.mini-panel__actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.mini-panel__visual {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.terminal-window {
    position: relative;
    z-index: 2;
    border-radius: 17px;
    background: #08160f;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
    transform: rotate(-1.4deg);
    transition: transform .45s var(--ease);
}

.mini-panel:hover .terminal-window {
    transform: rotate(0) translateY(-4px);
}

.terminal-window__bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    color: rgba(255, 255, 255, .35);
}

.terminal-window__body {
    padding: 20px 22px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.9;
    color: #b9d3c0;
}

.terminal-window__body p {
    margin: 0;
}

.t-muted { color: rgba(255, 255, 255, .3); }
.t-green { color: #7ee2a3; }
.t-quote { color: #d9f3a9; line-height: 1.75; margin: 4px 0 !important; }

.t-cursor {
    margin-top: 8px !important;
}

.t-caret {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #7ee2a3;
    vertical-align: -1px;
    animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
    50% { opacity: 0; }
}

.terminal-window__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 15px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 8.5px;
    color: rgba(255, 255, 255, .38);
}

.terminal-window__foot span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.mini-orb--one {
    width: 180px;
    height: 180px;
    right: -50px;
    top: -30px;
    background: radial-gradient(circle, rgba(217, 243, 169, .16), transparent 70%);
}

.mini-orb--two {
    width: 120px;
    height: 120px;
    left: -40px;
    bottom: -30px;
    border: 1px solid rgba(217, 243, 169, .12);
}

/* ------------------------------------------------------------
   三步 / 社区横幅
   ------------------------------------------------------------ */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-card__num {
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.06em;
    color: color-mix(in srgb, var(--ink) 6%, transparent);
    line-height: 1;
}

.step-card__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 17px;
    letter-spacing: -.02em;
    margin-bottom: 7px;
}

.step-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    max-width: 300px;
}

.community-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-top: 48px;
    padding: 40px 44px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 45%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.community-band__copy h2 {
    margin: 10px 0 10px;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.045em;
    line-height: 1.2;
}

.community-band__copy p {
    color: var(--muted);
    font-size: 12.5px;
}

.community-band__actions {
    display: flex;
    gap: 10px;
    flex: none;
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) rotate(-90deg);
    transition: all .25s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(-90deg);
}

.to-top:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */

.site-footer {
    margin-top: 30px;
    background:
        radial-gradient(circle at 82% 0%, rgba(217, 243, 169, .07), transparent 42%),
        #0a2e1f;
    color: rgba(255, 255, 255, .62);
    padding: 62px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .7fr 1.1fr;
    gap: 50px;
    padding-bottom: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.footer-brand p {
    max-width: 310px;
    margin-top: 16px;
    font-size: 11.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .48);
}

.footer-badges {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    font-size: 9px;
    color: rgba(255, 255, 255, .5);
}

.footer-col h3 {
    color: rgba(255, 255, 255, .88);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .48);
    transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover {
    color: #d9f3a9;
    transform: translateX(3px);
}

.footer-cta .eyebrow {
    color: #9bdcb0;
    margin-bottom: 12px;
}

.footer-cta h3 {
    color: #fff;
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}

.footer-cta .btn {
    background: #d9f3a9;
    color: #0d3b28;
}

.footer-cta .btn:hover {
    background: #e7fbc1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    font-size: 9.5px;
    color: rgba(255, 255, 255, .3);
}

.footer-note {
    max-width: 620px;
    text-align: right;
}

/* ------------------------------------------------------------
   错误页
   ------------------------------------------------------------ */

.error-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%),
        var(--bg);
    padding: 24px;
}

.error-page {
    text-align: center;
    max-width: 480px;
}

.error-leaf {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: var(--brand-soft);
    color: var(--brand);
}

.error-code {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--brand);
    margin-bottom: 8px;
}

.error-page h1 {
    font-size: 38px;
    letter-spacing: -.04em;
    margin-bottom: 10px;
}

.error-page p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
}

/* ------------------------------------------------------------
   内页页头 / 面包屑 / 内联搜索
   ------------------------------------------------------------ */

.page-hero {
    position: relative;
    padding: 38px 0 42px;
    background:
        radial-gradient(ellipse 55% 70% at 85% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 65%),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: 6%;
    top: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--brand) 14%, transparent);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 10.5px;
    color: var(--muted-2);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--muted);
    transition: color .2s ease;
}

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

.breadcrumb em {
    font-style: normal;
    color: var(--ink-2);
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb--light {
    color: rgba(255, 255, 255, .4);
}

.breadcrumb--light a {
    color: rgba(255, 255, 255, .62);
}

.breadcrumb--light a:hover {
    color: #d9f3a9;
}

.breadcrumb--light em {
    color: rgba(255, 255, 255, .9);
}

.page-hero__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.page-hero__copy .eyebrow {
    margin-bottom: 11px;
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.14;
}

.page-hero__copy > p {
    max-width: 660px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.page-hero__copy > p strong {
    color: var(--brand);
}

.inline-search {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    width: 340px;
    padding: 6px 6px 6px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow-xs);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.inline-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 9%, transparent);
}

.inline-search > span {
    color: var(--muted-2);
    flex: none;
}

.inline-search input {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12.5px;
}

/* ------------------------------------------------------------
   资源广场
   ------------------------------------------------------------ */

.section--browse {
    padding-top: 36px;
}

.browse-layout {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.browse-side {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.filter-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 12px 12px;
}

.filter-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px 11px;
}

.filter-card__head h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.filter-card__head h3 svg {
    color: var(--brand);
}

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

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 8px;
    font-size: 11.5px;
    color: var(--muted);
    transition: background .18s ease, color .18s ease;
}

.filter-item > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.filter-item b {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--muted-2);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 1px 7px;
}

.filter-item:hover {
    background: var(--brand-softer);
    color: var(--brand);
}

.filter-item.is-active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
}

.filter-item.is-active b {
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
}

.filter-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
}

.side-upload {
    position: relative;
    padding: 22px 18px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 90% 0%, rgba(217, 243, 169, .16), transparent 55%),
        linear-gradient(140deg, #115c3a, #0a3523);
    color: #fff;
    overflow: hidden;
}

.side-upload__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #d9f3a9;
    margin-bottom: 14px;
}

.side-upload h3 {
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -.025em;
}

.side-upload p {
    margin: 8px 0 16px;
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    line-height: 1.7;
}

.side-upload .btn {
    background: #d9f3a9;
    color: #0d3b28;
}

.side-upload .btn:hover {
    background: #e7fbc1;
}

.browse-main {
    min-width: 0;
}

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

.browse-result {
    font-size: 12px;
    color: var(--muted);
}

.browse-result strong {
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -.03em;
}

.browse-result span {
    color: var(--muted-2);
}

.sort-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.sort-tabs a {
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 10.5px;
    color: var(--muted);
    transition: all .18s ease;
}

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

.sort-tabs a.is-active {
    background: var(--surface);
    color: var(--brand);
    font-weight: 700;
    box-shadow: var(--shadow-xs);
}

.resource-grid--browse {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.resource-grid--browse .res-card__cover {
    height: 160px;
}

.resource-grid--profile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 34px;
}

.pagination__btn {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    transition: all .18s ease;
}

.pagination__btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.pagination__btn.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pagination__btn.is-disabled {
    opacity: .38;
    pointer-events: none;
}

.pagination__dots {
    padding: 0 4px;
    color: var(--muted-2);
    font-size: 12px;
}

/* ------------------------------------------------------------
   资源详情
   ------------------------------------------------------------ */

.resource-hero {
    position: relative;
    padding: 30px 0 38px;
    background:
        radial-gradient(ellipse 60% 100% at 82% 0%, color-mix(in srgb, var(--tone, var(--brand)) 9%, transparent), transparent 68%),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.resource-hero__wash {
    position: absolute;
    width: 380px;
    height: 380px;
    right: -100px;
    top: -180px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tone, var(--brand)) 8%, transparent);
    filter: blur(10px);
}

.resource-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.resource-head__main {
    min-width: 0;
    max-width: 860px;
}

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

.category-chip,
.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
}

.category-chip:hover {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.featured-label {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

[data-theme="dark"] .featured-label {
    background: #3b2a0a;
    border-color: #5c4212;
    color: #fcd34d;
}

.resource-head h1 {
    font-size: clamp(30px, 4.1vw, 48px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.resource-head__lead {
    max-width: 760px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.resource-head__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 19px;
    color: var(--muted-2);
    font-size: 10px;
}

.resource-head__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.author-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 700;
}

.author-inline em {
    font-style: normal;
    font-size: 8px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 2px 5px;
    border-radius: 4px;
}

.resource-head__manage {
    display: flex;
    gap: 7px;
    flex: none;
    padding-bottom: 4px;
}

.notice {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border-radius: 11px;
    margin-bottom: 18px;
    font-size: 11.5px;
    line-height: 1.6;
}

.notice > span {
    flex: 1;
}

.notice a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.notice--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

[data-theme="dark"] .notice--warning { background: #2b2108; border-color: #4a3810; color: #fcd34d; }
[data-theme="dark"] .notice--danger { background: #2c1212; border-color: #4c1d1d; color: #fca5a5; }

.section--resource {
    padding-top: 36px;
}

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

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.detail-side {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}

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

.surface__head--compact {
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.surface__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.surface__head h2 svg {
    color: var(--brand);
}

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

.rich-text {
    font-size: 13px;
    line-height: 2;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.rich-text br {
    content: "";
    display: block;
    margin-bottom: 4px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.detail-tags a {
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--brand-softer);
    border: 1px solid color-mix(in srgb, var(--brand) 10%, var(--line));
    color: var(--brand);
    font-size: 10px;
    font-weight: 600;
}

.detail-tags a:hover {
    background: var(--brand-soft);
}

/* 下载面板 */
.download-panel {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 86% 4%, color-mix(in srgb, var(--tone, #136b45) 45%, transparent), transparent 50%),
        linear-gradient(145deg, #0f4c31, #082b1c);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 44, 29, .2);
}

.download-panel__glow {
    position: absolute;
    width: 160px;
    height: 160px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: rgba(217, 243, 169, .12);
    filter: blur(6px);
}

.download-panel__preview {
    position: relative;
    height: 138px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
        rgba(255, 255, 255, .04);
    background-size: 24px 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
}

.download-panel__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-panel__ext {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -.06em;
    color: rgba(255, 255, 255, .12);
}

.download-panel__icon {
    position: absolute;
    color: rgba(255, 255, 255, .72);
}

.download-panel__label {
    display: block;
    margin: 18px 0 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .38);
}

.download-panel h2 {
    font-size: 20px;
    letter-spacing: -.03em;
    line-height: 1.35;
    margin-bottom: 15px;
    color: #fff;
}

.btn--download {
    width: 100%;
    min-height: 48px;
    background: #d9f3a9;
    color: #0b3522;
    border-radius: 11px;
    font-size: 13.5px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.btn--download:hover {
    background: #e7fbc1;
}

.btn--download.is-disabled {
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .55);
}

.download-panel__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 9px;
    font-size: 10px;
    color: rgba(255, 255, 255, .56);
}

.download-panel__secondary:hover {
    color: #d9f3a9;
}

.download-panel__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.download-panel__stats span {
    text-align: center;
    font-size: 9px;
    color: rgba(255, 255, 255, .4);
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.download-panel__stats span:first-child {
    border-left: 0;
}

.download-panel__stats b {
    display: block;
    margin-bottom: 1px;
    font-size: 15px;
    color: #fff;
    letter-spacing: -.03em;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.toggle-form {
    display: flex;
}

.toggle-btn {
    width: 100%;
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .72);
    font-size: 10.5px;
    font-weight: 600;
    transition: all .2s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.toggle-btn.is-active {
    background: rgba(217, 243, 169, .15);
    border-color: rgba(217, 243, 169, .32);
    color: #d9f3a9;
}

.toggle-btn.is-active svg {
    fill: currentColor;
}

/* 文件信息 */
.file-meta {
    display: flex;
    flex-direction: column;
}

.file-meta > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 10.5px;
}

.file-meta > div:last-child {
    border-bottom: 0;
}

.file-meta dt {
    flex: none;
    color: var(--muted-2);
}

.file-meta dd {
    margin: 0;
    text-align: right;
    color: var(--ink-2);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
}

.file-card__tip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--brand-softer);
    color: var(--brand);
    font-size: 9.5px;
    line-height: 1.6;
}

.file-card__tip svg {
    flex: none;
    margin-top: 1px;
}

.author-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.author-card__top .eyebrow {
    font-size: 8px;
    margin-bottom: 3px;
}

.author-card__top h3 {
    font-size: 16px;
    letter-spacing: -.02em;
}

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

.author-card__bio {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.75;
    margin-bottom: 15px;
}

.share-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.share-card > span {
    width: 33px;
    height: 33px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
}

.share-card > div {
    flex: 1;
    min-width: 0;
}

.share-card strong {
    display: block;
    font-size: 11px;
}

.share-card p {
    color: var(--muted-2);
    font-size: 9px;
}

.share-card .btn {
    flex: none;
}

/* 留言 */
.comment-form {
    padding: 14px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    margin-bottom: 22px;
}

.comment-form__top {
    display: flex;
    gap: 10px;
}

.comment-form textarea {
    flex: 1;
    min-width: 0;
    min-height: 74px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 11.5px;
    line-height: 1.7;
    resize: vertical;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.comment-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 8%, transparent);
}

.comment-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    padding-left: 42px;
}

.comment-form__count {
    font-size: 9px;
    color: var(--muted-2);
}

.comment-login {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    margin-bottom: 22px;
}

.comment-login > span {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
}

.comment-login p {
    flex: 1;
    color: var(--muted);
    font-size: 10.5px;
}

.comment-list {
    display: flex;
    flex-direction: column;
}

.comment {
    display: flex;
    gap: 11px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.comment__body {
    flex: 1;
    min-width: 0;
}

.comment__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.comment__head a {
    font-size: 11px;
    font-weight: 700;
}

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

.comment__head time {
    font-size: 9px;
    color: var(--muted-2);
    margin-left: auto;
}

.comment__head .mini-role {
    margin-left: 0;
}

.comment__body p {
    color: var(--ink-2);
    font-size: 11.5px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.comment__delete button {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: var(--muted-2);
}

.comment__delete button:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 10px 12px;
    color: var(--muted-2);
    text-align: center;
}

.comments-empty p {
    font-size: 10.5px;
}

.mini-role {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 7.5px;
    font-weight: 700;
    vertical-align: 1px;
}

.section--related {
    padding-top: 20px;
    padding-bottom: 30px;
}

/* ------------------------------------------------------------
   发布 / 编辑表单
   ------------------------------------------------------------ */

.page-hero--upload {
    padding-bottom: 34px;
}

.page-hero--upload h1 {
    font-size: clamp(30px, 3.8vw, 45px);
}

.publish-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding-bottom: 4px;
}

.publish-step {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 78px;
}

.publish-step span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 800;
    margin-bottom: 5px;
}

.publish-step strong {
    font-size: 10px;
    color: var(--muted);
}

.publish-step small {
    font-size: 8px;
    color: var(--muted-2);
}

.publish-step.is-active span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.publish-step.is-active strong {
    color: var(--ink);
}

.publish-steps > i {
    width: 18px;
    height: 1px;
    background: var(--line-strong);
    margin-top: -20px;
}

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

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

.publish-main {
    min-width: 0;
}

.publish-side {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.resource-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden;
}

.form-card__head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.form-step {
    width: 29px;
    height: 29px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .02em;
}

.form-card__head h2 {
    font-size: 16px;
    letter-spacing: -.025em;
    line-height: 1.4;
}

.form-card__head p {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.form-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-2);
}

.form-label b,
.field__label b {
    color: var(--red);
    font-weight: 700;
}

.optional {
    font-style: normal;
    font-weight: 500;
    color: var(--muted-2);
    font-size: 9px;
    margin-left: 3px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid .field--grow {
    grid-column: span 1;
}

.kind-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kind-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    background: var(--surface);
}

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

.kind-option:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.kind-option.is-selected {
    border-color: var(--brand);
    background: var(--brand-softer);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 7%, transparent);
}

.kind-option__icon {
    width: 43px;
    height: 43px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--surface-3);
    color: var(--muted);
}

.kind-option.is-selected .kind-option__icon {
    background: var(--brand-soft);
    color: var(--brand);
}

.kind-option__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.kind-option__text strong {
    font-size: 12px;
}

.kind-option__text small {
    font-size: 9px;
    color: var(--muted-2);
    line-height: 1.5;
}

.kind-option__check {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    opacity: 0;
    transform: scale(.6);
    transition: all .2s ease;
}

.kind-option.is-selected .kind-option__check {
    opacity: 1;
    transform: scale(1);
}

/* 表单控件 */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-2);
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field__control:focus-within {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 8%, transparent);
}

.field__control--textarea {
    align-items: stretch;
    padding: 0;
}

.field__icon {
    flex: none;
    color: var(--muted-2);
}

.field__control input,
.field__control select,
.field__control textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12px;
    color: var(--ink);
}

.field__control input {
    height: 42px;
}

.field__control select {
    height: 42px;
    cursor: pointer;
    appearance: none;
    padding-right: 18px;
}

.field__control:has(select)::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    pointer-events: none;
}

.field__control textarea {
    padding: 11px 12px;
    line-height: 1.7;
    resize: vertical;
    min-height: 96px;
}

.field__control input::placeholder,
.field__control textarea::placeholder {
    color: var(--muted-2);
    font-size: 11px;
}

.field__hint {
    font-size: 9px;
    color: var(--muted-2);
    line-height: 1.6;
}

.field__hint--between {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.field__hint b {
    color: var(--muted);
}

.field__toggle {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--muted-2);
}

.field__toggle:hover {
    background: var(--surface-3);
    color: var(--ink);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 文件拖放 */
.dropzone {
    position: relative;
    display: block;
    min-height: 154px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 14px;
    background:
        linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
        var(--surface);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
    overflow: hidden;
}

.dropzone:hover,
.dropzone.is-dragover {
    border-color: var(--brand);
    background: var(--brand-softer);
}

.dropzone.is-dragover {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent);
}

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dropzone__empty {
    min-height: 151px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 18px;
}

.dropzone__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 7px;
}

.dropzone__empty strong {
    font-size: 12.5px;
}

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

.dropzone__limit {
    margin-top: 5px;
    font-size: 8.5px;
    color: var(--muted-2);
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--surface-3);
}

.dropzone__selected {
    min-height: 151px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
}

.dropzone__file-icon {
    width: 50px;
    height: 50px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
}

.dropzone__file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
 }

.dropzone__file-info strong {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.dropzone__change {
    flex: none;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--brand);
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--brand-soft);
}

.existing-file {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--brand-softer);
    border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--line));
}

.existing-file__icon {
    width: 37px;
    height: 37px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
}

.existing-file > div {
    flex: 1;
    min-width: 0;
}

.existing-file strong {
    display: block;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.existing-file__ok {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand) !important;
    font-size: 9px !important;
    font-weight: 700;
    flex: none;
}

[data-program-fields] {
    display: none;
}

[data-program-fields].is-visible {
    display: grid;
}

/* 封面上传 */
.cover-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cover-field__row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cover-upload {
    position: relative;
    width: 150px;
    height: 94px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1.5px dashed var(--line-strong);
    border-radius: 11px;
    background: var(--surface-2);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s ease;
}

.cover-upload:hover {
    border-color: var(--brand);
}

.cover-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cover-upload__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 9px;
}

.cover-upload img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-field__text {
    min-width: 0;
}

.cover-field__text strong {
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
}

.cover-field__text p {
    color: var(--muted-2);
    font-size: 9.5px;
    line-height: 1.65;
    max-width: 380px;
}

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    font-size: 9.5px;
    color: var(--muted);
    cursor: pointer;
}

.check-inline input {
    accent-color: var(--brand);
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.form-submit__note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--muted-2);
    font-size: 9.5px;
    line-height: 1.6;
    max-width: 480px;
}

.form-submit__note svg {
    flex: none;
    color: var(--brand);
    margin-top: 1px;
}

.side-note__text {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.8;
    margin-bottom: 13px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.check-list li svg {
    flex: none;
    color: var(--brand);
    margin-top: 1px;
}

.safety-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px dashed var(--line);
    font-size: 9.5px;
}

.safety-row span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
}

.safety-row strong {
    color: var(--ink-2);
    font-size: 9.5px;
}

.side-quote {
    position: relative;
    padding: 22px 20px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 90% 0%, rgba(217, 243, 169, .14), transparent 50%),
        #0e4029;
    color: #fff;
    overflow: hidden;
}

.side-quote__mark {
    position: absolute;
    top: 4px;
    right: 16px;
    font-family: Georgia, serif;
    font-size: 54px;
    line-height: 1;
    color: rgba(217, 243, 169, .18);
}

.side-quote p {
    position: relative;
    font-size: 11.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 12px;
}

.side-quote__by {
    font-size: 9px;
    color: rgba(255, 255, 255, .4);
}

.side-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    border-radius: 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
}

.side-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.side-link svg:last-child {
    margin-left: auto;
}

.danger-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--red) 18%, var(--line));
    background: color-mix(in srgb, var(--red) 4%, var(--surface));
}

.danger-card h3 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--ink-2);
}

.danger-card h3 svg {
    color: var(--red);
}

.danger-card p {
    margin-top: 3px;
    font-size: 9px;
    color: var(--muted-2);
    line-height: 1.6;
}

.edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding-bottom: 4px;
}

.status-detail {
    margin-bottom: 12px;
}

.status-detail p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.7;
}

/* 状态标签在浅色背景下 */
.surface .status-pill,
.status-detail .status-pill {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* ------------------------------------------------------------
   个人中心 / 用户主页
   ------------------------------------------------------------ */

.profile-hero {
    position: relative;
    padding: 0 0 0;
    background: #0b3a26;
    color: #fff;
}

.profile-cover {
    position: absolute;
    inset: 0 0 62px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 80% at 80% 0%, rgba(217, 243, 169, .15), transparent 65%),
        linear-gradient(135deg, #0e4b30, #082a1b);
}

.profile-cover__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
}

.profile-cover__orb {
    position: absolute;
    border-radius: 50%;
}

.profile-cover__orb--one {
    width: 330px;
    height: 330px;
    right: -80px;
    top: -160px;
    border: 1px solid rgba(217, 243, 169, .12);
}

.profile-cover__orb--two {
    width: 460px;
    height: 460px;
    right: 30px;
    top: -240px;
    border: 1px dashed rgba(217, 243, 169, .08);
}

.profile-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 45px 0 30px;
}

.profile-avatar {
    border: 4px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    flex: none;
}

.profile-hero__copy {
    min-width: 0;
    flex: 1;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(217, 243, 169, .12);
    border: 1px solid rgba(217, 243, 169, .16);
    color: #d9f3a9;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 8px;
}

.profile-hero h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: -.045em;
    line-height: 1.15;
    color: #fff;
}

.profile-hero__copy > p {
    max-width: 620px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .56);
    font-size: 11.5px;
    line-height: 1.7;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 11px;
    color: rgba(255, 255, 255, .4);
    font-size: 9.5px;
}

.profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-hero__actions {
    display: flex;
    gap: 8px;
    flex: none;
    align-self: flex-end;
    padding-bottom: 4px;
}

.profile-hero__actions .btn {
    min-height: 38px;
}

.profile-stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: var(--shadow-md);
    transform: translateY(26px);
    overflow: hidden;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 15px 10px;
    position: relative;
}

.profile-stat + .profile-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26%;
    bottom: 26%;
    width: 1px;
    background: var(--line);
}

.profile-stat strong {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.2;
}

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

.section--profile {
    padding-top: 66px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.profile-side {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.account-card__big {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.1;
}

.account-card__big span {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted-2);
    letter-spacing: 0;
}

.account-card__text {
    margin: 5px 0 13px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-page .count-pill {
    vertical-align: 2px;
}

/* ------------------------------------------------------------
   收藏页
   ------------------------------------------------------------ */

.section--favorites {
    padding-top: 40px;
}

/* ------------------------------------------------------------
   关于页
   ------------------------------------------------------------ */

.about-hero {
    position: relative;
    padding: 78px 0 66px;
    background:
        radial-gradient(ellipse 60% 80% at 80% 0%, rgba(217, 243, 169, .14), transparent 60%),
        linear-gradient(135deg, #0e4a30, #072b1c);
    color: #fff;
    overflow: hidden;
}

.about-hero__bg {
    position: absolute;
    inset: 0;
}

.about-hero__orb {
    position: absolute;
    width: 500px;
    height: 500px;
    right: -100px;
    top: -220px;
    border-radius: 50%;
    border: 1px solid rgba(217, 243, 169, .1);
}

.about-hero__orb::after {
    content: "";
    position: absolute;
    inset: 70px;
    border-radius: 50%;
    border: 1px dashed rgba(217, 243, 169, .08);
}

.about-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000, transparent 75%);
}

.about-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-hero__copy {
    max-width: 660px;
}

.about-hero h1 {
    margin: 16px 0 16px;
    font-size: clamp(38px, 5.2vw, 64px);
    letter-spacing: -.055em;
    line-height: 1.12;
    color: #fff;
}

.about-hero__copy > p {
    max-width: 580px;
    color: rgba(255, 255, 255, .58);
    font-size: 13.5px;
    line-height: 1.9;
}

.about-hero__actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.about-hero__stats {
    position: relative;
    flex: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 280px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    overflow: hidden;
}

.about-hero__stats > div {
    padding: 23px 20px;
    background: rgba(6, 35, 22, .45);
    backdrop-filter: blur(8px);
}

.about-hero__stats strong {
    display: block;
    font-size: 29px;
    font-weight: 800;
    color: #d9f3a9;
    letter-spacing: -.05em;
    line-height: 1.1;
}

.about-hero__stats span {
    font-size: 9px;
    color: rgba(255, 255, 255, .4);
}

.about-hero__stamp {
    grid-column: span 2;
    padding: 14px 20px;
    background: rgba(6, 35, 22, .45);
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .35);
}

.about-hero__stamp small {
    font-size: 6px;
    letter-spacing: .16em;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.value-card {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-card__num {
    position: absolute;
    top: 22px;
    right: 25px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.06em;
    color: color-mix(in srgb, var(--ink) 5%, transparent);
}

.value-card__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 18px;
    letter-spacing: -.025em;
    margin-bottom: 7px;
}

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

.section--rules {
    background:
        radial-gradient(ellipse 50% 70% at 0% 30%, color-mix(in srgb, var(--brand) 5%, transparent), transparent 65%),
        var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.rules-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.rules-copy {
    position: sticky;
    top: 110px;
}

.rules-copy h2 {
    margin: 13px 0 14px;
    font-size: clamp(30px, 3.4vw, 42px);
    letter-spacing: -.045em;
}

.rules-copy > p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.85;
}

.rules-contact {
    display: flex;
    gap: 11px;
    margin-top: 24px;
    padding: 15px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.rules-contact > svg {
    flex: none;
    color: var(--brand);
    margin-top: 2px;
}

.rules-contact strong {
    display: block;
    font-size: 10.5px;
    margin-bottom: 2px;
}

.rules-contact a,
.rules-contact span {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.6;
}

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

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-list li {
    display: flex;
    gap: 15px;
    padding: 20px 22px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .2s ease, transform .2s ease;
}

.rules-list li:hover {
    border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
    transform: translateX(3px);
}

.rules-list > li > span {
    width: 27px;
    height: 27px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 8px;
    font-weight: 800;
}

.rules-list strong {
    display: block;
    font-size: 12.5px;
    margin-bottom: 4px;
}

.rules-list p {
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.8;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--muted);
    transition: transform .25s ease, background .2s ease, color .2s ease;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.faq-item p {
    padding: 0 4px 22px;
    max-width: 700px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.9;
}

.section--about-cta {
    padding-top: 20px;
}

.community-band--about {
    background:
        radial-gradient(circle at 90% 0%, rgba(217, 243, 169, .1), transparent 45%),
        linear-gradient(135deg, #0f4c31, #082b1c);
    border-color: transparent;
    color: #fff;
}

.community-band--about h2 {
    color: #fff;
}

.community-band--about p {
    color: rgba(255, 255, 255, .5);
}

.community-band--about .btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.community-band--about .btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
}

/* ------------------------------------------------------------
   登录 / 注册
   ------------------------------------------------------------ */

.auth-body {
    background: var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 52px;
    background:
        radial-gradient(ellipse 55% 55% at 78% 18%, rgba(217, 243, 169, .14), transparent 65%),
        linear-gradient(145deg, #0f4b31 0%, #072b1c 72%);
    color: #fff;
    overflow: hidden;
}

.auth-visual__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-visual__orb--one {
    width: 480px;
    height: 480px;
    right: -160px;
    top: -170px;
    border: 1px solid rgba(217, 243, 169, .12);
}

.auth-visual__orb--one::after {
    content: "";
    position: absolute;
    inset: 68px;
    border-radius: 50%;
    border: 1px dashed rgba(217, 243, 169, .08);
}

.auth-visual__orb--two {
    width: 260px;
    height: 260px;
    left: -110px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(217, 243, 169, .1), transparent 68%);
}

.auth-visual__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 80% at 30% 40%, #000, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 30% 40%, #000, transparent 76%);
}

.auth-visual__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: rgba(255, 255, 255, .46);
    transition: color .2s ease;
}

.auth-back:hover {
    color: #d9f3a9;
}

.auth-visual__copy {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 34px;
    max-width: 520px;
}

.auth-visual__copy .eyebrow {
    margin-bottom: 18px;
}

.auth-visual__copy h1 {
    font-size: clamp(38px, 4.6vw, 58px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.15;
    color: #fff;
}

.auth-visual__copy p {
    margin-top: 18px;
    color: rgba(255, 255, 255, .52);
    font-size: 13px;
    line-height: 1.9;
}

.auth-quote-card {
    position: relative;
    z-index: 2;
    max-width: 460px;
    padding: 18px 20px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.auth-quote-card__head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-quote-card__head > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.auth-quote-card__head strong {
    font-size: 10.5px;
}

.auth-quote-card__head span:not(.avatar):not(.auth-quote-card__mark) {
    color: rgba(255, 255, 255, .36);
    font-size: 8.5px;
}

.auth-quote-card__mark {
    margin-left: auto;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1;
    color: rgba(217, 243, 169, .25);
    align-self: flex-start;
}

.auth-quote-card > p {
    margin-top: 11px;
    color: rgba(255, 255, 255, .62);
    font-size: 10.5px;
    line-height: 1.8;
}

.auth-visual__foot {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    margin-top: 27px;
    color: rgba(255, 255, 255, .3);
    font-size: 8.5px;
}

.auth-visual__foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 28px 44px;
    background: var(--bg);
}

.auth-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 9px;
    font-size: 15px;
}

.auth-mobile-brand .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.auth-form-wrap {
    width: min(420px, 100%);
    margin: auto;
    padding: 36px 0;
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading .eyebrow {
    margin-bottom: 11px;
}

.auth-heading h2 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.2;
}

.auth-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11.5px;
}

.auth-note {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 10.5px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form .field {
    gap: 6px;
}

.auth-form .field__control {
    min-height: 48px;
    border-radius: 11px;
}

.auth-form .field__control input {
    height: 46px;
    font-size: 12.5px;
}

.auth-submit {
    margin-top: 4px;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

.auth-switch a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    color: var(--muted-2);
    font-size: 9px;
}

.auth-tip svg {
    color: var(--brand);
}

.auth-legal {
    margin-top: auto;
    text-align: center;
    color: var(--muted-2);
    font-size: 9px;
    padding-top: 18px;
}

.auth-closed {
    padding: 30px 22px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    text-align: center;
    color: var(--muted);
}

.auth-closed > svg {
    margin: 0 auto 12px;
    color: var(--brand);
}

.auth-closed h3 {
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 6px;
}

.auth-closed p {
    font-size: 10.5px;
    line-height: 1.8;
    margin-bottom: 17px;
}

.auth-perks {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 430px;
    margin-bottom: 30px;
}

.auth-perk {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.auth-perk > span {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(217, 243, 169, .1);
    color: #d9f3a9;
}

.auth-perk strong {
    display: block;
    font-size: 10.5px;
    line-height: 1.4;
}

.auth-perk p {
    color: rgba(255, 255, 255, .38);
    font-size: 8.5px;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 9.5px;
    color: var(--muted);
    line-height: 1.65;
    cursor: pointer;
    padding: 3px 0;
}

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

.check-field__box {
    width: 17px;
    height: 17px;
    flex: none;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--surface);
    color: transparent;
    transition: all .18s ease;
}

.check-field input:checked + .check-field__box {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.check-field a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

/* ------------------------------------------------------------
   安装向导
   ------------------------------------------------------------ */

.install-body {
    background: var(--bg);
}

.install-shell {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    min-height: 100vh;
}

.install-aside {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 40px 38px;
    background:
        radial-gradient(ellipse 60% 55% at 70% 15%, rgba(217, 243, 169, .13), transparent 65%),
        linear-gradient(155deg, #0e4a30, #072a1b 75%);
    color: #fff;
    overflow: hidden;
}

.install-aside__orb {
    position: absolute;
    border-radius: 50%;
}

.install-aside__orb--one {
    width: 340px;
    height: 340px;
    right: -130px;
    top: -140px;
    border: 1px solid rgba(217, 243, 169, .12);
}

.install-aside__orb--two {
    width: 240px;
    height: 240px;
    left: -100px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(217, 243, 169, .1), transparent 68%);
}

.install-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
}

.install-brand > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.install-brand strong {
    font-size: 16px;
    letter-spacing: -.02em;
}

.install-brand span:not(.brand__mark) {
    font-size: 7px;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .38);
    font-weight: 700;
}

.install-aside__copy {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.install-aside__copy h1 {
    margin: 15px 0 15px;
    font-size: clamp(32px, 3.2vw, 43px);
    line-height: 1.2;
    letter-spacing: -.055em;
    color: #fff;
}

.install-aside__copy p {
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
    line-height: 1.8;
    max-width: 280px;
}

.install-progress {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 30px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
}

.install-progress > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .35);
}

.install-progress > div.is-done {
    color: #d9f3a9;
}

.install-progress > div > span {
    width: 22px;
    height: 22px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 8px;
    font-weight: 800;
}

.install-progress > div.is-done > span {
    border-color: rgba(217, 243, 169, .35);
    background: rgba(217, 243, 169, .12);
}

.install-progress > div > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.install-progress strong {
    font-size: 9.5px;
    color: rgba(255, 255, 255, .72);
}

.install-progress > div.is-done strong {
    color: #fff;
}

.install-progress small {
    font-size: 7.5px;
    color: rgba(255, 255, 255, .28);
}

.install-progress > div > b {
    font-size: 10px;
}

.install-aside__foot {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    color: rgba(255, 255, 255, .24);
    font-size: 7.5px;
    letter-spacing: .05em;
}

.install-main {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 58px 48px 70px;
}

.install-head .eyebrow {
    margin-bottom: 11px;
}

.install-head h1 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.18;
}

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

.install-errors {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--red) 5%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--red) 22%, var(--line));
}

.install-errors > strong {
    display: block;
    color: var(--red);
    font-size: 11.5px;
    margin-bottom: 5px;
}

.install-errors ul {
    list-style: disc;
    padding-left: 17px;
    color: var(--red);
    font-size: 10.5px;
    line-height: 1.75;
}

.install-req {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    overflow: hidden;
}

.install-req summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 11.5px;
    font-weight: 700;
}

.install-req summary::-webkit-details-marker {
    display: none;
}

.install-req summary em {
    font-style: normal;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 999px;
}

.install-req summary em.is-ok {
    background: #dcfce7;
    color: #166534;
}

.install-req summary em.is-bad {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .install-req summary em.is-ok { background: #14351f; color: #86efac; }
[data-theme="dark"] .install-req summary em.is-bad { background: #3b1717; color: #fca5a5; }

.install-req__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
}

.install-req__grid > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--surface);
}

.install-req__grid > div > span {
    width: 19px;
    height: 19px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 800;
}

.install-req__grid .is-ok > span {
    background: #dcfce7;
    color: #166534;
}

.install-req__grid .is-bad > span {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .install-req__grid .is-ok > span { background: #14351f; color: #86efac; }
[data-theme="dark"] .install-req__grid .is-bad > span { background: #3b1717; color: #fca5a5; }

.install-req__grid strong {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
}

.install-req__grid small {
    display: block;
    font-size: 8px;
    color: var(--muted-2);
}

.install-form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.install-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.install-section__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.install-section__num {
    width: 29px;
    height: 29px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 8px;
    font-weight: 800;
}

.install-section__head h2 {
    font-size: 14px;
    letter-spacing: -.02em;
}

.install-section__head p {
    color: var(--muted-2);
    font-size: 9px;
}

.install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.install-grid__full {
    grid-column: span 2;
}

.install-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.install-submit p {
    color: var(--muted);
    font-size: 10px;
}

.install-legal {
    margin-top: 22px;
    text-align: center;
    color: var(--muted-2);
    font-size: 8.5px;
}

.install-done {
    min-height: 74vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.install-done__icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--brand) 30%, transparent);
}

.install-done .eyebrow {
    margin-bottom: 12px;
}

.install-done h1 {
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -.05em;
    line-height: 1.18;
}

.install-done > p {
    max-width: 600px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.85;
}

.install-done code,
.install-note code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-3);
    font-family: Consolas, monospace;
    font-size: .9em;
}

.install-note {
    width: 100%;
    margin-top: 24px;
    padding: 17px 19px;
    border-radius: 13px;
    font-size: 11px;
    line-height: 1.8;
}

.install-note--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

[data-theme="dark"] .install-note--warn {
    background: #2b2108;
    border-color: #4a3810;
    color: #fcd34d;
}

.install-note ol {
    list-style: decimal;
    padding-left: 18px;
    margin-top: 6px;
}

.install-note li {
    margin-top: 2px;
}

.install-done__actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */

@media (max-width: 1200px) {
    .main-nav {
        margin-left: 4px;
        gap: 0;
    }

    .nav-link {
        padding-inline: 9px;
        font-size: 12.5px;
    }

    .nav-link::after {
        left: 9px;
        right: 9px;
    }

    .resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cat-card--feature {
        grid-column: span 2;
    }

    .browse-layout {
        grid-template-columns: 228px minmax(0, 1fr);
        gap: 24px;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .resource-grid--browse,
    .resource-grid--profile {
        gap: 14px;
    }

    .mini-panel {
        padding: 50px;
    }
}

@media (max-width: 1080px) {
    .nav-upload span {
        display: none;
    }

    .nav-upload {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 11px;
    }

    .user-menu__name {
        display: none;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
        gap: 20px;
    }

    .hero__visual {
        height: 470px;
    }

    .preview-card--main {
        width: min(355px, 96%);
    }

    .publish-layout,
    .profile-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .about-hero__stats {
        width: 250px;
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 68px;
    }

    .container {
        width: calc(100% - 36px);
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
    }

    .nav-search-btn,
    .theme-toggle {
        display: none;
    }

    .nav-actions .nav-login {
        display: none;
    }

    .hero {
        padding-top: 50px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero__copy {
        max-width: 680px;
    }

    .hero__visual {
        width: min(540px, 100%);
        height: 480px;
        margin: 10px auto 0;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stat:nth-child(3)::before {
        display: none;
    }

    .hero-stat:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

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

    .cat-card--feature {
        grid-column: span 2;
    }

    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-grid--featured {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mini-panel {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 44px;
    }

    .mini-panel__visual {
        max-width: 520px;
    }

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

    .step-card p {
        max-width: 100%;
    }

    .community-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr .8fr .8fr;
        gap: 34px;
    }

    .footer-cta {
        grid-column: span 3;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .footer-cta h3 br {
        display: none;
    }

    .browse-layout {
        grid-template-columns: 1fr;
    }

    .browse-side {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .side-upload {
        grid-column: span 2;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .side-upload__icon {
        margin: 0;
    }

    .side-upload h3 {
        flex: 1;
        font-size: 14px;
    }

    .side-upload h3 br {
        display: none;
    }

    .side-upload p {
        display: none;
    }

    .side-upload .btn {
        flex: none;
        margin-left: auto;
    }

    .resource-grid--browse,
    .resource-grid--profile {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .download-panel {
        grid-row: span 2;
    }

    .share-card {
        grid-column: span 2;
    }

    .publish-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .publish-side,
    .profile-side {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .profile-side .account-card {
        min-width: 0;
    }

    .profile-side .notice {
        grid-column: span 2;
    }

    .publish-side .side-quote,
    .publish-side .side-link,
    .publish-side .danger-card {
        grid-column: span 2;
    }

    .rules-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rules-copy {
        position: static;
    }

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

    .about-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-hero__stats {
        width: 100%;
        max-width: 360px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 24px 28px;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-form-wrap {
        margin: auto;
    }

    .install-shell {
        grid-template-columns: 1fr;
    }

    .install-aside {
        display: none;
    }

    .install-main {
        padding: 42px 28px 60px;
    }
}

@media (max-width: 760px) {
    .topbar__right {
        display: none;
    }

    .topbar__inner {
        justify-content: center;
    }

    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding: 54px 0;
    }

    .section--categories {
        padding-top: 62px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 26px;
    }

    .section-head--center {
        align-items: center;
    }

    .page-hero {
        padding: 26px 0 30px;
    }

    .page-hero__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .inline-search {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(38px, 10vw, 54px);
    }

    .hero__lead br {
        display: none;
    }

    .hero__visual {
        height: 420px;
        transform: scale(.94);
        transform-origin: top center;
        margin-bottom: -20px;
    }

    .preview-card--main {
        top: 22px;
        right: 0;
        width: 90%;
    }

    .preview-card--code {
        width: 76%;
    }

    .floating-pill--upload {
        left: 0;
    }

    .floating-pill--safe {
        right: 0;
    }

    .hero-stats {
        margin-top: 30px;
    }

    .hero-stat {
        padding: 15px 17px;
    }

    .hero-stat strong {
        font-size: 19px;
    }

    .hero-stat__icon {
        width: 34px;
        height: 34px;
    }

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

    .cat-card--feature {
        grid-column: span 1;
    }

    .cat-card {
        min-height: 82px;
    }

    .resource-grid,
    .resource-grid--featured,
    .resource-grid--browse,
    .resource-grid--profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .resource-grid--featured .res-card__cover {
        height: 165px;
    }

    .res-card__cover {
        height: 145px;
    }

    .res-card__body {
        padding: 13px 14px 14px;
    }

    .res-card__title {
        font-size: 14px;
        min-height: 41px;
    }

    .res-card__title {
        -webkit-line-clamp: 2;
    }

    .res-card__desc {
        font-size: 10.5px;
        min-height: 36px;
    }

    .res-card__tags,
    .res-card__stats {
        display: none;
    }

    .res-card__foot {
        padding-top: 10px;
    }

    .res-card__author span:last-child {
        max-width: 70px;
    }

    .mini-panel {
        padding: 30px 24px;
        border-radius: 24px;
    }

    .mini-panel__actions {
        flex-wrap: wrap;
    }

    .mini-panel__stats {
        gap: 26px;
    }

    .terminal-window__body {
        font-size: 9.5px;
        padding: 16px;
    }

    .community-band {
        padding: 26px 22px;
        gap: 24px;
    }

    .community-band__actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .community-band__actions .btn {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-cta {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }

    .footer-note {
        text-align: left;
    }

    .browse-side {
        grid-template-columns: 1fr;
    }

    .side-upload {
        grid-column: span 1;
    }

    .browse-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sort-tabs {
        width: 100%;
    }

    .sort-tabs a {
        flex: 1;
        text-align: center;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

    .download-panel {
        grid-row: auto;
    }

    .share-card {
        grid-column: span 1;
    }

    .resource-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .resource-head__manage {
        padding-bottom: 0;
    }

    .resource-head__meta {
        gap: 12px;
    }

    .surface {
        padding: 18px;
    }

    .comment-form__foot {
        padding-left: 0;
    }

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

    .kind-picker {
        grid-template-columns: 1fr;
    }

    .form-body {
        padding: 18px;
    }

    .form-card__head {
        padding: 17px 18px;
    }

    .cover-field__row {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit .btn {
        width: 100%;
    }

    .publish-side,
    .profile-side {
        grid-template-columns: 1fr;
    }

    .publish-side .side-quote,
    .publish-side .side-link,
    .publish-side .danger-card,
    .profile-side .notice {
        grid-column: span 1;
    }

    .profile-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 32px;
    }

    .profile-avatar {
        --avatar-size: 78px;
    }

    .profile-hero__actions {
        align-self: flex-start;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-stat:nth-child(4)::before {
        display: none;
    }

    .profile-stat:nth-child(n+4) {
        border-top: 1px solid var(--line);
    }

    .profile-stat {
        padding: 11px 8px;
    }

    .profile-stat strong {
        font-size: 18px;
    }

    .section--profile {
        padding-top: 52px;
    }

    .about-hero {
        padding: 48px 0 44px;
    }

    .about-hero__actions {
        flex-wrap: wrap;
    }

    .about-hero__stats {
        max-width: 100%;
    }

    .rules-list li {
        padding: 16px;
    }

    .faq-item summary {
        font-size: 12.5px;
    }

    .auth-panel {
        padding: 20px 20px;
    }

    .auth-form-wrap {
        padding: 30px 0;
    }

    .install-main {
        padding: 32px 18px 50px;
    }

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

    .install-grid__full {
        grid-column: span 1;
    }

    .install-req__grid {
        grid-template-columns: 1fr;
    }

    .install-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .install-submit .btn {
        width: 100%;
    }

    .install-done {
        min-height: 70vh;
    }

    .install-done__actions {
        width: 100%;
        flex-direction: column;
    }

    .install-done__actions .btn {
        width: 100%;
    }

    .auth-legal {
        padding-bottom: 4px;
    }

    .to-top {
        right: 14px;
        bottom: 14px;
        width: 38px;
        height: 38px;
    }

    .flash-stack {
        top: 78px;
        right: 14px;
    }
}

@media (max-width: 520px) {
    .brand__name {
        font-size: 16px;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .nav-actions {
        gap: 3px;
    }

    .nav-register {
        display: none;
    }

    .user-menu__trigger {
        padding: 3px;
    }

    .user-menu__chevron {
        display: none;
    }

    .hero__eyebrow {
        font-size: 8px;
        letter-spacing: .1em;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero__mark svg {
        bottom: -4px;
    }

    .hero-search {
        flex-wrap: wrap;
        padding: 11px;
    }

    .hero-search__icon {
        display: none;
    }

    .hero-search input {
        width: 100%;
        flex: auto;
        height: 38px;
        padding: 0 4px;
    }

    .hero-search .btn {
        width: 100%;
    }

    .hero__hot span {
        display: none;
    }

    .hero__people {
        align-items: flex-start;
    }

    .hero__visual {
        height: 370px;
        transform: scale(.92);
        margin-bottom: -35px;
    }

    .preview-card--main {
        width: 94%;
        padding: 15px;
    }

    .preview-card__body {
        padding: 12px;
    }

    .preview-card__toc span {
        font-size: 8.5px;
    }

    .preview-card--code {
        width: 80%;
    }

    .preview-card--code pre {
        font-size: 8px;
    }

    .floating-pill--upload {
        top: 0;
    }

    .floating-pill--safe {
        display: none;
    }

    .hero__stamp {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat:nth-child(2)::before {
        display: none;
    }

    .hero-stat {
        border-top: 1px solid var(--line);
        padding: 13px 17px;
    }

    .hero-stat:first-child {
        border-top: 0;
    }

    .resource-grid,
    .resource-grid--featured,
    .resource-grid--browse,
    .resource-grid--profile {
        grid-template-columns: 1fr;
    }

    .resource-grid .res-card__cover {
        height: 175px;
    }

    .resource-grid .res-card__tags {
        display: flex;
    }

    .resource-grid .res-card__stats {
        display: flex;
    }

    .res-card__title {
        font-size: 16px;
        min-height: auto;
    }

    .res-card__desc {
        min-height: auto;
    }

    .mini-panel__actions .btn {
        width: 100%;
    }

    .mini-panel__stats {
        gap: 20px;
    }

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

    .footer-brand,
    .footer-cta {
        grid-column: span 1;
    }

    .footer-col {
        display: none;
    }

    .field-row,
    .install-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }

    .profile-stat:nth-child(3)::before,
    .profile-stat:nth-child(5)::before {
        display: none;
    }

    .profile-stat:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .profile-stat:nth-child(4)::before {
        display: block;
    }

    .publish-steps {
        display: none;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .resource-head h1 {
        font-size: 29px;
    }

    .share-card {
        flex-wrap: wrap;
    }

    .auth-panel {
        padding: 16px;
    }

    .auth-form .field__control {
        min-height: 46px;
    }

    .install-main {
        padding: 26px 14px 44px;
    }

    .install-section {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* 工具类：保证 hidden 属性优先级高于组件 display */
[hidden] {
    display: none !important;
}

.btn.is-copied {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: transparent;
}


/* ------------------------------------------------------------
   细节修正
   ------------------------------------------------------------ */

.profile-stat strong {
    color: var(--ink);
}

.about-hero__stats .about-hero__stat--wide {
    grid-column: span 2;
}

@media (max-width: 960px) {
    .hero__copy,
    .hero__visual,
    .browse-main,
    .browse-side,
    .detail-main,
    .detail-side,
    .publish-main,
    .publish-side,
    .profile-main,
    .profile-side,
    .section-head__copy {
        min-width: 0;
    }
}
