/* ============================================================
   cookz.cn — 设计系统
   前台风（奶油纸感 + 陶土渐变）与后台共用同一套 token
   ============================================================ */

:root {
  /* 色彩 */
  --ink: #1b1713;
  --ink-2: #4a4139;
  --ink-3: #8b7f71;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --line: #e7ddcb;
  --line-soft: #f0e9db;

  --accent: #c2502a;
  --accent-2: #e2a03c;
  --accent-3: #8f3a1f;
  --accent-soft: #f8e7d8;
  --grad: linear-gradient(135deg, #c2502a 0%, #dd7a37 48%, #e6a63f 100%);
  --grad-soft: linear-gradient(135deg, #f8e7d8 0%, #fbf1e0 100%);

  /* 排版 */
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* 尺度 */
  --wrap: 1160px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow-s: 0 1px 2px rgba(27, 23, 19, .05), 0 2px 8px -4px rgba(27, 23, 19, .08);
  --shadow-m: 0 2px 4px rgba(27, 23, 19, .04), 0 16px 40px -20px rgba(27, 23, 19, .22);
  --shadow-l: 0 30px 70px -30px rgba(140, 60, 20, .35);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }

/* ---------------- 导航 ---------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-color: var(--line); background: color-mix(in srgb, var(--cream) 94%, transparent); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; }
.brand__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(194, 80, 42, .12);
}
.brand__name { font-family: var(--serif); font-size: 1.22rem; letter-spacing: .04em; }

.nav__links { display: flex; align-items: center; gap: 26px; font-size: .94rem; color: var(--ink-2); }
.nav__links a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .28s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta {
  padding: 9px 18px !important; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper) !important;
  font-size: .9rem; transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ---------------- 首屏 ---------------- */

.hero { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 132px) 0 clamp(56px, 8vw, 96px); }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; pointer-events: none;
  background:
    radial-gradient(42% 55% at 18% 28%, rgba(226, 160, 60, .30) 0%, transparent 62%),
    radial-gradient(38% 50% at 82% 18%, rgba(194, 80, 42, .22) 0%, transparent 64%),
    radial-gradient(60% 60% at 50% 0%, rgba(255, 253, 248, .85) 0%, transparent 70%);
  filter: blur(6px);
}
.hero__inner { position: relative; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 6.2vw, 4.6rem);
  line-height: 1.14;
  letter-spacing: .015em;
  margin: .28em 0 .42em;
  max-width: 17em;
  font-weight: 600;
}
.hero__lede { font-size: clamp(1rem, 1.35vw, 1.16rem); color: var(--ink-2); max-width: 34em; margin: 0 0 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-3); margin: 0 0 8px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.kicker--light { color: #f6d9c2; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: .84rem; color: var(--ink-2); box-shadow: var(--shadow-s);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.chip--accent { background: var(--accent-soft); border-color: #eed3bd; color: var(--accent-3); }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: .95rem; font-weight: 500; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-l); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 34px 70px -28px rgba(140, 60, 20, .55); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-3); background: rgba(255, 253, 248, .7); }
.btn--light { background: var(--paper); color: var(--ink); border-color: transparent; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn--sm { padding: 8px 16px; font-size: .86rem; }

/* ---------------- 区块 ---------------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--first { padding-top: clamp(48px, 6vw, 72px); }
.section--tint { background: linear-gradient(180deg, rgba(255, 253, 248, .7), rgba(247, 242, 232, 0)); }
.section--muted { background: var(--paper); border-top: 1px solid var(--line-soft); }

.section__head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 52px); }
.section__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.28; letter-spacing: .01em; margin: 0 0 .5em;
}
.section__title--small { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.section__lede { color: var(--ink-2); margin: 0; max-width: 36em; }

.group__title {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin: 42px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.group__title:first-of-type { margin-top: 18px; }

/* ---------------- 作品卡 ---------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: #dcceb6; }

.card__cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-soft); }
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__cover img { transform: scale(1.035); }

.card__coverArt { position: absolute; inset: 0; display: grid; place-items: center; }
.card__coverArt--1 { background: linear-gradient(135deg, #c2502a 0%, #e6a63f 100%); }
.card__coverArt--2 { background: linear-gradient(135deg, #7d4b2a 0%, #c98a4b 55%, #e8c79a 100%); }
.card__coverArt--3 { background: linear-gradient(135deg, #2f3b32 0%, #6b7f5e 60%, #b9c4a3 100%); }
.card__coverArt::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; mix-blend-mode: overlay;
}
.card__glyph {
  position: relative; font-family: var(--serif); font-size: 3.4rem; color: rgba(255, 253, 248, .92);
  text-shadow: 0 10px 30px rgba(0, 0, 0, .25); letter-spacing: .05em;
}
.card__badge {
  position: absolute; left: 16px; top: 16px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(255, 253, 248, .92); color: var(--accent-3);
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-s);
}

.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-family: var(--serif); font-size: 1.28rem; margin: 0; font-weight: 600; }
.card__title a:hover { color: var(--accent-3); }
.card__text { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.link-arrow { font-size: .9rem; color: var(--accent-3); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translate(3px, -3px); }
.link-quiet { font-size: .86rem; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.link-quiet:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------------- 行列表 ---------------- */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 56px 1fr auto 32px; align-items: center; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding .25s var(--ease);
}
.row:hover { background: rgba(255, 253, 248, .7); padding-inline: 14px; }
.row__index { font-family: var(--mono); font-size: .82rem; color: var(--ink-3); }
.row__title { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 2px; font-weight: 600; }
.row__title a:hover { color: var(--accent-3); }
.row__text { margin: 0; color: var(--ink-2); font-size: .93rem; max-width: 46em; }
.row__tag { font-size: .78rem; color: var(--accent-3); background: var(--accent-soft); padding: 4px 12px; border-radius: var(--r-pill); }
.row__go { font-size: 1.1rem; color: var(--ink-3); transition: transform .25s var(--ease), color .2s; }
.row:hover .row__go { transform: translate(3px, -3px); color: var(--accent); }

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

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 72px); align-items: start; }
.about__para { color: var(--ink-2); margin: 0 0 1em; max-width: 34em; }
.about__card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 30px 26px; box-shadow: var(--shadow-m);
}
.about__cardGlow {
  position: absolute; inset: -50% -30% auto auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 160, 60, .35), transparent 68%); filter: blur(10px);
}
.about__quote { position: relative; font-family: var(--serif); font-size: 1.16rem; line-height: 1.6; margin: 0 0 22px; color: var(--ink); }
.about__facts { position: relative; margin: 0; display: grid; gap: 12px; }
.about__facts > div { display: flex; gap: 14px; font-size: .9rem; padding-top: 12px; border-top: 1px dashed var(--line); }
.about__facts dt { color: var(--ink-3); min-width: 5em; margin: 0; }
.about__facts dd { margin: 0; color: var(--ink-2); }

/* ---------------- 联系 ---------------- */

.section--contact { padding-bottom: clamp(64px, 9vw, 110px); }
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 60px);
  background: linear-gradient(140deg, #241c17 0%, #3a2a20 52%, #55331f 100%);
  color: var(--cream); border-radius: 28px; padding: clamp(28px, 4vw, 54px);
  box-shadow: 0 40px 90px -40px rgba(60, 25, 10, .6);
}
.contact::before {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 160, 60, .28), transparent 65%); pointer-events: none;
}
.contact__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .2em 0 .5em; line-height: 1.3; }
.contact__lede { color: rgba(247, 242, 232, .78); margin: 0 0 18px; max-width: 26em; }
.contact__mail { color: #f0c69a; border-bottom: 1px solid rgba(240, 198, 154, .4); font-size: .95rem; }

.contact__form { position: relative; display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 7px; font-size: .86rem; }
.field > span { color: rgba(247, 242, 232, .68); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255, 253, 248, .07); border: 1px solid rgba(247, 242, 232, .22);
  color: #fff; outline: none; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 242, 232, .34); }
.field input:focus, .field textarea:focus { border-color: #e6a63f; background: rgba(255, 253, 248, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form .btn { justify-self: start; margin-top: 4px; }

.flash { margin: 0 0 6px; padding: 10px 14px; border-radius: var(--r-sm); font-size: .88rem; }
.flash--ok { background: rgba(120, 190, 130, .16); border: 1px solid rgba(120, 190, 130, .38); color: #cdeccf; }
.flash--err { background: rgba(230, 120, 100, .16); border: 1px solid rgba(230, 120, 100, .4); color: #f6cfc6; }

/* ---------------- 留存 ---------------- */

.archive { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.archive__item { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.archive__badge { font-size: .74rem; color: var(--ink-3); border: 1px solid var(--line); padding: 2px 10px; border-radius: var(--r-pill); }
.archive__title { font-family: var(--serif); font-size: 1rem; }
.archive__title:hover { color: var(--accent-3); }
.archive__text { color: var(--ink-3); }

/* ---------------- 作品详情 ---------------- */

.work { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.back { font-size: .88rem; color: var(--ink-3); }
.back:hover { color: var(--accent-3); }
.work__head { max-width: 44em; margin: 26px 0 30px; }
.work__title { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.2; margin: .3em 0 .35em; font-weight: 600; }
.work__lede { color: var(--ink-2); font-size: 1.06rem; margin: 0; max-width: 34em; }
.work__cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-m); }
.work__cover img { width: 100%; }
.work__coverArt {
  aspect-ratio: 16 / 8; display: grid; place-items: center;
  background: var(--grad); color: rgba(255, 253, 248, .95);
}
.work__coverArt span { font-family: var(--serif); font-size: 5rem; text-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
.work__body { max-width: 40em; margin: 40px 0 0; font-size: 1.02rem; color: var(--ink-2); }
.work__body p { margin: 0 0 1.2em; }
.work__cta { margin-top: 32px; }
.empty { color: var(--ink-3); padding: 40px 0; }
.notfound { padding-block: 40px; }

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

.footer { border-top: 1px solid var(--line); padding: 28px 0 34px; background: rgba(255, 253, 248, .6); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: .86rem; color: var(--ink-3); }
.footer__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__note { color: var(--ink-3); }
.footer__right { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__right a:hover { color: var(--accent-3); }

/* ---------------- 入场动画 ---------------- */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .nav__links { gap: 18px; font-size: .9rem; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .nav__inner { height: 60px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding-top: 56px; }
  .hero__actions .btn { width: 100%; }
  .row { grid-template-columns: 40px 1fr 26px; gap: 12px; }
  .row__tag { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .archive__item { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   后台：同一套 token，换成工作台布局
   ============================================================ */

.admin {
  min-height: 100vh; display: grid; grid-template-columns: 244px 1fr;
  background: var(--cream);
}

.admin__side {
  background: linear-gradient(180deg, #211a15 0%, #2c221a 100%);
  color: #e9e1d4; padding: 26px 18px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.admin__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid rgba(233, 225, 212, .12); }
.admin__brand .brand__name { color: #f6efe3; font-size: 1.1rem; }
.admin__nav { display: grid; gap: 4px; }
.admin__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-sm); font-size: .93rem; color: rgba(233, 225, 212, .76);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.admin__nav a:hover { background: rgba(246, 239, 227, .08); color: #fff; }
.admin__nav a.is-active { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -14px rgba(194, 80, 42, .8); }
.admin__nav .badge {
  min-width: 20px; padding: 1px 7px; border-radius: var(--r-pill);
  background: rgba(255, 253, 248, .16); font-size: .74rem; text-align: center;
}
.admin__nav a.is-active .badge { background: rgba(0, 0, 0, .22); }
.admin__sideFoot { margin-top: auto; display: grid; gap: 8px; font-size: .85rem; color: rgba(233, 225, 212, .55); }
.admin__sideFoot a { color: rgba(233, 225, 212, .8); }
.admin__sideFoot a:hover { color: #fff; }

.admin__main { padding: clamp(22px, 3vw, 40px); min-width: 0; }
.admin__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin__title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.admin__sub { color: var(--ink-3); font-size: .88rem; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-s);
}
.panel + .panel { margin-top: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel__title { font-size: 1rem; margin: 0; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-s);
}
.stat__num { font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; }
.stat__label { color: var(--ink-3); font-size: .84rem; }
.stat--accent { background: var(--grad-soft); border-color: #eed3bd; }
.stat--accent .stat__num { color: var(--accent-3); }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; font-weight: 500; color: var(--ink-3); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(248, 231, 216, .28); }
.table__title { font-family: var(--serif); font-size: 1rem; }
.table__slug { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.table__actions { display: flex; gap: 8px; justify-content: flex-end; }

.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .76rem; background: var(--accent-soft); color: var(--accent-3); }
.tag--muted { background: #efe9dd; color: var(--ink-3); }

.form { display: grid; gap: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .87rem; color: var(--ink-2); }
.form input[type=text], .form input[type=password], .form input[type=number], .form input[type=url],
.form textarea, .form select {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(226, 160, 60, .16); }
.form textarea { resize: vertical; min-height: 90px; }
.form__hint { color: var(--ink-3); font-size: .8rem; }
.form__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form__danger { margin-left: auto; }

.coverPreview { display: flex; align-items: center; gap: 14px; }
.coverPreview img { width: 132px; height: 82px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }

.msg { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: #fff; }
.msg + .msg { margin-top: 12px; }
.msg--unread { border-color: #eed3bd; background: var(--grad-soft); }
.msg__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.msg__who { font-weight: 600; }
.msg__when { color: var(--ink-3); font-size: .8rem; margin-left: auto; font-family: var(--mono); }
.msg__body { color: var(--ink-2); white-space: pre-wrap; }
.msg__foot { display: flex; gap: 8px; margin-top: 12px; }

.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: .88rem; margin-bottom: 16px; }
.alert--ok { background: #eaf5ea; border: 1px solid #c6e3c8; color: #2f6b36; }
.alert--err { background: #fdeeea; border: 1px solid #f2c9bf; color: #8d3320; }

/* 登录页 */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(226, 160, 60, .28), transparent 62%),
    radial-gradient(36% 46% at 80% 16%, rgba(194, 80, 42, .22), transparent 62%),
    var(--cream);
}
.login__card { width: min(100%, 404px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px; box-shadow: var(--shadow-m); }
.login__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.login__title { font-family: var(--serif); font-size: 1.42rem; margin: 0 0 6px; }
.login__sub { color: var(--ink-3); font-size: .88rem; margin: 0 0 22px; }

@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .admin__brand { border: none; padding: 0; }
  .admin__nav { grid-auto-flow: column; overflow-x: auto; }
  .admin__sideFoot { display: none; }
  .admin__main { padding: 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .table__actions { flex-direction: column; }
}
