@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --ink: #171f26;
  --muted: #46586a;
  --card: #eaf1f8;
  --r: 16px;
  --r-lg: 28px;
  --out: -6px -6px 14px rgba(255, 255, 255, 0.92), 7px 7px 16px rgba(86, 112, 140, 0.24);
  --out-sm: -3px -3px 8px rgba(255, 255, 255, 0.9), 4px 4px 9px rgba(86, 112, 140, 0.2);
  --in: inset -3px -3px 8px rgba(255, 255, 255, 0.85), inset 3px 3px 8px rgba(86, 112, 140, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', '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, #eaf1f8 0%, #f7eef2 52%, #e5edf5 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

p {
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  line-height: 1.35;
}

/* ---------- 顶部细条 ---------- */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 40;
  background: rgba(200, 224, 244, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(86, 112, 140, 0.16);
}

.ticker-home {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.ticker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, var(--rose));
  box-shadow: var(--out-sm);
}

/* ---------- 左侧固定栏 ---------- */
.side {
  position: fixed;
  left: 0;
  top: 46px;
  bottom: 0;
  width: 250px;
  padding: 24px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  z-index: 30;
}

.brand {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.brand a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r);
  text-decoration: none;
  background: linear-gradient(145deg, #f3f8fc, #dfe9f3);
  box-shadow: var(--out-sm);
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.menu li:first-child a {
  font-weight: 700;
  background: linear-gradient(145deg, #eef6fd, #d5e6f6);
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 16px;
  text-decoration: none;
  background: linear-gradient(145deg, #f0f5fa, #e0e9f3);
  box-shadow: var(--out-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.menu a:hover,
.menu a:focus-visible {
  box-shadow: var(--out);
}

.menu a.cur {
  box-shadow: var(--in);
  background: linear-gradient(145deg, #e6eff8, #eef4fa);
}

.menu a:active {
  transform: scale(0.98);
}

.side-foot {
  margin: auto 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(145deg, #f4f9fc, #dce7f2);
  box-shadow: var(--out-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover {
  box-shadow: var(--out);
}

.pill:active {
  transform: scale(0.97);
}

/* ---------- 主区 ---------- */
.stage {
  margin-left: 250px;
  padding: 62px 34px 0;
}

main {
  display: block;
}

.board {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px 32px;
  max-width: 1120px;
}

.hero {
  position: relative;
  grid-column: 1 / -1;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 4px 10px;
  overflow: hidden;
}

.ghost {
  position: absolute;
  right: -0.08em;
  bottom: -0.3em;
  font-size: clamp(58px, 12vw, 148px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(23, 31, 38, 0.07);
  pointer-events: none;
  will-change: transform;
}

.hero-txt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: right;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 4.2vw, 46px);
  letter-spacing: -0.015em;
}

.dot {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fceff4, #e4cdd8);
  box-shadow: var(--out);
}

.rail {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: start;
  position: sticky;
  top: 68px;
  padding: 20px 16px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #f1f6fb, #e2eaf4);
  box-shadow: var(--out);
}

.rail h2,
.foot h2 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.rail h2 span,
.foot h2 span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--ice);
}

.rail ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rail li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 16px;
  text-decoration: none;
  background: linear-gradient(145deg, #eef4fa, #e4ecf5);
  box-shadow: var(--in);
}

.rail-pill {
  width: 100%;
}

.art {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  margin: 0;
  min-height: 200px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #eef4fa, #dfe8f2);
  box-shadow: var(--out);
}

.orb {
  position: absolute;
  right: 26px;
  top: 26px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ice), #a6c8e4);
  box-shadow: var(--out-sm);
  z-index: 0;
}

.art-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.art figcaption {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 正文 ---------- */
.prose {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
}

.prose article {
  margin: 0 0 26px;
  padding: 28px 30px 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #f2f7fb, #e4ecf5);
  box-shadow: var(--out);
  scroll-margin-top: 74px;
}

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 2.3vw, 26px);
}

.prose h2 span {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ice);
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 19px;
}

.prose h3 span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--rose);
}

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

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.prose li {
  margin: 7px 0;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--ice);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--out-sm);
}

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

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 31, 38, 0.09);
}

.prose hr {
  border: 0;
  height: 2px;
  margin: 24px 0;
  background: rgba(23, 31, 38, 0.07);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 42px;
  padding: 34px 28px 22px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(160deg, #e8f0f8, #f7ecf1);
  box-shadow: var(--out);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
}

.fbrand {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.foot address {
  font-style: normal;
  font-size: 16px;
  color: var(--muted);
}

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

.foot li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  text-decoration: none;
}

.foot li a:hover {
  color: #2c4257;
}

.fbase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 16px;
  max-width: 1120px;
  border-top: 1px solid rgba(23, 31, 38, 0.1);
}

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

.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rv.on {
  opacity: 1;
  transform: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .ticker {
    position: static;
  }

  .side {
    position: static;
    width: auto;
    padding: 14px 16px 6px;
    gap: 12px;
    overflow: visible;
  }

  .brand a {
    padding: 12px 14px;
  }

  .menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .menu li {
    flex: 1 1 44%;
  }

  .menu a {
    justify-content: center;
    padding: 11px 8px;
    text-align: center;
  }

  .side-foot {
    margin: 2px 0 0;
  }

  .stage {
    margin-left: 0;
    padding: 18px 16px 0;
  }

  .board {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero {
    grid-column: 1;
    grid-row: auto;
    min-height: 38vh;
  }

  .ghost {
    font-size: clamp(46px, 17vw, 92px);
  }

  .dot {
    width: 44px;
    height: 44px;
  }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .rail ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail li a {
    justify-content: center;
    text-align: center;
    font-size: 16px;
  }

  .art {
    grid-column: 1;
    grid-row: auto;
    min-height: 168px;
  }

  .orb {
    width: 86px;
    height: 86px;
    right: 18px;
    top: 18px;
  }

  .prose {
    grid-column: 1;
    grid-row: auto;
  }

  .prose article {
    padding: 22px 20px 8px;
    border-radius: 22px;
  }

  .fgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .foot {
    padding: 26px 20px 18px;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu a,
  .pill {
    transition: none;
  }
}

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