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

:root {
  --white: #ffffff;
  --mist: #f5f5f5;
  --ink: #1f1f1f;
  --ink-soft: #4a4a4a;
  --ink-faint: #6d6d6d;
  --line: rgba(31, 31, 31, 0.10);
  --line-soft: rgba(31, 31, 31, 0.06);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --r: 18px;
  --e1: 0 1px 2px rgba(31, 31, 31, 0.06), 0 2px 6px rgba(31, 31, 31, 0.05);
  --e2: 0 4px 12px rgba(31, 31, 31, 0.08), 0 10px 24px rgba(31, 31, 31, 0.06);
  --e3: 0 10px 26px rgba(31, 31, 31, 0.10), 0 22px 50px rgba(31, 31, 31, 0.08);
  --e4: 0 18px 42px rgba(31, 31, 31, 0.14), 0 38px 84px rgba(31, 31, 31, 0.10);
  --font-display: 'Baloo 2', 'Comic Neue', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Comic Neue', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background:
    radial-gradient(58vw 58vw at 88% -12%, #ececec 0%, rgba(236, 236, 236, 0) 62%),
    radial-gradient(52vw 52vw at 2% 14%, #f0f0f0 0%, rgba(240, 240, 240, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 42%, #ffffff 100%);
  background-attachment: fixed;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

:focus-visible {
  outline: 3px solid rgba(31, 31, 31, 0.55);
  outline-offset: 3px;
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.6;
  will-change: transform;
}

.b1 {
  width: 46vmax; height: 46vmax;
  left: -14vmax; top: -10vmax;
  background: radial-gradient(circle at 40% 40%, #e4e4e4, rgba(255, 255, 255, 0) 70%);
}

.b2 {
  width: 34vmax; height: 34vmax;
  right: -8vmax; top: 32vh;
  background: radial-gradient(circle at 50% 50%, #eaeaea, rgba(255, 255, 255, 0) 72%);
}

.b3 {
  width: 28vmax; height: 28vmax;
  left: 22vw; bottom: -12vmax;
  background: radial-gradient(circle at 50% 50%, #ededed, rgba(255, 255, 255, 0) 74%);
}

/* ---------- 角落品牌 ---------- */
.corner-brand {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: min(62vw, 320px);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--white);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--e2);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.corner-brand:hover { transform: translateY(-2px); box-shadow: var(--e3); }

.corner-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.corner-brand img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- 外壳 ---------- */
main {
  position: relative;
  z-index: 2;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 74px clamp(14px, 4vw, 32px) 0;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
  min-height: 70vh;
  padding: clamp(18px, 4vw, 44px) 0 clamp(30px, 5vw, 56px);
}

.hero-media {
  position: relative;
  z-index: 2;
  transform: translateZ(0);
}

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(155deg, #f2f2f2, #ffffff 60%);
  box-shadow: var(--e4);
  aspect-ratio: 4 / 3;
}

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

.photo.ghost {
  background: conic-gradient(from 210deg at 28% 26%, #ffffff, #ededed, #f8f8f8, #ffffff);
}

.photo.ghost::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--e3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.photo.ghost::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -7%;
  width: 52%;
  height: 40%;
  border-radius: 20px;
  background: rgba(31, 31, 31, 0.08);
  box-shadow: var(--e3);
}

.chip {
  position: absolute;
  z-index: 3;
  left: -10px;
  bottom: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--white);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--e3);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  animation: bob 6s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: right;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ---------- 正文面板 ---------- */
.panel {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(30px, 6vw, 68px);
  padding: clamp(18px, 4vw, 46px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--e3);
}

.prose {
  font-size: 17px;
  line-height: 1.82;
  color: var(--ink);
  max-width: 74ch;
}

.prose article {
  position: relative;
  scroll-margin-top: 92px;
}

.prose [id] { scroll-margin-top: 92px; }

.prose article + article {
  margin-top: 2.6em;
  padding-top: 2.1em;
  border-top: 1px dashed var(--line);
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 1.6em 0 0.5em;
}

.prose article > h2:first-child,
.prose article > h3:first-child { margin-top: 0; }

.prose h2 { font-size: clamp(22px, 3.4vw, 29px); font-weight: 700; }
.prose h3 { font-size: clamp(19px, 2.6vw, 22px); font-weight: 600; }
.prose h4 { font-size: 18px; font-weight: 600; }

.prose h2 + hr,
.prose h3 + hr {
  width: 66px;
  height: 3px;
  margin: 0 0 1.15em;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(31, 31, 31, 0.45), rgba(31, 31, 31, 0.04));
}

.prose hr {
  height: 1px;
  border: 0;
  margin: 2em 0;
  background: var(--line);
}

.prose p { margin: 0 0 1.05em; }

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

.prose li { margin: 0.4em 0; }

.prose li::marker { color: var(--ink-faint); }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 31, 31, 0.3);
  transition: text-decoration-color 0.2s ease;
}

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

.prose img {
  display: block;
  height: auto;
  margin: 1.5em 0;
  border-radius: var(--r);
  box-shadow: var(--e2);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-radius: var(--r);
  border: 1px solid var(--white);
  border-left: 4px solid rgba(31, 31, 31, 0.5);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--e1);
  color: var(--ink-soft);
}

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

.prose code {
  font-size: 0.94em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--mist);
  border: 1px solid var(--line-soft);
}

.prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--mist);
  box-shadow: inset 0 1px 3px rgba(31, 31, 31, 0.07);
}

.prose pre code { padding: 0; border: 0; background: none; }

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--mist); font-weight: 700; }

.prose strong { font-weight: 700; }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 32px) clamp(34px, 7vw, 62px);
}

.foot article {
  padding: 20px 22px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--e2);
}

.f-mark {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.f-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.f-sub { display: flex; align-items: center; }

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.sub input {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: inset 0 1px 2px rgba(31, 31, 31, 0.05);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

.sub input::placeholder { color: var(--ink-faint); }

.sub button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--e2);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sub button:hover { transform: translateY(-2px); box-shadow: var(--e3); }

.f-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

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

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

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--e1);
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.f-links a:hover { transform: translateY(-2px); box-shadow: var(--e2); }

/* ---------- 底部胶囊导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px clamp(10px, 3vw, 26px) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 -12px 34px rgba(31, 31, 31, 0.09);
}

.dock nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
}

.dock ul {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dock ul::-webkit-scrollbar { display: none; }

.dock li { flex: 0 0 auto; }

.dock li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--e1);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  animation: rise 0.44s both;
  animation-delay: calc(var(--i) * 45ms);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.dock li a:hover {
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: var(--e3);
}

.dock .cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--e3);
  animation: rise 0.44s 0.35s both;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dock .cta:hover { transform: translateY(-3px); box-shadow: var(--e4); }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.js .prose article {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .prose article.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
  }

  .hero-copy { order: -1; text-align: right; }
  .lede { max-width: none; }
  .photo { aspect-ratio: 16 / 10; }

  .foot { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding-top: 68px; }
  .foot article { padding: 18px 18px; }
  .chip { left: 10px; bottom: 12px; }
  .dock .cta { padding: 0 16px; }
  .f-base { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .prose article { opacity: 1; transform: none; }
  .blob { transform: none !important; }
}

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