/* ============================================================
   qingguo fd — 5-7mm Freeze-Dried Strawberry Slices · B2B landing
   Brand: Primary Dark #0D6E5A · Primary Light #E6F2ED · BG #FFFFFF
   Mobile first · max-width 1200px · radius 12–16px · Inter
   ============================================================ */

:root {
  --green: #0D6E5A;
  --green-dark: #0A5748;
  --green-deep: #08463B;
  --mint: #E6F2ED;
  --mint-soft: #F3FAF7;
  --ink: #16302A;
  --muted: #55685F;
  --line: #DDE9E4;
  --bg: #FFFFFF;
  --radius: 14px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(13, 110, 90, 0.08);
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 860px; }

/* ---------- reveal animation (restrained) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(13, 110, 90, 0.06);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  height: 64px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.is-active { color: var(--green); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 20px 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 13px 4px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--mint);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--green); }

@media (min-width: 768px) {
  .nav-links { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 56px;
  background:
    radial-gradient(900px 420px at 100% 0%, var(--mint-soft) 0%, transparent 65%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

/* mobile order: image → title → subtitle → CTA → trust bar */
.hero-media { order: -1; }

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mint);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-tag {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-deep);
  background: rgba(230, 242, 237, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 10px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.13rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline:hover { background: var(--mint); }
.btn-block { width: 100%; }

/* ---------- trust bar ---------- */
.trustbar {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.trustbar li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.trustbar svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--green);
}

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 88px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero-media { order: 2; }
  .hero-cta { flex-direction: row; }
  .trustbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
  }
  .trustbar li { white-space: nowrap; }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: 64px 0;
}
.section:nth-of-type(even) { background: var(--mint-soft); }

.section-title {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.section-lede {
  color: var(--muted);
  max-width: 42em;
  margin-bottom: 36px;
}

/* anchor offset for fixed nav */
section[id], [id="top"] { scroll-margin-top: calc(var(--nav-h) + 8px); }

@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

/* ============================================================
   SPEC TABLE (#product)
   ============================================================ */
/* siosi-style parameter chips */
.spec-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.spec-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chip-k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip-v {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green-deep);
}

.spec-table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table thead th {
  background: var(--green);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 14px 20px;
  letter-spacing: 0.02em;
}
.spec-table tbody th,
.spec-table tbody td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.spec-table tbody th {
  width: 32%;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--mint-soft);
  white-space: nowrap;
}
.spec-table tbody td {
  color: var(--ink);
}
.spec-table tbody tr:nth-child(even) td { background: #FBFDFC; }
.spec-table em { font-style: italic; color: var(--muted); }

.spec-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}
.spec-closing {
  margin-top: 28px;
  padding: 18px 24px;
  background: var(--mint);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 600;
  color: var(--green-deep);
}

@media (max-width: 640px) {
  .spec-table thead { display: none; }
  .spec-table tbody th {
    display: block;
    width: 100%;
    white-space: normal;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .spec-table tbody td {
    display: block;
    padding-top: 2px;
  }
  .spec-table tbody tr { display: block; padding: 4px 0; }
  .spec-table tbody tr + tr { border-top: 1px solid var(--line); }
}

/* ============================================================
   APPLICATIONS (#applications)
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.app-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 16px;
}
.app-icon svg { width: 100%; height: 100%; }
.app-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.app-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   COMPLIANCE (#compliance)
   ============================================================ */
.compliance { background: var(--mint-soft); }

/* — Layer 1: certification mark wall — */
.cert-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.cert-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.cert-logo {
  height: 62px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-logo img {
  max-height: 62px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cert-tile h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.cert-tile p {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (min-width: 560px) {
  .cert-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .cert-wall { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}

/* — Layer 2: QC photos — */
.qc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.qc-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.qc-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.qc-card figcaption {
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep);
  background: #fff;
  border-top: 1px solid var(--line);
}

/* — Layer 3: traceability — */
.trace {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  margin-bottom: 24px;
}
.trace h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.trace ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.trace li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: #DCEBE5;
}
.trace li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="M3 7.2l2.6 2.6L11 4.4" fill="none" stroke="%23E6F2ED" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
  background-color: rgba(230, 242, 237, 0.18);
}

/* — Layer 4: verification — */
.verify {
  font-size: 0.95rem;
}
.verify a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.verify a:hover { color: var(--green-dark); }
.verify .dot {
  margin: 0 12px;
  color: var(--muted);
}
.verify-note {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .qc-grid { grid-template-columns: repeat(3, 1fr); }
  .qc-card img { aspect-ratio: 4 / 3.4; }
}
@media (min-width: 900px) {
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   FAQ (#faq)
   ============================================================ */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--mint-soft); }
.faq-icon {
  position: relative;
  flex: 0 0 20px;
  height: 20px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-item[open] summary { color: var(--green-deep); }
.faq-item p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq-item p a {
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   CONTACT (#contact)
   ============================================================ */
.contact { background: var(--mint-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
}
.field label span { color: #C24E4E; }
.field label em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field select:invalid { color: #8A9A93; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 110, 90, 0.12);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: #C24E4E; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.is-ok { color: var(--green); font-weight: 600; }
.form-status.is-error { color: #C24E4E; }

.contact-info {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  align-self: start;
}
.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.contact-info ul {
  list-style: none;
  display: grid;
  gap: 20px;
}
.contact-info li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ci-icon {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(230, 242, 237, 0.14);
  border-radius: 10px;
}
.ci-icon svg { width: 20px; height: 20px; color: var(--mint); }
.contact-info strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #A8CBC0;
  margin-bottom: 2px;
}
.contact-info a,
.contact-info span {
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.25fr 0.75fr; gap: 36px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green);
  color: #fff;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}
.footer-links span { opacity: 0.5; }
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
