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

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

:root {
  --rose: #eb879c;
  --pink: #ffb6c1;
  --ink: #26171a;
  --bg: #211417;
  --text: #f2e6e9;
  --mut: #c9afb5;
  --line: rgba(235, 135, 156, .24);
  --r: 18px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --sh: 0 2px 4px rgba(0, 0, 0, .32), 0 10px 26px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .055);
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Barlow, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  background:
    radial-gradient(760px 520px at 90% -8%, rgba(235, 135, 156, .22), transparent 62%),
    radial-gradient(620px 460px at -12% 46%, rgba(255, 182, 193, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--pink); text-decoration: none; transition: color .22s var(--ease); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; }

/* ---------- ticker ---------- */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: .03em;
  color: #2a1116;
  background: linear-gradient(90deg, var(--pink), var(--rose) 52%, var(--pink));
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.ticker span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100%; }

/* ---------- rail ---------- */
.rail {
  position: fixed;
  inset: 34px 0 auto 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(33, 20, 23, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #f3a9b7, var(--rose));
  color: #2a1116;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 18px rgba(235, 135, 156, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.mark img { display: block; width: 40px; height: 40px; object-fit: contain; }

.jump { position: relative; }
.jump details { position: relative; }

.jump summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 19px;
  letter-spacing: .1em;
  box-shadow: var(--sh);
}
.jump summary::-webkit-details-marker { display: none; }
.jump summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(45deg);
  transition: transform .24s var(--ease);
}
.jump details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.jump menu,
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jump menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(74vw, 300px);
  max-height: 66vh;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #2e1b1f;
  box-shadow: var(--sh);
}
.jump menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  color: var(--text);
  font-size: 16px;
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
}
.jump menu a:hover { background: rgba(235, 135, 156, .16); border-left-color: var(--rose); color: #fff; }

/* ---------- main ---------- */
main {
  padding: 150px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

section {
  order: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: center;
  padding: 26px 22px;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(235, 135, 156, .2), rgba(255, 255, 255, .035) 58%);
  box-shadow: var(--sh);
}

.badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 13px;
  border-radius: 999px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  letter-spacing: .14em;
  color: #33131c;
  background: linear-gradient(120deg, var(--pink), var(--rose));
  box-shadow: 0 3px 10px rgba(235, 135, 156, .34);
}

h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(31px, 6.2vw, 47px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}

.lede { margin: 14px 0 0; max-width: 46ch; color: var(--mut); font-size: 16px; }

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--rose);
  color: #2a1116;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .07em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 22px rgba(235, 135, 156, .3);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.cta:hover { transform: translateY(-2px); background: var(--pink); color: #2a1116; }

.hero-art {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--sh);
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- content sections ---------- */
section > article:not(.hero) {
  position: relative;
  padding: 26px 22px 32px;
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .058), rgba(255, 255, 255, .024));
  box-shadow: var(--sh);
}
section > article:not(.hero)::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 12px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), rgba(255, 182, 193, 0));
}

section h2,
section h3 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .01em;
}
section h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 3.7vw, 31px);
  line-height: 1.24;
  color: #fff;
}
section h3 { margin: 20px 0 8px; font-size: 20px; color: var(--pink); }
section h2 > span,
section h3 > span { display: inline-block; }
section h2 > span::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 9px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

section p { margin: 0 0 14px; }
section ul,
section ol { margin: 0 0 16px; padding-left: 22px; }
section li { margin: 6px 0; }
section li::marker { color: var(--rose); }
section strong { color: #fff; }
section time { font-family: "Barlow Condensed", sans-serif; letter-spacing: .06em; color: var(--pink); }
section blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--rose);
  border-radius: 0 12px 12px 0;
  background: rgba(235, 135, 156, .1);
  color: var(--mut);
}
section table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 16px; }
section th,
section td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
section th { background: rgba(235, 135, 156, .15); color: #fff; }
section code { font-size: 15px; padding: 1px 5px; border-radius: 5px; background: rgba(0, 0, 0, .35); }

/* ---------- aside ---------- */
.side {
  order: 2;
  padding: 18px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  box-shadow: var(--sh);
}
.side-h {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  letter-spacing: .18em;
  color: var(--pink);
}
.side-h > span { display: inline-block; }
.side-h > span::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--rose);
}
.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--text);
  font-size: 16px;
  transition: background .24s var(--ease), color .24s var(--ease);
}
.side-list a:hover { background: rgba(235, 135, 156, .16); color: #fff; }

/* ---------- footer ---------- */
.foot {
  margin-top: 36px;
  padding: 34px 16px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 62%);
}
.foot-in { display: grid; gap: 26px; max-width: 800px; }
.foot-h {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(40px, 9.5vw, 66px);
  line-height: .94;
  letter-spacing: -.01em;
  background: linear-gradient(120deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
address { margin-top: 12px; font-style: normal; font-size: 16px; color: var(--mut); }
address strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 19px;
  letter-spacing: .08em;
  color: #fff;
  font-weight: 600;
}
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-links a { display: flex; align-items: center; min-height: 42px; padding: 4px 0; color: var(--text); }
.foot-links a:hover { color: var(--pink); }
.copy {
  max-width: 800px;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--mut);
}
.copy a { display: inline-flex; align-items: center; min-height: 40px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- medium ---------- */
@media (min-width: 560px) {
  .foot-links ul { grid-template-columns: 1fr 1fr; }
  .hero { padding: 30px 26px; }
}

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.12fr .88fr; align-items: center; min-height: 45vh; padding: 30px 32px; }
  .foot-in { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- desktop rail ---------- */
@media (min-width: 960px) {
  body { padding-left: 0; }

  .ticker { left: 248px; justify-content: center; }

  .rail {
    inset: 0 auto 0 0;
    width: 248px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 26px;
    padding: 48px 20px 26px;
    background: linear-gradient(180deg, #2b1a1e, #211417);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    backdrop-filter: none;
  }

  .jump { width: 100%; }
  .jump summary { width: 100%; }

  .jump menu {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    display: grid !important;
    gap: 2px;
  }
  .jump details::details-content { display: block; }

  main {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-areas: "side main";
    align-items: start;
    gap: 32px;
    max-width: 1220px;
    margin: 0 0 0 248px;
    padding: 76px 32px 48px;
  }
  aside { grid-area: side; position: sticky; top: 76px; }
  section { grid-area: main; }

  .foot { margin-left: 248px; padding: 44px 32px 26px; }
  .foot-in { max-width: 900px; }
  .copy { max-width: none; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

section > article:not(.hero),
section h1,
section h2 { scroll-margin-top: 130px; }

@media (min-width: 960px) {
  section > article:not(.hero),
  section h2 { scroll-margin-top: 90px; }
}

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