:root {
  --ink: #143c34;
  --ink-2: #1b5146;
  --coral: #df644f;
  --coral-dark: #b94f3e;
  --mint: #dff0e5;
  --cream: #f5f1e7;
  --paper: #fffdf8;
  --line: #d9e1da;
  --muted: #71827c;
  --shadow: 0 18px 50px rgba(20, 60, 52, .09);
  --radius: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.admin-app { min-height: 100vh; display: flex; }
.sidebar { width: 246px; flex: 0 0 246px; background: var(--ink); color: #eaf4ed; padding: 28px 18px 20px; display: flex; flex-direction: column; }
.sidebar-brand, .brand-lockup { display: flex; align-items: center; gap: 11px; }
.sidebar-brand { padding: 0 10px 30px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--coral); color: #fffdf8; font-weight: 800; font-size: 19px; letter-spacing: 0; }
.sidebar-brand strong, .brand-lockup strong { display: block; font-size: 17px; letter-spacing: 0; }
.sidebar-brand small, .brand-lockup small { display: block; margin-top: 3px; font-size: 11px; color: #98b9ad; }
.side-nav { display: grid; gap: 6px; }
.side-link { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 13px; color: #a8c4ba; border-radius: 9px; transition: .2s ease; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-link.is-active { background: var(--coral); color: #fff; box-shadow: 0 7px 16px rgba(223,100,79,.2); }
.nav-icon { width: 21px; text-align: center; font-size: 18px; line-height: 1; }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 15px 11px 0; border-top: 1px solid rgba(255,255,255,.13); }
.sidebar-bottom strong { display: block; font-size: 12px; font-weight: 600; }
.sidebar-bottom small { display: block; color: #89a99e; font-size: 11px; margin-top: 4px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8bd59d; box-shadow: 0 0 0 4px rgba(139,213,157,.13); }
.main-shell { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 76px; background: rgba(255,253,248,.88); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 36px; gap: 18px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.breadcrumb b { color: #c2cbc6; font-weight: 400; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 17px; color: var(--muted); }
.top-date { font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 13px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 800; }
.logout-link { color: var(--coral-dark); font-size: 12px; }
.content { width: 100%; max-width: 1440px; flex: 1; padding: 36px; margin: 0 auto; }
.footer { display: flex; justify-content: space-between; color: #8d9c96; font-size: 11px; padding: 15px 36px 22px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--coral); font-size: 11px; letter-spacing: 1.5px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.5px; }
h2 { font-size: 17px; margin: 0 0 15px; }
h3 { font-size: 15px; margin: 0 0 7px; }
.lead { color: var(--muted); margin-bottom: 0; line-height: 1.7; }
.muted { color: var(--muted); }
.button { min-height: 39px; border: 1px solid transparent; border-radius: 8px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--coral); color: #fff; box-shadow: 0 7px 15px rgba(223,100,79,.18); }
.button-primary:hover { background: var(--coral-dark); }
.button-secondary { background: var(--ink); color: #fff; }
.button-light { background: var(--paper); border-color: var(--line); color: var(--ink); }
.button-danger { background: #fff2ef; border-color: #f1c6bd; color: #b13e2f; }
.button-small { min-height: 31px; padding: 0 11px; border-radius: 7px; font-size: 12px; }
.button-wide { width: 100%; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); border-radius: 8px; display: grid; place-items: center; }
.menu-toggle { display: none; }
.alert { border-radius: 9px; padding: 12px 15px; margin-bottom: 20px; border: 1px solid; line-height: 1.5; }
.alert-success { color: #24613f; background: #eaf7ed; border-color: #bde4c6; }
.alert-danger { color: #9d3f32; background: #fff0ec; border-color: #f1c8c0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 20px; box-shadow: 0 5px 18px rgba(20,60,52,.03); }
.stat-card:nth-child(2) { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat-card:nth-child(2) .stat-label, .stat-card:nth-child(2) .stat-meta { color: #a7c3b8; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 31px; line-height: 1.15; font-weight: 800; margin: 10px 0 6px; }
.stat-meta { color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 23px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-heading h2 { margin-bottom: 4px; }
.panel-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.link-text { color: var(--coral-dark); font-weight: 700; font-size: 12px; }
.plan-list { display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid #e5ece6; border-radius: 9px; }
.plan-date { color: var(--muted); font-size: 12px; }
.plan-main strong { display: block; font-size: 14px; }
.plan-main small { display: block; color: var(--muted); margin-top: 4px; }
.plan-badge, .status-badge, .tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.plan-badge { background: var(--mint); color: var(--ink-2); }
.status-badge.published { color: #24613f; background: #e7f6eb; }
.status-badge.draft { color: #8a6a26; background: #fff3cf; }
.status-badge.resolved { color: #46536b; background: #eef1f5; }
.quick-list { display: grid; gap: 11px; }
.quick-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; background: #f4f8f3; border-radius: 9px; }
.quick-item strong { display: block; font-size: 13px; }
.quick-item small { color: var(--muted); display: block; margin-top: 4px; }
.quick-mark { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; background: var(--coral); color: #fff; font-weight: 800; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.input, .select, .textarea { width: 100%; border: 1px solid #d2ddd5; border-radius: 8px; background: #fff; color: var(--ink); min-height: 40px; padding: 0 12px; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: #76aa96; box-shadow: 0 0 0 3px rgba(118,170,150,.15); }
.search-input { width: 220px; }
.textarea { min-height: 120px; padding: 11px 12px; line-height: 1.65; resize: vertical; }
.table-wrap { overflow-x: auto; border: 1px solid #e2e9e3; border-radius: 9px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 14px 15px; border-bottom: 1px solid #e8eee9; vertical-align: middle; }
th { background: #f4f8f3; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
td { font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.recipe-cell { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.recipe-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--coral); font-weight: 800; flex: 0 0 auto; }
.recipe-mark.mint { background: #5c9d84; }.recipe-mark.amber { background: #c68742; }.recipe-mark.sun { background: #d0a33f; }.recipe-mark.violet { background: #9a718b; }.recipe-mark.forest { background: #3c7560; }.recipe-mark.blue { background: #5a8391; }.recipe-mark.plum { background: #8d6879; }
.recipe-cell strong { display: block; }.recipe-cell small { display: block; color: var(--muted); margin-top: 4px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }.tag { background: #edf4ee; color: var(--ink-2); font-weight: 600; }
.table-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.empty-state { padding: 42px 18px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 7px; }
.form-panel { max-width: 980px; }
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { color: var(--ink); font-size: 12px; font-weight: 700; display: grid; gap: 7px; }
.span-2 { grid-column: span 2; }
.form-section { padding: 20px 0; border-bottom: 1px solid var(--line); }.form-section:first-child { padding-top: 0; }.form-section:last-child { border-bottom: 0; padding-bottom: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.help-text { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
.check-list { display: grid; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #e4ece6; border-radius: 8px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--coral); }.check-row.is-checked { opacity: .58; text-decoration: line-through; }
.check-row .item-text { flex: 1; }.check-row small { color: var(--muted); text-decoration: none; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 20px; }
.setting-row { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #e7ede8; }.setting-row:last-child { border-bottom: 0; }
.setting-row > strong { font-size: 13px; }.setting-row p { color: var(--muted); margin: 4px 0 0; font-size: 11px; line-height: 1.5; }
.code-field { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.install-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 15px; background: radial-gradient(circle at 20% 0%, #dff0e5, transparent 42%), var(--cream); }
.install-shell { width: min(100%, 620px); }.brand-lockup { margin: 0 0 24px; }.brand-lockup .brand-mark { background: var(--ink); }
.install-card { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 32px; box-shadow: var(--shadow); }.install-card h1 { margin-top: 9px; }.install-card > p { line-height: 1.7; }
.install-card h2 { font-size: 14px; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }.install-card h2:first-of-type { margin-top: 25px; }
.install-note { color: var(--muted); font-size: 12px; text-align: center; margin: 16px 0 0; }.success-card { text-align: center; }.success-card .button { margin-top: 8px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 88% 15%, #dff0e5, transparent 35%), var(--cream); }.login-shell { width: min(100%, 430px); }.login-card { margin-top: 20px; }
.login-card .button { margin-top: 6px; }.login-hint { text-align: center; color: var(--muted); font-size: 11px; margin-top: 16px; }
.mobile-only { display: none; }
@media (max-width: 1080px) { .sidebar { width: 220px; flex-basis: 220px; }.content { padding: 29px 25px; }.topbar { padding: 0 25px; }.stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.dashboard-grid, .split-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; width: 246px; }.sidebar.is-open { transform: translateX(0); }.menu-toggle { display: grid; }.topbar { height: 64px; padding: 0 16px; }.top-date, .breadcrumb span, .breadcrumb b { display: none; }.topbar-actions { gap: 10px; }.content { padding: 23px 16px; }.footer { padding: 14px 16px 20px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; gap: 13px; }.page-heading .button { width: 100%; }.stats-grid { gap: 10px; }.stat-card { padding: 15px; }.stat-value { font-size: 25px; }.panel { padding: 17px; }.form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }.span-2 { grid-column: auto; }.form-actions { justify-content: stretch; }.form-actions .button { flex: 1; }.setting-row { grid-template-columns: 1fr; gap: 9px; }.search-input { width: 100%; }.filters { width: 100%; }.filters .select { flex: 1; }.toolbar > .button { width: 100%; }.plan-row { grid-template-columns: 1fr auto; }.plan-date { grid-column: span 2; }.install-card { padding: 24px 19px; } }
@media (max-width: 390px) { .stats-grid { grid-template-columns: 1fr; }.user-chip > span:last-child, .logout-link { display: none; }.content { padding-left: 12px; padding-right: 12px; } }

/* ========== v2 新增组件 ========== */
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #edf4ee; color: var(--ink-2); }
.badge-success { color: #24613f; background: #e7f6eb; }
.badge-danger { color: #9d3f32; background: #fff0ec; }
.row-muted { opacity: .55; }
.pagination { display: flex; gap: 6px; padding: 18px 0 0; justify-content: center; flex-wrap: wrap; }
.page-link { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; padding: 0 10px; }
.page-link.is-active { background: var(--coral); color: #fff; border-color: var(--coral); }
.page-link:hover:not(.is-active) { border-color: #76aa96; }
