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

:root {
  --pink: #eb879c;
  --pink-soft: #ffb6c1;
  --ink: #26171a;
  --paper: #fdf5f3;
  --card: #ffffff;
  --line: #eeddd9;
  --line-soft: #f7ebe8;
  --muted: #6f5b5d;
  --shadow-s: 0 1px 2px rgba(38, 23, 26, .06), 0 2px 6px rgba(38, 23, 26, .05);
  --shadow-m: 0 2px 4px rgba(38, 23, 26, .06), 0 10px 24px rgba(38, 23, 26, .08);
  --shadow-l: 0 4px 10px rgba(38, 23, 26, .08), 0 20px 44px rgba(38, 23, 26, .12);
  --dock: 68px;
  --ease: 240ms cubic-bezier(.2, .7, .3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + 28px);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(235, 135, 156, .16) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

/* 角落品牌标 */
.mark {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-m);
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease);
}

.mark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-l);
}

.mark-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.mark-txt {
  font-size: 19px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
}

/* 首屏 */
.stage {
  padding: 0;
}

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(158deg, #26171a 0%, #45242c 52%, #7d4553 100%);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  clip-path: ellipse(165% 100% at 50% 0%);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  display: block;
  opacity: .82;
  transform: translateY(0) scale(1.04);
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(96deg, rgba(38, 23, 26, .9) 0%, rgba(38, 23, 26, .55) 52%, rgba(38, 23, 26, .18) 100%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 68%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 68%);
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 22px 46px;
  text-align: left;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .01em;
  max-width: 20em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

/* 栏格 */
.cols {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 0;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 78px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-s);
  padding: 18px 16px 12px;
}

.rail-h {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--pink);
}

.rail-rule {
  border: 0;
  height: 2px;
  margin: 9px 0 12px;
  background: linear-gradient(90deg, var(--pink), rgba(235, 135, 156, 0));
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 4px;
  font-size: .95rem;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color var(--ease), padding-left var(--ease);
}

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

.rail-list a:hover {
  color: var(--pink);
  padding-left: 10px;
}

.tenor {
  min-width: 0;
}

.wrap {
  min-width: 0;
}

.slab {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-m);
  padding: clamp(20px, 4vw, 46px);
}

/* 正文 */
.prose {
  font-size: 1.02rem;
  line-height: 1.9;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose h2 {
  margin: 2.2em 0 .55em;
  padding-left: 14px;
  border-left: 6px solid var(--pink);
  font-size: clamp(1.22rem, 3.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
}

.prose h3 {
  margin: 1.7em 0 .5em;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a2c31;
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 1.2em 0 1.6em;
  background: linear-gradient(90deg, var(--pink-soft), rgba(255, 182, 193, 0));
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.prose li {
  margin: .4em 0;
}

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

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: #fff6f7;
  border-left: 5px solid var(--pink-soft);
  box-shadow: var(--shadow-s);
}

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

.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.4em 0;
  box-shadow: var(--shadow-m);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: .95rem;
}

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

.prose th {
  background: #fff4f5;
}

.prose section[id] {
  scroll-margin-top: 24px;
  scroll-margin-bottom: calc(var(--dock) + 40px);
}

.prose section + section {
  margin-top: 1.8em;
  padding-top: .4em;
  border-top: 1px dashed var(--line);
}

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: 66px auto 0;
  padding: 36px 22px 26px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.foot > section {
  min-width: 0;
}

.giant {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .02em;
  color: var(--pink);
}

.foot-h {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--muted);
}

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

.foot-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  font-size: .94rem;
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}

.foot-list a:hover {
  color: var(--pink);
  transform: translateX(4px);
}

.foot-keyword {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
  line-height: 1.9;
}

.foot-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  font-size: .92rem;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform var(--ease), box-shadow var(--ease), color var(--ease);
}

.foot-top-link:hover {
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.copy {
  margin: 0;
  font-size: .86rem;
  color: var(--muted);
}

.copy-links {
  margin: 0;
}

.copy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .86rem;
  color: var(--muted);
  text-decoration: none;
}

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

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(253, 245, 243, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(38, 23, 26, .09);
}

.dock-in {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--dock);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
}

.menu {
  position: relative;
  flex: none;
}

.menu-sum {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--ease);
}

.menu-sum::-webkit-details-marker {
  display: none;
}

.menu-sum:hover {
  background: #3d2429;
}

.menu[open] .menu-sum {
  background: var(--pink);
  color: var(--ink);
}

.menu-list {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  min-width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-l);
  animation: rise 220ms cubic-bezier(.2, .7, .3, 1) both;
}

.menu-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--ease), color var(--ease);
}

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

.menu-list a:hover {
  background: #fff2f4;
  color: #a84257;
}

.find {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: flex;
}

.find-in {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: inset 0 1px 3px rgba(38, 23, 26, .06), var(--shadow-s);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.find-in::placeholder {
  color: #a89295;
}

.find-in:focus {
  border-color: var(--pink);
  box-shadow: inset 0 1px 3px rgba(38, 23, 26, .06), 0 0 0 3px rgba(235, 135, 156, .28);
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 窄屏 */
@media (max-width: 900px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 20px;
  }

  .rail {
    position: static;
    padding: 14px 14px 8px;
  }

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

  .rail-list a {
    min-height: 44px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16.5px;
  }

  .hero {
    min-height: 48vh;
  }

  .hero-in {
    padding: 78px 18px 34px;
  }

  .cols {
    padding-left: 14px;
    padding-right: 14px;
  }

  .slab {
    padding: 18px 16px 26px;
  }

  .foot {
    padding: 28px 16px 22px;
    gap: 18px;
  }

  .dock-in {
    padding: 8px 12px;
  }

  .menu-sum {
    padding: 0 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .hero-img {
    transform: none !important;
  }
}

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