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

/* ===== CSS 变量 ===== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffe03b;
  --bg: #f5f5f0;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --shadow-blue: 5px 5px 0 #3bb1ff;
  --shadow-red: 5px 5px 0 #ff5252;
  --card-radius: 10px;
  --nav-h: 64px;
  --font-head: 'Syne', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.nb-body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 8px);
}

a {
  color: var(--black);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul, menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

/* ===== 滚动定位偏移（固定底部导航）===== */
article[id] {
  scroll-margin-bottom: calc(var(--nav-h) + 20px);
}

/* ===== 站点包裹 ===== */
.site-wrap {
  min-height: 100vh;
}

/* ===== 底部固定导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--black);
  border-top: var(--border);
  height: var(--nav-h);
}

/* details 默认隐藏，超窄屏时启用 */
.nav-details {
  display: none;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
  gap: 8px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

/* tap 区域 ≥44px 高 */
.nav-left li a,
.nav-right li a {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0 8px;
  min-height: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.nav-left li a:hover,
.nav-right li a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-center-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-height: 44px;
  height: 44px;
}

.nav-center-brand .brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  border: 2px solid var(--blue);
  padding: 4px 10px;
}

.nav-center-brand .brand-logo {
  max-height: 36px;
  width: auto;
}

/* ===== Hero ===== */
.hero-block {
  position: relative;
  min-height: 70vh;
  background: var(--blue);
  border-bottom: var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: -0.05em;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(120px, 28vw, 320px);
  font-weight: 700;
  color: rgba(0,0,0,0.08);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 48px;
  width: 100%;
}

.hero-copy {
  text-align: right;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 4px 4px 0 rgba(255,82,82,0.3);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--black);
  opacity: 0.8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border: var(--border);
  box-shadow: var(--shadow);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.12s, box-shadow 0.12s;
}

.hero-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000;
  text-decoration: none;
  color: var(--white);
}

.hero-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

/* Hero 装饰区 */
.hero-deco {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

.hero-deco-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.geo-shape {
  position: absolute;
  z-index: 1;
}

.geo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--red);
  border: var(--border);
  box-shadow: var(--shadow);
  bottom: 10px;
  right: -20px;
  animation: floatA 4s ease-in-out infinite alternate;
}

.geo-square {
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  top: 20px;
  left: -10px;
  transform: rotate(18deg);
  animation: floatB 5s ease-in-out infinite alternate;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid var(--black);
  top: 50%;
  right: 10px;
  animation: floatC 6s ease-in-out infinite alternate;
}

@keyframes floatA {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}
@keyframes floatB {
  0% { transform: rotate(18deg) translateY(0); }
  100% { transform: rotate(28deg) translateY(-10px); }
}
@keyframes floatC {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .geo-circle, .geo-square, .geo-triangle,
  .sidebar-card, .main-article, .hero-cta {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 主内容区 ===== */
.main-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== 左侧边栏 ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.sidebar-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--card-radius);
  padding: 20px;
}

.sidebar-card--accent {
  background: var(--blue);
}

.sidebar-card--dark {
  background: var(--black);
  color: var(--white);
}

.sidebar-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.sidebar-card hr {
  border: none;
  border-top: 2px solid var(--black);
  margin-bottom: 14px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-list li a {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 8px;
  border-left: 3px solid transparent;
  transition: border-color 0.12s, background 0.12s;
}

.sidebar-nav-list li a:hover {
  border-left-color: var(--blue);
  background: rgba(59,177,255,0.08);
  text-decoration: none;
}

.sidebar-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.sidebar-stat:last-child {
  margin-bottom: 0;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.stat-num sup {
  font-size: 0.9rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  opacity: 0.75;
}

.sidebar-tip {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.9;
}

.sidebar-tip strong {
  color: var(--yellow);
}

/* ===== 右侧正文 div ===== */
.main-article {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--card-radius);
  overflow: hidden;
}

/* content-sections 是 div 的直接子 article */
.content-sections {
  padding: 32px 36px;
}

/* 正文内部各 article 样式（page.content 里的 article） */
.content-sections article {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--black);
}

.content-sections article:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* 正文 h2/h3 */
.content-sections h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 6px;
  position: relative;
}

.content-sections h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--red);
  border: 2px solid var(--black);
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

.content-sections h2 + hr {
  border: none;
  border-top: 3px solid var(--black);
  margin-bottom: 20px;
}

.content-sections h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--black);
}

.content-sections h3 + hr {
  border: none;
  border-top: 2px solid var(--blue);
  margin-bottom: 16px;
}

.content-sections p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #111;
}

.content-sections ul,
.content-sections ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.content-sections li {
  margin-bottom: 6px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.content-sections a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-sections a:hover {
  color: var(--red);
}

.content-sections strong {
  font-weight: 700;
  background: var(--yellow);
  padding: 0 2px;
}

.content-sections blockquote {
  border-left: 4px solid var(--blue);
  background: rgba(59,177,255,0.08);
  padding: 12px 18px;
  margin: 16px 0;
  font-style: italic;
}

.content-sections table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 0.93rem;
}

.content-sections th {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
}

.content-sections td {
  border: 2px solid var(--black);
  padding: 8px 12px;
}

.content-sections tr:nth-child(even) td {
  background: rgba(59,177,255,0.07);
}

/* ===== 页脚：仅 p + small ===== */
.site-footer {
  background: var(--black);
  border-top: var(--border);
  padding: 28px 24px 20px;
  color: var(--white);
  margin-bottom: var(--nav-h);
  text-align: center;
}

.site-footer .footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.site-footer .footer-brand-desc {
  display: block;
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.55;
  margin-bottom: 16px;
}

.site-footer .footer-copy {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 14px;
  margin-top: 4px;
}

.site-footer .footer-copy small {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ===== 品牌相关 ===== */
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.brand-logo {
  max-height: 36px;
  width: auto;
}

/* ===== 响应式断点 ===== */

/* 中屏 */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .hero-deco {
    width: 180px;
    height: 180px;
  }
}

/* 平板 */
@media (max-width: 768px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-card {
    flex: 1 1 200px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-end;
    padding: 60px 20px 100px;
    gap: 24px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-deco {
    width: 140px;
    height: 140px;
  }

  .content-sections {
    padding: 24px 20px;
  }
}

/* 移动端 480px 以下 */
@media (max-width: 480px) {
  :root {
    --nav-h: 56px;
  }

  body.nb-body {
    padding-bottom: calc(var(--nav-h) + 4px);
  }

  .bottom-nav-inner {
    padding: 0 4px;
    gap: 0;
  }

  /* 确保所有导航链接 tap 区域 ≥44px */
  .nav-left li a,
  .nav-right li a {
    font-size: 0.7rem;
    padding: 0 5px;
    min-height: 44px;
    height: 44px;
    letter-spacing: 0;
  }

  .nav-center-brand {
    padding: 0 6px;
    min-height: 44px;
    height: 44px;
  }

  .nav-center-brand .brand-text {
    font-size: 0.78rem;
    padding: 3px 6px;
  }

  .hero-block {
    min-height: 70vh;
  }

  .hero-bg-text {
    font-size: clamp(80px, 38vw, 160px);
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-inner {
    padding: 50px 16px 90px;
  }

  .hero-deco {
    width: 100px;
    height: 100px;
  }

  .main-wrap {
    padding: 24px 12px 40px;
  }

  .content-sections {
    padding: 20px 14px;
  }

  .sidebar {
    flex-direction: column;
  }

  .sidebar-card {
    flex: none;
  }

  .content-sections h2 {
    font-size: 1.25rem;
  }

  .site-footer {
    padding: 24px 16px 16px;
    margin-bottom: var(--nav-h);
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* 超窄屏：隐藏水平导航，改用 details 展开菜单 */
@media (max-width: 375px) {
  .nav-left,
  .nav-right,
  .nav-center-brand {
    display: none;
  }

  .nav-details {
    display: block;
    width: 100%;
    height: var(--nav-h);
    position: relative;
  }

  .nav-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-h);
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    padding: 0 16px;
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
  }

  .nav-summary::-webkit-details-marker {
    display: none;
  }

  .nav-summary .brand-text {
    color: var(--blue);
  }

  .nav-details[open] .nav-menu-float {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--black);
    border-top: var(--border);
    z-index: 999;
    padding: 8px 0;
  }

  .nav-menu-float {
    display: none;
  }

  .nav-menu-float li a {
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    min-height: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu-float li a:hover {
    color: var(--blue);
    text-decoration: none;
  }
}

/* ===== 交错入场动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .content-sections article {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.5s ease forwards;
  }

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

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

  .sidebar-card {
    animation: slideIn 0.4s ease both;
  }

  .sidebar-card:nth-child(1) { animation-delay: 0.08s; }
  .sidebar-card:nth-child(2) { animation-delay: 0.16s; }
  .sidebar-card:nth-child(3) { animation-delay: 0.24s; }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-16px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

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