/* ============================================================
   SinoPouch - Flexible Packaging Solutions
   Shared stylesheet | Brand: deep green #21A179 + amber #F2A93B
   ============================================================ */

:root {
  --green: #21A179;
  --green-dark: #168265;
  --green-deep: #0C6148;
  --amber: #F2A93B;
  --amber-dark: #D98E2B;
  --ink: #1f2a26;
  --muted: #5F6B66;
  --line: #e3e9e6;
  --bg-soft: #EAF6F0;
  --white: #ffffff;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(12, 97, 72, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 20px;
}
.brand img { width: 168px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta {
  background: var(--green); color: #fff !important; padding: 11px 20px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,169,59,.22), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px;
  align-items: center; padding: 84px 0 88px; position: relative; z-index: 2;
}
.hero-inner > div:first-child { padding-left: 0; }
/* 有海报时（仅宽屏）：固定更高高度 + cover 放大海报，让袋子更大更醒目 */
@media (min-width: 1200px) {
  .hero.hero-has-banner { height: 520px; }
  .hero.hero-has-banner .hero-inner { padding: 26px 0; }
  .hero.hero-has-banner .hero-inner > div:first-child { margin-left: -85px; max-width: 500px; transform: translate(-164px, 70px); }
  .hero.hero-has-banner h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 8px 0 10px; }
  .hero.hero-has-banner p.lead {
    font-size: 1rem; margin: 12px 0 18px; line-height: 1.5;
    background: rgba(255,255,255,.92); padding: 6px 10px; border-radius: 6px;
  }
}
/* 中屏（720-1199px）：海报 + 白色文字阴影，保证可读且不贴边 */
@media (min-width: 721px) and (max-width: 1199px) {
  .hero.hero-has-banner .hero-inner { padding: 60px 22px; }
  .hero.hero-has-banner .hero-inner > div:first-child { background: none; padding-left: 0; margin-left: 0; }
  .hero.hero-has-banner h1 { text-shadow: 0 1px 3px rgba(255,255,255,.95), 0 0 12px rgba(255,255,255,.85); }
  .hero.hero-has-banner p.lead { color: #3F5149; text-shadow: 0 1px 3px rgba(255,255,255,.95), 0 0 10px rgba(255,255,255,.8); }
}
/* 手机端（≤720px）：海报显示在上方独立横幅，文字在下方米白区，互不遮挡 */
@media (max-width: 720px) {
  .hero.hero-has-banner { background-image: none !important; background: #F7F1E7 !important; padding-top: 190px; position: relative; }
  .hero.hero-has-banner::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 190px;
    background-image: var(--hero-banner); background-size: cover; background-position: center 35%;
    background-repeat: no-repeat; border-bottom: 3px solid var(--green);
  }
  .hero.hero-has-banner .hero-inner { padding: 30px 22px 44px; }
  .hero.hero-has-banner .hero-inner > div:first-child { background: none; padding-left: 0; margin-left: 0; }
  .hero.hero-has-banner h1 { color: var(--green-deep); text-shadow: none; }
  .hero.hero-has-banner p.lead { color: #3F5149; text-shadow: none; }
  .hero.hero-has-banner .btn-ghost { color: var(--green-deep); border-color: var(--green-deep); background: transparent; }
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { font-size: 1.12rem; color: #d7e8e1; margin: 20px 0 30px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 9px; font-weight: 700; font-size: 15px;
  transition: transform .15s, background .2s; cursor: pointer; border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--green-deep); }
.btn-primary:hover { background: #F7B74D; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 380px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); }

.trust-strip { background: var(--green-deep); color: #cfe3db; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 18px 40px; padding: 18px 22px; justify-content: center; font-size: 13.5px; font-weight: 600; }
.trust-strip span::before { content: "✓"; color: var(--amber); font-weight: 800; margin-right: 8px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.eyebrow { color: var(--amber-dark); font-weight: 800; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 10px 0 14px; color: var(--green-deep); line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.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);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(12,97,72,.12); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: #E9F7F1; color: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 24px; }
.card h3 { font-size: 1.12rem; color: var(--green-deep); margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Product cards */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(12,97,72,.12); }
.product-thumb { height: 190px; background: linear-gradient(135deg, #E9F7F1, #CDEBDC);
  display: flex; align-items: center; justify-content: center; }
.product-thumb svg { width: 150px; height: 150px; }
.product-body { padding: 20px 22px; }
.product-body h3 { color: var(--green-deep); font-size: 1.05rem; margin-bottom: 6px; }
.product-body p { color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; background: #FDF2DF; color: var(--amber-dark); font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.tag.green { background: #E9F7F1; color: var(--green); }

/* Product category cards (enhanced) */
.cat-card { display: flex; flex-direction: column; }
.cat-card .product-thumb { height: 280px; }
.cat-card .product-thumb svg { width: 190px; height: 190px; }
.cat-spec { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.cat-spec b { color: var(--ink); }
.learn { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 700; font-size: .88rem; }
.learn:hover { color: var(--amber-dark); }
.learn::after { content: " →"; }

/* QC process (3 columns) */
.qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qc-item { text-align: center; padding: 28px 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.qc-num { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--green);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.qc-item h3 { color: var(--green-deep); font-size: 1.05rem; margin-bottom: 8px; }
.qc-item p { color: var(--muted); font-size: .92rem; }

/* Category banner */
.cat-banner { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff; overflow: hidden; }
.cat-banner-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 64px 0; }
.cat-banner h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; margin: 12px 0 14px; }
.cat-banner p { color: #d7e8e1; font-size: 1.08rem; max-width: 620px; margin-bottom: 24px; }
.cat-banner-art { display: flex; justify-content: center; }
.cat-banner-art svg { width: 100%; max-width: 200px; filter: drop-shadow(0 14px 24px rgba(0,0,0,.28)); }

/* Benefits grid */
.benefits-grid { gap: 16px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.benefit-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.benefit-item h4 { color: var(--green-deep); font-size: .98rem; margin-bottom: 3px; }
.benefit-item p { color: var(--muted); font-size: .86rem; }

@media (max-width: 900px) {
  .cat-banner-inner { grid-template-columns: 1fr; }
  .cat-banner-art { order: -1; }
  .cat-banner-art svg { max-width: 150px; }
}

/* Factory shots */
.factory-shot { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.factory-shot svg { width: 100%; height: 170px; display: block; }
.factory-shot span { display: block; padding: 12px 16px; font-size: .92rem; font-weight: 700; color: var(--green-deep); text-align: center; }

/* Why choose us icon grid */
.why-grid { gap: 18px; }
.why-item { text-align: center; padding: 26px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.why-ic { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 700; }
.why-item h4 { color: var(--green-deep); font-size: 1rem; margin-bottom: 7px; }
.why-item p { color: var(--muted); font-size: .88rem; }

/* FAQ list */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: 1.02rem; color: var(--green-deep); margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: .94rem; }

@media (max-width: 900px) { .qc-grid { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-art { background: linear-gradient(135deg, var(--green-deep), var(--green)); border-radius: var(--radius);
  padding: 44px; display: flex; justify-content: center; }
.split-art svg { width: 100%; max-width: 340px; }
.feature-list { list-style: none; margin-top: 22px; }
.feature-list li { padding: 10px 0 10px 34px; position: relative; color: var(--muted); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--green); font-weight: 800; }
.feature-list li strong { color: var(--ink); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.step h3 { color: var(--green-deep); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; }

/* Table */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--green-deep); color: #fff; font-weight: 600; }
table.data tr:nth-child(even) td { background: #f8faf9; }
table.data td:first-child { font-weight: 700; color: var(--green-deep); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; text-align: center; }
.cta-band .container { padding: 66px 22px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: #d6e7e0; margin-bottom: 26px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.info-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: #E9F7F1; color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-item h4 { color: var(--green-deep); font-size: .98rem; margin-bottom: 2px; }
.info-item p, .info-item a { color: var(--muted); font-size: .94rem; }
.info-item a:hover { color: var(--green); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid #d5ded9; border-radius: 8px;
  font-size: .94rem; font-family: inherit; color: var(--ink); background: #fff; transition: border .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 108px; }
.note { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff; padding: 58px 0; }
.page-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 10px; }
.page-hero p { color: #d5e7df; font-size: 1.06rem; max-width: 680px; }
.crumb { font-size: 13px; color: #a9c9bd; margin-bottom: 12px; }
.crumb a { color: #cfe3db; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #c9ddd5; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid .brand img { width: 190px; background: #fff; padding: 8px; border-radius: 8px; }
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: .98rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; font-size: .9rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; text-align: center;
  font-size: .84rem; color: #9fbcb1; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px;
  border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- 后台上传的照片（替换默认插画） ---------- */
.hero-art .photo-art { width: 100%; max-width: 380px; display: block; border-radius: 10px; }
.cat-banner-art .photo-art { width: 100%; max-width: 200px; display: block; border-radius: 8px; }
.product-thumb .photo-thumb { width: 100%; height: 100%; object-fit: contain; display: block; padding: 16px; background: #fff; }
.factory-shot .photo-factory { width: 100%; height: 170px; object-fit: cover; display: block; }

/* Hero 有海报背景时：隐藏右侧叠加的产品图，让海报完整展现 */
.hero.hero-has-banner .hero-art { display: none; }

/* 海报原色显示：去掉所有遮罩，海报是什么颜色就显示什么颜色。
   文字统一改深墨绿并加白色描边，保证在任何浅色海报上都清楚。 */
.hero.hero-has-banner { color: var(--green-deep); }
.hero.hero-has-banner::before { content: none; }
.hero.hero-has-banner .eyebrow { color: #8A5A17 !important; }
.hero.hero-has-banner p.lead {
  color: #3F5149;
  text-shadow: 0 1px 3px rgba(255,255,255,1), 0 0 10px rgba(255,255,255,.95);
  background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.55) 70%, transparent 100%);
  border-radius: 6px;
}
.hero.hero-has-banner h1 { text-shadow: 0 1px 2px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.75); }
.hero.hero-has-banner h1 .accent { color: #B3791F; }
.hero.hero-has-banner .btn-ghost { color: var(--green-deep); border-color: rgba(12,97,72,.55); background: rgba(255,255,255,.65); }
.hero.hero-has-banner .btn-ghost:hover { background: rgba(255,255,255,.9); }

.page-hero.page-hero-has-banner { position: relative; color: var(--green-deep); }
.page-hero.page-hero-has-banner::before { content: none; }
.page-hero.page-hero-has-banner h1 { text-shadow: none; }
.page-hero.page-hero-has-banner p { color: #3F5149; text-shadow: none; }
.page-hero.page-hero-has-banner .crumb { color: #5B7066; }
.page-hero.page-hero-has-banner .crumb a { color: var(--green-deep); }
.page-hero.page-hero-has-banner .container { position: relative; z-index: 1; }
/* 宽屏下把内页文字整体移到左下留白区（纯 transform，不改布局；窄屏保持原样避免出界） */
@media (min-width: 1500px) {
  .page-hero.page-hero-has-banner .container > .crumb,
  .page-hero.page-hero-has-banner .container > h1,
  .page-hero.page-hero-has-banner .container > p { transform: translate(-228px, 100px); }
}

.cat-banner.cat-banner-has-image { position: relative; color: var(--green-deep); }
.cat-banner.cat-banner-has-image::before { content: none; }
.cat-banner.cat-banner-has-image h1 { text-shadow: 0 1px 2px rgba(255,255,255,.95), 0 0 16px rgba(255,255,255,.8); }
.cat-banner.cat-banner-has-image p { color: #3F5149; text-shadow: 0 1px 2px rgba(255,255,255,.95), 0 0 14px rgba(255,255,255,.7); }
.cat-banner.cat-banner-has-image .crumb { color: #4F655B; }
.cat-banner.cat-banner-has-image .crumb a { color: var(--green-deep); }
.cat-banner.cat-banner-has-image .cat-banner-inner { position: relative; z-index: 1; }
/* 有海报时文字块移到左下（按用户指定位置），仅宽屏生效 */
@media (min-width: 1200px) {
  .cat-banner.cat-banner-has-image .cat-banner-inner > div:first-child { transform: translate(-115px, 72px); }
}

/* 海报完整显示：contain 保证整张图按比例铺进来，不裁掉内容 */
.hero.hero-has-banner, .page-hero.page-hero-has-banner, .cat-banner.cat-banner-has-image {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: #F4EFE6;
}
/* 首页宽屏：cover 放大海报让袋子更大更醒目（放在 contain 之后以生效） */
@media (min-width: 1200px) {
  .hero.hero-has-banner { background-size: cover; background-position: center; }
}

/* ---------- 导航悬浮下拉（Custom Products） ---------- */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a[data-nav-products]::after {
  content: " ▾"; font-size: 11px; margin-left: 2px;
}
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(12,97,72,.16);
  padding: 22px; opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s; transform: translateX(-50%) translateY(8px);
  z-index: 200; min-width: 480px;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-inner ul {
  list-style: none; display: grid;
  grid-template-columns: repeat(var(--dd-cols, 3), 1fr); gap: 8px 18px;
}
.nav-dropdown-inner a {
  display: block; padding: 8px 10px; border-radius: 7px;
  font-size: 14px; font-weight: 600; color: var(--green-deep);
}
.nav-dropdown-inner a:hover { background: var(--bg-soft); color: var(--green); }

/* ---------- 认证页：左图右文列表 ---------- */
.cert-list { display: flex; flex-direction: column; gap: 26px; }
.cert-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.cert-logo { display: flex; align-items: center; justify-content: center; }
.cert-logo img { max-width: 180px; max-height: 150px; object-fit: contain; }
.cert-logo.cert-placeholder {
  width: 140px; height: 140px; border-radius: 14px; background: var(--bg-soft);
  color: var(--green); font-size: 56px; font-weight: 800;
}
.cert-copy h3 { color: var(--green-deep); font-size: 1.15rem; margin-bottom: 10px; }
.cert-copy p { color: var(--muted); font-size: .96rem; line-height: 1.7; }

/* ---------- 分类页：多款式图库（3列卡片） ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; width: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(12,97,72,.16); }
.gallery-item:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gallery-media { background: #fafbf9; border-bottom: 1px solid var(--line); }
.gallery-img { width: 100%; height: 280px; object-fit: contain; display: block; background: #fff; }
.gallery-img.gallery-empty { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--muted); font-size: 13px; }
.gallery-text { padding: 18px 20px 8px; flex: 1; }
.gallery-cap { display: block; font-size: 1.02rem; font-weight: 700; color: #1a1a1a; margin: 0 0 10px; line-height: 1.35; }
.gallery-desc { color: #6b6b6b; font-size: .9rem; line-height: 1.6; margin: 0; }
.gallery-more { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #f4f5f6; color: #444; border: 0; border-top: 1px solid var(--line); padding: 13px 20px; font-size: .9rem; cursor: pointer; text-align: left; }
.gallery-more span { display: inline-flex; align-items: center; justify-content: center; background: var(--blue, #2f6fed); color: #fff; width: 30px; height: 30px; border-radius: 4px; font-size: 1.3rem; line-height: 1; }

/* 款式详情弹窗 */
body.modal-open { overflow: hidden; }
.style-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.style-modal-backdrop { position: absolute; inset: 0; background: rgba(8,40,30,.6); }
.style-modal-box { position: relative; background: #fff; border-radius: 14px; max-width: 1000px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.style-modal-close { position: absolute; top: 12px; right: 14px; z-index: 3; background: rgba(255,255,255,.95); border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 22px; line-height: 1; color: var(--green-deep); cursor: pointer; box-shadow: var(--shadow); }
.sd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.sd-media { background: #fafbf9; padding: 26px 22px; border-right: 1px solid var(--line); }
.sd-main { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 360px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sd-main-img { max-width: 100%; max-height: 56vh; object-fit: contain; display: block; }
.sd-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.sd-thumb { flex: 0 0 70px; height: 70px; border: 2px solid var(--line); border-radius: 6px; background: #fff; padding: 3px; cursor: pointer; overflow: hidden; }
.sd-thumb.is-active { border-color: var(--green); }
.sd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-modal-body { padding: 34px 32px; }
.style-modal-body h3 { font-size: 1.7rem; color: #1a1a1a; margin: 10px 0 14px; line-height: 1.25; }
.style-desc { color: #555; margin-bottom: 22px; line-height: 1.65; }
.spec-table { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.spec-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-row:nth-child(even) { background: #fafbf9; }
.spec-row:last-child { border-bottom: 0; }
.spec-k { color: #333; font-weight: 700; }
.spec-v { color: #444; }
.style-modal-cta { margin-top: 24px; }
.sd-share { display: flex; gap: 8px; margin-top: 22px; }
.sd-share-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; border-radius: 3px; text-decoration: none; }
.sd-sh-f { background: #1877f2; }
.sd-sh-x { background: #111; }
.sd-sh-in { background: #0a66c2; }
.sd-sh-p { background: #e60023; }
.sd-sh-wa { background: #25d366; }
.sd-rich { border-top: 1px solid var(--line); padding: 26px 32px 34px; color: #333; line-height: 1.75; font-size: .96rem; }
.sd-rich-title { font-size: 1.15rem; color: var(--green-deep); margin: 0 0 16px; }
.sd-rich h1, .sd-rich h2, .sd-rich h3, .sd-rich h4 { color: var(--green-deep); margin: 22px 0 10px; line-height: 1.3; }
.sd-rich h1 { font-size: 1.5rem; } .sd-rich h2 { font-size: 1.3rem; } .sd-rich h3 { font-size: 1.12rem; } .sd-rich h4 { font-size: 1rem; }
.sd-rich p { margin: 0 0 14px; }
.sd-rich ul, .sd-rich ol { margin: 0 0 14px; padding-left: 24px; }
.sd-rich img { max-width: 100%; height: auto; border-radius: 6px; }
.sd-rich .md-img { margin: 16px 0; }
.md-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.md-table th { background: var(--bg-soft); font-weight: 700; color: #222; }
.md-table tr:nth-child(even) td { background: #fafbf9; }
.img-zoom { position: fixed; inset: 0; z-index: 10000; background: rgba(8,20,16,.92); display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.img-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 720px) {
  .sd-grid { grid-template-columns: 1fr; }
  .sd-media { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .sd-main { min-height: 240px; }
  .sd-main-img { max-height: 40vh; }
  .style-modal-body { padding: 24px 20px; }
  .sd-rich { padding: 22px 20px 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-art .photo-art { max-width: 260px; }
  .cat-banner-art .photo-art { max-width: 150px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-row { grid-template-columns: 120px 1fr; gap: 20px; }
  .cert-logo img { max-width: 110px; }
  .cert-logo.cert-placeholder { width: 90px; height: 90px; font-size: 36px; }
  .nav-dropdown { min-width: 320px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0; }
  .hero-inner > div:first-child { padding-left: 0; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 22px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-4, .form-row { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 独立产品详情页 ---------- */
.detail-page { padding: 34px 0 60px; }
.detail-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.detail-box > .crumb { padding: 18px 30px 0; }
.detail-box .sd-grid { border-top: 14px solid transparent; }
.detail-box .sd-media { align-self: stretch; }
.detail-box .style-modal-body h1 { font-size: 1.9rem; }
.detail-box .sd-rich { border-top: 1px solid var(--line); }
.detail-back { padding: 20px 32px 30px; }
.detail-back a { color: var(--green); font-weight: 600; text-decoration: none; }
.detail-back a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .detail-box > .crumb { padding: 16px 18px 0; }
  .detail-box .sd-grid { border-top-width: 8px; }
  .detail-back { padding: 16px 20px 24px; }
  .detail-box .style-modal-body h1 { font-size: 1.5rem; }
}

/* ============================================================
   Blog 栏目（列表 / 分类筛选 / 文章详情）
   ============================================================ */
/* 导航 Blog 下拉箭头（与 Products 一致） */
.nav-has-dropdown > a[data-nav-blog]::after { content: " ▾"; font-size: 11px; margin-left: 2px; }
.blog-nav-dropdown { min-width: 230px; }

/* 分类筛选标签 */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.blog-filter {
  display: inline-block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 30px;
  font-size: .9rem; font-weight: 600; color: var(--muted); background: #fff; transition: all .2s;
}
.blog-filter:hover { border-color: var(--green); color: var(--green); }
.blog-filter.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* 博客卡片网格（3列，参考 tealpackaging） */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(12,97,72,.14); }
.blog-card-media { height: 190px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-media svg { width: 100%; height: 100%; }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.blog-cat { display: inline-block; background: #E9F7F1; color: var(--green); font-size: 11px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; padding: 4px 11px; border-radius: 20px; }
.blog-date { font-size: 12px; color: var(--muted); }
.blog-card h3 { color: var(--green-deep); font-size: 1.08rem; line-height: 1.35; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 18px; flex: 1; }
.blog-read { color: var(--green); font-weight: 700; font-size: .88rem; }
.blog-read span { margin-left: 3px; }
.blog-card:hover .blog-read { color: var(--amber-dark); }

/* 文章详情页 */
.blog-post-box { padding-bottom: 8px; }
.blog-post-wrap { max-width: 820px; margin: 0 auto; padding: 30px 34px 20px; }
.blog-post-head { margin-bottom: 26px; }
.blog-post-head h1 { color: var(--green-deep); font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.2; margin: 6px 0 16px; }
.blog-post-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.blog-post-cover { margin: 0 0 28px; border-radius: 10px; overflow: hidden; }
.blog-post-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.blog-post-rich { color: #333; line-height: 1.8; font-size: 1rem; }
.blog-post-rich h2 { color: var(--green-deep); font-size: 1.4rem; margin: 30px 0 12px; line-height: 1.3; }
.blog-post-rich h3 { color: var(--green-deep); font-size: 1.15rem; margin: 22px 0 10px; }
.blog-post-rich p { margin: 0 0 16px; }
.blog-post-rich ul, .blog-post-rich ol { margin: 0 0 18px; padding-left: 26px; }
.blog-post-rich li { margin-bottom: 8px; }
.blog-post-rich strong { color: var(--ink); }
.blog-post-rich .md-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.blog-post-rich .md-table th, .blog-post-rich .md-table td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.blog-post-rich .md-table th { background: var(--bg-soft); font-weight: 700; color: var(--green-deep); }
.blog-post-rich .md-table tr:nth-child(even) td { background: #fafbf9; }
.blog-post-wrap .sd-share { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post-wrap { padding: 22px 18px 16px; }
  .blog-post-box > .crumb { padding: 16px 18px 0; }
}
