/* ==========================================================================
   NovaPept Science — shared stylesheet
   结构优先，样式可整体替换为你的现有 CSS（HTML 结构不需要改）
   ========================================================================== */

:root {
  --ink:        #12191f;
  --ink-soft:   #4a555f;
  --ink-faint:  #7b878f;
  --paper:      #f8f8f6;
  --paper-alt:  #ffffff;
  --line:       #e0e0da;
  --line-strong:#c9c9c1;
  --accent:     #0b5d4f;
  --accent-soft:#e8f0ed;
  --warn-bg:    #fdf6e8;
  --warn-line:  #e6c98a;
  --radius:     4px;
  --measure:    72ch;
  --wrap:       1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.prose { max-width: var(--measure); }

/* ---------- skip link / a11y ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- compliance bar ---------- */

.ruo-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ruo-bar .wrap { padding-top: 9px; padding-bottom: 9px; }
.ruo-bar strong { color: var(--accent); letter-spacing: 0.02em; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }

.hero h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 20ch;
}

.hero .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 32px 0 0;
}
.stats > div {
  background: var(--paper-alt);
  padding: 18px 20px;
}
.stats .num {
  display: block;
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--accent);
  line-height: 1.2;
}
.stats .lbl {
  display: block;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- sections ---------- */

section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

h3 {
  font-size: 16.5px;
  line-height: 1.4;
  margin: 30px 0 10px;
  letter-spacing: -0.005em;
}

p { margin: 0 0 16px; }
.prose p { max-width: var(--measure); }

a { color: var(--accent); }

ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 7px; }
li > p { margin-bottom: 6px; }

/* ---------- tables ---------- */

.spec-table,
.grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 0 0 24px;
  background: var(--paper-alt);
}

.spec-table th,
.spec-table td,
.grid-table th,
.grid-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 38%;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
}

.spec-table td { color: var(--ink); }

.grid-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 600;
  background: #fbfbf9;
  border-bottom: 1px solid var(--line-strong);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
}

.overflow-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  display: block;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--accent); }

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}
.card .meta {
  font-size: 13px;
  color: var(--ink-faint);
  font-family: ui-monospace, monospace;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* ---------- notice ---------- */

.notice {
  border-left: 3px solid var(--accent);
  background: var(--paper-alt);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.notice.warn {
  border-left-color: var(--warn-line);
  background: var(--warn-bg);
}

/* ---------- FAQ ---------- */

.faq { max-width: var(--measure); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 550;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.2;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 40px 0 48px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.site-footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin: 0 0 10px;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.6;
  max-width: 88ch;
}

/* ---------- breadcrumb ---------- */

.crumbs {
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 16px 0 0;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }

/* ---------- misc ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
}
.btn:hover { background: #094b40; }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 2px;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* ---------- nav CTA ---------- */

.site-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius);
  border-bottom: 0;
  font-weight: 500;
}
.site-nav a.nav-cta:hover {
  background: #094b40;
  color: #fff;
  border-bottom: 0;
}

/* ---------- contact / form ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.req { color: var(--accent); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b878f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 93, 79, 0.12);
}

.field textarea { resize: vertical; min-height: 96px; }

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 22px;
}

.check-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.check-row label {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.form-status {
  display: none;
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.55;
}

.form-status.is-pending,
.form-status.is-success,
.form-status.is-error {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius);
  border-left: 3px solid;
}

.form-status.is-pending {
  background: #f2f2ef;
  border-left-color: var(--ink-faint);
  color: var(--ink-soft);
}

.form-status.is-success {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: #08453b;
}

.form-status.is-error {
  background: var(--warn-bg);
  border-left-color: #c2410c;
  color: #7c2d12;
}

.form-status a { color: inherit; text-decoration: underline; }

.form-status a.btn {
  color: #fff;
  text-decoration: none;
  margin-top: 12px;
}
.form-status a.btn:hover { background: #094b40; }

.form-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 16px 0 0;
}

#form-submit:disabled { opacity: 0.6; cursor: default; }

.contact-aside h3 { margin-top: 0; }
.contact-aside h3 + ul,
.contact-aside h3 + p { margin-bottom: 28px; }
.contact-aside ul {
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.contact-aside p { font-size: 14.5px; margin-bottom: 8px; }