@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --ink: #26171a;
  --ink-2: #37212a;
  --ink-3: #442832;
  --rose: #eb879c;
  --blush: #ffb6c1;
  --txt: #fbeaee;
  --muted: #ecc6cf;
  --line: rgba(255, 182, 193, 0.2);
  --r: 10px;
  --sh1: 0 1px 2px rgba(14, 6, 9, 0.4);
  --sh2: 0 2px 4px rgba(14, 6, 9, 0.35), 0 12px 26px -14px rgba(14, 6, 9, 0.9);
  --sh3: 0 3px 6px rgba(14, 6, 9, 0.4), 0 18px 40px -18px rgba(14, 6, 9, 0.95);
}

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

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

body {
  margin: 0;
  font-family: Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--txt);
  background:
    radial-gradient(880px 480px at 84% -8%, #3d222b 0%, rgba(61, 34, 43, 0) 62%),
    radial-gradient(620px 420px at 6% 12%, #33202a 0%, rgba(51, 32, 42, 0) 66%),
    var(--ink);
  overflow-x: hidden;
}

a {
  color: var(--blush);
  text-underline-offset: 3px;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* 顶部：品牌行在上，菜单行在下 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0 18px;
  background: linear-gradient(180deg, #38222b 0%, #2b1a20 72%, rgba(38, 23, 26, 0.96) 100%);
  box-shadow: var(--sh2);
  backdrop-filter: blur(6px);
}

.brand-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: var(--r);
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: var(--sh1);
}

.brand:hover {
  color: var(--blush);
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--rose), var(--blush));
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--sh1);
}

.brand-name {
  padding-right: 2px;
}

.site-head nav {
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
}

.nav-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  max-width: 1120px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--r);
  background: rgba(255, 182, 193, 0.09);
  box-shadow: var(--sh1);
  color: #ffe2e8;
  font-size: 16px;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.nav-link:hover {
  background: linear-gradient(140deg, var(--rose), var(--blush));
  color: var(--ink);
  transform: translateY(-1px);
}

/* 首屏：右对齐文案 + 双图错位 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 30px;
  min-height: 45vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 22px 30px;
}

.hero-copy {
  text-align: right;
  min-width: 0;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(27px, 4.4vw, 42px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: var(--sh1);
}

.lede {
  margin: 0 0 0 auto;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.collage {
  position: relative;
  margin: 0;
  height: clamp(170px, 26vh, 224px);
}

.collage-img,
.collage-blank {
  position: absolute;
  display: block;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: var(--sh3);
}

.collage-img.a,
.collage-blank.a {
  left: 0;
  top: 0;
  width: 62%;
  height: 78%;
  z-index: 1;
  background: linear-gradient(145deg, var(--rose), var(--blush));
}

.collage-img.b,
.collage-blank.b {
  right: 0;
  bottom: 0;
  width: 54%;
  height: 66%;
  z-index: 2;
  border: 3px solid #36222a;
  background: linear-gradient(160deg, var(--blush), #fbd9e0);
}

/* 正文 + 右侧栏 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  align-items: start;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 22px 64px;
}

.prose {
  min-width: 0;
}

section[id] {
  scroll-margin-top: 186px;
}

.prose section {
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}

.prose section:first-child {
  border-top: 0;
  padding-top: 2px;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.34;
  font-weight: 700;
  color: #fff;
}

.prose h2 span {
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

.prose h2 span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--blush), var(--rose));
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--blush);
}

.prose h3 span {
  display: inline-block;
  padding-left: 12px;
  border-left: 3px solid rgba(255, 182, 193, 0.45);
}

.prose p {
  margin: 0 0 14px;
}

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

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin: 7px 0;
}

.prose li::marker {
  color: var(--rose);
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: rgba(255, 182, 193, 0.09);
  box-shadow: var(--sh1);
  color: var(--txt);
}

.prose img {
  border-radius: var(--r);
  box-shadow: var(--sh2);
}

.prose figure {
  margin: 0 0 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--blush);
  font-weight: 500;
}

.side {
  position: sticky;
  top: 190px;
  padding: 16px 16px 18px;
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--ink-2), #2a1a1f);
  box-shadow: var(--sh3);
}

.side-h {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--blush);
}

.side-h span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid rgba(235, 135, 156, 0.75);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 182, 193, 0.08);
  box-shadow: var(--sh1);
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
  transition: background 220ms ease, transform 220ms ease;
}

.side-list a:hover {
  background: rgba(255, 182, 193, 0.2);
  transform: translateY(-2px);
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rose), #f2a9b7);
  box-shadow: var(--sh2);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh3);
}

/* 页脚：单行极简 */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 22px 44px;
  border-top: 1px solid var(--line);
}

.foot-h {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--blush);
  letter-spacing: 0.06em;
}

.site-foot address {
  font-style: normal;
  font-size: 16px;
  color: var(--txt);
}

.foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(255, 182, 193, 0.08);
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
  transition: background 220ms ease;
}

.foot-list a:hover {
  background: rgba(255, 182, 193, 0.22);
  color: #fff;
}

.copy {
  margin: 0 0 0 auto;
  font-size: 16px;
  color: var(--muted);
}

/* 滚动揭示与列表错峰 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms ease, transform 280ms ease;
}

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

.js .side-list li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.js .side.reveal.in .side-list li {
  opacity: 1;
  transform: none;
}

.js .side-list li:nth-child(1) { transition-delay: 40ms; }
.js .side-list li:nth-child(2) { transition-delay: 80ms; }
.js .side-list li:nth-child(3) { transition-delay: 120ms; }
.js .side-list li:nth-child(4) { transition-delay: 160ms; }
.js .side-list li:nth-child(5) { transition-delay: 200ms; }
.js .side-list li:nth-child(6) { transition-delay: 240ms; }
.js .side-list li:nth-child(7) { transition-delay: 280ms; }

/* 断点 */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .side {
    position: static;
    order: 2;
  }

  .side-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section[id] {
    scroll-margin-top: 200px;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 26px 18px 24px;
  }

  .collage {
    height: 176px;
  }

  .nav-link {
    padding: 0 11px;
  }

  .wrap {
    padding: 4px 18px 56px;
  }

  .site-foot {
    padding: 18px 18px 40px;
  }

  .copy {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .side-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-link {
    font-size: 16px;
    padding: 0 10px;
  }

  .collage {
    height: 158px;
  }
}

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

  .js .reveal,
  .js .side-list li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

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