/* ==========================================================================
   青少年知墨研学创作交流组委会 · 官网样式
   配色：墨黑 / 宣纸 / 朱砂 / 金
   ========================================================================== */

:root {
  --ink: #16140f;
  --ink-2: #2c2820;
  --ink-3: #4a4438;
  --paper: #f5f1e8;
  --paper-2: #fbf8f1;
  --paper-3: #ede7da;
  --cinnabar: #a9332a;
  --cinnabar-l: #c4453a;
  --gold: #b98a4e;
  --gold-l: #d9b978;
  --muted: #7a7266;
  --muted-2: #9a9184;
  --line: #ddd5c5;
  --shadow-sm: 0 1px 2px rgba(22, 20, 15, .06), 0 4px 14px rgba(22, 20, 15, .05);
  --shadow-md: 0 2px 6px rgba(22, 20, 15, .07), 0 14px 40px rgba(22, 20, 15, .09);
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(185, 138, 78, .06), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(169, 51, 42, .045), transparent 42%);
  background-attachment: fixed;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--ink);
  color: #cfc7b8;
  font-size: 12.5px;
  letter-spacing: .06em;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar .wrap > span { line-height: 1.7; }
.topbar .tb-more { white-space: nowrap; }
.topbar b { color: var(--gold-l); font-weight: 500; }
.topbar a { color: #cfc7b8; border-bottom: 1px solid rgba(207, 199, 184, .3); }
.topbar a:hover { color: var(--gold-l); }
.topbar .tb-right { white-space: nowrap; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(245, 241, 232, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(22, 20, 15, .07); background: rgba(251, 248, 241, .95); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .12em; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .16em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-3);
  position: relative;
  padding: 6px 0;
  letter-spacing: .06em;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--cinnabar);
  transition: width .28s ease, left .28s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }
.nav-links a.active { color: var(--ink); font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- 按钮 ---------- */
/* hidden 属性必须能压住 .btn 的 display，否则按钮藏不掉 */
[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 14.5px;
  letter-spacing: .08em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
  background: none;
}
.btn-primary { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn-primary:hover { background: var(--cinnabar); border-color: var(--cinnabar); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(169, 51, 42, .22); }
.btn-gold { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.btn-gold:hover { background: var(--cinnabar-l); border-color: var(--cinnabar-l); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(169, 51, 42, .25); }
.btn-line { border-color: var(--ink-3); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink-3); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* 汉堡按钮 */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  border-radius: 2px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 96px; }
.hero::before {
  content: "墨";
  position: absolute;
  right: -2%;
  top: 46%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(320px, 46vw, 620px);
  line-height: 1;
  color: rgba(22, 20, 15, .035);
  pointer-events: none;
  user-select: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .24em;
  color: var(--cinnabar);
  margin-bottom: 26px;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--cinnabar); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.28;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: .04em;
}
.hero h1 em { font-style: normal; color: var(--cinnabar); }
.hero-lead {
  font-size: 17px;
  line-height: 2.05;
  color: var(--ink-3);
  max-width: 600px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 13px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* Hero 右侧：竖排书法卡 */
.hero-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 42px 36px 34px;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(185, 138, 78, .28);
  pointer-events: none;
}
.hero-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.hero-card-tag { font-size: 11px; letter-spacing: .2em; color: var(--gold-l); }
.hero-card-seal {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .32em;
  color: #c9bda8;
}
.hero-vertical {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 2.1;
  letter-spacing: .3em;
  color: #f0e9db;
  height: 226px;
  width: fit-content;
  margin: 0 auto 22px;
  display: block;
}
.hero-card-foot {
  border-top: 1px solid rgba(240, 233, 219, .16);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a89d8a;
  letter-spacing: .1em;
}
.hero-card-foot b { color: var(--gold-l); font-weight: 500; }

/* 倒计时 */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.cd-cell {
  background: rgba(240, 233, 219, .06);
  border: 1px solid rgba(240, 233, 219, .12);
  padding: 12px 4px;
  text-align: center;
  border-radius: 2px;
}
.cd-num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-l); line-height: 1.2; font-variant-numeric: tabular-nums; }
.cd-lab { font-size: 10.5px; color: #9c9282; letter-spacing: .14em; margin-top: 2px; }

/* ---------- 数据条 ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, .6);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.stat b span { font-size: 15px; margin-left: 3px; color: var(--muted); font-weight: 400; }
.stat p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: .12em; }

/* ---------- 通用章节 ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.paper2 { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 700px; margin-bottom: 54px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--cinnabar);
  margin-bottom: 14px;
}
.section.dark .eyebrow { color: var(--gold-l); }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px;
  letter-spacing: .05em;
}
.sec-desc { font-size: 15.5px; line-height: 1.95; color: var(--ink-3); margin: 0; }
.section.dark .sec-desc { color: #b5ac9c; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 2px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #cdc3b0; }
.card-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .18em;
  margin-bottom: 14px;
  display: block;
}
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: .06em;
  line-height: 1.5;
}
.card p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-3); }
.card .tag { font-size: 11.5px; color: var(--muted); letter-spacing: .1em; margin-top: 16px; display: block; }

.section.dark .card {
  background: rgba(240, 233, 219, .045);
  border-color: rgba(240, 233, 219, .13);
}
.section.dark .card:hover { background: rgba(240, 233, 219, .075); border-color: rgba(185, 138, 78, .4); }
.section.dark .card h3 { color: #f0e9db; }
.section.dark .card p { color: #a89d8a; }

/* ---------- 赛程时间轴 ---------- */
.timeline { position: relative; padding-left: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.timeline.tl-4 { grid-template-columns: repeat(4, 1fr); }
.tl-item { position: relative; padding: 0 18px; text-align: center; }
.tl-item::before {
  content: "";
  position: absolute;
  top: 11px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.tl-item:first-child::before { left: 50%; }
.tl-item:last-child::before { right: 50%; }
.tl-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--muted-2);
  margin: 7px auto 20px;
  position: relative;
  z-index: 2;
}
.tl-item.done .tl-dot { background: var(--cinnabar); border-color: var(--cinnabar); }
.tl-item.now .tl-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(185, 138, 78, .18); }
.tl-date { font-size: 12px; color: var(--cinnabar); letter-spacing: .1em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.tl-name { font-family: var(--serif); font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: .06em; }
.tl-desc { font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.section.dark .tl-item::before { background: rgba(240, 233, 219, .18); }
.section.dark .tl-dot { background: var(--ink); border-color: rgba(240, 233, 219, .4); }
.section.dark .tl-item.done .tl-dot { background: var(--gold); border-color: var(--gold); }
.section.dark .tl-date { color: var(--gold-l); }
.section.dark .tl-name { color: #f0e9db; }
.section.dark .tl-desc { color: #a89d8a; }

/* ---------- 奖项 ---------- */
.award-row { display: grid; grid-template-columns: 190px 1fr; border-top: 1px solid var(--line); }
.award-row:last-child { border-bottom: 1px solid var(--line); }
.award-l {
  padding: 30px 24px 30px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.award-badge {
  display: inline-block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 5px 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  align-self: flex-start;
}
.award-badge.a1 { color: #a9332a; }
.award-badge.a2 { color: #8a7a5c; }
.award-badge.a3 { color: #6d7a6b; }
.award-badge.a4 { color: var(--muted); }
.award-n { font-size: 12.5px; color: var(--muted); margin-top: 12px; letter-spacing: .08em; }
.award-r { padding: 30px 0 30px 34px; }
.award-r h4 { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; letter-spacing: .06em; }
.award-r p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.9; }

/* ---------- 引文 / 佳作 ---------- */
.quote-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cinnabar);
  padding: 30px 30px 26px;
  border-radius: 2px;
  transition: transform .3s, box-shadow .3s;
}
.quote-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quote-card blockquote {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 2.1;
  margin: 0 0 18px;
  color: var(--ink-2);
}
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 14px; }
.quote-who { font-size: 13px; color: var(--muted); }
.quote-who b { color: var(--ink); font-weight: 500; }
.quote-tag { font-size: 11.5px; color: var(--cinnabar); border: 1px solid rgba(169, 51, 42, .3); padding: 2px 9px; border-radius: 2px; letter-spacing: .08em; }

/* ---------- 查询区 ---------- */
.query-hero { padding: 62px 0 54px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.query-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 38px 40px 34px;
  border-radius: 3px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.query-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold) 60%, transparent);
}
.qform { display: grid; grid-template-columns: 1fr 1fr .95fr auto; gap: 14px; align-items: end; }
.qform.g2form { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; color: var(--muted); letter-spacing: .1em; }
.field label i { color: var(--cinnabar); font-style: normal; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  letter-spacing: .04em;
}
.field input::placeholder { color: #b5ac9c; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(185, 138, 78, .13);
}
.qhint { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.85; }
.qhint b { color: var(--ink-3); font-weight: 500; }

.qresult { margin-top: 40px; }
.q-empty {
  text-align: center;
  padding: 54px 24px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: rgba(251, 248, 241, .5);
}
.q-empty .ico { font-family: var(--serif); font-size: 34px; color: var(--line); margin-bottom: 14px; line-height: 1; }
.q-empty p { margin: 6px 0; font-size: 14px; }
.q-empty .strong { color: var(--ink-3); font-size: 15px; }
.q-empty .sub { font-size: 12.5px; color: var(--muted-2); }

/* 结果卡 */
.rcard {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: rise .45s ease both;
}
.rcard + .rcard { margin-top: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.rcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 30px;
  background: linear-gradient(180deg, rgba(185, 138, 78, .09), transparent);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.rcard-who { display: flex; align-items: center; gap: 16px; }
.rcard-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.rcard-name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; }
.rcard-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.rcard-award {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 8px 20px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.rcard-award.a1 { color: var(--cinnabar); background: rgba(169, 51, 42, .05); }
.rcard-award.a2 { color: #8a7a5c; background: rgba(138, 122, 92, .07); }
.rcard-award.a3 { color: #5f6f5e; background: rgba(95, 111, 94, .07); }
.rcard-award.a4 { color: var(--muted); background: rgba(122, 114, 102, .06); }

.rcard-body { padding: 26px 30px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 34px; }
.rrow { display: flex; gap: 12px; font-size: 14px; align-items: baseline; }
.rrow.full { grid-column: 1 / -1; }
.rrow dt { color: var(--muted); flex-shrink: 0; width: 74px; letter-spacing: .08em; font-size: 13px; }
.rrow dd { margin: 0; color: var(--ink); line-height: 1.7; }
.rrow dd.mono { font-family: "SF Mono", "JetBrains Mono", Consolas, monospace; font-size: 13.5px; letter-spacing: .06em; }
.rrow dd.work { font-family: var(--serif); font-size: 16px; font-weight: 700; }

.rcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 30px;
  border-top: 1px dashed var(--line);
  background: rgba(237, 231, 218, .35);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.rcard-foot .foot-right { display: inline-flex; align-items: center; gap: 14px; }
.btn-cert {
  appearance: none;
  border: 1px solid var(--ink-3);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .22s ease;
}
.btn-cert:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn-cert.alt { border-color: var(--line); color: var(--muted); }
.btn-cert.alt:hover { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.verify { display: inline-flex; align-items: center; gap: 7px; color: #4a6b4a; font-weight: 500; }
.verify::before {
  content: "✓";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #4a6b4a;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qcount { font-size: 13px; color: var(--muted); margin-bottom: 16px; letter-spacing: .06em; }
.qcount b { color: var(--cinnabar); font-weight: 500; }

/* 加载 */
.qloading { text-align: center; padding: 50px; color: var(--muted); font-size: 14px; }
.qspin {
  width: 26px; height: 26px;
  border: 2px solid var(--line);
  border-top-color: var(--cinnabar);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(185, 138, 78, .08);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-3);
}
.notice .nt { flex-shrink: 0; font-family: var(--serif); font-weight: 700; color: var(--gold); }
.notice p { margin: 0; }
.notice b { color: var(--ink); }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--paper-2); }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: rgba(237, 231, 218, .55); font-weight: 500; font-size: 13px; letter-spacing: .08em; color: var(--ink-3); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td { color: var(--ink-3); line-height: 1.8; }
.tbl td b { color: var(--ink); }

/* ---------- 折叠 FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .05em;
  list-style: none;
  position: relative;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted-2);
  transition: transform .3s;
}
.faq details[open] summary::after { content: "−"; color: var(--cinnabar); }
.faq summary:hover { color: var(--cinnabar); }
.faq .ans { padding: 0 40px 24px 0; font-size: 14.5px; line-height: 2; color: var(--ink-3); }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin: 0; }

/* ---------- CTA 区 ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(185, 138, 78, .2);
  pointer-events: none;
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; position: relative; }
.cta h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 0 0 16px; letter-spacing: .06em; }
.cta p { color: #b5ac9c; font-size: 15px; line-height: 1.95; margin: 0 0 30px; }
.cta .btn-primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.cta .btn-primary:hover { background: var(--cinnabar-l); border-color: var(--cinnabar-l); }

/* ---------- 页脚 ---------- */
.footer { background: #100e0a; color: #8f8677; font-size: 13px; padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(240, 233, 219, .1); }
.footer .brand-name { color: #e6dfd0; }
.footer .brand-sub { color: #7a7266; }
.footer-about { margin: 20px 0 0; line-height: 1.9; color: #7a7266; max-width: 320px; font-size: 12.5px; }
.footer h5 { font-family: var(--serif); font-size: 14.5px; color: #cfc7b8; margin: 0 0 18px; letter-spacing: .14em; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: #7a7266; transition: color .2s; font-size: 13px; }
.footer ul a:hover { color: var(--gold-l); }
.footer-contact li { color: #7a7266; font-size: 12.5px; line-height: 1.7; }
.footer-contact b { color: #b5ac9c; font-weight: 400; }
.footer-contact a {
  color: #c4bbab;
  border-bottom: 1px solid rgba(181, 172, 156, .28);
  transition: color .2s, border-color .2s;
}
.footer-contact a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  font-size: 12px;
  color: #6b6257;
  flex-wrap: wrap;
}
.footer-bottom a { color: #6b6257; }
.footer-bottom a:hover { color: #b5ac9c; }

/* ---------- 页面头（子页） ---------- */
.pagehead { padding: 70px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; background: var(--paper-2); }
.pagehead::after {
  content: attr(data-mark);
  position: absolute;
  right: 3%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(140px, 20vw, 240px);
  line-height: 1;
  color: rgba(22, 20, 15, .035);
  pointer-events: none;
  user-select: none;
}
.crumb { font-size: 12.5px; color: var(--muted-2); margin-bottom: 16px; letter-spacing: .08em; }
.crumb a:hover { color: var(--cinnabar); }
.crumb span { margin: 0 8px; opacity: .5; }
.pagehead h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin: 0 0 14px; letter-spacing: .06em; line-height: 1.35; }
.pagehead p { margin: 0; font-size: 15.5px; color: var(--ink-3); max-width: 660px; line-height: 1.95; }

/* ---------- 正文排版 ---------- */
.prose { max-width: 820px; }
.prose h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: .06em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; margin: 32px 0 12px; letter-spacing: .05em; }
.prose p { font-size: 15px; line-height: 2.05; color: var(--ink-3); margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { font-size: 15px; line-height: 2; color: var(--ink-3); margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 26px 0;
  padding: 20px 26px;
  background: rgba(185, 138, 78, .07);
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
}

/* 两栏布局 */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.side-sticky { position: sticky; top: 100px; }
.side-box { background: var(--paper-2); border: 1px solid var(--line); padding: 26px 24px; border-radius: 2px; }
.side-box + .side-box { margin-top: 20px; }
.side-box h4 { font-family: var(--serif); font-size: 15px; margin: 0 0 16px; letter-spacing: .12em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-box ol, .side-box ul { margin: 0; padding-left: 18px; }
.side-box li { font-size: 13px; color: var(--ink-3); line-height: 1.85; margin-bottom: 8px; }
.side-box li a:hover { color: var(--cinnabar); }

/* ---------- 滚动动画 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 24px; bottom: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 80;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--cinnabar); transform: translateY(-2px); }

/* ---------- 杂项 ---------- */
.mt0 { margin-top: 0; }
.mt24 { margin-top: 24px; }
.mt40 { margin-top: 40px; }
.mt56 { margin-top: 56px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .hero-grid { gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .side-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 260px;
    background: var(--paper-2);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 30px 30px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.3, .8, .3, 1);
    box-shadow: -10px 0 40px rgba(22, 20, 15, .12);
    z-index: 95;
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .nav-links a.active { color: var(--cinnabar); }
  .nav-links a::after { display: none; }
  .burger { display: flex; z-index: 96; }
  .nav-actions .btn span.long { display: none; }
  .hero { padding: 60px 0 66px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 14px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 20px; }
  .timeline.tl-4 { grid-template-columns: 1fr; }
  .tl-item { text-align: left; padding: 0 0 30px 26px; position: relative; }
  .tl-item::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: 100%; }
  .tl-item:first-child::before { top: 12px; left: 4px; }
  .tl-item:last-child::before { bottom: auto; height: 14px; }
  .tl-dot { position: absolute; left: -1px; top: 6px; margin: 0; }
  .award-row { grid-template-columns: 1fr; }
  .award-l { border-right: none; padding: 26px 0 8px; flex-direction: row; align-items: center; gap: 14px; }
  .award-n { margin-top: 0; }
  .award-r { padding: 0 0 24px; }
  .qform, .qform.g2form { grid-template-columns: 1fr; }
  .rcard-body { grid-template-columns: 1fr; }
  .query-panel { padding: 28px 22px; }
  .sec-head { margin-bottom: 38px; }
  .section { padding: 66px 0; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .topbar .tb-right { display: none; }
  .topbar { font-size: 11.5px; }
  .topbar .tb-more { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .rcard-head { padding: 18px 20px; }
  .rcard-body { padding: 22px 20px 20px; }
  .rcard-foot { padding: 14px 20px; }
  .rcard-award { font-size: 15px; padding: 6px 14px; }
  .brand-sub { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media print {
  .nav, .topbar, .footer, .totop, .cta, .qform, .query-hero .pagehead { display: none !important; }
  body { background: #fff; }
  .rcard { box-shadow: none; border-color: #ccc; }
}

/* ---------- 佳作展示 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; align-items: center; }
.filter-bar .flabel { font-size: 12.5px; color: var(--muted); letter-spacing: .12em; margin-right: 4px; }
.chip {
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13.5px;
  color: var(--ink-3);
  background: transparent;
  transition: all .22s ease;
  letter-spacing: .05em;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }

.work-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 34px 34px 28px;
  transition: box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.work-card:hover { box-shadow: var(--shadow-sm); border-color: #cdc3b0; }
.work-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.work-title { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .05em; line-height: 1.5; margin: 0; }
.work-title span { font-size: 15px; font-weight: 400; color: var(--muted); display: block; margin-top: 6px; letter-spacing: .08em; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.work-meta i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: .06em;
}
.work-body { font-family: var(--serif); font-size: 15.5px; line-height: 2.15; color: var(--ink-2); }
.work-body p { margin: 0 0 14px; text-indent: 2em; }
.work-body p:last-child { margin-bottom: 0; }
.work-card details { margin-top: 18px; }
.work-card summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--cinnabar);
  letter-spacing: .08em;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.work-card summary::-webkit-details-marker { display: none; }
.work-card summary::after { content: "↓"; font-size: 12px; transition: transform .25s; }
.work-card details[open] summary::after { transform: rotate(180deg); }
.work-more { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); animation: rise .35s ease both; }
.work-empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); }


/* ---------- 在线投稿 ---------- */
.sub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 338px; gap: 44px; align-items: start; }
.sub-panel {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 40px 42px 36px;
  box-shadow: var(--shadow-sm);
}
.sub-panel-top {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
}
.sub-step { display: flex; gap: 15px; align-items: flex-start; margin: 36px 0 20px; }
.sub-step:first-of-type { margin-top: 4px; }
.sub-step .sn {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: .1em;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 2px;
  margin-top: 2px;
}
.sub-step h3 { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; margin: 0 0 5px; }
.sub-step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  resize: vertical;
  min-height: 320px;
  letter-spacing: .03em;
}
.field textarea::placeholder { color: #b5ac9c; font-size: 14px; }
.field textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(185, 138, 78, .13); }

.sub-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.sub-meta .chars { color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.sub-flag { color: var(--muted); }
.sub-flag.ok { color: #4C6B4C; }
.sub-flag.warn { color: var(--cinnabar); }

.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); line-height: 1.85; margin: 0 0 14px; cursor: pointer; }
.chk input { margin: 5px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--cinnabar); }
.chk b { color: var(--ink); font-weight: 500; }

.sub-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.btn-link {
  appearance: none; background: none; border: 0; padding: 0;
  font-family: inherit; font-size: 13px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.btn-link:hover { color: var(--ink); }

.sub-msg {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.85;
  border-left: 3px solid var(--line);
  background: rgba(237, 231, 218, .45);
  color: var(--ink-3);
}
.sub-msg.show { display: block; }
.sub-msg.ok { border-left-color: #4C6B4C; }
.sub-msg.warn { border-left-color: var(--gold); }
.sub-msg.error { border-left-color: var(--cinnabar); }
.sub-msg ul { margin: 8px 0 0; padding-left: 20px; }
.sub-msg li { margin: 4px 0; }

.sub-out { margin-top: 26px; border: 1px solid var(--line); padding: 0 18px 18px; background: #fff; }
.sub-out summary { cursor: pointer; font-size: 13px; color: var(--ink-3); padding: 14px 0; letter-spacing: .06em; list-style: none; }
.sub-out summary::-webkit-details-marker { display: none; }
.sub-out summary::after { content: " ↓"; font-size: 11px; color: var(--muted); }
.sub-out textarea {
  width: 100%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.85;
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--ink-2);
  resize: vertical;
}
.sub-side .side-box:first-child { margin-top: 0; }
.sub-side .notice p { font-size: 13px; }

@media (max-width: 1024px) {
  .sub-layout { grid-template-columns: 1fr; gap: 34px; }
  .sub-panel { padding: 32px 26px 28px; }
}
@media (max-width: 640px) {
  .sub-panel { padding: 26px 18px 24px; }
  .field textarea { min-height: 260px; font-size: 15px; }
  .sub-actions .btn { flex: 1 1 46%; }
}

/* ---------- 赛段与费用 ---------- */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fee-cell {
  background: var(--paper-2);
  padding: 30px 24px 28px;
  position: relative;
}
.fee-cell.hl::before {
  content: "推荐";
  position: absolute;
  top: 0; right: 0;
  font-size: 11px;
  letter-spacing: .1em;
  color: #fff;
  background: var(--cinnabar);
  padding: 3px 10px;
}
.fee-stage {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gold);
  display: block;
}
.fee-num {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.15;
  color: var(--ink);
  margin: 8px 0 10px;
  letter-spacing: -.01em;
}
.fee-num small { font-size: 18px; color: var(--ink-3); margin-right: 4px; letter-spacing: 0; vertical-align: 7px; }
.fee-cell p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin: 0; }
.fee-free {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ink-3);
}
.fee-free b { font-family: var(--serif); font-size: 20px; color: var(--cinnabar); letter-spacing: .04em; }

@media (max-width: 900px) {
  .fee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .fee-grid { grid-template-columns: 1fr; }
  .fee-cell { padding: 24px 20px; }
  .fee-num { font-size: 30px; }
}

/* ---------- 统一邮箱条 ---------- */
.mailbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 24px 28px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
}
.mailbar-main { display: flex; flex-direction: column; gap: 6px; }
.mailbar-label {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold);
}
.mailbar-addr {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: .01em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color .2s;
  word-break: break-all;
}
.mailbar-addr:hover { color: var(--cinnabar); }
.mailbar p {
  flex: 1 1 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.mail-subject {
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
  margin: 0 0 10px !important;
  padding: 6px 10px;
  background: rgba(150, 116, 54, .07);
  border-left: 2px solid rgba(150, 116, 54, .35);
  letter-spacing: .02em;
}
.mail-subject b { color: var(--gold); font-weight: 600; }

@media (max-width: 620px) {
  .mailbar { padding: 20px 18px; }
  .mailbar-addr { font-size: 19px; }
}

/* ---------- 作品文件上传 ---------- */
.up-zone { margin-top: 26px; }

.up-or {
  position: relative;
  text-align: center;
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: .06em;
}
.up-or::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.up-or span { position: relative; padding: 0 14px; background: var(--paper-2); }

.up-drop {
  border: 1px dashed var(--line);
  background: var(--paper-2);
  padding: 30px 24px 26px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.up-drop:hover, .up-drop:focus-visible {
  border-color: var(--gold);
  background: rgba(185, 138, 78, .05);
  outline: none;
}
.up-drop.drag {
  border-color: var(--gold);
  background: rgba(185, 138, 78, .1);
  transform: scale(1.006);
}
.up-arrow {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 12px;
}
.up-t {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: .04em;
}
.up-t u { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.up-s { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; line-height: 1.7; }
.up-priv { font-size: 11.5px; color: var(--muted-2); margin: 0; line-height: 1.7; }

/* 有文件后，拖拽区与分隔文字收起 */
.up-zone.has-file .up-drop,
.up-zone.has-file .up-or { display: none; }

.up-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  padding: 18px 20px 16px;
}
.up-zone.is-error .up-card { border-left-color: var(--cinnabar); }

.up-head { display: flex; align-items: center; gap: 12px; }
.up-badge {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  background: #fff;
}
.up-badge.ok { color: #3f6b45; border-color: rgba(63, 107, 69, .4); background: rgba(63, 107, 69, .06); }
.up-badge.warn { color: #8a6a1f; border-color: rgba(185, 138, 78, .45); background: rgba(185, 138, 78, .08); }
.up-badge.bad { color: var(--cinnabar); border-color: rgba(169, 51, 42, .4); background: rgba(169, 51, 42, .06); }

.up-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.up-meta b {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.up-meta span { font-size: 12px; color: var(--muted-2); }

.up-x {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  transition: color .2s, border-color .2s;
}
.up-x:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.up-checks { list-style: none; margin: 14px 0 0; padding: 0; }
.up-check {
  display: flex;
  gap: 9px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
  padding: 4px 0;
}
.up-check b { font-weight: 600; color: var(--ink); }
.up-mark {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--muted-2);
}
.up-check.ok .up-mark { background: #4e7d55; }
.up-check.warn .up-mark { background: #b98a4e; }
.up-check.err .up-mark { background: var(--cinnabar); }
.up-check.err { color: var(--cinnabar); }
.up-check.err b { color: var(--cinnabar); }
.up-spin { background: transparent !important; color: var(--gold) !important; font-size: 14px; animation: up-spin 1s linear infinite; }
@keyframes up-spin { to { transform: rotate(360deg); } }

.up-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.up-actions .btn { padding: 8px 16px; font-size: 13px; }
.up-actions .btn-link { font-size: 13px; }
.up-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.up-sep { flex: 1 1 auto; }

/* 确认使用后：卡片转绿、按钮换位，给一个明确的「这一步完成了」的落点 */
.up-confirm {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.75;
  color: #3f6b45;
  background: rgba(63, 107, 69, .07);
  border-left: 3px solid #4e7d55;
}
.up-confirm b { font-weight: 600; color: #2f5535; }
.up-card.is-confirmed { border-left-color: #4e7d55; }
.up-card.is-confirmed .up-badge.ok { background: rgba(63, 107, 69, .12); }

.up-note {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted-2);
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}
.up-note b { color: var(--muted); font-weight: 600; }

/* 预览弹层 */
.up-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(22, 20, 15, .78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.up-modal[hidden] { display: none; }
.up-modal-box {
  width: min(960px, 100%);
  height: min(90vh, 900px);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.up-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.up-modal-bar div { display: flex; align-items: center; gap: 14px; }
.up-modal-bar a { font-size: 12px; color: var(--gold); border-bottom: 1px solid var(--gold); }
.up-modal-bar button {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.up-modal-bar button:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.up-modal-box iframe { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

@media (max-width: 620px) {
  .up-drop { padding: 24px 16px 22px; }
  .up-t { font-size: 15px; }
  .up-modal { padding: 0; }
  .up-modal-box { height: 100vh; width: 100%; }
  .up-actions { gap: 10px 14px; }
  .up-actions #s-upok { flex: 1 1 100%; width: 100%; }
  .up-sep { display: none; }
}

.up-say {
  margin: 10px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
  background: rgba(185, 138, 78, .1);
  border-left: 2px solid var(--gold);
}
.up-say[hidden] { display: none; }

.up-modal-tip {
  margin: 0;
  padding: 9px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--paper-3);
  border-top: 1px solid var(--line);
}

/* ============================================================
   窄屏表格卡片化（.tbl-stack）
   三列以上的长表格在手机上会把每列挤成三四个字竖排，读不动。
   加 .tbl-stack 后在 700px 以下改为「每行一张小卡片」，
   第一列作标题、其余行作正文。仅用于内容较长的说明型表格。
   ============================================================ */
@media (max-width: 700px) {
  .tbl-stack { background: transparent; }
  .tbl-stack thead { display: none; }
  .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack tr {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    margin-bottom: 12px;
    padding: 4px 0 10px;
  }
  .tbl-stack tr:last-child { border-bottom: 1px solid var(--line); }
  .tbl-stack td {
    border-bottom: none;
    padding: 6px 15px 4px;
    font-size: 14px;
  }
  .tbl-stack td:first-child {
    padding-top: 13px;
    font-size: 15px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 9px;
    margin-bottom: 4px;
  }
  .tbl-stack td:first-child b { font-size: 15.5px; }
  .tbl-stack td:last-child { padding-bottom: 12px; }
}
