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

:root{
  --bg:#eef1f6;
  --bg-2:#e3e8ef;
  --ink:#171f26;
  --muted:#4d5a66;
  --ice:#c8e0f4;
  --rose:#f5e0e8;
  --soft:-6px -6px 14px rgba(255,255,255,.95), 6px 6px 16px rgba(23,31,38,.13);
  --soft-sm:-4px -4px 9px rgba(255,255,255,.95), 4px 4px 10px rgba(23,31,38,.12);
  --in:inset -3px -3px 8px rgba(255,255,255,.95), inset 3px 3px 8px rgba(23,31,38,.13);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:linear-gradient(155deg,#f7f9fc 0%,#eaeff5 55%,#e2e8f0 100%);
  background-attachment:fixed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:3px;
}

/* 顶部：品牌居中，菜单分列两侧，右侧主按钮 */
.top{
  max-width:1180px;
  margin:0 auto;
  padding:16px 20px 6px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
}

.top-nav{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}

.top-nav.right{justify-content:flex-end}

.top-nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 12px;
  border-radius:16px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  transition:box-shadow .15s ease, transform .15s ease;
}

.top-nav a:hover{box-shadow:var(--soft-sm)}
.top-nav a:active{box-shadow:var(--in);transform:scale(.98)}

.ico{
  width:9px;
  height:9px;
  flex:0 0 auto;
  fill:var(--ink);
  opacity:.32;
}

.brand,
.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:9px 16px;
  border-radius:16px;
  color:var(--ink);
  text-decoration:none;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:var(--soft);
}

.brand{justify-self:center;font-size:17px}
.logo{font-size:16px;box-shadow:var(--soft-sm)}

.mark{
  display:block;
  width:28px;
  height:28px;
  object-fit:contain;
}

.head-right{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border-radius:16px;
  background:var(--ice);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  font-weight:700;
  box-shadow:var(--soft);
  transition:box-shadow .15s ease, transform .15s ease;
}

.cta:hover{transform:translateY(-1px)}
.cta:active{box-shadow:var(--in);transform:scale(.98)}

/* 二级粘性锚点条 */
.subbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:10px 20px;
  background:rgba(238,241,246,.94);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  box-shadow:0 12px 18px -16px rgba(23,31,38,.9);
  scrollbar-width:thin;
}

.subbar a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:16px;
  background:var(--bg);
  color:var(--muted);
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  box-shadow:var(--in);
  transition:box-shadow .15s ease, color .15s ease;
}

.subbar a:hover,
.subbar a.on{
  color:var(--ink);
  box-shadow:var(--soft-sm);
}

/* 主区域 */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px 42px;
}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,42%) minmax(0,1fr);
  align-items:center;
  gap:34px;
  min-height:45vh;
  padding:26px 0 34px;
  text-align:right;
}

.hero--bare{grid-template-columns:1fr}

.hero-fig{
  margin:0;
  aspect-ratio:4/3;
  overflow:hidden;
  background:linear-gradient(145deg,#f3f6fa,#dde4ed);
  box-shadow:var(--soft);
}

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

.hero-copy{
  position:relative;
  padding-top:54px;
}

.badge{
  position:absolute;
  top:0;
  right:0;
  display:inline-flex;
  padding:8px 16px;
  border-radius:16px;
  background:var(--rose);
  font-size:16px;
  font-weight:700;
  box-shadow:var(--soft);
  animation:bob 7s ease-in-out infinite;
}

@keyframes bob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

.hero h1{
  margin:0;
  font-size:clamp(2rem,4.6vw,3.1rem);
  line-height:1.18;
  font-weight:800;
  letter-spacing:-.02em;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:22px;
  padding:12px 22px;
  border-radius:16px;
  background:linear-gradient(145deg,#d6e8f8,#bfdaf0);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  font-weight:700;
  box-shadow:var(--soft);
  transition:transform .15s ease, box-shadow .15s ease;
}

.hero-cta:hover{transform:translateY(-2px)}
.hero-cta:active{box-shadow:var(--in);transform:scale(.98)}

.stage{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:34px;
  align-items:start;
}

/* 左侧栏 */
.side{
  position:sticky;
  top:76px;
  padding:20px 18px;
  background:linear-gradient(145deg,#f4f7fa,#e5ebf2);
  box-shadow:var(--soft);
}

.side h2{
  margin:0 0 10px;
  font-size:17px;
  font-weight:700;
  letter-spacing:.14em;
}

hr{
  border:0;
  height:6px;
  margin:12px 0 18px;
  background:var(--bg-2);
  box-shadow:var(--in);
}

.side ol{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:4px;
}

.side a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  color:var(--muted);
  text-decoration:none;
  font-size:16px;
  box-shadow:var(--in);
  transition:box-shadow .15s ease, color .15s ease;
}

.side a:hover{
  color:var(--ink);
  box-shadow:var(--soft-sm);
}

/* 正文 */
.prose{min-width:0}

.prose div[id]{
  padding:26px 28px;
  margin:0 0 24px;
  background:linear-gradient(145deg,#f5f8fb,#e6ecf3);
  box-shadow:var(--soft);
  scroll-margin-top:82px;
}

.prose h2{
  margin:0 0 12px;
  font-size:clamp(1.3rem,2.4vw,1.7rem);
  line-height:1.32;
  letter-spacing:-.01em;
}

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

.prose p{margin:0 0 14px}
.prose ul,
.prose ol{pargin:0 0 14px;padding-left:22px}
.prose li{margin:0 0 6px}

.prose a{
  color:var(--ink);
  text-decoration:none;
  box-shadow:inset 0 -6px 0 rgba(200,224,244,.8);
}

.prose a:hover{box-shadow:inset 0 -10px 0 rgba(245,224,232,.95)}

.prose blockquote{
  margin:0 0 14px;
  padding:14px 18px;
  background:#eef1f6;
  box-shadow:var(--in);
}

.prose img{
  display:block;
  max-width:100%;
  height:auto;
  box-shadow:var(--soft);
}

.prose figure{margin:0 0 16px}

/* 页脚 */
.foot{
  margin-top:20px;
  padding:32px 0 26px;
  background:linear-gradient(145deg,#e9eef4,#dce2eb);
  box-shadow:inset 0 10px 18px -16px rgba(23,31,38,.85);
}

.foot-bar{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:1.1fr 1.7fr 1.2fr auto;
  gap:26px;
  align-items:start;
}

.foot-brand{display:flex;flex-direction:column;gap:10px}

.foot-nav dl{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px 16px;
  margin:0;
}

.foot-nav dt{
  grid-column:1 / -1;
  margin-bottom:4px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.1em;
  color:var(--muted);
}

.foot-nav dd{margin:0}

.foot-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
}

.foot-nav a:hover{box-shadow:inset 0 -6px 0 var(--rose)}

.foot-form{
  display:grid;
  gap:10px;
  margin:0;
}

.foot-form input{
  min-height:44px;
  padding:10px 14px;
  border:0;
  border-radius:0;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:#eef1f6;
  box-shadow:var(--in);
}

.foot-form button{
  min-height:44px;
  padding:10px 16px;
  border:0;
  border-radius:16px;
  font:inherit;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  background:var(--rose);
  box-shadow:var(--soft);
  cursor:pointer;
  transition:box-shadow .15s ease, transform .15s ease;
}

.foot-form button:active{box-shadow:var(--in);transform:scale(.98)}

.copy{
  margin:0;
  align-self:end;
  font-size:16px;
  color:var(--muted);
  white-space:nowrap;
}

/* 断点 */
@media (max-width:900px){
  .stage{grid-template-columns:1fr;gap:22px}
  .side{position:static}
  .side ol{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{
    grid-template-columns:1fr;
    text-align:left;
    min-height:0;
    padding-top:12px;
  }
  .badge{right:auto;left:0}
  .hero h1{letter-spacing:-.01em}
  .foot-bar{grid-template-columns:1fr 1fr}
  .copy{grid-column:1 / -1;white-space:normal}
}

@media (max-width:640px){
  .top{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    padding:14px 16px 6px;
    column-gap:6px;
  }
  .brand{flex:0 0 100%;justify-content:center}
  .top-nav{justify-content:center}
  .head-right{justify-content:center}
  .subbar{padding:8px 16px}
  .wrap{padding:0 16px 34px}
  .hero-fig{aspect-ratio:16/9}
  .hero-copy{padding-top:56px}
  .prose div[id]{padding:20px 16px}
  .foot-bar{grid-template-columns:1fr;gap:18px}
  .foot-nav dl{grid-template-columns:1fr 1fr}
}

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

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