@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --ink: #26171a;
  --rose: #eb879c;
  --pink: #ffb6c1;
  --bg: #fff6f8;
  --bg2: #fbe6ec;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --line: rgba(38, 23, 26, 0.16);
  --line-soft: rgba(38, 23, 26, 0.09);
  --r: 4px;
  --pill: 999px;
  --sh-s: 0 2px 4px rgba(38, 23, 26, 0.06), 0 12px 26px -20px rgba(38, 23, 26, 0.55);
  --sh-m: 0 2px 4px rgba(38, 23, 26, 0.08), 0 22px 44px -26px rgba(38, 23, 26, 0.6);
  --font-body: "Cabin", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-hand: "Amatic SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(235, 135, 156, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 12% 4%, rgba(255, 182, 193, 0.5), transparent 46%),
    radial-gradient(circle at 88% 18%, rgba(235, 135, 156, 0.28), transparent 44%);
  background-size: 18px 18px, auto, auto;
}

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

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

h1, h2, h3 {
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

/* ---------- 顶部细条 ---------- */
.sill {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  border-bottom: 1px solid rgba(38, 23, 26, 0.14);
}

.ticker {
  margin: 0;
  padding: 5px 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #3a1f24;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 头部 ---------- */
.site-head {
  position: sticky;
  top: 33px;
  z-index: 55;
  background: linear-gradient(180deg, rgba(255, 246, 248, 0.95), rgba(255, 246, 248, 0.74));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 14px 10px;
}

.mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--sh-s);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.mark:hover { transform: rotate(-8deg) scale(1.06); box-shadow: var(--sh-m); }
.mark svg { width: 22px; height: 22px; fill: var(--rose); }

.site-head nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-head nav::-webkit-scrollbar { display: none; }

.site-head nav p {
  margin: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.site-head nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 15px;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--sh-s);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.site-head nav a:hover,
.site-head nav a:focus-visible {
  background: var(--rose);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- 主区通用 ---------- */
main { display: block; }

main > section[id] {
  width: calc(100% - 32px);
  max-width: var(--wrap);
  margin: 20px auto;
  padding: 30px 22px;
  scroll-margin-top: 110px;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: box-shadow 260ms ease, transform 260ms ease;
}

main > section[id]:hover { box-shadow: var(--sh-m); }

main > section[id] h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.1rem);
  position: relative;
  padding-bottom: 12px;
}

main > section[id] h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

main > section[id] h3 {
  font-size: 1.28rem;
  margin-top: 1.5em;
}

main > section[id] p { max-width: 68ch; }

main > section[id] ul,
main > section[id] ol { padding-left: 1.25em; max-width: 68ch; }

main > section[id] li { margin-bottom: 0.5em; }

main > section[id] a {
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

main > section[id] a:hover { background: rgba(255, 182, 193, 0.42); }

main > section[id] img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
}

main > section[id] blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 182, 193, 0.2);
}

main > section[id] blockquote p { margin: 0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 20px 130px;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 46% 46% / 0 0 78px 78px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.9), transparent 62%),
    linear-gradient(165deg, var(--bg2), #ffe9ef 62%, #fff3f6);
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(38, 23, 26, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 246, 248, 0.62) 0%, rgba(255, 246, 248, 0.34) 42%, rgba(255, 246, 248, 0.92) 100%);
  background-size: 16px 16px, auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  margin: 0 0 0.35em;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero .lead {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 1.06rem;
  color: #3d262a;
  background: var(--glass-strong);
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  padding: 12px 24px;
  box-shadow: var(--sh-s);
}

/* ---------- 简介区（侧栏在左） ---------- */
.brief {
  display: grid;
  grid-template-columns: minmax(180px, 226px) 1fr;
  gap: 26px;
  align-items: start;
  width: calc(100% - 32px);
  max-width: var(--wrap);
  margin: 54px auto 10px;
  scroll-margin-top: 110px;
}

.rail {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
  padding: 12px;
  position: sticky;
  top: 100px;
}

.rail ul { list-style: none; margin: 0; padding: 0; }

.rail li { margin: 0; }

.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--r);
  border-bottom: 1px dashed var(--line-soft);
  transition: background 220ms ease, padding-left 220ms ease;
}

.rail li:last-child a { border-bottom: 0; }

.rail a:hover {
  background: rgba(255, 182, 193, 0.4);
  padding-left: 18px;
}

.brief-copy { padding-top: 6px; }

.brief-copy h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.2em;
}

.brief-copy h2::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.subtitle {
  margin: 0;
  font-size: 1.02rem;
  color: #5b3940;
  max-width: 46ch;
}

/* ---------- 叶脚 ---------- */
.site-foot {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(rgba(235, 135, 156, 0.26) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 246, 248, 0.9), var(--bg2));
  background-size: 18px 18px, auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 26px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 46px 20px 26px;
  align-items: start;
}

.foot-word {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1;
  color: var(--rose);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85);
}

.foot-grid address {
  font-style: normal;
  display: grid;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.foot-brand { font-weight: 700; letter-spacing: 0.14em; }

.foot-host code { font-size: 15px; }

.foot-top {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 16px;
  margin-top: 4px;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  box-shadow: var(--sh-s);
}

.foot-top:hover { background: var(--rose); color: #fff; }

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
}

.foot-links a:hover { color: #a24c62; border-bottom-color: var(--rose); }

.foot-base {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px 30px;
  border-top: 1px solid var(--line-soft);
}

.foot-base p { margin: 0; font-size: 16px; color: #5b3940; }

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .foot-word { font-size: clamp(2.4rem, 14vw, 3.4rem); }
  .foot-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .brief { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .rail { position: static; }
  .rail ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .rail a { border-bottom: 0; }
  main > section[id] { width: calc(100% - 24px); padding: 24px 16px; margin: 14px auto; }
  .hero { padding: 96px 18px 110px; border-radius: 0 0 40% 40% / 0 0 52px 52px; }
  .hero .lead { border-radius: var(--r); padding: 12px 16px; font-size: 1rem; }
  .site-head { top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mark, .site-head nav a, main > section[id], .rail a { transition: none; }
}

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