@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --ink: #171f26;
  --bg: #e9f2fa;
  --panel: #eaf3fb;
  --edge: rgba(255, 255, 255, .88);
  --sh-a: -6px -6px 14px rgba(255, 255, 255, .95);
  --sh-b: 7px 9px 20px rgba(23, 31, 38, .13);
  --nav-h: 64px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: "Bebas Neue", "Source Sans 3", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  line-height: 1.16;
  margin: 0;
  letter-spacing: .01em;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid #6ea9d8;
  outline-offset: 3px;
}

/* 顶部横向导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: var(--nav-h);
  padding: 9px 62px 9px 16px;
  background: var(--bg);
  box-shadow: 0 6px 16px rgba(23, 31, 38, .09);
}

.nav-col {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-col--start { justify-self: start; }
.nav-col--end { justify-self: end; }

.nav-col a {
  display: block;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 16px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.nav-col a:hover {
  box-shadow: inset 5px 5px 10px rgba(23, 31, 38, .12), inset -5px -5px 10px #fff;
}
.nav-col a:active { transform: scale(.96); }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  padding: 8px 14px;
  border-radius: 15px;
  background: linear-gradient(150deg, #f1f8fe, #dae9f6);
  box-shadow: var(--sh-a), var(--sh-b);
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-logo { width: 30px; height: 30px; border-radius: 9px; }
.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), var(--pink));
  box-shadow: inset 0 0 0 2px #fff, 2px 2px 6px rgba(23, 31, 38, .18);
}

.burger {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 52px;
  height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(150deg, #f1f8fe, #dae9f6);
  box-shadow: var(--sh-a), var(--sh-b);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.burger:active {
  transform: translateY(-50%) scale(.94);
  box-shadow: inset 4px 4px 9px rgba(23, 31, 38, .15), inset -4px -4px 9px #fff;
}

/* 全屏遮罩菜单（桌面亦可用） */
.nav.is-open {
  position: fixed;
  inset: 0;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 82px 20px 48px;
  overflow-y: auto;
  background: linear-gradient(165deg, #eaf3fb 0%, #f7e9ef 100%);
  box-shadow: none;
}
.nav.is-open .brand { order: -1; margin-bottom: 20px; }
.nav.is-open .nav-col {
  justify-self: center;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav.is-open .nav-col a { font-size: 20px; padding: 12px 24px; }

/* 主视觉 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: calc(100svh - var(--nav-h));
  padding: 108px 18px 92px;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 88px 88px;
  background: linear-gradient(155deg, var(--blue) 0%, #e8f0f9 50%, var(--pink) 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
  transform: scale(1.08);
  will-change: transform;
}
.hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.badge {
  display: inline-block;
  padding: 5px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: var(--sh-a), var(--sh-b);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
}
.hero h1 {
  font-size: clamp(34px, 7.2vw, 78px);
  line-height: 1.08;
  margin: 0 0 16px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}
.lede {
  max-width: 620px;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  color: #27333e;
}

/* 二级粘性锚点条 */
.rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  padding: 10px 16px;
  background: rgba(233, 242, 250, .94);
  box-shadow: 0 6px 14px rgba(23, 31, 38, .07);
}
.rail ol {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail ol::-webkit-scrollbar { display: none; }
.rail a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(150deg, #f2f9ff, #dce9f6);
  box-shadow: var(--sh-a), var(--sh-b);
  font-size: 16px;
  white-space: nowrap;
  transition: box-shadow .16s ease, transform .16s ease;
}
.rail a:hover {
  box-shadow: inset 4px 4px 9px rgba(23, 31, 38, .12), inset -4px -4px 9px #fff;
}
.rail a:active { transform: scale(.95); }

/* 正文骨架 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 18px 64px;
  align-items: start;
}

.post {
  padding: 30px 26px;
  border: 1px solid var(--edge);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--sh-a), var(--sh-b);
}
.post div { scroll-margin-top: 136px; }
.post div + div {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(23, 31, 38, .09);
}
.post h2 { font-size: clamp(23px, 3vw, 30px); margin: 0 0 6px; }
.post h3 { font-size: 22px; margin: 24px 0 8px; }
.post p { margin: 0 0 16px; }
.post ul, .post ol { margin: 0 0 16px; padding-left: 22px; }
.post li { margin: 0 0 8px; }
.post a {
  color: #1b4a70;
  border-bottom: 1px solid rgba(27, 74, 112, .35);
}
.post hr {
  width: 88px;
  height: 6px;
  margin: 6px 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

/* 右侧栏 */
.side { position: sticky; top: 136px; }
.side-card {
  padding: 18px;
  border: 1px solid var(--edge);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--sh-a), var(--sh-b);
}
.side-card h2 { font-size: 24px; margin: 0 0 4px; }
.side-card hr {
  width: 62px;
  height: 5px;
  margin: 0 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}
.side-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 16px;
  transition: box-shadow .16s ease;
}
.side-list a:hover {
  box-shadow: inset 5px 5px 11px rgba(23, 31, 38, .12), inset -5px -5px 11px #fff;
}

/* 页脚三列定义表 */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 28px;
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 44px 18px 22px;
  border-radius: 56px 56px 0 0;
  background: linear-gradient(165deg, #dbeaf7, #f6e8ee);
  box-shadow: inset 0 12px 28px rgba(255, 255, 255, .9);
}
.foot-name {
  margin: 0 0 8px;
  font-family: "Bebas Neue", "Source Sans 3", system-ui, "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
}
.foot-line { max-width: 34ch; margin: 0; font-size: 16px; color: #35414c; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.foot dl { margin: 0; }
.foot dt { margin-bottom: 6px; font-weight: 700; letter-spacing: .09em; }
.foot dd { margin: 0; }
.foot dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  transition: transform .15s ease;
}
.foot dd a:hover { transform: translateX(3px); }
.copy {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  text-align: center;
  font-size: 16px;
  color: #3a4551;
}

@media (max-width: 1080px) {
  .nav-col { display: none; }
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); padding: 36px 16px 52px; gap: 24px; }
  .side { position: static; }
  .foot {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 40px 40px 0 0;
    gap: 22px;
  }
  .hero { padding: 92px 16px 64px; border-radius: 0 0 50% 50% / 0 0 56px 56px; }
  .post { padding: 24px 18px; }
}

@media (max-width: 560px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .post h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-photo { transform: none; }
}

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