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

/* ===== 设计系统 ===== */
:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #1e3020;
  --dark3: #0d1a0d;
  --card-bg: #1c2e1c;
  --card-bg2: #152415;
  --text: #d4f5d4;
  --text-muted: #7aad7a;
  --border: #2a4a2a;
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font-head: 'Syne', 'Arial Black', sans-serif;
  --font-body: 'Manrope', 'Arial', sans-serif;
  --glow-green: 0 0 16px #69ff6988, 0 0 32px #69ff6944;
  --glow-cyan: 0 0 16px #00ffff88, 0 0 32px #00ffff44;
  --grad-chrome: linear-gradient(135deg, #69ff69 0%, #00ffff 40%, #69ff69 70%, #b0ff80 100%);
  --grad-bg: linear-gradient(160deg, #172617 0%, #0d1a0d 60%, #172617 100%);
  --grad-card: linear-gradient(145deg, #1e3020 0%, #152415 100%);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--grad-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--header-h) + 12px);
}

a { color: var(--cyan); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== 底部固定导航栏（桌面也用）===== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(23,38,23,0.97);
  backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}

.site-header nav {
  flex: 1;
  overflow: hidden;
}

.site-header nav > p {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-header nav > p::-webkit-scrollbar { display: none; }

.site-header nav > p > a {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 10px 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}

.site-header nav > p > a:hover {
  color: var(--green);
  background: rgba(105,255,105,.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-chrome);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .05em;
}

.brand-logo-mark { width: 32px; height: 32px; object-fit: contain; }

.cta-btn {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  background: var(--grad-chrome);
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .04em;
  box-shadow: var(--glow-green);
  transition: opacity .2s, box-shadow .2s;
  display: flex;
  align-items: center;
}

.cta-btn:hover { opacity: .85; box-shadow: var(--glow-cyan); color: var(--dark); }

.burger {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}

.burger:hover { border-color: var(--green); color: var(--green); }

/* ===== 全屏遮罩菜单 ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13,26,13,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}

.overlay-close:hover { border-color: var(--cyan); color: var(--cyan); }

.overlay-nav > p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.overlay-nav > p > a {
  font-family: var(--font-head);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 700;
  color: var(--text);
  padding: 14px 32px;
  min-height: 52px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  letter-spacing: .04em;
  transition: color .2s, background .2s, text-shadow .2s;
}

.overlay-nav > p > a:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
  background: rgba(105,255,105,.06);
}

/* ===== 主体布局 ===== */
main {
  min-height: calc(100vh - var(--header-h) - 80px);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero（首页）===== */
.hero-section {
  padding: 48px 0 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 45vh;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grad-card);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.hero-placeholder {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3020 0%, #0d2a1a 50%, #1c3828 100%);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}

.hero-glow-text {
  font-family: var(--font-head);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px #69ff6966);
  letter-spacing: .08em;
}

.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--grad-chrome);
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: .06em;
}

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

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== 按钮系统 ===== */
.btn-primary {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  background: var(--grad-chrome);
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 22px;
  letter-spacing: .04em;
  box-shadow: var(--glow-green);
  transition: opacity .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover { opacity: .85; box-shadow: var(--glow-cyan); color: var(--dark); }

.btn-secondary {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(135deg, #00ffff, #69ff69);
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 22px;
  letter-spacing: .04em;
  box-shadow: var(--glow-cyan);
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
}
.btn-secondary:hover { opacity: .85; color: var(--dark); }

.btn-ghost {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 22px;
  letter-spacing: .04em;
  transition: border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== 双栏布局（正文+侧边栏）===== */
.content-section {
  padding: 32px 0 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== 侧边栏 ===== */
.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-inner {
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-inner small {
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sidebar-inner h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-top: -4px;
}

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

.sidebar-links li a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 10px;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.sidebar-links li a:hover {
  color: var(--green);
  background: rgba(105,255,105,.06);
}

.sidebar-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.sidebar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(105,255,105,.06);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 4px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 #69ff6944; }
  50% { opacity: .7; box-shadow: 0 0 0 6px #69ff6900; }
}

/* ===== 正文内容 ===== */
.page-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--green);
  margin: 32px 0 12px;
  line-height: 1.25;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--cyan);
  margin: 24px 0 8px;
}

.prose p { margin-bottom: 16px; }
.prose ul, .prose ol {
  margin: 12px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { line-height: 1.65; }
.prose strong { color: var(--green); font-weight: 600; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(0,255,255,.2); }
.prose a:hover { color: var(--green); border-color: rgba(105,255,105,.3); }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 20px;
  background: rgba(0,255,255,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  color: var(--text-muted);
}

/* ===== small 眉题 ===== */
small {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
}

/* small + h2/h3 同级紧邻 */
small + h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--green);
  margin-top: 6px;
  margin-bottom: 20px;
  line-height: 1.2;
}

small + h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
  margin-bottom: 12px;
}

/* ===== 标签 ===== */
.tag-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  background: var(--grad-chrome);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .08em;
}

/* ===== 日期 ===== */
.pub-date, .mod-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== 子页卡片网格（child-block）===== */
.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.child-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.child-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-chrome);
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius);
  z-index: 0;
}

.child-block:hover {
  border-color: var(--green);
  box-shadow: var(--glow-green);
  transform: translateY(-3px);
  color: var(--text);
}

.child-block:hover::before { opacity: .05; }

.child-block > * { position: relative; z-index: 1; }

.child-block > strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
}

.child-block > span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.child-block > time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
}

.child-grid--cases .child-block { min-height: 120px; }

/* ===== 首页服务/精选区块 ===== */
.service-grid, .featured-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.card a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.card strong {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}

.card span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Hero 页（service/cases/etc）===== */
.service-hero, .case-hero, .about-hero, .contact-hero,
.faq-hero, .privacy-hero, .default-hero {
  padding: 48px 0 24px;
}

.service-hero-inner, .case-hero-inner, .about-hero-inner,
.contact-hero-inner, .faq-hero-inner, .privacy-hero-inner,
.default-hero-inner {
  max-width: 720px;
}

.service-hero-badge-row, .case-meta-row, .about-tag-row,
.contact-tag-row, .faq-tag-row, .privacy-tag-row, .default-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.service-hero-inner h1, .case-hero-inner h1, .about-hero-inner h1,
.contact-hero-inner h1, .faq-hero-inner h1, .privacy-hero-inner h1,
.default-hero-inner h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.service-subtitle, .about-lead, .contact-lead, .faq-lead,
.privacy-lead, .default-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

.service-hero-img-wrap, .case-hero-img-wrap {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 320px;
}

.service-hero-img, .case-hero-img { width: 100%; object-fit: cover; }

/* ===== CTA 区块 ===== */
.nav-cta-block, .about-links-block, .faq-bottom, .privacy-bottom,
.cases-list-section, .contact-channels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== 联系页 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-icon { font-size: 28px; }

.contact-card strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.contact-card span { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb-link { color: var(--cyan); }
.breadcrumb-link:hover { color: var(--green); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark3);
  border-top: 1.5px solid var(--border);
  padding: 32px 20px;
  margin-bottom: var(--header-h);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .06em;
  line-height: 1;
  filter: drop-shadow(0 0 20px #69ff6955);
}

.footer-address {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
  max-width: 480px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: center;
}

.footer-links li a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color .2s;
}

.footer-links li a:hover { color: var(--green); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: .7;
}

/* ===== 装饰效果 ===== */
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, #69ff6918 0%, transparent 70%);
  pointer-events: none;
}

/* ===== FAQ 样式增强 ===== */
.faq-content .prose h2 {
  border-left: 3px solid var(--green);
  padding-left: 14px;
  margin-top: 28px;
}

/* ===== 隐私页样式 ===== */
.privacy-prose h2 {
  font-size: clamp(18px, 2.5vw, 22px);
}

/* ===== 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .child-block {
    animation: fadeUp .4s ease both;
  }

  .child-block:nth-child(1) { animation-delay: 0s; }
  .child-block:nth-child(2) { animation-delay: .07s; }
  .child-block:nth-child(3) { animation-delay: .14s; }
  .child-block:nth-child(4) { animation-delay: .21s; }
  .child-block:nth-child(5) { animation-delay: .28s; }
  .child-block:nth-child(6) { animation-delay: .35s; }

  .card {
    animation: fadeUp .4s ease both;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    text-align: left;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .wrap {
    padding: 0 16px;
  }

  .site-header {
    padding: 0 12px;
    gap: 8px;
  }

  .site-header nav > p > a {
    font-size: 11px;
    padding: 10px 7px;
  }

  .cta-btn {
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero-section {
    padding: 32px 0 16px;
  }

  .hero-media {
    min-height: 180px;
  }

  .child-grid {
    grid-template-columns: 1fr;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .cta-row {
    flex-direction: column;
  }

  .footer-brand {
    font-size: 40px;
  }

  .overlay-nav > p > a {
    font-size: 20px;
    padding: 12px 20px;
  }
}

@media (max-width: 375px) {
  body {
    font-size: 16px;
  }

  .site-header nav {
    display: none;
  }

  .footer-links {
    gap: 2px 4px;
  }
}
