/* ============================================================
   星扬蓬帆科技有限公司 · 官网样式
   工业硬朗 · 浅色（白底）+ 亮橙
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eef1f4;
  --line: #dfe4e9;
  --line-soft: #eaeef1;
  --text: #161b21;
  --text-soft: #3b434c;
  --muted: #66707c;
  --faint: #97a1ac;
  --accent: #f26a0d;
  --accent-2: #ff9a1a;
  --accent-deep: #d95800;
  --accent-text: #c24e00;
  --accent-ink: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -22px rgba(20, 30, 45, .25);
  --shadow-accent: 0 12px 38px -12px rgba(242, 106, 13, .45);
  --maxw: 1200px;
  --nav-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Menlo", Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: .2px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 文本工具 ---------- */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-text); font-weight: 700;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

.h2 {
  font-size: clamp(30px, 4.5vw, 46px); line-height: 1.16; font-weight: 800;
  letter-spacing: -.5px; margin: 18px 0 16px;
}
.h2 em { font-style: normal; color: var(--accent); }

.lead { color: var(--muted); font-size: 17px; max-width: 640px; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -12px rgba(242, 106, 13, .55); }

.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 17px 36px; font-size: 16px; }
.btn .arrow { font-size: 18px; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 42px; height: 42px; flex: none; background: #fff; border-radius: 10px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__cn { font-weight: 800; font-size: 18px; letter-spacing: .5px; color: var(--text); }
.logo__en { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 15px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--text-soft); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a.active { color: var(--accent); background: rgba(242, 106, 13, .08); }

.header__cta { display: flex; align-items: center; gap: 10px; }

.lang {
  height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-soft); background: var(--surface); transition: all .15s;
}
.lang:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(242, 106, 13, .10), transparent 60%),
    radial-gradient(700px 480px at 8% 80%, rgba(255, 154, 26, .12), transparent 55%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }

.hero__title {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -1px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 22px; color: var(--text-soft); font-size: 18px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero__meta b { display: block; font-size: 30px; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.hero__meta span { color: var(--muted); font-size: 14px; }

.hero__visual { position: relative; }
.hero__img {
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2);
}
.hero__img svg, .hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: -18px; left: -18px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; padding: 16px 20px; border-radius: 14px; font-weight: 800;
  box-shadow: var(--shadow-accent); display: flex; flex-direction: column; line-height: 1.2;
}
.hero__badge small { font-size: 12px; font-weight: 600; opacity: .9; }

/* ---------- 数据条 ---------- */
.stats { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 38px; font-weight: 800; font-family: var(--mono); color: var(--text); }
.stat b i { font-style: normal; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- 卡片网格 ---------- */
.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: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(242, 106, 13, .10);
  color: var(--accent); margin-bottom: 18px; border: 1px solid rgba(242, 106, 13, .18);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__num {
  position: absolute; top: 22px; right: 24px; font-family: var(--mono);
  font-size: 40px; font-weight: 800; color: var(--surface-3); line-height: 1;
}

/* ---------- 产品卡片 ---------- */
.pcard {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--accent); }
.pcard__media { aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; position: relative; }
.pcard__media svg, .pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700;
  color: var(--accent); border: 1px solid rgba(242, 106, 13, .28);
}
.pcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pcard__body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.pcard__specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.pcard__specs span {
  font-size: 12.5px; padding: 5px 10px; border-radius: 7px; background: var(--bg-2);
  border: 1px solid var(--line-soft); color: var(--text-soft); font-family: var(--mono);
}
.pcard__foot { display: flex; align-items: center; justify-content: space-between; }
.pcard__foot a { color: var(--accent-text); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.pcard__foot a:hover { color: var(--accent-deep); }

/* ---------- 过滤器 ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0 44px; }
.filter button {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px;
  color: var(--text-soft); transition: all .16s; font-weight: 500; background: var(--surface);
}
.filter button:hover { color: var(--text); border-color: var(--muted); }
.filter button.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* ---------- 流程时间轴 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: flow; }
.flow__step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.flow__step::before {
  counter-increment: flow; content: "0" counter(flow);
  font-family: var(--mono); font-weight: 800; font-size: 40px; color: var(--surface-3);
  display: block; margin-bottom: 14px;
}
.flow__step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.flow__step p { color: var(--muted); font-size: 14px; }

/* ---------- 场景列表 ---------- */
.app {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--line-soft);
}
.app:last-child { border-bottom: none; }
.app__media { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.app__media svg, .app__media img { width: 100%; height: 100%; object-fit: cover; }
.app h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.app h3 em { font-style: normal; color: var(--accent); }
.app p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.app ul { display: flex; flex-wrap: wrap; gap: 8px; }
.app ul li { font-size: 13px; padding: 6px 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--text-soft); }
.app--rev .app__media { order: 2; }

/* ---------- 关于 ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about__media svg, .about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__list { margin-top: 24px; display: grid; gap: 16px; }
.about__list li { display: flex; gap: 14px; align-items: flex-start; }
.about__list .dot { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(242, 106, 13, .12); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.about__list b { display: block; font-size: 15.5px; }
.about__list span { color: var(--muted); font-size: 14px; }

/* ---------- 时间线（发展历程） ---------- */
.milestones { display: grid; gap: 0; margin-top: 40px; position: relative; }
.milestones::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.mile { position: relative; padding: 0 0 34px 42px; }
.mile:last-child { padding-bottom: 0; }
.mile::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent-deep); }
.mile b { font-family: var(--mono); color: var(--accent-text); font-size: 15px; letter-spacing: .05em; }
.mile h4 { font-size: 18px; font-weight: 700; margin: 4px 0 6px; }
.mile p { color: var(--muted); font-size: 14.5px; }

/* ---------- 联系 ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact__info { display: grid; gap: 18px; align-content: start; }
.cinfo { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; align-items: flex-start; }
.cinfo__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(242, 106, 13, .10); border: 1px solid rgba(242, 106, 13, .18); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.cinfo__icon svg { width: 22px; height: 22px; }
.cinfo b { display: block; font-size: 15px; margin-bottom: 3px; }
.cinfo span { color: var(--muted); font-size: 14.5px; }
.cinfo a { color: var(--accent-text); font-size: 14.5px; }

.form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-soft); }
.field label i { font-style: normal; color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text); font-size: 15px; transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 106, 13, .14); background: var(--surface); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366707c' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.form__note { font-size: 13px; color: var(--faint); margin-top: 14px; }
.form__msg { display: none; margin-top: 16px; padding: 13px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.form__msg.ok { display: block; background: rgba(46,160,67,.10); color: #1e8e3a; border: 1px solid rgba(46,160,67,.3); }
.form__msg.err { display: block; background: rgba(248,81,73,.10); color: #d93025; border: 1px solid rgba(248,81,73,.3); }

/* ---------- 页头（内页） ---------- */
.page-head { padding: 84px 0 60px; background: var(--bg-2); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 82% 0%, rgba(242, 106, 13, .10), transparent 60%); pointer-events: none; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; }
.page-head .lead { margin-top: 12px; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; color: var(--line); }

/* ---------- CTA 横幅 ---------- */
.cta { background: linear-gradient(120deg, var(--accent-deep), var(--accent) 55%, var(--accent-2)); border-radius: 22px; padding: 52px 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow-accent); }
.cta h3 { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; }
.cta p { color: rgba(255, 255, 255, .92); margin-top: 8px; font-weight: 500; }
.cta .btn { background: #fff; color: var(--accent-deep); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .28); }
.cta .btn:hover { transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: 70px 0 0; margin-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.footer p { color: var(--muted); font-size: 14px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color .15s; }
.footer ul a:hover { color: var(--accent); }
.footer__brand p { margin-top: 16px; max-width: 320px; }
.footer__bar { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }

/* ---------- 动画 ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { padding: 70px 0 60px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .app--rev .app__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(-n+2) { border-top: none; }

  .nav { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(255, 255, 255, .98); backdrop-filter: blur(16px); padding: 12px 16px 20px; border-bottom: 1px solid var(--line-soft); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .header__cta .btn { display: none; }
}

@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__meta { gap: 24px; }
  .cta { padding: 38px 28px; }
  .flow { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}

/* ---------- 滚动状态 ---------- */
.header.scrolled { box-shadow: 0 10px 30px -14px rgba(20, 30, 45, .22); }

/* ---------- 图片悬停微缩放 ---------- */
.pcard__media img, .app__media img, .hero__img img { transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.app:hover .app__media img { transform: scale(1.03); }

/* ---------- 悬浮客服 ---------- */
.floatbar {
  position: fixed; right: 18px; bottom: 30px; z-index: 95;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.floatbar.show { opacity: 1; transform: none; pointer-events: auto; }

.floatbar__item {
  position: relative; width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  color: var(--text-soft);
  box-shadow: 0 12px 30px -14px rgba(20, 30, 45, .35);
  backdrop-filter: blur(8px);
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.floatbar__item svg { width: 22px; height: 22px; }
.floatbar__item:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.floatbar__item--accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent; }
.floatbar__item--accent:hover { background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); }

.floatbar__label {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--text); color: #fff; font-size: 12.5px; padding: 5px 10px;
  border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.floatbar__item:hover .floatbar__label { opacity: 1; }

/* ---------- 微信弹窗 ---------- */
.wechat-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10, 14, 20, .5);
  backdrop-filter: blur(4px);
}
.wechat-modal.open { display: flex; }
.wechat-modal__box {
  position: relative; width: 100%; max-width: 320px; padding: 28px 24px;
  background: var(--surface); border-radius: 20px; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45);
  animation: popIn .22s ease;
}
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.wechat-modal__box h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.wechat-modal__box img { width: 200px; height: 200px; margin: 0 auto 14px; border-radius: 12px; border: 1px solid var(--line); }
.wechat-modal__box p { font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.wechat-modal__close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted);
  background: var(--bg-2); transition: all .15s;
}
.wechat-modal__close:hover { background: var(--accent); color: #fff; }

@media (max-width: 860px) {
  .floatbar {
    right: 50%; bottom: 16px; flex-direction: row; gap: 8px;
    transform: translateX(50%) translateY(14px);
  }
  .floatbar.show { transform: translateX(50%) translateY(0); }
  .floatbar__label { display: none; }
  .floatbar__item { width: 46px; height: 46px; border-radius: 13px; }
}

/* ---------- 提交成功弹窗 ---------- */
.success-icon {
  width: 68px; height: 68px; margin: 2px auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 160, 67, .12); color: #1e8e3a;
  border: 2px solid rgba(46, 160, 67, .35);
}
.success-icon svg { width: 34px; height: 34px; }
#successModal .wechat-modal__box { max-width: 340px; }
#successModal p { margin: 0 0 22px; font-size: 14px; color: var(--muted); line-height: 1.65; }
#successModal .btn { width: 100%; }

/* ---------- 产品中心：正方形产品图（完整居中，不裁切） ---------- */
body.products-page .pcard__media { aspect-ratio: 1 / 1; }
body.products-page .pcard__media img { object-fit: contain; background: #fff; }

/* ---------- 首页工厂实拍轮播 ---------- */
.factory-carousel { position: relative; margin-top: 44px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 9; }
.factory-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.factory-slide { min-width: 100%; height: 100%; }
.factory-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.factory-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); color: var(--text); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: all .18s; }
.factory-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.factory-prev { left: 16px; }
.factory-next { right: 16px; }
.factory-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.factory-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .65); border: 1px solid rgba(0, 0, 0, .15); cursor: pointer; padding: 0; transition: all .18s; }
.factory-dot.active { background: var(--accent); border-color: var(--accent); width: 22px; border-radius: 99px; }
@media (max-width: 860px) { .factory-carousel { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .factory-carousel { aspect-ratio: 4 / 3; } }

/* ---------- Hero 内轮播铺满 ---------- */
.hero__img { position: relative; }
.hero__img .factory-carousel { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; }

/* ---------- 快捷锚点 ---------- */
.quicknav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.quicknav a { font-size: 13.5px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); background: var(--surface); transition: all .15s; }
.quicknav a:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- 轮播暂停按钮 ---------- */
.factory-pause { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.9); color: var(--text); font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); }
.factory-pause:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 筛选计数 ---------- */
.filter-count { text-align: center; font-size: 13.5px; color: var(--faint); margin: -24px 0 28px; font-family: var(--mono); }

/* ---------- 移动端给底部悬浮栏留白 ---------- */
@media (max-width: 860px) { body { padding-bottom: 86px; } }

/* ---------- 触屏设备不触发 hover 放大 ---------- */
@media (hover: none) { .pcard:hover .pcard__media img, .app:hover .app__media img { transform: none; } }

/* JS 未执行时的兜底：直接显示内容 */
html.nojs-fallback [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15.5px; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent-text); font-size: 20px; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 22px 18px; color: var(--text-soft); font-size: 14.5px; }

/* ---------- 表单两列 ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- 招商价格表 ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.price-card h3 { font-size: 16px; margin-bottom: 14px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th, .ptable td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.ptable th { color: var(--text-soft); font-weight: 600; font-size: 13px; }
.ptable b { color: var(--accent-text); font-size: 16px; }
.ptable tr:last-child td { border-bottom: none; }
.price-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 20px; }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- 产品卡颜色切换 ---------- */
.pcard__colors { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 7px; z-index: 2; }
.pcard__color { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); background: var(--c, #ccc); cursor: pointer; padding: 0; transition: box-shadow .15s; }
.pcard__color.active { box-shadow: 0 0 0 2px var(--accent); }
.pcard__color:hover { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- 产品卡规格切换（普通/阻燃） ---------- */
.pcard__variants { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.pcard__variant { font-size: 11.5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--text-soft); cursor: pointer; }
.pcard__variant.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 产品搜索 ---------- */
.search { max-width: 560px; margin: 0 auto; position: relative; }
.search__icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search__input { width: 100%; padding: 14px 18px 14px 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; }
.search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,106,13,.12); }
.search__input::placeholder { color: var(--faint); }
.filter-count { margin: 16px 0 26px !important; }

/* ---------- 产品详情页 ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pdp__media { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__info { padding-top: 8px; }
.pdp__colorName { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }
.pdp__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp__note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 28px; }
.spec-table th, .spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 14.5px; vertical-align: top; }
.spec-table th { width: 28%; color: var(--text-soft); font-weight: 600; background: var(--surface-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.card--link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.rel { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s; }
.rel img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; display: block; }
.rel span { display: block; padding: 12px 14px; font-weight: 600; font-size: 14.5px; }
.rel:hover { border-color: var(--accent); }
.app__more { margin-top: 14px; font-size: 14px; color: var(--muted); }
.app__more a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 工厂地图 ---------- */
.map-card { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: 36px; }
.map-card__frame { min-height: 360px; background: var(--surface-2); }
.map-card__frame img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.map-card__info { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.map-card__info h3 { font-size: 18px; margin-bottom: 10px; }
.map-card__info p { color: var(--text-soft); font-size: 14.5px; }
.map-card__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.map-card__note { margin-top: 16px; font-size: 12.5px; color: var(--faint); }
@media (max-width: 860px) { .map-card { grid-template-columns: 1fr; } .map-card__frame, .map-card__frame img { min-height: 280px; } }

/* ---------- 隐私政策 ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 18px; margin: 34px 0 10px; color: var(--text); }
.legal p { color: var(--text-soft); font-size: 15px; line-height: 1.9; }
.footer__bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 工厂视频 ---------- */
.video-card { max-width: 360px; margin: 36px auto 0; position: relative; border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.35)); }
.video-card__play span { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,.28); transition: transform .15s; }
.video-card__play svg { width: 30px; height: 30px; color: var(--accent); margin-left: 4px; }
.video-card__play:hover span { transform: scale(1.06); }
.video-card__cap { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- 视频双栏 ---------- */
.video-split { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; }
.video-points { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.video-points li { position: relative; padding-left: 26px; color: var(--text-soft); font-size: 15px; }
.video-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.video-split__media { text-align: center; }
.video-card { max-width: 360px; margin: 0 auto; position: relative; border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.35)); }
.video-card__play span { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,.28); transition: transform .15s; }
.video-card__play svg { width: 30px; height: 30px; color: var(--accent); margin-left: 4px; }
.video-card__play:hover span { transform: scale(1.06); }
.video-card__cap { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
@media (max-width: 860px) { .video-split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 首页视频弹窗 ---------- */
.hero-video-btn { position: absolute; left: 14px; top: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 99px; border: 0; background: rgba(255,255,255,.95); color: #1a1a1a; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.22); transition: transform .15s; }
.hero-video-btn:hover { transform: translateY(-1px); }
.hero-video-btn svg { width: 15px; height: 15px; color: var(--accent); }
.video-modal { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.86); display: none; align-items: center; justify-content: center; padding: 20px; }
.video-modal.open { display: flex; }
.video-modal__box { position: relative; height: min(88vh, 780px); aspect-ratio: 9 / 16; max-width: 94vw; background: #000; border-radius: 18px; overflow: hidden; }
.video-modal__player, .video-modal__box video { width: 100%; height: 100%; display: block; }
.video-modal__box video { object-fit: contain; background: #000; }
.video-modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- 交互细节 ---------- */
[id] { scroll-margin-top: 92px; }
.search { position: relative; }
.search .search__input { padding-right: 46px; }
.search__clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search__clear:hover { background: var(--line); color: var(--text); }
.pcard .pcard__media { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .factory-track, [data-reveal] { transition: none !important; animation: none !important; } }

/* ---------- 搜索推荐 ---------- */
.search-rec { margin-top: 20px; }
.search-rec p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.search-rec__list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.search-rec__list a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.search-rec__list a:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- 产品对比 ---------- */
.cmp-btn { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.94); color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); transition: all .15s; }
.cmp-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.cmp-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.compare-bar[hidden] { display: none !important; }
#productGrid { margin-top: 36px; }
.compare-bar { position: static; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--accent); border-radius: 16px; box-shadow: 0 10px 30px rgba(242,106,13,.10); }
.compare-bar__items { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-bar__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; background: var(--surface-2); border-radius: 99px; font-size: 13px; }
.compare-bar__chip button { border: 0; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; padding: 0 2px; }
.compare-bar__actions { display: flex; gap: 8px; margin-left: auto; }
.compare-bar__actions .btn { padding: 8px 16px; font-size: 13.5px; }
.compare-modal { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.compare-modal.open { display: flex; }
.compare-modal__box { position: relative; background: var(--surface); border-radius: 18px; padding: 26px; max-width: 920px; width: 100%; max-height: 86vh; overflow: auto; }
.compare-modal__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 20px; line-height: 1; cursor: pointer; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.compare-table thead th { font-size: 15px; }
.compare-table tbody th { color: var(--text-soft); font-weight: 600; width: 110px; }
@media (max-width: 640px) {
  .compare-modal__box { padding: 16px; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
  .compare-bar { gap: 10px; padding: 10px 12px; }
  .compare-bar__actions { margin-left: 0; width: 100%; }
  .compare-bar__actions .btn { flex: 1; }
}

/* ---------- 联系页二维码 ---------- */
.qr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px 12px; text-align: center; }
.qr-card img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; margin: 0 auto 8px; display: block; }
.qr-card b { display: block; font-size: 14px; margin-bottom: 2px; }
.qr-card span { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 420px) { .qr-pair { gap: 10px; } .qr-card { padding: 10px 6px; } }

/* 蜜罐字段（隐藏，仅机器人会填） */
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;opacity:0;}

/* 移动端：输入框 16px，避免 iOS 聚焦时自动放大 */
@media (max-width: 860px) {
  .field input, .field select, .field textarea, .search__input { font-size: 16px; }
  .cmp-btn { padding: 9px 15px; font-size: 13.5px; }
}
/* 轻提示 */
.xy-toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%) translateY(8px); background: rgba(20,20,20,.9); color: #fff; font-size: 13.5px; padding: 10px 18px; border-radius: 99px; z-index: 999; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.xy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 资质证书 ---------- */
.about__brand { margin-top: 10px; font-size: 14px; color: var(--accent-text); font-weight: 600; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); gap: 20px; margin-top: 36px; justify-content: center; }
.cert-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cert-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.cert-card img { width: 100%; height: auto; border-radius: 10px; display: block; background: #fff; }
.cert-card b { display: block; margin-top: 12px; font-size: 15px; }
.cert-card span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
