/* LINGSHE · 灵蛇开物 — site styles
   品牌色：深墨灰 #1F1F1F，雅金 #C9A962 */

:root {
  --bg: #131313;
  --bg-band: #171716;
  --surface: #1f1f1f;
  --surface-2: #262522;
  --line: rgba(201, 169, 98, 0.14);
  --line-strong: rgba(201, 169, 98, 0.34);
  --text: #eee9e0;
  --text-soft: #d3cdc2;
  --text-muted: #a7a196;
  --text-faint: #7d786f;
  --gold: #c9a962;
  --gold-bright: #dcc283;
  --gold-soft: rgba(201, 169, 98, 0.1);
  --on-gold: #151412;
  --gold-fill: #c9a962;
  --gold-fill-hover: #dcc283;
  --page-glow: rgba(201, 169, 98, 0.09);
  --header-bg: rgba(19, 19, 19, 0.86);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  --chip-bg: rgba(255, 255, 255, 0.02);
  --banner-bg: rgba(31, 31, 31, 0.94);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --selection-text: #fff;
  /* 标志颜色：夜间用深色背景版（金色圆、镂空蛇和星） */
  --mark-body: #c9a962;
  --mark-star: transparent;
  --mark-flow: #ecd396;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif SC",
    "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;

  color-scheme: dark;
}

/* 日间主题：标志用标准版（墨色圆、镂空蛇、金色星） */
[data-theme="light"] {
  --bg: #f7f4ee;
  --bg-band: #f0ece3;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --line: rgba(31, 31, 31, 0.1);
  --line-strong: rgba(160, 128, 60, 0.42);
  --text: #1f1f1f;
  --text-soft: #39362f;
  --text-muted: #5f5a51;
  --text-faint: #736d63;
  --gold: #84662a;
  --gold-bright: #6f5522;
  --gold-soft: rgba(201, 169, 98, 0.16);
  --on-gold: #1f1f1f;
  --gold-fill: #c9a962;
  --gold-fill-hover: #d6ba79;
  --page-glow: rgba(201, 169, 98, 0.16);
  --header-bg: rgba(247, 244, 238, 0.86);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  --chip-bg: rgba(255, 255, 255, 0.7);
  --banner-bg: rgba(255, 255, 255, 0.96);
  --shadow: 0 16px 40px rgba(60, 45, 15, 0.14);
  --hover-bg: rgba(31, 31, 31, 0.06);
  --selection-text: #1f1f1f;
  --mark-body: #1f1f1f;
  --mark-star: #c9a962;
  --mark-flow: #c9a962;

  color-scheme: light;
}

/* 标志各部分的颜色由主题变量控制 */
.mk-body {
  fill: var(--mark-body);
}

.mk-star {
  fill: var(--mark-star);
  stroke: var(--mark-star);
  stroke-width: 6px; /* 比镂空略大，避免边缘透出背景 */
}

.mk-flow {
  stroke: var(--mark-flow);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 78% -8%, var(--page-glow), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(zh-CN) body,
body:lang(zh-CN) {
  line-height: 1.85;
}

main {
  flex: 1 0 auto;
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(201, 169, 98, 0.35);
  color: var(--selection-text);
}

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

em {
  font-style: italic;
  color: var(--gold);
}

:lang(zh-CN) em {
  font-style: normal;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.muted {
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-fill);
  color: var(--on-gold);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons & links ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.actions.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold-fill);
  color: var(--on-gold);
}

.btn-primary:hover {
  background: var(--gold-fill-hover);
}

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

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--gold);
  font-weight: 500;
}

.text-link span {
  transition: transform 0.25s var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.is-scrolled,
.nav-open .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
}

.brand-sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--text-muted);
}

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

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin-left: -12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--line-strong);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

/* 夜间显示太阳（点了切到日间），日间显示月亮 */
.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-list a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list a[aria-current="page"] {
  color: var(--gold);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  background: var(--gold-soft);
  color: var(--gold);
}

.lang-sep {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    top 0.3s var(--ease);
}

.nav-toggle-bar:nth-of-type(2) {
  top: 18px;
}

.nav-toggle-bar:nth-of-type(3) {
  top: 25px;
}

.nav-open .nav-toggle-bar:nth-of-type(2) {
  top: 21.5px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-of-type(3) {
  top: 21.5px;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 24px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease);
  }

  .nav-open {
    overflow: hidden;
  }

  /* backdrop-filter 会让 fixed 子元素以页头为定位容器，菜单打开时去掉 */
  .nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }

  .nav-list {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text);
  }

  .nav-list a[aria-current="page"]::after {
    left: -16px;
    top: 50%;
    bottom: auto;
    margin: -2px 0 0;
  }

  .lang-switch {
    font-size: 15px;
  }

  .lang-switch a {
    padding: 8px 16px;
  }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.center .eyebrow::before,
.section-head.center .eyebrow::before {
  display: none;
}

@media (max-width: 560px) {
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .eyebrow::before {
    display: none;
  }
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-muted);
}

.center .lead {
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.section-tight {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.18;
}

.section-lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding-block: 56px 64px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.4vw, 80px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-title:lang(zh-CN) {
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.hero-glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.22), rgba(201, 169, 98, 0.04) 55%, transparent 70%);
}

.hero-mark {
  position: relative;
  width: 64%;
  height: auto;
  color: var(--gold);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* 首页 logo 外的水波：从 logo 边缘向外扩散、渐隐，循环 */
.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  margin: -100% 0 0 -100%;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 98, 0.55);
  box-shadow:
    0 0 24px rgba(201, 169, 98, 0.07),
    inset 0 0 36px rgba(201, 169, 98, 0.05);
  opacity: 0;
  transform: scale(0.32); /* 0.32 × 200% = logo 的直径 */
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ripple {
    animation: ripple 7.5s linear infinite;
    will-change: transform, opacity;
  }

  /* 进场动画结束后开始，三道依次扩散 */
  .ripple-1 {
    animation-delay: 1.5s;
  }

  .ripple-2 {
    animation-delay: 4s;
  }

  .ripple-3 {
    animation-delay: 6.5s;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.32);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  25% {
    transform: scale(0.6);
  }
  50% {
    transform: scale(0.8);
    opacity: 0.55;
  }
  75% {
    transform: scale(0.93);
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* 减少动态效果：显示静止的三道圆环 */
@media (prefers-reduced-motion: reduce) {
  .ripple-1 {
    transform: scale(0.56);
    opacity: 0.5;
  }

  .ripple-2 {
    transform: scale(0.75);
    opacity: 0.3;
  }

  .ripple-3 {
    transform: scale(0.98);
    opacity: 0.16;
  }
}

/* 等脚本开始播放“游入”前先隐藏，避免先闪一下完整 logo */
.anim [data-entrance]:not(.is-playing) {
  visibility: hidden;
}


@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-block: 40px 72px;
  }

  .hero-visual {
    order: -1;
    width: min(240px, 60vw);
  }
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 128px) clamp(32px, 5vw, 56px);
}

.page-title {
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.page-title:lang(zh-CN) {
  letter-spacing: 0.02em;
}

.page-meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-faint);
}

.page-hero-bg .ring {
  top: 50%;
  right: 4%;
  transform: translate(50%, -50%);
}

.page-hero-bg .ring-1 {
  width: 360px;
  height: 360px;
}

.page-hero-bg .ring-2 {
  width: 560px;
  height: 560px;
  border-style: dashed;
  border-color: rgba(201, 169, 98, 0.1);
}

.page-hero-bg .ring-3 {
  width: 780px;
  height: 780px;
  border-color: rgba(201, 169, 98, 0.06);
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card p {
  color: var(--text-muted);
}

.card-index {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.card-title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
}

/* ---------- AI ---------- */
.section-ai {
  padding-top: 0;
}

.ai-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(520px 320px at 0% 0%, var(--gold-soft), transparent 70%),
    var(--card-bg);
}

@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

.ai-head {
  position: relative;
}

.ai-star {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--gold-fill);
}

.ai-list {
  display: grid;
  gap: 4px;
}

.ai-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.ai-item:last-child {
  border-bottom: 0;
}

.ai-item .icon-badge {
  flex: none;
  margin-bottom: 0;
}

.ai-title {
  margin-bottom: 6px;
  font-size: 18px;
}

.ai-item p {
  color: var(--text-muted);
}

.ai-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

@media (max-width: 1000px) {
  .ai-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .ai-chips {
    grid-template-columns: 1fr;
  }
}

.ai-chips li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-soft);
  font-weight: 500;
}

.ai-chips .icon {
  color: var(--gold);
}

/* ---------- Philosophy ---------- */
.section-philosophy {
  background: var(--bg-band);
  border-block: 1px solid var(--line);
}

.motto {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.motto span {
  display: inline-block;
}

.motto-translation {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 20px);
  font-style: italic;
  color: var(--text-muted);
}

.pillar {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.pillar-zh {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.pillar-title {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
}

.pillar p:last-child {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Name story ---------- */
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.name-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.name-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin-plain 90s linear infinite;
}

.name-orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--gold);
}

@keyframes spin-plain {
  to {
    transform: rotate(360deg);
  }
}

.name-mark {
  width: 62%;
  height: auto;
}

@media (max-width: 900px) {
  .name-visual {
    width: min(70vw, 300px);
  }
}

.name-list {
  margin: 8px 0 0;
}

.name-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.name-item:last-child {
  border-bottom: 0;
}

.name-item dt {
  display: flex;
  flex-direction: column;
}

.name-zh {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--gold);
}

.name-pinyin {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.name-item dd {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .name-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- CTA ---------- */
.section-cta {
  padding-top: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(201, 169, 98, 0.14), transparent 70%),
    var(--surface);
}

.cta-title {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
}

.cta-copy p {
  color: var(--text-muted);
}

.cta-card .actions {
  margin-top: 0;
  flex: none;
}

@media (max-width: 860px) {
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Services ---------- */
.service-card .card-title {
  font-size: 19px;
}

.section-process {
  background: var(--bg-band);
  border-block: 1px solid var(--line);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  counter-reset: none;
}

.process-step {
  position: relative;
  padding-top: 36px;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: -24px;
  height: 1px;
  background: var(--line-strong);
}

.process-step:last-child::before {
  right: 0;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-fill);
  box-shadow: 0 0 0 4px var(--bg-band);
}

.process-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.process-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.process-step p {
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  .process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step {
    padding: 0 0 32px 36px;
  }

  .process-step::before {
    top: 12px;
    bottom: 0;
    left: 4px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-step:last-child {
    padding-bottom: 0;
  }

  .process-step:last-child::before {
    display: none;
  }

  .process-step::after {
    top: 8px;
  }
}

.model-card .card-title {
  color: var(--gold);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
  background: var(--chip-bg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-main {
  display: grid;
  gap: 24px;
}

.email-card {
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(201, 169, 98, 0.12), transparent 70%),
    var(--surface);
}

.email-label {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.email-address {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 5.2vw, 38px);
  line-height: 1.25;
  color: var(--gold);
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

.email-address:hover {
  color: var(--gold-bright);
}

.email-card .actions {
  margin-top: 28px;
}

@media (max-width: 560px) {
  .email-card,
  .contact-aside,
  .card {
    padding: 26px 24px;
  }
}

.btn.is-copied {
  border-color: var(--gold);
  color: var(--gold);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
}

.check-list .icon {
  margin-top: 4px;
  color: var(--gold);
}

.contact-aside {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-list {
  margin: 0;
  display: grid;
  gap: 24px;
}

.info-row dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.info-row dd {
  margin: 0;
  color: var(--text-soft);
}

/* ---------- Legal ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.legal-toc-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.legal-toc ol {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  color: var(--text-faint);
}

.legal-toc a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.legal-toc a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

.prose {
  max-width: 740px;
  color: var(--text-soft);
  counter-reset: h2;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.6em;
  padding-top: 0.2em;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text);
  counter-increment: h2;
}

.prose h2::before {
  content: counter(h2, decimal-leading-zero);
  margin-right: 14px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--gold);
  vertical-align: 3px;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 17px;
  color: var(--text);
}

.prose h2 + p,
.prose h3 + p,
.prose h3 + ul {
  margin-top: 0.7em;
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
}

.prose li::marker {
  color: var(--gold);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.prose a:hover {
  text-decoration-color: var(--gold);
}

/* ---------- 404 ---------- */
.notfound {
  padding-block: clamp(96px, 14vw, 180px);
}

.notfound-code {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: clamp(80px, 14vw, 140px);
  line-height: 1;
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--bg-band);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-motto {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-note {
  margin-top: 8px;
  color: var(--text-muted);
}

.footer-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  color: var(--text-soft);
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

.beian a {
  color: var(--text-faint);
  transition: color 0.2s var(--ease);
}

.beian a:hover {
  color: var(--text-muted);
}

/* ---------- Language suggestion ---------- */
.lang-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 40px);
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--banner-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: banner-in 0.4s var(--ease);
}

.lang-banner[hidden] {
  display: none;
}

.lang-banner-text {
  color: var(--text-muted);
}

.lang-banner .btn {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
}

.lang-banner-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lang-banner-close:hover {
  color: var(--text);
  background: var(--hover-bg);
}

@media (max-width: 560px) {
  .lang-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    border-radius: var(--radius);
    flex-wrap: wrap;
  }

  .lang-banner-text {
    flex: 1 1 100%;
  }
}

@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .name-orbit {
    animation: none;
  }

  .lang-banner {
    animation: none;
  }
}
