/* ---------- 字体（自托管子集） ---------- */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif SC Quote";
  src: url("fonts/noto-serif-quote.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* ==========================================================================
   孤寂城堡 · kalel.cn
   手写样式，无框架、无外部字体。产品页式的大字号、留白与轻交互。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #141418;
  --ink-2: #5f5f68;
  --ink-3: #86868f;
  --line: #e7e7ec;
  --line-strong: #d6d6dd;
  --blue: #0a63f5;
  --blue-hover: #0754d4;
  --blue-solid: #0a63f5;
  --blue-solid-hover: #0754d4;
  --blue-soft: #eaf1ff;
  --tag-ink: #0b55c9;
  --chip: rgba(20, 20, 24, 0.06);
  --night: #0a0b12;
  --window: #ffc773;
  --serif: "Noto Serif SC Quote", "Iowan Old Style", Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-xl: 32px;
  --radius: 20px;
  --nav-h: 56px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: #c9c9d0 transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(10, 99, 245, 0.16); }

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.86); }

.nav-inner {
  max-width: 1120px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.monogram {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 30px;
  text-align: center;
  flex: none;
}
.brand-text { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.15; }
.brand-text em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 1px;
}

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav-links a {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); font-weight: 600; }
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  flex: none;
}
.lang-switch button {
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--blue-solid); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 99, 245, 0.6); }
.btn.primary:hover { background: var(--blue-solid-hover); }
.btn.ghost { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: #b9b9c2; background: var(--bg-alt); }
.btn.small { height: 34px; padding: 0 15px; font-size: 12.5px; }
.btn.small svg { width: 12px; height: 12px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(46px, 6.2vw, 84px) 24px 0; }

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(10, 99, 245, 0.45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 99, 245, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(10, 99, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 99, 245, 0); }
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 .hl {
  background: linear-gradient(96deg, #0a63f5 8%, #5c5cff 52%, #9a5cff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: balance;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-meta .sep { opacity: 0.5; }

/* ---------- 城堡场景 ---------- */

.stage {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: clamp(360px, 46vw, 560px);
  margin: clamp(44px, 5vw, 64px) auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0a0b12;
  box-shadow: 0 40px 80px -40px rgba(16, 18, 38, 0.55), 0 0 0 1px rgba(16, 18, 38, 0.06);
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars { position: absolute; inset: 0; pointer-events: none; }
.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.65;
  animation: twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1); }
}

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 420px at var(--mx, 50%) var(--my, 40%), rgba(122, 158, 255, 0.2), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
.stage:hover .glow { opacity: 1; }

/* 窗户 */
.win {
  fill: #262b40;
  transition: fill 0.7s ease, filter 0.7s ease;
}
.stage.is-lit .win {
  fill: var(--window);
  filter: drop-shadow(0 0 5px rgba(255, 186, 96, 0.9)) drop-shadow(0 0 14px rgba(255, 160, 60, 0.35));
}

.stage-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(5, 6, 12, 0.62), rgba(5, 6, 12, 0));
}

.stage-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.02em;
}
.stage-hint .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--window);
  box-shadow: 0 0 8px rgba(255, 199, 115, 0.8);
}

.lights {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #f2f2f5;
  font-size: 12.5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lights:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.lights svg { width: 15px; height: 15px; }
.lights[aria-pressed="true"] { background: rgba(255, 199, 115, 0.16); border-color: rgba(255, 199, 115, 0.45); color: #ffd79a; }

/* ---------- 数字条 ---------- */

.stats {
  max-width: 1120px;
  margin: clamp(40px, 4.6vw, 58px) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 8px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- 通用区块 ---------- */

.section { padding: clamp(64px, 7.4vw, 104px) max(24px, calc((100% - 1120px) / 2)); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin: 0 auto 0 0; }

.index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.07;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-lede {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: balance;
}

/* ---------- 三件事 ---------- */

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(32px, 4vw, 44px);
}

.feature {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -28px rgba(20, 20, 24, 0.22);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature p { font-size: 14.5px; line-height: 1.78; color: var(--ink-2); }
.feature-meta {
  margin-top: auto !important;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.04em;
  color: var(--ink-3) !important;
}

/* ---------- 作品 ---------- */

.works { margin-top: clamp(36px, 4.2vw, 52px); display: flex; flex-direction: column; gap: clamp(44px, 5vw, 68px); }

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 50px);
  align-items: center;
}
.work:nth-child(even) .work-copy { order: 2; }
.work:nth-child(even) .work-visual { order: 1; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--tag-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.soft { background: var(--chip); color: var(--ink-2); font-weight: 500; }

.work-copy h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.035em; margin-bottom: 14px; }
.work-copy > p { font-size: 15px; line-height: 1.78; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.work-meta {
  margin-top: 16px !important;
  font-family: var(--mono);
  font-size: 11.5px !important;
  color: var(--ink-3) !important;
  letter-spacing: 0.02em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
}
.text-link svg { width: 15px; height: 15px; transition: transform 0.22s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.text-link.quiet { color: var(--ink-3); font-weight: 400; cursor: default; }

.work-visual { min-width: 0; }

/* 作品截图 */
.shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 30px 60px -34px rgba(20, 20, 24, 0.34);
}
.shot img { display: block; width: 100%; height: auto; }
.dark-shot { background: #0a0b12; border-color: #202231; }


/* ---------- 摄影 ---------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(30px, 3.6vw, 42px);
}

.photo-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 48px -32px rgba(20, 20, 24, 0.26);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px -32px rgba(20, 20, 24, 0.3);
}
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #f2f2f4;
}
.photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px 15px;
}
.photo-subject { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.photo-note { font-size: 11.5px; color: var(--ink-3); }

.photo-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.photo-foot > span { display: inline-flex; align-items: baseline; gap: 10px; }
.photo-foot b {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.photo-foot > span > span { font-size: 12.5px; color: var(--ink-2); }

.photo-swipe {
  display: none;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ---------- 引语 ---------- */

.quote {
  background:
    radial-gradient(720px 320px at 18% 0%, rgba(74, 92, 190, 0.22), transparent 60%),
    radial-gradient(600px 320px at 88% 100%, rgba(154, 92, 255, 0.12), transparent 62%),
    var(--night);
  color: #f4f3ef;
  text-align: center;
  padding: clamp(80px, 11vw, 132px) 24px;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.22;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.quote-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: #8d8f9f;
  letter-spacing: 0.04em;
}

/* ---------- 现在 ---------- */

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(30px, 3.6vw, 42px);
}
.now-col { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.now-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.now-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.now-dot.working { background: var(--blue); }
.now-dot.learning { background: #f0a63c; }
.now-dot.listening { background: #9a5cff; }
.now-col li {
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.now-col li:last-child { border-bottom: 0; }

/* ---------- 写作 ---------- */

.doors {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 44px);
}
.door {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
}
.door:hover {
  transform: translateY(-4px);
  border-color: #c6d7f7;
  box-shadow: 0 26px 50px -30px rgba(20, 20, 24, 0.28);
}
.door-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.door h3 { font-size: 23px; margin: 14px 0 10px; letter-spacing: -0.02em; }
.door p { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.door-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue);
}
.door-go svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.door:hover .door-go svg { transform: translateX(3px); }

/* ---------- 问答 ---------- */

.faq { max-width: 820px; margin: 32px 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 2px;
  font-size: clamp(15.5px, 1.5vw, 17px);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  transition: transform 0.25s var(--ease), background 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--bg-alt); }
.faq details p {
  padding: 0 40px 24px 2px;
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------- 联系 ---------- */

.contact { padding: clamp(74px, 9vw, 116px) 24px; text-align: center; }
.contact .eyebrow { margin-bottom: 18px; }
.contact h2 {
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.contact > p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: balance;
}
.hero-cta.center { margin-top: 30px; }

/* ---------- 页脚 ---------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 48px 24px 24px;
  font-size: 13px;
}
.footer-top,
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 44px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand .monogram { width: 36px; height: 36px; line-height: 36px; font-size: 19px; border-radius: 10px; }
.footer-brand b { display: block; font-size: 14px; }
.footer-brand span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }

.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 28px; }
.footer-col h4 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.footer-col a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 13px; }
.footer-col a:hover { color: var(--ink); }
.footer-col.wide p { color: var(--ink-3); font-size: 12px; line-height: 1.7; max-width: 260px; }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}
.footer-dot { opacity: 0.5; }


/* ---------- 英文排版微调 ---------- */

html[lang="en"] .hero h1 { letter-spacing: -0.042em; }
html[lang="en"] .section-head h2 { letter-spacing: -0.035em; }
html[lang="en"] .hero h1 .hl { letter-spacing: -0.03em; }
html[lang="en"] .quote-text {
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  letter-spacing: 0.005em;
  font-weight: 500;
}
html[lang="en"] .quote-text br { display: block; }
html[lang="en"] .eyebrow { letter-spacing: 0.12em; }
html[lang="en"] .contact h2 { letter-spacing: -0.045em; }

/* ---------- 入场动画 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }


/* ---------- 暗色主题（按时间自动切换） ---------- */

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0f;
  --bg-alt: #111118;
  --card: #14141b;
  --ink: #f3f3f7;
  --ink-2: #a6a6b1;
  --ink-3: #7e7e8a;
  --line: #23232c;
  --line-strong: #33333e;
  --blue: #7aa7ff;
  --blue-hover: #9bbdff;
  --blue-solid: #2f6bff;
  --blue-solid-hover: #4a80ff;
  --blue-soft: rgba(122, 167, 255, 0.15);
  --tag-ink: #a9c6ff;
  --chip: rgba(255, 255, 255, 0.08);
  --night: #08080c;
}

:root[data-theme="dark"] { scrollbar-color: #3a3a46 transparent; }
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .nav { background: rgba(11, 11, 15, 0.72); }
:root[data-theme="dark"] .nav.is-scrolled { background: rgba(11, 11, 15, 0.88); }
:root[data-theme="dark"] .hero h1 .hl {
  background: linear-gradient(96deg, #7aa7ff 6%, #a78bff 58%, #c79bff 96%);
  -webkit-background-clip: text;
  background-clip: text;
}
:root[data-theme="dark"] .btn.ghost:hover { border-color: #4a4a58; background: #1a1a22; }
:root[data-theme="dark"] .feature:hover { box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.65); }
:root[data-theme="dark"] .door:hover { border-color: #33507f; box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.6); }
:root[data-theme="dark"] .shot { border-color: #24242e; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .quote {
  background:
    radial-gradient(720px 320px at 18% 0%, rgba(74, 92, 190, 0.26), transparent 60%),
    radial-gradient(600px 320px at 88% 100%, rgba(154, 92, 255, 0.16), transparent 62%),
    #08080c;
}
:root[data-theme="dark"] .lang-switch button.is-active { background: #2c2c37; color: #fff; box-shadow: none; }
:root[data-theme="dark"] .faq summary::after { background: transparent; }
:root[data-theme="dark"] .faq details[open] summary::after { background: var(--bg-alt); }
:root[data-theme="dark"] ::selection { background: rgba(122, 167, 255, 0.24); }
:root[data-theme="dark"] .stage { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04); }
:root[data-theme="dark"] .monogram { color: #0b0b0f; }

body, .nav, .footer { transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease; }
.feature, .door, .shot, .btn.ghost { transition: background-color 0.4s ease, border-color 0.25s ease, color 0.3s ease, transform 0.16s var(--ease), box-shadow 0.28s var(--ease); }

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .work { grid-template-columns: 1fr 1fr; gap: 36px; }
  .doors { grid-template-columns: 1.4fr 1fr; }
  .now-grid { gap: 20px; }
  .photo-gallery { gap: 14px; }
}

@media (max-width: 860px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 16px; margin-left: 4px; }
  .work { grid-template-columns: 1fr; gap: 28px; }
  .work:nth-child(even) .work-copy,
  .work:nth-child(even) .work-visual { order: 0; }
  .triad { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr 1.4fr; }
  .quote-text { letter-spacing: 0.03em; }

  .photo-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -24px;
    padding: 2px 24px 10px;
    scrollbar-width: none;
  }
  .photo-gallery::-webkit-scrollbar { display: none; }
  .photo-card { flex: 0 0 74%; scroll-snap-align: start; }
  .photo-swipe { display: block; }
  .photo-foot { gap: 8px 24px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 112px; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 8px 16px 0; gap: 4px 10px; }
  .brand { order: 1; gap: 8px; }
  .brand-text { font-size: 13px; }
  .brand-text em { display: none; }
  .monogram { width: 28px; height: 28px; line-height: 28px; font-size: 16px; border-radius: 8px; }
  .nav-actions { order: 2; margin-left: auto; gap: 8px; }
  .nav-blog { display: none; }
  .lang-switch button { height: 22px; padding: 0 7px; font-size: 10.5px; }
  .nav-links { order: 3; width: 100%; margin: 0; gap: 16px; padding: 4px 0 9px; }
  .nav-links a { font-size: 12.5px; padding: 4px 0; }
}

@media (max-width: 620px) {
  :root { --radius-xl: 22px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(38px, 10.4vw, 54px); letter-spacing: -0.04em; }
  html[lang="en"] .hero h1 { font-size: clamp(28px, 8.4vw, 44px); letter-spacing: -0.035em; }
  .lede { margin-top: 20px; font-size: 15px; }
  .hero-cta { margin-top: 28px; }
  .btn { height: 42px; padding: 0 19px; }
  .stage { height: 340px; margin-top: 36px; }
  .stage-overlay { padding: 14px 14px; align-items: center; }
  .stage-hint { font-size: 11px; max-width: 56%; }
  .stage-hint .dot { width: 4px; height: 4px; }
  .lights { height: 32px; padding: 0 11px; font-size: 11.5px; gap: 5px; }
  .lights svg { width: 13px; height: 13px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 40px; padding: 0 16px; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 20px 8px; }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .section { padding: 68px 20px; }
  .work-copy h3 { font-size: 26px; }
  .footer { padding: 44px 20px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col.wide { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 30px; }
  .contact { padding: 76px 20px 88px; }
  .faq details p { padding-right: 18px; }
  .moon { transform: translate(-118px, -26px); }
  .feature { padding: 24px; }
  .feature-icon { margin-bottom: 18px; }

  .photo-gallery { margin-inline: -20px; padding-inline: 20px; }
  .photo-card { flex-basis: 82%; }
  .photo-foot { gap: 8px 18px; }
  .photo-foot > span { gap: 7px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .lede { font-size: 14.5px; }
  .hero-cta .btn { height: 40px; padding: 0 16px; font-size: 13px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; }
  .lang-switch button { padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
