/* ==========================================================
   博仔个人站 · v4 奶油软陶圆角卡片风（CSS 变量主题制）
   底 #FDFBF7 · 卡 #FFFFFF · 唯一强调 #4DA3FF 天蓝
   圆角四级 36 / 30 / 16 / 999 · 阴影两级全收变量 · 全面无衬线
   换肤 = 只换下面的 token 块，组件规则一律引用变量
   ========================================================== */

:root {
  /* ---------- 颜色 token（浅色 · 奶油软陶） ---------- */
  --bg: #F6F1E6;                              /* 奶油米白底 */
  --tint: #F4EDDE;                            /* 分区微沉底 */
  --card: #FFFFFF;                            /* 卡片 */
  --shell: rgba(255, 255, 255, .55);          /* 外层 bezel 半透明白 */
  --ink: #0A0A0A;
  --muted: #5C5C52;                           /* 次级正文 · 米白底上 6.5:1 */
  --faint: #6E6E64;                           /* 微标签 · 米白底上 ~5:1 */
  --accent: #4DA3FF;                          /* 唯一强调：天蓝 */
  --accent-ink: #1E6FD0;                      /* 小字号文本用同相加深 4.9:1 */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-wash: color-mix(in srgb, var(--accent) 5%, var(--bg));
  --online: #2FBF71;
  --online-ink: #177A47;
  --online-soft: color-mix(in srgb, var(--online) 13%, transparent);
  --line: rgba(10, 10, 10, .08);              /* 发丝线 */
  --glow-1: rgba(77, 163, 255, .10);          /* 环境光斑 · 天蓝 */
  --glow-2: rgba(214, 190, 140, .16);         /* 环境光斑 · 奶油暖 */

  /* ---------- 阴影 scale（全站仅此两级 + 内衬高光 + 发丝描边） ---------- */
  --inner-light: inset 0 1px 0 rgba(255, 255, 255, .7);
  --ring: 0 0 0 1px var(--line);
  --ring-in: inset 0 0 0 1px var(--line);
  --ring-accent: 0 0 0 1px var(--accent);
  --shadow-1: 0 20px 40px -15px rgba(10, 10, 10, .09);   /* 静置 */
  --shadow-2: 0 24px 48px -16px rgba(10, 10, 10, .10);   /* hover */
  --card-rest: var(--inner-light), var(--ring), var(--shadow-1);
  --card-hover: var(--inner-light), var(--ring-accent), var(--shadow-2);
  --core-shadow: var(--inner-light), var(--ring-in);

  /* ---------- 圆角四级（全站只用这四级） ---------- */
  --r-shell: 36px;    /* 大卡 / 分区 */
  --r-core: 30px;     /* 卡内嵌套层（同心） */
  --r-small: 16px;    /* 小件 / 输入框 / 标签 */
  --r-pill: 999px;    /* 按钮 / 胶囊 */

  /* ---------- 字体（全站唯一字体族 = 无衬线；原 mono 已统一，勿再新增等宽） ---------- */
  --sans: "Plus Jakarta Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "Plus Jakarta Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* ---------- 字号六级（全站唯一口径） ---------- */
  --fs-xs: 12px;     /* 微标签 / 状态 / 编号 */
  --fs-s: 13.5px;    /* 辅助说明 / chip / 代码 */
  --fs-m: 15px;      /* 正文默认 / 按钮 / 卡片描述 */
  --fs-l: 16px;      /* 大段正文 intro / sub */
  --fs-xl: 19px;     /* h3 / 卡片标题 */
  --fs-2xl: 26px;    /* 胶囊数值 / 项目卡标题 */

  --ease: cubic-bezier(.32, .72, 0, 1);

  /* ---------- 深色联系页（两种主题下都保持深底大圆角带） ---------- */
  --sec-ink: #F5F4EF;
  --sec-muted: rgba(245, 244, 239, .66);
  --sec-line: rgba(245, 244, 239, .16);
  --sec-card: rgba(255, 255, 255, .05);
  --sec-inner: inset 0 1px 0 rgba(255, 255, 255, .06);
  --sec-ring: inset 0 0 0 1px var(--sec-line);
}

[data-theme="dark"] {
  --bg: #101012;
  --tint: #141417;
  --card: #18181C;
  --shell: rgba(255, 255, 255, .05);
  --ink: #F5F4EF;
  --muted: #A9AA9F;
  --faint: #8C8D84;
  --accent-ink: #7CB8FF;
  --online-ink: #3FDC8A;
  --line: rgba(245, 244, 239, .10);
  --glow-1: rgba(77, 163, 255, .09);
  --glow-2: rgba(214, 190, 140, .05);
  --inner-light: inset 0 1px 0 rgba(255, 255, 255, .04);
  --shadow-1: 0 20px 40px -15px rgba(0, 0, 0, .50);
  --shadow-2: 0 24px 48px -16px rgba(0, 0, 0, .55);
  --sec-card: rgba(255, 255, 255, .05);
  --sec-inner: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: var(--fs-l);
  line-height: 1.75;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 环境光斑：奶油底的两团柔光，纯背景装饰 */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
body::before {
  width: 640px; height: 640px;
  left: -180px; top: -200px;
  background: radial-gradient(circle at 35% 35%, var(--glow-1), transparent 62%);
}
body::after {
  width: 520px; height: 520px;
  right: -160px; top: 140px;
  background: radial-gradient(circle at 60% 60%, var(--glow-2), transparent 62%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--now { padding: 56px 0; }

/* ---------- 字元 ---------- */
.kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font: 600 var(--fs-xs)/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.kicker span { color: var(--accent-ink); margin-right: 10px; }
.kicker.light { color: var(--sec-muted); }
.mini-label {
  margin-bottom: 10px;
  color: var(--faint);
  font: 600 var(--fs-xs)/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.display {
  font-size: clamp(46px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.display em { font-style: normal; color: var(--accent); }
.display span, .display em { display: block; }
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--fs-xl);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- 按钮（胶囊 + 主按钮内嵌小圆箭头） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 8px 0 24px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: var(--fs-m);
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-solid::after {
  content: "\2192";               /* → */
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .22);
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--fs-m);
  transition: transform .3s var(--ease), background .2s var(--ease);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-solid:hover::after { transform: translateX(2px); background: rgba(255, 255, 255, .32); }
.btn-solid:active { transform: scale(.98); }
.btn-solid .btn-arrow { display: none; }   /* 箭头统一走 ::after 小圆 */

/* ---------- 导航（漂浮玻璃胶囊） ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 30;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
  padding: 0 10px 0 20px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--card) 68%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--inner-light), var(--ring), var(--shadow-1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.01em; }
.brand-text small { color: var(--faint); font: 600 var(--fs-xs)/1.3 var(--mono); letter-spacing: .06em; }
.pixel-mark {
  width: 22px; height: 22px;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 2.5px;
}
.pixel-mark i { background: var(--ink); border-radius: 1.5px; }
.pixel-mark i:nth-child(2), .pixel-mark i:nth-child(4), .pixel-mark i:nth-child(8) { opacity: 0; }
.pixel-mark i:nth-child(3) { background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.nav-links .nav-cta {
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}
.nav-links .nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.theme-toggle {
  width: 36px; height: 36px;
  margin-left: 6px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--ring);
  color: var(--muted);
  font-size: var(--fs-m);
  line-height: 1;
  cursor: pointer;
  transition: box-shadow .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { box-shadow: var(--ring-accent); color: var(--accent-ink); transform: rotate(-14deg); }

/* ---------- 首屏 ---------- */
.hero { padding: 64px 0 72px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero .kicker { color: var(--accent-ink); }
.hero-intro { margin: var(--fs-2xl) 0 32px; max-width: 560px; color: var(--muted); font-size: var(--fs-l); line-height: 1.85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-live {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--shell);
  box-shadow: var(--ring-in);
  color: var(--muted);
  font: 600 var(--fs-xs)/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rotator.is-in { animation: riseIn .55s var(--ease) both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
/* 水墨画像：外层 bezel 36 + 内层图 30 同心 */
.hero-visual {
  margin: 0;
  padding: 10px 10px 6px;
  justify-self: center;
  border-radius: var(--r-shell);
  background: var(--shell);
  box-shadow: var(--card-rest);
  transform: rotate(-2deg);  /* 微倾斜破格，去证件照感 */
}
.hero-visual img {
  width: min(380px, 100%);
  border-radius: var(--r-core);
  mix-blend-mode: multiply; /* 白底水墨融进奶油底 */
}
[data-theme="dark"] .hero-visual img {
  mix-blend-mode: screen;
  filter: invert(.9) hue-rotate(180deg);
  opacity: .92;
}
.hero-visual figcaption {
  padding: 8px 0 4px;
  text-align: center;
  color: var(--faint);
  font: 600 var(--fs-xs)/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- 状态点（真实探测 · 呼吸） ---------- */
.status-dot {
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.status-dot.is-probing { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
.is-online .status-dot, .status-dot.is-online { background: var(--online); }
.is-online .status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--online);
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}
.is-offline .status-dot { background: var(--faint); }
@keyframes pulse {
  0% { transform: scale(.55); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes blink { 50% { opacity: .35; } }

/* ---------- 区块标题 ---------- */
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: var(--fs-m); }

/* ---------- 01 站点群（双层 bezel：外 36 内 30） ---------- */
.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: var(--shell);
  border-radius: var(--r-shell);
  box-shadow: var(--card-rest);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.site-card:hover, .site-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}
.site-card--wide { grid-column: 1 / -1; flex-direction: row; }
.site-card--wide .site-media, .site-card--wide .site-cover { flex: 0 0 46%; }
.site-card--wide .site-media img { height: 100%; aspect-ratio: auto; }
.site-media { border-radius: var(--r-core); overflow: hidden; }
.site-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
a.site-card:hover .site-media img { transform: scale(1.025); }
.site-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-core);
  background: var(--accent-wash);
  box-shadow: var(--ring-in);
}
.site-cover span {
  color: var(--accent-ink);
  font: 700 var(--fs-s)/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
  background: var(--card);
  border-radius: var(--r-core);
  box-shadow: var(--core-shadow);
}
.site-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.site-arrow { color: var(--faint); font-family: var(--mono); transition: color .2s var(--ease), transform .2s var(--ease); }
a.site-card:hover .site-arrow { color: var(--accent-ink); transform: translateX(4px); }
.site-desc { color: var(--muted); font-size: var(--fs-m); line-height: 1.75; }
.site-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-host { color: var(--faint); font: 600 var(--fs-xs)/1.5 var(--mono); letter-spacing: .04em; }
.site-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--faint);
  font: 600 var(--fs-xs)/1 var(--mono);
  letter-spacing: .06em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.site-status.is-probing { color: var(--accent-ink); background: var(--accent-soft); }
.site-status.is-online { color: var(--online-ink); background: var(--online-soft); }
.site-status.is-offline { color: var(--faint); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.site-badge {
  position: absolute;
  right: 20px; bottom: 20px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font: 600 var(--fs-xs)/1 var(--mono);
  letter-spacing: .08em;
  box-shadow: var(--shadow-1);
}

/* ---------- 02 博仔说 ---------- */
.ip-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.ip-copy h2 { margin-bottom: 16px; }
.ip-desc { color: var(--muted); font-size: var(--fs-m); line-height: 1.9; margin-bottom: var(--fs-2xl); max-width: 480px; }
.ip-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ip-channel {
  padding: 16px 18px;
  background: var(--card);
  border-radius: var(--r-small);
  box-shadow: var(--core-shadow);
  display: grid;
  gap: 4px;
}
.ip-channel strong { font-size: var(--fs-m); font-weight: 700; }
.ip-channel span { color: var(--muted); font-size: var(--fs-s); line-height: 1.6; }
.ip-figure { margin: 0; justify-self: center; }
.ip-figure img { width: min(340px, 100%); mix-blend-mode: multiply; }
[data-theme="dark"] .ip-figure img { mix-blend-mode: normal; }

.ip-latest-wrap { margin-top: 44px; }
.ip-latest {
  margin: 0;
  max-width: 880px;
  padding: 8px;
  background: var(--shell);
  border-radius: var(--r-shell);
  box-shadow: var(--card-rest);
}
.ip-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-core);
  overflow: hidden;
  background: var(--ink);
}
.ip-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-latest figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 12px 8px;
  color: var(--muted);
  font-size: var(--fs-m);
  line-height: 1.7;
}
.ip-latest-label {
  flex: none;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 600 var(--fs-xs)/1 var(--mono);
  letter-spacing: .08em;
}

/* ---------- 03 工具箱 ---------- */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tool-card .site-body .mini-label { margin-bottom: 0; }
.tool-card.is-plain:hover { transform: none; box-shadow: var(--card-rest); }
.tool-card.is-plain .site-media img { transform: none; }
.repo-list { display: grid; gap: 10px; margin: 4px 0 10px; }
.repo-row {
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--r-small);
  box-shadow: var(--ring-in);
  display: grid;
  gap: 3px;
}
.repo-row code { font: 700 var(--fs-s)/1.4 var(--mono); color: var(--ink); }
.repo-row span { color: var(--muted); font-size: var(--fs-s); line-height: 1.65; }
.card-link {
  color: var(--accent-ink);
  text-decoration: none;
  font-size: var(--fs-m);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
}
a.site-card:hover .card-link { color: var(--accent-ink); }
.card-note {
  display: inline-block;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.fold { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.fold summary {
  cursor: pointer;
  color: var(--muted);
  font: 600 var(--fs-xs)/1.6 var(--mono);
  letter-spacing: .06em;
  width: fit-content;
  list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "+ "; color: var(--accent-ink); }
.fold[open] summary::before { content: "− "; }
.fold summary:hover { color: var(--accent-ink); }
.fold p { margin-top: 10px; color: var(--muted); font-size: var(--fs-s); }

/* ---------- 04 智能体案例（行式 · 发丝线分组） ---------- */
.case-rows { border-top: 1px solid var(--line); }
.case-row {
  display: grid;
  grid-template-columns: 52px minmax(220px, .8fr) 1.5fr;
  gap: 22px;
  align-items: baseline;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
}
.case-no { color: var(--accent-ink); font: 600 var(--fs-xs)/1 var(--mono); letter-spacing: .06em; }
.case-row h3 { font-size: var(--fs-xl); }
.case-row p { color: var(--muted); font-size: var(--fs-m); line-height: 1.75; }

/* ---------- 05 Now ---------- */
.now-grid { max-width: 720px; }
.now-list { border-top: 1px solid var(--line); }
.now-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-m);
}
.now-item i {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 06 联系（深色大圆角带） ---------- */
.section--ink {
  margin: 0 clamp(12px, 2.4vw, 28px);
  border-radius: var(--r-shell);
  background: linear-gradient(180deg, #16171B 0%, #0B0C0E 100%);
  color: var(--sec-ink);
  box-shadow: var(--sec-inner), var(--shadow-1);
}
[data-theme="dark"] .section--ink { background: linear-gradient(180deg, #17181D 0%, #0D0E11 100%); }
.contact-title { color: var(--sec-ink); }
.contact {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
.section--ink .mini-label { color: var(--sec-muted); }
.contact-mail {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--sec-ink);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--sec-line);
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.contact-mail:hover { color: var(--accent); text-decoration-color: var(--accent); }
.contact-note { margin-bottom: var(--fs-2xl); max-width: 420px; color: var(--sec-muted); font-size: var(--fs-m); }
.contact-channels { display: grid; gap: 16px; }
.contact-channel {
  padding: 20px 22px;
  border-radius: var(--r-small);
  background: var(--sec-card);
  box-shadow: var(--sec-ring);
  display: grid;
  gap: 5px;
}
.contact-channel strong { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; }
.contact-channel span { color: var(--sec-muted); font-size: var(--fs-s); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 28px; }
.footer-inner {
  padding: 24px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font: 500 var(--fs-xs)/1.6 var(--mono);
  letter-spacing: .04em;
}
.footer-run { letter-spacing: .06em; }
.footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--accent-ink); }

/* ---------- 入场动效（渐进增强 + 兜底） ---------- */
.reveal-armed { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-armed.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after { display: none; }
  .reveal-armed { opacity: 1; transform: none; transition: none; }
  .rotator.is-in { animation: none; }
  .site-media img { transition: none; }
}

/* ==========================================================
   v5 新增：数据胶囊 / 重点项目 / 自媒体实况 / 工具箱折叠
   ========================================================== */

/* ---------- 首屏数据胶囊 ---------- */
.stat-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.stat-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: baseline;
  column-gap: 12px;
  padding: 18px 22px;
  background: var(--card);
  border-radius: var(--r-core);
  box-shadow: var(--card-rest);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-pill:hover { transform: translateY(-2px); box-shadow: var(--card-hover); }
.pill-value { grid-row: 1 / 3; font: 800 var(--fs-2xl)/1.1 var(--sans); color: var(--accent-ink); letter-spacing: -.01em; }
.pill-label { font-weight: 700; font-size: var(--fs-m); color: var(--ink); }
.pill-note { font-size: var(--fs-s); color: var(--faint); }

/* ---------- 01 重点项目（网格：工厂通栏 + 三联排；编号锚点） ---------- */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.proj-card {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  padding: 30px 32px 32px;
  background: var(--card);
  border-radius: var(--r-shell);
  box-shadow: var(--card-rest);
  transition: box-shadow .3s var(--ease);
}
.proj-card--wide { grid-column: span 6; }
.proj-card:hover { box-shadow: var(--card-hover); }
.proj-card::before {  /* 大号半透明编号当视觉锚点 */
  content: attr(data-no);
  position: absolute;
  top: 14px; right: 24px;
  font: 800 96px/1 var(--sans);
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: .07;
  pointer-events: none;
}
.proj-title { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.proj-title h3 { margin: 0; font: 800 var(--fs-2xl)/1.2 var(--sans); letter-spacing: -.01em; }
.proj-badge {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 700 var(--fs-s)/1.3 var(--sans);
  white-space: nowrap;
}
.proj-positioning { margin: 10px 0 0; font: 700 var(--fs-xl)/1.5 var(--sans); color: var(--ink); }
.proj-desc { margin: 10px 0 0; color: var(--muted); line-height: 1.75; max-width: 62em; }
.proj-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feat-chip {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--ring-in);
  font: 600 var(--fs-m)/1.4 var(--sans);
  color: var(--muted);
}
.proj-pipeline { margin: 18px 0 0; display: flex; align-items: baseline; gap: var(--fs-m); flex-wrap: wrap; font: 600 var(--fs-s)/1.6 var(--mono); color: var(--muted); }

/* 生产线小卡 */
.line-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.line-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px;
  border-radius: var(--r-core);
  background: var(--accent-wash);
  box-shadow: var(--ring-in);
}
.line-card strong { font: 700 var(--fs-m)/1.35 var(--sans); color: var(--ink); }
.line-desc { font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.line-state {
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font: 700 var(--fs-xs)/1.4 var(--sans);
}
.line-state.is-main { background: var(--online-soft); color: var(--online-ink); }
.line-state.is-new  { background: var(--accent-soft); color: var(--accent-ink); }
.line-state.is-done { box-shadow: var(--ring-in); color: var(--faint); }
.proj-note { margin: var(--fs-xl) 0 0; font-size: var(--fs-m); color: var(--faint); }

/* ---------- 02 自媒体实况 ---------- */
.sync-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 18px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--card-rest);
  font: 600 var(--fs-m)/1.4 var(--sans);
  color: var(--muted);
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.sync-bar.is-live .sync-dot { background: var(--online); box-shadow: 0 0 0 4px var(--online-soft); }
.plat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.plat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--r-core);
  box-shadow: var(--card-rest);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plat-card:hover { transform: translateY(-2px); box-shadow: var(--card-hover); }
.plat-card .site-arrow { position: absolute; top: var(--fs-s); right: var(--fs-m); font-size: var(--fs-m); color: var(--faint); }
.plat-icon { font-size: var(--fs-2xl); line-height: 1; }
.plat-body { display: grid; gap: 1px; }
.plat-body strong { font: 700 var(--fs-m)/1.3 var(--sans); color: var(--ink); }
.plat-fans { font: 800 var(--fs-xl)/1.2 var(--sans); color: var(--accent-ink); letter-spacing: -.01em; }
.plat-works { font-size: var(--fs-xs); color: var(--faint); }

/* 代表作 */
.top-works { margin-top: 26px; }
.top-works-label { margin-bottom: 12px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.work-card {
  display: grid;
  gap: 7px;
  align-content: start;
  position: relative;
  padding: 18px;
  background: var(--card);
  border-radius: var(--r-core);
  box-shadow: var(--card-rest);
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-2px); box-shadow: var(--card-hover); }
.work-card .site-arrow { position: absolute; top: var(--fs-m); right: var(--fs-l); font-size: var(--fs-m); color: var(--faint); }
.work-plat {
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 700 var(--fs-xs)/1.4 var(--sans);
}
.work-title {
  font: 600 var(--fs-m)/1.55 var(--sans);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-view { font: 700 var(--fs-xs)/1.4 var(--mono); color: var(--muted); }

/* ---------- 04 工具箱折叠 ---------- */
.fold { margin-top: 26px; }
.tools-link { font: 700 var(--fs-m)/1.6 var(--sans); color: var(--accent-ink); text-decoration: none; }
.tools-link:hover { text-decoration: underline; }

/* ==========================================================
   v5.1 追加：八环流水线 / 小工具 6 卡 / 联系区瘦身
   ========================================================== */

/* 八环公共流水线 */
.pipe-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-core);
  background: var(--accent-wash);
  box-shadow: var(--ring-in);
}
.pipe-step {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--ring-in);
  font: 600 var(--fs-m)/1.4 var(--sans);
  color: var(--ink);
  white-space: nowrap;
}
.pipe-arrow { font-style: normal; color: var(--accent-ink); font-size: var(--fs-m); font-weight: 700; }

/* 重点项目卡内的已交付业务行 */
.proj-card .case-rows { display: grid; gap: 0; margin-top: 14px; }
.proj-card .case-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.proj-card .case-row:last-child { border-bottom: none; }
.proj-card .case-row h3 { margin: 0; font: 700 var(--fs-l)/1.5 var(--sans); color: var(--ink); }
.proj-card .case-row p { margin: 0; font-size: var(--fs-m); line-height: 1.65; color: var(--muted); }

/* GitHub 开源仓库列表（重点项目内） */
.repo-list { display: grid; gap: 10px; margin-top: 16px; }
.repo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: var(--r-small);
  background: var(--accent-wash);
  box-shadow: var(--ring-in);
}
.repo-row code { font: 700 var(--fs-s)/1.4 var(--mono); color: var(--accent-ink); }
.repo-row span { font-size: var(--fs-m); line-height: 1.55; color: var(--muted); }

/* 小工具一排 6 卡 */
.mini-tools {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.mini-tool {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 16px;
  background: var(--card);
  border-radius: var(--r-core);
  box-shadow: var(--card-rest);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mini-tool:hover { transform: translateY(-2px); box-shadow: var(--card-hover); }
.mini-tool strong { font: 700 var(--fs-m)/1.4 var(--sans); color: var(--ink); }
.mini-tool span { font-size: var(--fs-s); line-height: 1.55; color: var(--muted); }

/* 联系区瘦身（黑色带只留二维码 + 邮箱） */
.section--contact-slim { padding: 56px 0; }
.contact-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.contact-slim-copy .contact-title { margin-bottom: 18px; }
.contact-slim-copy .contact-mail { font: 700 var(--fs-xl)/1.4 var(--mono); }
.contact-slim-copy .contact-note { margin: 10px 0 0; font-size: var(--fs-m); color: var(--sec-muted); }
.contact-qrcode {
  margin: 0;
  padding: 14px;
  background: #fff;
  border-radius: var(--r-core);
  box-shadow: var(--sec-inner), var(--shadow-1);
  text-align: center;
}
.contact-qrcode img { display: block; width: 132px; height: 132px; object-fit: contain; }
.contact-qrcode figcaption { margin-top: var(--fs-xs); font: 600 var(--fs-xs)/1.4 var(--sans); color: #5C5C52; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1024px) {
  .hero-inner { gap: 32px; }
  .hero-visual img { width: min(320px, 100%); }
  .sites, .tools { gap: 20px; }
  .ip-grid { gap: 36px; }
  .line-grid { grid-template-columns: repeat(3, 1fr); }
  .plat-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-tools { grid-template-columns: repeat(3, 1fr); }
  .proj-card { grid-column: span 3; }
  .proj-card--wide { grid-column: span 6; }
  .proj-card::before { font-size: 72px; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .section--now { padding: 44px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; justify-self: start; }
  .hero-visual img { width: min(260px, 70%); }
  .sites, .tools { grid-template-columns: 1fr; }
  .site-card--wide { flex-direction: column; }
  .site-card--wide .site-media, .site-card--wide .site-cover { flex: none; }
  .site-card--wide .site-media img { height: auto; aspect-ratio: 16 / 10; }
  .case-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; row-gap: 6px; padding: 20px 2px; }
  .case-row p { grid-column: 2; }
  .ip-grid { grid-template-columns: 1fr; }
  .ip-figure { order: -1; justify-self: start; }
  .ip-figure img { width: 220px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 6px; }
  .stat-pills { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .line-grid { grid-template-columns: 1fr 1fr; }
  .plat-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .proj-card { grid-column: span 6; padding: 24px 22px 26px; }
  .mini-tools { grid-template-columns: repeat(2, 1fr); }
  .proj-card .case-row { grid-template-columns: 1fr; }
  .contact-slim { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
}

@media (max-width: 620px) {
  body { font-size: var(--fs-m); }
  .nav { top: 10px; }
  .nav-inner { height: 54px; padding: 0 8px 0 16px; gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: var(--fs-xs) var(--fs-xs); font-size: var(--fs-s); }
  .nav-links .nav-cta { padding: 8px 13px; }
  .nav-links a:nth-child(2), .nav-links a:nth-child(3) { display: none; } /* 窄屏保：重点项目/联系 */
  .ip-channels { grid-template-columns: 1fr; }
  .site-body { padding: 18px 18px 20px; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-badge { right: 18px; bottom: 18px; }
  .section--ink { margin: 0 10px; }
}
