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

/* ============================================================
   设计令牌
   ============================================================ */
:root {
  --sky: #c8e0f4;
  --dusk: #f5e0e8;
  --night: #171f26;

  --sky-light: #e4eff9;
  --sky-dark: #a8c8e8;
  --dusk-light: #faf0f4;
  --dusk-dark: #ddbece;
  --night-mid: #2a3744;
  --night-soft: #3d4f60;

  --text-main: #1a2530;
  --text-muted: #5a7085;
  --text-inv: #e8f2fb;

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;

  --shadow-neu-out:
    -5px -5px 15px rgba(255,255,255,0.75),
    5px 5px 15px rgba(150,185,215,0.45);
  --shadow-neu-in:
    inset -3px -3px 8px rgba(255,255,255,0.65),
    inset 3px 3px 8px rgba(150,185,215,0.4);
  --shadow-neu-dark-out:
    -4px -4px 12px rgba(255,255,255,0.06),
    5px 5px 14px rgba(0,0,0,0.45);
  --shadow-card:
    -4px -4px 12px rgba(255,255,255,0.7),
    6px 6px 16px rgba(140,180,215,0.5);

  --font-main: 'Be Vietnam Pro', 'Noto Sans', system-ui, sans-serif;
  --nav-h: 56px;
  --brand-h: 64px;
  --header-total: 120px;
}

/* ============================================================
   重置与基础
   ============================================================ */
*, *::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-main);
  background: var(--sky-light);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 内容区 article 的滚动偏移 */
article[id] {
  scroll-margin-top: calc(var(--header-total) + 16px);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
dl { margin: 0; }

/* ============================================================
   通用软浮雕工具
   ============================================================ */
.neu-surface {
  background: var(--sky-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neu-out);
}
.neu-press:active {
  box-shadow: var(--shadow-neu-in);
  transform: scale(0.97);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

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

/* ============================================================
   顶部导航（两行：品牌行 + 菜单行）
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(145deg, var(--sky-light), var(--sky));
  box-shadow:
    0 2px 0 rgba(255,255,255,0.6),
    0 4px 20px rgba(140,180,215,0.3);
}

/* 品牌行 */
.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--brand-h);
  border-bottom: 1px solid rgba(200,224,244,0.5);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 200ms;
}
.brand-link:hover { opacity: 0.8; }

.site-logo-img,
.site-logo-mark { height: 36px; width: auto; }

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--night);
  letter-spacing: 0.04em;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--night-mid);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--sky-light), var(--sky));
  box-shadow: var(--shadow-neu-out);
  transition: box-shadow 150ms, transform 150ms;
  min-height: 40px;
}
.contact-link:hover {
  box-shadow: var(--shadow-neu-in);
  transform: scale(0.97);
}
.icon-tel, .icon-mail { font-size: 1rem; }

/* 菜单行 */
.header-nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: linear-gradient(145deg, var(--sky), var(--sky-light));
}

.primary-nav { width: 100%; }

.nav-dl {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-dl dt { margin: 0; }

.nav-dl dt a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--night-mid);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--sky-light), var(--sky));
  box-shadow: var(--shadow-neu-out);
  transition: box-shadow 150ms, transform 150ms, color 150ms;
  min-height: 40px;
  white-space: nowrap;
}
.nav-dl dt a:hover,
.nav-dl dt a:focus-visible {
  box-shadow: var(--shadow-neu-in);
  transform: scale(0.97);
  color: var(--night);
  outline: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-light) 60%, var(--dusk-light) 100%);
  padding: 48px 32px;
}

.hero-bg-text {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(80px, 18vw, 180px);
  font-weight: 700;
  color: rgba(200,224,244,0.25);
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero-placeholder {
  width: 320px;
  height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--sky-light), var(--sky-dark));
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-icon { font-size: 72px; }

.hero-copy {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--sky-light), var(--sky));
  box-shadow: var(--shadow-neu-out);
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--night);
  line-height: 1.25;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.7;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--night);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--sky-light), var(--sky));
  box-shadow: var(--shadow-neu-out);
  transition: box-shadow 150ms, transform 150ms;
  min-height: 48px;
}
.btn-hero:hover {
  box-shadow: var(--shadow-neu-in);
  transform: scale(0.97);
}

/* ============================================================
   主内容区
   ============================================================ */
.site-main {
  flex: 1;
  padding: 64px 32px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* content-section：figure/aside 交错布局 */
.content-section {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  grid-template-rows: auto 1fr;
  gap: 32px;
  align-items: start;
}

/* aside 在右侧 */
.content-aside {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-total) + 24px);
}

.aside-card {
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--sky-light), var(--sky));
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
}

.aside-card--alt {
  background: linear-gradient(145deg, var(--dusk-light), var(--dusk));
  box-shadow:
    -4px -4px 12px rgba(255,255,255,0.7),
    6px 6px 16px rgba(210,170,190,0.4);
}

.aside-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.aside-title,
.aside-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--night);
  margin-bottom: 12px;
  line-height: 1.4;
}

.aside-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}
.aside-body:last-child { margin-bottom: 0; }

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aside-nav-list li a {
  display: block;
  font-size: 0.85rem;
  color: var(--night-mid);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(200,224,244,0.3));
  box-shadow:
    -2px -2px 6px rgba(255,255,255,0.6),
    2px 2px 6px rgba(150,185,215,0.3);
  transition: box-shadow 150ms, transform 150ms;
}
.aside-nav-list li a:hover {
  box-shadow: var(--shadow-neu-in);
  transform: scale(0.97);
}

/* figure 装饰：左列 */
.content-figure {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
}

.figure-decoration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--night-mid), var(--night));
  box-shadow: var(--shadow-neu-dark-out);
  padding: 20px 16px;
  color: var(--text-inv);
}
.fig-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.fig-label {
  font-size: 0.75rem;
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

/* 正文内容 */
.content-body {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
}

/* ============================================================
   正文内 page.content 样式（article 级内容）
   ============================================================ */
.content-body article {
  margin-bottom: 64px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--sky-light), rgba(200,224,244,0.4));
  box-shadow: var(--shadow-card);
}

.content-body article:last-child { margin-bottom: 0; }

.content-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--night);
  margin-bottom: 20px;
  line-height: 1.35;
}

.content-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--night-mid);
  margin: 24px 0 12px;
  line-height: 1.4;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 16px;
}
.content-body p:last-child { margin-bottom: 0; }

.content-body ul,
.content-body ol {
  padding-left: 0;
  margin-bottom: 16px;
}

.content-body ul li,
.content-body ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.content-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-dark);
  box-shadow: 0 0 0 2px rgba(168,200,232,0.3);
}

.content-body ol {
  counter-reset: ol-counter;
}
.content-body ol li {
  counter-increment: ol-counter;
}
.content-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sky-dark);
}

.content-body strong {
  font-weight: 600;
  color: var(--night);
}

.content-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--dusk-light), rgba(245,224,232,0.5));
  box-shadow: var(--shadow-neu-in);
  font-style: normal;
  color: var(--night-mid);
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.content-body th,
.content-body td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border: 1px solid rgba(200,224,244,0.6);
  text-align: left;
}
.content-body th {
  background: linear-gradient(145deg, var(--sky), var(--sky-dark));
  font-weight: 600;
  color: var(--night);
}
.content-body tr:nth-child(even) td {
  background: rgba(200,224,244,0.2);
}

/* small 眉题（紧邻 h2/h3 前） */
small + h2,
small + h3 {
  margin-top: 6px;
}

.content-body small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* 区块分隔线 */
.content-body article + article {
  border-top: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, var(--night) 0%, var(--night-mid) 100%);
  color: var(--text-inv);
  padding: 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
}

.footer-brand-block {
  flex: 0 0 auto;
}

.footer-brand-big {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(200,224,244,0.9);
  line-height: 1;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(200,224,244,0.45);
  max-width: 240px;
  line-height: 1.5;
}

/* 页脚导航：footer 内 nav > dl > dt/dd > a */
.footer-nav {
  flex: 1;
  min-width: 200px;
}

.footer-nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  align-items: center;
  justify-content: center;
}

.footer-nav-dl dt {
  margin: 0;
}

.footer-nav-dl dt a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(200,224,244,0.6);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-neu-dark-out);
  transition: color 200ms, background 200ms;
  min-height: 40px;
  white-space: nowrap;
}
.footer-nav-dl dt a:hover {
  color: rgba(200,224,244,0.95);
  background: rgba(255,255,255,0.08);
}

.footer-copy-block {
  flex: 0 0 auto;
  text-align: right;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(200,224,244,0.35);
  margin-bottom: 8px;
}

.footer-contact {
  margin-bottom: 6px;
}
.footer-contact .contact-link {
  font-size: 0.82rem;
  color: rgba(200,224,244,0.55);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow-neu-dark-out);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  min-height: 36px;
}
.footer-contact .contact-link:hover {
  color: rgba(200,224,244,0.9);
}

/* ============================================================
   交错动画（Stagger List）
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .content-body article {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.55s ease forwards;
  }

  .content-body article:nth-child(1) { animation-delay: 0.05s; }
  .content-body article:nth-child(2) { animation-delay: 0.12s; }
  .content-body article:nth-child(3) { animation-delay: 0.19s; }
  .content-body article:nth-child(4) { animation-delay: 0.26s; }
  .content-body article:nth-child(5) { animation-delay: 0.33s; }
  .content-body article:nth-child(6) { animation-delay: 0.40s; }
  .content-body article:nth-child(7) { animation-delay: 0.47s; }

  .aside-card {
    opacity: 0;
    transform: translateX(16px);
    animation: fadeLeft 0.5s ease forwards;
  }
  .aside-card:nth-child(1) { animation-delay: 0.15s; }
  .aside-card:nth-child(2) { animation-delay: 0.28s; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeLeft {
    to { opacity: 1; transform: translateX(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-body article,
  .aside-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================================
   焦点可访问性
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--sky-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   响应式：平板
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }
  .hero-media { display: none; }

  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .content-figure {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
  }
  .figure-decoration {
    flex-direction: row;
    padding: 12px 20px;
    gap: 12px;
  }
  .fig-label { writing-mode: horizontal-tb; }

  .content-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aside-card {
    flex: 1 1 240px;
  }

  .content-body {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
  }
  .footer-copy-block { text-align: left; }
  .footer-nav-dl { justify-content: flex-start; }
}

/* ============================================================
   响应式：手机
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --brand-h: 56px;
    --nav-h: 48px;
    --header-total: 104px;
  }

  .header-brand-row {
    padding: 0 16px;
  }
  .header-contact { display: none; }

  .header-nav-row {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-nav-row::-webkit-scrollbar { display: none; }

  .nav-dl {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .nav-dl dt a {
    padding: 10px 12px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 16px;
  }
  .hero-bg-text { font-size: 60px; }
  .hero-copy h1 { font-size: 1.6rem; }
  .hero-desc { font-size: 0.9rem; }

  .site-main {
    padding: 40px 16px;
  }

  .content-body article {
    padding: 24px 20px;
  }
  .content-body h2 { font-size: 1.3rem; }

  .footer-inner {
    padding: 32px 16px;
  }
  .footer-brand-big { font-size: 2rem; }

  .aside-card { flex: 1 1 100%; }
}
