@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --panel: #121212;
  --midnight: #0b1120;
  --gold: #d9b878;
  --text: #e4e4e4;
  --dim: #969696;
  --line: #232323;
  --serif: 'Lora', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Raleway', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: #000;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(120% 55% at 100% 0%, var(--midnight) 0%, rgba(0, 0, 0, 0) 62%),
    #000;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 顶栏 ---------- */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 76px;
  padding: 0 clamp(16px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .62));
  border-bottom: 1px solid rgba(217, 184, 120, .16);
  backdrop-filter: blur(10px);
}

.bar.scrolled { background: #050505; border-bottom-color: rgba(217, 184, 120, .3); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .14em;
  color: #fff;
}

.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand .dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(217, 184, 120, .8);
}

.topnav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav li { position: relative; }

.topnav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--dim);
  transition: color .25s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.topnav a:hover,
.topnav a:focus-visible { color: #fff; }
.topnav a:hover::after,
.topnav a:focus-visible::after { transform: scaleX(1); }

.topnav .sub {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 178px;
  padding: 8px 0;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-top: 1px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.topnav li.group:hover .sub,
.topnav li.group:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.topnav .sub a { min-height: 42px; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #2a2a2a;
  font-size: 15px;
  letter-spacing: .12em;
  color: #e2e2e2;
  transition: border-color .25s ease, color .25s ease;
}

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

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  background: none;
  border: 1px solid #2a2a2a;
  color: #e2e2e2;
  font-size: 14px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 132px clamp(18px, 5vw, 68px) clamp(58px, 10vh, 118px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -3; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(.88);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(202deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .3) 46%, rgba(0, 0, 0, .96) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 74% 52%, #000 5%, rgba(0, 0, 0, 0) 76%);
  mask-image: radial-gradient(circle at 74% 52%, #000 5%, rgba(0, 0, 0, 0) 76%);
}

.hero-inner { margin-left: auto; max-width: 840px; text-align: right; }

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6.2vw, 4.2rem);
  line-height: 1.16;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 0 26px rgba(217, 184, 120, .24);
}

.hero h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 2px;
  margin: 28px 0 0 auto;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(217, 184, 120, .65);
}

/* ---------- 正文骨架 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 268px);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 40px);
}

.doc { min-width: 0; }

.doc h2 {
  margin: 0 0 .8em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.62rem);
  line-height: 1.4;
  letter-spacing: .02em;
  color: #fff;
}

.doc h3 {
  margin: 1.7em 0 .6em;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--gold);
}

.doc p { margin: 0 0 1.15em; color: #cfcfcf; }
.doc ul, .doc ol { margin: 0 0 1.2em; padding-left: 1.25em; color: #cfcfcf; }
.doc li { margin: .38em 0; }
.doc strong { color: #fff; }

.doc blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 20px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  color: #dedede;
}

.doc figure { margin: 1.7em 0; }
.doc img { margin: 0 auto; border: 1px solid #1a1a1a; }
.doc a { color: var(--gold); border-bottom: 1px solid rgba(217, 184, 120, .35); }
.doc a:hover { border-bottom-color: var(--gold); }

.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.doc th { color: #fff; font-weight: 500; }

.doc-head {
  padding-bottom: 26px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.doc-head h2 { margin: 0 0 10px; letter-spacing: .08em; }

.subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--dim);
}

.doc div {
  position: relative;
  padding: clamp(28px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.doc div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s ease;
}

.doc div:hover::after { transform: scaleX(1); }

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.rail-title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--gold);
}

.rail-list {
  counter-reset: rail;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.rail-list li { counter-increment: rail; }

.rail-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 42px;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .1em;
  color: #4c4c4c;
}

.rail-list a:hover,
.rail-list a:focus-visible { color: #fff; border-bottom-color: var(--gold); }

.rail-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #262626;
  font-size: 14px;
  letter-spacing: .16em;
  color: #dcdcdc;
  transition: border-color .25s ease, color .25s ease;
}

.rail-contact:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 40px) 46px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: #6f6f6f;
}

.foot address {
  font-style: normal;
  margin-right: auto;
  letter-spacing: .1em;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: #8a8a8a;
  transition: color .25s ease;
}

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

/* ---------- 滚动显影 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

.rv.in { opacity: 1; transform: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 880px) {
  .bar {
    height: 64px;
    padding: 0 16px;
    gap: 10px;
  }

  .brand { font-size: 17px; letter-spacing: .1em; }

  .menu-btn { display: inline-flex; }

  .topnav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 6px 16px 20px;
    background: #040404;
    border-bottom: 1px solid #1e1e1e;
  }

  body.menu-open .topnav { display: block; }

  .topnav ul { flex-direction: column; }

  .topnav a {
    min-height: 50px;
    font-size: 16px;
    border-bottom: 1px solid #161616;
  }

  .topnav a::after { display: none; }

  .topnav .sub {
    position: static;
    display: flex;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .contact { min-height: 42px; padding: 0 12px; font-size: 14px; }

  .hero {
    min-height: 88vh;
    min-height: 88svh;
    padding: 110px 20px 58px;
  }

  .hero-inner { margin-left: 0; text-align: left; }
  .hero h1::after { margin-left: 0; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 36px;
  }

  .rail {
    position: static;
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rail-contact { width: auto; }
  .doc div { scroll-margin-top: 78px; }
}

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

button[aria-expanded]{min-width:44px;min-height:44px}
