/* ==========================================================================
   JYC Foods 官网样式 —— 依据《出口冷冻蔬菜公司网站设计方案》
   设计 Token / 字阶 / 断点 / 组件状态 均按方案落地
   ========================================================================== */

/* ---------- 1. 设计 Token ---------- */
:root {
  --brand-50:  #EAF5EE;
  --brand-100: #D5EBDC;
  --brand-600: #2E7D46;
  --brand-700: #256B3B;
  --brand-800: #1F5C33;
  --ice-50:    #E8F3F8;
  --ice-600:   #1D6F8F;
  --gold-500:  #C98A12;
  --ink-900:   #1F2937;
  --ink-600:   #57606A;
  --bg-page:   #F6F8F7;
  --border:    #E3E8E5;
  --error:     #B3261E;
  --warning:   #B45309;
  --shadow-1:  0 1px 2px rgba(31,41,55,.06), 0 1px 3px rgba(31,41,55,.08);
  --shadow-2:  0 8px 24px rgba(31,41,55,.12);
  --radius:    12px;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content:   1200px;
  --header-h:  64px;
}

/* ---------- 2. 基础与排版 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px; line-height: 1.6;         /* Body 14/22 */
  color: var(--ink-900);
  background: var(--bg-page);
  padding-top: var(--header-h);               /* 吸顶头部占位 */
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
.h-hero { font-size: 28px; line-height: 1.28; }                 /* Hero 移动 28/36 */
.h2     { font-size: 24px; line-height: 1.33; margin-bottom: 8px; }  /* H2 移动 24/32 */
.h3     { font-size: 20px; line-height: 1.4; font-weight: 500; }     /* H3 移动 20/28 */
.body-lg{ font-size: 16px; line-height: 1.5; color: var(--ink-600); }
.caption{ font-size: 12px; line-height: 1.5; color: var(--ink-600); }
.num, .spec-num, .stat-value, .mono { font-family: "Inter", "Noto Sans SC", sans-serif; }

.container { max-width: var(--content); margin: 0 auto; padding: 0 16px; }
.section   { padding: 48px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head .body-lg { margin-top: 4px; }

/* 焦点可见：2px 品牌绿外描边（不删 outline） */
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

/* 跳转链接（无障碍） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-600); color: #fff; padding: 12px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. 按钮组件（默认/悬停/按下/禁用） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease-out, background-color .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: scale(1.05); box-shadow: var(--shadow-1); }
.btn-primary:active { transform: scale(.95); }
.btn-ghost { background: #fff; color: var(--brand-800); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand-600); color: var(--brand-700); transform: scale(1.05); box-shadow: var(--shadow-1); }
.btn-ghost:active { transform: scale(.95); }
.btn-lg { min-height: 48px; padding: 12px 28px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.5; font-weight: 500;
}
.badge-cert { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.badge-temp { background: var(--ice-50); color: var(--ice-600); border: 1px solid #D0E7F1; font-family: "Inter", sans-serif; }
.badge-gold { background: #FBF3E1; color: var(--gold-500); border: 1px solid #F0E2C0; }
.badge-warn { background: #FDF0E4; color: var(--warning); }

/* ---------- 5. 头部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease-out, border-color .2s ease-out;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-1); }
.header-inner {
  max-width: var(--content); margin: 0 auto; padding: 0 16px;
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink-900); font-weight: 700; font-size: 18px; }
.logo:hover { color: var(--ink-900); }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo .logo-sub { display: block; font-size: 12px; font-weight: 400; color: var(--ink-600); line-height: 1.2; }

.main-nav { display: none; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-900); font-weight: 400;
}
.main-nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.main-nav a.active { color: var(--brand-700); font-weight: 500; background: var(--brand-50); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.header-quote { display: none; }

.lang-toggle {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink-900);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--brand-600); color: var(--brand-700); }

/* 汉堡按钮 */
.hamburger {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .2s ease-out, opacity .2s ease-out; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 全屏抽屉（移动端） */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 24px 16px 96px;
  overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease-out;
}
.drawer.open { transform: translateX(0); }
.drawer nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 12px 8px;
  font-size: 16px; color: var(--ink-900); border-bottom: 1px solid var(--border);
}
.drawer nav a.active { color: var(--brand-700); font-weight: 500; }
.drawer nav a svg { width: 16px; height: 16px; color: var(--ink-600); }
.drawer .btn { width: 100%; margin-top: 8px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 0;
  display: flex; align-items: center;
  color: #fff;
  background: var(--brand-800) url("../img/hero.webp") center/cover no-repeat;
}
.hero::after {              /* 压暗渐变，保证白字可读（深底白字，符合规则） */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,35,23,.82) 0%, rgba(15,35,23,.55) 55%, rgba(15,35,23,.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  margin-bottom: 16px;
}
.hero p { max-width: 560px; color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.6; margin: 16px 0 24px; }
.hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- 7. 认证背书条 ---------- */
.cert-strip { background: var(--ice-50); border-bottom: 1px solid var(--border); }
.cert-strip-inner {
  display: flex; align-items: center; gap: 12px 24px;
  flex-wrap: wrap; justify-content: center;
  padding: 12px 0;
}
.cert-strip-label { font-size: 12px; color: var(--ice-600); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.cert-strip-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-900); }
.cert-strip-item svg { width: 16px; height: 16px; color: var(--ice-600); }

/* ---------- 8. 产品卡与网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--ink-900);
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--brand-600); box-shadow: var(--shadow-2); color: var(--ink-900); }
.product-card .pc-img { aspect-ratio: 4/3; overflow: hidden; background: var(--brand-50); }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; }
.product-card:hover .pc-img img { transform: scale(1.04); }
.product-card .pc-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .pc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card h3 { font-size: 20px; line-height: 1.4; font-weight: 500; }
.product-card .pc-spec { font-size: 13px; color: var(--ink-600); }
.product-card .pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card .pc-moq { font-size: 12px; color: var(--ink-600); }
.product-card .pc-more { font-size: 13px; font-weight: 500; color: var(--brand-600); display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }

/* 分类胶囊快捷条（横向滚动） */
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 8px 18px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--ink-900);
  font-size: 13px; font-family: inherit; cursor: pointer;
  transition: border-color .2s ease-out, background-color .2s ease-out;
}
.chip:hover { border-color: var(--brand-600); }
.chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 500; }

/* ---------- 9. 优势三列 / 数据卡 ---------- */
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.adv-card {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius); padding: 24px;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.adv-card .adv-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--brand-100); margin-bottom: 16px;
}
.adv-card .adv-icon svg { width: 24px; height: 24px; color: var(--brand-600); }
.adv-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.adv-card p { margin: 0; color: var(--ink-600); }

.stats-band { background: var(--brand-800); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 40px 0; }
.stat { text-align: center; }
.stat-value { font-size: 32px; line-height: 1.2; font-weight: 500; }   /* Inter 24px+，桌面取 32 */
.stat-value .unit { font-size: 16px; font-weight: 400; margin-left: 2px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ---------- 10. 规格参数表（斑马纹，标签列定宽） ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; vertical-align: top; font-size: 14px; }
.spec-table th { width: 160px; background: var(--bg-page); color: var(--ink-600); font-weight: 500; white-space: nowrap; }
.spec-table tr:nth-child(even) th, .spec-table tr:nth-child(even) td { background: #FBFCFB; }
.spec-table td .badge { margin: 2px 4px 2px 0; }

/* ---------- 11. 资质卡 / 灯箱 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cert-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: left; cursor: zoom-in; font-family: inherit;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--ice-600); box-shadow: var(--shadow-2); }
.cert-card .cc-seal {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ice-50); border: 2px solid var(--ice-600);
  margin-bottom: 16px; color: var(--ice-600);
}
.cert-card .cc-seal svg { width: 28px; height: 28px; }
.cert-card h3 { font-size: 20px; font-weight: 500; }
.cert-card p { color: var(--ink-600); margin: 8px 0 12px; }
.cert-card .cc-valid { color: var(--ice-600); }

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: center; justify-content: center;
  background: rgba(15,23,32,.6); padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-panel {
  background: #fff; border-radius: 16px; max-width: 520px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 32px; position: relative;
  animation: pop .25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.lightbox-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border: none; background: var(--bg-page);
  border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--ink-900);
}

/* ---------- 12. 工厂 / 图库 / 视频占位 ---------- */
.factory-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.factory-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.factory-photo img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.factory-photo figcaption { padding: 12px 16px; font-size: 12px; color: var(--ink-600); }
.video-ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  background: var(--ink-900);
}
.video-ph img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .82; }
.video-ph .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: #fff; text-align: center; padding: 16px;
}
.video-ph .play-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.video-ph .play-icon svg { width: 24px; height: 24px; margin-left: 3px; }

/* 时间线（关于我们） */
.timeline { border-left: 2px solid var(--brand-100); margin: 0; padding: 0 0 0 24px; list-style: none; }
.timeline li { position: relative; padding-bottom: 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-600);
}
.timeline .tl-year { font-family: "Inter", sans-serif; font-weight: 700; color: var(--brand-700); }

/* ---------- 13. 新闻卡 ---------- */
.news-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s ease-out, box-shadow .2s ease-out; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.news-card time { font-family: "Inter", sans-serif; font-size: 12px; color: var(--gold-500); font-weight: 500; }
.news-card h3 { font-size: 20px; font-weight: 500; margin: 8px 0; }
.news-card p { color: var(--ink-600); margin: 0; }

/* ---------- 14. 表单 ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-field label .req { color: var(--error); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink-900); background: #fff;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100);
}
.form-field.error input, .form-field.error select, .form-field.error textarea { border-color: var(--error); }
.form-field .err-msg { display: none; font-size: 12px; color: var(--error); margin-top: 6px; }
.form-field.error .err-msg { display: block; }
.contact-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
.direct-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px; color: var(--ink-900);
  transition: transform .2s ease-out, border-color .2s ease-out;
}
.direct-card:hover { transform: translateY(-2px); border-color: var(--brand-600); color: var(--ink-900); }
.direct-card .dc-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--ice-50); color: var(--ice-600);
}
.direct-card .dc-icon svg { width: 24px; height: 24px; }
.direct-card .dc-label { font-size: 12px; color: var(--ink-600); }
.direct-card .dc-value { font-weight: 500; }

/* ---------- 15. CTA 横幅 / 页脚 ---------- */
.cta-band { background: var(--brand-800); color: #fff; text-align: center; }
.cta-band .container { padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { font-size: 24px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0 0 24px; }

.site-footer { background: var(--brand-800); color: rgba(255,255,255,.85); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 48px 0 32px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-logo svg { width: 32px; height: 32px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 16px 0 24px; font-size: 12px; color: rgba(255,255,255,.6);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* ---------- 16. 底部 Tab 导航（移动端） ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 98;
  display: flex; background: #fff; border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; color: var(--ink-600); padding: 6px 0;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--brand-600); font-weight: 500; }

/* 移动端滚动后出现的「询价」悬浮按钮 */
.fab-quote {
  position: fixed; right: 16px; bottom: 76px; z-index: 97;
  display: none; align-items: center; gap: 6px;
  min-height: 44px; padding: 10px 18px;
  background: var(--brand-600); color: #fff; border-radius: 999px;
  box-shadow: var(--shadow-2); font-weight: 500; font-size: 14px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.fab-quote.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-quote svg { width: 16px; height: 16px; }

/* ---------- 17. Toast（4s 自动消失） ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px);
  z-index: 180; max-width: calc(100vw - 32px);
  background: var(--ink-900); color: #fff;
  padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-2);
  font-size: 14px; display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease-out, transform .25s ease-out;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success::before, .toast.error::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.toast.success::before { background: #6EE7A0; }
.toast.error::before { background: #FF8A80; }

/* ---------- 18. 滚动入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .3s ease-out, transform .3s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. 骨架屏 ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--border); border-radius: 8px; min-height: 48px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 20. 详情页底部固定双按钮（移动端） ---------- */
.detail-actions {
  position: sticky; bottom: 0; z-index: 50;
  display: flex; gap: 12px; padding: 12px 0 16px;
  background: linear-gradient(to top, var(--bg-page) 75%, transparent);
}
.detail-actions .btn { flex: 1; min-height: 48px; }

/* 空态 */
.empty {
  text-align: center; padding: 64px 16px; color: var(--ink-600);
}
.empty svg { width: 56px; height: 56px; color: var(--border); margin-bottom: 16px; }

/* ==========================================================================
   断点渐进增强
   ========================================================================== */
@media (min-width: 576px) {          /* sm：产品卡 2 列 */
  .product-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {          /* md：导航展开，产品 3 列 */
  .detail-layout { grid-template-columns: 1fr 1.25fr !important; align-items: start; }
  .hamburger, .tabbar, .fab-quote { display: none; }
  body { padding-bottom: 0; }
  .main-nav { display: flex; }
  .header-quote { display: inline-flex; }
  .drawer { display: none; }
  .h-hero { font-size: 40px; }
  .h2 { font-size: 28px; }
  .product-grid, .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field.full { grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 3fr 2fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .hero .container { padding-top: 96px; padding-bottom: 96px; }
  .detail-actions { position: static; background: none; padding: 24px 0 0; }
}

@media (min-width: 992px) {          /* lg */
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {         /* xl：完整桌面布局 */
  .container { padding: 0 24px; }
  .h-hero { font-size: 48px; line-height: 1.17; }   /* 48/56 */
  .h2 { font-size: 32px; line-height: 1.25; }        /* 32/40 */
  .h3, .product-card h3, .adv-card h3, .cert-card h3, .news-card h3 { font-size: 24px; line-height: 1.33; }  /* 24/32 */
  .hero { min-height: 60vh; }
  .hero .container { padding-top: 120px; padding-bottom: 120px; }
  .stat-value { font-size: 40px; }
  .fab-quote { display: none !important; }
}
