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

/* ===== 基础变量 ===== */
:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --ink: #171f26;
  --blue-dark: #9dbfe0;
  --blue-light: #e4f0fa;
  --pink-dark: #e0b8cc;
  --pink-light: #faf0f4;
  --ink-soft: #2e3d4f;
  --ink-mute: #5a6a7a;
  --bg: #dce8f2;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-raise: -4px -4px 12px rgba(255,255,255,0.75), 5px 5px 14px rgba(0,0,0,0.13);
  --shadow-inset: inset 3px 3px 8px rgba(0,0,0,0.10), inset -3px -3px 8px rgba(255,255,255,0.70);
  --shadow-press: inset 2px 2px 6px rgba(0,0,0,0.15), inset -2px -2px 6px rgba(255,255,255,0.6);
  --font-head: 'Playfair Display SC', Georgia, serif;
  --font-body: 'Karla', system-ui, -apple-system, sans-serif;
  --transition: 150ms ease;
  --sticky-top: 56px;
  --anchor-h: 52px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button, input { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.25; }

/* 滚动偏移 */
div[id] {
  scroll-margin-top: calc(var(--sticky-top) + var(--anchor-h) + 12px);
}

/* ===== 页面包裹 ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  box-shadow: 0 2px 12px rgba(23,31,38,0.10);
  height: var(--sticky-top);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.nav-right { justify-content: flex-end; }
.brand-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.site-logo-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-height: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--blue);
  box-shadow: var(--shadow-raise);
  transition: box-shadow var(--transition), transform var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-pill:hover {
  color: var(--ink);
  box-shadow: -2px -2px 8px rgba(255,255,255,0.8), 3px 3px 10px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}
.nav-pill:active {
  box-shadow: var(--shadow-press);
  transform: scale(0.97);
}

/* ===== 粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: var(--sticky-top);
  z-index: 90;
  background: var(--pink-light);
  border-bottom: 1px solid rgba(200,160,180,0.20);
  box-shadow: 0 2px 10px rgba(23,31,38,0.07);
  height: var(--anchor-h);
}
.anchor-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-inner::-webkit-scrollbar { display: none; }
.anchor-list {
  display: flex;
  gap: 6px;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
}
.anchor-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-height: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--pink);
  box-shadow: -3px -3px 8px rgba(255,255,255,0.7), 3px 3px 8px rgba(0,0,0,0.10);
  white-space: nowrap;
  transition: box-shadow var(--transition), transform var(--transition);
}
.anchor-pill:hover {
  box-shadow: -1px -1px 5px rgba(255,255,255,0.8), 2px 2px 6px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}
.anchor-pill:active {
  box-shadow: var(--shadow-press);
  transform: scale(0.97);
}
.anchor-search { flex-shrink: 0; }
.search-form {
  display: flex;
  align-items: center;
  background: var(--blue-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-inset);
  padding: 0 4px 0 12px;
  gap: 4px;
  height: 40px;
}
.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: var(--ink);
  width: 110px;
  height: 100%;
}
.search-input::placeholder { color: var(--ink-mute); }
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-raise);
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { transform: scale(1.08); }
.search-btn:active {
  box-shadow: var(--shadow-press);
  transform: scale(0.95);
}

/* ===== Hero ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--pink-light) 100%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-media { order: 0; }
.hero-collage {
  position: relative;
  height: 420px;
}
.hero-frame {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  box-shadow: -6px -6px 18px rgba(255,255,255,0.8), 8px 8px 20px rgba(23,31,38,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-frame:hover {
  box-shadow: -3px -3px 12px rgba(255,255,255,0.8), 10px 10px 26px rgba(23,31,38,0.22);
  transform: translateY(-4px) scale(1.01);
}
.hero-frame-1 {
  width: 62%;
  height: 300px;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--blue);
}
.hero-frame-2 {
  width: 55%;
  height: 250px;
  bottom: 0;
  right: 0;
  z-index: 3;
  background: var(--pink);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.placeholder-icon { font-size: 3rem; opacity: 0.5; }
.hero-badge, .hero-tag {
  position: absolute;
  bottom: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.hero-badge {
  left: 12px;
  background: var(--ink);
  color: var(--blue);
}
.hero-tag {
  right: 12px;
  background: var(--pink-dark);
  color: var(--ink);
}
.hero-copy {
  text-align: right;
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--pink);
  box-shadow: var(--shadow-raise);
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.hero-sub {
  font-size: 1rem;
  color: var(--ink-mute);
  max-width: 380px;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 48px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-light);
  background: linear-gradient(145deg, var(--ink-soft), var(--ink));
  box-shadow: -3px -3px 8px rgba(255,255,255,0.15), 4px 4px 12px rgba(0,0,0,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: -2px -2px 6px rgba(255,255,255,0.15), 6px 6px 16px rgba(0,0,0,0.38);
}
.btn-primary:active { transform: scale(0.97); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 48px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--blue-light);
  box-shadow: var(--shadow-raise);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: -2px -2px 8px rgba(255,255,255,0.85), 5px 5px 14px rgba(0,0,0,0.16);
}
.btn-ghost:active {
  box-shadow: var(--shadow-press);
  transform: scale(0.97);
}
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.badge-pill {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--pink);
  color: var(--ink-soft);
  box-shadow: -2px -2px 6px rgba(255,255,255,0.7), 2px 2px 6px rgba(0,0,0,0.10);
  letter-spacing: 0.03em;
}

/* ===== 主体内容区 ===== */
.site-main {
  flex: 1;
  padding: 48px 24px 64px;
}
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas:
    "deco  deco"
    "body  aside";
  gap: 32px;
}
.content-deco {
  grid-area: deco;
  pointer-events: none;
  display: flex;
  gap: 12px;
}
.deco-card {
  height: 6px;
  border-radius: 3px;
  flex: 1;
}
.deco-card-blue {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
  box-shadow: 0 2px 8px rgba(157,191,224,0.4);
}
.deco-card-pink {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink-light));
  box-shadow: 0 2px 8px rgba(224,184,204,0.4);
}
.content-aside {
  grid-area: aside;
}
.aside-inner {
  background: var(--pink-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raise);
  padding: 24px 20px;
  position: sticky;
  top: calc(var(--sticky-top) + var(--anchor-h) + 16px);
}
.aside-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.aside-inner hr {
  border: none;
  border-top: 2px solid var(--pink-dark);
  margin-bottom: 14px;
  border-radius: 1px;
}
.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.aside-link {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 44px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--pink);
  box-shadow: -2px -2px 6px rgba(255,255,255,0.7), 2px 2px 6px rgba(0,0,0,0.09);
  transition: box-shadow var(--transition), transform var(--transition);
}
.aside-link:hover {
  color: var(--ink);
  box-shadow: -1px -1px 4px rgba(255,255,255,0.8), 3px 3px 8px rgba(0,0,0,0.14);
  transform: translateX(2px);
}
.aside-link:active { box-shadow: var(--shadow-press); }
.aside-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-mute);
  padding: 8px 12px;
  background: var(--blue-light);
  border-radius: 10px;
  box-shadow: var(--shadow-inset);
}
.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0546a;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
.content-body {
  grid-area: body;
  min-width: 0;
}

/* ===== 正文内容样式 ===== */
.content-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--ink);
  margin: 2.2em 0 0.4em;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 1.8em 0 0.4em;
}
.content-body hr {
  border: none;
  border-top: 2px solid var(--blue-dark);
  margin: 0.5em 0 1.2em;
  border-radius: 1px;
}
.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
}
.content-body div {
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  border-radius: var(--radius);
  box-shadow: var(--shadow-raise);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.content-body div:nth-child(even) {
  background: linear-gradient(145deg, var(--pink-light), var(--pink));
}
.content-body div:hover {
  box-shadow: -3px -3px 10px rgba(255,255,255,0.85), 7px 7px 18px rgba(23,31,38,0.15);
  transform: translateY(-2px);
}
.content-body ul, .content-body ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.content-body li {
  margin-bottom: 0.45em;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-soft);
  list-style: disc;
}
.content-body ol li { list-style: decimal; }
.content-body a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid var(--pink-dark);
  transition: border-color var(--transition), color var(--transition);
}
.content-body a:hover {
  color: var(--ink-soft);
  border-color: var(--blue-dark);
}
.content-body strong { font-weight: 700; }
.content-body em { font-style: italic; color: var(--ink-mute); }
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 0.9rem;
}
.content-body th, .content-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--blue-dark);
}
.content-body th {
  font-weight: 700;
  background: var(--blue);
  color: var(--ink);
}
.content-body blockquote {
  border-left: 4px solid var(--pink-dark);
  padding: 12px 20px;
  margin: 1.2em 0;
  background: var(--pink-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-mute);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--ink);
  padding: 40px 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-cta-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(200,224,244,0.45);
  line-height: 1.6;
  max-width: 560px;
  display: block;
}

/* ===== 动效 ===== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes section-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anchor-list li { animation: stagger-in 0.3s ease both; }
.anchor-list li:nth-child(1) { animation-delay: 0.04s; }
.anchor-list li:nth-child(2) { animation-delay: 0.08s; }
.anchor-list li:nth-child(3) { animation-delay: 0.12s; }
.anchor-list li:nth-child(4) { animation-delay: 0.16s; }
.anchor-list li:nth-child(5) { animation-delay: 0.20s; }
.anchor-list li:nth-child(6) { animation-delay: 0.24s; }
.anchor-list li:nth-child(7) { animation-delay: 0.28s; }
.aside-nav-list li { animation: stagger-in 0.3s ease both; }
.content-body div { animation: section-in 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-media { order: 1; }
  .hero-copy {
    order: 0;
    align-items: flex-start;
    text-align: left;
  }
  .hero-cta-row { justify-content: flex-start; }
  .hero-badges { justify-content: flex-start; }
  .hero-collage { height: 300px; }
  .hero-frame-1 { width: 58%; height: 220px; }
  .hero-frame-2 { width: 50%; height: 190px; }

  .content-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "deco"
      "body"
      "aside";
  }
  .aside-inner { position: static; }
}

@media (max-width: 600px) {
  :root {
    --sticky-top: 52px;
    --anchor-h: 48px;
  }
  .header-inner { padding: 0 10px; }
  .primary-nav { gap: 4px; }
  .nav-pill {
    padding: 0 8px;
    font-size: 0.7rem;
    height: 40px;
    min-height: 40px;
  }
  .site-logo-text { font-size: 0.88rem; }

  .anchor-inner { padding: 0 10px; }
  .anchor-pill {
    padding: 0 8px;
    font-size: 0.7rem;
    height: 40px;
    min-height: 40px;
  }
  .search-input { width: 70px; }
  .search-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .hero-section { padding: 36px 16px; min-height: auto; }
  .hero-title { font-size: 1.5rem; }
  .hero-collage { height: 240px; }
  .hero-frame-1 { width: 60%; height: 170px; }
  .hero-frame-2 { width: 52%; height: 150px; }

  .site-main { padding: 24px 14px 48px; }
  .content-body div { padding: 18px 14px 16px; }
  .content-body h2 { font-size: 1.1rem; }

  .site-footer { padding: 28px 16px 20px; }
  .footer-cta-text { font-size: 0.95rem; }
}

@media (max-width: 375px) {
  .nav-pill { padding: 0 6px; font-size: 0.65rem; }
  .brand-center { padding: 0 4px; }
  .hero-title { font-size: 1.3rem; }
  .btn-primary, .btn-ghost { padding: 0 18px; height: 44px; min-height: 44px; font-size: 0.88rem; }
}

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