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

:root{
  --bg:#14131A;
  --ink:#F5F2EA;
  --accent:#FF4D2D;
  --muted:rgba(245,242,234,.62);
  --line:rgba(245,242,234,.14);
  --card:#1D1B24;
  --r:10px;
  --font:"Outfit","Rubik",system-ui,-apple-system,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}

html{
  background:var(--bg);
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.68;
  color:var(--ink);
  background-color:var(--bg);
  background-image:radial-gradient(rgba(245,242,234,.12) 1px,transparent 1px);
  background-size:22px 22px;
  background-attachment:fixed;
  overflow-x:hidden;
}

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

/* 顶栏：品牌独占一行，菜单行在下 */
.topbar{
  position:relative;
  z-index:30;
  border-bottom:1px solid var(--line);
  background:rgba(20,19,26,.9);
  backdrop-filter:blur(8px);
}

.brandline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  max-width:1180px;
  margin:0 auto;
  padding:.6rem clamp(1rem,4vw,2.4rem);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
}

.brand-logo{height:34px;width:auto}

.brand-name{
  display:inline-block;
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:.02em;
  transform:skewX(-9deg);
}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.35rem .95rem;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.92rem;
  color:var(--muted);
  transition:color .2s ease,border-color .2s ease,transform .2s ease;
}

.contact:hover,.contact:focus-visible{
  color:var(--accent);
  border-color:var(--accent);
  transform:translateY(-2px);
}

.nav{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(1rem,4vw,2.4rem) .7rem;
}

.nav ol{
  display:flex;
  gap:.4rem;
  margin:0;
  padding:0 0 .1rem;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}

.nav ol::-webkit-scrollbar{display:none}

.nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.35rem .85rem;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.94rem;
  color:var(--muted);
  white-space:nowrap;
  transition:background .22s ease,color .22s ease,transform .22s ease,border-color .22s ease;
}

.nav a:hover,.nav a:focus-visible{
  color:#14131A;
  background:var(--accent);
  border-color:var(--accent);
  transform:translateY(-2px);
}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  gap:clamp(1.5rem,4vw,3rem);
  align-items:center;
  max-width:1180px;
  min-height:100vh;
  min-height:100svh;
  margin:0 auto;
  padding:clamp(1.6rem,5vh,4rem) clamp(1rem,4vw,2.4rem) clamp(1.5rem,4vw,2.5rem);
}

.hero-copy{position:relative;z-index:2}

.hero-h1{
  margin:0;
  font-size:clamp(2.6rem,8.4vw,5.4rem);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.025em;
  text-wrap:balance;
  transform:skewX(-7deg);
  transform-origin:left bottom;
  color:var(--ink);
  background-image:linear-gradient(102deg,#F5F2EA 0%,#F5F2EA 44%,#FF4D2D 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-h1.split span{display:inline-block;animation:pop .72s cubic-bezier(.2,.85,.2,1) backwards}

@keyframes pop{
  from{opacity:0;transform:translateY(.55em) skewX(-16deg)}
  to{opacity:1;transform:translateY(0) skewX(0)}
}

.hero-lead{
  max-width:34ch;
  margin:1.15rem 0 0;
  font-size:1.05rem;
  color:var(--muted);
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  margin-top:1.5rem;
  padding:.7rem 1.5rem;
  border-radius:999px;
  background:var(--accent);
  color:#14131A;
  font-weight:600;
  letter-spacing:.02em;
  box-shadow:0 14px 30px -14px rgba(255,77,45,.95);
  transition:transform .22s ease,box-shadow .22s ease;
}

.hero-cta:hover,.hero-cta:focus-visible{
  transform:translateY(-3px) skewX(-7deg);
  box-shadow:0 20px 38px -14px rgba(255,77,45,.95);
}

.hero-fig{
  position:relative;
  margin:0;
  overflow:hidden;
  border-radius:var(--r);
  background:#221F2B;
  box-shadow:0 28px 64px -20px rgba(0,0,0,.85);
  clip-path:polygon(0 0,100% 0,100% 82%,0 100%);
  animation:rise .9s cubic-bezier(.2,.85,.2,1) both;
}

@keyframes rise{
  from{opacity:0;transform:translateY(28px) scale(.98)}
  to{opacity:1;transform:none}
}

.hero-fig img{width:100%;height:100%;aspect-ratio:4/5;object-fit:cover}

/* 正文区：侧栏在左 */
.shell{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:clamp(1.5rem,4vw,3rem);
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:clamp(2rem,6vw,3.6rem) clamp(1rem,4vw,2.4rem) clamp(2rem,6vw,4rem);
  border-top:1px solid var(--line);
}

.rail{
  position:sticky;
  top:1.25rem;
  padding:1.15rem 1.15rem 1rem;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--card);
  box-shadow:0 20px 44px -26px rgba(0,0,0,.95);
}

.rail-h{
  margin:0 0 .3rem;
  font-size:1.3rem;
  font-weight:700;
  letter-spacing:-.01em;
  transform:skewX(-8deg);
  transform-origin:left;
}

.subtitle{
  margin:0 0 .9rem;
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--accent);
}

.rail-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.35rem .1rem;
  font-size:.94rem;
  color:var(--muted);
  border-bottom:1px dashed var(--line);
  transition:color .2s ease,padding-left .2s ease;
}

.rail-list li:last-child a{border-bottom:0}

.rail-list a:hover,.rail-list a:focus-visible{color:var(--accent);padding-left:.45rem}

.to-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:.8rem;
  font-size:.9rem;
  color:var(--muted);
  transition:color .2s ease;
}

.to-top:hover,.to-top:focus-visible{color:var(--accent)}

/* 正文排版 */
.prose{min-width:0;overflow-wrap:break-word}

.prose div{
  padding-bottom:2rem;
  scroll-margin-top:2rem;
}

.prose div + div{
  margin-top:.4rem;
  padding-top:2rem;
  border-top:1px solid var(--line);
}

.prose h2{
  margin:0 0 .65rem;
  font-size:clamp(1.45rem,3.4vw,2.05rem);
  font-weight:700;
  line-height:1.24;
  letter-spacing:-.012em;
  transform:skewX(-7deg);
  transform-origin:left bottom;
}

.prose h2::before{
  content:"";
  display:inline-block;
  width:.5em;
  height:.5em;
  margin-right:.45em;
  background:var(--accent);
  transform:skewX(7deg);
}

.prose h3{
  margin:1.7rem 0 .45rem;
  font-size:1.18rem;
  line-height:1.35;
  color:#FFFFFF;
}

.prose p{margin:0 0 1rem}
.prose strong{color:#FFFFFF}
.prose ul,.prose ol{margin:0 0 1rem;padding-left:1.25rem}
.prose li{margin-bottom:.4rem}

.prose a{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

.prose blockquote{
  margin:1.3rem 0;
  padding:.9rem 1.1rem;
  border-left:3px solid var(--accent);
  border-radius:0 var(--r) var(--r) 0;
  background:rgba(255,77,45,.09);
}

.prose blockquote p:last-child{margin-bottom:0}
.prose figure{margin:1.3rem 0}
.prose img{border-radius:var(--r);box-shadow:0 18px 38px -22px rgba(0,0,0,.9)}
.prose figcaption{font-size:.86rem;color:var(--muted);margin-top:.5rem}
.prose hr{margin:1.8rem 0;border:0;border-top:1px solid var(--line)}
.prose time{font-size:.9rem;color:var(--accent);letter-spacing:.02em}
.prose code{font-size:.92em;padding:.1em .35em;border-radius:4px;background:rgba(245,242,234,.1)}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1rem;
  font-size:.94rem;
}

.prose th,.prose td{
  padding:.55rem .6rem;
  border:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

.prose th{background:rgba(245,242,234,.06);color:#FFFFFF}

/* 页脚 */
.foot{
  padding:clamp(2rem,6vw,3.4rem) clamp(1rem,4vw,2.4rem) 1.6rem;
  border-top:1px solid var(--line);
  background:#0F0E13;
}

.foot-cta{
  display:block;
  max-width:1180px;
  margin:0 auto clamp(1.6rem,4vw,2.6rem);
  font-size:clamp(2rem,7.4vw,4.2rem);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.035em;
  transform:skewX(-8deg);
  transform-origin:left bottom;
  color:#F5F2EA;
  background-image:linear-gradient(92deg,#FF4D2D 0%,#F5F2EA 92%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  transition:letter-spacing .3s ease;
}

.foot-cta:hover,.foot-cta:focus-visible{letter-spacing:-.015em}

.fcols{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:clamp(1.2rem,4vw,2.4rem);
  max-width:1180px;
  margin:0 auto;
}

.fcol{margin:0}

.fcol dt{
  margin-bottom:.55rem;
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--accent);
}

.fcol dd{
  margin:0 0 .3rem;
  font-size:.94rem;
  color:var(--muted);
}

.fcol dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  transition:color .2s ease;
}

.fcol dd a:hover,.fcol dd a:focus-visible{color:var(--accent)}

.copy{
  max-width:1180px;
  margin:1.6rem auto 0;
  padding-top:1rem;
  border-top:1px solid var(--line);
  font-size:.84rem;
  color:rgba(245,242,234,.45);
}

/* 滚动入场 */
.js .reveal{opacity:0;transform:translateY(16px)}
.reveal{transition:opacity .6s ease,transform .6s cubic-bezier(.2,.85,.2,1)}
.reveal.in{opacity:1;transform:none}

@media (max-width:820px){
  .hero{
    grid-template-columns:1fr;
    align-items:start;
    gap:1.4rem;
    padding-top:1.6rem;
  }
  .hero-h1{font-size:clamp(2.3rem,11vw,3.2rem)}
  .hero-fig{clip-path:polygon(0 0,100% 0,100% 90%,0 100%)}
  .hero-fig img{aspect-ratio:16/10}
  .shell{grid-template-columns:1fr}
  .rail{position:static;order:-1}
  .rail-list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:.3rem;
    margin-top:.4rem;
  }
  .rail-list a{
    min-height:40px;
    padding:.35rem .7rem;
    border:1px solid var(--line);
    border-radius:999px;
  }
  .rail-list a:hover,.rail-list a:focus-visible{padding-left:.7rem;border-color:var(--accent)}
  .fcols{grid-template-columns:1fr 1fr}
  .fcol-wide{grid-column:1 / -1}
}

@media (max-width:420px){
  body{font-size:16px}
  .prose h2::before{display:none}
  .prose h2{transform:none}
}

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

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