/* ============================================================
   YX-Board 独立站 · 全局样式
   暖色系统：品牌绿 #009944 · 暖沙 #FBFAF5 · 暖棕深 #0E0A06
   字体：Archivo(标题) · Manrope(正文) · JetBrains Mono(标签)
   ============================================================ */

:root {
  --green:        #009944;
  --green-deep:   #007a37;
  --green-bright: #6fd99b;
  --sand:         #fbfaf5;
  --sand-2:       #f4f1e8;
  --card:         #f2ebdf;
  --dark:         #0e0a06;
  --dark-2:       #17120c;
  --ink:          #131a16;
  --tan:          #6e655a;
  --gray:         #9a8f80;
  --white:        #ffffff;

  --green-rgb: 0, 153, 68;
  --dark-rgb: 14, 10, 6;

  --font-head: "Archivo", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(14, 10, 6, 0.10);
  --shadow-sm: 0 8px 24px rgba(14, 10, 6, 0.08);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); }
.h-display { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.015em; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow.on-dark { color: var(--green-bright); }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--tan); max-width: 60ch; }
.on-dark .lead, .section--dark .lead { color: rgba(255,255,255,0.72); }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--gray); }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--darker { background: var(--dark-2); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head .h2 { margin-bottom: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--green-rgb), .28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(19,26,22,.16); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { background: var(--white); color: var(--dark); }
.btn--on-dark:hover { background: var(--green-bright); transform: translateY(-1px); }
.btn--outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--outline-dark:hover { background: rgba(255,255,255,.08); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251,250,245,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(19,26,22,.07);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.brand__badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a { font-size: 15px; font-weight: 500; color: #3a403a; position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--green); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--green); border-radius: 2px;
}
.header__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* 语言切换 */
.lang-switch { display: flex; align-items: center; gap: 2px; background: rgba(19,26,22,.05); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; color: var(--gray);
  transition: background .15s, color .15s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(14,10,6,.90) 0%, rgba(14,10,6,.66) 42%, rgba(20,58,38,.42) 100%),
    linear-gradient(115deg, #0e0a06 0%, #17120c 50%, #0b3a24 100%);
  color: #fff;
  min-height: min(620px, 86vh);
  display: flex; align-items: center;
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%; z-index: 0; opacity: .95;
  /* 真实工厂图：hero-factory.jpg / products-hero.jpg / about-hero.jpg / contact-hero.jpg 放站点根目录即自动显示 */
}
.hero::after { /* 渐变压暗，保证文字可读 */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(14,10,6,.86) 0%, rgba(14,10,6,.42) 48%, rgba(14,10,6,.05) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 72px; }
.hero__left { min-width: 0; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(var(--green-rgb), .15); color: var(--green-bright);
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 20px; }
.hero__sub { color: rgba(255,255,255,.78); font-size: 18px; max-width: 54ch; margin-bottom: 28px; }
.hero__stats { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.66); }
.hero__stats span { white-space: nowrap; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Hero 右侧媒体占位（放真实工厂图到 assets/img/hero-side.jpg） */
.hero__media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.55); font-family: var(--font-mono); font-size: 12px;
  padding: 18px; line-height: 1.7; letter-spacing: .04em;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
}

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

.card {
  background: #fff; border: 1px solid rgba(19,26,22,.07);
  border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(var(--green-rgb), .3); }
.card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); }
.card--dark:hover { border-color: rgba(var(--green-rgb), .5); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.card__eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--tan); font-size: 15px; }
.card--dark p { color: rgba(255,255,255,.7); }
.card__meta { margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--gray); }
.card--dark .card__meta { color: rgba(255,255,255,.55); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--green); }
.card--dark .card__link { color: var(--green-bright); }
.card__link:hover { gap: 10px; }

/* ---------- 钢板饰面工艺 Surface Finishes ---------- */
.finish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; margin-top: 34px; }
.finish-card { position: relative; }
.finish-card__swatch {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); border: 1px solid rgba(19, 26, 22, .10);
  background: #e7e3d9;
}
.finish-card__swatch img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.finish-card:hover .finish-card__swatch img { transform: scale(1.045); }
.finish-card__idx {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: #fff; background: rgba(14, 10, 6, .52);
  padding: 2px 7px; border-radius: 3px;
}
.finish-card__meta { padding: 13px 2px 0; }
.finish-card__type {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 15px; letter-spacing: .01em; color: var(--ink);
}
.finish-card__name {
  display: block; font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
  letter-spacing: .04em; color: var(--tan); margin-top: 5px; text-transform: uppercase;
}
.finish-note { text-align: center; color: var(--gray); font-size: 13px; margin-top: 26px; font-family: var(--font-mono); }
@media (max-width: 840px) {
  .finish-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .finish-card__type { font-size: 14px; }
}

/* ---------- 色彩图册 Colour Library ---------- */
.section-head--split {
  max-width: none; margin-bottom: 30px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.section-head--split .lead { margin-bottom: 0; }
.section-head--split .btn { flex-shrink: 0; }

.cat-stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px);
  margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(19, 26, 22, .10);
}
.cat-stat strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(21px, 2.5vw, 29px); letter-spacing: -.01em; color: var(--ink); line-height: 1.1;
}
.cat-stat span {
  display: block; font-family: var(--font-mono); font-size: 12px;
  color: var(--tan); margin-top: 6px; letter-spacing: .03em;
}

.sw-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.sw-filters { display: flex; flex-direction: column; gap: 12px; }
.sw-filter__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw-filter__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray);
  margin-inline-end: 6px; min-width: 60px;
}
.sw-chip {
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid rgba(19, 26, 22, .14); border-radius: 999px;
  padding: 6px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sw-chip:hover { border-color: var(--ink); }
.sw-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.sw-chip.is-disabled { opacity: .38; cursor: not-allowed; }
.sw-chip.is-disabled:hover { border-color: rgba(19, 26, 22, .14); }
.sw-chip__n { font-family: var(--font-mono); font-size: 11px; opacity: .62; }
.sw-count { font-family: var(--font-mono); font-size: 13px; color: var(--tan); white-space: nowrap; }

.sw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; }
.sw-card { display: block; text-decoration: none; }
.sw-card__chip {
  display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 10px; border: 1px solid rgba(19, 26, 22, .12); background: #efece5;
}
.sw-card__chip img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.sw-card:hover .sw-card__chip img { transform: scale(1.05); }
.sw-card__chip::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--green); opacity: 0; transition: opacity .18s ease;
}
.sw-card:hover .sw-card__chip::after { opacity: 1; }
.sw-card__meta { display: block; padding-top: 10px; }
.sw-card__art { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--green-deep); }
.sw-card__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); margin-top: 3px; }
.sw-card__fin { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); margin-top: 3px; }
.sw-empty { grid-column: 1 / -1; text-align: center; color: var(--tan); font-family: var(--font-mono); font-size: 14px; padding: 40px 0; }

.colour-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sw-card--sm .sw-card__meta { padding-top: 9px; }
.sw-card--sm .sw-card__name { font-size: 13px; }
.sw-card--sm .sw-card__fin { display: none; }

@media (max-width: 1024px) { .sw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 840px) {
  .sw-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .sw-filter__label { min-width: 100%; margin-inline-end: 0; }
  .colour-strip__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 首页 Products 预览（应用场景 chips） ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; background: var(--card); color: var(--ink); }

/* ---------- 首页 Advantages / 数字 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.stat { }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); color: var(--green-bright); }
.stat__label { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 4px; }

/* ---------- 首页 Markets 地区 ---------- */
.region { background: #fff; border: 1px solid rgba(19,26,22,.07); border-radius: var(--radius); padding: 28px; }
.region h3 { font-size: 20px; margin-bottom: 8px; }
.region p { color: var(--tan); font-size: 14.5px; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; background: linear-gradient(120deg, #0e0a06, #143a26); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 5vw, 64px); overflow: hidden; }
.final-cta h2 { color: #fff; margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,.74); max-width: 52ch; }
.final-cta__note { color: var(--green-bright); font-weight: 600; margin-top: 14px; }
.final-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 60px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer__col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase; font-family: var(--font-head); }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,.66); font-size: 14.5px; margin-bottom: 10px; }
.footer__col a:hover { color: var(--green-bright); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: 13px; color: var(--gray); margin-bottom: 18px; letter-spacing: .03em; }

/* ---------- Products 页：数据条 ---------- */
.statbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0; }
.statbar__item { background: var(--card); border-radius: var(--radius); padding: 22px 26px; }
.statbar__num { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--green); }
.statbar__label { color: var(--tan); font-size: 14px; margin-top: 2px; }

/* 饰面对比 */
.surface { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.surface__card { background: #fff; border: 1px solid rgba(19,26,22,.07); border-radius: var(--radius-lg); padding: 32px; }
.surface__card h3 { font-size: 22px; margin-bottom: 10px; }
.surface__card p { color: var(--tan); margin-bottom: 16px; }
.surface__spec { font-family: var(--font-mono); font-size: 13px; color: var(--gray); border-top: 1px dashed rgba(19,26,22,.14); padding-top: 14px; }

/* 花色板 */
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.swatch { border-radius: 12px; overflow: hidden; border: 1px solid rgba(19,26,22,.08); }
.swatch__color { height: 88px; }
.swatch__name { font-size: 12px; padding: 8px 10px; background: #fff; color: var(--tan); }

/* ---------- About 页 ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-story__media { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: linear-gradient(135deg, #143a26, #0e0a06); border: 1px solid rgba(255,255,255,.12); }
.about-story__media img { width:100%; height:100%; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.about-stats .stat__num { color: var(--green); }

.process-step { background: #fff; border: 1px solid rgba(19,26,22,.07); border-radius: var(--radius); padding: 26px; }
.process-step__num { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--green); margin-bottom: 12px; }
.process-step h3 { font-size: 18px; margin-bottom: 8px; }
.process-step p { color: var(--tan); font-size: 14.5px; }

/* ---------- Contact 页 ---------- */
.contact-body { display: grid; grid-template-columns: 1.3fr .9fr; gap: 36px; align-items: start; }
.form-card { }
.form-card h2 { font-size: 24px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid rgba(19,26,22,.14); border-radius: 12px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--green-rgb), .14); }
.field textarea { min-height: 120px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 22px; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }
.check-row label { font-size: 14.5px; color: var(--tan); font-weight: 400; }

.info-card { background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: 34px; }
.info-card h3 { color: #fff; font-size: 22px; margin-bottom: 22px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.info-row:last-of-type { border-bottom: 0; }
.info-row__icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(var(--green-rgb), .18); color: var(--green-bright); display: grid; place-items: center; font-size: 18px; }
.info-row__k { font-size: 12.5px; color: rgba(255,255,255,.55); font-family: var(--font-mono); }
.info-row__v { font-size: 15.5px; color: #fff; font-weight: 600; }
.info-card__note { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.62); }

/* 表单提交反馈 */
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(var(--green-rgb), .12); color: var(--green-deep); border: 1px solid rgba(var(--green-rgb), .3); }

/* ---------- WhatsApp 悬浮 ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37,211,102,.5); }
.wa-float svg { width: 22px; height: 22px; }

/* ============================================================
   阿拉伯语 RTL & 字距
   ============================================================ */
html[dir="rtl"] body { direction: rtl; }
html[lang="ar"] body { letter-spacing: 0.02em; }
html[lang="ar"] .h-display,
html[lang="ar"] .h1,
html[lang="ar"] .h2,
html[lang="ar"] .h3 { letter-spacing: 0; }
html[dir="rtl"] .nav a.is-active::after { left: auto; right: 0; }
html[dir="rtl"] .hero__inner,
html[dir="rtl"] .about-story,
html[dir="rtl"] .contact-body { direction: rtl; }
html[dir="rtl"] .info-row { flex-direction: row-reverse; }
html[dir="rtl"] .breadcrumb { direction: rtl; }
html[dir="rtl"] .wa-float { right: auto; left: 22px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header__inner { gap: 12px; }
  .header__right { gap: 8px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 5px 7px; font-size: 11.5px; }
  .grid--2, .grid--3, .grid--4, .surface, .about-story, .contact-body, .statbar { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
  /* 移动端允许 hero 数据行换行，否则撑破视口造成横向滚动 */
  .hero__stats { gap: 8px 16px; font-size: 12px; }
  .hero__stats span { white-space: normal; }
}
@media (max-width: 520px) {
  /* 窄屏顶栏让位给语言切换：正文里已有多个 Get a Quote 入口 */
  .header__right > .btn { display: none; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .hero__sub { font-size: 16px; }
  /* WhatsApp 收成圆形图标，避免挡住表单提交按钮 */
  .wa-float { padding: 13px; gap: 0; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  .wa-float svg { width: 24px; height: 24px; }
  html[dir="rtl"] .wa-float { right: auto; left: 14px; }
}
