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

:root{
  --navy:#0E1B4D;
  --red:#FF3B30;
  --cream:#F5F0E6;
  --rule:2px solid var(--navy);
  --hair:1px solid rgba(14,27,77,.18);
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background:var(--cream);
  color:var(--navy);
  font-family:"Outfit","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%}
a{color:inherit}
h1,h2,h3{font-weight:900;letter-spacing:.01em}
:focus-visible{outline:3px solid var(--red);outline-offset:2px}

/* ---------- 页头：品牌行 + 菜单行 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--cream);
  border-bottom:3px solid var(--navy);
}

.brandline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px clamp(14px,4vw,40px);
  border-bottom:var(--rule);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  font-size:clamp(20px,4.8vw,30px);
  font-weight:900;
  letter-spacing:.06em;
  line-height:1.1;
}

.brand .mark{
  flex:none;
  display:block;
  width:20px;
  height:20px;
  background:var(--red);
}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  border:var(--rule);
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  letter-spacing:.12em;
  transition:background .18s ease,color .18s ease;
}
.contact:hover{background:var(--navy);color:var(--cream)}

.menurow{
  display:flex;
  justify-content:flex-end;
  padding:6px clamp(14px,4vw,40px);
}

.nav-drawer summary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 18px;
  background:var(--navy);
  color:var(--cream);
  cursor:pointer;
  list-style:none;
  font-weight:700;
  letter-spacing:.22em;
  transition:background .18s ease;
}
.nav-drawer summary::-webkit-details-marker{display:none}
.nav-drawer summary:hover{background:var(--red)}
.nav-drawer[open] summary{background:var(--red)}

.bars{display:block}
.bars i{display:block;width:18px;height:2px;background:currentColor;margin:4px 0}

.nav-drawer menu{
  position:fixed;
  inset:0;
  z-index:55;
  margin:0;
  padding:calc(120px + 3vh) clamp(20px,7vw,80px) 44px;
  list-style:none;
  background:var(--navy);
  color:var(--cream);
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:auto;
}

.nav-drawer menu li{border-bottom:1px solid rgba(245,240,230,.22)}
.nav-drawer menu li:first-child{border-top:1px solid rgba(245,240,230,.22)}

.nav-drawer menu a{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:12px 0;
  text-decoration:none;
  font-size:clamp(18px,4.4vw,24px);
  font-weight:700;
  letter-spacing:.04em;
  color:var(--cream);
  transition:color .16s ease,padding-left .16s ease;
}
.nav-drawer menu a:hover{color:var(--red);padding-left:12px}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:grid;
  align-content:center;
  justify-items:end;
  min-height:45vh;
  padding:clamp(30px,7vw,64px) clamp(16px,4vw,48px);
  background:var(--navy);
  border-bottom:5px solid var(--red);
  overflow:hidden;
}

.hero-media{
  position:absolute;
  inset:0;
  margin:0;
}

.hero-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(14,27,77,.66);
}

.hero-ghost{
  position:absolute;
  right:-1.5vw;
  bottom:-1.2vw;
  white-space:nowrap;
  font-size:clamp(56px,15vw,190px);
  font-weight:900;
  line-height:.8;
  letter-spacing:-.03em;
  color:rgba(245,240,230,.14);
  pointer-events:none;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:24ch;
  text-align:right;
}

.hero-copy h1{
  margin:0;
  color:var(--cream);
  font-size:clamp(27px,6.2vw,56px);
  line-height:1.12;
  letter-spacing:-.01em;
}

/* ---------- 正文区：左栏 + 正文流 ---------- */
.stage{
  display:grid;
  grid-template-columns:1fr;
  background:var(--cream);
}

.rail{
  padding:22px clamp(16px,4vw,40px);
  border-bottom:var(--rule);
  background:var(--cream);
}

.rail-title{
  margin:0;
  font-size:20px;
  letter-spacing:.22em;
}

.subtitle{
  margin:2px 0 16px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--red);
}

.rail-list{
  list-style:none;
  margin:0 0 20px;
  padding:0;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
  text-decoration:none;
  font-weight:600;
  border-bottom:var(--hair);
  transition:color .16s ease,transform .16s ease;
}
.rail-list a:hover{color:var(--red);transform:translateX(4px)}

.totop{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 16px;
  border:var(--rule);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.12em;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.totop:hover{background:var(--red);border-color:var(--red);color:var(--cream)}

.stream{
  min-width:0;
  padding:clamp(16px,3.4vw,40px) clamp(16px,4vw,52px) 64px;
}

.stream article{
  scroll-margin-top:140px;
  padding:26px 0 36px;
  border-bottom:2px solid rgba(14,27,77,.18);
  animation:rise .42s ease both;
}
.stream article:last-child{border-bottom:0;padding-bottom:18px}

.stream article:nth-child(1){animation-delay:.02s}
.stream article:nth-child(2){animation-delay:.06s}
.stream article:nth-child(3){animation-delay:.1s}
.stream article:nth-child(4){animation-delay:.14s}
.stream article:nth-child(5){animation-delay:.18s}
.stream article:nth-child(6){animation-delay:.22s}
.stream article:nth-child(7){animation-delay:.26s}
.stream article:nth-child(8){animation-delay:.3s}

@keyframes rise{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}

.stream h2{
  margin:0 0 12px;
  font-size:clamp(22px,3.6vw,32px);
  line-height:1.22;
}

.stream h3{
  margin:24px 0 8px;
  font-size:19px;
  line-height:1.35;
}

.stream p{margin:0 0 16px;max-width:72ch}
.stream ul,.stream ol{margin:0 0 16px;padding-left:22px}
.stream li{margin:0 0 8px}

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

.stream figure{
  margin:22px 0;
  border:3px solid var(--navy);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  transition:transform .18s ease;
}
.stream figure:hover{transform:translateY(-3px)}
.stream figure img{display:block;width:100%;height:auto}
.stream figcaption{
  padding:8px 14px;
  background:var(--navy);
  color:var(--cream);
  font-size:14px;
  letter-spacing:.06em;
}

.stream aside{
  margin:22px 0;
  padding:16px 18px;
  background:#fff;
  border:var(--rule);
  border-left:8px solid var(--red);
  border-radius:18px;
}

.stream blockquote{
  margin:20px 0;
  padding:12px 18px;
  border-left:8px solid var(--navy);
  background:#fff;
  font-weight:500;
}
.stream blockquote p:last-child{margin-bottom:0}

.stream table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 18px;
  font-size:16px;
}
.stream th,.stream td{
  border:1px solid rgba(14,27,77,.35);
  padding:8px 10px;
  text-align:left;
}
.stream th{background:var(--navy);color:var(--cream)}

.stream hr{
  height:3px;
  border:0;
  background:var(--navy);
  margin:26px 0;
}

/* ---------- 页脚 ---------- */
footer{
  background:var(--navy);
  color:var(--cream);
  padding:clamp(30px,7vw,64px) 18px clamp(20px,4vw,32px);
  border-top:6px solid var(--red);
  text-align:center;
}

footer p{
  margin:0 0 14px;
  font-size:clamp(40px,12.5vw,116px);
  font-weight:900;
  line-height:.92;
  letter-spacing:-.02em;
  word-break:break-word;
}

footer small{
  display:block;
  font-size:14px;
  letter-spacing:.14em;
  color:rgba(245,240,230,.72);
  word-break:break-word;
}

/* ---------- 桌面 ---------- */
@media (min-width:920px){
  .stage{grid-template-columns:290px minmax(0,1fr);align-items:start}
  .rail{
    position:sticky;
    top:118px;
    align-self:start;
    min-height:62vh;
    border-bottom:0;
    border-right:var(--rule);
    padding:28px 24px;
  }
  .nav-drawer menu{padding-left:clamp(40px,14vw,180px);padding-right:clamp(40px,14vw,180px)}
  .nav-drawer menu a{font-size:26px}
}

@media (min-width:1200px){
  .hero{min-height:46vh}
  .stream{padding-right:clamp(40px,7vw,110px)}
}

/* ---------- 窄屏微调 ---------- */
@media (max-width:420px){
  body{font-size:16px}
  .rail-list a{min-height:46px}
  .hero-ghost{right:-4vw;bottom:-.8vw}
  .hero-copy{max-width:20ch}
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
  }
}

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