/* ==========================================================================
   《目的地旅行指南》2026 年度酒店评选 — 报名页
   风格：瑞士国际主义（International Typographic Style）
   直角 · 编号系统 · 粗黑规则线 · 朱红单色强调 · 无阴影无渐变
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --paper: #FFFFFF;
  --paper-2: #F4F4F2;
  --ink: #111111;
  --ink-2: #3C3C3C;
  --ink-3: #8A8A8A;
  --hair: #DCDCDC;
  --hair-2: #E6E6E6;
  --red: #D93B23;
  --red-dark: #B32E1A;

  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1180px;
  --header-h: 64px;
  --gutter: 20px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}

p {
  margin: 0;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

/* ---------- 眉标（编号 + 小字） ---------- */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow-num {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: none;
  color: var(--ink);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--text {
  padding-inline: 4px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--text:hover {
  color: var(--ink);
}

.btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn--primary:disabled:hover {
  background: var(--ink);
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.primary-nav {
  display: none;
}

.site-header.nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.primary-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px var(--gutter);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--hair-2);
}

.primary-nav a:last-child {
  border-bottom: 0;
}

.primary-nav a:hover {
  background: var(--paper-2);
}

.nav-idx {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.primary-nav .nav-cta {
  justify-content: center;
  border-bottom: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.primary-nav .nav-cta .nav-idx {
  display: none;
}

.primary-nav .nav-cta:hover {
  background: var(--red);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav,
  .site-header.nav-open .primary-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    border: 0;
    background: none;
  }

  .primary-nav a {
    padding: 9px 14px;
    font-size: 13px;
    border-bottom: 0;
  }

  .primary-nav a:hover {
    background: none;
    color: var(--red);
  }

  .primary-nav .nav-cta {
    margin-left: 10px;
    padding: 10px 20px;
    color: #fff;
  }

  .primary-nav .nav-cta:hover {
    background: var(--red);
    color: #fff;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 36px 0 0;
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 0 0;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  padding-bottom: 40px;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 48px;
    align-items: center;
    padding-bottom: 56px;
  }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 8.4vw, 80px);
  /* 中文方块字在 1.0 以下的行高会互相贴住，留一点余量 */
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-br {
  display: none;
}

@media (min-width: 560px) {
  .hero-br {
    display: block;
  }
}

.hero .lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* Hero 右侧色块 */
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 26px 24px 24px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-card {
    min-height: 300px;
  }
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: var(--red);
}

.hero-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.hero-card-kicker {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A8A8A8;
}

.hero-card-year {
  margin: 18px 0 auto;
  font-size: clamp(58px, 9vw, 92px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.hero-card-rule {
  height: 1px;
  margin: 26px 0 14px;
  background: #3A3A3A;
}

.hero-card-cn {
  font-size: 13.5px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-card-en {
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A8A8A;
}

/* Hero 数据条 */
.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
}

.hero-meta li + li {
  border-top: 1px solid var(--hair);
}

.meta-key {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}

.meta-val {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

@media (min-width: 720px) {
  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-meta li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 20px 24px 20px 0;
  }

  .hero-meta li + li {
    border-top: 0;
    border-left: 1px solid var(--hair);
    padding-left: 24px;
  }

  .meta-val {
    text-align: left;
  }
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section {
  padding: 52px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 76px 0;
  }
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

@media (min-width: 860px) {
  .section-head {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
}

.section-head-main h2,
.section-head h2 {
  font-size: clamp(27px, 4.4vw, 42px);
  letter-spacing: -0.028em;
  line-height: 1.06;
}

.section-head .lede {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

/* ---------- 评选概要 ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 42px;
}

.card {
  padding: 24px 0 26px;
  border-top: 1px solid var(--ink);
}

.card + .card {
  border-top: 1px solid var(--hair);
}

.card-num {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.card h3 {
  margin: 10px 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
  }

  .card {
    border-top: 1px solid var(--ink);
  }

  .card + .card {
    border-top: 1px solid var(--ink);
  }
}

/* ==========================================================================
   报名表单区
   ========================================================================== */
.section--apply {
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 42px;
}

@media (min-width: 1000px) {
  .apply-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
    gap: 44px;
    align-items: start;
  }
}

.apply-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

@media (min-width: 720px) {
  .apply-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
    padding: 34px 32px 30px;
  }
}

.field {
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.req {
  color: var(--red);
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 40px;
  padding: 8px 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: #A8A8A8;
}

.field input:hover {
  border-bottom-color: var(--ink);
}

.field input:focus {
  outline: none;
  border-bottom-color: var(--red);
  box-shadow: 0 1px 0 0 var(--red);
}

.field.has-error input {
  border-bottom-color: var(--red);
  background: #FFF6F4;
}

.field.has-error input:focus {
  box-shadow: 0 1px 0 0 var(--red);
}

/* ---------- 奖项多选标签 ---------- */
.tag-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tag-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.field.has-error .tag-field {
  border-color: var(--red);
  background: #FFF6F4;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list:empty {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 5px 4px 9px;
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.tag-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tag-remove:hover {
  background: var(--red);
}

.tag-field input {
  flex: 1 1 150px;
  width: auto;
  min-width: 130px;
  min-height: 28px;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 16px;
  box-shadow: none;
}

.tag-field input:hover,
.tag-field input:focus {
  border: 0;
  background: none;
  box-shadow: none;
  outline: none;
}

.tag-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.preset {
  padding: 6px 11px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.preset:hover {
  background: var(--ink);
  color: #fff;
}

.preset[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.preset[aria-pressed="true"]:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

/* ---------- 提示 / 错误 ---------- */
.hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

.error {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
}

.field.has-error .error {
  display: block;
}

/* ---------- 操作区 ---------- */
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.draft-note {
  font-size: 11.5px;
  color: var(--ink-3);
}

@media (min-width: 720px) {
  .draft-note {
    margin-left: auto;
    text-align: right;
  }
}

.noscript-note {
  grid-column: 1 / -1;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--red);
  background: #FFF6F4;
  border: 1px solid var(--red);
}

/* ---------- 提交说明与失败提示 ---------- */
.submit-note {
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.submit-error {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 14px 16px;
  background: #FFF6F4;
  border: 1px solid var(--red);
}

.submit-error-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.submit-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- 侧栏流程卡 ---------- */
.aside-card {
  padding: 24px 22px 26px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-top: 4px solid var(--red);
}

.aside-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.aside-card h3 {
  margin-top: 8px;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.steps li + li {
  margin-top: 16px;
}

.steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-idx {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.steps p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.aside-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ==========================================================================
   关于
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 36px;
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
}

.about-copy p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.about-copy p + p {
  margin-top: 16px;
}

.about-en {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.en-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.en-body {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.82;
  color: var(--ink-2);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  padding: 36px 0 40px;
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-brand em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A8A8A;
}

.footer-meta {
  font-size: 12.5px;
  color: #B4B4B4;
}

.footer-note {
  margin-top: 3px;
  font-size: 11.5px;
  color: #7A7A7A;
}

/* ==========================================================================
   结果弹窗
   ========================================================================== */
dialog {
  width: min(600px, calc(100% - 24px));
  max-height: min(90dvh, 780px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(17, 17, 17, 0.64);
}

.dialog-head {
  padding: 22px 22px 0;
  border-top: 4px solid var(--red);
}

.dialog-head h2 {
  margin-top: 12px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.dialog-sub {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.dialog-ref {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--ink);
}

.dialog-body {
  padding: 18px 22px 0;
}

.result-text {
  max-height: 40dvh;
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 22px 22px;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   滚动入场
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .toast,
  .preset,
  .tag-remove,
  .nav-toggle-bar {
    transition: none !important;
  }
}

/* ==========================================================================
   兜底：脚本没有加载成功时，入场元素必须直接可见，不能留白
   ========================================================================== */
html.no-reveal .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* 蜜罐字段：正常用户看不到，脚本会去填 */
.dtg-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   打印
   ========================================================================== */
@media print {
  .site-header,
  .nav-toggle,
  .hero-card,
  .hero-actions,
  .apply-aside,
  .form-actions,
  .tag-presets,
  .tag-remove,
  .toast,
  dialog,
  .skip-link,
  .noscript-note {
    display: none !important;
  }

  html,
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .hero,
  .section {
    padding: 0 0 14pt;
    break-inside: avoid;
  }

  .section--apply {
    background: #fff;
    border: 0;
  }

  .apply-form {
    border: 0;
    padding: 0;
  }

  .apply-grid,
  .about-grid,
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 10pt;
  }

  .field input {
    border: 0;
    border-bottom: 1px solid #999;
  }

  .site-footer {
    background: #fff;
    color: #000;
    border-top: 1px solid #999;
  }

  .footer-brand strong,
  .footer-meta,
  .footer-note {
    color: #000;
  }
}
