@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

:root {
  --rose: #eb879c;
  --pink: #ffb6c1;
  --ink: #26171a;
  --deep: #1a1013;
  --deep-2: #221418;
  --txt: #f9eef1;
  --muted: #dcc3ca;
  --line: rgba(255, 182, 193, 0.22);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.28), 0 14px 34px rgba(0, 0, 0, 0.32);
  --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --font-body: "Chakra Petch", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Russo One", "Chakra Petch", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  background:
    radial-gradient(900px 640px at 92% -8%, rgba(235, 135, 156, 0.22), rgba(235, 135, 156, 0) 72%),
    radial-gradient(720px 520px at 2% 24%, rgba(255, 182, 193, 0.11), rgba(255, 182, 193, 0) 66%),
    linear-gradient(180deg, var(--deep) 0%, #150d10 60%, var(--deep) 100%);
  background-attachment: fixed;
}

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

a { color: var(--pink); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: #fff;
}

p { margin: 0 0 14px; }

small {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--rose);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(26, 16, 19, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
  min-height: 62px;
}

.menu { position: relative; }
.menu.left { justify-self: start; }

.cluster {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

details > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--txt);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 5px rgba(0, 0, 0, 0.24);
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(45deg);
  transition: transform 240ms ease;
}
details[open] > summary {
  background: var(--glass-2);
  color: #fff;
}
details[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
details > summary:hover { background: var(--glass-2); color: #fff; }

menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 196px;
  border-radius: 16px;
  background: rgba(34, 20, 24, 0.97);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  z-index: 70;
}
.menu.right menu { left: auto; right: 0; }
menu li { margin: 0; }
menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--txt);
  font-size: 16px;
  transition: background 220ms ease, color 220ms ease;
}
menu a:hover { background: rgba(255, 182, 193, 0.16); color: #fff; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}
.brand:hover { color: var(--pink); }
.logo-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 3px 10px rgba(235, 135, 156, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.contact:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(235, 135, 156, 0.5); }

.subbar {
  overflow-x: auto;
  border-top: 1px solid rgba(255, 182, 193, 0.12);
  background: rgba(21, 13, 16, 0.6);
}
.subbar ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 6px 12px;
  max-width: 1180px;
  width: max-content;
  min-width: 100%;
}
.subbar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 220ms ease, color 220ms ease;
}
.subbar a:hover {
  color: #fff;
  background: var(--glass-2);
  border-color: var(--line);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 70px;
  min-height: calc(100svh - 116px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-bg {
  position: absolute;
  top: 2%;
  right: -6%;
  font-family: var(--font-display);
  font-size: clamp(72px, 17vw, 218px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: rgba(255, 182, 193, 0.09);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-text {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  max-width: 520px;
  text-align: right;
  z-index: 2;
}

.kicker {
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--rose);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 60px);
  margin-bottom: 26px;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 8px 26px rgba(235, 135, 156, 0.42);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.cta:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(235, 135, 156, 0.55); }

.hero-fig {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62svh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.6deg);
  background: linear-gradient(150deg, rgba(255, 182, 193, 0.2), rgba(38, 23, 26, 0.85));
  z-index: 1;
}
.hero-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-pic.on { opacity: 1; }

/* ---------- 主体 ---------- */
main { display: block; }

.stage {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 74px;
}

.rail {
  grid-column: 1;
  grid-row: 1 / span 60;
  align-self: start;
  position: sticky;
  top: 128px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.rail h2 { font-size: 21px; margin-bottom: 14px; }
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 16px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.rail-list a:hover {
  color: #fff;
  background: rgba(255, 182, 193, 0.14);
  border-left-color: var(--rose);
}

.stage > div {
  grid-column: 2;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stage > div[id] { scroll-margin-top: 140px; }

.stage h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--rose);
}
.stage h3 { font-size: 19px; color: var(--pink); margin-top: 20px; }
.stage p { color: var(--txt); }
.stage ul, .stage ol { padding-left: 22px; }
.stage li { margin-bottom: 8px; }
.stage a { text-decoration: underline; text-underline-offset: 3px; }
.stage blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 182, 193, 0.1);
  color: var(--muted);
}
.stage img { border-radius: 14px; margin: 12px 0; }
.stage table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
.stage th, .stage td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.stage strong { color: #fff; }

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 0;
  border-top: 1px solid var(--line);
}
footer > div { min-width: 0; }
footer h2 { font-size: 19px; margin-bottom: 12px; }

.f-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.05em;
}
.f-kw { font-size: 16px; color: var(--muted); margin-top: 8px; }

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
footer ul a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: var(--muted);
  transition: color 220ms ease;
}
footer ul a:hover { color: var(--pink); }

.host { font-size: 16px; color: var(--muted); word-break: break-all; }
.f-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sub-form { display: flex; gap: 8px; margin-top: 6px; }
.sub-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
}
.sub-form input::placeholder { color: #b9a2a9; }
.sub-form button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.sub-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(235, 135, 156, 0.45); }

.f-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}
.copy { margin: 0; font-size: 16px; color: var(--muted); }
.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--txt);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, color 220ms ease;
}
.to-top:hover { background: var(--glass-2); color: #fff; }

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.reveal.in { opacity: 1; transform: none; }
.hero-fig.reveal { transform: rotate(-1.6deg) translateY(18px); }
.hero-fig.reveal.in { transform: rotate(-1.6deg); }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 16px 58px;
  }
  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage > div { grid-column: 1; }
  footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }
  .hero-fig {
    grid-column: 1;
    grid-row: 2;
    max-height: none;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 28px 16px 56px; min-height: 0; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
  .hero h1 { margin-bottom: 18px; }
  .hero-bg { font-size: clamp(58px, 20vw, 120px); top: 0; right: -12%; }
  .brand { font-size: 17px; }
  .bar { padding: 6px 12px; gap: 6px; }
  details > summary { padding: 0 12px; }
  .contact { padding: 0 14px; }
  .stage > div { padding: 20px 16px; }
  .stage > div[id] { scroll-margin-top: 124px; }
  .rail { top: auto; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-pic { transition: none; }
}

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