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

:root {
  --ink: #120E14;
  --red: #E8455C;
  --cream: #F2E9DE;
  --soft: rgba(242, 233, 222, 0.62);
  --faint: rgba(242, 233, 222, 0.4);
  --line: rgba(242, 233, 222, 0.16);
  --card: rgba(242, 233, 222, 0.045);
  --r: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 0 108px;
  background: var(--ink);
  color: var(--cream);
  font-family: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lock { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(18, 14, 20, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.bar__nav {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.bar__group { margin: 0; display: flex; gap: 2px; min-width: 0; }
.bar__group--r { justify-content: flex-end; }

.bar__group a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 9px;
  font-size: 16px;
  color: var(--soft);
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.bar__group a:hover { color: var(--cream); background: rgba(242, 233, 222, 0.07); }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 69, 92, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(232, 69, 92, 0.05); } }

.burger {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.2s;
}

.bar.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bar.is-open .burger span:nth-child(2) { opacity: 0; }
.bar.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 全屏遮罩菜单 */
.bar.is-open {
  inset: 0;
  display: block;
  overflow-y: auto;
  padding: 0;
  border-top: 0;
  background: var(--ink);
  animation: sheet 0.35s ease both;
}

@keyframes sheet { from { opacity: 0; } to { opacity: 1; } }

.bar.is-open .bar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 96px 24px 48px;
  gap: 0;
}

.bar.is-open .bar__group {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
}

.bar.is-open .bar__group a {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 8px;
  font-size: 23px;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.bar.is-open .brand {
  order: -1;
  margin-bottom: 26px;
  font-size: 15px;
  letter-spacing: 0.32em;
  opacity: 0.55;
}

.bar.is-open .brand::before { display: none; }

.bar.is-open .burger { position: fixed; top: 18px; right: 14px; border-color: transparent; }

/* ---------- 主区 ---------- */
.pshell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  grid-column: 1 / -1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero__ghost {
  position: absolute;
  top: 4%;
  left: -0.06em;
  font-size: clamp(70px, 17vw, 190px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 233, 222, 0.17);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift { to { transform: translateX(-4%); } }

.hero__collage {
  position: absolute;
  top: 0;
  right: 0;
  width: min(46%, 500px);
  height: 100%;
  pointer-events: none;
}

.hero__pic {
  position: absolute;
  width: 62%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.6);
}

.hero__pic--a {
  top: 7%;
  right: 5%;
  transform: rotate(-5deg);
  animation: floatA 9s ease-in-out infinite alternate;
}

.hero__pic--b {
  bottom: 3%;
  right: 33%;
  width: 47%;
  transform: rotate(6deg);
  animation: floatB 11s ease-in-out infinite alternate;
}

@keyframes floatA { to { transform: rotate(-5deg) translateY(-16px); } }
@keyframes floatB { to { transform: rotate(6deg) translateY(14px); } }

.hero__title {
  position: relative;
  z-index: 2;
  max-width: 15em;
  font-size: clamp(38px, 7.6vw, 90px);
  line-height: 1;
  letter-spacing: -0.038em;
  background: linear-gradient(96deg, var(--cream) 8%, var(--red) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: type 1.5s steps(24) both;
}

@keyframes type {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.hero__title::after {
  content: "";
  display: inline-block;
  width: 0.075em;
  height: 0.82em;
  margin-left: 0.12em;
  vertical-align: -0.04em;
  background: var(--red);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__hint {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--soft);
}

.hero__hint::before { content: ""; width: 34px; height: 1px; background: var(--red); }

/* ---------- 正文 ---------- */
.body { grid-column: 1; min-width: 0; }

.body > article {
  background: var(--card);
  border-radius: var(--r);
  border-bottom: 3px solid var(--red);
  padding: clamp(22px, 3.4vw, 40px);
  scroll-margin-top: 28px;
}

.body > article + article { margin-top: 18px; }

.body > article h2 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 38px); }
.body > article h3 { margin: 24px 0 8px; font-size: clamp(19px, 2.2vw, 24px); }
.body > article p { color: rgba(242, 233, 222, 0.84); }
.body > article :is(h2, h3) + p { margin-top: 0; }
.body > article :is(ul, ol) { padding-left: 1.25em; margin: 0 0 16px; }
.body > article li { margin: 7px 0; }
.body > article a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.body > article img { border-radius: 18px; margin: 16px 0; }
.body > article strong { color: var(--cream); }

p.subtitle {
  margin: 0 0 20px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--soft);
}

/* ---------- 侧栏 ---------- */
.side {
  grid-column: 2;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(242, 233, 222, 0.03);
}

.side__h { font-size: 21px; letter-spacing: 0.01em; }
.side .subtitle { margin: 0 0 4px; }

.side__list {
  list-style: none;
  counter-reset: jump;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side__list li { counter-increment: jump; }

.side__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 8px;
  font-size: 16px;
  color: rgba(242, 233, 222, 0.8);
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.side__list a::before {
  content: counter(jump, decimal-leading-zero);
  flex: none;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

.side__list a:hover {
  color: var(--cream);
  background: rgba(242, 233, 222, 0.07);
  transform: translateX(2px);
}

.side__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.side__label { font-size: 16px; color: var(--soft); }

.side__form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--cream);
  background: rgba(18, 14, 20, 0.65);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.side__form input::placeholder { color: var(--faint); }
.side__form input:focus { outline: 2px solid var(--red); outline-offset: 1px; }

.side__form button {
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.16s, filter 0.2s;
}

.side__form button:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 20px;
  max-width: 1240px;
  margin: clamp(40px, 6vw, 80px) auto 0;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.foot__col { margin: 0; font-size: 16px; }
.foot__col strong { display: block; font-size: 20px; letter-spacing: 0.01em; }

.foot__col--links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px 14px;
}

.foot__col--links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--soft);
  transition: color 0.2s;
}

.foot__col--links a:hover { color: var(--red); }

.foot__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--soft);
  transition: color 0.2s;
}

.foot__top:hover { color: var(--red); }

.foot__base {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: var(--soft);
}

.foot__note {
  grid-column: 1 / -1;
  display: block;
  padding-bottom: 10px;
  text-align: center;
  font-size: 16px;
  color: var(--faint);
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .pshell { grid-template-columns: minmax(0, 1fr); }
  .body { grid-column: 1; }
  .side { grid-column: 1; position: static; order: 2; }
  .hero { min-height: 68vh; }
}

@media (max-width: 820px) {
  .bar__group a { display: none; }
  .bar.is-open .bar__group a { display: flex; }
  .hero__collage { width: 62%; opacity: 0.5; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__col:first-child { grid-column: 1 / -1; }
  .foot__col--links { gap: 2px 12px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; padding-bottom: 100px; }
  .hero { padding: 54px 0 32px; gap: 12px; }
  .hero__collage { width: 72%; opacity: 0.4; }
  .hero__ghost { top: 2%; }
  .body > article { padding: 22px 18px; }
  .side { padding: 18px; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

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