:root {
  --ink: #171f26;
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --bg-a: #eaf2fa;
  --bg-b: #d7e7f5;
  --bg-c: #f5e6ec;
  --surface: #e4eef8;
  --raise: -6px -6px 15px rgba(255, 255, 255, .85), 6px 6px 16px rgba(23, 31, 38, .16);
  --raise-sm: -3px -3px 8px rgba(255, 255, 255, .85), 3px 3px 9px rgba(23, 31, 38, .14);
  --sink: inset 4px 4px 10px rgba(23, 31, 38, .14), inset -4px -4px 10px rgba(255, 255, 255, .9);
  --muted: rgba(23, 31, 38, .74);
  --line: rgba(23, 31, 38, .1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background: linear-gradient(155deg, var(--bg-a) 0%, var(--bg-b) 48%, var(--bg-c) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .4px;
}

p {
  margin: 0 0 1.05em;
}

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

a {
  color: #1e5378;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #6f9dc4;
  outline-offset: 3px;
}

main article {
  scroll-margin-top: 104px;
}

/* ---------- 顶栏 ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(145deg, #e7f1fa, #d3e4f3);
  box-shadow: 0 9px 20px rgba(23, 31, 38, .14);
  border-radius: 0 0 18px 18px;
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 14px;
  font-family: 'Righteous', 'Poppins', 'PingFang SC', sans-serif;
  font-size: 1.16rem;
  letter-spacing: .6px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, #dceaf7);
  box-shadow: var(--raise-sm);
}

.mark:active {
  transform: scale(.97);
}

.deck {
  position: relative;
}

.deck summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 14px;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: linear-gradient(145deg, #f7fbff, #cfe0f1);
  box-shadow: var(--raise-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.deck summary::-webkit-details-marker {
  display: none;
}

.deck summary:active {
  transform: scale(.96);
}

.deck[open] summary {
  box-shadow: var(--sink);
}

.burger {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 96px 18px 40px;
  list-style: none;
  overflow-y: auto;
  background: linear-gradient(160deg, #e9f2fa, #f7e7ee);
}

.menu li {
  width: 100%;
  max-width: 520px;
}

.menu li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Righteous', 'Poppins', 'PingFang SC', sans-serif;
  font-size: 1.05rem;
  background: linear-gradient(145deg, #ffffff, #d9e7f4);
  box-shadow: var(--raise);
  transition: transform .15s ease, box-shadow .15s ease;
}

.menu li a:active {
  transform: scale(.97);
  box-shadow: var(--sink);
}

.finder {
  margin: 0;
}

.finder input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #e2edf7;
  box-shadow: var(--sink);
}

.finder input::placeholder {
  color: rgba(23, 31, 38, .48);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 88px 18px 64px;
}

.hero-art {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-height: 54vh;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf3fb, #cfe1f2);
  box-shadow: var(--raise);
}

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

.glyph {
  font-family: 'Righteous', 'Poppins', sans-serif;
  font-size: clamp(2.6rem, 12vw, 4.4rem);
  color: #7495b3;
}

.hero-copy {
  text-align: right;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: 'Righteous', 'Poppins', 'PingFang SC', sans-serif;
  font-size: clamp(1.95rem, 7.4vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: .8px;
}

.lede {
  max-width: 46ch;
  margin: 0 0 22px auto;
  font-size: 1rem;
  color: var(--muted);
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, #d6e6f5);
  box-shadow: var(--raise);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:active {
  transform: scale(.96);
  box-shadow: var(--sink);
}

.btn.ghost {
  background: linear-gradient(145deg, #fdeff5, #f0d8e3);
}

.hero .tag {
  position: absolute;
  left: 20px;
  bottom: 22px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: .84rem;
  letter-spacing: .4px;
  color: var(--muted);
  background: linear-gradient(145deg, #ffffff, #dbe8f5);
  box-shadow: var(--raise-sm);
}

/* ---------- 侧栏 + 正文 ---------- */

.board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 18px 70px;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail-card {
  position: relative;
  padding: 18px 18px 22px;
  background: linear-gradient(145deg, #eef5fb, #dbe9f6);
  box-shadow: var(--raise);
}

.rail-card::after,
.stream > article::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), #a9cbe6);
}

.rail-card h2 {
  margin: 0 0 12px;
  font-size: .96rem;
  letter-spacing: 1px;
}

.rail-card h2 span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--pink);
}

.rail-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
  display: grid;
  gap: 2px;
}

.rail-card ol li {
  counter-increment: rail;
}

.rail-card ol li a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: .93rem;
  color: var(--ink);
  text-decoration: none;
}

.rail-card ol li a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: .74rem;
  letter-spacing: .5px;
  color: #7d9ab3;
}

.rail-card ol li a:hover {
  box-shadow: var(--raise-sm);
  background: rgba(255, 255, 255, .5);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: .93rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--raise-sm);
  background: linear-gradient(145deg, #ffffff, #dbe8f5);
}

.rail-top:active {
  box-shadow: var(--sink);
}

.stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.stream > article {
  position: relative;
  padding: 26px 20px 32px;
  background: linear-gradient(145deg, #f1f7fc, #ddebf7);
  box-shadow: var(--raise);
  animation: rise .5s ease both;
}

.stream > article:nth-child(1) { animation-delay: .04s; }
.stream > article:nth-child(2) { animation-delay: .1s; }
.stream > article:nth-child(3) { animation-delay: .16s; }
.stream > article:nth-child(4) { animation-delay: .22s; }
.stream > article:nth-child(5) { animation-delay: .28s; }
.stream > article:nth-child(6) { animation-delay: .34s; }
.stream > article:nth-child(7) { animation-delay: .4s; }

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

.stream h2 {
  margin: 0 0 14px;
  font-size: clamp(1.24rem, 4.6vw, 1.55rem);
}

.stream h2 span,
.stream h3 span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 4px solid var(--pink);
}

.stream h3 {
  margin: 22px 0 10px;
  font-size: 1.1rem;
}

.stream > article > :first-child {
  margin-top: 0;
}

.stream ul,
.stream ol {
  padding-left: 1.2em;
}

.stream li {
  margin-bottom: .4em;
}

.stream figure {
  margin: 20px 0;
}

.stream figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--raise-sm);
}

.stream figcaption {
  margin-top: 8px;
  font-size: .86rem;
  color: var(--muted);
}

.stream aside {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid #b7d4ea;
  background: rgba(255, 255, 255, .5);
  box-shadow: var(--raise-sm);
  font-size: .96rem;
}

.stream blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  box-shadow: var(--sink);
  font-size: .97rem;
}

.stream table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .93rem;
}

.stream th,
.stream td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.stream code {
  font-size: .92em;
  background: rgba(255, 255, 255, .6);
  padding: 1px 5px;
  border-radius: 6px;
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 34px 18px 18px;
  background: linear-gradient(160deg, #dcebf8, #f4e3eb);
  box-shadow: inset 0 10px 22px rgba(255, 255, 255, .7), 0 -10px 24px rgba(23, 31, 38, .1);
}

.foot article {
  min-width: 0;
}

.foot h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: .8px;
}

.foot h2 span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--pink);
}

.foot-note {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

.foot address {
  font-style: normal;
  font-size: .93rem;
  word-break: break-all;
  color: var(--muted);
}

.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.subscribe input {
  flex: 1 1 130px;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: .93rem;
  color: var(--ink);
  background: #e6eff8;
  box-shadow: var(--sink);
}

.subscribe button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(145deg, #ffffff, #e6d5df);
  box-shadow: var(--raise-sm);
}

.subscribe button:active {
  transform: scale(.96);
  box-shadow: var(--sink);
}

.foot-nav {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .93rem;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.foot-nav a:hover {
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--raise-sm);
}

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
}

.foot-base p {
  display: flex;
  gap: 12px;
  margin: 0;
}

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

/* ---------- 响应式 ---------- */

@media (min-width: 760px) {
  .bar {
    padding: 14px 30px;
  }

  .hero {
    grid-template-columns: 1.02fr 1fr;
    gap: 44px;
    padding: 110px 30px 80px;
  }

  .hero-art {
    order: 0;
    max-height: 66vh;
    aspect-ratio: 4 / 5;
  }

  .hero .tag {
    left: 32px;
    bottom: 44px;
  }

  .board {
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 34px;
    padding: 12px 30px 94px;
  }

  .rail {
    position: sticky;
    top: 96px;
  }

  .stream {
    gap: 24px;
  }

  .stream > article {
    padding: 34px 32px 40px;
  }

  .foot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 46px 30px 18px;
  }

  .menu {
    padding-top: 118px;
  }
}

@media (min-width: 1100px) {
  .hero {
    gap: 56px;
  }

  .stream > article {
    padding: 38px 40px 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stream > article {
    animation: none;
  }
}

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