/* ============================================================
   Newmeen Bioprocess — 共用样式
   主题：生物工艺流程解决方案 / 浅色专业风
   ============================================================ */

:root {
  --brand: #0f5c4a;
  --brand-dark: #0a4235;
  --brand-light: #e8f3ef;
  --brand-mid: #2e8b70;
  --accent: #c8a25a;
  --accent-light: #faf5ea;

  --ink: #14201d;
  --ink-2: #3d4f4a;
  --ink-3: #6b7d78;
  --line: #dfe7e4;
  --line-soft: #eef3f1;
  --bg: #ffffff;
  --bg-2: #f7faf9;
  --bg-3: #eff5f3;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 92, 74, .06), 0 1px 2px rgba(15, 92, 74, .04);
  --shadow: 0 4px 16px rgba(15, 92, 74, .08);
  --shadow-lg: 0 12px 36px rgba(15, 92, 74, .12);

  --max: 1200px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-mid); }

h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 32px;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 17px; letter-spacing: -.5px;
}
/* 真实 LOGO 图片：替换原「NM」文字方块 */
.brand-logo { height: 40px; width: auto; flex-shrink: 0; display: block; }
.brand-logo-sm { height: 34px; width: auto; }
.brand-word { height: 26px; width: auto; display: block; }
.foot-brand .brand-logo { height: 42px; }
/* LOGO 深色底版本（页脚）：保留原色，仅去除纯白底 */
.foot-brand .brand-logo--onDark { filter: brightness(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 15.5px; color: var(--ink); letter-spacing: -.2px; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); transition: background .16s, color .16s; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-3); color: var(--brand); }
.nav-links a.active { color: var(--brand); background: var(--brand-light); font-weight: 600; }

/* 导航右侧的主行动按钮（Request a Quote） */
.nav-links a.nav-cta {
  margin-left: 12px; padding: 10px 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.10); transition: transform .16s, box-shadow .16s, opacity .16s;
}
.nav-links a.nav-cta:hover {
  background: var(--brand); color: #fff; opacity: .92;
  transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0,0,0,.16);
}

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 38px; cursor: pointer; color: var(--ink-2);
  font-size: 19px; line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .16s;
  font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-mid); background: var(--bg-2); color: var(--brand); }
.btn-accent { background: var(--accent); color: #2c2005; }
.btn-accent:hover { background: #b8913f; color: #2c2005; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 区块 ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-2); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand-mid); margin-bottom: 13px;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: 32px; color: var(--ink); }
.section-desc { margin-top: 14px; color: var(--ink-3); font-size: 16px; }

/* ---------- FAQ 折叠块（内容与 JSON-LD FAQPage 对应，便于 AI 引用） ---------- */
.faq-list { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0; overflow: hidden;
}
.faq-item summary {
  padding: 17px 22px; cursor: pointer; font-size: 16px; font-weight: 600;
  color: var(--ink); list-style: none; display: flex; align-items: center; gap: 12px;
  transition: background .16s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item summary:hover { background: var(--bg-2); }
.faq-a { padding: 0 22px 19px 56px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--brand); text-decoration: underline; }

.page-hero {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 55%, #17705a 100%);
  color: #fff; padding: 62px 0 58px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -140px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 90, .17) 0%, transparent 68%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: 34px; }
.page-hero p { margin: 13px 0 0; color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 760px; }

.crumb { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 15px; }
.crumb a { color: rgba(255, 255, 255, .8); }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(155deg, var(--brand-dark) 0%, var(--brand) 52%, #16715a 100%);
  color: #fff; padding: 84px 0 78px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 16% 24%, rgba(255,255,255,.07) 0, transparent 42%),
    radial-gradient(circle at 86% 76%, rgba(200,162,90,.16) 0, transparent 46%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 43px; line-height: 1.2; letter-spacing: -.022em; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { margin: 20px 0 32px; font-size: 16.5px; color: rgba(255,255,255,.85); max-width: 560px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 46px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stat b { display: block; font-size: 27px; color: var(--accent); letter-spacing: -.02em; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- 图片占位 ---------- */
.ph {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(150deg, #dfeeea 0%, #cfe4de 45%, #bedbd3 100%);
  display: grid; place-items: center; border-radius: var(--radius);
}
.ph::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 12px, transparent 12px 24px);
  opacity: .55;
}
.ph-inner { position: relative; z-index: 1; text-align: center; padding: 16px; }
.ph-icon { font-size: 34px; opacity: .5; margin-bottom: 8px; }
.ph-label { font-size: 12.5px; color: #35635a; font-weight: 600; letter-spacing: .02em; }
.ph-note { font-size: 11px; color: #5b8177; margin-top: 3px; }
.ph-round { border-radius: 50%; }

.hero-visual { position: relative; }
.hero-visual .ph { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 14px 19px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); z-index: 2;
}
.hero-badge b { display: block; font-size: 20px; color: var(--brand); }
.hero-badge span { font-size: 12px; color: var(--ink-3); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0db; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--brand-light);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { margin: 0; color: var(--ink-3); font-size: 14.5px; }

.cat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cat-card .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.cat-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { font-size: 17.5px; margin-bottom: 5px; }
.cat-card .en { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; letter-spacing: .01em; }
.cat-card p { font-size: 14px; color: var(--ink-3); flex: 1; }
.cat-card .cat-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft);
}
.cat-count { font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------- 产品列表 ---------- */
.toolbar {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px; padding: 16px 20px; background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
}
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 22px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .15s; font-family: inherit; white-space: nowrap;
}
.chip:hover { border-color: var(--brand-mid); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip .n { opacity: .65; margin-left: 5px; font-size: 12px; }

.search-box { margin-left: auto; position: relative; }
.search-box input {
  width: 250px; padding: 9px 14px 9px 36px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 14px; font-family: inherit;
  color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(46,139,112,.11); }
.search-box::before {
  content: '⌕'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 16px; pointer-events: none;
}

.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0db; }
.p-card .ph { border-radius: 0; aspect-ratio: 1 / 1; }
.p-card .ph-label { font-size: 11.5px; }
.p-body { padding: 17px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.p-ref {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: var(--brand-mid);
  text-transform: uppercase; margin-bottom: 6px;
}
.p-card h3 { font-size: 15px; margin-bottom: 4px; line-height: 1.4; }
.p-card .en { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.p-spec {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.p-foot {
  display: flex; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line-soft);
}
.p-foot .btn { flex: 1; padding: 8px 10px; font-size: 13px; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty-icon { font-size: 40px; opacity: .35; margin-bottom: 12px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(14, 32, 28, .56); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(3px);
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: pop .2s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 26px 18px; border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; background: #fff; z-index: 2; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h3 { font-size: 19px; }
.modal-head .sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.modal-close {
  background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer;
  color: var(--ink-3); padding: 0 4px; flex-shrink: 0;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px 26px 26px; }
.modal-prod {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 20px;
}
.modal-prod .r { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--brand-mid); text-transform: uppercase; }
.modal-prod .n { font-size: 15px; font-weight: 600; margin-top: 3px; }
.modal-prod .e { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: #c0392b; margin-left: 2px; }
.field input, .field select, .field textarea {
  padding: 10px 13px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(46,139,112,.11);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: 11.5px; color: var(--ink-3); }

.form-note {
  font-size: 12.5px; color: var(--ink-3); margin-top: 16px; padding-top: 15px;
  border-top: 1px solid var(--line-soft); line-height: 1.6;
}

.alert { padding: 12px 15px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; }
.alert-ok { background: #e9f7f1; border: 1px solid #b6e2cf; color: #1a6b4d; }
.alert-err { background: #fdeeec; border: 1px solid #f5c6c0; color: #a4302a; }
.alert-info { background: var(--accent-light); border: 1px solid #ecdcbb; color: #7a5a1c; }

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-item {
  display: flex; gap: 13px; padding: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.about-item .ic { font-size: 20px; flex-shrink: 0; }
.about-item h4 { font-size: 15px; margin-bottom: 5px; }
.about-item p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px;
}
.fact { background: #fff; padding: 26px 22px; text-align: center; }
.fact b { display: block; font-size: 25px; color: var(--brand); letter-spacing: -.02em; }
.fact span { font-size: 13px; color: var(--ink-3); }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 44px; }
.flow-step { position: relative; padding: 0 18px; text-align: center; }
.flow-step::after {
  content: ''; position: absolute; top: 21px; right: -50%; width: 100%; height: 1px;
  border-top: 2px dashed var(--line); z-index: 0;
}
.flow-step:last-child::after { display: none; }
.flow-num {
  position: relative; z-index: 1; width: 44px; height: 44px; margin: 0 auto 14px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.flow-step h4 { font-size: 14.5px; margin-bottom: 6px; }
.flow-step p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.office-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; margin-bottom: 16px;
}
.office-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-mid); margin-bottom: 8px;
}
.office-card h4 { font-size: 15.5px; margin-bottom: 7px; }
.office-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.office-card .mini { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

.contact-line {
  display: flex; align-items: center; gap: 13px; padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-line:last-child { border-bottom: none; }
.contact-line .ic {
  width: 38px; height: 38px; border-radius: 9px; background: var(--brand-light);
  display: grid; place-items: center; font-size: 17px; flex-shrink: 0;
}
.contact-line .lb { font-size: 12px; color: var(--ink-3); }
.contact-line .vl { font-size: 14.5px; font-weight: 600; color: var(--ink); word-break: break-all; }
.contact-line .vl a { color: var(--brand); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0d2b24; color: rgba(255,255,255,.72); padding: 52px 0 26px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 38px; }
.site-footer h5 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; margin: 0 0 16px; font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,.72); font-size: 14px; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { font-size: 13.5px; line-height: 1.7; margin: 0 0 8px; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.foot-brand .brand-mark { background: linear-gradient(135deg, #1b7a62, #37a184); }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-sub { color: rgba(255,255,255,.5); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

/* ---------- 资料下载 ---------- */
.dl-item {
  display: flex; align-items: center; gap: 20px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  margin-bottom: 14px; transition: border-color .16s, box-shadow .16s;
}
.dl-item:hover { border-color: #cfe0db; box-shadow: var(--shadow-sm); }
.dl-icon {
  width: 50px; height: 50px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--brand-light); color: var(--brand);
}
.dl-main { flex: 1; min-width: 0; }
.dl-main h4 { font-size: 15.5px; margin-bottom: 3px; }
.dl-main .en { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.dl-main p { margin: 0; font-size: 13px; color: var(--ink-3); }
.dl-meta { font-size: 12px; color: var(--ink-3); text-align: right; flex-shrink: 0; }
.dl-meta .sz { display: block; font-weight: 600; color: var(--ink-2); }

/* ---------- 后台 ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-2); }
.admin-side {
  width: 232px; background: #0d2b24; color: rgba(255,255,255,.75);
  padding: 22px 0; flex-shrink: 0; display: flex; flex-direction: column;
}
.admin-side .brand { padding: 0 20px 24px; }
.admin-side .brand-name { color: #fff; font-size: 15px; }
.admin-side .brand-sub { color: rgba(255,255,255,.45); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.admin-nav a {
  padding: 11px 14px; border-radius: 8px; color: rgba(255,255,255,.75);
  font-size: 14px; display: flex; align-items: center; gap: 11px; transition: background .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.admin-nav .sep {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); padding: 18px 14px 7px; font-weight: 700;
}

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  height: 62px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 26px; flex-shrink: 0;
}
.admin-top h1, .admin-top h2 { font-size: 17px; font-weight: 700; margin: 0; }
.admin-top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.admin-user {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2);
}
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-light);
  color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.admin-content { padding: 26px; flex: 1; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 19px 20px;
}
.stat-card .lb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 7px; }
.stat-card b { font-size: 25px; color: var(--ink); letter-spacing: -.02em; }
.stat-card.hi b { color: var(--brand); }
.stat-card.hi { border-color: #b8dbd0; background: linear-gradient(160deg, #fff, #f3faf7); }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 22px;
}
.panel-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.panel-head h3 { font-size: 15.5px; }
.panel-head .right { margin-left: auto; display: flex; gap: 9px; align-items: center; }
.panel-body { padding: 20px 22px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 11px 14px; background: var(--bg-2);
  font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .03em;
  text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--bg-2); }

/* 后台辅助类：muted 文本、徽标、字段间距 */
.muted { color: var(--ink-3); }
.admin-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px;
  font-weight: 600; margin-left: 7px; vertical-align: middle;
}
.form-grid .field { margin-top: 0; }
.form-grid { margin-top: 2px; }
select, textarea, input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"] { max-width: 100%; }
table.data .nowrap { white-space: nowrap; }
table.data .msg { max-width: 300px; }
table.data .msg .clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.pill-new { background: #e6f2fe; color: #1a5fa8; }
.pill-read { background: #f0f0f0; color: #5a5a5a; }
.pill-quoted { background: #fdf3dd; color: #8a6410; }
.pill-won { background: #e9f7f1; color: #1a6b4d; }
.pill-closed { background: #f3f3f3; color: #777; }

.dir-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dir-tabs .t {
  padding: 7px 13px; border-radius: 7px; font-size: 13px; cursor: pointer;
  border: 1px solid transparent; color: var(--ink-2); background: none; font-family: inherit;
}
.dir-tabs .t:hover { background: var(--bg-3); }
.dir-tabs .t.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }

.row-actions { display: flex; gap: 6px; }
.icon-btn {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 30px; height: 30px; cursor: pointer; color: var(--ink-3);
  font-size: 13px; display: grid; place-items: center; transition: all .14s;
}
.icon-btn:hover { border-color: var(--brand-mid); color: var(--brand); background: var(--bg-2); }
.icon-btn.danger:hover { border-color: #d97b72; color: #c0392b; background: #fdf2f1; }

/* ---------- 后台：工具栏 / 批量操作 / 图片上传 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2);
}
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); }

.bulk-bar {
  display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
  padding: 12px 22px; background: #eef6f2; border-bottom: 1px solid #cfe6dd;
}
.bulk-bar .count { font-size: 13px; font-weight: 700; color: var(--brand); }
.bulk-bar select { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 13px; }

.chk { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); }

.thumb-mini {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--line); background: var(--bg-3); display: block;
}
.thumb-ph {
  width: 46px; height: 46px; border-radius: 8px; border: 1px dashed var(--line);
  background: var(--bg-2); display: grid; place-items: center;
  font-size: 17px; color: var(--ink-3); opacity: .6;
}

.up-box {
  border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px;
  background: var(--bg-2); display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.up-box img { width: 92px; height: 92px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; }
.up-box .up-main { flex: 1; min-width: 200px; }
.up-box input[type="file"] { font-size: 13px; font-family: inherit; }

.note {
  border-left: 3px solid var(--brand-mid); background: var(--bg-2);
  padding: 12px 16px; border-radius: 0 9px 9px 0; font-size: 13px;
  color: var(--ink-2); line-height: 1.7; margin: 0 0 18px;
}
.note.warn { border-left-color: #d9a441; background: #fdf8ec; }
.note.err  { border-left-color: #d97b72; background: #fdf2f1; }
.note code { background: #fff; padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--line); font-size: 12px; }

/* 简易条形图（询价统计用） */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 12px; align-items: center;
  font-size: 13px; }
.bar-track { height: 10px; background: var(--bg-3); border-radius: 20px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 20px; background: var(--brand); transition: width .3s; }
.bar-fill.alt { background: #7fb8a6; }
.bar-val { text-align: right; font-weight: 700; color: var(--ink-2); font-size: 12.5px; }

.trend { display: flex; align-items: flex-end; gap: 4px; height: 104px; padding-top: 6px; }
.trend .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 0; }
.trend .tb { width: 100%; max-width: 34px; background: var(--brand); border-radius: 4px 4px 0 0;
  min-height: 3px; transition: height .3s; }
.trend .tl { font-size: 10px; color: var(--ink-3); white-space: nowrap;
  transform: rotate(-45deg); transform-origin: center; }
.trend .tv { font-size: 10.5px; font-weight: 700; color: var(--ink-2); }


.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(155deg, #0a4235 0%, var(--brand) 58%, #16715a 100%);
}
.login-card {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 420px;
  padding: 36px 34px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card .sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 26px; }
.tabs { display: flex; gap: 4px; background: var(--bg-3); padding: 4px; border-radius: 9px; margin-bottom: 22px; }
.tabs button {
  flex: 1; padding: 9px; border: none; background: none; border-radius: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.tabs button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.login-foot { margin-top: 20px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.code-row { display: flex; gap: 9px; }
.code-row input { flex: 1; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 9px;
  font-size: 14px; box-shadow: var(--shadow-lg); z-index: 3000;
  opacity: 0; transition: all .28s cubic-bezier(.2,.8,.3,1); pointer-events: none;
  max-width: calc(100vw - 48px);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { background: #14664a; }
.toast.err { background: #a4302a; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .flow-step::after { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.nav-cta { margin: 10px 0 0; text-align: center; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 33px; }
  .hero-visual { max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .admin-side { width: 68px; }
  .admin-side .brand-text, .admin-nav a span, .admin-nav .sep { display: none; }
  .admin-nav a { justify-content: center; padding: 12px; }
  .admin-side .brand { padding: 0 0 20px; justify-content: center; }
  /* 窄屏侧栏收起：把字标换成方形图标，避免文字被压扁 */
  .admin-side .brand-logo { height: 34px; width: 34px; object-fit: cover; object-position: left center; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 58px 0; }
  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 27px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .page-hero h1 { font-size: 25px; }
  .section-title { font-size: 25px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .toolbar { padding: 14px; }
  .fact-strip { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .dl-item { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dl-meta { text-align: left; }
  .admin-content { padding: 16px; }
  .stat-row { grid-template-columns: 1fr; }
  .modal-head, .modal-body { padding-left: 18px; padding-right: 18px; }
  .hero-badge { left: 0; bottom: -14px; }
  .admin-top { padding: 0 16px; }
  .admin-top h1, .admin-top h2 { font-size: 15px; }
  .admin-top .admin-user span { display: none; }
}
