/* =========================================================================
   CRE.AI 开物 — 公共样式
   设计规范见 docs/DESIGN.md。移动优先；断点 640 / 1024。
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #070E1F;
  --bg-deep: #03070F;
  --surface: #0C1A38;
  --surface-2: #0A1530;
  --line: rgba(92, 225, 255, 0.16);
  --line-strong: rgba(92, 225, 255, 0.38);
  --cyan: #5CE1FF;
  --gold: #D1A03A;
  --brand-navy: #14213D; /* Logo 原色，仅用于浅色底 */
  --text: #FFFFFF;
  --text-body: #C9D3E6;
  --text-muted: #8FA0C0;
  --paper: #FFFFFF;
  --error: #FF8A7A;
  --success: #6EE7A8;

  --font-zh: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-it: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-h1: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);

  --container: 1120px;
  --measure: 680px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 8rem);
  --header-h: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-zh);
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(it) body, body:lang(it) {
  font-family: var(--font-it);
  line-height: 1.65;
  letter-spacing: 0;
}

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

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(92, 225, 255, 0.3); color: var(--text); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
:lang(it) h1, :lang(it) h2 { letter-spacing: -0.015em; line-height: 1.15; }
:lang(it) h3 { line-height: 1.3; }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.45; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

strong { color: var(--text); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 3. Utilities ---------- */
[hidden] { display: none !important; } /* 组件的 display 不能覆盖 hidden 属性 */

.sr-only {
  position: absolute !important; /* 必须覆盖组件定位，供读屏使用 */
  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: 1rem; top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--bg); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

.eyebrow {
  display: block;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lead { font-size: var(--fs-lead); color: var(--text-body); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }
.accent { color: var(--cyan); }
.nobr { white-space: nowrap; } /* 中文标题按语义断行 */
.gold { color: var(--gold); }

/* ---------- 4. Sections ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section--deep { background: var(--bg-deep); }
.section--flush-top { padding-top: 0; }

/* 桌面端：左侧编号栏 + 右侧内容 */
.section__grid { display: grid; gap: 1.5rem; }
.section__head h2 { margin-bottom: 1.25rem; }

@media (min-width: 1024px) {
  .section__grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 4rem;
  }
  .section__grid > .eyebrow { padding-top: 0.6rem; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--cyan); color: #04101F; }
.btn--primary:hover { background: #8BEAFF; color: #04101F; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--small { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- 6. Logo plate（Logo 自带白底，只能放在白色底板上） ---------- */
.logo-plate {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--paper);
  border-radius: 6px;
  line-height: 0;
}
.logo-plate img { width: auto; height: 30px; }
.logo-plate--lg { padding: 10px 14px; border-radius: var(--radius); }
.logo-plate--lg img { height: 44px; }

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 14, 31, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand { flex: none; text-decoration: none; }

.site-nav { margin-left: auto; }

.site-nav__list { list-style: none; display: flex; gap: 0.25rem; }

.site-nav__list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 6px;
}
.site-nav__list a:hover { color: var(--text); }
.site-nav__list a[aria-current="page"] { color: var(--cyan); }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
}
.lang-switch > * {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.7rem;
  text-decoration: none;
  line-height: 1;
}
.lang-switch [aria-current] { background: rgba(92, 225, 255, 0.14); color: var(--text); }
.lang-switch a { color: var(--text-muted); }
.lang-switch a:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

/* 移动端：导航折叠为下拉面板 */
@media (max-width: 1023.98px) {
  .js .nav-toggle { display: block; }
  .site-header__cta { display: none; }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    padding: 0.95rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  /* 无 JS：导航作为第二行横向滚动 */
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.6rem; }
  html:not(.js) .site-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  html:not(.js) .site-nav__list { flex-direction: row; }
  html:not(.js) .site-nav__list a { border: 0; padding: 0.4rem 0.75rem 0.4rem 0; font-size: 0.9375rem; }
  html:not(.js) .site-header__actions { margin-left: auto; }
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .site-nav__list a { padding-inline: 0.9rem; }
  .site-header__actions { margin-left: 0; }
}

/* ---------- 8. Footer ---------- */
.site-footer {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.site-footer__slogan {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}
.site-footer__slogan span { display: block; color: var(--cyan); font-weight: 500; }

.site-footer__desc { max-width: 30rem; line-height: 1.8; }

.site-footer__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer__list { list-style: none; display: grid; gap: 0.55rem; }
.site-footer__list a { color: var(--text-body); text-decoration: none; }
.site-footer__list a:hover { color: var(--cyan); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
}
.site-footer__bottom a { color: var(--text-muted); }

@media (min-width: 640px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- 9. Forms（基础样式，报名表单在 S04 使用） ---------- */
.form { display: grid; gap: 1.5rem; }

.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 0.45rem; align-content: start; min-width: 0; }

.field__label, .fieldset__legend {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}
.field__req { color: var(--gold); margin-left: 0.2em; }
.field__opt { color: var(--text-muted); font-weight: 400; font-size: 0.8125rem; margin-left: 0.4em; }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid rgba(143, 160, 192, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* ≥16px，防止 iOS 聚焦时放大 */
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #6C7FA3; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(143, 160, 192, 0.6); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(92, 225, 255, 0.22);
}
.textarea { min-height: 150px; resize: vertical; }

.select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238FA0C0' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.select option { background: var(--surface); color: var(--text); }

.field__hint { font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }
.field__error { display: none; font-size: 0.8125rem; line-height: 1.5; color: var(--error); }

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--error); }
.field.is-invalid .field__error,
.fieldset.is-invalid .field__error { display: block; }

.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 0.6rem; align-content: start; }
.fieldset__legend { padding: 0; margin-bottom: 0.15rem; }

/* 单选 / 复选：整行可点击，高度 ≥ 44px */
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid rgba(143, 160, 192, 0.28);
  border-radius: var(--radius);
  color: var(--text-body);
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.choice:hover { border-color: rgba(143, 160, 192, 0.55); }
.choice input {
  flex: none;
  width: 20px; height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--cyan);
}
.choice:has(input:checked) { border-color: var(--cyan); background: rgba(92, 225, 255, 0.07); color: var(--text); }
.choice:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.fieldset.is-invalid .choice { border-color: rgba(255, 138, 122, 0.6); }

.choice--plain { background: transparent; border: 0; padding: 0.25rem 0; min-height: 44px; }
.choice--plain:has(input:checked) { background: transparent; }

.form-alert {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.form-alert[hidden] { display: none; }
.form-alert--error { border-color: rgba(255, 138, 122, 0.55); background: rgba(255, 138, 122, 0.08); color: #FFD3CC; }
.form-alert--success { border-color: rgba(110, 231, 168, 0.5); background: rgba(110, 231, 168, 0.07); color: var(--text); }

/* ---------- 10. Mobile sticky CTA（活动页） ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(3, 7, 15, 0.94);
  border-top: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease);
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.mobile-cta__info { line-height: 1.35; font-size: 0.8125rem; color: var(--text-muted); }
.mobile-cta__price { display: block; font-size: 1.125rem; font-weight: 700; color: var(--gold); }
.mobile-cta .btn { flex: none; }

@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* ---------- 11. Prose（隐私政策等长文） ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin: 2.75rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: var(--fs-small); }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }

mark.todo { padding: 0.05em 0.3em; background: rgba(209, 160, 58, 0.18); color: var(--gold); border-radius: 3px; }

.notice {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-body);
}

/* ---------- 12. Page head（子页面标题区） ---------- */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }

/* ---------- 13. 内容组件（首页 / 活动页） ---------- */

/* 首屏 */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(3.5rem, 2.5rem + 5vw, 7rem);
  overflow: hidden;
}
.hero::before { /* 低透明度网格，仅首屏使用 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 85% 0%, rgba(92, 225, 255, 0.16), transparent 50%),
    linear-gradient(rgba(92, 225, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero__subtitle { margin: 0 0 0.5rem; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; color: var(--text); }
.hero .lead { margin-bottom: 2rem; max-width: 36rem; }
.hero__tag { color: var(--text-muted); font-size: var(--fs-small); margin-top: 1.25rem; }
.glow { color: var(--cyan); text-shadow: 0 0 22px rgba(92, 225, 255, 0.55); } /* 全站唯一的发光效果 */

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero__grid--event { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; }
}

/* 图片 */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); background: var(--surface); }
.figure figcaption { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--text-muted); text-align: center; }

/* 大号引语 */
.statement {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
:lang(it) .statement { line-height: 1.25; letter-spacing: -0.015em; }

.origin {
  margin-top: 2rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
  color: var(--text-muted);
}

/* 对比（少部分人 / 更多的人） */
.compare { display: grid; gap: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.compare__item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.compare__label { margin: 0 0 0.4rem; font-size: var(--fs-h3); font-weight: 700; color: var(--cyan); }
.compare__item p:last-child { margin: 0; }
@media (min-width: 640px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .compare__item { padding-right: 2rem; }
  .compare__item + .compare__item { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--line); }
}

/* 编号条目 */
.numbered { list-style: none; counter-reset: num; border-top: 1px solid var(--line); }
.numbered > li {
  counter-increment: num;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.numbered > li::before {
  content: counter(num, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 2;
  color: var(--gold);
}
.numbered h3 { margin: 0 0 0.35rem; }
.numbered p { margin: 0; }

/* 活动条 */
.event-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.event-card__date { display: flex; align-items: baseline; gap: 0.6rem; font-family: var(--font-mono); color: var(--cyan); }
.event-card__day { font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.event-card__dow { font-size: 0.875rem; color: var(--text-muted); }
.event-card h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin-bottom: 0.5rem; }
.event-card__meta { margin: 0 0 0.5rem; color: var(--text-muted); font-size: var(--fs-small); }
.event-card__meta .gold { font-weight: 700; }
@media (min-width: 1024px) {
  .event-card { grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: center; gap: 2.5rem; }
  .event-card__date { flex-direction: column; gap: 0.35rem; }
}

/* 联系 */
.contact { display: grid; gap: 2.5rem; align-items: center; }
.contact h2 { margin-bottom: 0.75rem; }
.contact__phone {
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
}
.contact__phone:hover { color: var(--text); }
.qr { display: grid; justify-items: start; gap: 0.75rem; }
.qr__plate { display: block; width: 200px; padding: 8px; background: var(--paper); border-radius: var(--radius-lg); }
.qr__plate img { width: 100%; border-radius: 4px; }
.qr p { margin: 0; max-width: 16rem; font-size: 0.8125rem; color: var(--text-muted); }
@media (min-width: 640px) {
  .contact { grid-template-columns: minmax(0, 1fr) auto; }
}

/* 活动信息卡 */
.info-card {
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}
.info-card dl { margin: 0; display: grid; gap: 0; }
.info-card dl > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
:lang(it) .info-card dl > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
.info-card dl > div:first-child { padding-top: 0; }
.info-card dt { color: var(--gold); font-size: var(--fs-small); line-height: 1.85; }
.info-card dd { margin: 0; color: var(--text); line-height: 1.6; padding-top: 0.15rem; }
.info-card .price { font-size: 1.75rem; font-weight: 700; color: var(--gold); line-height: 1.2; }
.info-card .btn { margin-top: 1.5rem; }
.pill {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--cyan);
}
.info-card .logo-plate { margin-top: 0.4rem; }
.info-card .logo-plate img { height: 24px; }
@media (max-width: 479.98px) {
  .info-card dl > div, :lang(it) .info-card dl > div { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media (min-width: 1024px) { .info-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* 开场 */
.intro { font-size: var(--fs-lead); }
.intro strong { display: block; margin-top: 0.5rem; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); }

/* 引语 */
.quote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--gold);
}
.quote p { margin: 0; font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); font-weight: 600; line-height: 1.6; color: var(--text); }
.quote footer { margin-top: 0.6rem; font-size: var(--fs-small); color: var(--text-muted); }

.belief {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.belief .eyebrow { color: var(--gold); }
.belief .statement { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); margin-bottom: 1rem; }

/* 实践路径 */
.path { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin: 1.5rem 0; }
.path li {
  position: relative;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text);
}
.path li + li::before { content: "→"; position: absolute; left: -1.35rem; color: var(--gold); }

/* Prompt 终端 */
.terminal {
  margin: 1.5rem 0;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.terminal__bar i { width: 8px; height: 8px; border-radius: 50%; background: #F0584B; }
.terminal__bar i:nth-child(2) { background: var(--gold); }
.terminal__bar i:nth-child(3) { background: var(--cyan); margin-right: 0.5rem; }
.terminal__body { margin: 0; padding: 1rem 1.1rem; color: #E3E9F4; }
.terminal__body::before { content: "> "; font-family: var(--font-mono); color: var(--cyan); }
.footnote { font-size: 0.8125rem; color: var(--text-muted); }

/* 时间表 */
.schedule { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; margin: 2rem 0; }
.schedule > div {
  padding: 1rem 0.75rem;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.schedule > .schedule__break { border-style: dashed; border-color: rgba(143, 160, 192, 0.35); background: transparent; padding-inline: 1rem; }
.schedule span { display: block; font-size: 0.8125rem; color: var(--text-muted); }
.schedule strong { display: block; font-family: var(--font-mono); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); color: var(--cyan); }
.schedule__break strong { font-family: inherit; color: var(--text-muted); font-weight: 500; font-size: 0.9375rem; }
.schedule strong { white-space: nowrap; }
@media (max-width: 479.98px) {
  .schedule { grid-template-columns: 1fr; }
  .schedule > div { display: flex; justify-content: space-between; align-items: baseline; text-align: left; padding: 0.75rem 1rem; }
}

/* 课前 / 课中 / 课后 */
.phases { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.phases > li { padding: 1.5rem; background: var(--bg); }
.phases__tag { display: inline-block; margin-bottom: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--cyan); }
.phases > li:last-child .phases__tag { color: var(--gold); }
.phases h3 { margin-bottom: 0.4rem; }
.phases p { margin: 0; font-size: 0.9375rem; }
@media (min-width: 1024px) { .phases { grid-template-columns: repeat(3, 1fr); } }

/* 流程步骤（意大利语页用 HTML 呈现流程图内容） */
.flow { list-style: none; display: grid; gap: 0.75rem; margin: 2rem 0; }
.flow > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.flow__no { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--cyan); }
.flow > li:first-child .flow__no, .flow > li:last-child .flow__no { color: var(--gold); }
.flow strong { display: block; color: var(--text); }
.flow span:not(.flow__no) { font-size: 0.9375rem; color: var(--text-muted); }

/* 成果 / 人群 */
.outcomes { list-style: none; border-top: 1px solid var(--line); }
.outcomes > li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.outcomes h3 { margin-bottom: 0.35rem; }
.outcomes h3::before { content: "✦"; margin-right: 0.6rem; color: var(--cyan); font-size: 0.85em; }
.outcomes p { margin: 0; }

.audience { list-style: none; display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.audience > li { padding: 1rem 1.2rem; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }

/* 报名区 */
.register { display: grid; gap: 3rem; }
.register__form { padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.register__aside { display: grid; gap: 2rem; align-content: start; }
.register__aside h3 { margin-bottom: 0.75rem; }
.register__note { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; font-size: 0.9375rem; }
.register__note li { padding-left: 1.4rem; position: relative; }
.register__note li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.6rem; height: 1px; background: var(--gold); }
.form__intro { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.form__counter { justify-self: end; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.turnstile-box { min-height: 65px; }
.success-panel { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid rgba(110, 231, 168, 0.45); border-radius: var(--radius-lg); background: rgba(110, 231, 168, 0.05); }
.success-panel[hidden] { display: none; }
.success-panel h3 { color: var(--success); margin-bottom: 0.75rem; }
.success-panel__ref { display: inline-block; margin: 0.25rem 0 1rem; padding: 0.3rem 0.8rem; font-family: var(--font-mono); font-size: 1.125rem; letter-spacing: 0.06em; color: var(--text); background: var(--bg-deep); border-radius: 6px; }
@media (min-width: 1024px) {
  .register { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .register__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.section__title-gap { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); margin-bottom: 1.25rem; }
.section__figure { margin-block: 2rem; }
.register__head { margin-bottom: 2.5rem; }
.measure h2, .section__grid > div > h2 { margin-bottom: 1.25rem; }

/* 活动页底部留出固定报名条的高度 */
@media (max-width: 1023.98px) { .has-mobile-cta .site-footer { padding-bottom: 6.5rem; } }

/* ---------- 14. 404 ---------- */
.not-found {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 4rem;
  background-image:
    linear-gradient(rgba(92, 225, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.not-found .eyebrow { margin-top: 3rem; }
.not-found__grid { display: grid; gap: 3rem; }
.not-found h1, .not-found h2 { font-size: var(--fs-h2); margin-bottom: 0.75rem; }
.not-found p { margin-bottom: 1.5rem; }
@media (min-width: 640px) {
  .not-found__grid { grid-template-columns: 1fr 1fr; }
  .not-found__grid > section + section { padding-left: 3rem; border-left: 1px solid var(--line); }
}

/* ---------- 15. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;      /* 尊重系统“减少动态效果”设置 */
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
