/* ==========================================================================
   梦云互联 · 服务器赞助计划
   样式系统 —— 三层令牌（原始值 → 语义 → 组件）

   字体说明：本站在中国大陆服务器上运行，fonts.googleapis.com 无法稳定访问，
   因此不引入任何在线字体，改用系统字体栈；中文在各平台都能得到高质量的
   默认字形（macOS/iOS 用苹方，Windows 用微软雅黑，Android 用思源黑体），
   同时避免了外链字体带来的首屏闪烁与额外请求。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 原始令牌
   -------------------------------------------------------------------------- */
:root {
  /* 中性色 */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* 品牌蓝 */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;

  /* 强调橙 */
  --orange-50:  #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;

  /* 语义色 */
  --green-50:  #F0FDF4;
  --green-100: #DCFCE7;
  --green-700: #15803D;
  --red-50:    #FEF2F2;
  --red-100:   #FEE2E2;
  --red-600:   #DC2626;
  --red-700:   #B91C1C;
  --amber-50:  #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-700: #B45309;

  /* 字号阶梯（基准 16px） */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* 间距阶梯（8px 基准） */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", "WenQuanYi Micro Hei", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 320ms;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);

  --wrap: 1120px;
  --wrap-narrow: 720px;
}

/* --------------------------------------------------------------------------
   2. 语义令牌
   -------------------------------------------------------------------------- */
:root {
  --color-bg:            var(--slate-50);
  --color-surface:       #FFFFFF;
  --color-surface-muted: var(--slate-100);
  --color-fg:            var(--slate-800);
  --color-fg-muted:      var(--slate-600);
  --color-fg-subtle:     var(--slate-500);
  --color-border:        var(--slate-200);
  --color-border-strong: var(--slate-300);

  --color-primary:       var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-primary-soft:  var(--blue-50);
  --color-on-primary:    #FFFFFF;

  --color-accent:        var(--orange-600);
  --color-accent-soft:   var(--orange-50);

  --color-success:       var(--green-700);
  --color-success-soft:  var(--green-50);
  --color-danger:        var(--red-600);
  --color-danger-soft:   var(--red-50);

  --color-ring:          var(--blue-600);

  --glass-bg:     rgba(255, 255, 255, 0.72);
  --glass-border: rgba(226, 232, 240, 0.9);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* 锚点跳转时避开吸顶导航 */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-fg);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

button { font: inherit; color: inherit; }

/* 键盘焦点始终可见 —— 无障碍硬性要求 */
:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 屏幕阅读器专用 */
.sr-only {
  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: absolute; left: var(--space-4); top: -100px;
  z-index: 999; padding: var(--space-3) var(--space-5);
  background: var(--color-surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* --------------------------------------------------------------------------
   4. 布局
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.wrap.narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--space-20); }
.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}
.section-head-left { text-align: left; margin-inline: 0; }
.section-head h1,
.section-head h2 {
  font-size: clamp(var(--text-2xl), 3.4vw, var(--text-3xl));
  margin-bottom: var(--space-3);
}
.section-sub {
  color: var(--color-fg-muted);
  font-size: var(--text-lg);
}
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   5. 顶部导航（玻璃拟态）
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-fg);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--color-fg); }

/* 官方 logo（梦云互联官网同步），透明底黑字，适配浅色页头 */
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--color-border);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: var(--text-base); font-weight: 700; }
.brand-text em {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-fg-muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-fg-muted);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-primary); text-decoration: none; }

.nav-cta {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-on-primary) !important;
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nav-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   6. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;                       /* 触摸目标 ≥44px */
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-lg { min-height: 52px; padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-sm { min-height: 36px; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.24);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-fg);
}
.btn-ghost:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--color-fg);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.24);
}
.btn-success:hover { background: #166534; color: #fff; transform: translateY(-1px); }

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.24);
}
.btn-danger:hover { background: var(--red-700); color: #fff; transform: translateY(-1px); }

.btn-copy {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-fg-muted);
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}
.btn-copy:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-copy-inline {
  background: none;
  border: none;
  padding: 0;
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-copy-inline:hover { color: var(--color-primary-hover); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24) var(--space-20);
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(46% 52% at 22% 34%, rgba(37, 99, 235, 0.16) 0%, transparent 68%),
    radial-gradient(42% 48% at 78% 22%, rgba(234, 88, 12, 0.10) 0%, transparent 66%),
    radial-gradient(52% 56% at 52% 6%,  rgba(96, 165, 250, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-fg-muted);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.16);
}

.hero-title {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.grad {
  background: linear-gradient(100deg, var(--blue-600) 0%, var(--blue-400) 45%, var(--orange-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto var(--space-10);
  font-size: var(--text-lg);
  color: var(--color-fg-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
}
.hero-trust svg { width: 16px; height: 16px; color: var(--green-700); }

/* --------------------------------------------------------------------------
   8. 步骤 / 卡片
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}
.step {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.step-no {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--blue-200);
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { color: var(--color-fg-muted); font-size: var(--text-sm); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { color: var(--color-fg-muted); font-size: var(--text-sm); }

.card-notice {
  text-align: center;
  border-color: var(--amber-100);
  background: var(--amber-50);
}
.card-notice h3 { color: var(--amber-700); margin-bottom: var(--space-2); }
.card-notice p { color: var(--slate-600); }

/* --------------------------------------------------------------------------
   9. 申请须知
   -------------------------------------------------------------------------- */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.notice {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.notice h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.notice h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.notice ul { list-style: none; display: grid; gap: var(--space-2); }
.notice li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
}
.notice li::before {
  content: "";
  position: absolute;
  left: 6px; top: 0.68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
.notice-ok { border-color: var(--green-100); background: var(--green-50); }
.notice-ok h3 { color: var(--green-700); }
.notice-no { border-color: var(--red-100); background: var(--red-50); }
.notice-no h3 { color: var(--red-700); }
.notice-info { border-color: var(--blue-100); background: var(--blue-50); }
.notice-info h3 { color: var(--blue-700); }
.notice-warn { border-color: var(--amber-100); background: var(--amber-50); }
.notice-warn h3 { color: var(--amber-700); }

/* 规则区里需要强调的一句 */
.notice li strong,
.notice-foot strong { color: var(--color-fg); }

.notice-foot {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-fg-subtle);
}

/* --------------------------------------------------------------------------
   10. 表单
   -------------------------------------------------------------------------- */
.form-card {
  padding: var(--space-10);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.form-card-sm { padding: var(--space-8); }

.field { margin-bottom: var(--space-6); }

.field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-fg);
}
.req-mark { color: var(--red-600); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-fg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 140px; line-height: 1.65; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--slate-400); }

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--slate-400); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.hint {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-fg-subtle);
  line-height: 1.6;
}
.counter { font-variant-numeric: tabular-nums; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--red-700);
}
.field-error::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 0.28em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 错误摘要：可聚焦、role=alert，键盘用户提交失败后能立刻定位 */
.error-summary {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--red-100);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-md);
  background: var(--red-50);
}
.error-summary h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  color: var(--red-700);
  margin-bottom: var(--space-3);
}
.error-summary h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.error-summary ul { list-style: none; display: grid; gap: var(--space-2); }
.error-summary li { font-size: var(--text-sm); }
.error-summary li a { color: var(--red-700); text-decoration: underline; text-underline-offset: 3px; }
.error-summary p { font-size: var(--text-sm); color: var(--red-700); }

/* 勾选框 */
.field-check { margin-bottom: var(--space-8); }
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-fg-muted);
  margin-bottom: 0;
}
.check input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin: 0.15em 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.check strong { display: block; color: var(--color-fg); font-weight: 600; }
.check em {
  display: block;
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-fg-subtle);
  margin-top: var(--space-1);
}

/* 验证码 */
.captcha-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.captcha-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  user-select: none;
}
.captcha-row input { flex: 1; min-width: 0; }

/* 蜜罐：真人看不见，机器人会填 */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions { margin-top: var(--space-8); }
.form-foot {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-fg-subtle);
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }

.faq summary {
  position: relative;
  padding: var(--space-5) var(--space-14) var(--space-5) var(--space-6);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background var(--dur-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--slate-100); }
.faq summary::after {
  content: "";
  position: absolute;
  right: var(--space-6);
  top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  background: var(--color-fg-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-fg-muted);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   12. 结果页 / 状态查询
   -------------------------------------------------------------------------- */
.page-center { padding-block: var(--space-16) var(--space-20); }

.result-card {
  padding: var(--space-12) var(--space-10);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.result-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
}
.result-icon svg { width: 32px; height: 32px; }
.result-icon-ok { background: var(--green-50); color: var(--green-700); }

.result-card h1 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.result-sub {
  max-width: 480px;
  margin: 0 auto var(--space-8);
  color: var(--color-fg-muted);
}

.ticket-box {
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
}
.ticket-label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-subtle);
}
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.ticket-row code {
  font-family: var(--font-mono);
  font-size: clamp(var(--text-lg), 4vw, var(--text-2xl));
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-fg);
  word-break: break-all;
}
.ticket-hint {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-fg-subtle);
}

/* --- 页脚展示代码（首页 #footer-code）-------------------------------- */
.code-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}
.code-card-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-subtle);
}
.code-block {
  margin: 0;
  padding: var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-fg);
  white-space: pre-wrap;
  word-break: break-all;
}
.code-block code { font-family: inherit; }

.code-preview-label {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-fg-subtle);
}
.code-preview {
  margin-top: var(--space-2);
  padding: var(--space-5);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}

.place-help { margin-top: var(--space-6); }
.place-help code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.10);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* 本站页脚的那行赞助展示 */
.footer-credit { color: var(--color-fg-muted); }

.result-steps {
  max-width: 460px;
  margin: 0 auto var(--space-8);
  padding-left: var(--space-6);
  text-align: left;
  color: var(--color-fg-muted);
  font-size: var(--text-sm);
  display: grid;
  gap: var(--space-3);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.status-card {
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--slate-400);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.status-card.status-pending  { border-left-color: var(--color-accent); }
.status-card.status-approved { border-left-color: var(--color-success); }
.status-card.status-rejected { border-left-color: var(--color-danger); }

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.status-ticket { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-fg-subtle); }

.status-meta { display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); }
.status-meta > div { display: flex; gap: var(--space-3); font-size: var(--text-sm); }
.status-meta dt { min-width: 80px; color: var(--color-fg-subtle); }
.status-meta dd { margin: 0; color: var(--color-fg); }

.status-note {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
}
.status-note-ok { color: var(--green-700); }
.status-note-no { color: var(--red-700); }

/* --------------------------------------------------------------------------
   13. 状态徽标 / flash
   -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.status-badge-pending  { background: var(--amber-100); color: var(--amber-700); }
.status-badge-approved { background: var(--green-100); color: var(--green-700); }
.status-badge-rejected { background: var(--red-100);   color: var(--red-700); }

.flash {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}
.flash-ok    { background: var(--green-50);  color: var(--green-700); border: 1px solid var(--green-100); }
.flash-error { background: var(--red-50);    color: var(--red-700);   border: 1px solid var(--red-100); }
.flash-warn  { background: var(--amber-50);  color: var(--amber-700); border: 1px solid var(--amber-100); }

/* --------------------------------------------------------------------------
   14. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-12);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.footer-inner { display: grid; gap: var(--space-8); }

.footer-brand { display: flex; align-items: flex-start; gap: var(--space-4); }
.footer-brand .brand-logo { height: 40px; }
.footer-brand strong { font-size: var(--text-base); }
.footer-brand p { font-size: var(--text-sm); color: var(--color-fg-subtle); }

.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.footer-links a { font-size: var(--text-sm); color: var(--color-fg-muted); }

.footer-legal {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-fg-subtle);
  display: grid;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   15. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-nav { gap: var(--space-4); }
  .site-nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 768px) {
  :root {
    --space-20: 4rem;
    --space-24: 4.5rem;
  }
  .section { padding-block: var(--space-16); }
  .hero { padding-block: var(--space-16) var(--space-12); }
  .form-card { padding: var(--space-6); }
  .result-card { padding: var(--space-8) var(--space-5); }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-q { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { text-align: left; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: var(--space-4); }
  .brand-text em { display: none; }
  .hero-trust { flex-direction: column; align-items: center; gap: var(--space-3); }
  .ticket-row { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   16. 动效偏好 / 打印
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card:hover, .step:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .form-actions { display: none; }
  body { background: #fff; }
}
