/* ===== 轻放矿工 · 产品官网基础系统 ===== */
:root {
  --forest: #0b3520;
  --green: #146b3a;
  --green-strong: #0f5a30;
  --green-soft: #e8f3ec;
  --mint: #dff0e5;
  --paper: #f6f8f4;
  --white: #ffffff;
  --ink: #18261c;
  --ink-soft: #34463a;
  --muted: #637166;
  --muted-2: #7d8a80;
  --line: #dfe7df;
  --line-strong: #cbd8ce;
  --gold: #b27a24;
  --gold-soft: #fbf3e3;
  --red: #b8453b;
  --red-soft: #fbeeec;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 58, 33, .04);
  --shadow: 0 14px 40px rgba(15, 58, 33, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-strong); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { flex: 0 0 auto; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: rgba(20, 107, 58, .18); }
[hidden] { display: none !important; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 48px)); margin: 0 auto; }
.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;
}
.skip-link {
  position: fixed; top: 8px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--forest); color: #fff; transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

/* ===== 页头 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand-text small { margin-top: 3px; font-size: 10px; color: var(--muted-2); letter-spacing: .1em; font-weight: 700; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  flex: 1;
}
.site-nav > a, .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav > a:hover, .nav-dropdown-trigger:hover,
.site-nav > a[aria-current="page"], .nav-dropdown.has-active .nav-dropdown-trigger {
  color: var(--green);
  background: var(--green-soft);
}
.nav-dropdown { position: relative; }
.nav-dropdown-trigger::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 2px;
  transition: transform .16s ease;
}
.nav-dropdown.open .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a[aria-current="page"] { background: var(--green-soft); color: var(--green); }
.header-download { margin-left: auto; flex: 0 0 auto; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 7px 18px rgba(20, 107, 58, .18); }
.btn-primary:hover { background: var(--green-strong); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { background: transparent; color: var(--green); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: var(--green-soft); color: var(--green); }
.btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; padding: 0; }
.btn-icon svg { width: 15px; height: 15px; }

/* ===== 通用排版 ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--green); border-radius: 2px; }
.section { padding: 78px 0; }
.section-tight { padding: 48px 0; }
.section-soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -.04em;
  font-weight: 800;
}
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .88em; }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ===== 卡片 ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-line { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 64px;
  background: var(--forest);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 42px;
  padding: 54px 0 38px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); }
.footer-brand strong { font-size: 16px; letter-spacing: .02em; }
.footer-col h4 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.64); padding: 5px 0; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-copy { max-width: 310px; line-height: 1.8; color: rgba(255,255,255,.58); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.45);
  font-size: 11.5px;
}
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-risk { max-width: 720px; }

/* ===== 通用表单 ===== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field > span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 13.5px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,107,58,.1); }
.field small { color: var(--muted-2); font-size: 11.5px; }

/* ===== 移动端 ===== */
@media (max-width: 980px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .header-download { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-shadow: 0 18px 34px rgba(15, 58, 33, .08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav > a, .nav-dropdown-trigger { padding: 11px 10px; font-size: 14px; justify-content: space-between; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { width: 100%; text-align: left; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    background: var(--paper);
    margin: 2px 0 6px;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .container, .narrow { width: min(100% - 32px, 1180px); }
  .section { padding: 54px 0; }
  .section-tight { padding: 34px 0; }
  .brand-text small { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 38px 0 28px; }
  .footer-col-wide { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; padding-bottom: 22px; }
  .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
