:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --muted: #5c5c5c;
  --line: rgba(31, 31, 31, 0.12);
  --line-soft: rgba(31, 31, 31, 0.07);
  --r: 10px;
  --e1: 0 1px 2px rgba(31, 31, 31, 0.06), 0 3px 8px rgba(31, 31, 31, 0.05);
  --e2: 0 2px 6px rgba(31, 31, 31, 0.06), 0 14px 30px rgba(31, 31, 31, 0.07);
  --e3: 0 4px 12px rgba(31, 31, 31, 0.07), 0 26px 52px rgba(31, 31, 31, 0.09);
  --e4: 0 8px 22px rgba(31, 31, 31, 0.08), 0 44px 84px rgba(31, 31, 31, 0.12);
  --sans: 'Work Sans', 'Outfit', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(31, 31, 31, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 90;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

/* ---------- 导航：品牌行 + 药丸菜单行 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px clamp(16px, 4vw, 44px) 14px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--e1);
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--e1);
  object-fit: cover;
}

.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(140deg, #1f1f1f, #6a6a6a);
  box-shadow: var(--e2);
  transform: translateZ(0);
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 600;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(31, 31, 31, 0.04);
}

.search-input {
  flex: 1 1 120px;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.search-input::placeholder { color: #8a8a8a; }
.search-input:focus { outline: none; }

.search-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--e2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: var(--e3); }

.nav-menu { margin-top: 10px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--e1);
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.nav-menu[open] .menu-toggle::after { transform: rotate(-135deg) translateY(-2px); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  font-size: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: var(--e1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.pills a:hover {
  transform: translateY(-2px);
  box-shadow: var(--e3);
  background: var(--wash);
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - 140px);
  min-height: calc(100svh - 140px);
  padding: clamp(30px, 6vw, 96px) clamp(18px, 5vw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, #ffffff 0%, #f5f5f5 58%, #ececec 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    212deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.55) 46%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(rgba(31, 31, 31, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 5%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 5%, transparent 88%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin-left: auto;
  text-align: right;
  padding: clamp(22px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--e4);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 6.2vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-lead {
  margin: 16px 0 0 auto;
  max-width: 30em;
  font-size: 1rem;
  line-height: 1.75;
  color: #3d3d3d;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--e3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: var(--e4); }

/* ---------- 正文舞台 ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 64px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 4;
}

.sheet {
  min-width: 0;
  padding: clamp(22px, 3.6vw, 52px);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--e2);
}

.sheet section {
  scroll-margin-top: 168px;
}

.sheet section + section {
  margin-top: clamp(34px, 4.5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px dashed var(--line);
}

.sheet h2 {
  margin: 0 0 14px;
  font-size: clamp(1.28rem, 3vw, 1.72rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.sheet h3 {
  margin: 26px 0 10px;
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 600;
}

.sheet p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.sheet ul,
.sheet ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}
.sheet li { margin-bottom: 8px; line-height: 1.75; }

.sheet img {
  border-radius: var(--r);
  box-shadow: var(--e3);
  margin: 22px 0;
}

.sheet a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.sheet a:hover { border-color: var(--ink); }

.sheet blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: var(--wash);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: var(--e1);
}
.sheet blockquote p:last-child { margin-bottom: 0; }

small {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ---------- 侧栏 ---------- */

.rail {
  align-self: start;
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--e3);
  position: relative;
  z-index: 5;
}

.rail-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 600;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 16px;
  color: #383838;
  border-radius: var(--r);
  background: var(--wash);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.rail-list a:hover {
  transform: translateX(-3px);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: var(--e2);
}

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

.foot {
  position: relative;
  z-index: 6;
  margin-top: clamp(30px, 5vw, 70px);
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 56px) 26px;
  color: #f0f0f0;
  background: var(--ink);
  box-shadow: 0 -18px 50px rgba(31, 31, 31, 0.16);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-brand { grid-column: 1 / -1; }

.foot-logo {
  display: inline-block;
  padding: 6px 0;
  min-height: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.sub { margin-top: 14px; max-width: 340px; }

.sub-label {
  display: block;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #a8a8a8;
  margin-bottom: 8px;
}

.sub-row {
  display: flex;
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.sub-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  border-radius: 999px;
}
.sub-input::placeholder { color: #9b9b9b; }
.sub-input:focus { outline: none; }

.sub-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--e2);
  transition: transform 0.2s ease;
}
.sub-btn:hover { transform: translateY(-1px); }

.foot-dl { margin: 0; }

.foot-dl dt {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #a8a8a8;
  margin-bottom: 8px;
}

.foot-dl dd {
  margin: 0;
  font-size: 16px;
}

.foot-dl dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: #eaeaea;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.foot-dl dd a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

.foot-copy {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  color: #a8a8a8;
}

/* ---------- 滚动揭示 ---------- */

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

/* ---------- 断点 ---------- */

@media (min-width: 700px) {
  .foot-grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}

@media (min-width: 1000px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 32px;
  }
  .rail { position: sticky; top: 172px; }
  .hero-inner { padding: 44px 52px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { padding-left: 14px; padding-right: 14px; }
  .hero-inner {
    text-align: left;
    margin-left: 0;
    width: 100%;
    border-radius: 16px;
  }
  .hero-lead { margin-left: 0; }
  .hero-title { font-size: clamp(1.7rem, 8.4vw, 2.4rem); }
  .search-input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-cta:hover,
  .pills a:hover,
  .rail-list a:hover,
  .search-btn:hover { transform: none; }
}

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