/* ==========================================================================
   衡隅 AiHengYu — 站点样式
   基于设计稿 AiHengYu_V6（昼夜双主题 / 山水横幅 / 玻璃面板）
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #F5F7FA;
  --surface: rgba(255, 255, 255, .79);
  --surface-solid: #FFFFFF;
  --ink: #10243C;
  --ink-2: #27405C;
  --muted: #526477;
  --line: #DCE5ED;
  --accent: #006A91;
  --accent-2: #12CCE8;
  --button: #07506B;
  --shadow: 0 9px 28px rgba(22, 60, 101, .06);
  --shadow-lg: 0 24px 60px -30px rgba(10, 45, 80, .45);
  --grad: linear-gradient(115deg, #12CCE8, #075080);

  --serif: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", serif;
  --song: "Songti SC", "SimSun", "STSong", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --latin: Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="night"] {
  --bg: #041528;
  --surface: rgba(9, 34, 59, .85);
  --surface-solid: #09223B;
  --ink: #EAF4FF;
  --ink-2: #C8DEEE;
  --muted: #A9BFD4;
  --line: #1B3E5E;
  --accent: #32D8F5;
  --accent-2: #7BE7FF;
  --button: #075577;
  --shadow: 0 8px 30px rgba(0, 0, 0, .13);
  --shadow-lg: 0 26px 70px -28px rgba(0, 0, 0, .8);
  --grad: linear-gradient(115deg, #12CCE8, #075080);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: 90%; max-width: 1800px; margin: auto; }
.narrow { width: 88%; max-width: 1180px; margin: auto; }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: "JetBrains Mono", Consolas, monospace; }

/* ---------- 3. Header ---------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
}
.nav {
  height: clamp(62px, 4.4vw, 86px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .logo { width: clamp(44px, 4vw, 57px); height: auto; flex: none; }
.brand b {
  font: 700 clamp(28px, 2.6vw, 34px)/1 var(--serif);
  letter-spacing: .04em;
}
.brand em {
  font: italic clamp(17px, 1.5vw, 20px)/1 var(--latin);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  font-style: italic;
}
.nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 65px);
}
.nav nav a {
  position: relative;
  padding: 22px 0;
  font-size: clamp(15px, 1.2vw, 24px);
  color: var(--ink);
  transition: color .25s var(--ease);
}
.nav nav a:hover { color: var(--accent); }
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 9px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav nav a.active::after,
.nav nav a:hover::after { transform: scaleX(1); }

/* 昼夜开关 */
.switch {
  position: relative;
  flex: none;
  width: 82px;
  height: 34px;
  padding: 0;
  border: 1px solid #8CB8D8;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(120deg, #75B8EB, #D9EFFF);
  box-shadow: inset 0 2px 5px rgba(22, 79, 115, .19);
}
.knob {
  position: absolute;
  left: 3px; top: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #FFF5D4;
  color: #D89B24;
  box-shadow: 0 2px 6px rgba(18, 58, 102, .31);
  transition: transform .45s var(--ease), background-color .45s var(--ease);
}
.sun, .moon { position: absolute; font-size: 19px; line-height: 1; }
.moon, .stars { opacity: 0; }
.cloud { position: absolute; right: 9px; bottom: -6px; color: #fff; font-size: 32px; }
.stars { position: absolute; left: 9px; top: 3px; color: #B6E6FF; font-size: 14px; }
[data-theme="night"] .switch { background: linear-gradient(120deg, #071A36, #23568B); border-color: #37668E; }
[data-theme="night"] .knob { transform: translateX(48px); background: #DCECFF; color: #174678; }
[data-theme="night"] .moon, [data-theme="night"] .stars { opacity: 1; }
[data-theme="night"] .sun, [data-theme="night"] .cloud { opacity: 0; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 36.4vw;
  max-height: 850px;
  min-height: 420px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: right center;
  transition: opacity .9s var(--ease);
}
.scene.day {
  background-image:
    linear-gradient(90deg, rgba(245, 249, 252, .97), rgba(245, 249, 252, .85) 28%, rgba(245, 249, 252, .22) 55%, transparent 75%),
    url("../images/banner-day.png");
  background-size: cover;
  background-position: center;
}
.scene.night {
  background-image:
    linear-gradient(90deg, rgba(3, 21, 42, .33), transparent 48%),
    url("../images/banner-night.png");
  background-size: 100% 100%;
  background-position: center;
  opacity: 0;
}
[data-theme="night"] .scene.night { opacity: 1; }

.hero .wrap { position: relative; z-index: 3; padding: 0; pointer-events: none; }
.hero .actions { pointer-events: auto; }
.hero h1 {
  display: flex;
  align-items: baseline;
  gap: 24px;
  font: 700 clamp(55px, 5.3vw, 112px)/1.15 var(--serif);
  letter-spacing: .06em;
}
.hero h1 span {
  font: italic clamp(28px, 2.6vw, 55px)/1 var(--latin);
  letter-spacing: 0;
  color: var(--accent);
}
.slogan {
  margin: 1.2vw 0 0;
  font: 400 clamp(20px, 1.85vw, 40px)/1.55 var(--song);
  letter-spacing: 3px;
  color: var(--ink-2);
}
.rule { width: 3.3vw; height: 3px; margin: 1.2vw 0; background: var(--accent); }
.intro {
  max-width: 36vw;
  margin: 0 0 1.6vw;
  font-size: clamp(14px, 1.12vw, 23px);
  line-height: 1.75;
  color: var(--ink-2);
  text-shadow: 0 1px 12px var(--bg);
}
.actions { display: flex; gap: 1.3vw; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .65vw 1.9vw;
  border: 1px solid var(--accent);
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(14px, 1.1vw, 23px);
  font-weight: 600;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.btn:hover { box-shadow: 0 0 18px rgba(48, 185, 239, .33); }
.btn--primary {
  background: var(--grad);
  border-color: #76EAFF;
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(199, 245, 255, .53), 0 4px 20px rgba(7, 135, 171, .25);
}

/* 轨道与浮标 */
.orbit {
  position: absolute;
  left: 40%; right: 3%;
  top: 10%; height: 75%;
  z-index: 2;
  pointer-events: none;
  color: #70DFFF;
}
.orbit > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .7;
  filter: drop-shadow(0 0 5px #3EDAFF);
}
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border: 1px solid rgba(0, 106, 145, .26);
  border-radius: 22px 4px 22px 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(220, 241, 252, .8));
  box-shadow:
    0 10px 24px -14px rgba(6, 44, 72, .55),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 0 18px rgba(184, 226, 250, .35);
  backdrop-filter: blur(9px) saturate(1.15);
  color: #073B5C;
  font-size: clamp(12px, 1.05vw, 21px);
  font-weight: 600;
  white-space: nowrap;
  animation: drift 8s ease-in-out infinite;
}
.float svg {
  width: 1.6em; height: 1.6em;
  fill: none;
  stroke: currentColor;
  color: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.float::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 45%; height: 2px;
  border-radius: 0 0 0 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(18, 204, 232, .45);
}
[data-theme="night"] .float {
  background: linear-gradient(135deg, rgba(75, 168, 217, .33), rgba(8, 39, 71, .53));
  border-color: #92E8FF;
  box-shadow: inset 0 0 12px rgba(123, 220, 255, .2), 0 0 13px rgba(58, 207, 255, .27);
  color: #EFFAFF;
}
[data-theme="night"] .float svg { color: currentColor; }
[data-theme="night"] .float::after { background: #C3FAFF; box-shadow: 0 0 7px #4CEAFF; height: 1px; }
.f1 { left: 6.5%; top: 54%; }
.f2 { right: 4%; top: 20%; animation-delay: -2s; }
.f3 { left: 19%; top: 25%; animation-delay: -4s; }
.f4 { right: 1%; top: 53%; animation-delay: -1s; }
@keyframes drift { 50% { transform: translateY(-7px); } }

/* ---------- 5. Domains ---------- */
.domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.domain {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.domain:first-child { padding-left: 8px; }
.domain:last-child { border: 0; }
.ico {
  width: 48px; height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
}
.ico svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.domain b { font-size: 17px; }
.domain .small { margin-top: 2px; }

/* ---------- 6. Sections & panels ---------- */
.section { margin: 25px 0; }
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}
.heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 25px/1.4 var(--song);
  letter-spacing: .02em;
}
.heading h2::before {
  content: "";
  width: 5px; height: 24px;
  border-radius: 2px;
  background: var(--accent);
  transform: skew(-8deg);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.more:hover { color: var(--accent); }
.more svg { width: 14px; height: 14px; }

.panel {
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 75%, var(--accent) 5%));
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .09);
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
}

/* 精选作品 */
.project {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 32% 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 15px;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 0 0, rgba(75, 188, 255, .08), transparent 55%);
}
.project-art {
  aspect-ratio: 1.9;
  border-radius: 9px;
  background: #0A2540 url("../images/drg-reference.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.project h3 { position: relative; font-size: 23px; line-height: 1.4; margin: 0 0 8px; }
.project p { position: relative; margin: 0 0 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 2px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  font-size: 12px;
  color: var(--ink-2);
}
.round {
  position: relative;
  width: 42px; height: 42px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.round:hover { box-shadow: 0 0 18px rgba(48, 185, 239, .33); transform: translateX(2px); }

/* 底部双栏 */
.bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-bottom: 30px; }
.bottom .panel { padding: 20px 24px; }

/* 博客列表（首页） */
.filters { display: flex; gap: 8px; margin-bottom: 6px; }
.filters button {
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 12px;
  color: var(--muted);
}
.filters button.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.article:last-child { border: 0; }
.article:hover b { color: var(--accent); }
.thumb {
  width: 100px; height: 64px;
  flex: none;
  border-radius: 6px;
  background-color: #0B2C4B;
  background-size: cover;
  background-position: center;
}
.thumb0 { background-image: url("../images/article-1-day.webp"); }
.thumb1 { background-image: url("../images/article-2-day.webp"); }
.thumb2 { background-image: url("../images/article-3-day.webp"); }
[data-theme="night"] .thumb0 { background-image: url("../images/article-1-night.webp"); }
[data-theme="night"] .thumb1 { background-image: url("../images/article-2-night.webp"); }
[data-theme="night"] .thumb2 { background-image: url("../images/article-3-night.webp"); }
[hidden] { display: none !important; }
.article b { font-size: 15px; font-weight: 600; transition: color .2s var(--ease); }
.article .small { margin-top: 3px; }

/* 关于我（首页） */
.about { position: relative; overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 45%; height: 145px;
  background: url("../images/about-night.webp") center / cover no-repeat;
  opacity: .65;
  -webkit-mask-image: linear-gradient(135deg, transparent 10%, #000 60%, transparent 100%);
  mask-image: linear-gradient(135deg, transparent 10%, #000 60%, transparent 100%);
  pointer-events: none;
}
[data-theme="day"] .about::before { background-image: url("../images/about-day.webp"); }
.about > * { position: relative; }
.about p { max-width: 95%; margin: 18px 0; line-height: 2.1; color: var(--ink-2); }
.about .heading { margin-bottom: 25px; }
.about .more { margin-top: 4px; }

/* ---------- 7. Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.foot { display: flex; justify-content: space-between; gap: 18px; }
.foot a:hover { color: var(--accent); }

/* ---------- 8. Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  height: 28vw;
  max-height: 420px;
  padding-bottom: clamp(28px, 3vw, 46px);
  border-bottom: 1px solid var(--line);
}
.page-hero .scene { z-index: -2; }
.page-hero .scene.day {
  background-image:
    linear-gradient(90deg, rgba(245, 249, 252, .98) 0%, rgba(245, 249, 252, .92) 30%, rgba(245, 249, 252, .55) 56%, rgba(245, 249, 252, .12) 78%, transparent 100%),
    url("../images/banner-day.png");
}
.page-hero .scene.night {
  background-image:
    linear-gradient(90deg, rgba(3, 21, 42, .92) 0%, rgba(3, 21, 42, .72) 34%, rgba(3, 21, 42, .25) 62%, transparent 85%),
    url("../images/banner-night.png");
  background-size: 100% 100%;
}
.page-hero .wrap { position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.page-hero h1 {
  margin-top: 12px;
  font: 700 clamp(38px, 4.2vw, 62px)/1.2 var(--song);
  letter-spacing: .04em;
}
.page-hero .desc {
  max-width: 640px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.9;
}
.page-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-main { padding: clamp(30px, 3.4vw, 52px) 0 20px; }

/* ---------- 9. Works page ---------- */
.work {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 16px;
}
.work__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 26px;
  isolation: isolate;
  background:
    radial-gradient(90% 90% at 70% 10%, rgba(75, 188, 255, .18), transparent 60%),
    linear-gradient(150deg, rgba(18, 204, 232, .08), transparent 60%),
    var(--bg);
  border-right: 1px solid var(--line);
}
.work__art::before {
  content: "";
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 190, 255, .28), transparent 66%);
  filter: blur(22px);
  z-index: -1;
}
[data-theme="day"] .work__art::before { background: radial-gradient(circle, rgba(90, 180, 240, .22), transparent 68%); }
.work__shot {
  position: relative;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 235, .2);
  box-shadow: 0 22px 44px -22px rgba(0, 12, 26, .65);
}
.work__shot img { display: block; width: 100%; height: auto; }
.work__art svg { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 0 10px rgba(50, 190, 255, .22)); }
.work__body { padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; }
.work__no { font: 700 11px/1 var(--latin); letter-spacing: .2em; color: var(--accent); }
.work__body h2 { margin-top: 10px; font: 700 clamp(24px, 2.2vw, 32px)/1.4 var(--song); }
.work__en { margin-top: 6px; font: italic 14px/1.5 var(--latin); color: var(--muted); }
.work__body p { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.95; }
.work__body p.dim { color: var(--muted); }
.work__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.work__facts dt { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }
.work__facts dd { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.work__body .tags { margin-bottom: 20px; }
.work__body .btn { align-self: flex-start; margin-top: auto; padding: 8px 20px; font-size: 13.5px; }

/* ---------- 10. Blog page ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: none;
  font-size: 13px;
  color: var(--muted);
  transition: all .22s var(--ease);
}
.tab:hover { color: var(--accent); }
.tab[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--line);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.tab b { margin-left: 5px; font-weight: 400; opacity: .7; }

.featured-post {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  margin-bottom: 22px;
  border-radius: 16px;
}
.featured-post h2 { margin-top: 10px; font: 700 clamp(22px, 2vw, 28px)/1.5 var(--song); }
.featured-post p { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.95; }
.featured-post .meta { display: flex; gap: 16px; margin-top: 14px; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.featured-post__art {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: url("../images/banner-night.png") 62% 42% / cover no-repeat;
}
[data-theme="day"] .featured-post__art { background-image: url("../images/banner-day.png"); }

.post-list { border-top: 1px solid var(--line); }
.post-item {
  display: grid;
  grid-template-columns: 150px 1fr 110px;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background-color .25s var(--ease);
}
.post-item:hover { padding-left: 8px; }
.post-item__thumb {
  width: 150px; height: 94px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background-color: #0B2C4B;
  background-size: cover;
  background-position: center;
}
.post-item h2 { font-size: 17px; font-weight: 600; line-height: 1.6; transition: color .2s var(--ease); }
.post-item:hover h2 { color: var(--accent); }
.post-item p { margin-top: 5px; color: var(--muted); font-size: 12.8px; line-height: 1.8; }
.post-item__meta { text-align: right; font-size: 11.5px; color: var(--muted); line-height: 1.9; }
.post-item__meta b { display: block; font-weight: 500; color: var(--ink-2); }

.pagination { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- 11. Article ---------- */
.article-head { padding: clamp(30px, 3.4vw, 50px) 0 26px; border-bottom: 1px solid var(--line); }
.article-head .tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
}
.article-head h1 {
  max-width: 20em;
  margin-top: 14px;
  font: 700 clamp(28px, 3vw, 42px)/1.45 var(--song);
  letter-spacing: .01em;
}
.article-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .05em;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 230px;
  gap: 64px;
  justify-content: center;
  padding: 34px 0 64px;
  align-items: start;
}
.prose { font-size: 16px; line-height: 2; color: var(--ink-2); }
.prose > * + * { margin-top: 1.3em; }
.prose p { text-align: justify; }
.prose h2 {
  position: relative;
  margin-top: 2em;
  padding-left: 16px;
  font: 700 24px/1.6 var(--song);
  color: var(--ink);
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 4px; height: 1em;
  border-radius: 2px;
  background: var(--accent);
  transform: skew(-8deg);
}
.prose h3 { margin-top: 1.8em; font: 600 18px/1.7 var(--song); color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: normal; color: var(--accent); }
.prose a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .5em 0; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1em; top: .82em;
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--muted); }
.prose blockquote {
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 85%);
  font-family: var(--song);
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink);
}
.prose .callout {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.9;
}
.prose .callout b { display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.prose pre {
  padding: 20px 22px;
  border-radius: 10px;
  background: #06121F;
  border: 1px solid rgba(120, 180, 235, .16);
  color: #D9E9F7;
  font: 13px/1.85 "JetBrains Mono", Consolas, monospace;
  overflow-x: auto;
}
.prose pre .c { color: #7E9BB5; }
.prose pre .k { color: #8FC6FF; }
.prose pre .s { color: #9FE0C0; }
.prose code:not(pre code) {
  padding: .15em .4em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  font: .86em/1.4 Consolas, monospace;
}
.prose figure {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}
.prose figcaption { margin-top: 12px; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.prose .end { text-align: center; color: var(--muted); letter-spacing: .5em; font-size: 12px; }
.article-foot { margin-top: 2.6em; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.toc { position: sticky; top: 100px; }
.toc h4 { font-size: 10.5px; letter-spacing: .22em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.toc ol { border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  transition: all .2s var(--ease);
}
.toc a:hover, .toc a.is-active { color: var(--accent); border-left-color: var(--accent); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.article-nav a { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.article-nav a:hover { border-color: var(--accent); }
.article-nav small { display: block; color: var(--muted); font-size: 10.5px; letter-spacing: .16em; margin-bottom: 5px; }
.article-nav b { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ink-2); }

/* ---------- 12. About ---------- */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: url("../images/banner-night.png") 72% 45% / cover no-repeat;
  box-shadow: var(--shadow);
}
[data-theme="day"] .portrait { background-image: url("../images/banner-day.png"); background-position: 70% 50%; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 21, 40, .6));
}
.portrait span {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 1;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .85);
}
.bio-lead { font: 400 clamp(18px, 1.5vw, 21px)/1.9 var(--song); color: var(--ink); }
.bio p { margin-top: 14px; font-size: 14.5px; line-height: 2; color: var(--ink-2); }
.bio .tags { margin-top: 20px; }

.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.focus {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.focus .no { font: 700 11px/1 var(--latin); letter-spacing: .2em; color: var(--accent); }
.focus h3 { margin-top: 10px; font: 600 17px/1.5 var(--song); }
.focus p { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.85; }

.timeline { border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 130px 1fr; gap: 26px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tl time { font: 600 12.5px/1.6 var(--latin); letter-spacing: .05em; color: var(--muted); }
.tl h3 { font: 600 16px/1.5 var(--song); }
.tl p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.85; }

.quote {
  padding: 32px 36px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.quote blockquote { font: 400 clamp(20px, 1.8vw, 26px)/1.8 var(--song); letter-spacing: .03em; color: var(--ink); }
.quote p { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ---------- 13. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.info-list { border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row dt { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); padding-top: 3px; }
.info-row dd { font: 400 16px/1.6 var(--song); color: var(--ink-2); }
.info-row dd small { display: block; margin-top: 3px; font: 12px/1.7 var(--sans); color: var(--muted); }
.info-row dd a:hover { color: var(--accent); }
.qr {
  width: 100px; height: 100px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, color-mix(in srgb, var(--accent) 7%, transparent) 6px 7px),
    repeating-linear-gradient(90deg, transparent 0 6px, color-mix(in srgb, var(--accent) 7%, transparent) 6px 7px);
}
.form { padding: 26px 28px; }
.form h3 { font: 700 20px/1.5 var(--song); }
.form .note { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.field textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; margin-top: 18px; padding: 10px 20px; font-size: 14px; }

/* ---------- 14. Dialog ---------- */
dialog {
  max-width: min(720px, 92vw);
  max-height: 86vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 20px 90px rgba(0, 10, 25, .55);
  overflow: auto;
}
dialog::backdrop { background: rgba(0, 19, 40, .6); backdrop-filter: blur(4px); }
.dialog__bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  z-index: 1;
}
.dialog__bar h2 { font: 700 21px/1.4 var(--song); }
.dialog__body { padding: 20px 24px 26px; }
.dialog__body h3 { margin: 18px 0 6px; font: 600 15px/1.6 var(--song); }
.dialog__body h3:first-child { margin-top: 0; }
.dialog__body p, .dialog__body li { color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.dialog__body li { position: relative; padding-left: 14px; margin: 4px 0; }
.dialog__body li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
.dialog__close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}
.dialog__close:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 15. Footer CTA / page foot ---------- */
.subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 14px;
}
.subscribe h2 { font: 700 20px/1.5 var(--song); }
.subscribe p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.subscribe form { display: flex; gap: 10px; }
.subscribe input {
  min-width: 240px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
}
.subscribe .btn { height: 42px; padding: 0 18px; font-size: 13.5px; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1200px) {
  .work { grid-template-columns: 1fr; }
  .work__art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 260px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .about-grid { grid-template-columns: 300px 1fr; gap: 32px; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav nav { gap: clamp(12px, 2vw, 22px); }
  .brand em { display: none; }
  .hero { height: auto; min-height: 440px; }
  .hero .wrap { padding: 32px 0; }
  .hero h1 { font-size: 58px; }
  .hero .intro { max-width: 55%; }
  .orbit { left: 55%; opacity: .8; }
  .float { padding: 5px 9px; gap: 6px; }
  .f1, .f3 { left: 0; }
  .f2, .f4 { right: 0; }
  .domains { grid-template-columns: 1fr 1fr; gap: 18px; }
  .domain:nth-child(2) { border: 0; }
  .project { grid-template-columns: 35% 1fr; }
  .project .round { display: none; }
  .bottom { grid-template-columns: 1fr; }
  .page-hero { height: auto; min-height: 300px; padding-top: 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .subscribe { grid-template-columns: 1fr; }
  .subscribe input { min-width: 0; flex: 1; }
}

@media (max-width: 650px) {
  .orbit { display: none; }
  .hero .intro { max-width: 100%; }
  .hero h1 { font-size: 49px; gap: 12px; }
  .hero h1 span { font-size: 25px; }
  .slogan { font-size: 19px; letter-spacing: 2px; }
  .scene.day { background-image: linear-gradient(90deg, rgba(245, 249, 252, .94), rgba(245, 249, 252, .62)), url("../images/banner-day.png"); }
  .scene.night { background-image: linear-gradient(90deg, rgba(3, 21, 42, .86), rgba(3, 21, 42, .5)), url("../images/banner-night.png"); background-size: cover; }
  .btn { padding: 8px 20px; }
  .switch { margin-left: auto; }
  .page-hero { min-height: 240px; padding-top: 34px; padding-bottom: 24px; }
  .page-hero .desc { font-size: 13.5px; }
  .featured-post { padding: 18px; gap: 14px; }
  .featured-post h2 { font-size: 20px; }
  .work__body h2 { font-size: 22px; }
  .article-head h1 { font-size: 26px; }
  .article-layout { padding: 24px 0 48px; }
  .page-hero .scene.day { background-image: linear-gradient(90deg, rgba(245, 249, 252, .97), rgba(245, 249, 252, .8)), url("../images/banner-day.png"); }
  .page-hero .scene.night { background-image: linear-gradient(90deg, rgba(3, 21, 42, .92), rgba(3, 21, 42, .72)), url("../images/banner-night.png"); background-size: cover; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .focus-grid { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 4px; }
  .post-item { grid-template-columns: 1fr; gap: 8px; }
  .post-item__thumb { display: none; }
  .post-item__meta { text-align: left; display: flex; gap: 12px; }
  .post-item__meta b { display: inline; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__art { display: none; }
  .article-nav { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .foot { flex-direction: column; }
}

@media (max-width: 580px) {
  .nav { height: auto; flex-wrap: wrap; padding: 10px 0; row-gap: 6px; }
  .nav nav { order: 3; width: 100%; justify-content: space-between; }
  .nav nav a { padding: 5px 0; font-size: 14px; }
  .nav nav a::after { bottom: 0; height: 2px; }
  .brand b { font-size: 26px; }
  .domains { gap: 12px; }
  .domain { padding: 0 4px; gap: 8px; }
  .domain b { font-size: 14px; }
  .ico { width: 36px; height: 36px; }
  .domain .small { font-size: 11px; }
  .project { grid-template-columns: 1fr; }
  .project h3 { font-size: 19px; }
  .bottom .panel { padding: 16px; }
  .page-hero h1 { font-size: 36px; }
  .work__facts { grid-template-columns: 1fr 1fr; }
  .subscribe form { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .scene, .knob { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 17. 通用补充 ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 160% at 88% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow);
}
.cta h2 { font: 700 clamp(20px, 1.7vw, 24px)/1.5 var(--song); }
.cta p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.cta .btn { flex: none; padding: 9px 22px; font-size: 14px; }

.block { margin-top: 30px; }
.block:first-child { margin-top: 0; }

.thumb-a { background-image: url("../images/thumb-moon-day.jpg"); }
.thumb-b { background-image: url("../images/thumb-pine-day.jpg"); }
.thumb-c { background-image: url("../images/thumb-wave-day.jpg"); }
[data-theme="night"] .thumb-a { background-image: url("../images/thumb-moon-night.jpg"); }
[data-theme="night"] .thumb-b { background-image: url("../images/thumb-pine-night.jpg"); }
[data-theme="night"] .thumb-c { background-image: url("../images/thumb-wave-night.jpg"); }

.page-hero + .page-main { padding-top: clamp(28px, 3vw, 46px); }
.article-shell { max-width: 1074px; margin: 0 auto; }
.prose h2, .prose h3 { scroll-margin-top: 110px; }
.article-head .tags { margin-top: 12px; }

/* ---------- 18. 作品网格（六件作品） ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  scroll-margin-top: 110px;
}
.work-card__art {
  position: relative;
  height: 286px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 76% 6%, rgba(64, 190, 245, .22), transparent 58%),
    radial-gradient(70% 90% at 18% 96%, rgba(18, 120, 190, .2), transparent 62%),
    linear-gradient(150deg, #0A2944 0%, #061829 100%);
  border-bottom: 1px solid rgba(120, 180, 235, .16);
}
.work-card__art--warm {
  background:
    radial-gradient(62% 84% at 50% 52%, rgba(214, 164, 74, .26), transparent 64%),
    radial-gradient(90% 120% at 76% 6%, rgba(64, 190, 245, .1), transparent 58%),
    linear-gradient(150deg, #1A1409 0%, #0A1014 100%);
}
.work-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 200, 240, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 240, .07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.work-card__art img {
  position: relative;
  width: 78%;
  max-width: 430px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 10, 25, .55));
}
.work-card__art svg { position: relative; width: 82%; max-width: 440px; height: auto; }
.work-card__idx {
  position: absolute;
  left: 18px; top: 15px;
  z-index: 1;
  font: 700 11px/1 var(--latin);
  letter-spacing: .22em;
  color: rgba(170, 235, 255, .7);
}
.work-card__body { padding: 20px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.work-card__kicker { font-size: 10.5px; letter-spacing: .22em; color: var(--accent); }
.work-card h2 { margin-top: 8px; font: 700 22px/1.45 var(--song); letter-spacing: .01em; }
.work-card__en { margin-top: 4px; font: italic 12px/1.5 var(--latin); color: var(--muted); }
.work-card .desc { margin-top: 10px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.work-card .tags { margin-top: 12px; }
.work-card__foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.work-card__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.work-card__more {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform .2s var(--ease);
}
.work-card__more:hover { transform: translateX(2px); }

.works-note {
  margin: 18px 2px 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .02em;
}

@media (max-width: 1100px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card__art { height: 210px; }
}
.work-card__shot {
  position: relative;
  width: 84%;
  max-width: 510px;
  max-height: 250px;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(150, 215, 250, .28);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .78);
  background: #06182A;
}
.work-card__shot img { display: block; width: 100%; height: auto; }
.work-card__phone {
  position: relative;
  width: 124px;
  height: 258px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(160, 220, 250, .42);
  box-shadow: 0 22px 46px -18px rgba(0, 0, 0, .8), 0 0 0 4px rgba(6, 24, 42, .65);
}
.work-card__phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.dialog-shot {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #06182A;
}
.dialog-shot img { display: block; width: 100%; height: auto; }
.dialog-shot figcaption { padding: 7px 12px; background: var(--surface); color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.dialog-shot--phone { display: flex; justify-content: center; padding: 14px; }
.dialog-shot--phone img { width: auto; max-height: 58vh; border-radius: 16px; }

/* ---------- 19. 日间横幅（V7）：更通透的山水 ---------- */
html[data-theme="day"] .hero > .scene.day {
  background-image:
    linear-gradient(90deg, rgba(245, 249, 252, .97) 0%, rgba(245, 249, 252, .93) 24%, rgba(245, 249, 252, .82) 36%, rgba(245, 249, 252, .30) 48%, transparent 58%),
    url("../images/banner-day.png");
  background-size: cover;
  background-position: right center;
}
html[data-theme="day"] .hero .intro { text-shadow: none; }
html[data-theme="day"] .orbit > svg { opacity: .55; }
@media (min-width: 901px) {
  html[data-theme="day"] .hero > .scene.day { background-size: 100% 100%; background-position: center; }
}
@media (max-width: 650px) {
  html[data-theme="day"] .hero > .scene.day {
    background-image: linear-gradient(90deg, rgba(245, 249, 251, .94), rgba(245, 249, 251, .80)), url("../images/banner-day.png");
    background-position: 75% center;
  }
}

/* ---------- 20. 领域旗标（V11） ---------- */
.day-coordinates {
  position: absolute;
  left: 38%; right: 3%; top: 38%; bottom: 5%;
  z-index: 3;
  pointer-events: none;
}
.day-coordinates > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
  pointer-events: none;
}
.coordinate {
  appearance: none;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 20px 6px 12px;
  border: 0;
  border-left: 1px solid rgba(217, 248, 255, .73);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(9, 62, 100, .54), rgba(26, 116, 166, .26) 66%, transparent);
  color: #F4FBFF;
  font: inherit;
  font-size: clamp(15px, 1.12vw, 20px);
  line-height: 1.5;
  letter-spacing: .07em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 3px #062A45, 0 0 10px #082F4E;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s, box-shadow .3s, text-shadow .3s;
}
html[data-theme="night"] .coordinate {
  background: linear-gradient(90deg, rgba(10, 44, 74, .52), rgba(10, 44, 74, .2) 66%, transparent);
}
.coordinate span {
  position: relative;
  z-index: 1;
  font: 500 clamp(9px, .6vw, 11px)/1.5 system-ui, sans-serif;
  letter-spacing: .13em;
  color: #E4F7FF;
  transition: color .3s;
}
.coordinate b { position: relative; z-index: 1; font-weight: 500; }
.coordinate i {
  position: absolute;
  top: 100%;
  left: -1px;
  width: 1px;
  height: 30px;
  background: linear-gradient(#D9FAFF, rgba(140, 236, 255, .5));
  transition: height .3s var(--ease), background .3s;
}
.coordinate i::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E9FFFF;
  box-shadow: 0 0 8px 2px #48D7FF;
  animation: point-breathe 5s ease-in-out infinite;
}
.c1 { left: 5%; top: 51%; }
.c2 { left: 30%; top: 40%; }
.c3 { left: 57%; top: 41%; }
.c4 { left: 82%; top: 26%; }
.c2 i::after { animation-delay: -1s; }
.c3 i::after { animation-delay: -2s; }
.c4 i::after { animation-delay: -3s; }
@keyframes point-breathe {
  50% { opacity: .45; box-shadow: 0 0 4px #48D7FF; }
}

/* 悬停：上浮 + 扫光 + 光点脉冲 */
.coordinate:is(:hover, .is-hover) {
  transform: translateY(-3px);
  border-left-color: #FFFFFF;
  background-color: rgba(155, 220, 247, .08);
  box-shadow: 0 0 0 1px rgba(150, 235, 255, .22), 0 0 26px rgba(70, 205, 255, .3);
  text-shadow: 0 1px 3px #02111F, 0 0 12px #47DBFF, 0 0 26px rgba(47, 182, 255, .75);
}
.coordinate:is(:hover, .is-hover) span { color: #BFF6FF; }
.coordinate:is(:hover, .is-hover) i {
  height: 46px;
  background: linear-gradient(#EAFFFF, #7FE9FF);
  box-shadow: 0 0 10px rgba(120, 235, 255, .55);
}
.coordinate:is(:hover, .is-hover) i::after {
  width: 7px;
  height: 7px;
  left: -3px;
  box-shadow: 0 0 18px 6px #6FE6FF;
}
.coordinate:active { transform: translateY(0); }
.coordinate:focus-visible { outline: 1px solid #B9EAFF; outline-offset: 3px; }

.coordinate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(190, 247, 255, .26) 48%, transparent 78%);
  transform: translateX(-115%);
  transition: transform .65s var(--ease);
  clip-path: inset(0);
  pointer-events: none;
}
.coordinate:is(:hover, .is-hover)::before { transform: translateX(115%); }

.coordinate i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(160, 245, 255, .8);
  transform: translate(-50%, 50%) scale(.8);
  opacity: 0;
  pointer-events: none;
}
.coordinate:is(:hover, .is-hover) i::before { animation: dot-ring 1.4s ease-out infinite; }
@keyframes dot-ring {
  0% { opacity: .9; transform: translate(-50%, 50%) scale(.8); }
  100% { opacity: 0; transform: translate(-50%, 50%) scale(4.2); }
}

/* 旧的夜间浮标不再使用 */
.orbit { display: none; }

@media (max-width: 1100px) {
  .day-coordinates { display: none; }
}
@media (min-width: 901px) {
  html[data-theme="day"] .hero > .scene.day {
    background-size: cover;
    background-position: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .coordinate,
  .coordinate i,
  .coordinate::before { transition: none; }
  .coordinate i::after,
  .coordinate:is(:hover, .is-hover) i::before { animation: none; }
  .coordinate::before { display: none; }
}

#topic-modal { width: min(560px, 92vw); }
.topic-points { margin: 12px 0 0; display: grid; gap: 6px; }
.topic-points li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}
.topic-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .75em;
  width: 4px; height: 4px;
  background: var(--accent);
  transform: rotate(45deg);
}

.foot-contact { white-space: nowrap; }
