:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface2: #232d3a;
  --text: #e8eef4;
  --muted: #9aabbc;
  --accent: #d4a017;
  --accent-dim: #a67c0e;
  --line: #2c3a4a;
  --ok: #3d9a6a;
  --err: #e07070;
  --body-bg:
    radial-gradient(ellipse 80% 50% at 10% -10%, #243044 0%, transparent 55%),
    linear-gradient(180deg, var(--bg), #0a0e12 90%);
  --font: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

html[data-theme="light"] {
  --bg: #f4efe6;
  --surface: #ffffff;
  --surface2: #f0ebe3;
  --text: #1a1f26;
  --muted: #5c6670;
  --accent: #9a7209;
  --accent-dim: #7a5a08;
  --line: #d9d0c3;
  --ok: #1f7a4d;
  --err: #b42318;
  --body-bg:
    radial-gradient(ellipse 80% 45% at 12% -8%, #fff8e8 0%, transparent 55%),
    linear-gradient(180deg, #f7f2ea, #ebe4d8 90%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--body-bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

.site-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-bottom: 1px solid var(--line);
}
/* 主站顶栏之下的产品区标题 */
body[data-beian-page="auditready"] .site-head {
  padding-top: 1.75rem;
}
.site-head.compact { padding-top: 1.5rem; padding-bottom: 1rem; }
body[data-beian-page="auditready"] .site-head.compact {
  padding-top: 1.25rem;
}
.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  max-width: 18ch;
}
.lede { margin: 0; max-width: 52ch; color: var(--muted); font-size: 0.98rem; }
.head-nav a { color: var(--accent); text-decoration: none; }
.head-nav a:hover { text-decoration: underline; }

main { padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 3rem; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.search-wrap { flex: 1 1 220px; }
#q {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.meta-line { margin: 0; color: var(--muted); font-size: 0.85rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 160px;
}
.card h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.delivery h2 {
  margin-top: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
}
.price {
  margin-top: auto;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card-sum {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card-actions .btn-primary,
.card-actions .btn-ghost {
  flex: 1 1 auto;
  min-width: 7.5rem;
  text-align: center;
}
.btn-primary, .btn-ghost {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
}
.btn-primary {
  background: linear-gradient(180deg, #e0b020, var(--accent-dim));
  color: #1a1200;
  font-weight: 700;
}
.btn-primary:disabled { opacity: 0.5; cursor: wait; }
.btn-ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.inv-open { overflow: hidden; }
.inv-modal[hidden] { display: none !important; }
.inv-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 720px) {
  .inv-modal {
    align-items: center;
    padding: 1.5rem;
  }
}
.inv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.72);
  border: 0;
  cursor: pointer;
}
.inv-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
@media (min-width: 720px) {
  .inv-modal__panel {
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  }
}
.inv-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.35rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.inv-modal__title {
  margin: 0;
  flex: 1;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.inv-modal__close {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.inv-modal__summary {
  margin: 0;
  padding: 0.55rem 1.15rem 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}
.inv-modal__note {
  margin: 0.35rem 0 0;
  padding: 0 1.15rem 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.inv-modal__body {
  overflow: auto;
  padding: 0.75rem 1.15rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.inv-group { margin: 0 0 1.15rem; }
.inv-group h3 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.inv-count { color: var(--muted); font-weight: 500; }
.inv-files {
  margin: 0;
  padding: 0 0 0 1.05rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}
.inv-files > li { margin: 0.2rem 0; }
.inv-file { word-break: break-word; }
.inv-sheet-meta {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.inv-sheets {
  margin: 0.25rem 0 0.4rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.inv-sheets li { margin: 0.1rem 0; }

.panel { max-width: 640px; }
.delivery {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.label { margin: 0.9rem 0 0.25rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }
.bi-hint { line-height: 1.45; margin: 0 0 0.5rem; }
.code-row { display: flex; gap: 0.5rem; align-items: center; }
code { font-size: 1.15rem; color: var(--ok); }
textarea {
  width: 100%;
  margin: 0.35rem 0 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.hint { color: var(--muted); font-size: 0.9rem; }
.lookup { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.lookup input {
  flex: 1 1 220px;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.site-foot {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-foot a { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.err { color: var(--err); }

.head-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  border-color: var(--accent);
}
.lang-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  min-width: 2.5rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
