@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

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

:root {
  --rose: #eb879c;
  --pink: #ffb6c1;
  --ink: #26171a;
  --muted: #6b5560;
  --paper: #fdf3f5;
  --glass: rgba(255, 255, 255, 0.66);
  --line: rgba(38, 23, 26, 0.10);
  --r: 10px;
  --sh: 0 1px 2px rgba(38, 23, 26, 0.05), 0 8px 20px rgba(235, 135, 156, 0.18), 0 20px 44px rgba(38, 23, 26, 0.06);
  --ease: 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: 'Public Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16% 6%, rgba(255, 182, 193, 0.52), transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(235, 135, 156, 0.32), transparent 46%),
    radial-gradient(circle at 62% 94%, rgba(255, 255, 255, 0.92), transparent 52%);
  background-attachment: fixed;
}

img, svg, video, iframe, canvas { max-width: 100%; }

h1, h2, h3 {
  font-family: 'Lexend Mega', 'Public Sans', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0;
  overflow-wrap: anywhere;
}

h2 span, h3 span {
  display: inline-block;
  padding-bottom: 2px;
  background-image: linear-gradient(transparent 64%, rgba(235, 135, 156, 0.42) 64%);
  background-repeat: no-repeat;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(235, 135, 156, 0.85);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 左栏 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 264px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(253, 243, 245, 0.72));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand img, .brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: var(--sh);
}

.brand-mark {
  display: grid;
  place-items: center;
  font-size: 18px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.brand-name { min-width: 0; overflow-wrap: anywhere; }

.finder { margin: 0; min-width: 0; }

.finder input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: inset 0 1px 2px rgba(38, 23, 26, 0.05);
  transition: border-color var(--ease), background var(--ease);
}

.finder input::placeholder { color: #7d6670; }

.finder input:focus {
  border-color: var(--rose);
  background: #fff;
  outline: 3px solid rgba(235, 135, 156, 0.55);
  outline-offset: 2px;
}

.dock { border-radius: var(--r); min-width: 0; }

.dock summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--sh);
  transition: background var(--ease);
}

.dock summary::-webkit-details-marker { display: none; }
.dock summary:hover { background: #fff; }

.bars {
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  background:
    linear-gradient(var(--rose), var(--rose)) 0 0 / 16px 2px no-repeat,
    linear-gradient(var(--rose), var(--rose)) 0 5px / 16px 2px no-repeat,
    linear-gradient(var(--rose), var(--rose)) 0 10px / 16px 2px no-repeat;
}

.dock-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dock-list li[hidden] { display: none; }

.dock-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r);
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.dock-list li a:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh);
  transform: translateX(3px);
}

.ico {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  transform: rotate(45deg);
  transition: transform var(--ease);
}

.dock-list li a:hover .ico { transform: rotate(0deg) scale(1.15); }

/* 主区 */
.stage {
  margin-left: 264px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 36px;
  align-items: start;
  padding: 0 40px 0;
}

.doc { min-width: 0; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  padding: 56px 0 48px;
}

.hero-text { max-width: 34rem; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(235, 135, 156, 0.5);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--sh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(235, 135, 156, 0.24);
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 30rem;
  overflow-wrap: anywhere;
}

.hero-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 1px solid rgba(38, 23, 26, 0.12);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--sh);
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}

.btn:hover { transform: translateY(-2px); filter: saturate(1.08); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(38, 23, 26, 0.16);
}

.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 62vh;
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(255, 182, 193, 0.9), rgba(235, 135, 156, 0.55) 58%, rgba(38, 23, 26, 0.16));
  box-shadow: var(--sh);
}

.orb {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), transparent 46%),
    radial-gradient(circle at 72% 74%, rgba(38, 23, 26, 0.2), transparent 54%);
}

.hero-art .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-art .hero-logo {
  position: relative;
  z-index: 1;
  width: 46%;
  max-width: 220px;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.float {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh);
  font-weight: 700;
  font-size: 16px;
  overflow-wrap: anywhere;
}

/* 正文段 */
.doc > article:not(.hero) {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  max-width: 70ch;
  min-width: 0;
  overflow-wrap: anywhere;
  scroll-margin-top: 20px;
}

.doc > article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 16px;
}

.doc > article h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.6em;
}

.doc > article p { margin: 0 0 1.05em; }
.doc > article p:last-child { margin-bottom: 0; }

.doc > article ul, .doc > article ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
}

.doc > article li { margin: 0.35em 0; }

.doc > article a {
  color: #ac4763;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.doc > article a:hover { color: var(--ink); }

.doc > article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.1em 0;
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.doc > article figure {
  margin: 1.1em 0;
  max-width: 100%;
}

.doc > article blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 255, 255, 0.66);
  overflow-wrap: anywhere;
}

.doc > article table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.1em 0;
  border-collapse: collapse;
  font-size: 16px;
}

.doc > article th, .doc > article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

.doc > article th { background: rgba(255, 182, 193, 0.28); }

.doc > article pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.1em 0;
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.doc > article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(38, 23, 26, 0.07);
  overflow-wrap: anywhere;
}

.doc > article pre code { padding: 0; background: none; white-space: pre; }

.doc > article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* 右栏 */
.side {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  position: sticky;
  top: 24px;
  padding: 40px 0;
}

.panel {
  padding: 16px;
  min-width: 0;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--glass);
  box-shadow: var(--sh);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel h2 {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.side-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--r);
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: background var(--ease);
}

.side-list a:hover { background: rgba(235, 135, 156, 0.2); }

/* 页脚 */
.foot {
  margin-left: 264px;
  padding: 48px 40px 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 182, 193, 0.24));
}

.foot .cta {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 30px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--sh);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.foot .cta h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
}

.foot-grid dl { margin: 0; min-width: 0; }

.foot-grid dt {
  font-weight: 800;
  font-size: 16px;
  color: #a8425f;
}

.foot-grid dd { margin: 4px 0 0; }

.foot-grid dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
  transition: border-color var(--ease);
}

.foot-grid dd a:hover { border-bottom-color: var(--rose); }

.base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

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

@keyframes slide {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .hero-text > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-art { animation: rise 0.6s 0.1s both; }
  .float { animation: bob 5s ease-in-out infinite; }
  .dock-list li a { animation: slide 0.3s both; animation-delay: calc(var(--i, 0) * 40ms); }
}

@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;
  }
}

@media (max-width: 1180px) {
  .stage { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; padding: 0 24px; }
  .foot { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 959px) {
  .rail {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.86);
  }

  .brand { order: 1; flex: 1 1 auto; min-width: 0; }
  .finder { order: 2; flex: 1 1 148px; min-width: 0; }
  .dock { order: 3; flex: 1 1 100%; min-width: 0; }

  .dock summary { justify-content: flex-start; }

  .dock-list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0 0 4px;
  }

  .dock-list li { flex: 0 0 auto; }

  .dock-list li a {
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
  }

  .dock-list li a:hover { transform: none; }

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

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 0 24px;
  }

  .hero h1 {
    margin: 12px 0 12px;
    font-size: clamp(1.7rem, 7.4vw, 2.3rem);
  }

  .hero-art {
    min-height: 0;
    width: 100%;
    aspect-ratio: 16 / 11;
  }

  .doc > article:not(.hero) {
    max-width: none;
    padding: 32px 0;
  }

  .side {
    position: static;
    padding: 8px 0 32px;
  }

  .foot {
    margin-left: 0;
    padding: 28px 16px;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .foot .cta { padding: 22px; }
}

@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
  .finder { flex: 1 1 100%; }
  .hero h1 { font-size: clamp(1.55rem, 8vw, 2rem); }
  .float { font-size: 15px; padding: 7px 12px; }
}

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