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

/* ===== CSS变量 ===== */
:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --dark: #171f26;
  --blue-dark: #a8c8e8;
  --blue-light: #e4f0fa;
  --pink-dark: #e8c8d8;
  --pink-light: #fdf0f4;
  --dark-mid: #232e38;
  --dark-light: #2e3d4a;
  --text-main: #171f26;
  --text-muted: #4a5a6a;
  --text-light: #7a8a9a;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-raise: -4px -4px 12px rgba(255,255,255,0.75), 5px 5px 14px rgba(160,190,210,0.45);
  --shadow-inset: inset 3px 3px 8px rgba(160,190,210,0.4), inset -3px -3px 8px rgba(255,255,255,0.7);
  --shadow-press: inset 2px 2px 6px rgba(140,170,200,0.5), inset -2px -2px 6px rgba(255,255,255,0.6);
  --shadow-pink-raise: -4px -4px 12px rgba(255,255,255,0.7), 5px 5px 14px rgba(220,180,200,0.4);
  --nav-w: 220px;
  --transition: 150ms ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}
body, .neu-body {
  background: var(--blue);
  color: var(--text-main);
  font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, menu { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Newsreader', 'Noto Serif SC', Georgia, serif;
  line-height: 1.3;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== 页面骨架 ===== */
.page-shell {
  display: flex;
  min-height: 100vh;
}
.content-wrap {
  flex: 1;
  margin-left: var(--nav-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main-content {
  flex: 1;
  padding: 2rem 2rem 3rem;
}

/* ===== 左侧导航 ===== */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--blue) 100%);
  box-shadow: var(--shadow-raise);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidenav[open] { }

/* summary 作为品牌区 */
.sidenav-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.sidenav-brand::-webkit-details-marker { display: none; }
.sidenav-brand::marker { display: none; }
.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, var(--blue-light), var(--blue-dark));
  box-shadow: var(--shadow-raise);
  flex-shrink: 0;
}
.brand-text-icon {
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1;
}
.brand-icon, .brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.sidenav-toggle-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

/* 导航菜单 */
.nav-menu {
  padding: 0.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  box-shadow: var(--shadow-raise);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-pill:hover {
  background: linear-gradient(145deg, var(--pink-light), var(--pink));
  box-shadow: var(--shadow-pink-raise);
  color: var(--dark);
}
.nav-pill:active {
  box-shadow: var(--shadow-press);
  transform: scale(0.97);
}

/* ===== Hero ===== */
.hero-section {
  display: flex;
  flex-direction: row-reverse;
  gap: 2.5rem;
  align-items: center;
  min-height: 70vh;
  margin-bottom: 2rem;
}
.hero-figure {
  flex: 1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero-img {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: -6px -6px 18px rgba(255,255,255,0.7), 8px 8px 20px rgba(140,180,210,0.5);
  display: block;
}
.hero-img-placeholder {
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--pink-light), var(--pink));
  box-shadow: var(--shadow-raise);
}
.hero-badge {
  position: absolute;
  top: 1.25rem;
  right: -0.75rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pink-raise);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e05880;
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-aside {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  box-shadow: var(--shadow-raise);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
}
.hero-h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: box-shadow var(--transition), transform var(--transition);
}
.btn-primary {
  background: linear-gradient(145deg, var(--pink-light), var(--pink));
  color: var(--dark);
  box-shadow: var(--shadow-pink-raise);
}
.btn-primary:hover {
  box-shadow: -6px -6px 16px rgba(255,255,255,0.8), 7px 7px 18px rgba(220,170,190,0.5);
}
.btn-primary:active {
  box-shadow: var(--shadow-press);
  transform: scale(0.97);
}
.btn-secondary {
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  color: var(--dark);
  box-shadow: var(--shadow-raise);
}
.btn-secondary:hover {
  box-shadow: -6px -6px 16px rgba(255,255,255,0.8), 7px 7px 18px rgba(150,190,220,0.5);
}
.btn-secondary:active {
  box-shadow: var(--shadow-press);
  transform: scale(0.97);
}
.hero-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  box-shadow: var(--shadow-raise);
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== 分隔线 ===== */
.section-divider, hr {
  border: none;
  border-top: 1.5px solid rgba(160, 190, 210, 0.35);
  margin: 1.5rem 0;
}

/* ===== 内容区（正文 + 侧边栏） ===== */
.content-sections {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.content-body {
  flex: 1;
  min-width: 0;
}
.content-aside {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}
.aside-inner {
  background: linear-gradient(155deg, var(--blue-light), var(--blue));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raise);
  padding: 1.25rem;
}
.aside-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.aside-links li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-main);
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  box-shadow: var(--shadow-raise);
  transition: box-shadow var(--transition), background var(--transition);
}
.aside-links li a:hover {
  background: linear-gradient(145deg, var(--pink-light), var(--pink));
  box-shadow: var(--shadow-pink-raise);
}
.aside-links li a:active {
  box-shadow: var(--shadow-press);
}
.aside-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--pink-light), var(--pink));
  box-shadow: var(--shadow-inset);
}

/* ===== page.content 内部样式 ===== */
.content-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 80px;
}
.content-body h2 + hr,
.content-body h3 + hr {
  margin-top: 0;
  margin-bottom: 1rem;
}
.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  scroll-margin-top: 80px;
}
.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.content-body ul, .content-body ol {
  margin: 0.75rem 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}
.content-body a {
  color: #4a7aaa;
  text-decoration: underline;
  text-decoration-color: rgba(74,122,170,0.35);
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.content-body a:hover {
  color: #c8507a;
}
.content-body section {
  padding: 1.5rem 0;
  scroll-margin-top: 80px;
}
.content-body section + section {
  border-top: 1px solid rgba(160,190,210,0.3);
}
.content-body strong {
  font-weight: 600;
  color: var(--dark);
}
.content-body blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--pink-light), var(--pink));
  box-shadow: var(--shadow-inset);
  color: var(--text-muted);
  font-style: italic;
}
.content-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.content-body th {
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
}
.content-body td {
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  padding: 0.55rem 1rem;
  color: var(--text-main);
}
.content-body tr td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.content-body tr td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.content-body img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raise);
  margin: 1rem 0;
}
.content-body figure {
  margin: 1.5rem 0;
}
.content-body figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  text-align: center;
}

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: rgba(200,224,244,0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.site-footer > section {
  padding: 2.5rem 2rem;
}
.footer-brand-section {
  flex: 0 0 100%;
  background: var(--dark-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 3rem 2.5rem 2rem;
  border-bottom: 1px solid rgba(200,224,244,0.08);
}
.footer-brand-name {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
}
.footer-tagline {
  font-size: 0.95rem;
  color: rgba(200,224,244,0.55);
  max-width: 500px;
  line-height: 1.6;
}
.footer-nav-section,
.footer-info-section,
.footer-contact-section {
  flex: 1;
  min-width: 180px;
}
.footer-col-title {
  font-family: 'Newsreader', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.footer-col-title + hr {
  border-color: rgba(200,224,244,0.15);
  margin-bottom: 1rem;
}
.footer-nav-list, .footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav-list li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9rem;
  color: rgba(200,224,244,0.7);
  transition: color var(--transition);
  padding: 0.2rem 0;
}
.footer-nav-list li a:hover {
  color: var(--pink);
}
.footer-info-list li {
  font-size: 0.88rem;
  color: rgba(200,224,244,0.55);
  line-height: 1.6;
  padding: 0.15rem 0;
}
.footer-about-text {
  font-size: 0.88rem;
  color: rgba(200,224,244,0.55);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200,224,244,0.2);
  color: rgba(200,224,244,0.55);
}
.footer-bottom-section {
  flex: 0 0 100%;
  border-top: 1px solid rgba(200,224,244,0.08);
  text-align: center;
  padding: 1.25rem 2rem;
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(200,224,244,0.35);
  line-height: 1.6;
}

/* ===== Scroll Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-root section,
  .reveal-root h2,
  .reveal-root h3,
  .reveal-root p,
  .reveal-root li {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal-root section.is-visible,
  .reveal-root h2.is-visible,
  .reveal-root h3.is-visible,
  .reveal-root p.is-visible,
  .reveal-root li.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-root li:nth-child(2) { transition-delay: 0.07s; }
  .reveal-root li:nth-child(3) { transition-delay: 0.14s; }
  .reveal-root li:nth-child(4) { transition-delay: 0.21s; }
  .reveal-root li:nth-child(5) { transition-delay: 0.28s; }
  .reveal-root li:nth-child(6) { transition-delay: 0.35s; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  :root { --nav-w: 68px; }
  .nav-menu { padding: 0.5rem 0.5rem 2rem; }
  .nav-pill {
    font-size: 0;
    padding: 0;
    width: 48px;
    height: 44px;
    justify-content: center;
    border-radius: var(--radius-md);
  }
  .nav-pill::before {
    content: '›';
    font-size: 1.2rem;
    color: var(--text-muted);
  }
  .sidenav-brand { padding: 1rem 0.5rem; justify-content: center; }
  .sidenav-toggle-icon { display: none; }
  .content-aside { display: none; }
}
@media (max-width: 768px) {
  :root { --nav-w: 0px; }
  .sidenav {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-direction: column;
  }
  .sidenav-brand {
    padding: 1rem 1.25rem;
    justify-content: space-between;
  }
  .sidenav-toggle-icon { display: block; }
  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem 1rem 1rem;
    gap: 0.4rem;
  }
  .nav-pill {
    font-size: 0.82rem;
    padding: 0.5rem 0.9rem;
    min-height: 40px;
    border-radius: var(--radius-pill);
    width: auto;
    height: auto;
  }
  .nav-pill::before { display: none; }
  .content-wrap { margin-left: 0; flex-direction: column; }
  .page-shell { flex-direction: column; }
  .hero-section {
    flex-direction: column;
    min-height: auto;
    gap: 1.5rem;
  }
  .hero-figure { order: -1; min-height: 200px; }
  .hero-aside { padding: 0; }
  .content-sections { flex-direction: column; }
  .content-aside { display: block; width: 100%; position: static; }
  .site-footer { border-radius: 0; }
  .footer-nav-section,
  .footer-info-section,
  .footer-contact-section {
    flex: 0 0 100%;
  }
  .main-content { padding: 1.25rem 1rem 2rem; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 1.5rem; }
  .footer-brand-name { font-size: 2rem; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
