/* =====================================================
   Join · 极简线条风格样式
   纸白底 / 墨线 / 一点朱红
   ===================================================== */

:root {
  --paper: #fbfaf7;
  --paper-2: #f5f3ee;
  --white: #ffffff;
  --ink: #18181b;
  --ink-2: #71717a;
  --line: #e7e4dc;
  --line-2: #d6d2c7;
  --accent: #ee4d26;
  --accent-soft: rgba(238, 77, 38, 0.08);
  --radius: 14px;
  --font-sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
.app-main { min-height: 60vh; display: block; }

.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 26px; height: 26px; color: var(--ink); }
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }
.logo-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-2);
  margin-left: 7px;
  vertical-align: 2px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.active { color: var(--paper); background: var(--ink); }
.nav a.nav-cta { display: inline-flex; align-items: center; gap: 6px; }
.nav a.nav-cta.active { background: var(--accent); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.user-chip:hover { border-color: var(--ink); }
.user-chip .user-name { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  flex-shrink: 0;
}
.avatar.mine { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.avatar.lg { width: 40px; height: 40px; font-size: 17px; }

.menu-btn {
  display: none;
  border: 1px solid var(--line-2);
  background: var(--white);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s, border-color 0.18s, transform 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: #d63d1b; border-color: #d63d1b; }
.btn.ghost { border-color: var(--line-2); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.danger { border-color: var(--accent); color: var(--accent); }
.btn.danger:hover { background: var(--accent); color: #fff; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: transparent; color: var(--ink); }
.btn.primary:disabled:hover { background: var(--ink); color: var(--paper); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--white); }
.icon-btn.danger:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { opacity: 0.75; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
  padding: 76px 24px 60px;
  max-width: 1120px;
  margin: 0 auto;
  background-image: radial-gradient(circle, #e4e1d7 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  background-position: -13px -13px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 6px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.85;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.hero-note svg { color: var(--accent); }
.hero-art { display: flex; justify-content: center; }
.line-art { width: 100%; max-width: 440px; height: auto; }

.float-1 { animation: floatY 5s ease-in-out infinite; }
.float-2 { animation: floatY 6s ease-in-out 0.8s infinite; }
.float-3 { animation: floatY 5.5s ease-in-out 1.6s infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 跑马灯 ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
  background: var(--white);
}
.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 42px;
}
.marquee-item i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  margin: 8px 0;
}
.stat { padding: 26px 24px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; font-size: 18px; color: var(--accent); vertical-align: 6px; margin-left: 2px; }
.stat span { font-size: 13px; color: var(--ink-2); }

/* ---------- 区块 ---------- */
.section { padding: 58px 0 6px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.section-index { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.section-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
.section-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}
.section-more:hover { color: var(--accent); }

/* ---------- 卡片 ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.18s, transform 0.18s var(--ease), box-shadow 0.18s;
}
.card.pad { padding: 24px; }
.card:hover { border-color: var(--ink); }
.card.static:hover { border-color: var(--line); }

.act-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  cursor: pointer;
}
.act-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(24, 24, 27, 0.06); }
.act-top { display: flex; justify-content: space-between; align-items: flex-start; }
.date-badge {
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 7px 11px 6px;
  min-width: 58px;
  background: var(--white);
}
.date-badge b { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.date-badge span { font-size: 11px; color: var(--ink-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--white);
  white-space: nowrap;
}
.chip.accent { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip { cursor: pointer; transition: all 0.15s; height: 30px; }
.chip-row .chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-row .chip.ink:hover { color: var(--paper); }

.act-title { font-size: 17px; font-weight: 600; line-height: 1.5; }
.act-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.meta-row .item { display: inline-flex; align-items: center; gap: 5px; }
.meta-row svg { flex-shrink: 0; }

.card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.card-foot b { color: var(--ink); font-weight: 600; }
.card-foot .count { margin-right: auto; }
.card-foot .joined { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.urgent { color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.urgent-line { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 9px; }
.status { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--accent); }
.status.full { color: var(--ink-2); }
.status.ended { color: var(--ink-2); }
.status.ended::before { background: var(--line-2); }

.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ink); border-radius: 2px; transition: width 0.7s var(--ease); }
.progress.full > i { background: var(--accent); }

/* ---------- 页面头 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 52px 0 30px;
}
.page-title { font-family: var(--font-serif); font-size: 38px; font-weight: 600; line-height: 1.2; }
.page-sub { color: var(--ink-2); font-size: 14px; margin-top: 10px; max-width: 56ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 网格 / 布局 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.two-col { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 表单元素 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field .label { text-transform: none; letter-spacing: 0.08em; font-size: 12px; }
input[type="text"], input[type="date"], input[type="time"], input[type="number"], input[type="tel"],
textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--white);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #b5b1a6; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form-error {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}
.check-line { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check-line input { accent-color: var(--accent); width: 15px; height: 15px; }
.stack { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- 活动详情 ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding-top: 40px;
  transition: color 0.15s;
}
.back:hover { color: var(--accent); }
.back svg { transform: rotate(180deg); }
.detail-grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 32px; align-items: start; padding: 22px 0 70px; }
.detail-title { font-family: var(--font-serif); font-size: 36px; font-weight: 600; line-height: 1.3; margin: 16px 0 18px; }
.detail-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.pin-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin: 20px 0 4px;
}
.pin-strip svg { color: var(--accent); flex-shrink: 0; }
.pin-strip b { font-weight: 600; }
.pin-strip .pin-link { margin-left: auto; color: var(--accent); font-size: 12.5px; white-space: nowrap; }

.meta-table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 26px 0; }
.meta-table .row { display: flex; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-table .row:last-child { border-bottom: 0; }
.meta-table .k { width: 64px; color: var(--ink-2); font-size: 12.5px; letter-spacing: 0.1em; flex-shrink: 0; padding-top: 1px; }
.meta-table .v { line-height: 1.7; }

.desc-block { margin: 26px 0 34px; }
.desc-block h3, .part-title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.desc-block h3::before, .part-title::before { content: ""; width: 14px; height: 1px; background: var(--accent); }
.desc-block p { color: var(--ink-2); line-height: 1.95; white-space: pre-wrap; }

.part-title { margin-top: 34px; }
.part-title .count-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.avatar-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.avatar-row .more {
  font-size: 12px;
  color: var(--ink-2);
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.part-list { display: flex; flex-direction: column; }
.part-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.part-item:last-child { border-bottom: 0; }
.part-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.part-info b { font-weight: 600; font-size: 14px; }
.part-info span { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.part-item time { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); flex-shrink: 0; }

.detail-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.reg-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.reg-card .big-date { display: flex; align-items: baseline; gap: 10px; }
.reg-card .big-date b { font-family: var(--font-serif); font-size: 34px; font-weight: 600; }
.reg-card .big-date span { color: var(--ink-2); font-size: 13px; }
.reg-rows { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.reg-rows .r { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.reg-rows svg { color: var(--ink); flex-shrink: 0; }
.reg-count { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; }
.reg-count b { color: var(--ink); }
.reg-form .field { margin-bottom: 14px; }
.reg-success {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 14px 16px;
}
.reg-success svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.reg-success b { font-size: 14.5px; display: block; margin-bottom: 3px; }
.reg-success p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 公告 ---------- */
.ann-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 60px; }
.ann-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
}
.ann-row:hover { transform: translateX(4px); }
.ann-date { text-align: center; flex-shrink: 0; width: 52px; }
.ann-date b { display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.ann-date span { font-size: 11px; color: var(--ink-2); }
.ann-main { flex: 1; min-width: 0; }
.ann-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ann-title svg { color: var(--accent); flex-shrink: 0; }
.ann-excerpt {
  font-size: 13px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-arrow { color: var(--ink-2); flex-shrink: 0; transition: transform 0.18s var(--ease), color 0.15s; }
.ann-row:hover .ann-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- 表单卡片 ---------- */
.form-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.form-card-head { display: flex; gap: 14px; align-items: flex-start; }
.fill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--ink);
  background: var(--white);
}
.form-card-head b { display: block; font-size: 16px; line-height: 1.45; margin-bottom: 4px; }
.form-card-head span { font-size: 12.5px; color: var(--ink-2); font-family: var(--font-mono); }
.form-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 24px;
}
.form-card .card-foot { gap: 8px; }
.form-card .card-foot .btn.sm { padding: 0 12px; }

/* ---------- 填写表单 ---------- */
.form-fill { padding: 34px; }
.form-fill-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.form-fill-head .fill-icon { width: 48px; height: 48px; border-radius: 14px; }
.form-fill-head h1 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.form-fill-head p { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.form-fill-head .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); margin-top: 8px; letter-spacing: 0.05em; }
.fill-field { margin-bottom: 26px; }
.fill-label { font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
.fill-label .req { color: var(--accent); margin-left: 4px; font-style: normal; }
.field-msg { font-size: 12px; color: var(--accent); margin-top: 7px; }
.fill-field.invalid input, .fill-field.invalid textarea { border-color: var(--accent); }
.opt-row { display: flex; flex-wrap: wrap; gap: 9px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 17px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--white);
  transition: all 0.15s;
  user-select: none;
}
.opt:hover span { border-color: var(--ink); color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.success-panel { text-align: center; padding: 46px 20px 38px; }
.success-panel .ok-ring {
  width: 62px;
  height: 62px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  animation: pop 0.4s var(--ease);
}
.success-panel h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.success-panel p { color: var(--ink-2); font-size: 14px; margin-bottom: 26px; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.summary-chips .chip { background: var(--paper-2); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 数据表格 ---------- */
.data-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.data-head h1 { font-family: var(--font-serif); font-size: 30px; font-weight: 600; }
.data-head .sub { color: var(--ink-2); font-size: 13.5px; margin-top: 8px; }
.data-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-transform: uppercase;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--paper-2);
}
td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; max-width: 300px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--paper-2); }
td.time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* ---------- 表单构建器 ---------- */
.builder-actions { display: flex; gap: 12px; margin: 22px 0 60px; flex-wrap: wrap; }
.builder-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--white);
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
.builder-field:hover { border-color: var(--line-2); }
.bf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bf-row .drag { color: var(--line-2); cursor: default; display: inline-flex; }
.f-label { flex: 1; min-width: 180px; font-weight: 600; }
.f-req { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; user-select: none; }
.f-req input { accent-color: var(--accent); width: 14px; height: 14px; }
.f-type { width: 130px; flex-shrink: 0; }
.bf-type-hint { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); }
.add-bar {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--white);
}
.add-bar .label { margin-right: 2px; }
.type-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.type-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.type-btn:hover { border-color: var(--ink); color: var(--ink); }
.type-btn:active { transform: scale(0.96); }

.phone {
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--white);
  padding: 30px 20px 24px;
  position: relative;
  box-shadow: 0 18px 44px rgba(24, 24, 27, 0.08);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.phone-body { display: flex; flex-direction: column; gap: 16px; }
.phone-title { font-family: var(--font-serif); font-size: 19px; font-weight: 600; line-height: 1.4; }
.phone-desc { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.mini-field { display: flex; flex-direction: column; gap: 7px; }
.mini-label { font-size: 12.5px; font-weight: 600; }
.mini-label i { font-style: normal; color: var(--accent); }
.mini-input { height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }
.mini-input.tall { height: 56px; }
.mini-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-opt { font-size: 11px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; color: var(--ink-2); }
.mini-submit {
  margin-top: 4px;
  height: 38px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.mini-empty { border: 1px dashed var(--line-2); border-radius: 10px; padding: 26px 12px; text-align: center; font-size: 12px; color: var(--ink-2); }

.tips { padding: 18px 20px; }
.tips .label { margin-bottom: 12px; }
.tips li { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; list-style: none; padding-left: 16px; position: relative; }
.tips li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px 24px; }
.step b {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 14px;
}
.step h4 { font-family: var(--font-serif); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 运营后台 ---------- */
.admin-kpis { margin-top: 6px; }
.admin-block { margin-top: 26px; }
.admin-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.admin-note { margin-top: 18px; }
.admin-note p:last-child { font-size: 13px; color: var(--ink-2); line-height: 1.95; margin-top: 12px; }
.src-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.src-badge.sample { border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); }
.src-badge.user { border: 1px solid var(--ink); color: var(--ink); }

/* ---------- 空状态 ---------- */
.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
  background: var(--white);
}
.empty .btn { margin-top: 18px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.34);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 120;
  animation: fade 0.2s;
}
.modal {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 18px;
  width: min(580px, 100%);
  max-height: 88vh;
  overflow: auto;
  animation: pop 0.26s var(--ease);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}
.modal-head h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 600; }
.modal-body { padding: 20px 24px 24px; }
.modal-body p { line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.confirm-text { font-size: 14.5px; color: var(--ink) !important; line-height: 1.8; }
.ann-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.ann-meta time { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); }

/* ---------- Toast ---------- */
#toast-root {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13.5px;
  display: flex;
  gap: 9px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(24, 24, 27, 0.22);
  animation: toastIn 0.32s var(--ease);
  max-width: 86vw;
}
.toast svg { color: #6ee7a8; flex-shrink: 0; }
.toast.error svg { color: #ffb4a2; }
.toast.out { animation: toastOut 0.28s forwards; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(14px) scale(0.97); opacity: 0; } }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 44px;
  align-items: start;
}
.footer-brand p { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: var(--ink-2); transition: color 0.15s; width: fit-content; }
.footer-links a:hover { color: var(--accent); }
.footer-meta p { font-size: 12.5px; color: var(--ink-2); line-height: 2; }
.footer-admin { font-size: 12.5px; color: var(--ink-2); width: fit-content; transition: color 0.15s; }
.footer-admin:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-art { order: -1; }
  .line-art { max-width: 340px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .preview-col { order: -1; display: flex; flex-direction: column; align-items: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 16px;
    gap: 4px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 10px; }
  .menu-btn { display: inline-flex; }
  .user-chip { margin-left: auto; }
  .grid, .grid.cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .page-title { font-size: 30px; }
  .detail-title { font-size: 28px; }
  .form-fill { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .ann-row { gap: 14px; padding: 16px; }
  .ann-excerpt { display: none; }
  .section { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
