@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --ink: #171f26;
  --panel-a: #1e2933;
  --panel-b: #141d24;
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --text: #e3edf5;
  --muted: #9cadbc;
  --dim: #7d90a0;
  --r: 28px;
  --out: -5px -5px 15px rgba(200, 224, 244, .07), 7px 7px 18px rgba(0, 0, 0, .62);
  --out-sm: -3px -3px 9px rgba(200, 224, 244, .07), 5px 5px 12px rgba(0, 0, 0, .55);
  --in: inset -3px -3px 8px rgba(200, 224, 244, .08), inset 4px 4px 10px rgba(0, 0, 0, .6);
  --grad: linear-gradient(145deg, var(--panel-a), var(--panel-b));
  --font: 'Cabin', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --display: 'Amatic SC', 'Cabin', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: #131b21;
  background-image: radial-gradient(rgba(200, 224, 244, .07) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-wrap: break-word;
}

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

h1, h2, h3 { text-wrap: balance; }

article[id] { scroll-margin-top: 96px; }

/* ---------- 顶部品牌行 ---------- */
.top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--grad);
  box-shadow: var(--out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
}

.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  box-shadow: var(--in);
  overflow: hidden;
}

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

.brand-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #f4f9fd;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, #d9eafa, #b4d1ea);
  color: #15202a;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, .5), inset -2px -2px 6px rgba(255, 255, 255, .65);
  transition: transform .15s ease, box-shadow .15s ease;
}

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

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 26px;
  align-items: center;
  min-height: 45vh;
  margin-top: 18px;
  padding: 26px;
  border-radius: var(--r);
  background-image: radial-gradient(rgba(245, 224, 232, .1) 1px, transparent 1px), var(--grad);
  background-size: 15px 15px, auto;
  box-shadow: var(--out);
}

.hero-art {
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #17212a, #1f2b35);
  box-shadow: var(--in);
}

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

.dots {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 22px;
  background-image: radial-gradient(rgba(200, 224, 244, .45) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  box-shadow: var(--in);
}

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

h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.14;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, .55);
}

.hero-lead {
  margin: 0 0 0 auto;
  max-width: 40ch;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 主体骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 18px;
}

.side {
  position: sticky;
  top: 22px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--grad);
  box-shadow: var(--out);
}

.side-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--pink);
}

.side nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side nav a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--grad);
  box-shadow: var(--out-sm);
  transition: transform .15s ease, color .15s ease, box-shadow .15s ease;
}

.side nav a:hover { transform: translateX(3px); color: #fff; }
.side nav a:active { transform: scale(.98); box-shadow: var(--in); }

main { min-width: 0; }
.wrap { display: block; min-width: 0; }

.paper {
  padding: 30px;
  border-radius: var(--r);
  background: var(--grad);
  box-shadow: var(--out);
}

/* ---------- 正文 ---------- */
.prose { font-size: 17px; }

.prose > article + article {
  margin-top: 36px;
  padding-top: 32px;
  box-shadow: 0 -1px 0 rgba(200, 224, 244, .09);
}

.prose h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  letter-spacing: .05em;
  color: #fdfeff;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--pink);
}

.prose h2 span,
.prose h3 span,
.side-title span,
.index h2 span { position: relative; display: inline-block; padding-bottom: 7px; }

.prose h2 span::after,
.index h2 span::after,
.side-title span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  opacity: .7;
}

.prose h3 span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--pink);
  opacity: .55;
}

.prose p { margin: 0 0 15px; }

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 224, 244, .38);
}

.prose a:hover { text-decoration-color: var(--pink); }

.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose strong { color: #fff; }

.prose blockquote {
  margin: 0 0 18px;
  padding: 16px 22px;
  border-radius: 20px;
  background: var(--grad);
  box-shadow: var(--in);
  color: var(--muted);
}

.prose img {
  display: block;
  margin: 0 0 16px;
  border-radius: 20px;
  box-shadow: var(--out-sm);
}

.prose time { color: var(--dim); font-size: 16px; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; box-shadow: 0 -1px 0 rgba(200, 224, 244, .1); }
.prose th { color: #fff; }

/* ---------- 栏目卡片 ---------- */
.index {
  margin-top: 26px;
  padding: 26px;
  border-radius: var(--r);
  background: var(--grad);
  box-shadow: var(--out);
}

.index h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: .06em;
  color: #fdfeff;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 48px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #23303a, #18222a);
  box-shadow: var(--out-sm);
  color: var(--text);
  font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}

.card:hover { transform: translateY(-3px); color: #fff; }
.card:active { transform: scale(.98); box-shadow: var(--in); }
.card-t { font-weight: 600; }
.card-d { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- 页脚 ---------- */
footer {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0 18px 44px;
  text-align: center;
}

.foot-call { margin: 0 0 18px; }

.foot-call a {
  display: block;
  min-height: 64px;
  padding: 26px 20px;
  border-radius: var(--r);
  background: var(--grad);
  box-shadow: var(--out);
  color: #fdfeff;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: .1em;
  transition: transform .15s ease, box-shadow .15s ease;
}

.foot-call a:hover { transform: translateY(-2px); }
.foot-call a:active { transform: scale(.99); box-shadow: var(--in); }

.foot-copy { margin: 0 0 8px; color: var(--muted); font-size: 16px; }

footer small { display: block; color: var(--dim); font-size: 16px; }

/* ---------- 动效 ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .52s ease, transform .52s ease;
}

/* ---------- 断点 ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .side { position: static; }
  .side nav ul { flex-direction: row; flex-wrap: wrap; }
  .side nav a { padding: 10px 14px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 20px;
  }
  .hero-say { order: -1; text-align: left; }
  .hero-lead { margin-left: 0; }
  .hero-art { aspect-ratio: 16 / 10; }
  article[id] { scroll-margin-top: 24px; }
}

@media (max-width: 480px) {
  .top { padding: 14px 12px 0; }
  .shell { padding: 0 12px; }
  footer { padding: 0 12px 34px; }
  .paper, .index { padding: 20px; }
  .brand-name { font-size: 20px; letter-spacing: .08em; }
  .cta { padding: 0 15px; }
  .hero { padding: 16px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

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