/* ============================================================
   Echo AI Hub · 网站初版（静态稿，给 Figma 导入用）
   Tokens 来源：Figma《Echo Visual Design》色板；卡片与描边做法参照 OpenRouter，
   首屏光效参照 TopView（2026-09-21 实测）。
   ============================================================ */

:root {
  /* 品牌色（Figma 色板） */
  --brand-purple: #6547F5;
  --brand-pink: #F57AE5;
  --brand-orange: #F55200;
  --brand-green: #3ED67D;
  --brand-black: #090909;
  --brand-white: #F1F1F1;

  /* 主题：白底（默认，09-24 用户确认；CEO deck 也是白底黑字） */
  --bg: #FFFFFF;
  --bg-soft: #F6F6F4;             /* 区块交替底色 */
  --surface: #FFFFFF;
  --surface-2: #F3F3F1;
  --border: rgba(9, 9, 9, 0.10);
  --border-strong: rgba(9, 9, 9, 0.20);
  --text: #090909;
  --text-2: #55555A;
  --text-3: #6B6B70;
  --accent: #6547F5;              /* 链接、聚焦、选中：白底对比 5.2 */
  --danger: #C4312B;              /* 错误提示：白底对比 5.6 */
  --btn-bg: #090909;
  --btn-fg: #FFFFFF;
  --glow-1: rgba(101, 71, 245, 0.16);
  --glow-2: rgba(245, 122, 229, 0.16);
  --dot: #090909;
  --dot-opacity: 0.10;

  /* 字体 */
  --font-display: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;

  /* 圆角与间距 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --container: 1200px;
  --gutter: 20px;

  /* 动效（09-24，依据见 Obsidian《视觉参考集》第一节） */
  --border-hover: rgba(9, 9, 9, 0.22);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);      /* 悬停、状态切换：OpenRouter、Vercel、Supabase、TopView 实测 */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);    /* 区块进场：Sanity 实测 */
  --ease-line: cubic-bezier(0.215, 0.61, 0.355, 1); /* 标题按行滑出：Algomatic 的 power3.out */
}

/* 黑底：只用于局部深色区块（例如页脚上方的大号 CTA），整站不再用黑底 */
.theme-dark {
  --bg: #090909;
  --bg-soft: #111111;
  --surface: #121212;
  --surface-2: #1A1A1A;
  --border: rgba(241, 241, 241, 0.10);
  --border-strong: rgba(241, 241, 241, 0.20);
  --text: #F1F1F1;
  --text-2: #A3A3A3;
  --text-3: #8A8A8A;
  --accent: #F57AE5;              /* 黑底对比 8.3 */
  --danger: #FF8A8A;
  --btn-bg: #F1F1F1;
  --btn-fg: #090909;
  --glow-1: rgba(101, 71, 245, 0.42);
  --glow-2: rgba(245, 122, 229, 0.26);
  --dot: #F1F1F1;
  --dot-opacity: 0.10;
  --border-hover: rgba(241, 241, 241, 0.16);
  background: var(--bg);
  color: var(--text);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; word-break: auto-phrase; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.latin { font-family: var(--font-display); }
.eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.placeholder { color: var(--text-3); }

/* 标志：黑底用白色点阵，浅底用黑色点阵 */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: auto; }
/* 标志悬停：黑色（深色底上是白色）渐变成彩色版，0.5 秒；允许动效时顺带转一个小角度（09-24 用户要求） */
.logo-marks { position: relative; display: inline-block; flex-shrink: 0; width: 28px; line-height: 0; }
.logo-marks .logo-mark, .logo-mark-color { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.logo-mark-color { position: absolute; left: 0; top: 0; width: 28px; height: auto; opacity: 0; }
.logo:hover .logo-mark-color, .logo:focus-visible .logo-mark-color { opacity: 1; }
.logo:hover .logo-marks .logo-mark, .logo:focus-visible .logo-marks .logo-mark { opacity: 0; }
[data-motion="on"] .logo:hover .logo-marks > img, [data-motion="on"] .logo:focus-visible .logo-marks > img { transform: rotate(-14deg) scale(1.08); }
.logo-word { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.mark-on-dark { display: none; }
.mark-on-light { display: block; }
.theme-dark .mark-on-dark { display: block; }
.theme-dark .mark-on-light { display: none; }

/* ---------- 公告条 ---------- */
.notice { border-bottom: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.notice .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; flex-wrap: wrap; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }
.notice-sep { color: var(--text-3); }
.notice .full { display: none; }

/* ---------- 顶栏：固定在顶部，背后内容模糊（Linear 做法） ---------- */
.header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.theme-dark .header { background: rgba(9, 9, 9, 0.72); }
[id] { scroll-margin-top: 80px; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: none; gap: 32px; font-size: 14px; color: var(--text-2); }
.nav a:hover, .nav a.is-active { color: var(--text); }
/* 去别的网站（中转站）的导航项：文字后面带外链图标，排法同 .link */
.nav-ext { display: inline-flex; align-items: center; gap: 6px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--text); background: transparent; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover, .btn-primary.is-hover { opacity: 0.88; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover, .btn-secondary.is-hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 0 14px; }
.btn-ghost:hover, .btn-ghost.is-hover { color: var(--text); background: var(--surface-2); }
.btn[disabled], .btn.is-disabled { opacity: 0.38; cursor: not-allowed; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.header-actions .btn-sm { height: 44px; padding: 0 18px; }   /* 页头按钮：点按区域不小于 44px */
.header-admin { display: none; }   /* 运营人员的「管理画面」：手机的页头放不下，改在右上角菜单里 */
@media (min-width: 768px) { .header-admin { display: inline-flex; } }
.btn-block { width: 100%; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
/* 分类标签：淡底深字，颜色和课程三层的 tone-work / tone-code / tone-content 一致（CEO deck 第 9 页） */
.chip-work { background: #E3F7EE; color: #137A43; }
.chip-code { background: #E2F5F7; color: #0B6F7D; }
.chip-content { background: #F2EBFD; color: #6A2FD0; }
.chip-community { background: #FDEDFB; color: #A2238F; }
.chip-status { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); font-weight: 500; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.dot-open { background: var(--brand-green); }
.dot-few { background: var(--brand-pink); }
.dot-review { background: var(--brand-purple); }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color 150ms var(--ease-std), background-color 150ms var(--ease-std); }
.card:hover, .card.is-hover { border-color: var(--border-hover); }
.btn { transition: opacity 150ms var(--ease-std), background-color 150ms var(--ease-std), border-color 150ms var(--ease-std), color 150ms var(--ease-std); }
.nav a, .link, .footer-cols a { transition: color 150ms var(--ease-std); }

.event-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 236px; }
.event-card h3 { font-size: 19px; }
.meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.meta-row { display: flex; align-items: center; gap: 8px; }
.event-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.card-foot .go { color: var(--text-2); }
.event-card.is-closed h3, .event-card.is-closed .meta { color: var(--text-3); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.hero-glow.g1 { width: 620px; height: 520px; right: -140px; top: -260px; background: radial-gradient(closest-side, var(--glow-1), rgba(0, 0, 0, 0)); }
.hero-glow.g2 { width: 520px; height: 420px; right: 180px; top: -200px; background: radial-gradient(closest-side, var(--glow-2), rgba(0, 0, 0, 0)); }
.hero-dots { position: absolute; right: 0; top: 0; width: 70%; height: 100%; pointer-events: none; }
.hero-dots-fade { position: absolute; left: 40%; top: 0; width: 30%; height: 100%; background: linear-gradient(to right, var(--bg), rgba(0, 0, 0, 0)); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 48px; }
.hero h1 { font-size: 44px; font-weight: 900; letter-spacing: -0.01em; margin: 14px 0 16px; }
.hero .lead { font-size: 17px; font-weight: 500; }
.hero .sub { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.hero .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

/* 标题按行从遮罩下滑出（Algomatic 做法）：每段外面一层裁切框，里面的字从下方移上来；等字体加载完才开始 */
.hero-title .line { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.12em; margin: 0 -0.04em -0.12em; }
.hero-title .line-in { display: inline-block; }
[data-motion="on"] .hero-title:not(.is-ready) .line-in { transform: translateY(115%); }
[data-motion="on"] .hero-title.is-ready .line-in { animation: line-up 0.9s var(--ease-line) calc(var(--i, 0) * 0.12s) both; }
@keyframes line-up { from { transform: translateY(115%); } to { transform: none; } }
/* 品牌四色渐变只用在首屏关键词（依据：PFN 日文标题渐变填充，细笔画也清楚） */
.grad-text { background-image: linear-gradient(90deg, #6547F5, #B83AA8 50%, #F55200 85%, #1FA85A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-dark .grad-text { background-image: linear-gradient(90deg, var(--brand-purple), var(--brand-pink) 45%, var(--brand-orange) 75%, var(--brand-green)); }
.scramble { display: inline-block; white-space: nowrap; }
.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; }

/* 区块进场：从下方 16px 淡入，只播一次（Sanity 实测参数） */
[data-motion="on"] [data-reveal]:not(.is-in) { opacity: 0; }
[data-motion="on"] [data-reveal].is-in { animation: reveal 0.9s var(--ease-out) var(--d, 0s) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
[data-reveal].is-in.no-anim, .hero-title.no-anim .line-in { animation: none !important; }
[data-motion="on"] { scroll-behavior: smooth; }
/* 关掉动效：所有动画和过渡一律停 */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }

/* 截止倒计时：数字等宽，变化时不左右抖 */
.countdown { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); }
.countdown .num { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); flex-shrink: 0; }
.recruit-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section.first { padding-top: 32px; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; }
.section-head > .link { flex-shrink: 0; white-space: nowrap; min-height: 44px; }
.section-head p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Incubator 招募带 */
.recruit { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.recruit-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.recruit-body h2 { font-size: 24px; }
.recruit-photo { position: relative; min-height: 220px; }
.recruit-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-caption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(9, 9, 9, 0.72); color: #F1F1F1; font-size: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.facts dt { font-size: 12px; color: var(--text-3); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.facts .wide { grid-column: 1 / -1; }

/* logo 云 */
.logo-rows { display: flex; flex-direction: column; gap: 20px; }
.logo-row { display: flex; flex-direction: column; gap: 10px; }
.logo-row .label { font-size: 12px; color: var(--text-3); }
/* 跑马灯（Modal 两排反向的做法）：一组内容放两份，整条向左移动半个长度后回到起点，首尾接得上 */
.marquee { position: relative; overflow: hidden; min-width: 0; }
.marquee-track { display: flex; width: max-content; }
.marquee .set { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--text-2); }
.marquee .ph { font-family: var(--font-body); font-size: 15px; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); padding: 4px 12px; }
[data-motion="on"] .marquee-track { animation: marquee var(--dur, 60s) linear infinite; }
[data-motion="on"] .marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* 关掉动效时：只留第一份、去掉重复项，换行静态排列 */
[data-motion="off"] .marquee-track { width: auto; }
[data-motion="off"] .marquee .set { flex-wrap: wrap; white-space: normal; gap: 12px 32px; padding-right: 0; }
[data-motion="off"] .marquee .set[aria-hidden="true"], [data-motion="off"] .marquee .rep,
[data-motion="off"] .marquee .fade-l, [data-motion="off"] .marquee .fade-r { display: none; }
.fade-l, .fade-r { position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; }
.fade-l { left: 0; background: linear-gradient(to right, var(--bg), rgba(255, 255, 255, 0)); }
.fade-r { right: 0; background: linear-gradient(to left, var(--bg), rgba(255, 255, 255, 0)); }
.theme-dark .fade-l { background: linear-gradient(to right, var(--bg), rgba(9, 9, 9, 0)); }
.theme-dark .fade-r { background: linear-gradient(to left, var(--bg), rgba(9, 9, 9, 0)); }

/* 参加の流れ */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.step { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-no { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--accent); }
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--text-2); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500; }
.faq-a { margin-top: 10px; font-size: 15px; color: var(--text-2); max-width: 720px; }

/* 结尾 */
.final { text-align: center; padding: 72px 0; }
.final h2 { font-size: 28px; }
.final p { color: var(--text-2); margin: 10px 0 24px; }

/* 页脚 */
.footer { border-top: 1px solid var(--border); padding: 40px 0 32px; font-size: 13px; color: var(--text-2); }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
.footer-tag { margin-top: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.footer-cols a { display: block; padding: 3px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-cols a .icon-sm { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; }
.fk { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
/* 访客自己关动效的开关（KOKUYO 的「サイトの動き」做法） */
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 3px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: transparent; color: var(--text-2); font-family: var(--font-body); font-size: 12px; cursor: pointer; }
.motion-toggle .sw { display: inline-flex; padding: 2px; border-radius: var(--r-pill); background: var(--surface-2); }
.motion-toggle .sw span { padding: 2px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; color: var(--text-3); }
[data-motion="on"] .motion-toggle .on, [data-motion="off"] .motion-toggle .off { background: var(--text); color: var(--bg); }

/* ---------- 活动详情 ---------- */
.crumb { font-size: 13px; color: var(--text-3); display: flex; gap: 8px; align-items: center; padding: 20px 0 0; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 20px 0 32px; }
.event-head h1 { font-size: 32px; margin: 14px 0 8px; }
.event-head .lead { font-size: 17px; color: var(--text-2); }
.info-list { margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.info-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.info-row dt { color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.info-row dd { margin: 0; }
.block { margin-top: 40px; }
.block h2 { font-size: 20px; margin-bottom: 14px; }
.block p + p { margin-top: 12px; }
.sessions { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.session { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.session .no { font-family: var(--font-display); font-weight: 600; color: var(--text-3); font-size: 14px; }
.session .date { color: var(--text-3); font-size: 14px; }
.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 1px dashed var(--border-strong); background: var(--surface-2); flex-shrink: 0; }
.notes { margin: 0; padding-left: 1.2em; color: var(--text-2); font-size: 15px; }
.notes li + li { margin-top: 6px; }

.apply-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.apply-price { display: flex; align-items: baseline; justify-content: space-between; }
.apply-price .v { font-size: 22px; font-weight: 700; }
.bar { height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 72%; background: var(--accent); border-radius: var(--r-pill); }
.apply-seats { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.apply-note { font-size: 13px; color: var(--text-3); text-align: center; }
.apply-aside { display: none; }
.mobile-cta { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--border); }
.mobile-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.mobile-cta .seats { font-size: 13px; color: var(--text-2); }
.mobile-cta .seats strong { display: block; font-size: 15px; color: var(--text); }

/* ---------- Incubator 页 ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 48px; }
.page-hero h1 { font-size: 36px; font-weight: 900; margin: 14px 0 16px; }
.page-hero .lead { font-size: 17px; font-weight: 500; }
.page-hero .desc { color: var(--text-2); margin-top: 8px; max-width: 760px; }
.page-hero .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.deadline { font-size: 13px; color: var(--text-3); }
.deadline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; }

.req { margin: 0; border-top: 1px solid var(--border); }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.req-row dt { font-size: 13px; color: var(--text-3); }
.req-row dd { margin: 0; font-size: 16px; font-weight: 500; }

.supports { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.support { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.support h3 { font-size: 18px; }
.support p { font-size: 14px; color: var(--text-2); }
.support .brandline { font-family: var(--font-display); font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.support .brandline b { color: var(--text); font-weight: 600; }
.support-photo { overflow: hidden; padding: 0; }
.support-photo img { width: 100%; height: 200px; object-fit: cover; }
.support-photo .inner { padding: 22px; display: flex; flex-direction: column; gap: 10px; }

/* 六阶段滚动叙事。手机：竖向时间线，当前阶段的圆点变亮 */
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.story-sticky h2 { font-size: 24px; }
.story-sticky > p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
.story-rail { display: none; }
.story-panels { position: relative; margin-left: 4px; border-left: 1px solid var(--border-strong); }
.story-panel { position: relative; padding: 0 0 40px 24px; }
.story-panel:last-child { padding-bottom: 4px; }
.story-panel::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong); transition: background-color 300ms var(--ease-std), border-color 300ms var(--ease-std); }
.story-panel.is-active::before { background: var(--accent); border-color: var(--accent); }
.story-no { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); }
.story-no span { color: var(--text-3); font-weight: 500; }
.story-panel h3 { font-size: 22px; margin: 6px 0 4px; }
.story-goal { font-size: 16px; font-weight: 500; }
.story-dl { margin: 16px 0 0; display: grid; gap: 16px; }
.story-dl dt { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.story-dl dd { margin: 0; font-size: 15px; color: var(--text-2); }
.story-dl ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.story-dl li { position: relative; padding-left: 16px; color: var(--text); }
.story-dl li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 7px; height: 1px; background: var(--text-3); }

.mentors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mentor { display: flex; flex-direction: column; gap: 10px; }
.mentor .avatar { width: 72px; height: 72px; }
.mentor .n { font-size: 15px; font-weight: 500; color: var(--text-3); }
.mentor .t { font-size: 13px; color: var(--text-3); }

/* ---------- 组件页 ---------- */
.spec { padding: 40px 0 80px; }
.spec h1 { font-size: 28px; }
.spec-sec { margin-top: 40px; }
.spec-sec h2 { font-size: 18px; margin-bottom: 6px; }
.spec-sec .desc { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.spec-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spec-row + .spec-row { margin-top: 12px; }
.spec-label { width: 100%; font-size: 12px; color: var(--text-3); }
.panel { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); }
.panel.light { background: #F1F1F1; }
.field { display: flex; flex-direction: column; gap: 6px; width: 280px; }
.field label { font-size: 13px; color: var(--text-2); }
.input { height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 0 14px; font-family: var(--font-body); font-size: 15px; }
.input.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(101, 71, 245, 0.22); }
.input.is-error { border-color: var(--danger); }
.field .err { font-size: 12px; color: var(--danger); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r-md); border: 1px solid var(--border); overflow: hidden; }
.swatch .c { height: 72px; }
.swatch .t { padding: 10px 12px; font-size: 12px; color: var(--text-2); }
.swatch .t b { display: block; font-family: var(--font-display); font-size: 13px; color: var(--text); }
.logos-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-tile { height: 120px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.logo-tile img { width: 44px; }
.logo-tile .w { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-left: 10px; }
.motion-table { border-top: 1px solid var(--border); font-size: 14px; }
.mt-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mt-row .latin { color: var(--text-2); }
.mt-head { display: none; }

/* ============ 手机宽度：一直在动的跑马灯停掉，改静态排列 ============ */
@media (max-width: 767px) {
  .marquee-track { animation: none !important; width: auto; }
  .marquee .set { flex-wrap: wrap; white-space: normal; gap: 10px 24px; padding-right: 0; font-size: 18px; }
  .marquee .set[aria-hidden="true"], .marquee .rep, .marquee .fade-l, .marquee .fade-r { display: none; }
}

/* 首页索引 */
.hub { padding: 48px 0; }
.hub h1 { font-size: 24px; margin-bottom: 20px; }
.hub-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hub-list a { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }

/* ============ ≥768px ============ */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .notice .short { display: none; }
  .notice .full { display: inline; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .actions, .page-hero .actions { flex-direction: row; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 200px)); gap: 8px 48px; }
  .supports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mentors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .req-row { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .logo-row { flex-direction: row; align-items: center; gap: 24px; }
  .logo-row .label { width: 120px; flex-shrink: 0; }
  .marquee { flex: 1; }
  .mt-row { grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, 1fr); gap: 16px; }
  .mt-head { display: grid; font-size: 12px; color: var(--text-3); }
}

/* ============ ≥1100px ============ */
@media (min-width: 1100px) {
  .nav { display: flex; }
  .hero .container { padding-top: 88px; padding-bottom: 64px; }
  .hero h1 { font-size: 80px; margin: 18px 0 20px; }
  .hero .lead { font-size: 20px; }
  .hero .sub { font-size: 16px; }
  .section { padding: 80px 0; }
  .section.first { padding-top: 40px; }
  .section-head h2 { font-size: 32px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recruit { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .recruit-body { padding: 40px; }
  .recruit-body h2 { font-size: 30px; }
  .recruit-photo { min-height: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final h2 { font-size: 40px; }
  .final { padding: 104px 0; }
  .event-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding: 24px 0 96px; }
  .event-head h1 { font-size: 44px; }
  .apply-aside { display: block; }
  .apply-aside .card { position: sticky; top: 88px; }
  .mobile-cta { display: none; }
  .page-hero .container { padding-top: 88px; padding-bottom: 72px; }
  .page-hero h1 { font-size: 60px; }
  .supports { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-photo { grid-row: span 2; }
  .support-photo img { height: 240px; }
  /* 六阶段滚动叙事（桌面）：左栏钉在屏幕上（Sanity 的 top 25vh），右侧逐段滚过；
     进度线随滚动往下走（Railway 做法），当前阶段在左栏高亮、右侧不在当前的段落变暗 */
  .story { grid-template-columns: 340px minmax(0, 1fr); gap: 80px; }
  .story-sticky { position: sticky; top: max(25vh, 120px); }
  .story-sticky h2 { font-size: 32px; }
  .story-rail { display: block; position: relative; list-style: none; margin: 32px 0 0; padding: 0 0 0 26px; }
  .rail-line { position: absolute; left: 4px; top: 12px; bottom: 12px; width: 1px; background: var(--border-strong); }
  .rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--accent); }
  .rail-fill::after { content: ""; position: absolute; left: -4px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(101, 71, 245, 0.16); }
  .story-rail button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 7px 0; background: none; border: 0; color: var(--text-3); font-family: var(--font-body); font-size: 16px; text-align: left; cursor: pointer; transition: color 300ms var(--ease-std); }
  .story-rail button .no { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
  .story-rail button:hover { color: var(--text-2); }
  .story-rail button[aria-current="step"] { color: var(--text); }
  .story-rail button[aria-current="step"] .no { color: var(--accent); }
  .story-panels { margin-left: 0; border-left: 0; }
  .story-panel { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; border-top: 1px solid var(--border); }
  .story-panel:first-child { border-top: 0; }
  .story-panel::before { display: none; }
  .story.is-live .story-panel { opacity: 0.32; transition: opacity 300ms var(--ease-std); }
  .story.is-live .story-panel.is-active { opacity: 1; }
  .story-panel h3 { font-size: 36px; margin: 10px 0 8px; }
  .story-goal { font-size: 20px; }
  .story-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
  .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .logos-demo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 1100〜1279px：导航 6 项（含 Token Station）加上运营人员的「管理画面」按钮时，logo 和导航挤在一起：间距收到 22px */
@media (min-width: 1100px) and (max-width: 1279px) {
  .nav { gap: 22px; }
}


/* ============ 全屏菜单（PickHub 的汉堡菜单；业务入口按 KOKUYO 写一句「在这里能做什么」） ============ */
.menu-btn { cursor: pointer; }
.site-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.site-menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--border); }
.menu-body { padding-top: 24px; padding-bottom: 48px; }
/* 全屏菜单：三列纯文字链接（事業 / コミュニティ / Echo），不放卡片、描述和彩色线（09-24 用户指出重复） */
.menu-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.menu-cols a { display: block; padding: 8px 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
.menu-cols a:hover { background-image: var(--echo-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.menu-k { margin-bottom: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); }
[data-motion="on"] .site-menu:not([hidden]) { animation: menu-in 200ms var(--ease-std) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* 内页首屏的「给谁」一行、区块页码、交替底色、深色结尾 */
.audience { display: inline-flex; margin-top: 14px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 13px; color: var(--text-2); }
.sec-no { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 6px; }
.section.alt { background: var(--bg-soft); }
.section.alt + .section, .section + .section.alt { border-top: 0; }
.final.theme-dark { background: var(--bg); }

/* 原型索引 */
.hub-h { font-size: 16px; margin: 28px 0 10px; }
.hub-todo { opacity: 0.55; }

@media (min-width: 768px) {
}
@media (min-width: 1100px) {
  .menu-body { padding-top: 40px; }
  .menu-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .menu-cols a { font-size: 26px; }
}

/* ================================================================== 视觉组件（09-24，来自参考库） */
/* 事业代表色：KOKUYO 用颜色区分业务线；--tone 用在圆点、描边、高亮，--tone-soft 用在大面积淡底 */
.tone-incubator { --tone: #6547F5; --tone-soft: #EFECFE; --tone-on-dark: #9C8BFF; }
.tone-university { --tone: #1FA85A; --tone-soft: #E4F7EB; --tone-on-dark: #3ED67D; }
.tone-cafe { --tone: #E84FD3; --tone-soft: #FDEDFB; --tone-on-dark: #F57AE5; }
.tone-fde { --tone: #F55200; --tone-soft: #FEEEE6; --tone-on-dark: #FF7A3D; }
.tone-enterprise { --tone: #090909; --tone-soft: #F1F1EE; --tone-on-dark: #F1F1F1; }
.tone-neutral { --tone: #090909; --tone-soft: #F5F5F2; --tone-on-dark: #F1F1F1; }
.tone-token { --tone: #6547F5; --tone-soft: linear-gradient(135deg, #EFECFE 0%, #FDEDFB 55%, #E4F7EB 100%); }
/* 课程三层（CEO deck 第 9 页：実務 薄荷绿、コーディング 浅青、コンテンツ 浅紫） */
.tone-work { --tone: #1FA85A; --tone-soft: #E3F7EE; }
.tone-code { --tone: #0E9AAE; --tone-soft: #E2F5F7; }
.tone-content { --tone: #8A4FE8; --tone-soft: #F2EBFD; }

/* 业务入口方块（KOKUYO：淡色底、一句行动描述、右下切角） */
.biz-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.biz-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 200px; padding: 24px 24px 22px; background: var(--tone-soft); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-lg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); transition: filter 150ms var(--ease-std); }
.biz-tile:hover { filter: brightness(0.97); }
.biz-tile .k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-2); }
.biz-tile .k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.biz-tile h3 { font-size: 22px; letter-spacing: -0.01em; }
.biz-tile p { font-size: 14px; color: var(--text-2); max-width: 30em; }
.biz-tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.biz-tile .go svg { transition: transform 150ms var(--ease-std); }
.biz-tile:hover .go svg { transform: translateX(3px); }

/* 卡片拼块（Magic UI Bento Grid、Supabase 产品卡） */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bento-item { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.bento-item h3 { font-size: 19px; }
.bento-item p { font-size: 14px; color: var(--text-2); }
.bento-item[class*="tone-"] { background: var(--tone-soft); border-color: transparent; }

/* 卡片跟随鼠标的紫色光晕（Magic Card）09-24 用户说不需要，已去掉；.spot 只保留定位 */
.spot { position: relative; isolation: isolate; }

/* 灰块小界面示意（OpenRouter 三步上手的迷你界面） */
.mini-ui { --mu: #ECECE8; --mu-2: #F5F5F2; --mu-on: var(--tone, var(--accent)); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 150px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.mini-ui i { display: block; }
.mu-bar { height: 8px; border-radius: 4px; background: var(--mu); }
.mu-bar.dim { background: var(--mu-2); }
.mu-bar.c1 { background: #DAD4FD; }
.mu-bar.c2 { background: #ECECE8; }
.mu-row { display: flex; align-items: center; gap: 10px; }
.mu-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mu-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--mu); flex-shrink: 0; }
.mu-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--mu); flex-shrink: 0; }
.mu-chip { width: 38px; height: 16px; border-radius: 8px; background: var(--mu-2); flex-shrink: 0; }
.mu-chip.on { background: var(--mu-on); opacity: 0.85; }
.mu-tags { display: flex; gap: 6px; }
.mu-head { display: flex; justify-content: space-between; gap: 10px; }
.mu-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mu-cell { aspect-ratio: 1; border-radius: 4px; background: var(--mu-2); position: relative; }
.mu-cell.on { background: var(--mu-on); opacity: 0.85; }
.mu-cell.dot::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mu-on); }
.mu-field { display: flex; flex-direction: column; gap: 6px; }
.mu-input { height: 22px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
.mu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mu-opt { height: 26px; border-radius: 6px; border: 1px solid var(--border); }
.mu-opt.on { border-color: var(--mu-on); background: color-mix(in srgb, var(--mu-on) 10%, transparent); }
.mu-btn { height: 24px; width: 40%; border-radius: 12px; background: #090909; align-self: flex-start; }
.mu-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.mu-col-bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--mu); }
.mu-col-bar.on { background: var(--mu-on); opacity: 0.85; }
.mu-bubble { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 10px; max-width: 72%; background: var(--mu-2); }
.mu-bubble.r { align-self: flex-end; background: color-mix(in srgb, var(--mu-on) 14%, transparent); }
.mu-code { display: flex; gap: 8px; }
.mu-ticket { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mu-t-main { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px; }
.mu-t-stub { width: 64px; display: flex; align-items: center; justify-content: center; border-left: 1px dashed var(--border-strong); }
.mu-qr { width: 38px; height: 38px; border-radius: 4px; background: repeating-conic-gradient(#090909 0 25%, transparent 0 50%) 0 0 / 9.5px 9.5px; opacity: 0.85; }
.mu-map { position: relative; flex: 1; min-height: 120px; border-radius: 8px; background: linear-gradient(var(--mu-2) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, var(--mu-2) 1px, transparent 1px) 0 0 / 20px 20px; }
.mu-pin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #BDBDB8; box-shadow: 0 0 0 4px rgba(9, 9, 9, 0.05); }
.mu-pin.on { background: var(--mu-on); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mu-on) 18%, transparent); }
.mu-trow { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--mu-2); }
.mu-trow.head .mu-bar { height: 6px; }

/* 点阵数字（Supabase） */
.dot-number { margin: 0; color: var(--tone, var(--accent)); }
.dot-number svg { display: block; max-width: 100%; height: auto; }
.dot-number circle.off { fill: var(--text); fill-opacity: 0.07; }
.dot-number circle.on { fill: currentColor; }
.dot-number figcaption { margin-top: 8px; font-size: 13px; color: var(--text-2); }
[data-motion="on"] [data-reveal]:not(.is-in) .dot-number circle.on { fill-opacity: 0.15; }
[data-motion="on"] [data-reveal].is-in .dot-number circle.on { animation: dot-on 0.4s ease both; animation-delay: calc(var(--d, 0s) + 0.2s); }
@keyframes dot-on { from { fill-opacity: 0.15; } to { fill-opacity: 1; } }

/* 渐变描边胶囊（Resend 的告知胶囊）。静止时是品牌四色细框。
   开动效的桌面端是跑马灯（09-24 用户要求）：淡色轨道上，一段四色光沿边框匀速转圈，4 秒一圈。
   光段用 offset-path 沿圆角矩形走，速度均匀；手机上和不支持 offset-path 的浏览器保持静止细框 */
.pill-glow { --pg-full: conic-gradient(#6547F5, #F57AE5, #F55200, #3ED67D, #6547F5); position: relative; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--text); background: var(--bg); isolation: isolate; }
.pg-ring { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; padding: 1px; background: var(--pg-full); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.pg-beam { display: none; }
@supports (offset-path: rect(0 auto auto 0 round 1px)) {
  @media (min-width: 768px) {
    [data-motion="on"] .pg-ring { padding: 1.5px; background: conic-gradient(rgba(101, 71, 245, 0.28), rgba(245, 122, 229, 0.28), rgba(245, 82, 0, 0.28), rgba(62, 214, 125, 0.28), rgba(101, 71, 245, 0.28)); }
    [data-motion="on"] .pg-beam { display: block; position: absolute; top: 0; left: 0; width: 88px; height: 8px; border-radius: 4px; background: linear-gradient(to right, transparent, #3ED67D 30%, #6547F5 58%, #F57AE5 80%, #F55200); offset-path: rect(0 auto auto 0 round 16px); offset-anchor: 100% 50%; animation: pg-run 4s linear infinite; }
  }
}
@keyframes pg-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.pg-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }
a.pill-glow::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }  /* 点按区域扩到 44px */

/* 大数字统计行（OpenRouter） */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); word-break: auto-phrase; }
.stat { padding: 22px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat .v { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 6px; font-size: 13px; color: var(--text-2); word-break: auto-phrase; }
@media (max-width: 767px) { .stat { padding: 18px 14px; } .stat .v { font-size: 30px; } .stat .l { font-size: 12px; } }

/* 1px 格子 logo 墙（Mintlify） */
.logo-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.logo-wall > span { display: flex; align-items: center; justify-content: center; height: 88px; padding: 0 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-2); text-align: center; transition: color 150ms var(--ease-std), background-color 150ms var(--ease-std); }
.logo-wall > span:hover { color: var(--text); background: var(--bg-soft); }
.logo-wall > span.ph { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-3); }

/* 钉在页头下方的页内导航（Vercel 产品页子导航） */
.subnav { position: sticky; top: 65px; z-index: 25; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.subnav .container { display: flex; align-items: center; gap: 4px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a:not(.btn) { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; color: var(--text-2); transition: color 150ms var(--ease-std), background-color 150ms var(--ease-std); }
.subnav a:not(.btn):hover { color: var(--text); }
.subnav a.is-current:not(.btn) { color: var(--text); background: var(--surface-2); }
html:has(.subnav) [id] { scroll-margin-top: 132px; }

/* 终端窗口（Aceternity / Magic UI Terminal）：白底页面上也保持深色窗口 */
.term { border-radius: var(--r-md); background: #0E0E10; color: #E7E7EA; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.75; overflow: hidden; border: 1px solid rgba(9, 9, 9, 0.2); box-shadow: 0 24px 48px -28px rgba(9, 9, 9, 0.45); }
.term-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #1A1A1D; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; }
.term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { flex: 1; min-width: 0; text-align: center; margin-right: 48px; font-size: 12px; color: #8C8C92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body { padding: 16px 18px 20px; min-height: 180px; white-space: pre-wrap; word-break: break-all; }
.t-prompt { color: #B8A9FF; margin-right: 10px; }
.t-out { color: #A6A6AD; }
.t-ok { color: #6BE3A0; }
.t-cursor { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #E7E7EA; }
[data-motion="on"] .t-cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
[data-motion="on"] .term.is-typing .t-line:not(.is-shown) { display: none; }

/* 只有描边的大号英文带（IVS 空心大字、PickHub 的英文收尾标签） */
.outline-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.outline-band .container { padding-top: 18px; padding-bottom: 18px; }
.outline-band span { display: block; white-space: nowrap; font-size: 44px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--text-3); overflow: hidden; text-overflow: clip; }

/* 区块上方的小标签（Tailwind 首页） */
.sec-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.sec-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--accent)); }

/* 细线网格分区（Tailwind、Vercel 的全宽细线 + 角上的十字） */
.section.frame { padding: 0; overflow-x: clip; }
.section.frame > .container { position: relative; padding-top: 56px; padding-bottom: 56px; }
.section.frame > .container::before, .section.frame > .container::after { content: ""; position: absolute; top: -6px; width: 11px; height: 11px; background: linear-gradient(var(--text-3), var(--text-3)) center / 1px 11px no-repeat, linear-gradient(var(--text-3), var(--text-3)) center / 11px 1px no-repeat; }
.section.frame > .container::before { left: -6px; }
.section.frame > .container::after { right: -6px; }
@media (max-width: 767px) { .section.frame > .container::before, .section.frame > .container::after { display: none; } }

@media (min-width: 768px) {
  .biz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .logo-wall { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
  .outline-band span { font-size: 72px; }
  .section.frame > .container { border-left: 1px solid var(--border); border-right: 1px solid var(--border); max-width: calc(var(--container) + var(--gutter) * 2 - 0px); }
}
@media (min-width: 1100px) {
  .section-head h2 { font-size: 40px; letter-spacing: -0.015em; }
  .biz-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .biz-tile { min-height: 230px; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); }
  .bento .w2 { grid-column: span 2; } .bento .w3 { grid-column: span 3; } .bento .w4 { grid-column: span 4; } .bento .w6 { grid-column: span 6; }
  .bento .h2 { grid-row: span 2; }
  .stat .v { font-size: 44px; }
  .outline-band span { font-size: 104px; }
}

/* 视觉组件样板页 */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kit-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; }

/* 应募倒计时：截止后圆点变灰（状态由 site.js 写进 data-state） */
.countdown[data-state="closed"] .cd-dot { background: var(--text-3); }

/* 下拉选框（09-30）：点开后的面板由 site.js 画（.sel-pop），收起时的样子沿用各页的 select 样式。
   没单独做样式的 select.input（应募、問い合わせ表单）在这里统一去掉系统外观，补上同一个箭头 */
select.input:not(.f-select > select) {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B70' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
select.is-open { border-color: var(--text); }
.sel-pop {
  position: fixed; z-index: 90; box-sizing: border-box; max-width: min(420px, calc(100vw - 16px)); padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  box-shadow: 0 1px 2px rgba(9, 9, 9, 0.06), 0 16px 40px -12px rgba(9, 9, 9, 0.22);
  font-family: var(--font-body); font-size: 14px; line-height: 1.4; color: var(--text);
  opacity: 0; transform: translateY(-4px); transition: opacity 140ms var(--ease-std), transform 140ms var(--ease-std);
}
.sel-pop.is-up { transform: translateY(4px); }
.sel-pop.is-in { opacity: 1; transform: none; }
[data-motion="off"] .sel-pop { transition: none; }
.sel-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-3); }
.sel-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; }
.sel-opt.is-active { background: var(--surface-2); }
.sel-opt[aria-selected="true"] { font-weight: 500; }
.sel-opt[aria-disabled="true"] { color: var(--text-3); opacity: 0.55; cursor: not-allowed; }
.sel-check { flex: none; width: 16px; height: 16px; color: var(--accent); visibility: hidden; }
.sel-opt[aria-selected="true"] .sel-check { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .sel-pop { transition: none; } }
