/* ========================================
   Brand Design System — 新能源模板
   Primary: Deep Teal/Emerald (Clean Energy)
   ======================================== */

:root {
  /* ── Brand Primary ── */
  --ne-primary-50: #e6f5f0;
  --ne-primary-100: #b3e2d1;
  --ne-primary-200: #80cfb2;
  --ne-primary-300: #4dbc93;
  --ne-primary-400: #26a974;
  --ne-primary-500: #0d8a5e;
  --ne-primary-600: #0b7a53;
  --ne-primary-700: #096a48;
  --ne-primary-800: #075a3d;
  --ne-primary-900: #054a32;

  /* ── Neutrals ── */
  --ne-neutral-50: #f8fafb;
  --ne-neutral-100: #f0f3f5;
  --ne-neutral-200: #dde3e8;
  --ne-neutral-300: #c5cfd6;
  --ne-neutral-400: #9aabb5;
  --ne-neutral-500: #6e8490;
  --ne-neutral-600: #4e6572;
  --ne-neutral-700: #384a55;
  --ne-neutral-800: #2b3a43;
  --ne-neutral-900: #1a252e;

  /* ── Semantic Colors ── */
  --ne-state-success: #16a34a;
  --ne-state-warning: #d97706;
  --ne-state-error: #dc2626;
  --ne-state-info: #0891b2;

  /* ── Surface ── */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafb;
  --color-bg-inverse: #1a252e;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-border: #dde3e8;
  --color-border-light: #f0f3f5;

  /* ── Text ── */
  --color-text: #1a252e;
  --color-text-secondary: #4e6572;
  --color-text-tertiary: #6e8490;
  --color-text-inverse: #f8fafb;

  /* ── Brand Colors ── */
  --color-primary: #0d8a5e;
  --color-primary-hover: #0b7a53;
  --color-primary-light: #e6f5f0;
  --color-primary-subtle: #b3e2d1;

  /* ── Radius ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* ── Shadows (max alpha 0.05 for static) ── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.05);
  --shadow-float: 0 12px 40px rgba(0,0,0,0.12);

  /* ── Spacing Scale ── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* ── Typography ── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;

  /* ── Font Sizes ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* ── Font Weights ── */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ── Line Heights ── */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ── Layout ── */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 80px;
}

/* ── Typography Classes ── */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.heading-xl {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.heading-md {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.heading-sm {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

.body-lg {
  font-family: var(--font-family);
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.body-md {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.body-sm {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-tertiary);
}

.caption {
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label {
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Utility Classes ── */
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-secondary); }
.text-white { color: var(--color-text-inverse); }

.bg-primary { background-color: var(--color-primary); }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-alt { background-color: var(--color-bg-alt); }
.bg-inverse { background-color: var(--color-bg-inverse); }

/* ── Section Label (板块标题标签) ── */
.section-label {
  display: inline-block;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
}

/* ── Stat Number (关于我们统计大数字) ── */
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .stat-number { font-size: var(--text-5xl); }
}

/* ── Card Hover (卡片悬浮效果) ── */
.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background-color: var(--color-surface);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Partner Box (合作伙伴 LOGO 方框) ── */
.partner-box {
  height: 120px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: default;
}
.partner-box:hover {
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── CTA Link (卡片底部链接) ── */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap var(--transition-base), color var(--transition-base);
}
.cta-link::after {
  content: "→";
  transition: transform var(--transition-base);
}
.cta-link:hover::after {
  transform: translateX(4px);
}

/* ── Fade-up Animation (入场动画) ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 80ms; }
.stagger-children > *:nth-child(3) { animation-delay: 160ms; }
.stagger-children > *:nth-child(4) { animation-delay: 240ms; }
.stagger-children > *:nth-child(5) { animation-delay: 320ms; }
.stagger-children > *:nth-child(6) { animation-delay: 400ms; }
.stagger-children > *:nth-child(7) { animation-delay: 480ms; }
.stagger-children > *:nth-child(8) { animation-delay: 560ms; }
.stagger-children > *:nth-child(9) { animation-delay: 640ms; }
.stagger-children > *:nth-child(10) { animation-delay: 720ms; }
.stagger-children > *:nth-child(11) { animation-delay: 800ms; }
.stagger-children > *:nth-child(12) { animation-delay: 880ms; }

/* ── Container Max Widths ── */
.max-w-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}
.max-w-container-wide {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Color & Text Utility Classes
   ======================================== */
.text-ne-dark { color: var(--ne-neutral-900); }
.text-ne-text-sec { color: var(--ne-neutral-600); }
.text-ne-text-ter { color: var(--ne-neutral-500); }
.text-ne-primary { color: var(--color-primary); }
.text-ne-primary-hover { color: var(--color-primary-hover); }
.text-ne-state-error { color: var(--ne-state-error); }

.bg-ne-primary { background-color: var(--color-primary); }
.bg-ne-primary-hover { background-color: var(--color-primary-hover); }
.border-ne-border { border-color: var(--color-border); }

/* ========================================
   Hero Overlay (首页 Hero 渐变遮罩)
   ======================================== */
.hero-overlay {
  background: linear-gradient(180deg, rgba(26,37,46,0.35) 0%, rgba(26,37,46,0.55) 50%, rgba(26,37,46,0.75) 100%);
}

/* ========================================
   Page Hero (内页顶部 Banner)
   ======================================== */
.page-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--header-height, 80px);
}

/* ========================================
   Line Clamp (文本截断)
   ======================================== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   SR Only (屏幕阅读器专用)
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Timeline (发展历程时间轴)
   ======================================== */
.timeline {
  position: relative;
  padding-left: 60px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-year {
  position: absolute;
  left: -60px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}
.timeline-dot {
  position: absolute;
  left: -60px;
  top: 48px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  z-index: 1;
}
.timeline-content {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.timeline-item:hover .timeline-content {
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .timeline { padding-left: 50px; }
  .timeline::before { left: 12px; }
  .timeline-year { left: -50px; width: 28px; height: 28px; font-size: 10px; }
  .timeline-dot { left: -50px; top: 40px; }
}

/* ========================================
   Value Card (核心价值观卡片)
   ======================================== */
.value-card {
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   Advantage Card (核心优势卡片)
   ======================================== */
.advantage-card {
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%);
  color: var(--color-primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-primary-subtle);
}

/* ========================================
   Cert Box (资质认证方框)
   ======================================== */
.cert-box {
  height: 140px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.cert-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-subtle);
}
.cert-icon {
  font-size: 40px;
  line-height: 1;
}

/* ========================================
   Team Card (管理团队卡片)
   ======================================== */
.team-card {
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

/* ========================================
   Solution Big Card (解决方案大图卡片)
   ======================================== */
.solution-big-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.solution-big-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.solution-big-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.solution-big-card:hover .solution-big-image img {
  transform: scale(1.05);
}
.solution-big-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  background: rgba(13, 138, 94, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.solution-big-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .solution-big-card { grid-template-columns: 1fr; }
  .solution-big-image { min-height: 260px; }
  .solution-big-body { padding: 32px 24px; }
}

/* ========================================
   Case Card (成功案例卡片)
   ======================================== */
.case-card {
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  border-top: 4px solid var(--color-primary);
}
.case-date {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ========================================
   Process Step (服务流程步骤)
   ======================================== */
.process-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--ne-primary-400) 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(13, 138, 94, 0.25);
  position: relative;
  z-index: 1;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 64px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0, var(--color-border) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.process-step:last-child::after {
  display: none;
}
@media (max-width: 1023px) {
  .process-step::after { display: none; }
}

/* ========================================
   CTA Section (底部大CTA区)
   ======================================== */
.cta-section {
  background:
    linear-gradient(135deg, rgba(13, 138, 94, 0.92) 0%, rgba(5, 74, 50, 0.95) 100%),
    url('/assets/images/hero-solutions.jpg') center/cover no-repeat;
  color: #fff;
}

/* ========================================
   Tab Item (分类 Tab 标签)
   ======================================== */
.tab-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ne-neutral-600);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
}
.tab-item:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.tab-item.active {
  color: #fff;
  background: var(--color-primary);
  font-weight: 600;
}

/* ========================================
   Pagination (分页)
   ======================================== */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--ne-neutral-700);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pagination-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========================================
   Post List Card (新闻列表卡片)
   ======================================== */
.post-list-card img {
  transition: transform var(--transition-slow);
}
.post-list-card:hover img {
  transform: scale(1.05);
}

/* ========================================
   Form Elements (表单元素)
   ======================================== */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ne-neutral-800);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--ne-neutral-900);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  box-sizing: border-box;
}
.form-input::placeholder {
  color: var(--ne-neutral-400);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234e6572' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 138, 94, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}

/* ========================================
   Contact Form (联系表单容器)
   ======================================== */
.contact-form {
  padding: 40px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}
@media (max-width: 640px) {
  .contact-form { padding: 28px 20px; }
}

/* ========================================
   Map Placeholder (地图占位)
   ======================================== */
.map-placeholder {
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(26, 37, 46, 0.75) 0%, rgba(26, 37, 46, 0.6) 100%),
    repeating-linear-gradient(45deg, #2b3a43 0, #2b3a43 20px, #384a55 20px, #384a55 40px);
  position: relative;
  border: 1px solid var(--color-border);
}
.map-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.map-pin {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: bounce 2s ease-in-out infinite;
}
.map-title {
  font-size: 18px;
  font-weight: 700;
}
.map-sub {
  max-width: 360px;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========================================
   Hamburger / Mobile Menu (移动端菜单)
   ======================================== */
.hamburger {
  cursor: pointer;
  background: transparent;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ne-neutral-800);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger span:nth-child(2) {
  margin: 5px 0;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.mobile-menu.open {
  max-height: 500px;
  box-shadow: var(--shadow-md);
}

/* ========================================
   Detail Page — 通用内容排版 (moon-content 替换)
   ======================================== */
.content-style,
.ne-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ne-neutral-700);
}
.content-style h2,
.ne-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ne-neutral-900);
  margin: 36px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary-light);
}
.content-style h3,
.ne-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ne-neutral-900);
  margin: 28px 0 12px;
}
.content-style h4,
.ne-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ne-neutral-900);
  margin: 20px 0 10px;
}
.content-style p,
.ne-content p {
  margin: 0 0 16px;
}
.content-style ul, .content-style ol,
.ne-content ul, .ne-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.content-style li,
.ne-content li {
  margin: 6px 0;
}
.content-style strong,
.ne-content strong {
  color: var(--ne-neutral-900);
  font-weight: 600;
}
.content-style a,
.ne-content a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary-subtle);
  transition: all var(--transition-base);
}
.content-style a:hover,
.ne-content a:hover {
  border-bottom-color: var(--color-primary);
}
.content-style blockquote,
.ne-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ne-neutral-700);
}
.content-style table,
.ne-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.content-style th, .content-style td,
.ne-content th, .ne-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}
.content-style th,
.ne-content th {
  background: var(--color-primary-light);
  color: var(--ne-neutral-900);
  font-weight: 600;
}
.content-style tr:last-child td,
.ne-content tr:last-child td {
  border-bottom: none;
}
.content-style img,
.ne-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 16px 0;
}
.content-style code,
.ne-content code {
  padding: 2px 6px;
  background: var(--ne-neutral-100);
  color: var(--ne-state-error);
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 4px;
}
.content-style hr,
.ne-content hr {
  margin: 32px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ========================================
   Tag Badge (标签小徽章)
   ======================================== */
.ne-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  margin: 4px 6px 4px 0;
  transition: all var(--transition-base);
  text-decoration: none;
}
.ne-tag:hover {
  background: var(--color-primary);
  color: #fff;
}
