@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --pink: #eb879c;
  --pink2: #ffb6c1;
  --ink: #26171a;
  --bg: #1a1013;
  --bg2: #231519;
  --surface: #2b1a1f;
  --surface2: #341f25;
  --text: #f9ecef;
  --muted: #cfb1b9;
  --body: #e6d2d7;
  --line: rgba(255, 182, 193, 0.16);
  --line-strong: rgba(255, 182, 193, 0.32);
  --r: 28px;
  --r-sm: 12px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 38px rgba(10, 5, 7, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.32), 0 8px 20px rgba(10, 5, 7, 0.4);
  --ease: 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(90% 60% at 88% -8%, rgba(235, 135, 156, 0.22), transparent 62%),
    radial-gradient(70% 46% at 4% 12%, rgba(255, 182, 193, 0.11), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 46%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Inter, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

a {
  color: var(--pink2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink2);
  outline-offset: 3px;
  border-radius: 10px;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

/* 顶部两行：品牌独占一行，菜单行在下 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px clamp(14px, 3vw, 30px) 12px;
  background: linear-gradient(180deg, rgba(26, 16, 19, 0.97), rgba(26, 16, 19, 0.84));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  min-height: 46px;
  padding-right: 6px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}

.brand:hover {
  color: var(--pink2);
  transform: translateY(-1px);
}

.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand-mark-plain {
  display: inline-block;
  background:
    linear-gradient(140deg, var(--pink) 0 52%, transparent 52%),
    linear-gradient(320deg, var(--pink2) 0 58%, #6f3846 58%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.menu {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 0 calc(-1 * clamp(14px, 3vw, 30px));
  padding: 2px clamp(14px, 3vw, 30px);
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 182, 193, 0.07);
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: var(--ink);
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  border-color: transparent;
  transform: translateY(-1px);
}

.ico {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pink);
  transform: rotate(45deg);
  transition: background var(--ease);
}

.menu-list a:hover .ico,
.menu-list a:focus-visible .ico {
  background: var(--ink);
}

main {
  display: block;
  padding: 0 clamp(14px, 3vw, 30px);
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 42px);
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(30px, 8vh, 88px);
  overflow: hidden;
}

.hero-copy {
  margin-left: auto;
  max-width: min(100%, 780px);
  text-align: right;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 7vw, 4.15rem);
  line-height: 1.05;
}

.hero-desc {
  max-width: 44ch;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.hero-art {
  position: relative;
  flex: 1 1 auto;
  min-height: 36vh;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--surface);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3), 0 -18px 44px rgba(10, 5, 7, 0.5);
  clip-path: polygon(0 11%, 100% 0, 100% 100%, 0 100%);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 36vh;
  object-fit: cover;
  transform: translate3d(0, var(--plx, 0px), 0);
  will-change: transform;
}

.hero-plate {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 36vh;
  background:
    radial-gradient(58% 76% at 72% 18%, rgba(235, 135, 156, 0.55), transparent 72%),
    radial-gradient(50% 60% at 12% 88%, rgba(255, 182, 193, 0.24), transparent 70%),
    linear-gradient(160deg, #3c2029, #1d1216);
}

.band {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 14px;
  background: linear-gradient(90deg, var(--pink), var(--pink2) 58%, #7d3e4e);
  transform: skewY(-2.4deg);
  transform-origin: left bottom;
  opacity: 0.95;
}

/* 正文纸面 */
.sheet {
  max-width: 960px;
  margin: clamp(26px, 6vw, 62px) auto 0;
  padding: clamp(22px, 4vw, 54px);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.sheet-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
}

hr {
  width: 90px;
  height: 3px;
  margin: 0 0 22px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), rgba(255, 182, 193, 0));
}

.stripe {
  height: 10px;
  margin: 0 0 10px;
  border-radius: 6px;
  background: repeating-linear-gradient(115deg, rgba(255, 182, 193, 0.34) 0 12px, transparent 12px 26px);
}

.sheet div[id] {
  scroll-margin-top: 138px;
  padding-block: clamp(24px, 4.5vw, 42px);
}

.sheet div[id] + div[id] {
  border-top: 1px solid var(--line);
}

.sheet div[id] > h2 {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 3vw, 1.78rem);
}

.sheet div[id] > h3 {
  margin: 26px 0 10px;
  font-size: 1.14rem;
  color: var(--pink2);
}

.sheet p {
  max-width: 68ch;
  margin: 0 0 15px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.8;
}

.sheet ul,
.sheet ol {
  max-width: 66ch;
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--body);
}

.sheet li {
  margin-bottom: 9px;
  line-height: 1.75;
}

.sheet li::marker {
  color: var(--pink);
}

.sheet strong {
  color: var(--pink2);
}

.sheet a {
  transition: color var(--ease);
}

.sheet a:hover {
  color: var(--pink);
}

.sheet blockquote {
  margin: 0 0 18px;
  padding: 14px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 182, 193, 0.07);
  color: var(--muted);
}

.sheet blockquote p:last-child {
  margin-bottom: 0;
}

.sheet figure {
  margin: 0 0 18px;
}

.sheet img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft);
}

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 26px;
  margin-top: clamp(30px, 6vw, 64px);
  padding: clamp(24px, 5vw, 46px) clamp(14px, 3vw, 30px) 38px;
  border-top: 1px solid var(--line);
}

.foot-line {
  display: flex;
  align-items: center;
}

.foot-line p {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.foot-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink2);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.foot-line a:hover {
  color: var(--ink);
  background: linear-gradient(135deg, var(--pink), var(--pink2));
  border-color: transparent;
}

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity var(--ease), transform var(--ease);
}

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

@media (max-width: 860px) {
  .hero-art,
  .hero-img,
  .hero-plate {
    min-height: 32vh;
  }

  .sheet {
    margin-top: 26px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 9.4vw, 2.5rem);
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-art {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    border-radius: var(--r) var(--r) 0 0;
  }

  .sheet {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .sheet div[id] {
    scroll-margin-top: 152px;
  }

  .menu-list a {
    min-height: 44px;
    padding: 0 13px;
  }

  .foot {
    gap: 6px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .hero-img {
    transform: none;
  }

  .menu-list a,
  .foot-line a,
  .brand {
    transition: none;
  }
}

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