@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root{
  --ink:#1B2430;
  --deep:#131A23;
  --amber:#D9A441;
  --cream:#F2E8DC;
  --cream-dim:rgba(242,232,220,.74);
  --line:rgba(242,232,220,.15);
  --radius:10px;
  --sans:'Cabin','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --display:'Amatic SC','Cabin','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  color:var(--cream);
  background-color:var(--ink);
  background-image:radial-gradient(120% 90% at 50% -10%, #24313F 0%, var(--ink) 52%, var(--deep) 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}

a{color:var(--amber);text-decoration:none}
a:focus-visible{outline:2px solid var(--amber);outline-offset:3px;border-radius:3px}

menu{margin:0;padding:0;list-style:none}

/* ---------- 背景光斑层 ---------- */
.sky{
  position:fixed;
  inset:-14% 0 0;
  z-index:0;
  pointer-events:none;
  will-change:transform;
}
.sky b{
  position:absolute;
  border-radius:50%;
  filter:blur(40px);
  opacity:.5;
}
.sky b:nth-child(1){
  width:22rem;height:22rem;left:-7rem;top:6%;
  background:rgba(217,164,65,.32);
  animation:drift 22s ease-in-out infinite;
}
.sky b:nth-child(2){
  width:15rem;height:15rem;right:3%;top:36%;
  background:rgba(242,232,220,.14);
  animation:drift 28s ease-in-out infinite reverse;
}
.sky b:nth-child(3){
  width:26rem;height:26rem;left:28%;top:62%;
  background:rgba(217,164,65,.16);
  animation:drift 34s ease-in-out infinite;
}
.sky b:nth-child(4){
  width:12rem;height:12rem;right:18%;bottom:4%;
  background:rgba(242,232,220,.10);
}
@keyframes drift{
  50%{transform:translate3d(0,-3rem,0) scale(1.14)}
}

/* ---------- 顶部两行：品牌行 + 菜单行 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(19,26,35,.88);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.brandbar{
  max-width:1180px;
  margin:0 auto;
  padding:.45rem 1.25rem;
  display:flex;
  align-items:center;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:44px;
  color:var(--cream);
}
.brand-mark{
  color:var(--amber);
  font-size:1.05rem;
  line-height:1;
  transition:transform .35s ease;
}
.brand:hover .brand-mark{transform:rotate(90deg)}
.brand-name{
  font-family:var(--display);
  font-size:1.6rem;
  letter-spacing:.09em;
}

.menu-wrap{border-top:1px solid var(--line)}
.menu-wrap>summary{
  list-style:none;
  cursor:pointer;
  max-width:1180px;
  margin:0 auto;
  padding:.2rem 1.25rem;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:.55rem;
  color:var(--cream-dim);
  letter-spacing:.22em;
  font-size:.95rem;
}
.menu-wrap>summary::-webkit-details-marker{display:none}
.menu-wrap>summary::after{
  content:"";
  width:.5rem;height:.5rem;
  margin-left:.2rem;
  border-right:2px solid var(--amber);
  border-bottom:2px solid var(--amber);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .25s ease;
}
.menu-wrap[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.menu-ico{color:var(--amber);font-size:.95rem}

.menu-list{
  max-width:1180px;
  margin:0 auto;
  padding:.15rem 1.25rem .8rem;
  display:flex;
  flex-wrap:wrap;
  gap:0 .4rem;
  border-top:1px dashed var(--line);
  animation:unroll .32s ease both;
}
@keyframes unroll{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:none}
}
.menu-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.3rem .7rem;
  font-size:.95rem;
  color:var(--cream-dim);
  border-bottom:2px solid transparent;
  border-radius:999px;
}
.menu-list a:hover,.menu-list a:focus-visible{
  color:var(--cream);
  border-bottom-color:var(--amber);
}

/* ---------- 英雄区：四层视差 + 斜切底边 ---------- */
.hero{
  position:relative;
  z-index:1;
  min-height:calc(100svh - 6.6rem);
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:3rem 1.5rem 4.5rem;
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 91%,0 100%);
}
.hero-media{
  position:absolute;
  inset:-12% 0 0;
  z-index:0;
  perspective:1px;
  transform-style:preserve-3d;
}
.layer{
  position:absolute;
  inset:0;
  will-change:transform;
}
.l-pic{inset:-8% 0 -10%}
.hero-pic{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.52;
  filter:grayscale(.18) contrast(1.06);
}
.l-sky{
  background:
    radial-gradient(58% 46% at 78% 20%, rgba(217,164,65,.34), transparent 70%),
    radial-gradient(52% 58% at 18% 72%, rgba(242,232,220,.10), transparent 74%);
}
.l-veil{
  background:linear-gradient(180deg, rgba(27,36,48,.82) 0%, rgba(20,27,36,.28) 44%, rgba(19,26,35,.95) 100%);
}
.l-ribbon{
  background:repeating-linear-gradient(116deg, rgba(217,164,65,.11) 0 2px, transparent 2px 44px);
  opacity:.8;
  mask-image:linear-gradient(180deg,#000,transparent 88%);
  -webkit-mask-image:linear-gradient(180deg,#000,transparent 88%);
}

.hero-copy{
  position:relative;
  z-index:3;
  margin-left:auto;
  max-width:40rem;
  text-align:right;
}
.hero-copy h1{
  margin:0 0 .7rem;
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(2.4rem,10vw,5.6rem);
  line-height:1.04;
  letter-spacing:.045em;
  color:var(--cream);
  text-shadow:0 6px 34px rgba(0,0,0,.6);
  overflow-wrap:break-word;
}
.hero-desc{
  margin:0 0 0 auto;
  max-width:30rem;
  font-size:1rem;
  color:var(--cream-dim);
}

/* ---------- 主区：正文 + 右侧栏 ---------- */
.spread{
  position:relative;
  z-index:2;
  max-width:1180px;
  margin:0 auto;
  padding:4rem 1.25rem 5rem;
  display:grid;
  grid-template-columns:minmax(0,1fr) 17rem;
  gap:3rem;
  align-items:start;
}

.story{min-width:0}

.story>div{
  position:relative;
  margin:0 0 2.25rem;
  padding:1.75rem 1.5rem 2rem;
  border:1px solid var(--line);
  border-bottom:3px solid var(--amber);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(242,232,220,.062), rgba(242,232,220,.018));
  scroll-margin-top:8rem;
}
.story>div::after{
  content:"";
  position:absolute;
  left:1.5rem;
  top:-1px;
  width:3.4rem;
  height:3px;
  background:var(--amber);
  border-radius:0 0 3px 3px;
}

.story h2{
  margin:.1rem 0 1rem;
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(1.55rem,4.4vw,2.15rem);
  line-height:1.28;
  letter-spacing:.035em;
  color:var(--cream);
}
.story h2>span{
  position:relative;
  display:inline-block;
  padding-bottom:.35rem;
}
.story h2>span::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:2px;
  background:linear-gradient(90deg,var(--amber),rgba(217,164,65,0));
}

.story h3{
  margin:1.5rem 0 .6rem;
  font-family:var(--display);
  font-size:1.4rem;
  letter-spacing:.04em;
  color:var(--cream);
}
.story h3>span{
  display:inline-block;
  border-bottom:1px dashed var(--amber);
  padding-bottom:.15rem;
}

.story p{margin:0 0 1.05rem;color:var(--cream-dim)}
.story p:last-child{margin-bottom:0}
.story strong{color:var(--cream)}
.story a{border-bottom:1px solid var(--amber)}
.story a:hover{color:var(--cream)}
.story ul,.story ol{margin:0 0 1.1rem;padding-left:1.25rem;color:var(--cream-dim)}
.story li{margin-bottom:.45rem}
.story li::marker{color:var(--amber)}
.story blockquote{
  margin:1.2rem 0;
  padding:.9rem 1.1rem;
  border-left:3px solid var(--amber);
  border-radius:0 var(--radius) var(--radius) 0;
  background:rgba(217,164,65,.08);
  color:var(--cream);
}
.story blockquote p:last-child{margin-bottom:0}
.story code,.story pre{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.92rem;
}
.story pre{
  overflow:auto;
  padding:1rem;
  border-radius:var(--radius);
  background:rgba(19,26,35,.8);
  border:1px solid var(--line);
}

@media (min-width:861px){
  .story>div:nth-child(3n+1){margin-right:2rem}
  .story>div:nth-child(3n+2){margin-left:1.15rem;margin-right:.9rem}
  .story>div:nth-child(3n){margin-left:2rem}
}

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:7.2rem;
  display:grid;
  gap:1.2rem;
  align-self:start;
}
.rail-block{
  padding:1.1rem 1rem 1.2rem;
  border:1px solid var(--line);
  border-bottom:3px solid var(--amber);
  border-radius:var(--radius);
  background:rgba(19,26,35,.72);
}
.rail-block h2{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0 0 .7rem;
  font-family:var(--sans);
  font-weight:600;
  font-size:1rem;
  letter-spacing:.18em;
  color:var(--amber);
}
.rail-block h2>span{
  display:inline-block;
  padding-left:.55rem;
  border-left:2px solid var(--amber);
}
.rail-menu li{border-bottom:1px solid rgba(242,232,220,.09)}
.rail-menu li:last-child{border-bottom:0}
.rail-menu a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.25rem 0;
  font-size:1rem;
  color:var(--cream-dim);
}
.rail-menu a:hover{color:var(--cream)}
.rail-top{margin:0}
.rail-top a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  font-size:1rem;
  color:var(--cream);
  border-bottom:1px solid var(--amber);
}

/* ---------- 页脚：三栏 + 超大品牌字 ---------- */
.foot{
  position:relative;
  z-index:2;
  margin-top:1.5rem;
  padding:3rem max(1.25rem, calc((100% - 1180px) / 2)) 2rem;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;
  gap:1.4rem 2rem;
  align-items:end;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(19,26,35,.45), rgba(19,26,35,.96));
}
.foot-brand{
  margin:0;
  font-family:var(--display);
  font-size:clamp(2.2rem,9vw,4.5rem);
  line-height:1;
  letter-spacing:.045em;
  color:var(--cream);
}
.foot-links{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:.1rem 1.1rem;
  font-size:.95rem;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--cream-dim);
  border-bottom:1px solid transparent;
}
.foot-links a:hover{color:var(--amber);border-bottom-color:var(--amber)}
.foot-copy{
  color:rgba(242,232,220,.6);
  font-size:.95rem;
  letter-spacing:.06em;
}

/* ---------- 滚动入场（Stagger + Reveal） ---------- */
@media (prefers-reduced-motion:no-preference){
  html.js .story>div,
  html.js .rail-block{
    opacity:0;
    transform:translateY(26px);
    transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  }
  html.js .story>div.in,
  html.js .rail-block.in{opacity:1;transform:none}
  html.js .story>div:nth-child(1){transition-delay:.02s}
  html.js .story>div:nth-child(2){transition-delay:.07s}
  html.js .story>div:nth-child(3){transition-delay:.12s}
  html.js .story>div:nth-child(4){transition-delay:.17s}
  html.js .story>div:nth-child(5){transition-delay:.22s}
  html.js .story>div:nth-child(6){transition-delay:.27s}
  html.js .story>div:nth-child(7){transition-delay:.32s}
  html.js .rail-block:nth-child(2){transition-delay:.1s}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .sky b{animation:none}
  .layer{transform:none !important}
}

/* ---------- 窄屏 ---------- */
@media (max-width:860px){
  body{font-size:16px}
  .spread{
    grid-template-columns:1fr;
    gap:2rem;
    padding:2.5rem 1.1rem 3.5rem;
  }
  .rail{position:static;grid-template-columns:1fr 1fr}
  .story>div{padding:1.4rem 1.1rem 1.6rem;scroll-margin-top:9rem}
  .story>div::after{left:1.1rem}
  .hero{padding:2.5rem 1.1rem 3.5rem;clip-path:polygon(0 0,100% 0,100% 95%,0 100%)}
  .hero-copy{max-width:100%}
  .hero-desc{font-size:1rem}
  .foot{
    grid-template-columns:1fr;
    gap:1rem;
    padding:2.5rem 1.2rem 1.8rem;
  }
  .foot-links{gap:.1rem .9rem}
  .foot-copy{order:3}
}

@media (max-width:520px){
  .rail{grid-template-columns:1fr}
  .menu-list a{font-size:1rem}
}

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