/* ==========================================================================
   Lepai Berries — B2B Site Design System
   Yunnan Lepai Agricultural Technology Co., Ltd
   Target: international B2B buyers (bakehouses, beverage, dairy, foodservice)
   ========================================================================== */

:root {
  /* Brand */
  --brand: #1e4d3c;
  --brand-light: #2d6a52;
  --brand-dark: #143528;
  --accent: #c8102e;
  --accent-hover: #a00d25;

  /* Neutrals */
  --ink: #16211c;
  --ink-2: #3d4f47;
  --muted: #6b7c74;
  --line: #dfe7e3;
  --line-2: #eef3f1;
  --bg: #ffffff;
  --bg-2: #f7faf9;
  --bg-3: #eef5f2;

  /* Berry accents (for product category coding) */
  --berry-blue: #4a5fc1;
  --berry-straw: #d6336c;
  --berry-rasp: #c2255c;
  --berry-black: #2d2438;
  --berry-mix: #7c4d9e;

  /* Status */
  --ok: #16a34a;
  --warn: #d97706;
  --alert: #dc2626;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(22, 33, 28, .08), 0 1px 2px rgba(22, 33, 28, .04);
  --shadow-lg: 0 4px 16px rgba(22, 33, 28, .09), 0 2px 4px rgba(22, 33, 28, .04);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: Consolas, "SF Mono", Menlo, Monaco, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--brand-dark); color: #e8f0ec; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.hdr__in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: -.5px;
}
.logo__txt strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.logo__txt span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .3px; }

.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: .16s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 14px 30px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #143528 0%, #1e4d3c 55%, #2d6a52 100%); color: #fff; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 80px 0; }
.hero h1 { font-size: 44px; line-height: 1.18; font-weight: 800; letter-spacing: -.8px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7dd3a8; }
.hero p.lead { font-size: 18px; color: #c7ddd2; margin-bottom: 28px; max-width: 56ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }

.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stats div { border-left: 2px solid rgba(255,255,255,.22); padding-left: 14px; }
.hero__stats b { display: block; font-size: 25px; font-weight: 800; letter-spacing: -.5px; }
.hero__stats span { font-size: 12.5px; color: #9fc4b3; }

.hero__visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2d6a52, #1e4d3c);
  border: 1.5px dashed rgba(255,255,255,.32);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px; gap: 10px;
}
.hero__visual .ico { font-size: 46px; opacity: .5; }
.hero__visual strong { font-size: 15px; }
.hero__visual span { font-size: 12.5px; color: #9fc4b3; line-height: 1.6; }

/* ---------- Trust bar ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line-2); }
.trust__item:last-child { border-right: 0; }
.trust__item b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.trust__item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Section head ---------- */
.shead { max-width: 720px; margin-bottom: 44px; }
.shead--center { margin-left: auto; margin-right: auto; text-align: center; }
.shead .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--brand-light); margin-bottom: 12px;
}
.shead h2 { font-size: 32px; line-height: 1.25; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.shead p { font-size: 16.5px; color: var(--ink-2); }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 22px; }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: .18s; display: flex; flex-direction: column;
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand-light); }

.pcard__img {
  aspect-ratio: 4/3; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; position: relative; overflow: hidden;
}
.pcard__img .ph {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  font-size: 10.5px; color: var(--muted); text-align: center;
  background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 4px;
}
.pcard__tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand); padding: 3px 9px; border-radius: 4px;
}
.pcard__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.pcard__body h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.pcard__body .sci { font-size: 12.5px; color: var(--muted); font-style: italic; margin-bottom: 12px; }
.pcard__body p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; flex: 1; }

.plist { list-style: none; font-size: 13px; }
.plist li { padding: 4px 0 4px 18px; position: relative; color: var(--ink-2); }
.plist li::before { content: "›"; position: absolute; left: 4px; color: var(--brand-light); font-weight: 700; }

/* ---------- Data table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.dt { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.dt th {
  background: var(--brand); color: #fff; padding: 13px 16px;
  text-align: left; font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
table.dt td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.dt tbody tr:last-child td { border-bottom: 0; }
table.dt tbody tr:hover { background: var(--bg-2); }
table.dt td strong { font-weight: 700; }
table.dt .sub { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }

/* ---------- Grade cards ---------- */
.ggrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gcard {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 22px;
}
.gcard:nth-child(2) { border-left-color: var(--warn); }
.gcard:nth-child(3) { border-left-color: var(--muted); }
.gcard h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: baseline; gap: 8px; }
.gcard h4 span { font-size: 12px; font-weight: 500; color: var(--muted); }
.gcard .use { font-size: 13.5px; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.gcard ul { list-style: none; font-size: 13.5px; }
.gcard ul li { padding: 3px 0 3px 16px; position: relative; color: var(--ink-2); }
.gcard ul li::before { content: "•"; position: absolute; left: 3px; color: var(--muted); }

/* ---------- Feature / step ---------- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.fitem { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.fitem__ico { font-size: 30px; margin-bottom: 14px; }
.fitem h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.fitem p { font-size: 14px; color: var(--ink-2); }

/* ---------- Timeline ---------- */
.tl { position: relative; padding-left: 34px; }
.tl::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl__item { position: relative; padding-bottom: 30px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ""; position: absolute; left: -30px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand);
}
.tl__item b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.tl__item span { font-size: 13.5px; color: var(--muted); display: block; margin-bottom: 5px; }
.tl__item p { font-size: 14px; color: var(--ink-2); }

/* ---------- Doc / cert cards ---------- */
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
}
.doc__ico {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  background: var(--bg-3); display: flex; align-items: center; justify-content: center;
  font-size: 21px;
}
.doc__t { flex: 1; }
.doc__t b { display: block; font-size: 15px; font-weight: 600; }
.doc__t span { font-size: 12.5px; color: var(--muted); }
.doc--todo { border-style: dashed; border-color: var(--warn); background: #fffdf8; }
.doc--todo .doc__ico { background: #fef3c7; }
.doc__status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.doc__status.ok { background: #dcfce7; color: #15803d; }
.doc__status.todo { background: #fef3c7; color: #b45309; }

/* ---------- Callout ---------- */
.note {
  border-radius: var(--radius); padding: 18px 22px; margin: 20px 0;
  font-size: 14.5px; border-left: 4px solid;
}
.note b { display: block; margin-bottom: 4px; font-size: 15px; }
.note--info { background: #eff6ff; border-color: var(--brand-light); color: #075985; }
.note--ok { background: #f0fdf4; border-color: var(--ok); color: #166534; }
.note--warn { background: #fffbeb; border-color: var(--warn); color: #92400e; }
.note--info b { color: #1e40af; } .note--ok b { color: #15803d; } .note--warn b { color: #b45309; }

/* ---------- Placeholder (素材待替换) ---------- */
.ph-box {
  background: repeating-linear-gradient(45deg, #f7faf9, #f7faf9 12px, #eef3f1 12px, #eef3f1 24px);
  border: 2px dashed #b9c9c2; border-radius: var(--radius);
  min-height: 200px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 28px; gap: 8px;
}
.ph-box .ico { font-size: 40px; opacity: .42; }
.ph-box b { font-size: 15px; color: var(--brand); }
.ph-box span { font-size: 12.5px; color: var(--muted); max-width: 42ch; line-height: 1.6; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(45,106,82,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- Contact strip ---------- */
.cstrip { background: var(--brand-dark); color: #e8f0ec; padding: 40px 0; }
.cstrip__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cstrip h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.cstrip p { font-size: 14.5px; color: #a8c5b7; }
.cstrip__act { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.ftr { background: #0f2a20; color: #8fb0a1; padding: 52px 0 28px; font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.ftr h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: .3px; }
.ftr ul { list-style: none; }
.ftr ul li { margin-bottom: 8px; }
.ftr ul a { color: #8fb0a1; font-size: 14px; }
.ftr ul a:hover { color: #fff; }
.ftr__about p { font-size: 13.5px; line-height: 1.75; margin-bottom: 14px; }
.ftr__bot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Page hero (inner pages) ---------- */
.phero { background: linear-gradient(150deg, #143528, #2d6a52); color: #fff; padding: 54px 0; }
.phero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.phero p { font-size: 17px; color: #b9d4c6; max-width: 68ch; }
.crumb { font-size: 13px; color: #8fb0a1; margin-bottom: 14px; }
.crumb a { color: #b9d4c6; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .hero h1 { font-size: 34px; }
  .trust__in { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero h1 { font-size: 28px; }
  .frow { grid-template-columns: 1fr; }
  .shead h2 { font-size: 25px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .trust__in { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--line-2); }
}

/* ---------- Print ---------- */
@media print {
  .hdr, .cstrip, .btn { display: none; }
  body { font-size: 12px; }
  .section { padding: 20px 0; }
}