/* =========================================================
   星群 Constella · 全站公共样式
   视觉规范见 website/DESIGN.md，组件效果见 website/styleguide.html
   规则：子页面只能使用这里的变量和组件；需要新组件时，先加到本文件和 styleguide.html
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌色 */
  --ink: #102C54;          /* 深蓝：标题文字、深色区块、次要按钮 */
  --ink-2: #1D3F6E;        /* 深蓝悬停 */
  --ink-3: #0A1E3B;        /* 深蓝最深：页脚 */
  --orange: #F28C28;       /* 橙色：主按钮、重点强调、手绘标记。每屏只出现一处主按钮 */
  --orange-2: #E07A14;     /* 橙色悬停 */
  --orange-ink: #B9620C;   /* 橙色文字（浅底上可读） */
  --orange-soft: #FDEBD6;  /* 橙色浅底：徽章、图标底 */
  --sage: #6F8F74;         /* 鼠尾草绿：社区、成员相关的辅助标签 */
  --sage-soft: #E3ECE1;

  /* 暖色中性色 */
  --paper: #FBF8F3;        /* 页面底色（暖米白） */
  --paper-2: #F3ECE2;      /* 交替区块底色 */
  --card: #FFFFFF;         /* 卡片底色 */
  --line: #E7DED1;         /* 分割线、卡片描边 */
  --line-2: #D6C8B5;       /* 强调描边、悬停描边 */
  --text: #1F2933;         /* 正文 */
  --text-2: #6A6157;       /* 次要文字（暖灰） */
  --text-3: #9A8F82;       /* 说明文字 */
  --on-ink: #FFFFFF;       /* 深色区块上的文字 */
  --on-ink-2: #C3CEDD;     /* 深色区块上的次要文字 */

  /* 状态色 */
  --success: #3F8A5A;
  --success-soft: #E4F1E7;
  --danger: #C8473F;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: Georgia, "Times New Roman", serif;   /* 只用于序号和大数字，增加温度 */

  /* 字号 */
  --fs-display: clamp(34px, 5.6vw, 60px);
  --fs-h1: clamp(30px, 4.6vw, 46px);
  --fs-h2: clamp(26px, 3.8vw, 38px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 13px;

  /* 间距（4 的倍数） */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;

  /* 圆角 */
  --r-sm: 12px;   /* 输入框、小元素 */
  --r-md: 20px;   /* 卡片 */
  --r-lg: 28px;   /* 大面板、照片 */
  --r-pill: 999px;

  /* 阴影：克制使用，只在悬停和浮起元素上 */
  --shadow-sm: 0 2px 8px rgba(60, 40, 20, .06);
  --shadow-md: 0 14px 34px rgba(60, 40, 20, .10);
  --shadow-cta: 0 8px 20px rgba(242, 140, 40, .30);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: .18s ease;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: var(--fs-body); line-height: 1.75; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(242, 140, 40, .5); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. 文字 ---------- */
.display { font-size: var(--fs-display); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.h1 { font-size: var(--fs-h1); line-height: 1.25; font-weight: 800; color: var(--ink); }
.h2 { font-size: var(--fs-h2); line-height: 1.3; font-weight: 800; color: var(--ink); }
.h3 { font-size: var(--fs-h3); line-height: 1.45; font-weight: 700; color: var(--ink); }
.lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 620px; }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); color: var(--text-3); }
.muted { color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); font-weight: 700; color: var(--orange-ink); letter-spacing: .06em; margin-bottom: var(--sp-3); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.num { font-family: var(--font-num); font-style: italic; font-weight: 700; }
.nowrap { white-space: nowrap; }

/* 清单：服务问题、工作内容和交付物，使用语义化 ul / li */
.checklist-title { margin-bottom: var(--sp-2); }
.checklist { list-style: none; display: grid; gap: var(--sp-2); color: var(--text-2); }
.checklist li { position: relative; padding-left: var(--sp-4); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .75em; width: var(--sp-1); height: var(--sp-1); border-radius: var(--r-pill); background: var(--ink); }

/* 长文：政策、协议、说明；条款保持语义化 section / h2 / h3 */
.prose { max-width: 820px; margin: 0 auto; font-family: var(--font); font-size: var(--fs-body); line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.prose > section + section { margin-top: var(--sp-8); }
.prose > * + *, .prose > section > * + * { margin-top: var(--sp-4); }
.prose > :is(h2, h3), .prose > section > :is(h2, h3) { font-size: var(--fs-h3); line-height: 1.45; font-weight: 700; color: var(--ink); }
.prose > h3:not(:first-child), .prose > section > h3:not(:first-child) { margin-top: var(--sp-6); }
.prose > h3 + :is(ul, ol), .prose > section > h3 + :is(ul, ol) { margin-top: var(--sp-3); }
.prose .checklist { color: var(--text); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: var(--sp-1); overflow-wrap: anywhere; }
.prose a:hover { color: var(--orange-ink); }

/* 手绘标记：给 1—2 个关键词使用，每屏最多一处 */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .42em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 6, 90 4, 197 9 M 8 17 C 60 11, 120 10, 190 14' fill='none' stroke='%23F28C28' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.mark--circle::after {
  left: -10%; right: -10%; top: -18%; bottom: -22%; height: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M150 8 C 70 0, 8 14, 6 42 C 4 72, 120 80, 180 62 C 206 52, 200 18, 140 10' fill='none' stroke='%23F28C28' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- 4. 布局 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-24) 0; }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--card); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .h1, .section--ink .h2, .section--ink .h3 { color: var(--on-ink); }
.section--ink .lead, .section--ink .muted { color: var(--on-ink-2); }
.section--ink .eyebrow { color: #F6B074; }
.section--flush-top { padding-top: 0; }
.section-head { margin-bottom: var(--sp-12); }
.section-head .lead { margin-top: var(--sp-3); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-8); flex-wrap: wrap; }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* HTML 保持文字在前；只在桌面端把照片排到左侧 */
@media (min-width: 961px) {
  .grid-2--reverse > .photo { order: -1; }
}
.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 50px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--orange-2); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); background: var(--card); }
.btn--light { background: #fff; color: var(--orange-ink); }
.btn--light:hover { background: #FFF6EC; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--line-2); padding-bottom: 2px; transition: border-color var(--ease); }
.link-arrow:hover { border-color: var(--orange); }
/* 通用按钮组；需要区块外间距时组合 .mt-8 / .mt-12 */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }

/* ---------- 6. 标签 ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-caption); font-weight: 600; background: var(--card); color: var(--text-2); border: 1px solid var(--line); }
.pill--orange { background: var(--orange-soft); color: var(--orange-ink); border-color: transparent; }
.pill--sage { background: var(--sage-soft); color: #4C6B52; border-color: transparent; }
.pill--ink { background: var(--ink); color: #fff; border-color: transparent; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
/* 贴纸：只用在照片拼贴上，略微倾斜，营造手作感 */
.sticker { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-md); font-size: var(--fs-small); font-weight: 700; color: var(--ink); transform: rotate(var(--tilt, -3deg)); white-space: nowrap; }
.sticker .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); }

/* ---------- 7. 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-8); display: flex; flex-direction: column; }
.card--paper { background: var(--paper-2); border-color: transparent; }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.card--ink .card__title { color: #fff; }
.card--ink .card__text { color: var(--on-ink-2); }
.card--ink .link-arrow { color: var(--on-ink); border-color: var(--on-ink-2); }
.card--link { transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); margin-bottom: var(--sp-5); flex: none; }
.card__icon--sage { background: var(--sage-soft); color: #4C6B52; }
.card--ink .card__icon { background: rgba(255,255,255,.1); color: #fff; }
.card__title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.card__text { color: var(--text-2); font-size: 15px; flex: 1; }
.card__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px dashed var(--line); font-size: var(--fs-small); color: var(--text-2); display: flex; justify-content: space-between; gap: var(--sp-3); }
.card--row { flex-direction: row; gap: var(--sp-4); padding: var(--sp-6); }
.card--row .card__icon { margin-bottom: 0; width: 44px; height: 44px; }

/* 活动条目：仅在活动信息确认后使用，未知日期不填写 datetime */
.event-item { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; grid-template-areas: "date content actions"; align-items: center; gap: var(--sp-6); }
.event-item__date { grid-area: date; display: grid; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); text-align: center; }
.event-item__date time { font-weight: 700; }
.event-item__content { grid-area: content; min-width: 0; overflow-wrap: anywhere; }
.event-item__content .info-list { margin-top: var(--sp-4); }
.event-item > .actions { grid-area: actions; justify-self: start; }

/* ---------- 8. 照片 ---------- */
/* 有实拍图时：<div class="photo"><img src="" alt=""></div>
   没有时：<div class="photo photo--empty" data-label="开放工位区"></div>，会显示“实拍待补充”占位 */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1; }
.photo--empty {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.7), transparent 55%),
    linear-gradient(145deg, #EFE4D3 0%, #E4D3BC 100%);
  display: grid; place-items: center;
}
.photo--empty::before {
  content: ""; width: 44px; height: 44px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A7660' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.photo--empty::after { content: "实拍待补充 · " attr(data-label); position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: #7A6650; background: rgba(255,255,255,.75); padding: 3px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.photo--empty[data-label=""]::after { content: "实拍待补充"; }
.photo__cap { position: absolute; left: 16px; bottom: 16px; z-index: 1; background: rgba(255,255,255,.94); border-radius: var(--r-sm); padding: 10px 14px; }
.photo__cap strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.4; }
.photo__cap span { font-size: var(--fs-caption); color: var(--text-2); }
.photo--empty .photo__cap ~ * { display: none; }
.photo--empty:has(.photo__cap)::after { bottom: auto; top: 16px; left: auto; right: 16px; transform: none; }

/* 照片拼贴：首页首屏使用 */
.collage { position: relative; height: 520px; }
.collage .photo { position: absolute; box-shadow: var(--shadow-md); border: 6px solid #fff; }
.collage .photo:nth-child(1) { left: 0; top: 40px; width: 62%; aspect-ratio: 4 / 5; transform: rotate(-2.5deg); }
.collage .photo:nth-child(2) { right: 0; top: 0; width: 46%; aspect-ratio: 1; transform: rotate(3deg); }
.collage .photo:nth-child(3) { right: 6%; bottom: 0; width: 50%; aspect-ratio: 4 / 3; transform: rotate(-1.5deg); }

/* ---------- 9. 数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { padding: var(--sp-6); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-num); font-size: 36px; line-height: 1.1; color: var(--ink); }
.stat span { font-size: var(--fs-small); color: var(--text-2); }

/* ---------- 10. 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; padding: var(--sp-8) var(--sp-6); background: var(--card); border-radius: var(--r-md); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-num); font-style: italic; font-weight: 700; font-size: 34px; line-height: 1; color: var(--orange); margin-bottom: var(--sp-4); }
.step h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--text-2); }

/* ---------- 11. 成长等级 ---------- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.level { position: relative; padding: var(--sp-6); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.level__no { font-family: var(--font-num); font-style: italic; font-weight: 700; color: var(--sage); font-size: 15px; }
.level h4 { font-size: 18px; color: var(--ink); margin: 2px 0 8px; }
.level p { font-size: 14px; color: var(--text-2); }
.level__bar { display: flex; gap: 4px; margin-bottom: var(--sp-4); }
.level__bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.level__bar i.on { background: var(--orange); }
.level--top { background: var(--ink); border-color: var(--ink); }
.level--top h4 { color: #fff; }
.level--top p { color: var(--on-ink-2); }
.level--top .level__no { color: #F6B074; }
.level--top .level__bar i { background: rgba(255,255,255,.18); }
.level--top .level__bar i.on { background: var(--orange); }

/* ---------- 12. 提示条与行动横幅 ---------- */
.callout { display: flex; gap: var(--sp-5); align-items: center; padding: var(--sp-6) var(--sp-8); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.callout__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-soft); color: #4C6B52; }
.callout strong { display: block; color: var(--ink); font-size: 17px; }
.callout p { color: var(--text-2); font-size: 15px; }
.cta-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); padding: var(--sp-12); border-radius: var(--r-lg); background: var(--orange); color: #fff; }
.cta-banner::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); }
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; margin-bottom: 6px; }
.cta-banner p { opacity: .92; font-size: 17px; }
.cta-banner .btn { position: relative; flex: none; }

/* ---------- 13. 引语 / 成员故事（有真实内容后使用） ---------- */
.quote { padding: var(--sp-8); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.quote blockquote { font-size: 18px; line-height: 1.7; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-num); font-size: 56px; line-height: .6; color: var(--orange); margin-bottom: var(--sp-3); }
.quote figcaption { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); font-size: var(--fs-small); color: var(--text-2); }
.quote figcaption .avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--paper-2); flex: none; }
.quote figcaption b { display: block; color: var(--ink); font-size: 15px; }

/* ---------- 14. 表单 ---------- */
.form-panel { background: var(--card); color: var(--text); border-radius: var(--r-lg); padding: var(--sp-2); max-width: 780px; margin: 0 auto; box-shadow: var(--shadow-md); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper-2); border-radius: 22px; padding: 6px; }
.tabs button { height: 50px; border: 0; border-radius: 18px; background: transparent; font-size: 16px; font-weight: 700; color: var(--text-2); cursor: pointer; transition: background var(--ease), color var(--ease); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.form { padding: var(--sp-8); }
.form[hidden] { display: none; }
.form__intro { font-size: 15px; color: var(--text-2); margin-bottom: var(--sp-6); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > label, .field__label { font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.req { color: var(--orange); margin-left: 2px; }
.input, .select, .textarea { font: inherit; font-size: 16px; color: var(--text); width: 100%; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper); transition: border-color var(--ease), box-shadow var(--ease), background var(--ease); }
.textarea { min-height: 112px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(242, 140, 40, .15); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); }
.field__error { display: none; font-size: var(--fs-caption); color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--paper); font-size: var(--fs-small); color: var(--text-2); cursor: pointer; user-select: none; transition: all var(--ease); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.chip:has(input:focus-visible) { outline: 3px solid rgba(242, 140, 40, .5); outline-offset: 2px; }
.check { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-caption); color: var(--text-2); cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--orange); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: var(--sp-1); }
.form__actions { margin-top: var(--sp-6); }
.form-done { text-align: center; padding: var(--sp-16) var(--sp-8); }
.form-done[hidden] { display: none; }
.form-done__icon { width: 68px; height: 68px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto var(--sp-5); }
.form-done h3 { color: var(--ink); font-size: 22px; margin-bottom: 6px; }
.form-done p { color: var(--text-2); }

/* ---------- 15. 常见问题 ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--sp-3); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--sp-6); transition: border-color var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: var(--sp-5) 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 400; font-size: 20px; color: var(--ink); transition: transform var(--ease), background var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange-soft); }
.faq details p { padding-bottom: var(--sp-5); color: var(--text-2); font-size: 15px; }

/* ---------- 16. 页头导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.site-header.is-scrolled { border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.logo__mark svg { display: block; }
.site-footer .logo__mark { background: #fff; color: var(--ink); }
/* 平板宽度为完整品牌名留出空间，导航保持单行。 */
@media (min-width: 721px) and (max-width: 960px) {
  .site-header .site-nav { gap: var(--sp-3); white-space: nowrap; }
}
.site-nav { display: flex; align-items: center; gap: var(--sp-8); font-size: 15px; color: var(--text-2); }
.site-nav a:not(.btn) { position: relative; padding: 6px 0; transition: color var(--ease); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--orange); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; place-items: center; }

/* ---------- 17. 首页首屏 ---------- */
.hero { padding: var(--sp-16) 0 var(--sp-24); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-12); align-items: center; }
.hero .display { margin: var(--sp-5) 0 var(--sp-6); }
.hero .lead { margin-bottom: var(--sp-8); }
.hero__entries { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); max-width: 560px; }
.entry { display: block; padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md); background: var(--card); border: 1.5px solid var(--line); transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.entry:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow-md); }
.entry small { display: block; font-size: var(--fs-caption); color: var(--text-2); margin-bottom: 2px; }
.entry strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; color: var(--ink); }
.entry--primary { background: var(--orange); border-color: var(--orange); box-shadow: var(--shadow-cta); }
.entry--primary small, .entry--primary strong { color: #fff; }
.entry--primary:hover { border-color: var(--orange-2); background: var(--orange-2); }

/* ---------- 18. 子页面页头 ---------- */
.page-hero { padding: var(--sp-16) 0 var(--sp-12); }
.page-hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-12); align-items: end; }
.page-hero .h1 { margin: var(--sp-3) 0 var(--sp-4); }
.page-hero--plain .container { grid-template-columns: 1fr; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-caption); color: var(--text-3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li { list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }

/* ---------- 19. 页脚 ---------- */
.site-footer { background: var(--ink-3); color: #93A4BC; font-size: var(--fs-small); padding: var(--sp-16) 0 var(--sp-8); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-8); padding-bottom: var(--sp-10); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .logo { color: #fff; margin-bottom: var(--sp-3); }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; display: grid; gap: var(--sp-2); }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding-top: var(--sp-6); font-size: var(--fs-caption); }

/* ---------- 20. 手机底部悬浮按钮 ---------- */
.float-cta { display: none; }

/* ---------- 21. 首页专用：两端痛点 ---------- */
.bridge { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-6); align-items: center; }
.bridge__side { padding: var(--sp-8); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); height: 100%; }
.bridge__side h3 { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.bridge__side h3 .card__icon { width: var(--sp-10); height: var(--sp-10); margin-bottom: 0; }
.bridge__side ul { list-style: none; display: grid; gap: var(--sp-3); }
.bridge__side li { position: relative; padding-left: 26px; color: var(--text-2); }
.bridge__side li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); }
.bridge__side li.is-key { color: var(--ink); font-weight: 700; }
.bridge__side li.is-key::before { border-color: var(--orange); background: var(--orange); }
.bridge__mid { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); width: 160px; text-align: center; font-weight: 700; color: var(--ink); font-size: 15px; }
.bridge__hub { width: 96px; height: 96px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; box-shadow: 0 0 0 10px var(--orange-soft); }

/* ---------- 22. 联系 ---------- */
.qr { flex: none; width: 140px; height: 140px; border-radius: var(--r-md); background: var(--paper); border: 1.5px dashed var(--line-2); display: grid; place-items: center; text-align: center; font-size: var(--fs-caption); color: var(--text-3); padding: var(--sp-3); }
.info-list { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--sp-3) var(--sp-2); font-size: 15px; }
.info-list dt { color: var(--text-3); }
.info-list dd { overflow-wrap: anywhere; }

/* ---------- 23. 响应式 ---------- */
@media (max-width: 960px) {
  .section { padding: var(--sp-16) 0; }
  .event-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date actions" "content actions"; }
  .event-item__date { justify-self: start; }
  .grid-3, .grid-4, .stats, .steps, .levels { grid-template-columns: repeat(2, 1fr); }
  .hero .container, .page-hero .container { grid-template-columns: 1fr; }
  .collage { height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
  .bridge { grid-template-columns: 1fr; }
  .bridge__mid { width: auto; flex-direction: row; justify-content: center; }
  .bridge__hub { width: 72px; height: 72px; font-size: 15px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: var(--sp-10) var(--sp-8); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: var(--sp-8); }
  .grid-2, .grid-3, .grid-4, .steps, .levels, .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .stat { padding: var(--sp-4); }
  .stat b { font-size: 28px; }
  .card { padding: var(--sp-6); }
  .event-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "content" "actions"; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-2) var(--gutter) var(--sp-5); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .btn { margin-top: var(--sp-4); }
  .menu-toggle { display: grid; }
  .hero { padding: var(--sp-10) 0 var(--sp-16); }
  .hero__entries { grid-template-columns: 1fr; }
  .collage { height: 360px; }
  .collage .photo { border-width: 4px; }
  .collage .photo:nth-child(1) { width: 60%; top: 30px; }
  .collage .photo:nth-child(2) { width: 48%; }
  .collage .photo:nth-child(3) { width: 54%; right: 2%; }
  .collage .photo--empty::after { display: none; }
  .sticker { font-size: 12px; padding: 7px 12px; }
  .sticker .ic { width: 22px; height: 22px; }
  .page-hero { padding: var(--sp-10) 0 var(--sp-8); }
  .form { padding: var(--sp-6) var(--sp-4); }
  .callout { flex-direction: column; align-items: flex-start; padding: var(--sp-6); }
  .cta-banner { padding: var(--sp-8) var(--sp-6); }
  .site-footer__top { grid-template-columns: 1fr; }
  .float-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .96); border-top: 1px solid var(--line); backdrop-filter: blur(12px);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .float-cta.is-visible { transform: none; }
  .float-cta .btn { height: 46px; font-size: 15px; padding: 0 10px; box-shadow: none; }
  body:has(.float-cta) .site-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
