/* ============================================================
   Hopzz · 个人主页
   日系水彩 × 编辑排版 —— 纯手写 CSS，无框架、无外部字体
   ============================================================ */

/* ---------- 调色板（取自蓝发鲸鱼女仆插画） ---------- */
:root {
  --navy: #0a2e58;
  --navy-2: #1b477b;
  --blue-mid: #3b6194;
  --blue-bright: #4e77a9;
  --blue-light: #6fa8c6;
  --ice: #7fd8f0;
  --ice-pale: #c5e9ee;
  --lilac: #b1afc9;
  --near-white: #f5fefe;

  /* 语义色：浅色是主推，像一本安静的画册 */
  --paper: #f7fbfc;
  --paper-top: #fdfeff;
  --paper-2: #ffffff;
  --card: rgba(255, 255, 255, 0.66);
  --ink: #0a2e58;
  --ink-soft: #3b6194;
  --ink-faint: rgba(10, 46, 88, 0.45);
  --line: rgba(10, 46, 88, 0.1);
  --line-2: rgba(10, 46, 88, 0.18);
  --track: rgba(10, 46, 88, 0.08);
  --nav-bg: rgba(247, 251, 252, 0.82);
  --grain-a: rgba(10, 46, 88, 0.055);
  --grain-b: rgba(10, 46, 88, 0.03);
  --grad-text: linear-gradient(100deg, #7fd8f0 0%, #4e77a9 18%, #3b6194 52%, #1b477b 100%);
  --grad-bar: linear-gradient(90deg, #7fd8f0 0%, #4e77a9 62%, #3b6194 100%);
  --bar-high: linear-gradient(90deg, #4e77a9 0%, #0a2e58 100%);
  --btn-bg: #0a2e58;
  --btn-bg-hover: #1b477b;
  --btn-fg: #f5fefe;
  --btn-shadow: 0 20px 40px -24px rgba(10, 46, 88, 0.85);
  --shadow-card: 0 26px 60px -44px rgba(10, 46, 88, 0.55), 0 1px 2px rgba(10, 46, 88, 0.04);
  --shadow-art: 0 60px 120px -62px rgba(10, 46, 88, 0.55), 0 8px 26px -18px rgba(10, 46, 88, 0.22);
  --focus: #4e77a9;
  --link-hover: #3b6194;
  --badge-fg: #1b477b;
  --badge-bg: rgba(127, 216, 240, 0.2);
  --badge-line: rgba(59, 97, 148, 0.24);

  --radius-lg: 24px;
  --radius: 20px;
  --max: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* ---------- 深色：海军蓝的夜色 ---------- */
html[data-theme="dark"] {
  --paper: #08213f;
  --paper-top: #0b2a4d;
  --paper-2: #0a2e58;
  --card: rgba(197, 233, 238, 0.05);
  --ink: #f5fefe;
  --ink-soft: rgba(197, 233, 238, 0.78);
  --ink-faint: rgba(197, 233, 238, 0.42);
  --line: rgba(197, 233, 238, 0.14);
  --line-2: rgba(197, 233, 238, 0.24);
  --track: rgba(197, 233, 238, 0.12);
  --nav-bg: rgba(8, 33, 63, 0.82);
  --grain-a: rgba(197, 233, 238, 0.05);
  --grain-b: rgba(197, 233, 238, 0.03);
  --grad-text: linear-gradient(100deg, #c5e9ee 0%, #7fd8f0 45%, #6fa8c6 100%);
  --grad-bar: linear-gradient(90deg, #4e77a9 0%, #7fd8f0 100%);
  --bar-high: linear-gradient(90deg, #7fd8f0 0%, #f5fefe 100%);
  --btn-bg: #7fd8f0;
  --btn-bg-hover: #c5e9ee;
  --btn-fg: #08213f;
  --btn-shadow: 0 20px 40px -24px rgba(127, 216, 240, 0.4);
  --shadow-card: 0 26px 60px -40px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-art: 0 60px 120px -58px rgba(0, 0, 0, 0.85), 0 8px 26px -18px rgba(0, 0, 0, 0.6);
  --focus: #7fd8f0;
  --link-hover: #7fd8f0;
  --badge-fg: #c5e9ee;
  --badge-bg: rgba(127, 216, 240, 0.14);
  --badge-line: rgba(127, 216, 240, 0.32);

  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--ice-pale);
  color: var(--navy);
}
html[data-theme="dark"] ::selection {
  background: rgba(127, 216, 240, 0.35);
  color: var(--near-white);
}

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

/* ---------- 水彩底：晕开的颜料 + 纸纹 ---------- */
.wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: linear-gradient(180deg, var(--paper-top) 0%, transparent 520px);
}

.wash__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.wash__blob--ice {
  width: 66vw;
  height: 62vw;
  min-width: 460px;
  min-height: 420px;
  top: -22vw;
  right: -14vw;
  background: radial-gradient(closest-side, rgba(127, 216, 240, 1), rgba(127, 216, 240, 0) 72%);
  opacity: 0.24;
}

.wash__blob--blue {
  width: 58vw;
  height: 56vw;
  min-width: 400px;
  min-height: 380px;
  top: 20vh;
  left: -18vw;
  background: radial-gradient(closest-side, rgba(111, 168, 198, 1), rgba(111, 168, 198, 0) 72%);
  opacity: 0.18;
}

.wash__blob--lilac {
  width: 60vw;
  height: 52vw;
  min-width: 420px;
  min-height: 360px;
  bottom: -20vh;
  right: -12vw;
  background: radial-gradient(closest-side, rgba(177, 175, 201, 1), rgba(177, 175, 201, 0) 72%);
  opacity: 0.2;
}

html[data-theme="dark"] .wash__blob--ice {
  opacity: 0.16;
}
html[data-theme="dark"] .wash__blob--blue {
  opacity: 0.12;
}
html[data-theme="dark"] .wash__blob--lilac {
  opacity: 0.13;
}

.wash__grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--grain-a) 0.6px, transparent 0.9px),
    radial-gradient(var(--grain-b) 0.6px, transparent 0.9px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 3px 2px;
  opacity: 0.9;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.nav.is-stuck {
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--blue-mid));
  box-shadow: 0 0 0 3px rgba(127, 216, 240, 0.14);
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__sub {
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  margin-left: auto;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.62;
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
  color: var(--ink);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}

.theme {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s var(--ease),
    background-color 0.25s ease;
}

.theme:hover {
  border-color: var(--blue-light);
  transform: rotate(-10deg);
}

.theme__sun {
  display: none;
}
html[data-theme="dark"] .theme__sun {
  display: block;
}
html[data-theme="dark"] .theme__moon {
  display: none;
}

/* ---------- 版心 ---------- */
main {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: clamp(88px, 11vw, 132px);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* 章节抬头：细横线 + 序号 + 英文小字 */
.section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 clamp(18px, 2.4vw, 30px);
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section__no {
  padding-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  opacity: 0.45;
}

.section__kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}

.section__title {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section__desc {
  grid-column: 2;
  max-width: 54ch;
  margin: 16px 0 0;
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ---------- 首屏 ---------- */
.hero {
  min-height: min(96vh, 900px);
  min-height: min(96svh, 900px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 92px));
  padding-bottom: clamp(56px, 9vh, 104px);
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(22px, 3vw, 30px);
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.tagline__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 0 rgba(127, 216, 240, 0.65);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 216, 240, 0.6);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(127, 216, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 216, 240, 0);
  }
}

.hero__title {
  margin-bottom: clamp(20px, 3vw, 28px);
  font-size: clamp(2.85rem, 6.1vw, 4.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.grad {
  display: inline-block;
  padding-right: 0.05em;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 44ch;
  margin-bottom: clamp(28px, 3.6vw, 38px);
  font-size: clamp(0.96rem, 1.15vw, 1.04rem);
  line-height: 1.95;
  color: var(--ink-soft);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.28s ease,
    border-color 0.28s ease, color 0.28s ease, box-shadow 0.3s ease;
}

.btn--primary {
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
}

.btn--primary:hover {
  background-color: var(--btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow), 0 10px 26px -18px rgba(10, 46, 88, 0.6);
}

.btn--primary svg {
  transition: transform 0.3s var(--ease);
}
.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  border-color: var(--line-2);
  background-color: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--blue-light);
  color: var(--link-hover);
  background-color: var(--card);
  transform: translateY(-2px);
}

/* 首屏三个数字 */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(34px, 5vh, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-inline: clamp(18px, 3vw, 34px);
  border-left: 1px solid var(--line);
}

.hero__meta li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__meta-value {
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.hero__meta-name {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.48;
}

/* 首屏大图：像一张压在纸上的画 */
.hero__art {
  position: relative;
  margin: 0;
}

.hero__frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 8px);
  background-color: var(--paper-2);
  box-shadow: var(--shadow-art);
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

html[data-theme="dark"] .hero__frame {
  background-color: #0d3459;
}

html[data-theme="dark"] .hero__frame::after {
  box-shadow: inset 0 0 64px rgba(8, 33, 63, 0.42);
}

.hero__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 32%;
  border-radius: var(--radius-lg);
}

html[data-theme="dark"] .hero__img {
  filter: brightness(0.95);
}

.hero__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* ---------- 01 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.88fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.about__text p {
  max-width: 56ch;
  margin-bottom: 1.15em;
  font-size: clamp(0.94rem, 1.1vw, 1rem);
  line-height: 1.98;
  color: var(--ink-soft);
}

.about__text p.about__lead {
  margin-bottom: 1.3em;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.85;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about__text p.about__sign {
  margin-top: clamp(26px, 3vw, 38px);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.45;
}

.facts {
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
}

.facts dl {
  margin: 0;
}

.facts dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dl > div:first-child {
  padding-top: 2px;
}

.facts dl > div:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.facts dt {
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.48;
}

.facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  letter-spacing: -0.005em;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--badge-line);
  border-radius: 999px;
  background-color: var(--badge-bg);
  color: var(--badge-fg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- 02 作品 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.work {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.3s ease;
}

.work:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 34px 64px -42px rgba(10, 46, 88, 0.5);
}

.work__plate {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.work__plate--a {
  background-image:
    radial-gradient(120% 140% at 16% 6%, rgba(127, 216, 240, 0.42), transparent 58%),
    radial-gradient(110% 130% at 88% 92%, rgba(111, 168, 198, 0.38), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #eef8fb 100%);
}

.work__plate--b {
  background-image:
    radial-gradient(120% 130% at 84% 10%, rgba(177, 175, 201, 0.5), transparent 60%),
    radial-gradient(110% 120% at 8% 92%, rgba(197, 233, 238, 0.7), transparent 62%),
    linear-gradient(160deg, #ffffff 0%, #f5f7fc 100%);
}

html[data-theme="dark"] .work__plate--a {
  background-image:
    radial-gradient(120% 140% at 16% 6%, rgba(127, 216, 240, 0.22), transparent 58%),
    radial-gradient(110% 130% at 88% 92%, rgba(78, 119, 169, 0.4), transparent 60%),
    linear-gradient(160deg, #0d3459 0%, #0a2e58 100%);
}

html[data-theme="dark"] .work__plate--b {
  background-image:
    radial-gradient(120% 130% at 84% 10%, rgba(177, 175, 201, 0.22), transparent 60%),
    radial-gradient(110% 120% at 8% 92%, rgba(127, 216, 240, 0.16), transparent 62%),
    linear-gradient(160deg, #0d3459 0%, #0a2e58 100%);
}

.work__no {
  position: absolute;
  right: 14px;
  bottom: 6px;
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: var(--navy);
  opacity: 0.15;
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .work__plate--a .work__no,
html[data-theme="dark"] .work__plate--b .work__no {
  color: var(--ice-pale);
  opacity: 0.18;
}

.work__plate--c {
  border-color: var(--line-2);
  background-color: var(--paper-2);
}

.work__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.7s var(--ease);
}

.work:hover .work__img {
  transform: scale(1.04);
}

.work__no--over {
  position: absolute;
  top: 11px;
  left: 12px;
  right: auto;
  bottom: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background-color: rgba(10, 46, 88, 0.62);
  color: var(--near-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  opacity: 1;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.work__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}

.work h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.work__desc {
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.work__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.work__stack li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* ---------- 03 实时数据 ---------- */
.live {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.panel {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 34px);
}

.panel__kicker {
  margin: 0 0 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}

.panel__head h3 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background-color: rgba(10, 46, 88, 0.22);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="dark"] .dot {
  background-color: rgba(197, 233, 238, 0.28);
}

.dot--ok {
  background-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(127, 216, 240, 0.2);
}

.dot--bad {
  background-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--blue-bright);
}

.meters {
  display: grid;
  gap: 20px;
}

.meter__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 9px;
}

.meter__name {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.meter__val {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.meter__track {
  height: 7px;
  border-radius: 999px;
  background-color: var(--track);
  overflow: hidden;
}

.meter__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-image: var(--grad-bar);
  transition: width 0.9s var(--ease);
}

.meter__fill.is-high {
  background-image: var(--bar-high);
}

.panel__foot {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.72rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}

.env {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  align-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  margin-bottom: 8px;
}

.env__item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 5px;
}

.env__item + .env__item {
  padding-left: clamp(14px, 2.4vw, 30px);
  border-left: 1px solid var(--line);
}

.env__num {
  font-size: clamp(2.3rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.env__unit {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.env__name {
  flex-basis: 100%;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.45;
}

/* ---------- 04 联系 ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  background-image: radial-gradient(120% 160% at 100% 0%, rgba(127, 216, 240, 0.14), transparent 62%),
    radial-gradient(100% 130% at 0% 100%, rgba(177, 175, 201, 0.12), transparent 60%);
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .contact {
  background-image: radial-gradient(120% 160% at 100% 0%, rgba(127, 216, 240, 0.08), transparent 62%),
    radial-gradient(100% 130% at 0% 100%, rgba(177, 175, 201, 0.07), transparent 60%);
}

.contact__lead {
  max-width: 32ch;
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.72rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.contact__note {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.contact__links {
  display: grid;
  gap: 12px;
}

.contact__links .btn {
  width: 100%;
}

/* ---------- 页脚 ---------- */
.foot {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(60px, 8vw, 96px) var(--gutter) 46px;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  opacity: 0.7;
}

.foot__inner p {
  margin: 0;
}

.foot__domain {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* ---------- 进场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .tagline__dot {
    animation: none;
  }

  .work:hover,
  .btn:hover,
  .theme:hover {
    transform: none;
  }
}

/* ---------- 响应式：平板 ---------- */
@media (max-width: 1024px) {
  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works .work:last-child {
    grid-column: 1 / -1;
  }

  .works .work:last-child .work__plate {
    aspect-ratio: 16 / 7;
  }

  .works .work:last-child .work__img {
    object-position: center 34%;
  }
}

/* 首屏改为上图下文 */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(30px, 6vw, 46px);
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: clamp(56px, 9vh, 88px);
  }

  .hero__art {
    order: -1;
    width: 100%;
    max-width: 560px;
    margin-inline: 0;
  }

  .hero__img {
    aspect-ratio: 4 / 5;
    object-position: center 30%;
  }

  .hero__text {
    max-width: 640px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 7.4vw, 3.6rem);
  }
}

/* 关于 / 实时 / 联系改为单列 */
@media (max-width: 880px) {
  .about,
  .live,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .about {
    gap: 34px;
  }

  .contact__lead {
    max-width: 30ch;
  }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .brand__sub {
    display: none;
  }

  .theme {
    margin-left: auto;
  }

  .hero__title {
    font-size: clamp(2.35rem, 9.2vw, 3rem);
  }

  .hero__meta li {
    padding-inline: 16px;
  }

  .hero__meta li:first-child {
    padding-left: 0;
  }

  .section {
    padding-top: 76px;
  }

  .section__head {
    padding-top: 20px;
    margin-bottom: 34px;
  }

  .works {
    grid-template-columns: minmax(0, 1fr);
  }

  .works .work:last-child {
    grid-column: auto;
  }

  .work__plate,
  .works .work:last-child .work__plate {
    aspect-ratio: 16 / 7;
  }

  .work__plate--a .work__no,
  .work__plate--b .work__no {
    font-size: 2.7rem;
    right: 12px;
    bottom: 4px;
  }

  .contact {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .hero__meta li {
    padding-inline: 12px;
  }

  .hero__meta li:first-child {
    padding-left: 0;
  }

  .hero__meta-value {
    font-size: 0.98rem;
  }

  .hero__meta-name {
    font-size: 9.5px;
    letter-spacing: 0.04em;
    line-height: 1.5;
  }

  .section__no {
    font-size: 10px;
  }

  .section__desc {
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .section__head {
    gap: 0 14px;
  }

  .section__title {
    font-size: clamp(1.7rem, 7.4vw, 2.1rem);
  }

  .env {
    gap: 12px;
  }

  .env__item + .env__item {
    padding-left: 12px;
  }

  .env__num {
    font-size: 2.2rem;
  }

  .foot {
    padding-bottom: 36px;
  }

  .foot__inner {
    flex-direction: column;
  }
}

/* 极窄屏：联系按钮与事实卡不被挤压 */
@media (max-width: 380px) {
  .facts dl > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .facts dd {
    text-align: left;
  }

  .panel__foot {
    font-size: 0.68rem;
  }
}
