/* ==========================================================================
   非遗麦草画库 — 设计系统
   风格：简约大气 / 麦金 + 墨色 + 宣纸底
   ========================================================================== */

:root {
  --ink: #221e1a;
  --ink-soft: #6b6157;
  --ink-faint: #9a9188;
  --wheat: #c8a05a;
  --wheat-deep: #a87f33;
  --wheat-soft: #e3cd9d;
  --wheat-wash: #f4ecdc;
  --paper: #faf7f1;
  --paper-2: #f4efe5;
  --paper-3: #ffffff;
  --line: #e6ddcc;
  --line-soft: #efe8db;
  --ok: #3f7d55;
  --warn: #c0762c;
  --danger: #b4462f;

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

  --shadow-s: 0 1px 2px rgba(34, 30, 26, .04), 0 2px 8px rgba(34, 30, 26, .04);
  --shadow-m: 0 2px 6px rgba(34, 30, 26, .05), 0 12px 32px rgba(34, 30, 26, .07);
  --shadow-l: 0 8px 24px rgba(34, 30, 26, .08), 0 32px 64px rgba(34, 30, 26, .10);
  --r: 4px;
  --r-l: 10px;
  --nav-h: 68px;
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--wheat-soft); color: var(--ink); }

/* ---------- 版心 ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(250, 247, 241, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--wheat);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 17px; color: var(--wheat-deep);
  background: linear-gradient(145deg, #fff, var(--wheat-wash));
  border-radius: 2px;
}
.brand-mark img { width: 23px; height: 23px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 17px; letter-spacing: .06em; font-weight: 600; }
.brand-en { font-size: 10px; letter-spacing: .22em; color: var(--ink-faint); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 15px; font-size: 14.5px; color: var(--ink-soft);
  border-radius: var(--r); transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.is-active { color: var(--wheat-deep); font-weight: 600; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--wheat); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--paper-3); border-radius: var(--r); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px;
  border: 1px solid var(--line); background: var(--paper-3); color: var(--ink);
  border-radius: var(--r); cursor: pointer; font-size: 14.5px; white-space: nowrap;
  transition: all .22s var(--ease);
}
.btn:hover { border-color: var(--wheat); color: var(--wheat-deep); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: linear-gradient(160deg, var(--wheat), var(--wheat-deep));
  border-color: var(--wheat-deep); color: #fff; font-weight: 500;
  box-shadow: 0 4px 14px rgba(168, 127, 51, .22);
}
.btn-primary:hover { color: #fff; border-color: var(--wheat-deep); filter: brightness(1.05); box-shadow: 0 8px 22px rgba(168, 127, 51, .3); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--paper-2); border-color: transparent; color: var(--ink); }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 30px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- 用户胶囊 ---------- */
.user-chip {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 6px 0 6px;
  border: 1px solid var(--line); background: var(--paper-3); border-radius: 40px;
  cursor: pointer; transition: all .2s var(--ease); position: relative;
}
.user-chip:hover { border-color: var(--wheat); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(150deg, var(--wheat), var(--wheat-deep));
  color: #fff; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.user-chip-name { font-size: 13.5px; max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }

/* ---------- 页头 / 区块 ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wheat-deep); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--wheat); }

.section-title {
  font-family: var(--font-serif); font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.35; margin: 0 0 16px; letter-spacing: .02em; font-weight: 600;
}
.section-sub { color: var(--ink-soft); font-size: 15.5px; max-width: 620px; margin: 0; }
.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250,247,241,.97) 0%, rgba(250,247,241,.92) 34%, rgba(250,247,241,.62) 58%, rgba(250,247,241,.28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 118px 0 104px; max-width: 640px; }
.hero-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.2; letter-spacing: .04em;
  margin: 0 0 22px;
}
.hero-title em { font-style: normal; color: var(--wheat-deep); }
.hero-lede { font-size: 17px; color: var(--ink-soft); line-height: 1.85; margin: 0 0 34px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 22px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-serif); font-size: 30px; color: var(--wheat-deep); letter-spacing: .02em; line-height: 1.2; }
.stat-num small { font-size: 15px; margin-left: 2px; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 资源库卡片 ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lib-card {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.lib-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--wheat-soft); }
.lib-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.lib-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lib-card:hover .lib-media img { transform: scale(1.045); }
.lib-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(250,247,241,.94); color: var(--wheat-deep);
  font-size: 11.5px; letter-spacing: .12em; padding: 5px 11px; border-radius: 2px;
  border: 1px solid var(--wheat-soft);
}
.lib-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.lib-name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 0 0 10px; letter-spacing: .02em; }
.lib-desc { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.lib-points { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.lib-points li {
  font-size: 12.5px; color: var(--ink-soft); background: var(--paper-2);
  border: 1px solid var(--line-soft); padding: 3px 10px; border-radius: 20px;
}

/* ---------- 作品网格 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-item {
  position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--paper-2);
  aspect-ratio: 1 / 1; border: 1px solid var(--line);
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-item:hover img { transform: scale(1.05); }
.work-cap {
  position: absolute; inset: auto 0 0 0; padding: 34px 18px 16px;
  background: linear-gradient(to top, rgba(34,30,26,.82), transparent);
  color: #fff; font-size: 13.5px; letter-spacing: .04em;
  opacity: 0; transform: translateY(8px); transition: all .35s var(--ease);
}
.work-item:hover .work-cap { opacity: 1; transform: translateY(0); }
.work-cap b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.work-cap span { font-size: 12px; color: rgba(255,255,255,.78); }

/* ---------- 服务流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 26px 34px; border-right: 1px solid var(--line-soft); position: relative; }
.step:last-child { border-right: 0; }
.step-no { font-family: var(--font-serif); font-size: 13px; color: var(--wheat); letter-spacing: .16em; margin-bottom: 14px; }
.step-title { font-size: 16.5px; font-weight: 600; margin: 0 0 9px; }
.step-desc { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- 页面头 ---------- */
.page-head { padding: 68px 0 44px; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.page-title { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; letter-spacing: .04em; font-weight: 600; }
.page-desc { color: var(--ink-soft); margin: 0; max-width: 660px; font-size: 15.5px; }
.crumb { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .1em; margin-bottom: 14px; }
.crumb a:hover { color: var(--wheat-deep); }

/* ---------- 工具条 / 筛选 ---------- */
.toolbar {
  border-bottom: 1px solid var(--line-soft); background: var(--paper);
  position: sticky; top: var(--nav-h); z-index: 40; padding: 16px 0;
}
.toolbar-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  height: 38px; padding: 0 17px; border: 1px solid var(--line); background: var(--paper-3);
  border-radius: 20px; cursor: pointer; font-size: 14px; color: var(--ink-soft);
  transition: all .2s var(--ease); white-space: nowrap;
}
.tab:hover { border-color: var(--wheat); color: var(--wheat-deep); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.search-box { position: relative; margin-left: auto; min-width: 230px; }
.search-box input {
  width: 100%; height: 40px; padding: 0 16px 0 38px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--paper-3); outline: none; transition: all .2s var(--ease);
}
.search-box input:focus { border-color: var(--wheat); box-shadow: 0 0 0 3px rgba(200,160,90,.13); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  height: 32px; padding: 0 13px; border: 1px solid var(--line-soft); background: transparent;
  border-radius: 20px; cursor: pointer; font-size: 13px; color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--wheat-soft); color: var(--wheat-deep); }
.chip.is-active { background: var(--wheat-wash); border-color: var(--wheat-soft); color: var(--wheat-deep); }
.chip em { font-style: normal; margin-left: 6px; font-size: 11px; color: var(--ink-faint); }
.chip.is-active em { color: var(--wheat-deep); opacity: .85; }
.chip-more { border-style: dashed; color: var(--wheat-deep); }

.result-line { font-size: 13.5px; color: var(--ink-faint); padding: 20px 0 0; }
.result-line b { color: var(--ink); font-weight: 600; }

/* ---------- 资源卡片 ---------- */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 30px 0 0; }
.res-card {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--wheat-soft); }
.res-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); position: relative; }
.res-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.res-card:hover .res-media img { transform: scale(1.05); }
.res-cat {
  position: absolute; top: 10px; left: 10px; font-size: 11px; padding: 4px 9px;
  background: rgba(34,30,26,.72); color: #fff; border-radius: 2px; letter-spacing: .06em;
  backdrop-filter: blur(3px);
}
.res-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.res-name {
  font-size: 15.5px; font-weight: 600; margin: 0 0 7px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.res-brief {
  font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.res-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-faint); border-top: 1px solid var(--line-soft); padding-top: 11px; }
.res-owner { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.res-owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92px; }

/* ---------- 详情弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(30, 26, 22, .5); backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; animation: fadeIn .22s var(--ease); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-card {
  background: var(--paper); border-radius: var(--r-l); width: 100%; max-width: 880px;
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow-l);
  animation: rise .3s var(--ease); position: relative;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }
.modal-sm { max-width: 520px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; z-index: 3;
  border: 1px solid var(--line); background: rgba(250,247,241,.92); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; font-size: 18px; line-height: 1;
  color: var(--ink-soft); transition: all .2s var(--ease);
}
.modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-head { padding: 26px 30px 0; }
.modal-title { font-family: var(--font-serif); font-size: 23px; margin: 0 0 8px; font-weight: 600; }
.modal-body { padding: 22px 30px 30px; }
.detail-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; }
.detail-img { background: var(--paper-2); }
.detail-img img { width: 100%; height: 100%; object-fit: cover; max-height: 460px; }
.detail-info { padding: 30px; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 10px 14px; font-size: 14px; margin: 20px 0 0; }
.kv dt { color: var(--ink-faint); font-size: 13px; }
.kv dd { margin: 0; color: var(--ink); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.label { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.label .req { color: var(--danger); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--paper-3); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { height: auto; min-height: 108px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%239a9188' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--wheat); box-shadow: 0 0 0 3px rgba(200,160,90,.13); }
.input::placeholder, .textarea::placeholder { color: #b8b0a5; }
.hint { font-size: 12.5px; color: var(--ink-faint); }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 17px;
  border: 1px solid var(--line); background: var(--paper-3); border-radius: 20px;
  font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: all .2s var(--ease);
}
.radio-pill input:checked + span { background: var(--wheat-wash); border-color: var(--wheat); color: var(--wheat-deep); font-weight: 500; }

.upload-zone {
  border: 1.5px dashed var(--line); border-radius: var(--r-l); background: var(--paper-3);
  padding: 30px 20px; text-align: center; cursor: pointer; transition: all .22s var(--ease);
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--wheat); background: var(--wheat-wash); }
.upload-zone svg { color: var(--wheat); margin-bottom: 10px; }
.upload-zone p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.upload-zone small { color: var(--ink-faint); font-size: 12.5px; }
.upload-preview { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.thumb-preview { position: relative; width: 92px; height: 92px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.thumb-preview button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: rgba(34,30,26,.72); color: #fff; cursor: pointer; font-size: 12px;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- 卡片容器 ---------- */
.panel {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 30px 32px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.panel-title { font-family: var(--font-serif); font-size: 19px; font-weight: 600; margin: 0; }

/* ---------- 订单列表 ---------- */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-item {
  display: flex; gap: 18px; align-items: center; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper-3);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.order-item:hover { border-color: var(--wheat-soft); box-shadow: var(--shadow-s); }
.order-thumb { width: 66px; height: 66px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); flex-shrink: 0; display: grid; place-items: center; color: var(--ink-faint); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-main { flex: 1; min-width: 0; }
.order-title { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.order-sub { font-size: 13px; color: var(--ink-soft); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 20px;
  font-size: 12px; letter-spacing: .04em; flex-shrink: 0;
}
.badge-pending { background: #fdf3e3; color: var(--warn); border: 1px solid #f0dcbd; }
.badge-done { background: #eaf4ed; color: var(--ok); border: 1px solid #cfe5d6; }
.badge-archive { background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---------- 空状态 / 提示 ---------- */
.empty { text-align: center; padding: 68px 24px; color: var(--ink-faint); }
.empty svg { color: var(--wheat-soft); margin-bottom: 14px; }
.empty p { margin: 0 0 18px; font-size: 14.5px; }

.toast-host { position: fixed; top: calc(var(--nav-h) + 16px); right: 22px; z-index: 400; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 380px;
  padding: 13px 18px; background: var(--ink); color: #fff; border-radius: var(--r);
  box-shadow: var(--shadow-l); font-size: 14px; animation: slideIn .28s var(--ease);
}
.toast.ok { background: #2f6242; }
.toast.err { background: #8f3a28; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px) } to { opacity: 1; transform: translateX(0) } }

/* ---------- 认证页 ---------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--ink); }
.auth-side img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.auth-side-txt { position: absolute; inset: auto 0 0 0; padding: 46px 44px; color: #fff; }
.auth-side-txt h2 { font-family: var(--font-serif); font-size: 26px; margin: 0 0 12px; font-weight: 600; letter-spacing: .04em; }
.auth-side-txt p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.72); max-width: 380px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 52px 28px; background: var(--paper); }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { font-family: var(--font-serif); font-size: 27px; margin: 0 0 8px; font-weight: 600; }
.auth-sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 28px; }
.segmented { display: flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 4px; margin-bottom: 26px; }
.segmented button {
  flex: 1; height: 36px; border: 0; background: transparent; border-radius: 18px;
  cursor: pointer; font-size: 14px; color: var(--ink-soft); transition: all .2s var(--ease);
}
.segmented button.is-active { background: var(--paper-3); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-s); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-alt { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.link-gold { color: var(--wheat-deep); cursor: pointer; }
.link-gold:hover { text-decoration: underline; }
.form-msg { font-size: 13.5px; padding: 11px 14px; border-radius: var(--r); display: none; }
.form-msg.is-err { display: block; background: #fbeeea; color: var(--danger); border: 1px solid #f2d6ce; }
.form-msg.is-ok { display: block; background: #eaf4ed; color: var(--ok); border: 1px solid #cfe5d6; }
.auth-note {
  margin-top: 26px; padding: 14px 16px; background: var(--wheat-wash);
  border: 1px solid var(--wheat-soft); border-radius: var(--r);
  font-size: 12.5px; color: #7d6428; line-height: 1.7;
}

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 34px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 4px; }
.info-item { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.info-item:last-child { border-bottom: 0; }
.info-ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r); display: grid; place-items: center;
  background: var(--wheat-wash); color: var(--wheat-deep); border: 1px solid var(--wheat-soft);
}
.info-k { font-size: 13px; color: var(--ink-faint); margin-bottom: 3px; }
.info-v { font-size: 14.5px; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 0; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 15.5px; font-weight: 500; transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--wheat-deep); }
.faq-q i { font-style: normal; color: var(--wheat); font-size: 19px; transition: transform .28s var(--ease); flex-shrink: 0; }
.faq-item.is-open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-item.is-open .faq-a { max-height: 340px; }
.faq-a p { margin: 0 0 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand-mark { border-color: var(--wheat); color: var(--wheat); background: transparent; }
.footer .brand-name { color: #fff; }
.footer-about { font-size: 13.5px; line-height: 1.85; margin: 18px 0 0; max-width: 320px; color: rgba(255,255,255,.6); }
.footer-h { font-size: 13px; color: #fff; letter-spacing: .1em; margin: 0 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-links a { color: rgba(255,255,255,.62); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--wheat); }
.footer-bot { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: rgba(255,255,255,.42); flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid, .work-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--paper); padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 13px 12px; }
  .nav-link.is-active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { margin-left: auto; }
  .user-menu { top: calc(100% + 10px); }
  .hero-inner { padding: 76px 0 66px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(250,247,241,.96) 0%, rgba(250,247,241,.9) 55%, rgba(250,247,241,.78) 100%); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .section { padding: 62px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line-soft); }
  .step:nth-child(2n) { border-right: 0; }
  .detail-split { grid-template-columns: 1fr; }
  .detail-img img { max-height: 300px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .res-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { position: static; }
  .search-box { margin-left: 0; width: 100%; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .lib-grid, .res-grid, .form-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 22px 20px; }
  .modal { padding: 0; }
  .modal-card { max-height: 100vh; border-radius: 0; }
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
  .detail-info { padding: 24px 22px; }
  .order-item { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1; }
  .brand-en { display: none; }
}
