@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

/* =============================================
   CSS 变量 & 重置
   ============================================= */
:root {
  --mint: #b4fde1;
  --fog: #add8e6;
  --dark: #172620;
  --dark2: #1f3329;
  --dark3: #2a4338;
  --mint-dark: #7de8bf;
  --fog-dark: #7ab8cc;
  --white: #f0faf6;
  --text-main: #0d1e17;
  --text-sub: #2e4a3b;
  --text-muted: #4e6e5e;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --border-w: 3px;
  --shadow-clay: 4px 6px 0px #172620, inset -2px -3px 8px rgba(0,0,0,0.15), inset 2px 2px 8px rgba(255,255,255,0.35);
  --shadow-clay-sm: 3px 4px 0px #172620, inset -1px -2px 6px rgba(0,0,0,0.12), inset 1px 1px 6px rgba(255,255,255,0.3);
  --shadow-card: 5px 7px 0px #172620, inset -2px -3px 10px rgba(0,0,0,0.1), inset 2px 2px 10px rgba(255,255,255,0.25);
  --font-main: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark);
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, menu {
  list-style: none;
}

/* =============================================
   像素点阵底纹
   ============================================= */
.page-wrapper {
  position: relative;
  min-height: 100vh;
}

.page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(180, 253, 225, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   页头 - 两行布局
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark2);
  border-bottom: var(--border-w) solid var(--dark3);
}

.header-brand {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 2px solid rgba(180, 253, 225, 0.15);
  padding: 0 2rem;
}

.header-brand-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
}

.header-contact {
  display: flex;
  align-items: center;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fog);
  background: rgba(173, 216, 230, 0.12);
  border: 2px solid rgba(173, 216, 230, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.06em;
}

/* 导航行 */
.site-nav {
  background: var(--dark3);
  padding: 0 2rem;
}

.nav-details {
  max-width: 1280px;
  margin: 0 auto;
}

.nav-details[open] summary .nav-toggle-icon::before {
  content: '▲';
}

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.6rem 0;
  list-style: none;
  user-select: none;
}

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

.nav-toggle-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-toggle-icon {
  font-size: 0.7rem;
  color: var(--mint-dark);
  transition: transform 200ms ease;
}

.nav-toggle-icon::before {
  content: '▼';
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 0 0.75rem;
}

.nav-menu li {
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(180, 253, 225, 0.07);
  border: 2px solid rgba(180, 253, 225, 0.15);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-height: 40px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--mint);
  color: var(--dark);
  border-color: var(--mint-dark);
  box-shadow: var(--shadow-clay-sm);
  transform: translateY(-2px);
  outline: none;
}

/* scroll-margin for sticky nav */
div[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* =============================================
   Hero 区块
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #0d2218 100%);
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(180, 253, 225, 0.2) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  animation: gridFloat 8s ease-in-out infinite alternate;
}

@keyframes gridFloat {
  from { transform: translate(0, 0); }
  to   { transform: translate(6px, 8px); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(23, 38, 32, 0.85) 0%,
    rgba(23, 38, 32, 0.4) 50%,
    rgba(23, 38, 32, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 680px;
  padding: 2rem 3rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

.hero-eyebrow {
  display: flex;
  justify-content: flex-end;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--mint);
  border: 2px solid var(--mint-dark);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  box-shadow: var(--shadow-clay-sm);
  letter-spacing: 0.08em;
  display: inline-block;
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--mint);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 3px 4px 0px rgba(0,0,0,0.5);
  animation: heroSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: rgba(240, 250, 246, 0.82);
  max-width: 480px;
  line-height: 1.7;
  animation: heroSlideIn 0.7s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-cta.clay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  border: var(--border-w) solid var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: heroSlideIn 0.7s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  min-height: 48px;
}

.hero-cta.clay-btn:hover {
  transform: translate(-2px, -3px);
  box-shadow: 6px 9px 0px var(--dark), inset -2px -3px 8px rgba(0,0,0,0.15), inset 2px 2px 8px rgba(255,255,255,0.4);
}

.hero-cta.clay-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 3px 0px var(--dark), inset -1px -2px 6px rgba(0,0,0,0.2), inset 1px 1px 6px rgba(255,255,255,0.2);
}

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

.bubble {
  position: absolute;
  border-radius: 50%;
  border: var(--border-w) solid rgba(180, 253, 225, 0.3);
}

.bubble-1 {
  width: 180px; height: 180px;
  top: 15%; left: 8%;
  background: radial-gradient(circle at 35% 35%, rgba(180,253,225,0.15), rgba(180,253,225,0.03));
  box-shadow: inset -3px -3px 12px rgba(0,0,0,0.2), inset 3px 3px 12px rgba(255,255,255,0.08);
  animation: bubbleFloat1 6s ease-in-out infinite;
}

.bubble-2 {
  width: 100px; height: 100px;
  top: 60%; left: 15%;
  background: radial-gradient(circle at 35% 35%, rgba(173,216,230,0.18), rgba(173,216,230,0.03));
  border-color: rgba(173, 216, 230, 0.3);
  animation: bubbleFloat2 8s ease-in-out infinite;
}

.bubble-3 {
  width: 60px; height: 60px;
  top: 25%; left: 40%;
  background: radial-gradient(circle at 35% 35%, rgba(180,253,225,0.2), transparent);
  animation: bubbleFloat1 5s 1s ease-in-out infinite;
}

.bubble-4 {
  width: 140px; height: 140px;
  bottom: 10%; right: 5%;
  background: radial-gradient(circle at 35% 35%, rgba(173,216,230,0.12), transparent);
  border-color: rgba(173, 216, 230, 0.2);
  animation: bubbleFloat2 7s 0.5s ease-in-out infinite;
}

@keyframes bubbleFloat1 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}

@keyframes bubbleFloat2 {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(14px) scale(1.05); }
}

/* =============================================
   主内容区 - main > section.wrap > div > article
   ============================================= */
.site-main {
  background: linear-gradient(180deg, var(--dark2) 0%, #1a2e24 100%);
  position: relative;
  z-index: 1;
  padding: 4rem 1rem;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.content-section {
  /* 直接嵌套 div */
}

.content-article {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* =============================================
   侧边栏 aside（左侧）
   ============================================= */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  order: -1;
}

.aside-inner {
  background: linear-gradient(145deg, rgba(23,38,32,0.9), rgba(30,50,38,0.9));
  border: var(--border-w) solid rgba(180, 253, 225, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.aside-inner > small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fog);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.aside-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aside-link {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(240, 250, 246, 0.8);
  background: rgba(180, 253, 225, 0.05);
  border: 2px solid rgba(180, 253, 225, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link:hover {
  color: var(--dark);
  background: var(--mint);
  border-color: var(--mint-dark);
  box-shadow: var(--shadow-clay-sm);
  transform: translateX(3px);
}

.aside-bubble {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(173,216,230,0.12), transparent);
  border: 2px solid rgba(173, 216, 230, 0.15);
  pointer-events: none;
}

/* =============================================
   正文内容区
   ============================================= */
.content-body {
  min-width: 0;
}

/* 正文内 div 样式（page.content 注入的 div[id]） */
.content-body div {
  background: linear-gradient(145deg, rgba(26,46,36,0.95), rgba(20,36,28,0.95));
  border: var(--border-w) solid rgba(180, 253, 225, 0.18);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  animation: revealUp 0.6s ease-out both;
}

.content-body div::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--fog), var(--mint));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.7;
}

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

.content-body div:nth-child(2) { animation-delay: 0.05s; }
.content-body div:nth-child(3) { animation-delay: 0.10s; }
.content-body div:nth-child(4) { animation-delay: 0.15s; }
.content-body div:nth-child(5) { animation-delay: 0.20s; }
.content-body div:nth-child(6) { animation-delay: 0.25s; }
.content-body div:nth-child(7) { animation-delay: 0.30s; }

/* 正文排版 */
.content-body h1,
.content-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--mint);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.content-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fog);
  margin: 1.5rem 0 0.75rem;
}

.content-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mint-dark);
  margin: 1.25rem 0 0.5rem;
}

.content-body p {
  font-size: 1rem;
  color: rgba(240, 250, 246, 0.85);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-body li {
  font-size: 1rem;
  color: rgba(240, 250, 246, 0.82);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.content-body ul li::marker {
  color: var(--mint);
}

.content-body ol li::marker {
  color: var(--fog);
  font-weight: 700;
}

.content-body strong {
  color: var(--mint);
  font-weight: 700;
}

.content-body em {
  color: var(--fog);
}

.content-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms;
}

.content-body a:hover {
  color: var(--fog);
}

.content-body small {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--fog);
  border-radius: 100px;
  padding: 0.15rem 0.7rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.content-body blockquote {
  border-left: 4px solid var(--mint);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(180, 253, 225, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(240, 250, 246, 0.8);
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.content-body th {
  background: rgba(180, 253, 225, 0.12);
  color: var(--mint);
  font-weight: 700;
  padding: 0.65rem 1rem;
  text-align: left;
  border: 2px solid rgba(180, 253, 225, 0.15);
}

.content-body td {
  padding: 0.6rem 1rem;
  color: rgba(240, 250, 246, 0.8);
  border: 1px solid rgba(180, 253, 225, 0.08);
}

.content-body tr:nth-child(even) td {
  background: rgba(180, 253, 225, 0.03);
}

/* =============================================
   页脚
   ============================================= */
.site-footer {
  background: var(--dark);
  border-top: var(--border-w) solid rgba(180, 253, 225, 0.12);
  position: relative;
  z-index: 1;
}

.footer-top {
  padding: 4rem 2rem 3rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.footer-col > small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fog-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(240, 250, 246, 0.6);
  line-height: 1.7;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(240, 250, 246, 0.65);
  padding: 0.3rem 0;
  transition: color 150ms;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.footer-link:hover {
  color: var(--mint);
}

.footer-address {
  font-style: normal;
  margin-bottom: 1rem;
}

.footer-contact-text {
  font-size: 0.9rem;
  color: rgba(240, 250, 246, 0.6);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-email {
  font-size: 0.9rem;
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-social-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-list .footer-link {
  background: rgba(180, 253, 225, 0.07);
  border: 2px solid rgba(180, 253, 225, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  min-height: 40px;
}

.footer-social-list .footer-link:hover {
  background: var(--mint);
  color: var(--dark);
  border-color: var(--mint-dark);
}

/* 页脚底栏 */
.footer-bottom {
  border-top: 1px solid rgba(180, 253, 225, 0.08);
  padding: 1.25rem 2rem;
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(240, 250, 246, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  font-size: 0.82rem;
  color: rgba(240, 250, 246, 0.4);
  transition: color 150ms;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-bottom-link:hover {
  color: var(--mint);
}

/* =============================================
   Scroll Reveal（CSS fallback + JS 配合）
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   响应式断点
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-article {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 160px;
  }

  .header-brand {
    padding: 0 1rem;
  }

  .site-nav {
    padding: 0 1rem;
  }

  .nav-summary {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    gap: 0.4rem;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .hero-eyebrow {
    justify-content: flex-start;
  }

  .content-article {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    order: 0;
  }

  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    min-height: 40px;
  }

  .site-main {
    padding: 2.5rem 1rem;
  }

  .content-body div {
    padding: 1.75rem 1.25rem;
    margin-bottom: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-top {
    padding: 2.5rem 1.25rem 2rem;
  }

  .footer-bottom {
    padding: 1rem 1.25rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .hero-h1 {
    font-size: 1.9rem;
  }

  .hero-cta.clay-btn {
    width: 100%;
    justify-content: center;
  }

  .bubble-1 { width: 100px; height: 100px; }
  .bubble-4 { width: 80px; height: 80px; }

  .content-body h2 { font-size: 1.3rem; }
}

/* =============================================
   prefers-reduced-motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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