@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

:root{
  --ink:#0E0E10;
  --ink-soft:#15151A;
  --gold:#FFC93C;
  --gold-deep:#C99A22;
  --paper:#E9E9EF;
  --line:rgba(233,233,239,.15);
  --line-hard:rgba(233,233,239,.3);
  --sans:'Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --display:'Space Grotesk','Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --mono:'JetBrains Mono','SFMono-Regular','Consolas',monospace;
  --pad:clamp(1rem,4vw,2.75rem);
  --max:1180px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  padding-top:66px;
  box-shadow:none;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{font-family:var(--display);font-weight:700;line-height:1.22;letter-spacing:-.01em}

a{color:var(--gold)}

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

.skip{
  position:absolute;
  left:.9rem;
  top:.6rem;
  z-index:200;
  transform:translateY(-220%);
  background:var(--gold);
  color:var(--ink);
  font-weight:700;
  font-size:.95rem;
  padding:.7rem 1.1rem;
  text-decoration:none;
  border-radius:4px;
  transition:transform .15s ease;
}
.skip:focus{transform:none}

/* ---------- 顶部导航 ---------- */
.masthead{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:.2rem;
  padding:.45rem var(--pad);
  background:var(--ink);
  border-bottom:1px solid var(--line);
}

.mast-nav{
  display:flex;
  gap:.1rem;
  min-width:0;
  scrollbar-width:none;
}
.mast-nav::-webkit-scrollbar{display:none}
.mast-nav--a{justify-self:end;justify-content:flex-end}
.mast-nav--b{justify-self:start;justify-content:flex-start;margin-right:5rem}

.mast-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .52rem;
  font-size:.92rem;
  font-weight:500;
  color:rgba(233,233,239,.8);
  text-decoration:none;
  white-space:nowrap;
  border-radius:4px;
  transition:color .16s ease,background .16s ease;
}
.mast-link:hover{color:var(--ink);background:var(--gold)}

.mast-brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .9rem;
  font-family:var(--display);
  font-size:1.25rem;
  font-weight:700;
  color:var(--paper);
  text-decoration:none;
  white-space:nowrap;
}
.mast-brand:hover{color:var(--gold)}

.mast-contact{
  position:absolute;
  right:var(--pad);
  top:50%;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 1.05rem;
  border:1.5px solid var(--gold);
  border-radius:999px;
  color:var(--gold);
  font-size:.9rem;
  font-weight:600;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}
.mast-contact:hover{background:var(--gold);color:var(--ink)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  padding:clamp(2rem,7vw,4rem) var(--pad) clamp(3rem,8vw,5rem);
  border-bottom:1px solid var(--line);
}

.hero::before{
  content:"";
  position:absolute;
  left:-5vw;
  top:15%;
  width:clamp(110px,17vw,230px);
  height:clamp(110px,17vw,230px);
  background:var(--gold);
  border-radius:28px;
  transform:rotate(9deg);
  opacity:.92;
}
.hero::after{
  content:"";
  position:absolute;
  right:-6vw;
  bottom:12%;
  width:clamp(120px,20vw,280px);
  height:clamp(120px,20vw,280px);
  border:2px solid var(--gold);
  border-radius:50%;
  opacity:.55;
}

.hero-title{
  position:relative;
  z-index:1;
  margin:0 0 1.1rem;
  max-width:17ch;
  font-size:clamp(2.05rem,7vw,5rem);
  line-height:1.06;
  letter-spacing:-.025em;
}

.hero-lede{
  position:relative;
  z-index:1;
  margin:0 0 2rem;
  max-width:44ch;
  font-size:clamp(1rem,1.7vw,1.1rem);
  line-height:1.8;
  color:rgba(233,233,239,.74);
}

.hero-chips{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.55rem;
  margin:0;
  padding:0;
  list-style:none;
}
.hero-chips a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.45rem 1.05rem;
  border:1.5px solid var(--gold);
  border-radius:999px;
  color:var(--gold);
  font-size:.94rem;
  font-weight:600;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}
.hero-chips a:hover{background:var(--gold);color:var(--ink)}

.hero-badge{
  position:absolute;
  right:var(--pad);
  bottom:2rem;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:94px;
  height:94px;
  padding:.6rem;
  border:1.5px solid var(--gold);
  border-radius:50%;
  color:var(--gold);
  font-family:var(--display);
  font-size:.8rem;
  font-weight:600;
  line-height:1.35;
  letter-spacing:.1em;
  text-align:center;
}

/* ---------- 主体骨架 ---------- */
.wrap{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.6rem;
  padding:clamp(2rem,5vw,4rem) 0;
}

/* ---------- 侧栏 ---------- */
.side{min-width:0}

.side-title{
  margin:0 0 .85rem;
  font-family:var(--display);
  font-size:.84rem;
  font-weight:600;
  letter-spacing:.24em;
  color:var(--gold);
}
.side-title > span{
  display:inline-block;
  padding-bottom:.3rem;
  border-bottom:2px solid var(--gold);
}

.side-list{
  display:flex;
  gap:.45rem;
  margin:0;
  padding:0 0 .5rem;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}
.side-list::-webkit-scrollbar{display:none}
.side-list li{flex:0 0 auto}

.side-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.4rem .85rem;
  border:1px solid var(--line);
  border-radius:4px;
  color:rgba(233,233,239,.78);
  font-size:.95rem;
  text-decoration:none;
  white-space:nowrap;
  transition:color .16s ease,border-color .16s ease,background .16s ease;
}
.side-list a:hover{
  color:var(--gold);
  border-color:var(--gold);
  background:var(--ink-soft);
}

/* ---------- 正文 ---------- */
.prose{
  min-width:0;
  counter-reset:sec;
  overflow-wrap:break-word;
}

.prose > section{
  counter-increment:sec;
  margin-top:clamp(2rem,5vw,3.2rem);
  padding-top:clamp(1.8rem,4vw,2.6rem);
  border-top:1px solid var(--line);
  scroll-margin-top:96px;
}
.prose > section:first-child{
  margin-top:0;
  padding-top:0;
  border-top:0;
}

.prose h2{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.65rem;
  margin:0 0 1.1rem;
  font-size:clamp(1.45rem,3.2vw,2.05rem);
}
.prose h2::before{
  content:counter(sec,decimal-leading-zero);
  flex:0 0 auto;
  font-family:var(--mono);
  font-size:.78rem;
  font-weight:500;
  letter-spacing:.12em;
  color:var(--gold);
}
.prose h2 > span{
  border-bottom:3px solid var(--gold);
  padding-bottom:.1em;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}

.prose h3{
  margin:1.7rem 0 .6rem;
  font-size:1.2rem;
  color:var(--gold);
}
.prose h3 > span{border-bottom:2px solid var(--gold-deep);padding-bottom:.08em}

.prose p{margin:0 0 1.1rem}
.prose p:last-child{margin-bottom:0}

.prose a{
  color:var(--gold);
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}
.prose a:hover{color:var(--paper)}

.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.25rem}
.prose li{margin:.35rem 0}
.prose li::marker{color:var(--gold)}

.prose strong{color:#FFFFFF}

.prose blockquote{
  margin:1.5rem 0;
  padding:.15rem 0 .15rem 1.1rem;
  border-left:4px solid var(--gold);
  color:rgba(233,233,239,.85);
}

.prose img{
  display:block;
  max-width:100%;
  height:auto;
  margin:1.3rem 0;
  border-radius:4px;
}

.prose table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:1.2rem 0;
  font-size:.95rem;
}
.prose th,.prose td{
  border:1px solid var(--line);
  padding:.6rem .75rem;
  text-align:left;
}
.prose th{background:var(--ink-soft);color:var(--gold);font-weight:600}

.prose hr{
  border:0;
  border-top:1px solid var(--line);
  margin:2rem 0;
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:clamp(2.5rem,7vw,5rem);
  border-top:1px solid var(--line);
}

.foot-cta{
  display:grid;
  justify-items:center;
  gap:1.2rem;
  padding:clamp(2.2rem,7vw,4.2rem) var(--pad);
  background:var(--gold);
  color:var(--ink);
  text-align:center;
}
.cta-title{
  margin:0;
  font-size:clamp(1.8rem,6vw,3.4rem);
  letter-spacing:-.025em;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 1.7rem;
  border:2px solid var(--ink);
  border-radius:4px;
  color:var(--ink);
  font-weight:700;
  font-size:1rem;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}
.cta-btn:hover{background:var(--ink);color:var(--gold)}

.foot-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.7rem;
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(1.9rem,5vw,3rem) var(--pad);
}

.foot address{
  font-style:normal;
  display:grid;
  justify-items:start;
  gap:.35rem;
}
.addr-name{
  font-family:var(--display);
  font-size:1.05rem;
  font-weight:700;
  color:var(--paper);
}
.foot address a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:.94rem;
  color:var(--gold);
  text-decoration:none;
}
.foot address a:hover{text-decoration:underline}

.foot-nav dl{margin:0;display:grid;gap:.1rem}
.foot-nav dt,.foot-nav dd{margin:0}
.foot-nav a,
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:.95rem;
  color:rgba(233,233,239,.8);
  text-decoration:none;
  transition:color .16s ease;
}
.foot-nav a:hover,
.foot-links a:hover{color:var(--gold)}

.foot-links{margin:0;padding:0;list-style:none;display:grid;gap:.1rem}

.foot-legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.5rem 1.4rem;
  max-width:var(--max);
  margin:0 auto;
  padding:1.1rem var(--pad) 2rem;
  border-top:1px solid var(--line);
  font-size:.88rem;
  color:rgba(233,233,239,.55);
}
.foot-legal a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:inherit;
  text-decoration:none;
}
.foot-legal a:hover{color:var(--gold)}

/* ---------- 进场动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .42s ease,transform .42s ease;
}
.reveal.is-in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .mast-link,.mast-contact,.hero-chips a,.cta-btn,.side-list a,.foot a{transition:none}
}

/* ---------- 平板以下 ---------- */
@media (max-width:880px){
  body{padding-top:0}

  .masthead{
    position:static;
    grid-template-columns:1fr auto;
    grid-template-areas:
      "brand contact"
      "nav1 nav1"
      "nav2 nav2";
    gap:.3rem .5rem;
    padding:.45rem .85rem .5rem;
  }
  .mast-brand{grid-area:brand;justify-self:start;padding:0;font-size:1.1rem}
  .mast-contact{
    position:static;
    transform:none;
    grid-area:contact;
    justify-self:end;
  }
  .mast-nav{overflow-x:auto}
  .mast-nav--a{grid-area:nav1;justify-self:stretch;justify-content:flex-start;margin:0}
  .mast-nav--b{grid-area:nav2;justify-self:stretch;justify-content:flex-start;margin:0}

  .hero{min-height:calc(100vh - 148px);padding-top:clamp(1.6rem,7vw,2.6rem)}
  .hero::before{left:-14vw;top:8%;opacity:.7}
  .hero::after{right:-18vw;bottom:16%}
  .hero-badge{width:78px;height:78px;font-size:.72rem;bottom:1.3rem}

  .prose > section{scroll-margin-top:16px}

  .foot-grid{gap:1.4rem}
}

/* ---------- 桌面 ---------- */
@media (min-width:900px){
  .layout{
    grid-template-columns:236px minmax(0,1fr);
    gap:clamp(1.8rem,4vw,3.4rem);
    align-items:start;
  }
  .side{position:sticky;top:92px}
  .side-list{
    flex-direction:column;
    gap:0;
    overflow:visible;
    padding-bottom:0;
    border-top:1px solid var(--line);
  }
  .side-list a{
    width:100%;
    padding:.55rem .1rem;
    border:0;
    border-bottom:1px solid var(--line);
    border-radius:0;
    font-size:.97rem;
  }
  .side-list a:hover{background:transparent;border-bottom-color:var(--gold)}

  .foot-grid{grid-template-columns:1.1fr 1fr 1fr;gap:2rem}
}

@media (min-width:1100px){
  .hero-title{max-width:15ch}
}

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