/* ================= 1. Reset ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ================= 2. 变量 ================= */
:root {
  --ink: #0A0A0F;
  --velvet: #171226;
  --indigo: #221A38;
  --gold: #E8C070;
  --gold-hi: #F7E2AE;
  --gold-deep: #8C6B25;
  --cyan: #34E3D0;
  --magenta: #FF4D8D;
  --wine: #5C1230;
  --paper: #F3F0E8;
  --haze: #A8A2BC;

  --line-gold: rgba(232, 192, 112, .30);
  --line-soft: rgba(243, 240, 232, .10);
  --backdrop-gilt: linear-gradient(120deg, #F7E2AE 0%, #E8C070 32%, #8C6B25 100%);

  --header-h: 76px;
  --wrap-max: 1200px;

  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "EB Garamond", "Songti SC", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-lift: 0 26px 54px -30px rgba(0, 0, 0, .95);
}
@media (max-width: 900px) { :root { --header-h: 64px; } }

/* ================= 3. 中文排版与基色 ================= */
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 620px at 84% -8%, rgba(232, 192, 112, .13), transparent 62%),
    radial-gradient(720px 540px at 0% 28%, rgba(52, 227, 208, .07), transparent 66%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-cn);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-weight: 900; line-height: 1.3; letter-spacing: .08em; }
h1 { font-size: clamp(30px, 5.4vw, 46px); letter-spacing: .12em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .1em; }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { max-width: 68ch; }
strong { color: var(--gold-hi); font-weight: 800; }
::selection { background: rgba(232, 192, 112, .28); color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 2px; }
.num { font-family: var(--font-num); font-weight: 300; font-size: 1.5em; line-height: 1; color: var(--gold); letter-spacing: .02em; }

/* ================= 4. 布局工具 ================= */
.wrap { width: min(var(--wrap-max), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(var(--wrap-max), 100% - 34px); } }

.page-main { padding-top: var(--header-h); min-height: 60vh; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 32px); }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.rule-gold { height: 1px; border: 0; background: linear-gradient(90deg, rgba(232,192,112,0), var(--gold), rgba(232,192,112,0)); opacity: .55; }

/* ================= 5. 跳过链接 ================= */
.skip-link {
  position: absolute; top: 0; left: 14px; z-index: 200;
  display: block; padding: 11px 20px;
  background: var(--gold); color: #12100A;
  font-size: 14px; font-weight: 800; letter-spacing: .1em;
  transform: translateY(-130%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ================= 6. 头部 ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(10, 10, 15, .88) 0%, rgba(10, 10, 15, .42) 58%, rgba(10, 10, 15, 0) 100%);
  transition: background-color .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.site-header.is-solid {
  background: rgba(23, 18, 38, .94);
  border-bottom-color: var(--line-gold);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, .98);
}
@supports (backdrop-filter: blur(2px)) {
  .site-header.is-solid { backdrop-filter: blur(16px) saturate(1.25); }
}
.site-header__bar {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark {
  width: 32px; height: 32px; flex: none;
  background: var(--backdrop-gilt);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.brand__name { font-size: 17px; font-weight: 900; letter-spacing: .16em; color: var(--paper); }
.brand__tagline { font-size: 10.5px; letter-spacing: .26em; color: var(--haze); }

/* 导航 */
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__link {
  position: relative; display: block;
  padding: 10px 14px 12px;
  font-size: 14px; letter-spacing: .08em;
  color: rgba(243, 240, 232, .76);
  transition: color .2s var(--ease);
}
.site-nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: linear-gradient(90deg, var(--gold-hi), rgba(232, 192, 112, 0));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .28s var(--ease);
}
.site-nav__link:hover { color: var(--gold-hi); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--gold); }
.site-nav__link[aria-current="page"]::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--gold), rgba(232, 192, 112, .08));
}
.site-nav__foot { display: none; }

/* 头部工具链接 */
.header-tools { display: flex; align-items: center; gap: 16px; margin-left: 22px; }
.tool-link {
  font-size: 12.5px; letter-spacing: .16em;
  color: var(--haze);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tool-link:hover { color: var(--gold-hi); border-bottom-color: var(--line-gold); }
.tool-link--gold {
  color: var(--gold);
  padding: 8px 15px;
  border: 1px solid var(--line-gold);
  background: rgba(232, 192, 112, .06);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.tool-link--gold:hover { background: rgba(232, 192, 112, .16); color: var(--gold-hi); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 42px; height: 42px; margin-left: 12px;
  border: 1px solid var(--line-gold);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.nav-toggle__bar { width: 18px; height: 1.5px; background: var(--gold); transition: transform .24s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ================= 7. 移动端头部与抽屉 ================= */
@media (max-width: 900px) {
  .header-tools { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h); right: 0;
    width: min(340px, 86vw);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    margin-left: 0;
    padding: 24px 22px 54px;
    overflow-y: auto;
    background: var(--velvet);
    border-left: 1px solid var(--line-gold);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .9);
    transform: translateX(104%);
    transition: transform .34s var(--ease);
    z-index: 115;
  }
  .site-nav[data-open="true"] { transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    padding: 16px 4px;
    font-size: 17px; letter-spacing: .1em;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"]::before { left: -12px; top: 26px; }
  .site-nav__foot {
    display: block; margin-top: 28px;
    font-size: 12px; letter-spacing: .18em; color: var(--haze);
  }
}

/* ================= 8. 通用组件 ================= */
/* 小标签 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .3em;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }

/* 区段头 */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-title { font-weight: 900; letter-spacing: .1em; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  font-size: 14px; font-weight: 800; letter-spacing: .12em;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  background: rgba(232, 192, 112, .06);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { background: var(--gold); color: #12100A; border-color: var(--gold-hi); transform: translateY(-2px); }

/* 切角面板 */
.panel-cut {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--velvet);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.panel-cut--gilt {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--indigo), var(--indigo)), var(--backdrop-gilt);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.panel-cut:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: var(--shadow-lift); }

/* 图片占位容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--indigo);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.media-frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* 竖排注脚 */
.note-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .3em;
  font-size: 12px;
  line-height: 1;
  color: var(--haze);
}

/* 面包屑 */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 10px;
  font-size: 12.5px; letter-spacing: .12em;
  color: var(--haze);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: rgba(232, 192, 112, .45); }
.breadcrumb a { color: var(--haze); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--gold); }

/* ================= 9. 页脚 ================= */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 1px;
  background: linear-gradient(180deg, var(--ink) 0%, #120E1E 42%, var(--velvet) 100%);
  border-top: 1px solid var(--line-gold);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; top: -1px; left: -8%; width: 62%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  transform: rotate(-1.4deg);
  transform-origin: left center;
}
.site-footer__glow {
  position: absolute; left: 50%; bottom: -260px;
  width: 900px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 192, 112, .16), transparent 100%);
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 2.4fr 1.5fr;
  gap: 44px 40px;
  padding: clamp(46px, 6vw, 84px) 0 40px;
}

.footer-brand__mark {
  display: block;
  width: 38px; height: 38px;
  margin-bottom: 16px;
  background: var(--backdrop-gilt);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.footer-brand__name { font-size: 20px; font-weight: 900; letter-spacing: .18em; color: var(--paper); }
.footer-brand__line { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--haze); max-width: 30ch; }
.footer-cta {
  display: inline-flex; align-items: center;
  margin-top: 22px;
  padding: 12px 24px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em;
  color: #12100A;
  background: var(--backdrop-gilt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: filter .22s var(--ease), transform .22s var(--ease);
}
.footer-cta:hover { filter: brightness(1.12); transform: translateY(-2px); }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 30px 24px; }
.footer-col__title {
  font-size: 12px; font-weight: 800; letter-spacing: .3em;
  color: var(--gold);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col__list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.footer-col__link {
  display: inline-block;
  font-size: 14px; letter-spacing: .06em;
  color: rgba(243, 240, 232, .7);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-col__link:hover { color: var(--gold-hi); transform: translateX(4px); }

.footer-contact__list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.footer-contact__link {
  font-family: var(--font-num);
  font-size: 16px; letter-spacing: .04em;
  color: var(--gold-hi);
  word-break: break-all;
  transition: color .2s var(--ease);
}
.footer-contact__link:hover { color: var(--gold); }
.footer-contact__addr { font-size: 13.5px; line-height: 1.8; color: var(--haze); }
.footer-contact__note { margin-top: 14px; font-size: 12px; line-height: 1.8; color: rgba(168, 162, 188, .8); }

.site-footer__base {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; letter-spacing: .12em;
  color: var(--haze);
}
.site-footer__copy { max-width: none; }
.site-footer__icp { max-width: none; }

/* ================= 10. 环形回到顶部 ================= */
.back-ring {
  position: fixed; right: 22px; bottom: 26px; z-index: 108;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--gold);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.back-ring.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-ring svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.back-ring__track { fill: rgba(23, 18, 38, .88); stroke: rgba(232, 192, 112, .2); stroke-width: 2; }
.back-ring__fill {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  transition: stroke-dashoffset .12s linear;
}
.back-ring__arrow { position: relative; font-size: 15px; line-height: 1; }

/* ================= 11. 移动端底栏 ================= */
.dock { display: none; }
@media (max-width: 640px) {
  .dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    background: rgba(23, 18, 38, .97);
    border-top: 1px solid var(--line-gold);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock__item {
    padding: 12px 4px 13px;
    font-size: 12px; letter-spacing: .06em;
    text-align: center;
    color: var(--haze);
    border-right: 1px solid var(--line-soft);
    transition: color .2s var(--ease), background-color .2s var(--ease);
  }
  .dock__item:last-child { border-right: 0; }
  .dock__item[aria-current="page"] { color: var(--gold); background: rgba(232, 192, 112, .08); }
  .back-ring { bottom: 76px; right: 16px; }
  body { padding-bottom: 62px; }
}

/* ================= 12. 滚动显现 ================= */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(14px, 12px, 0);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ================= 13. 减少动效 ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .panel-cut:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* ================= 14. 平板与小型屏 ================= */
@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
}
