:root {
  --ink: #10182d;
  --muted: #778095;
  --line: #ece8e4;
  --paper: #fffaf6;
  --white: #ffffff;
  --accent: #ff553f;
  --accent-dark: #e73f2c;
  --peach: #fff0e9;
  --gold: #f29b20;
  --mint: #0c9c83;
  --danger: #d72e2e;
  --navy: #101827;
  --shadow: 0 10px 30px rgb(28 22 18 / 8%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mobile-page { width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; background: var(--white); padding-bottom: calc(78px + env(safe-area-inset-bottom)); box-shadow: 0 0 32px rgb(16 24 45 / 5%); }
.mobile-page:has(.admin-shell) { width: 100%; max-width: none; padding: 0; }
.mobile-header { min-height: 68px; padding: calc(14px + env(safe-area-inset-top)) 18px 10px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; background: var(--white); position: relative; z-index: 20; }
.mobile-header.brand-header { grid-template-columns: 1fr 44px; }
.mobile-header h1 { margin: 0; font-size: 18px; text-align: center; text-wrap: balance; }
.header-spacer { width: 44px; }
.icon-button { border: 0; background: transparent; color: var(--ink); padding: 10px; border-radius: 12px; display: grid; place-items: center; }
.icon-button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgb(255 85 63 / 24%); outline-offset: 2px; }
.notification-button { color: var(--accent); font-size: 20px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand span:last-child { display: grid; line-height: 1.15; }
.brand strong { font-size: 20px; text-wrap: balance; }
.brand small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.brand-orbit { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: block; position: relative; flex: 0 0 auto; }
.brand-orbit::after { content: ""; position: absolute; width: 50px; height: 19px; border: 2px solid var(--accent); border-radius: 50%; transform: rotate(-19deg); left: -5px; top: 10px; }
.brand-orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--white); right: 0; top: 5px; z-index: 1; }

.mobile-content { padding: 10px 18px 28px; }
.home-content { padding-top: 2px; }
.search-box { display: flex; align-items: center; gap: 10px; background: #f5f5f6; padding: 4px 5px 4px 14px; border-radius: 15px; }
.search-box span { color: var(--muted); display: grid; }
.search-box input { min-width: 0; flex: 1; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box button { border: 0; background: var(--accent); color: var(--white); padding: 10px 14px; border-radius: 11px; }
.chips { display: flex; gap: 9px; overflow-x: auto; padding: 16px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 0; background: var(--peach); color: var(--ink); padding: 10px 17px; border-radius: 999px; font-weight: 650; }
.chips button.active { background: var(--accent); color: var(--white); }
.sticky-chips { position: sticky; top: 0; z-index: 10; background: var(--white); }
.section-block { margin-top: 22px; }
.section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.section-title > span { width: 5px; height: 25px; background: var(--accent); border-radius: 4px; }
.section-title h2 { margin: 0; font-size: 21px; flex: 1; text-wrap: balance; }
.section-title a { color: var(--muted); font-size: 13px; }

.article-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); min-height: 108px; }
.article-row img { width: 116px; height: 82px; object-fit: cover; border-radius: 10px; background: var(--peach); }
.article-copy { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.article-copy > strong { font-size: 16px; line-height: 1.42; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: pretty; }
.article-meta { display: flex; align-items: flex-end; gap: 8px; justify-content: space-between; }
.article-meta small { color: #9298a5; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.article-badge { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--peach); white-space: nowrap; }
.article-badge.free { color: var(--mint); background: #e9f8f4; }
.article-badge.member { color: var(--accent-dark); }
.article-badge.invite { color: #bc4a24; }
.article-badge.app { color: #6b4db3; background: #f2edff; }
.featured-row { grid-template-columns: 148px minmax(0, 1fr); min-height: 126px; background: #fff7f2; padding: 12px; border: 1px solid #ffe2d7; border-radius: 14px; }
.featured-row img { width: 148px; height: 96px; }
.article-cover-placeholder { width: 132px; height: 84px; border-radius: 11px; background: linear-gradient(135deg, #ff6b53, #ff9b6a); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 12px; box-sizing: border-box; }
.article-cover-placeholder b { font-size: 16px; }
.article-cover-placeholder small { font-size: 11px; opacity: .85; }
.featured-row .article-cover-placeholder { width: 148px; height: 96px; }
.featured-row .article-copy > strong { font-size: 17px; }
.category-list { margin-top: 10px; }
.empty { min-height: 220px; display: grid; place-content: center; gap: 14px; text-align: center; color: var(--muted); }
.empty button, .empty a { border: 0; background: var(--accent); color: var(--white); padding: 11px 16px; border-radius: 10px; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 480px); min-height: calc(66px + env(safe-area-inset-bottom)); padding: 8px 12px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: rgb(255 255 255 / 97%); border-top: 1px solid var(--line); }
.bottom-nav a { display: grid; place-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.bottom-nav a.active { color: var(--accent); font-weight: 700; }
.bottom-nav svg { width: 23px; height: 23px; }

.article-detail > h1 { margin: 6px 0 7px; font-size: 27px; line-height: 1.3; text-wrap: balance; }
.article-detail time { color: var(--muted); font-size: 13px; }
.article-hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; margin: 20px 0; }
.article-hero-placeholder { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 28%), linear-gradient(135deg, #ff6b53, #ff9b6a); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; box-sizing: border-box; }
.article-hero-placeholder b { font-size: 26px; }
.article-hero-placeholder span { margin-top: 6px; opacity: .9; }
.rich-content { font-size: 16px; line-height: 1.85; color: #303748; text-wrap: pretty; }
.rich-content h3 { margin: 26px 0 8px; font-size: 20px; color: var(--ink); text-wrap: balance; }
.unlocked-divider { margin: 28px 0 20px; display: flex; align-items: center; color: var(--accent); font-weight: 700; }
.unlocked-divider::before, .unlocked-divider::after { content: ""; height: 1px; background: #ffd3c8; flex: 1; }
.unlocked-divider span { padding: 0 14px; }
.locked-panel { margin: 28px 0 16px; padding: 24px 16px; border-radius: 18px; background: #fff7f2; border: 1px solid #ffded2; text-align: center; }
.lock-mark { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; }
.locked-panel h2 { margin: 12px 0 5px; font-size: 20px; }
.locked-panel > p { color: var(--muted); margin: 0 0 16px; }
.unlock-options { display: grid; gap: 10px; }
.unlock-option { border: 1px solid var(--line); background: var(--white); border-radius: 13px; padding: 12px; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; text-align: left; }
.unlock-option span:nth-child(2) { display: grid; gap: 3px; }
.unlock-option small { color: var(--muted); }
.unlock-option b { color: var(--accent); font-size: 13px; }
.option-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: var(--accent); font-style: normal; font-weight: 800; }
.option-icon.gold { color: var(--gold); background: #fff5dc; }
.option-icon.green { color: var(--mint); background: #e8f8f4; }
.app-only-card { display: grid; gap: 5px; padding: 15px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); text-align: left; }
.app-only-card strong { color: var(--accent); }
.app-only-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.resource-card { margin-top: 24px; padding: 16px; border-radius: 16px; background: #fff7f2; border: 1px solid #ffded2; }
.resource-head { display: flex; align-items: center; gap: 8px; }
.resource-head > span { background: var(--accent); color: white; padding: 4px 7px; border-radius: 6px; font-size: 12px; }
.resource-head strong { flex: 1; }
.resource-head em { color: var(--mint); font-style: normal; font-size: 12px; }
.resource-card p, .resource-card label { color: var(--muted); font-size: 13px; line-height: 1.6; }
.resource-card label { display: block; margin: 12px 0 5px; }
.resource-qr { display: block; width: min(220px, 100%); height: auto; margin: 14px auto; border-radius: 12px; background: var(--white); padding: 8px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--white); padding: 10px; border-radius: 8px; color: #384156; }
.copy-row button { border: 0; background: var(--accent); color: var(--white); padding: 9px 12px; border-radius: 8px; }
.feedback-link { width: 100%; border: 0; background: transparent; color: var(--muted); padding: 24px 0 8px; text-decoration: underline; }

.member-page { background: var(--paper); }
.member-hero { min-height: 230px; background: var(--accent); color: var(--white); border-radius: 20px; padding: 24px; position: relative; overflow: hidden; }
.member-hero::after { content: ""; position: absolute; width: 140px; height: 140px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; right: -34px; top: 33px; box-shadow: -24px 22px 0 -22px var(--white); }
.member-kicker { display: inline-block; background: rgb(255 255 255 / 18%); padding: 6px 9px; border-radius: 8px; font-size: 12px; }
.member-hero h1 { margin: 17px 0 7px; font-size: 31px; text-wrap: balance; }
.member-hero p { margin: 0; opacity: .9; }
.member-price { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: baseline; gap: 10px; }
.member-price strong { font-size: 34px; font-variant-numeric: tabular-nums; }
.member-price del { opacity: .72; }
.benefits { margin-top: 15px; background: var(--white); border-radius: 18px; padding: 18px; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.benefit i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--peach); color: var(--accent); font-style: normal; font-weight: 800; }
.benefit span { display: grid; gap: 4px; }
.benefit small { color: var(--muted); }
.muted-note { color: var(--muted); font-size: 12px; text-align: center; }
.agreement-check { display: block; font-size: 13px; color: var(--muted); margin: 18px 0 12px; }
.agreement-check a { color: var(--accent); }

.mine-page { padding-top: calc(18px + env(safe-area-inset-top)); }
.profile-head { display: grid; grid-template-columns: 58px 1fr 30px; gap: 13px; align-items: center; padding: 8px 2px 18px; }
.avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 22px; font-weight: 800; }
.profile-head h1 { margin: 0 0 5px; font-size: 21px; }
.profile-head p { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.profile-head a { color: var(--muted); }
.mine-member { background: var(--navy); color: var(--white); padding: 16px; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; }
.mine-member span { display: grid; gap: 4px; }
.mine-member small { color: #ffc4b8; }
.mine-member b { color: var(--accent); background: var(--white); padding: 8px 10px; border-radius: 9px; font-size: 12px; }
.wallet-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 13px 0; padding: 16px; background: #fff7f2; border-radius: 15px; }
.wallet-summary div { display: grid; gap: 5px; }
.wallet-summary div + div { border-left: 1px solid #ffd9ce; padding-left: 12px; }
.wallet-summary small { color: var(--muted); }
.wallet-summary strong { color: var(--accent); font-size: 21px; font-variant-numeric: tabular-nums; }
.wallet-summary a { grid-column: 1 / -1; text-align: center; background: var(--accent); color: var(--white); padding: 10px; border-radius: 10px; font-weight: 700; }
.menu-card { background: var(--white); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; margin-top: 14px; }
.menu-row { width: 100%; display: grid; grid-template-columns: 36px 1fr 22px; align-items: center; gap: 10px; padding: 14px; background: var(--white); border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--peach); color: var(--accent); font-style: normal; font-size: 12px; font-weight: 800; }
.menu-row > span { display: grid; gap: 3px; }
.menu-row small { color: var(--muted); font-size: 12px; }
.menu-row svg { width: 18px; height: 18px; color: #a0a5af; }
.menu-row.danger { color: var(--danger); }
.settings-page > .secondary-button { margin-top: 20px; }

.context-banner { display: grid; gap: 6px; background: var(--peach); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.context-banner span, .context-banner small { color: var(--muted); font-size: 12px; }
.invite-card { text-align: center; background: var(--navy); color: var(--white); padding: 24px 20px 20px; border-radius: 20px; }
.invite-label { color: #ffc1b5; }
.invite-card > strong { display: block; font-size: 34px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.invite-card p { color: #bdc4d1; font-size: 13px; line-height: 1.6; }
.invite-qr { display: block; width: 154px; height: 154px; margin: 18px auto; padding: 6px; background: var(--white); border-radius: 9px; }
.friend-stats { margin: 14px 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.friend-stats div { display: grid; gap: 5px; text-align: center; padding: 16px; }
.friend-stats div + div { border-left: 1px solid var(--line); }
.friend-stats small { color: var(--muted); }
.friend-stats strong { color: var(--accent); font-size: 23px; font-variant-numeric: tabular-nums; }
.rule-card, .form-card, .document-card { background: var(--white); border: 1px solid var(--line); padding: 18px; border-radius: 15px; margin-top: 14px; }
.rule-card h2 { margin: 0 0 10px; font-size: 18px; }
.rule-card p, .rule-card li, .document-card p { color: #5e6678; line-height: 1.75; text-wrap: pretty; }
.rule-card ol { padding-left: 20px; }
.balance-card { background: var(--accent); color: var(--white); padding: 24px; border-radius: 18px; display: grid; gap: 7px; }
.balance-card strong { font-size: 36px; font-variant-numeric: tabular-nums; }
.balance-card span { font-size: 13px; opacity: .86; }
.form-card { display: grid; gap: 16px; }
.form-card h2 { margin: 0; font-size: 18px; }
.form-card label, .admin-field { display: grid; gap: 7px; color: #3b4354; font-weight: 650; }
.form-card input, .form-card textarea, .form-card select, .admin-field input, .admin-field textarea, .admin-field select, .resource-editor input, .resource-editor textarea, .benefit-edit input { width: 100%; border: 1px solid #dfe1e5; border-radius: 10px; padding: 12px; background: var(--white); color: var(--ink); }
.form-card p { color: var(--muted); font-size: 12px; margin: 0; }
.inline-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.inline-input button { border: 0; background: var(--peach); color: var(--accent); border-radius: 10px; padding: 0 13px; font-weight: 700; }
.inline-input button:disabled { color: var(--muted); }
.form-link { justify-self: end; color: var(--accent); font-size: 13px; }
.primary-button, .secondary-button, .text-button { border-radius: 11px; padding: 13px 16px; font-weight: 750; }
.primary-button { border: 0; background: var(--accent); color: var(--white); }
.secondary-button { border: 1px solid #d9dce2; background: var(--white); color: var(--ink); }
.text-button { border: 0; background: transparent; color: var(--accent); }
.full { width: 100%; display: block; text-align: center; }
.auth-page { padding-top: 50px; }
.auth-page > .brand { justify-content: center; margin-bottom: 35px; }
.auth-page > h1 { font-size: 28px; margin-bottom: 8px; text-align: center; text-wrap: balance; }
.auth-page > p { text-align: center; color: var(--muted); line-height: 1.6; }
.auth-agree { font-size: 12px; }
.auth-agree a { color: var(--accent); }
.document-card h1 { margin-top: 0; text-wrap: balance; }
.about-logo { width: 76px; height: 76px; margin: 8px auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 28px; font-weight: 800; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.order-row span { display: grid; gap: 4px; }
.order-row small { color: var(--muted); font-size: 11px; }
.order-row em { grid-column: 1 / -1; color: var(--mint); font-style: normal; font-size: 13px; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; background: rgb(15 20 30 / 58%); display: grid; place-items: center; padding: 22px; }
.dialog { width: min(100%, 390px); background: var(--white); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.dialog h2 { margin-top: 0; text-wrap: balance; }
.dialog p { color: #5e6678; line-height: 1.75; text-wrap: pretty; }
.dialog a { color: var(--accent); }
.dialog > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 96px; transform: translate(-50%, 10px); background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 9px; opacity: 0; pointer-events: none; transition: opacity 160ms ease-out, transform 160ms ease-out; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.wechat-tip { position: fixed; z-index: 40; top: 12px; right: 12px; width: min(330px, calc(100% - 24px)); background: var(--navy); color: var(--white); padding: 14px; border-radius: 12px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.wechat-tip span { color: #cbd1dc; font-size: 13px; line-height: 1.5; }

.admin-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f8f7f5; }
.admin-login .form-card { width: min(100%, 420px); box-shadow: var(--shadow); }
.admin-login .brand { justify-content: center; margin-bottom: 8px; }
.admin-login h1 { margin: 0; text-align: center; }

.admin-shell { min-height: 100dvh; display: grid; grid-template-columns: 236px 1fr; background: #f8f7f5; }
.admin-sidebar { position: sticky; top: 0; height: 100dvh; background: var(--navy); color: var(--white); padding: 24px 14px; display: flex; flex-direction: column; }
.admin-sidebar .brand { padding: 0 10px 26px; }
.admin-sidebar .brand small { color: #99a3b4; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { padding: 13px 15px; border-radius: 10px; color: #c9ced8; display: flex; gap: 10px; align-items: center; }
.admin-sidebar nav a span { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 2px; }
.admin-sidebar nav a.active { background: var(--accent); color: var(--white); font-weight: 700; }
.admin-sidebar > small { margin-top: auto; padding: 10px; color: #7d8798; }
.admin-main { min-width: 0; }
.admin-top { height: 64px; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.admin-top b { color: var(--ink); }
.admin-content { padding: 28px; }
.admin-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-title h1 { margin: 0; font-size: 28px; text-wrap: balance; }
.admin-title p { margin: 6px 0 0; color: var(--muted); }
.admin-primary, .admin-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 11px 16px; font-weight: 700; }
.admin-primary { border: 0; background: var(--accent); color: var(--white); }
.admin-secondary { border: 1px solid #ffc8bb; background: var(--white); color: var(--accent); }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 20px; box-shadow: 0 5px 18px rgb(16 24 39 / 3%); margin-bottom: 18px; }
.admin-card h2 { margin: 0 0 12px; font-size: 19px; }
.admin-card > p { color: var(--muted); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 18px; }
.stat-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 20px; display: grid; gap: 10px; }
.stat-grid small { color: var(--muted); }
.stat-grid strong { font-size: 29px; font-variant-numeric: tabular-nums; }
.stat-grid span { color: var(--mint); font-size: 12px; }
.task-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.task-list a { padding: 16px; background: #fff7f2; border-radius: 10px; display: grid; gap: 5px; }
.task-list b { color: var(--accent); font-size: 24px; font-variant-numeric: tabular-nums; }
.admin-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.editor-aside { position: sticky; top: 82px; }
.editor-main { display: grid; gap: 18px; }
.admin-field > span { font-size: 13px; }
.admin-field em { color: var(--accent); font-style: normal; }
.admin-field small { color: var(--muted); font-weight: 400; }
.editor-field { display: grid; gap: 7px; }
.editor-field > span { font-size: 13px; font-weight: 700; }
.editor-field em { color: var(--accent); font-style: normal; }
.editor-field > small { color: var(--muted); }
.editor-toolbar { display: flex; gap: 6px; padding: 7px; background: #f7f7f8; border: 1px solid #dfe1e5; border-bottom: 0; border-radius: 10px 10px 0 0; }
.editor-toolbar button { border: 0; background: var(--white); color: var(--ink); min-width: 38px; padding: 7px 10px; border-radius: 7px; }
.rich-editor { min-height: 170px; border: 1px solid #dfe1e5; border-radius: 0 0 10px 10px; padding: 14px; line-height: 1.7; overflow: auto; }
.rich-editor:empty::before { content: "选填；请输入图文内容"; color: #a0a5af; }
.rich-editor img { max-width: 100%; height: auto; border-radius: 8px; }
.file-field { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe1e5; border-radius: 10px; padding: 10px; color: var(--muted); }
.file-field input { min-width: 0; padding: 0; border: 0; }
.admin-two, .admin-three { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-three { grid-template-columns: repeat(3, 1fr); }
.resource-editor { border: 1px dashed #f4b6a7; border-radius: 11px; padding: 16px; display: grid; gap: 12px; }
.resource-item { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px dashed #f4b6a7; }
.resource-item:last-child { border-bottom: 0; }
.resource-extra { display: grid; gap: 10px; padding-top: 12px; border-top: 1px dashed #f4b6a7; }
.resource-editor legend { font-weight: 700; }
.resource-editor legend small { color: var(--muted); font-weight: 400; }
.switch-row { display: flex; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch-row > span { flex: 1; font-weight: 650; }
.switch-row > input:not([type="checkbox"]):not([type="radio"]) { width: 86px; padding: 8px; border: 1px solid #dfe1e5; border-radius: 8px; }
.benefit-editor { display: grid; gap: 8px; margin-bottom: 12px; }
.benefit-edit { display: grid; grid-template-columns: 30px 54px 1fr 2fr 82px 58px; gap: 8px; align-items: center; }
.benefit-edit > b { color: var(--muted); text-align: center; }
.benefit-edit > label { font-size: 13px; }
.benefit-edit > button { border: 0; background: transparent; color: var(--danger); }
.member-preview > small { display: block; margin-bottom: 14px; color: var(--muted); }
.preview-member { background: var(--accent); color: var(--white); border-radius: 13px; padding: 18px; display: grid; gap: 6px; margin-bottom: 12px; }
.preview-member strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.member-preview > div:not(.preview-member) { display: grid; gap: 3px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.member-preview > div small { color: var(--muted); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.admin-tabs button { border: 1px solid var(--line); background: var(--white); padding: 10px 22px; border-radius: 8px; }
.admin-tabs button.active { border-color: var(--accent); color: var(--accent); background: var(--peach); }
.admin-card fieldset { border: 0; padding: 0; margin: 18px 0; display: flex; gap: 22px; }
.admin-card fieldset legend { font-weight: 700; margin-bottom: 10px; }
.admin-card table { width: 100%; border-collapse: collapse; }
.admin-card th, .admin-card td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; font-size: 13px; }
.admin-card th { color: var(--muted); background: #fafafa; }
.status-ok { color: var(--mint); font-weight: 700; }
.table-tools { display: flex; gap: 8px; margin-bottom: 14px; }
.table-tools input, .table-tools select { min-width: 240px; border: 1px solid #dfe1e5; border-radius: 9px; padding: 10px; background: var(--white); }
.table-action { border: 0; background: transparent; color: var(--accent); font-weight: 700; }

@media (max-width: 1180px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; padding: 14px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; }
  .admin-sidebar nav a { flex: 0 0 auto; }
  .admin-sidebar > small { display: none; }
  .admin-editor { grid-template-columns: 1fr; }
  .editor-aside { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .featured-row { grid-template-columns: 132px minmax(0, 1fr); }
  .featured-row img { width: 132px; height: 88px; }
  .admin-content { padding: 16px; }
  .admin-top { padding: 0 16px; }
  .admin-two, .admin-three, .stat-grid, .task-list { grid-template-columns: 1fr; }
  .benefit-edit { grid-template-columns: 28px 45px 1fr; }
  .benefit-edit input:nth-of-type(3), .benefit-edit label, .benefit-edit button { grid-column: 2 / -1; }
  .admin-card { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
