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

:root {
  --sky: #c8e0f4;
  --blush: #f5e0e8;
  --ink: #171f26;
  --ink-soft: #3f4d59;
  --ink-mute: #6d7d8a;
  --bg: #eaf1f8;
  --bg-2: #f7ecf1;
  --surface: #f1f6fb;
  --line: rgba(23, 31, 38, 0.12);
  --line-soft: rgba(23, 31, 38, 0.07);
  --hi: rgba(255, 255, 255, 0.9);
  --lo: rgba(23, 31, 38, 0.12);
  --raise: -5px -5px 15px rgba(255, 255, 255, 0.85), 5px 5px 15px rgba(23, 31, 38, 0.1);
  --raise-sm: -3px -3px 8px rgba(255, 255, 255, 0.85), 3px 3px 8px rgba(23, 31, 38, 0.1);
  --sink: inset -3px -3px 8px rgba(255, 255, 255, 0.8), inset 3px 3px 8px rgba(23, 31, 38, 0.12);
  --sans: "Raleway", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Lora", "Songti SC", "Source Han Serif SC", Georgia, serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: linear-gradient(165deg, #f4f9fd 0%, var(--bg) 42%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 顶部细条 */
.ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 1rem;
  background: linear-gradient(90deg, rgba(200, 224, 244, 0.75), rgba(245, 224, 232, 0.8));
  border-bottom: 1px solid var(--line-soft);
}

.ticker-in {
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--ink-soft);
}

/* 页头两行 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(240, 246, 251, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(23, 31, 38, 0.06);
}

.brandline {
  display: flex;
  align-items: center;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
}

.brand,
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  border-radius: 16px;
  text-decoration: none;
  background: linear-gradient(145deg, #f7fbfe, #e5eff8);
  box-shadow: var(--raise-sm);
}

.brand:active,
.foot-logo:active {
  transform: scale(0.98);
  box-shadow: var(--sink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--sky), var(--blush));
  box-shadow: var(--raise-sm);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.menuline {
  padding: 0 clamp(1rem, 4vw, 2.5rem) 0.7rem;
}

.topnav {
  display: block;
}

.nav-list,
.rail-list,
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  background: linear-gradient(145deg, #f5fafe, #e4eef7);
  box-shadow: var(--raise-sm);
  transition: box-shadow 150ms ease, transform 150ms ease, color 150ms ease;
}

.nav-list a:hover {
  color: var(--ink);
  box-shadow: var(--raise);
}

.nav-list a:active {
  transform: scale(0.96);
  box-shadow: var(--sink);
}

.nav-list a[aria-current="true"] {
  color: var(--ink);
  background: linear-gradient(145deg, #e6f1fa, #f8edf2);
  box-shadow: var(--sink);
}

/* 主体 */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.3rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 45vh;
  padding: 1.6rem 0 2rem;
  text-align: center;
}

.hero-copy {
  max-width: 42ch;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-mute);
}

.hero-fig {
  margin: 1.6rem auto 0;
  width: 100%;
  max-width: 760px;
}

.hero-fig:empty {
  display: none;
}

.hero-fig .hero-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--raise);
}

.cut {
  height: 22px;
  margin: 0.4rem 0 1.8rem;
  background: linear-gradient(90deg, var(--sky), var(--blush));
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
  opacity: 0.85;
}

.shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 148px;
  padding: 1.1rem 1rem 1.3rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #f6fafd, #e6f0f8);
  box-shadow: var(--raise);
}

.rail-mark {
  margin: 0 0 0.9rem;
  display: flex;
  justify-content: center;
}

.rail-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(145deg, #f7fbfe, #e2edf7);
  box-shadow: var(--sink);
}

.rail-eyebrow {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--ink-mute);
}

.rail-title {
  margin: 0.1rem 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: -2px -2px 6px rgba(255, 255, 255, 0.85), 2px 2px 6px rgba(23, 31, 38, 0.09);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.rail-list a:hover {
  box-shadow: var(--raise-sm);
  color: var(--ink);
}

.rail-list a:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

.rail-list a[aria-current="true"] {
  color: var(--ink);
  background: linear-gradient(145deg, #e6f1fa, #f8edf2);
  box-shadow: var(--sink);
}

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

.prose section {
  scroll-margin-top: 150px;
  padding: 1.5rem clamp(1.1rem, 2.4vw, 1.9rem) 1.7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.58);
}

.prose section + section {
  margin-top: 1.8rem;
}

.prose small {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--ink-mute);
}

.prose h2 {
  margin: 0.25rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1rem;
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
  max-width: 62ch;
}

.prose li {
  margin-bottom: 0.45rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.prose figure {
  margin: 1.2rem 0;
}

.prose figure img {
  width: 100%;
  border-radius: 16px;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--sky);
  background: rgba(245, 224, 232, 0.4);
  color: var(--ink-soft);
}

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

.prose a {
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.1rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 2.2rem;
  border-top: 1px solid var(--line-soft);
}

.foot-brand {
  flex: 0 1 auto;
}

.foot-nav {
  flex: 1 1 320px;
}

.foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.35rem;
  font-size: 1rem;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.foot-list a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.foot-sub {
  flex: 0 1 auto;
}

.subform {
  display: flex;
  gap: 0.4rem;
}

.subinput {
  width: 148px;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--sink);
}

.subinput::placeholder {
  color: var(--ink-mute);
}

.subbtn {
  min-height: 44px;
  padding: 0.4rem 1.05rem;
  border: 0;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: linear-gradient(145deg, #f3e6ec, #e2edf7);
  box-shadow: var(--raise-sm);
  cursor: pointer;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.subbtn:hover {
  box-shadow: var(--raise);
}

.subbtn:active {
  transform: scale(0.96);
  box-shadow: var(--sink);
}

.foot-legal {
  flex: 0 1 auto;
}

.foot-legal p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-mute);
}

@media (max-width: 880px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    top: auto;
  }

  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .rail-list li {
    display: flex;
  }

  .rail-list a {
    padding: 0.4rem 0.8rem;
  }

  .rail-mark {
    justify-content: flex-start;
    margin-bottom: 0.6rem;
  }

  .prose section {
    scroll-margin-top: 170px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: 42vh;
    padding: 1.1rem 0 1.5rem;
  }

  .hero-fig .hero-img {
    aspect-ratio: 4 / 3;
  }

  .cut {
    height: 16px;
    margin-bottom: 1.3rem;
  }

  .nav-list a {
    padding: 0.45rem 0.75rem;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .foot-nav {
    flex: 1 1 100%;
  }

  .subinput {
    width: 100%;
    min-width: 0;
  }

  .subform {
    width: 100%;
    max-width: 320px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

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