@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 {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --off-white: #f0f0f0;
  --gray: #888888;
  --border: 2px solid var(--green);
  --border-blue: 2px solid var(--blue);
  --border-white: 2px solid var(--white);
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --max-w: 1200px;
  --aside-w: 220px;
}

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

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--blue);
  background: var(--green);
}

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

ul, ol { list-style: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: var(--border);
  width: 100%;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  min-height: 56px;
}

.header-left nav,
.header-right nav {
  display: block;
}

.header-left nav p,
.header-right nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.header-left nav p a,
.header-right nav p a {
  display: inline-block;
  padding: 8px 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
  border-right: 1px solid #333;
  min-height: 40px;
  line-height: 24px;
}

.header-left nav p a:first-child {
  border-left: 1px solid #333;
}

.header-left nav p a:hover,
.header-right nav p a:hover {
  color: var(--black);
  background: var(--green);
}

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

.header-brand {
  text-align: center;
  padding: 0 12px;
}

.brand-link {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-link:hover {
  color: var(--black);
  background: var(--green);
}

.cta-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--green);
  color: var(--black) !important;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.78rem;
  border: 2px solid var(--green);
  min-height: 40px;
  line-height: 22px;
}

.cta-btn:hover {
  background: var(--blue);
  color: var(--white) !important;
  border-color: var(--blue);
}

/* ============================================================
   ANCHOR BAR (breadcrumb)
   ============================================================ */
.anchor-bar {
  background: #111;
  border-bottom: 1px solid #222;
}

.anchor-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--gray);
}

.anchor-bar-inner a {
  color: var(--gray);
  font-size: 0.8rem;
  padding: 2px 4px;
}

.anchor-bar-inner a:hover {
  color: var(--black);
  background: var(--green);
}

.crumb-sep {
  color: #444;
  padding: 0 2px;
}

.crumb-cur {
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section,
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding: 48px 16px 40px;
  border-bottom: var(--border);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--green) 1px, transparent 1px),
    linear-gradient(90deg, var(--green) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-left: 3px solid var(--green);
  padding-left: 10px;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-content .subtitle,
.hero-desc {
  font-size: 1.05rem;
  color: var(--off-white);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-hero--faq { min-height: 32vh; }
.page-hero--about { min-height: 32vh; }
.page-hero--contact { min-height: 32vh; }
.page-hero--privacy { min-height: 28vh; }
.page-hero--cases { min-height: 34vh; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.9rem;
  border: 2px solid var(--green);
  min-height: 44px;
  line-height: 20px;
}

.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.9rem;
  border: 2px solid var(--green);
  min-height: 44px;
  line-height: 20px;
}

.btn-outline:hover {
  background: var(--green);
  color: var(--black);
}

/* ============================================================
   HOME: NAV CARD GRID
   ============================================================ */
.nav-grid-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 16px 32px;
  border-bottom: 1px solid #222;
}

.nav-grid-section h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.nav-grid-section .subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border: var(--border);
}

.nav-card-grid li {
  border: 1px solid #222;
}

.nav-card-grid li a {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  color: var(--white);
  background: #0a0a0a;
  height: 100%;
  border: none;
}

.nav-card-grid li a:hover {
  background: var(--blue);
  color: var(--white);
}

.nav-card-grid .card-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.nav-card-grid li a:hover .card-num {
  color: var(--green);
}

.nav-card-grid strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.nav-card-grid small {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
}

.nav-card-grid li a:hover small {
  color: #ccc;
}

/* ============================================================
   CONTENT SECTION (aside + main)
   ============================================================ */
.content-section {
  display: flex;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  align-items: flex-start;
}

.page-aside {
  width: var(--aside-w);
  flex-shrink: 0;
  border-right: var(--border);
  padding: 32px 16px 32px 0;
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.aside-block {
  margin-bottom: 28px;
}

.aside-title {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid #222;
  padding-bottom: 6px;
}

.aside-nav li {
  border-bottom: 1px solid #111;
}

.aside-nav li a {
  display: block;
  padding: 7px 8px;
  font-size: 0.82rem;
  color: var(--off-white);
  font-weight: 500;
  min-height: 40px;
  line-height: 26px;
}

.aside-nav li a:hover {
  background: var(--green);
  color: var(--black);
}

.content-main {
  flex: 1;
  min-width: 0;
  padding: 32px 0 48px 28px;
}

/* ============================================================
   PROSE (page.content)
   ============================================================ */
.prose {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--off-white);
}

.prose h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 8px;
  border-left: 4px solid var(--green);
  padding-left: 12px;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin: 24px 0 6px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.prose a {
  color: var(--green);
  border-bottom: 1px solid var(--green);
}

.prose a:hover {
  background: var(--green);
  color: var(--black);
}

.prose strong {
  color: var(--white);
  font-weight: 700;
}

.prose blockquote {
  border-left: 4px solid var(--blue);
  padding-left: 16px;
  color: var(--gray);
  font-style: italic;
  margin: 20px 0;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.prose th {
  background: var(--blue);
  color: var(--white);
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  border: 1px solid #333;
}

.prose td {
  padding: 8px 12px;
  border: 1px solid #222;
  color: var(--off-white);
}

.prose tr:nth-child(even) td {
  background: #0a0a0a;
}

/* ============================================================
   DATE / TIME
   ============================================================ */
.page-date,
.page-date-mod {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray);
  font-family: var(--font-head);
  margin-right: 12px;
  margin-top: 12px;
}

.page-date::before {
  content: '◆ ';
  color: var(--green);
}

.date-line {
  margin-top: 8px;
}

/* ============================================================
   SERVICE: hero
   ============================================================ */
.service-hero {
  border-bottom: var(--border);
  padding: 40px 16px 32px;
  background: #050505;
}

.service-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.svc-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-left: 3px solid var(--blue);
  padding-left: 10px;
}

.service-hero-inner h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
}

.service-hero-inner .subtitle {
  font-size: 1rem;
  color: #ccc;
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================================
   SERVICE LIST (home)
   ============================================================ */
.service-list-section {
  margin-top: 40px;
  border-top: 1px solid #222;
  padding-top: 32px;
}

.service-list-section h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.service-list-section .subtitle {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.service-index-list {
  display: flex;
  flex-direction: column;
  border: var(--border);
}

.service-index-list li {
  border-bottom: 1px solid #1a1a1a;
}

.service-index-list li:last-child {
  border-bottom: none;
}

.service-index-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--white);
  background: #050505;
  font-size: 0.9rem;
}

.service-index-list li a:hover {
  background: var(--blue);
  color: var(--white);
}

.svc-idx {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  min-width: 32px;
  display: inline-block;
}

.svc-title {
  flex: 1;
  font-weight: 600;
}

.service-index-list small {
  color: var(--gray);
  font-size: 0.75rem;
  display: block;
  margin-top: 2px;
}

.service-index-list li a:hover .svc-idx {
  color: var(--green);
}

.service-index-list li a:hover small {
  color: #bbb;
}

/* ============================================================
   CHILD PAGES (service sub)
   ============================================================ */
.child-pages-section {
  margin-top: 40px;
  border-top: 1px solid #222;
  padding-top: 28px;
}

.child-pages-section h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.child-pages-section .subtitle {
  color: var(--gray);
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.child-ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #222;
}

.child-ol li {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #1a1a1a;
  padding: 12px 16px;
}

.child-ol li:last-child {
  border-bottom: none;
}

.child-ol li a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}

.child-ol li a:hover {
  color: var(--black);
  background: var(--green);
  padding-left: 4px;
}

.child-ol small {
  color: var(--gray);
  font-size: 0.78rem;
  display: block;
  line-height: 1.5;
}

/* ============================================================
   CASES
   ============================================================ */
.cases-list-wrap {
  margin-top: 40px;
  border-top: 1px solid #222;
  padding-top: 28px;
}

.cases-list-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.cases-list-wrap .subtitle {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.cases-ol {
  border: var(--border);
}

.case-item {
  border-bottom: 1px solid #1a1a1a;
}

.case-item:last-child {
  border-bottom: none;
}

.case-item a {
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  align-items: center;
  gap: 16px;
  padding: 16px 16px;
  color: var(--white);
  background: #050505;
}

.case-item a:hover {
  background: var(--blue);
  color: var(--white);
}

.case-num {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
}

.case-item a:hover .case-num {
  color: var(--green);
}

.case-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.case-body small {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.5;
}

.case-item a:hover .case-body small {
  color: #ccc;
}

.case-arrow {
  font-size: 1.2rem;
  color: var(--green);
  font-weight: 700;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-content {
  /* inherits .prose */
}

.faq-footer-nav {
  margin-top: 40px;
  border-top: 1px solid #222;
  padding-top: 28px;
}

.faq-footer-nav h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.faq-footer-nav .subtitle {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ============================================================
   ABOUT / CONTACT CTA
   ============================================================ */
.about-cta-block,
.contact-tips {
  margin-top: 40px;
  border-top: 1px solid #222;
  padding-top: 28px;
}

.about-cta-block h2,
.contact-tips h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.about-cta-block .subtitle,
.contact-tips .subtitle {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.about-cta-block p {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   h2 + p.subtitle pattern
   ============================================================ */
h2 + p.subtitle,
h2 + .subtitle {
  color: var(--gray);
  font-size: 0.88rem;
  margin-top: 4px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: var(--border);
  margin-top: 0;
}

.footer-brand-bar {
  background: var(--black);
  padding: 32px 16px 24px;
  border-bottom: 1px solid #222;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 16px;
}

.footer-bottom address {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--gray);
  font-family: var(--font-body);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-bottom ul li {
  border-right: 1px solid #333;
}

.footer-bottom ul li:last-child {
  border-right: none;
}

.footer-bottom ul li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--gray);
  min-height: 40px;
  line-height: 28px;
}

.footer-bottom ul li a:hover {
  color: var(--black);
  background: var(--green);
}

/* ============================================================
   SCROLL REVEAL (JS-driven, progressive enhancement)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s, transform 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-section {
    flex-direction: column;
  }

  .page-aside {
    width: 100%;
    border-right: none;
    border-bottom: var(--border);
    position: static;
    max-height: none;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .aside-block {
    min-width: 160px;
    flex: 1;
    margin-bottom: 0;
  }

  .content-main {
    padding: 24px 0 40px 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 0 8px;
  }

  .header-left {
    grid-column: 1;
    grid-row: 2;
  }

  .header-brand {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    padding: 8px 0;
  }

  .header-right {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
  }

  .header-left nav p a {
    font-size: 0.72rem;
    padding: 8px 6px;
  }

  .header-right nav p a {
    font-size: 0.72rem;
    padding: 8px 6px;
  }

  .cta-btn {
    font-size: 0.72rem;
    padding: 8px 10px;
  }

  .nav-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-item a {
    grid-template-columns: 32px 1fr;
  }

  .case-arrow {
    display: none;
  }

  .hero-section,
  .page-hero {
    min-height: 40vh;
    padding: 36px 12px 28px;
  }

  .service-hero {
    padding: 28px 12px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-bottom ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-card-grid {
    grid-template-columns: 1fr;
  }

  .header-left nav p {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .footer-brand {
    font-size: 2.2rem;
  }
}
