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

/* ─── 变量 ─── */
:root {
  --ice: #c8e0f4;
  --pink: #f5e0e8;
  --dark: #171f26;
  --ice-light: #ddeefb;
  --ice-dark: #a8c8e8;
  --pink-light: #fdf0f5;
  --pink-dark: #e0b8cb;
  --bg: #d4e8f8;
  --bg2: #f0dde8;
  --text: #1a2530;
  --text-soft: #3a4a5a;
  --text-muted: #6a7e90;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-neu: -6px -6px 16px rgba(255,255,255,0.82), 6px 6px 16px rgba(160,190,220,0.45);
  --shadow-neu-in: inset -4px -4px 10px rgba(255,255,255,0.75), inset 4px 4px 10px rgba(160,190,220,0.4);
  --shadow-neu-press: inset -2px -2px 6px rgba(255,255,255,0.7), inset 2px 2px 8px rgba(140,180,210,0.55);
  --shadow-card: -8px -8px 20px rgba(255,255,255,0.8), 8px 8px 20px rgba(150,185,215,0.5);
  --header-h: 68px;
  --anchor-h: 44px;
  --transition: 150ms ease;
  --font: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ─── 全局重置 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body.neu-body {
  font-family: var(--font);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── scroll-margin for sticky header + anchor bar ─── */
section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--anchor-h) + 12px);
}

/* ─── Page wrapper ─── */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ═══════════════════════════════
   顶部导航
═══════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(145deg, rgba(212,232,248,0.96) 0%, rgba(240,221,232,0.96) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 20px rgba(150,185,215,0.25);
  height: var(--header-h);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  order: 2;
  flex: 1;
  justify-content: center;
}

.brand-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dark);
  white-space: nowrap;
  background: linear-gradient(135deg, #1a6699 0%, #c0456a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* aside > nav > ul > li > a 结构 */
.header-aside {
  order: 1;
  flex: 2;
  display: flex;
  align-items: center;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 40px;
  line-height: 24px;
}

.nav-link:hover, .nav-link:focus-visible {
  background: linear-gradient(145deg, rgba(255,255,255,0.7) 0%, rgba(245,224,232,0.5) 100%);
  box-shadow: var(--shadow-neu);
  color: var(--dark);
  outline: none;
}

.nav-link:active {
  box-shadow: var(--shadow-neu-press);
  transform: scale(0.97);
}

.header-search {
  order: 3;
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  border-radius: 50px;
  box-shadow: var(--shadow-neu-in);
  overflow: hidden;
  height: 40px;
}

.search-input {
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  width: 160px;
  line-height: 40px;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
  background: transparent;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  color: var(--text-muted);
  height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.search-btn:hover { color: var(--dark); }

/* 移动菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(145deg, var(--ice-light), var(--ice));
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-neu);
  min-height: 44px;
  min-width: 44px;
  order: 4;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  background: linear-gradient(145deg, rgba(212,232,248,0.98), rgba(240,221,232,0.98));
  border-top: 1px solid rgba(255,255,255,0.5);
  padding: 12px 24px 16px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-list .nav-link {
  padding: 12px 16px;
  font-size: 1rem;
  min-height: 48px;
  line-height: 24px;
}

/* ═══════════════════════════════
   粘性锚点条
═══════════════════════════════ */
.sticky-anchor-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 190;
  background: linear-gradient(145deg, rgba(200,224,244,0.92) 0%, rgba(245,224,232,0.92) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 3px 12px rgba(150,185,215,0.18);
  height: var(--anchor-h);
  overflow: hidden;
}

.anchor-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar-inner::-webkit-scrollbar { display: none; }

.anchor-link {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 32px;
  line-height: 20px;
  display: flex;
  align-items: center;
}

.anchor-link:hover, .anchor-link:focus-visible {
  background: linear-gradient(145deg, rgba(255,255,255,0.65), rgba(245,224,232,0.45));
  box-shadow: -3px -3px 8px rgba(255,255,255,0.7), 3px 3px 8px rgba(150,185,215,0.35);
  color: var(--dark);
  outline: none;
}

/* ═══════════════════════════════
   Hero
═══════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d1822 0%, #1a2a3e 40%, #2a1828 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,224,244,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(245,224,232,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(100,150,200,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(200,224,244,0.12), rgba(245,224,232,0.1));
  border: 1px solid rgba(200,224,244,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--ice);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ecf8a;
  box-shadow: 0 0 8px rgba(78,207,138,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(78,207,138,0.6); }
  50% { box-shadow: 0 0 16px rgba(78,207,138,0.9), 0 0 24px rgba(78,207,138,0.4); }
}

.hero-brand-img {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(200,224,244,0.85);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(145deg, var(--ice) 0%, var(--ice-dark) 100%);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: -4px -4px 12px rgba(255,255,255,0.25), 4px 4px 16px rgba(100,150,200,0.6);
  transition: all var(--transition);
  min-height: 48px;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: -4px -4px 16px rgba(255,255,255,0.3), 6px 6px 20px rgba(100,150,200,0.7);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-neu-press);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  background: transparent;
  border: 1.5px solid rgba(245,224,232,0.5);
  color: var(--pink);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 48px;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(245,224,232,0.1);
  border-color: var(--pink);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tag {
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(200,224,244,0.1);
  border: 1px solid rgba(200,224,244,0.25);
  color: rgba(200,224,244,0.8);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* 粒子装饰 */
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float-particle 8s ease-in-out infinite;
}

.p1 { width: 180px; height: 180px; background: radial-gradient(circle, rgba(200,224,244,0.15), transparent 70%); top: 10%; right: 15%; animation-delay: 0s; }
.p2 { width: 120px; height: 120px; background: radial-gradient(circle, rgba(245,224,232,0.12), transparent 70%); top: 60%; right: 30%; animation-delay: 2s; }
.p3 { width: 80px; height: 80px; background: radial-gradient(circle, rgba(200,224,244,0.18), transparent 70%); bottom: 20%; right: 10%; animation-delay: 4s; }
.p4 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(245,224,232,0.08), transparent 70%); top: 30%; right: 5%; animation-delay: 1s; }
.p5 { width: 60px; height: 60px; background: radial-gradient(circle, rgba(200,224,244,0.2), transparent 70%); top: 50%; right: 48%; animation-delay: 3s; }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ═══════════════════════════════
   主体内容
═══════════════════════════════ */
.site-main { flex: 1; }

.content-article { width: 100%; }

.content-section.page-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ── 正文内容区通用 ── */
.page-content-wrap h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin: 60px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  background: linear-gradient(90deg, var(--ice-dark), var(--pink-dark)) border-box;
  -webkit-border-image: linear-gradient(90deg, var(--ice-dark), var(--pink-dark)) 1;
  border-image: linear-gradient(90deg, var(--ice-dark), var(--pink-dark)) 1;
  position: relative;
}

.page-content-wrap h2:first-child { margin-top: 0; }

.page-content-wrap h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 14px;
}

.page-content-wrap p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 16px;
  max-width: 760px;
}

.page-content-wrap ul,
.page-content-wrap ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-content-wrap li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.page-content-wrap a {
  color: #1a6699;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.page-content-wrap a:hover { color: #c0456a; }

/* section 区块：软浮雕卡片感 */
.page-content-wrap section {
  background: linear-gradient(145deg, rgba(255,255,255,0.55) 0%, rgba(245,224,232,0.2) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 40px 36px;
  margin-bottom: 40px;
  border: 1px solid rgba(255,255,255,0.65);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-content-wrap section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ice-dark), var(--pink-dark));
  opacity: 0.6;
}

.page-content-wrap section:hover {
  transform: translateY(-3px);
  box-shadow: -10px -10px 24px rgba(255,255,255,0.85), 10px 10px 28px rgba(140,180,210,0.55);
}

/* ── h2 内嵌 span 装饰 ── */
.page-content-wrap h2 > span,
.page-content-wrap h3 > span {
  display: inline;
}

/* ═══════════════════════════════
   页脚
═══════════════════════════════ */
.site-footer {
  background: linear-gradient(145deg, var(--dark) 0%, #0f1820 100%);
  padding: 48px 24px 32px;
  text-align: center;
  border-top: 1px solid rgba(200,224,244,0.15);
}

.footer-brand {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--ice) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
}

.site-footer small,
.footer-copy {
  display: block;
  font-size: 0.82rem;
  color: rgba(200,224,244,0.5);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════
   玻璃卡片（正文内 section 内嵌卡片）
═══════════════════════════════ */
.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.45) 0%, rgba(200,224,244,0.2) 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: -6px -6px 16px rgba(255,255,255,0.7), 6px 6px 16px rgba(150,185,215,0.4);
  padding: 24px 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.glass-card:hover {
  box-shadow: -8px -8px 20px rgba(255,255,255,0.8), 8px 8px 22px rgba(150,185,215,0.5);
  transform: translateY(-2px);
}

/* ═══════════════════════════════
   Parallax + stagger list 动效
═══════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .page-content-wrap section {
    animation: fadeSlideUp 0.6s ease both;
  }
  .page-content-wrap section:nth-child(1) { animation-delay: 0.05s; }
  .page-content-wrap section:nth-child(2) { animation-delay: 0.12s; }
  .page-content-wrap section:nth-child(3) { animation-delay: 0.19s; }
  .page-content-wrap section:nth-child(4) { animation-delay: 0.26s; }
  .page-content-wrap section:nth-child(5) { animation-delay: 0.33s; }
  .page-content-wrap section:nth-child(6) { animation-delay: 0.40s; }
  .page-content-wrap section:nth-child(7) { animation-delay: 0.47s; }
}

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

/* ═══════════════════════════════
   响应式
═══════════════════════════════ */
@media (max-width: 1024px) {
  .header-inner { gap: 12px; }
  .search-input { width: 120px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; --anchor-h: 40px; }

  .header-aside { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-brand { order: 1; flex: 1; justify-content: flex-start; }

  .hero-content { padding: 80px 20px 60px; }
  .hero-h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { gap: 12px; }
  .btn-primary, .btn-secondary { padding: 12px 22px; font-size: 0.95rem; }

  .content-section.page-content-wrap { padding: 40px 16px 60px; }
  .page-content-wrap section { padding: 28px 20px 24px; }

  .sticky-anchor-bar { --anchor-h: 40px; }
  .anchor-link { padding: 5px 11px; font-size: 0.78rem; }

  .footer-brand { font-size: clamp(1.8rem, 8vw, 3rem); }
}

@media (max-width: 480px) {
  .hero-tags { gap: 8px; }
  .hero-tag { font-size: 0.75rem; padding: 4px 10px; }
  .page-content-wrap section { border-radius: var(--radius); }
  .search-form { display: none; }
}

/* ── 防横向滚动 ── */
.site-header, .sticky-anchor-bar, .site-main, .site-footer {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── focus 可见 ── */
:focus-visible {
  outline: 2px solid var(--ice-dark);
  outline-offset: 3px;
}

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