/* ============================================================
   纠错与合作页 · 题头 / 勘误单 / 来信
   与 style.css、messages.css 一起加载；输入框、盖章、寄出状态沿用 messages.css
   ============================================================ */

/* ---------- 题头 ---------- */
.f-hero { position: relative; padding: calc(64px + clamp(56px, 11vh, 130px)) 0 clamp(20px, 4vh, 48px); overflow-x: clip; }
.f-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 110px); align-items: center; }
.f-lead { max-width: 34em; color: var(--ink-2); }
.f-lead .eyebrow { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--ink-3); margin-bottom: 1.6em; }
.f-lead h1 { margin: 0 0 .45em; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.1; font-weight: 900; letter-spacing: .1em; color: var(--ink); }

/* 一处校对：错字划掉，朱笔在上面改 */
.f-proof { font-size: clamp(19px, 1.6vw, 25px); line-height: 2.4; color: var(--ink); margin-bottom: .6em; }
.f-proof .fix { position: relative; display: inline-block; }
.f-proof s { color: var(--ink-3); text-decoration: line-through var(--cinnabar) 2px; }
.f-proof ins {
  position: absolute; left: 50%; bottom: 62%; transform: translateX(-50%) rotate(-7deg); white-space: nowrap;
  text-decoration: none; color: var(--cinnabar); font-size: 1.7em; line-height: 1;
  animation: ink-in 1.6s .9s var(--ease) both;
}
.f-proof ins::after {
  /* 插入号 ‸ */
  content: ""; position: absolute; left: 50%; bottom: -.32em; width: .34em; height: .22em; transform: translateX(-50%);
  border: 1.5px solid currentColor; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .8;
}

.f-mark {
  position: relative; font-size: clamp(150px, 19vw, 290px); line-height: 1; color: var(--cinnabar);
  padding-right: .1em;
}
.f-mark > span { display: block; animation: ink-in 2.2s .2s var(--ease) both; }
.f-mark .seal { position: absolute; left: -.9em; bottom: .14em; font-size: clamp(13px, 1.1vw, 17px); animation: stamp .5s 1.6s cubic-bezier(.3, 1.6, .5, 1) both; }

/* ---------- 勘误单 ---------- */
.f-fix { padding-top: clamp(60px, 9vh, 110px); overflow-x: clip; }
.slip {
  --line: 2.1em;
  position: relative; margin: 6px; padding: clamp(24px, 3vw, 40px) clamp(22px, 3.2vw, 46px) clamp(24px, 3vw, 38px);
  background: #f6f1e6; border: 1px solid rgba(26, 27, 30, .2); border-top: 4px solid var(--cinnabar);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 26px 60px -30px rgba(26, 27, 30, .35);
}
.slip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .7), transparent 55%), radial-gradient(90% 60% at 100% 100%, rgba(217, 207, 188, .5), transparent 60%);
}
.slip > * { position: relative; }
.slip-body { transition: opacity .6s var(--ease); }
.slip.sent .slip-body { opacity: .38; }
.slip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 1.2em; padding-bottom: .7em; border-bottom: 3px double var(--rule); }
.slip-head span { font-size: clamp(20px, 1.7vw, 25px); font-weight: 600; letter-spacing: .3em; }
.slip-date { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); white-space: nowrap; }

/* 每一栏：左边栏名，右边填写 */
.slip .field, .kinds { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); column-gap: 14px; align-items: end; margin: 0 0 1.25em; }
.kinds { border: 0; padding: 0; min-width: 0; align-items: center; }
.slip .field > label, .kinds legend { font-size: 15px; letter-spacing: .2em; color: var(--ink-2); padding: 0 0 6px; white-space: nowrap; }
.kinds legend { float: left; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 4px 14px 4px 15px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 14px; letter-spacing: .12em; color: var(--ink-2); transition: all .25s;
}
.chips label:hover span { border-color: var(--ink-3); color: var(--ink); }
.chips input:checked + span { background: var(--cinnabar); border-color: var(--cinnabar); color: #f6efe2; }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.slip.sent .chips { pointer-events: none; }

.slip .field input[type="text"] { font-size: 17px; padding: 4px 2px 5px; border-bottom: 1px solid rgba(26, 27, 30, .45); transition: border-color .3s; }
.slip .field input[type="text"]:focus { border-bottom-color: var(--cinnabar); }
.slip .field input[aria-invalid="true"] { border-bottom-color: var(--cinnabar); border-bottom-width: 2px; }
.slip .field-body { align-items: start; }
.slip .field-body > label { padding: calc((var(--line) - 1.5em) / 2) 0 0; line-height: 1.5; font-size: 15px; }
.slip .field-body .counter { grid-column: 2; }
.slip textarea { min-height: calc(var(--line) * 6); font-size: clamp(16px, 1.15vw, 18px); }
.slip .postmark { top: auto; bottom: clamp(70px, 9vw, 110px); }
.slip .status a { color: inherit; }

/* ---------- 合作与联系 ---------- */
.f-collab { padding: clamp(90px, 13vh, 160px) 0 0; overflow: hidden; background: linear-gradient(180deg, #0d1821 0%, #0b151d 100%); }
.f-collab .ch-num { color: var(--ember); }
.f-collab-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.card-mail > .mono { display: block; color: var(--foam-3); letter-spacing: .3em; margin-bottom: 1em; }
.mail {
  display: inline-block; font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(36px, 5vw, 78px); line-height: 1.08;
  letter-spacing: 0; color: var(--foam); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; padding-bottom: .08em; transition: background-size .5s var(--ease), color .3s;
}
.mail:hover { background-size: 100% 2px; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 3.4vh, 36px); }
.mail-btn {
  border: 1px solid var(--rule-d); background: transparent; color: var(--foam-2); padding: 8px 24px; border-radius: 999px; cursor: pointer;
  font-size: 14px; letter-spacing: .16em; line-height: 1.6; text-decoration: none; transition: all .25s;
}
.mail-btn:hover { color: var(--foam); border-color: var(--foam-2); }
a.mail-btn { background: var(--cinnabar); border-color: var(--cinnabar); color: #f6efe2; }
a.mail-btn:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.mail-btn:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; }
.copied { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--foam-3); min-height: 1em; }
.mail-note { margin: 1.4em 0 0; font-size: 14.5px; color: var(--foam-3); }

.f-topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-d); }
.f-topics li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule-d); }
.f-topics b { color: var(--foam); font-weight: 600; font-size: 17px; letter-spacing: .14em; }
.f-topics span { color: var(--foam-2); font-size: 14.5px; line-height: 1.85; }
.f-collab .footer { margin-top: clamp(90px, 13vh, 150px); }

/* English edition */
html[lang="en"] .f-lead { line-height: 1.62; }
html[lang="en"] .f-lead h1 { font-family: var(--latin); font-weight: 600; font-size: clamp(46px, 5.6vw, 86px); line-height: 1; letter-spacing: -.005em; }
html[lang="en"] .f-proof { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(23px, 2vw, 31px); line-height: 2.1; }
html[lang="en"] .f-proof ins { font-family: var(--latin); font-style: italic; font-weight: 600; font-size: 1.05em; bottom: 66%; }
html[lang="en"] .slip-head span { font-family: var(--latin); font-style: italic; font-weight: 600; font-size: clamp(25px, 2.1vw, 31px); letter-spacing: .005em; }
html[lang="en"] .slip .field > label, html[lang="en"] .kinds legend { font-family: var(--latin); font-style: italic; font-size: 20px; letter-spacing: .01em; padding-bottom: 3px; }
html[lang="en"] .kinds legend { padding: 0; }
html[lang="en"] .slip .field, html[lang="en"] .kinds { grid-template-columns: 4.6em minmax(0, 1fr); }
html[lang="en"] .slip .field-body > label { line-height: 1.3; padding-top: calc((var(--line) - 1.3em) / 2); }
html[lang="en"] .chips span, html[lang="en"] .mail-btn { letter-spacing: .03em; }
html[lang="en"] .f-topics b { font-family: var(--latin); font-weight: 600; font-size: 22px; letter-spacing: 0; line-height: 1.25; }
html[lang="en"] .f-topics span { font-size: 15.5px; line-height: 1.55; }

@media (max-width: 820px) {
  .f-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .f-lead { position: relative; z-index: 1; }
  .f-mark { position: absolute; right: -.04em; top: -.2em; font-size: min(46vw, 260px); opacity: .13; padding: 0; }
  .f-mark .seal { display: none; }
  .f-collab-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .slip .field, .kinds, html[lang="en"] .slip .field, html[lang="en"] .kinds { grid-template-columns: minmax(0, 1fr); }
  .kinds legend, html[lang="en"] .kinds legend { padding: 0 0 8px; }
  .slip .field > label { padding-bottom: 0; }
  .slip .field-body > label, html[lang="en"] .slip .field-body > label { padding: 0 0 4px; }
  .slip .field-body .counter { grid-column: 1; }
  .slip-date { display: none; }
  .mail-btn { padding: 8px 20px; }
}
