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

:root {
  --rose: #eb879c;
  --blush: #ffb6c1;
  --ink: #26171a;
  --ink-soft: #573f45;
  --muted: #7c636b;
  --paper: #fdf6f5;
  --card: #ffffff;
  --line: rgba(38, 23, 26, 0.1);
  --shadow-1: 0 1px 2px rgba(38, 23, 26, 0.05), 0 4px 10px rgba(38, 23, 26, 0.055);
  --shadow-2: 0 2px 4px rgba(38, 23, 26, 0.05), 0 18px 36px rgba(38, 23, 26, 0.1);
  --r-lg: 28px;
  --r-md: 12px;
  --r-sm: 8px;
  --dock-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--dock-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--dock-h) + 40px);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 8px;
}

/* 底部固定导航 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem clamp(0.7rem, 3vw, 1.7rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(38, 23, 26, 0.07);
}

.brand {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.22s ease, background 0.22s ease;
}
.brand:hover { color: #b8405c; background: #fff0f3; }

.dock-list {
  flex: 1 1 auto;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 0 0.2rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dock-list::-webkit-scrollbar { display: none; }
.dock-list li { flex: 0 0 auto; }
.dock-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.dock-list a:hover { background: var(--blush); color: var(--ink); transform: translateY(-2px); }
.dock-list a[aria-current] { background: var(--rose); color: #fff; }

/* 首屏 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: linear-gradient(155deg, #33201f 0%, #7d4250 52%, #d0818f 100%);
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(38, 23, 26, 0.16) 0%, rgba(38, 23, 26, 0.36) 46%, rgba(38, 23, 26, 0.84) 100%);
}

.hero-copy {
  margin-left: auto;
  max-width: 62rem;
  padding: clamp(1.4rem, 5vw, 3.5rem);
  padding-bottom: clamp(4rem, 13vw, 6.5rem);
  text-align: right;
  color: #fff;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6.4vw, 3.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-shadow: 0 2px 20px rgba(38, 23, 26, 0.35);
}

.hero-lead {
  margin: 1.05rem 0 0 auto;
  max-width: 38rem;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.68;
  color: #ffedf0;
}

/* 内容骨架 */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.8rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

.prose { min-width: 0; }

.prose > article {
  position: relative;
  padding: clamp(1.4rem, 3.4vw, 2.6rem);
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  scroll-margin-top: 1rem;
  transition: box-shadow 0.26s ease, transform 0.26s ease;
}
.prose > article + article { margin-top: clamp(1.2rem, 3vw, 2rem); }
.prose > article::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rose), var(--blush));
}
.prose > article:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.prose h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.3rem, 3.1vw, 1.7rem);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prose h2 span { display: inline-block; padding-bottom: 2px; border-bottom: 3px solid var(--blush); }

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 600;
  color: #4a3136;
}
.prose h3 span { display: inline-block; box-shadow: inset 0 -0.5em 0 #ffe4e9; }

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--rose); }
.prose strong { color: #a13c56; }
.prose a {
  color: #b34a64;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--ink); background: #ffe8ed; }
.prose blockquote {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--rose);
  border-radius: var(--r-md);
  background: #fff4f6;
  color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  background: #f7ebed;
  font-size: 0.95em;
}
.prose img { border-radius: var(--r-md); margin: 0.4rem 0 1rem; }
.prose hr { margin: 1.4rem 0; border: 0; border-top: 1px dashed var(--line); }

/* 右侧栏 */
.rail { display: grid; gap: 1rem; position: sticky; top: 1.2rem; }

.rail-card {
  padding: 1.1rem 1.15rem;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.rail-title,
.rail-top h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.rail-title span { border-bottom: 2px solid var(--blush); padding-bottom: 2px; }

.rail-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.rail-list a:hover { background: #fdeef1; color: #a13c56; }
.rail-list a[aria-current] { background: #fff0f3; color: #a13c56; font-weight: 600; }

.rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.22s ease, transform 0.22s ease;
}
.rail-btn:hover { background: #4c3037; transform: translateY(-2px); }

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.8rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2.5rem) 2.4rem;
  text-align: center;
}

.foot-cta { margin: 0 0 1.5rem; }
.foot-cta a {
  display: block;
  padding: clamp(1.2rem, 4vw, 2rem);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--rose), var(--blush));
  color: #fff;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 700;
  box-shadow: var(--shadow-2);
  transition: transform 0.24s ease, filter 0.24s ease;
}
.foot-cta a:hover { transform: translateY(-3px); filter: saturate(1.12); }

.foot-copy { margin: 0 0 0.3rem; font-size: 0.95rem; color: var(--ink-soft); }
.foot-note { display: block; font-size: 0.85rem; color: var(--muted); }

/* 动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-copy h1 { animation: rise 0.5s ease both; }
.hero-lead { animation: rise 0.5s 0.09s ease both; }

.dock-list li { animation: rise 0.3s ease both; }
.dock-list li:nth-child(1) { animation-delay: 0.03s; }
.dock-list li:nth-child(2) { animation-delay: 0.06s; }
.dock-list li:nth-child(3) { animation-delay: 0.09s; }
.dock-list li:nth-child(4) { animation-delay: 0.12s; }
.dock-list li:nth-child(5) { animation-delay: 0.15s; }
.dock-list li:nth-child(6) { animation-delay: 0.18s; }
.dock-list li:nth-child(7) { animation-delay: 0.21s; }

.js .prose > article { opacity: 0; transform: translateY(16px); }
.js .prose > article.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.26s ease;
}

/* 响应式 */
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --dock-h: 70px; }
  .dock-list a { font-size: 0.9rem; padding: 0.4rem 0.7rem; }
  .rail { grid-template-columns: 1fr; }
  .foot { padding-bottom: 1.6rem; }
  .hero-copy { padding-bottom: clamp(5rem, 20vw, 7rem); }
  .prose > article:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .prose > article { opacity: 1; transform: none; }
}

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