/* ============================================================
   Packlindra Design System v1.0
   Based on plan/02-品牌视觉与UI设计规范.md
   Tokens: navy #05132F / teal #0B9793 / gold #DD943A
   ============================================================ */

:root {
  /* Brand core */
  --navy-950: #030B1C;
  --navy-900: #05132F;
  --navy-800: #0A1E42;
  --navy-700: #122A57;
  --navy-600: #1B3A70;
  --teal-50: #E6F4F3;
  --teal-100: #C7E8E6;
  --teal-500: #0B9793;
  --teal-600: #09807D;
  --teal-700: #076764;
  --gold-50: #FBF1E6;
  --gold-100: #F5DDBE;
  --gold-500: #DD943A;
  --gold-600: #C67F2B;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #EEF1F5;
  --gray-200: #DDE2EA;
  --gray-300: #C2CAD6;
  --gray-400: #8E98A8;
  --gray-500: #64708A;
  --gray-600: #47536B;
  --gray-700: #2E3850;
  --gray-900: #101828;

  /* Semantic */
  --success: #1E9E6A;
  --warning: #DD943A;
  --error: #D64545;
  --info: #0B9793;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 40px; --s8: 48px;
  --s9: 64px; --s10: 80px; --s11: 96px; --s12: 120px;

  /* Radius & shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(5,19,47,.08), 0 1px 2px rgba(5,19,47,.04);
  --shadow-md: 0 8px 24px rgba(5,19,47,.08);
  --shadow-lg: 0 20px 48px rgba(5,19,47,.12);
  --shadow-focus: 0 0 0 3px rgba(11,151,147,.28);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  margin: 0;
  letter-spacing: -0.02em;
}
.display { font-size: 56px; line-height: 1.1; font-weight: 800; }
h2 { font-size: 40px; line-height: 1.15; font-weight: 800; }
h3 { font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
h5 { font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--s4); }
.lead { font-size: 18px; line-height: 1.6; color: var(--gray-600); }
.caption {
  font-size: 12px; line-height: 1.4; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600);
}
.text-muted { color: var(--gray-500); }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s6); }
.section { padding-block: var(--s11); }
.section-sm { padding-block: var(--s9); }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-teal { background: linear-gradient(135deg, var(--navy-900) 0%, var(--teal-700) 100%); color: var(--white); }
.section-teal h2, .section-teal h3 { color: var(--white); }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: var(--s10); }
.section-head h2 { margin-block: var(--s3) var(--s4); }
.section-head .lead { margin-bottom: 0; }
.section-head.left { margin-inline: 0; text-align: start; }
.grid { display: grid; gap: var(--s6); }
/* Prevent intrinsic-width children (SVG/img) from blowing out grid tracks on narrow screens */
.grid > *, .hero-grid > *, .split > *, .rfq-layout > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-600); color: var(--white); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-600); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.page-hero .btn-ghost, .section-navy .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.page-hero .btn-ghost:hover, .section-navy .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px) scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s6); }
.brand img { width: 176px; height: auto; }
.main-nav { display: flex; align-items: center; gap: var(--s7); list-style: none; margin: 0; padding: 0; }
.main-nav > li { position: relative; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--navy-900); transition: color .15s; }
.main-nav a:hover { color: var(--teal-600); }
.has-dropdown > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown {
  position: absolute; top: calc(100% + 18px); inset-inline-start: 0;
  min-width: 220px; background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: var(--s3);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--teal-50); color: var(--teal-700); }
.header-actions { display: flex; align-items: center; gap: var(--s4); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--navy-900); cursor: pointer;
}
.lang-btn:hover { border-color: var(--teal-500); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  width: 180px; background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: var(--s2);
  max-height: 340px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: 0; border-radius: var(--radius-sm); padding: 8px 10px;
  font-size: 13px; cursor: pointer; text-align: start; color: var(--gray-700);
}
.lang-menu button:hover { background: var(--teal-50); color: var(--teal-700); }
.lang-menu button.active { color: var(--teal-700); font-weight: 700; background: var(--teal-50); }
.lang-menu .code { font-size: 11px; color: var(--gray-400); font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); }
.hero::before {
  content: ''; position: absolute; inset-inline-end: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,151,147,.10) 0%, rgba(11,151,147,0) 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s10); align-items: center; padding-block: var(--s11) var(--s12); }
.hero-copy .caption { margin-bottom: var(--s4); }
.hero-copy .display { margin-bottom: var(--s5); max-width: 620px; }
.hero-copy .display .accent { color: var(--teal-600); }
.hero-copy .lead { max-width: 580px; margin-bottom: var(--s7); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s5); }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); font-size: 13px; color: var(--gray-500); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }
.hero-visual { position: relative; }
.hero-visual .frame {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--s6); border: 1px solid var(--gray-100);
}
.hero-visual img { width: 100%; max-width: 100%; height: auto; border-radius: var(--radius-md); }
.hero-badge {
  position: absolute; inset-inline-end: -14px; bottom: 28px;
  background: var(--navy-900); color: var(--white); border-radius: var(--radius-md);
  padding: var(--s4) var(--s5); box-shadow: var(--shadow-lg); max-width: 200px;
}
.hero-badge .big { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--gold-500); line-height: 1.1; }
.hero-badge .small { font-size: 12px; color: var(--gray-300); margin-top: 4px; display: block; line-height: 1.4; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-block: 1px solid var(--gray-100); }
.trustbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); padding-block: var(--s7); flex-wrap: wrap; }
.trustbar .intro { font-size: 13px; color: var(--gray-500); font-weight: 600; max-width: 180px; }
.metric { text-align: center; }
.metric .num { font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: var(--navy-900); line-height: 1; }
.metric .num .u { color: var(--teal-600); }
.metric .label { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
.cert-row { display: flex; gap: var(--s5); align-items: center; flex-wrap: wrap; }
.cert-chip { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--gray-400); border: 1px solid var(--gray-200); border-radius: var(--radius-pill); padding: 6px 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card-media { aspect-ratio: 4/3; background: var(--gray-50); display: grid; place-items: center; padding: var(--s6); overflow: hidden; }
.card-media svg { width: 100%; height: 100%; transition: transform .35s ease; }
.card-media img { width: calc(100% + 2 * var(--s6)); height: calc(100% + 2 * var(--s6)); margin: calc(-1 * var(--s6)); object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media svg, .card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: var(--s6); }
.card-body h4 { margin-bottom: var(--s2); }
.card-body p { font-size: 14px; color: var(--gray-500); margin-bottom: var(--s4); }
.card-link { font-size: 14px; font-weight: 700; color: var(--teal-700); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { gap: 10px; }

/* Feature / icon cards */
.feature { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: var(--s7); transition: .2s; }
.feature:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.feature .icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: rgba(11,151,147,.16); display: grid; place-items: center; margin-bottom: var(--s5); }
.feature .icon svg { width: 24px; height: 24px; stroke: var(--teal-500); }
.feature h4 { margin-bottom: var(--s2); }
.feature p { font-size: 14px; color: var(--gray-300); margin: 0; }
.feature-light { background: var(--white); border-color: var(--gray-100); }
.feature-light .icon { background: var(--teal-50); }
.feature-light h4 { color: var(--navy-900); }
.feature-light p { color: var(--gray-500); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); position: relative; }
.process-grid::before { content: ''; position: absolute; top: 30px; inset-inline-start: 8%; inset-inline-end: 8%; height: 1px; background: var(--teal-100); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 60px; height: 60px; margin: 0 auto var(--s5); border-radius: 50%;
  background: var(--navy-900); color: var(--white); display: grid; place-items: center;
  font-family: var(--font-heading); font-size: 20px; font-weight: 800;
  box-shadow: 0 0 0 6px var(--white);
}
.step:nth-child(even) .step-num { background: var(--teal-600); }
.step h4 { margin-bottom: var(--s2); font-size: 19px; }
.step p { font-size: 14px; color: var(--gray-500); margin: 0; }

/* ---------- Case/portfolio ---------- */
.filters { display: flex; justify-content: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s8); }
.filter-btn { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-pill); padding: 9px 20px; font-size: 14px; font-weight: 600; color: var(--gray-600); cursor: pointer; transition: .15s; }
.filter-btn:hover { border-color: var(--teal-500); color: var(--teal-700); }
.filter-btn.active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding-block: var(--s11); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  inset-inline-start: -140px; top: -180px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02);
}
.cta-band h2 { max-width: 720px; margin: 0 auto var(--s4); }
.cta-band p { max-width: 620px; margin: 0 auto var(--s7); color: rgba(255,255,255,.78); }
.cta-band .mail { font-size: 13px; color: rgba(255,255,255,.7); margin-top: var(--s5); }
.cta-band .mail a { color: var(--gold-500); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--gray-300); padding-top: var(--s10); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s8); padding-bottom: var(--s9); }
.footer-brand img { width: 180px; height: auto; filter: brightness(0) invert(1); margin-bottom: var(--s5); }
.footer-brand p { font-size: 14px; color: var(--gray-400); line-height: 1.7; }
.footer-col h5 { color: var(--white); font-size: 14px; margin-bottom: var(--s5); letter-spacing: .02em; }
.footer-col ul li { margin-bottom: var(--s3); }
.footer-col a { font-size: 14px; color: var(--gray-400); transition: color .15s; }
.footer-col a:hover { color: var(--teal-500); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: var(--s4); color: var(--gray-400); }
.footer-contact svg { width: 17px; height: 17px; flex: 0 0 auto; stroke: var(--teal-500); margin-top: 3px; }
.footer-contact a { color: var(--teal-500); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--s5); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 12px; color: var(--gray-500); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp floater ---------- */
.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 120;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
.wa-tooltip {
  position: absolute; inset-inline-end: 66px; white-space: nowrap;
  background: var(--navy-900); color: var(--white); font-size: 12px;
  padding: 8px 12px; border-radius: var(--radius-sm); opacity: 0; visibility: hidden; transition: .15s;
}
.wa-float:hover .wa-tooltip { opacity: 1; visibility: visible; }

/* ---------- RFQ form ---------- */
/* Quote page: widen the content area so the RFQ form can place more
   fields side by side instead of stacking them into a very long page. */
.quote-page main .container { max-width: 1560px; }
.rfq-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--s8); align-items: start; }
.rfq-aside .card { padding: var(--s5); }
/* Left rail stays fixed while the long form scrolls on the right. */
.rfq-aside {
  position: sticky; top: calc(var(--header-h) + 20px); align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
}
.rfq-aside h3 { font-size: 22px; margin-bottom: var(--s4); }
.rfq-aside ul li { display: flex; gap: 10px; font-size: 14px; color: var(--gray-600); margin-bottom: var(--s4); }
.rfq-aside ul li svg { width: 18px; height: 18px; stroke: var(--teal-600); flex: 0 0 auto; margin-top: 3px; }
.rfq-form-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--s7); }
.form-step-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s6); }
.form-step-head .badge { font-size: 12px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); border-radius: var(--radius-pill); padding: 4px 12px; }
.form-step-head h3 { margin: 0; font-size: 22px; }
.form-section { display: none; }
.form-section.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); background: var(--white); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: var(--shadow-focus); }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: 11px; color: var(--gray-400); }
.field.error input, .field.error select { border-color: var(--error); }
.field .err-msg { font-size: 12px; color: var(--error); display: none; }
.field.error .err-msg { display: block; }
.file-drop {
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius-md);
  padding: var(--s7); text-align: center; background: var(--gray-50); cursor: pointer; transition: .15s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--teal-500); background: var(--teal-50); }
.file-drop svg { width: 30px; height: 30px; stroke: var(--teal-600); margin: 0 auto var(--s3); }
.file-drop p { font-size: 14px; font-weight: 600; color: var(--navy-900); margin-bottom: 4px; }
.file-drop small { font-size: 11px; color: var(--gray-400); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gray-600); }
.consent input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--teal-600); margin-top: 2px; }
.consent a { color: var(--teal-700); text-decoration: underline; }
.form-nav { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--gray-100); }
.step-indicator { display: flex; gap: 6px; align-items: center; }
.step-indicator .dot { width: 26px; height: 4px; border-radius: 2px; background: var(--gray-200); transition: .2s; }
.step-indicator .dot.on { background: var(--teal-600); }
.form-success { text-align: center; padding: var(--s10) var(--s6); display: none; }
.form-success.show { display: block; animation: fadeIn .3s ease; }
.form-success .ok-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--teal-50); display: grid; place-items: center; margin: 0 auto var(--s5); }
.form-success .ok-icon svg { width: 34px; height: 34px; stroke: var(--teal-600); }
.form-success h3 { margin-bottom: var(--s4); }
.form-success p { color: var(--gray-500); max-width: 520px; margin-inline: auto; }

/* ---------- RFQ single-page groups ---------- */
.form-group { border: 0; padding: 0; margin: 0 0 var(--s7); }
.form-group:last-of-type { margin-bottom: var(--s7); }
.form-group legend {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--navy-900);
  padding: 0 0 var(--s4); margin-bottom: var(--s5); border-bottom: 1px solid var(--gray-100);
}
.group-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto;
  border-radius: 50%; background: var(--teal-50); color: var(--teal-700); font-size: 14px; font-weight: 800;
}
.group-note { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--gray-400); }
.hint-inline { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--gray-400); margin-inline-start: 4px; }

/* dimension length × width × height */
.dimension-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--s3); align-items: end; }
.dimension-row .field { min-width: 0; }
.dimension-x { align-self: end; padding-bottom: 13px; color: var(--gray-400); font-weight: 700; font-size: 18px; }

/* quantity presets + custom input */
.qty-options { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.qty-chip {
  border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-700);
  border-radius: var(--radius-pill); padding: 9px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .15s; font-family: var(--font-body);
}
.qty-chip:hover { border-color: var(--teal-500); color: var(--teal-700); }
.qty-chip.active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.qty-custom { position: relative; }
.qty-custom input { padding-inline-end: 52px !important; }
.qty-custom .unit {
  position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--gray-400); font-weight: 700; pointer-events: none;
}
.form-group .hint { display: block; margin-top: 6px; }
.form-group .err-msg { margin-top: 6px; }

/* multi-select option chips (printing / finishing) */
.option-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.opt-chip { position: relative; display: inline-flex; }
.opt-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill); background: var(--white); color: var(--gray-600);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; user-select: none;
}
.opt-chip span:hover { border-color: var(--teal-500); color: var(--teal-700); }
.opt-chip input:checked + span { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.opt-chip input:focus-visible + span { box-shadow: var(--shadow-focus); }

/* ---------- RFQ numbered configurator (reference: baoxiaohe quote flow) ---------- */
/* Single column: items 1-8 follow the actual top-to-bottom order. */
.spec-block { border: 1px solid var(--gray-100); border-radius: var(--radius-md); margin-bottom: var(--s5); overflow: hidden; }
.spec-head {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5);
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
}
.spec-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto;
  border-radius: 6px; background: var(--navy-900); color: #fff; font-size: 13px; font-weight: 800;
}
.spec-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy-900); }
.spec-head h4 .req { color: var(--gold-600); }
.spec-head .hint-inline { font-size: 12px; }
.spec-switch {
  margin-inline-start: auto; background: transparent; border: 1px solid var(--gray-300);
  color: var(--teal-700); font-size: 12px; font-weight: 700; padding: 6px 12px;
  border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-body); transition: .15s;
}
.spec-switch:hover { border-color: var(--teal-500); background: var(--teal-50); }
.spec-body { padding: var(--s4) var(--s5); }
.spec-body .form-grid { gap: var(--s5); }

/* Contact & address stack vertically after the configurator. */
.info-pair { margin-bottom: var(--s7); }
.info-pair .form-group { margin-bottom: var(--s7); }
.info-pair .form-group:last-of-type { margin-bottom: 0; }
.info-pair .form-group legend { font-size: 15px; padding-bottom: var(--s3); }
.info-pair .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* no-upload note & freight inline */
.no-upload-note {
  background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-700);
  border-radius: var(--radius-sm); padding: var(--s4) var(--s5); font-size: 13px; line-height: 1.6; margin-bottom: var(--s4);
}
.freight-inline { font-size: 13px; color: var(--gray-600); background: var(--gold-50); border: 1px solid var(--gold-100); border-radius: var(--radius-sm); padding: var(--s4) var(--s5); }
.freight-inline span { color: var(--gold-600); font-weight: 600; }

/* configurator status card (sticky aside) */
.config-status-card { margin-bottom: var(--s5); }
.config-preview { background: var(--gray-50); border-radius: var(--radius-md); padding: var(--s6); text-align: center; margin-bottom: var(--s5); }
.config-preview img { width: 100%; height: 120px; object-fit: contain; display: block; }
.config-preview-name { margin-top: var(--s3); font-size: 13px; font-weight: 700; color: var(--navy-900); }
.config-status-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--navy-900); margin-bottom: var(--s3); }
.config-status-head span { color: var(--gold-600); font-weight: 700; }
.config-status ul { list-style: none; padding: 0; margin: 0; }
.config-status ul li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); padding: 5px 0; }
.config-status ul li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); flex: 0 0 auto; }
.config-status ul li.done { text-decoration: line-through; color: var(--gray-400); }
.config-status ul li.done::before { background: var(--success); }
.config-ready { display: none; font-size: 13px; font-weight: 700; color: var(--success); margin: var(--s3) 0 0; }
.config-ready.show { display: block; }
.config-freight { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-500); }
.config-freight.ok { color: var(--success); font-weight: 700; }
@media (max-width: 1024px) {
  .config-status-card { display: none; }
}

/* ---------- material tabs + spec cards (reference: baoxiaohe material picker) ---------- */
.mat-tabs {
  display: inline-flex; gap: 4px; background: var(--gray-100);
  border-radius: var(--radius-md); padding: 4px; margin-bottom: var(--s5);
}
.mat-tab {
  border: 0; background: transparent; padding: 10px 22px; border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--gray-600);
  cursor: pointer; transition: .15s;
}
.mat-tab:hover { color: var(--navy-900); }
.mat-tab.active { background: var(--white); color: var(--navy-900); font-weight: 700; box-shadow: var(--shadow-sm); }
.mat-tabs.mat-error { outline: 2px solid var(--error); outline-offset: 3px; border-radius: var(--radius-md); }
.mat-tabs.mat-error .mat-tab.active { color: var(--error); }
.mat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.mat-card {
  display: flex; align-items: center; gap: 10px; text-align: start;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--white); padding: 14px 16px; cursor: pointer; transition: .15s;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--gray-700);
}
.mat-card:hover { border-color: var(--gold-500); }
.mat-card .mat-ico { width: 17px; height: 17px; stroke: var(--gray-400); flex: 0 0 auto; }
.mat-card span { flex: 1 1 auto; min-width: 0; }
.mat-card .mat-check { width: 18px; height: 18px; stroke: var(--gold-600); flex: 0 0 auto; display: none; }
.mat-card.selected {
  border-color: var(--gold-500); background: var(--gold-50); color: var(--navy-900);
}
.mat-card.selected .mat-ico { stroke: var(--gold-600); }
.mat-card.selected .mat-check { display: block; }
.mat-card-slim { width: 100%; max-width: 420px; }
.mat-unsure { margin-top: var(--s3); }
[dir="rtl"] .mat-card { text-align: start; }
@media (max-width: 860px) {
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-tab { padding: 9px 14px; }
}
@media (max-width: 560px) {
  .mat-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  background: transparent; border: 0; padding: var(--s5) 0; cursor: pointer;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--navy-900); text-align: start;
}
.faq-q .plus { font-size: 22px; color: var(--teal-600); flex: 0 0 auto; transition: transform .2s; font-weight: 400; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 var(--s5); color: var(--gray-600); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-700) 100%); color: var(--white); padding-block: var(--s10); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset-inline-end: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(11,151,147,.25), transparent 70%); }
.page-hero .caption { color: var(--gold-500); }
.page-hero h1 { color: var(--white); font-size: 44px; margin-block: var(--s3) var(--s4); max-width: 700px; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 640px; font-size: 17px; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--gray-300); margin-bottom: var(--s5); }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb span { margin-inline: 8px; opacity: .5; }

/* Two-column content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s10); align-items: center; }
.split .visual-box { background: var(--gray-50); border-radius: var(--radius-lg); padding: var(--s8); display: grid; place-items: center; }
.split .visual-box svg { width: 100%; max-width: 440px; }
.split .visual-box img { width: 100%; height: auto; border-radius: var(--radius-md); }
.split h2 { margin-bottom: var(--s5); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: var(--s3) 0; border-bottom: 1px solid var(--gray-100); }
.spec-table td:first-child { font-weight: 700; color: var(--navy-900); width: 32%; }
.spec-table td:last-child { color: var(--gray-600); }

/* Note banner */
.note-banner { background: var(--gold-50); border: 1px solid var(--gold-100); border-radius: var(--radius-md); padding: var(--s5) var(--s6); font-size: 13px; color: var(--gold-600); display: flex; gap: var(--s3); align-items: flex-start; line-height: 1.6; }
.note-banner svg { width: 18px; height: 18px; stroke: var(--gold-600); flex: 0 0 auto; margin-top: 2px; }
.note-banner strong { color: var(--navy-900); }

/* ---------- RTL support (logical properties already used throughout) ---------- */
[dir="rtl"] .display, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .footer-col a:hover { padding-inline-start: 4px; }
[dir="rtl"] .step-num { direction: ltr; }
[dir="rtl"] .nums, [dir="rtl"] input, [dir="rtl"] .code { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .lang-menu { inset-inline-end: auto; inset-inline-start: 0; }
[dir="rtl"] .dropdown { inset-inline-start: auto; inset-inline-end: 0; }
[dir="rtl"] .has-dropdown > a::after { transform: rotate(-45deg) translateY(-2px); }

/* ---------- Factory page (P0) ---------- */
.factory-metrics { margin-bottom: var(--s6); }
.fmetric {
  text-align: center; padding: var(--s6) var(--s4);
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
}
.fmetric strong {
  display: block; font-family: var(--font-heading); font-size: 28px;
  font-weight: 800; color: var(--teal-600); line-height: 1.1;
}
.fmetric span { display: block; margin-top: 8px; font-size: 13px; color: var(--gray-500); }
.section-navy .fmetric { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-navy .fmetric strong { color: var(--gold-500); }
.section-navy .fmetric span { color: var(--gray-300); }
.factory-strip { margin-top: var(--s5); }

.cap-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.cap-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
.cap-table th { background: var(--navy-900); color: var(--white); text-align: start; padding: 14px 16px; font-size: 13px; letter-spacing: .02em; }
.cap-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; color: var(--gray-600); }
.cap-table td:first-child { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.cap-table tr:nth-child(even) td { background: var(--gray-50); }

.qc-step { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: var(--s6); }
.qc-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--teal-50); color: var(--teal-700); font-weight: 800; font-size: 14px; margin-bottom: var(--s4); }
.qc-step h4 { font-size: 17px; margin-bottom: var(--s2); }
.qc-step p { margin: 0; font-size: 14px; color: var(--gray-500); }

.cert-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: var(--s6); text-align: center; }
.cert-card strong { display: block; font-family: var(--font-heading); font-size: 20px; color: var(--navy-900); }
.cert-card p { margin: 8px 0 0; font-size: 13px; color: var(--gray-500); }
.factory-note { margin-top: var(--s5); font-size: 13px; color: var(--gray-500); text-align: center; }

.factory-faq details { border: 1px solid var(--gray-100); border-radius: var(--radius-md); margin-bottom: var(--s3); background: var(--white); }
.factory-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy-900); list-style: none; }
.factory-faq summary::-webkit-details-marker { display: none; }
.factory-faq summary::after { content: '+'; float: right; color: var(--teal-600); font-size: 18px; }
.factory-faq details[open] summary::after { content: '\2013'; }
.factory-faq .faq-a { padding: 0 20px 16px; font-size: 14px; color: var(--gray-600); }
[dir="rtl"] .factory-faq summary::after { float: left; }

@media (max-width: 860px) {
  .factory-metrics { gap: var(--s4); }
  .fmetric strong { font-size: 24px; }
  .cap-table { font-size: 13px; }
  .cap-table th, .cap-table td { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .fmetric { padding: var(--s5) var(--s3); }
  .factory-strip { gap: var(--s4); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .display { font-size: 44px; }
  h2 { font-size: 32px; }
  .main-nav { gap: var(--s5); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: var(--s7); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .rfq-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-pair .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s4) var(--s6) var(--s6); border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md); max-height: 0; overflow: hidden; visibility: hidden; transition: .25s;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; padding-block: var(--s4); }
  .main-nav > li { border-bottom: 1px solid var(--gray-50); }
  .main-nav a { display: block; padding: 13px 0; font-size: 15px; }
  .dropdown { position: static; box-shadow: none; border: 0; padding-inline-start: var(--s4); opacity: 1; visibility: visible; transform: none; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .header-actions .btn { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-badge { inset-inline-end: 10px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s8) var(--s5); }
  .process-grid::before { display: none; }
  .trustbar-inner { justify-content: center; }
  .trustbar .intro { max-width: 100%; width: 100%; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .info-pair .form-grid { grid-template-columns: 1fr; }
  .rfq-layout { grid-template-columns: 1fr; }
  .rfq-aside { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 560px) {
  .display { font-size: 34px; }
  h2 { font-size: 26px; }
  .section { padding-block: var(--s9); }
  .section-head { margin-bottom: var(--s8); }
  .container { padding-inline: var(--s5); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand img { width: 140px; }
  .hero-cta .btn { width: 100%; }
  .rfq-form-card { padding: var(--s6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .metric .num { font-size: 24px; }
  .page-hero h1 { font-size: 32px; }
  .form-nav .btn { padding: 13px 18px; font-size: 14px; }
}

/* Print */
@media print {
  .site-header, .wa-float, .lang-switch, .menu-toggle, .cta-band { display: none !important; }
}

/* ---- Legal documents (Privacy Policy / Terms of Use) ---- */
.legal-doc { color: var(--gray-700); font-size: 15.5px; line-height: 1.85; }
.legal-doc > p:first-child { font-size: 17px; color: var(--navy-900); }
.legal-doc h3 {
  font-family: var(--font-heading); font-size: 20px; color: var(--navy-900);
  margin: var(--s8) 0 var(--s4); padding-bottom: var(--s3);
  border-bottom: 1px solid var(--gray-200);
}
.legal-doc p { margin: 0 0 var(--s5); }
.legal-doc a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--gold-600); }
/* Legal copy stays English: force LTR so punctuation is not bidi-reordered
   when the page direction is rtl (Arabic). */
[dir="rtl"] .legal-doc { direction: ltr; text-align: left; }

/* ---- RFQ static delivery ---- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn.is-sending { opacity: .65; cursor: progress; }
