/* ==========================================================================
   OULU Industry & Trade — 单页站样式
   设计取向：目录式（catalogue）。所有产品图都是白底抠图，所以图片容器一律纯白，
   让抠图与容器同色、看不出边界 —— 这是「33 张杂图看起来整齐」的关键。
   刻意不做：大面积深色 hero、玻璃拟态、多层阴影、装饰性渐变。
   ========================================================================== */

:root {
  --ink:        #15171c;
  --ink-soft:   #3d434d;
  --muted:      #6d7480;
  --line:       #e4e6ea;
  --line-soft:  #eef0f3;
  --surface:    #ffffff;
  --paper:      #f6f6f4;
  --accent:     #b7202e;
  --accent-dk:  #96121f;
  --dark:       #14161a;

  --wrap: 1140px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 18px;

  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.35rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  --fs-h3: 1.0625rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.015em; font-weight: 650; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: .5625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .9375rem; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff !important;
  font-weight: 600; font-size: .875rem !important;
}
.nav-cta:hover { background: var(--accent); }

.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 17px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--surface); padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 64px); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.eyebrow {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.028em; }
.lede {
  margin-top: 20px; font-size: 1.0625rem; color: var(--ink-soft);
  max-width: 44ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: .18s;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dk); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.chips { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.chips li {
  font-size: var(--fs-sm); color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.chips li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.hero-media {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.hero-media { overflow: hidden; }
/* 首屏换成车场实景，照片铺满容器（原来放抠图时才需要内边距+限高） */
.hero-media img { width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------------- bands */
.band { padding: clamp(52px, 7vw, 92px) 0; }
.band-alt { background: var(--paper); }
.band-dark { background: var(--dark); color: #e9eaec; }
.band-dark h2 { color: #fff; }
.band-dark a { color: #f3f4f6; }

.sec-head { max-width: 60ch; margin-bottom: clamp(30px, 4vw, 46px); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { margin-top: 14px; color: var(--muted); }
.band-dark .sec-head p { color: #a5abb5; }

/* -------------------------------------------------------------- products */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .18s, transform .18s;
}
.card:hover { border-color: #c9cdd4; transform: translateY(-2px); }
.card-media {
  background: #fff; border-bottom: 1px solid var(--line-soft);
  height: 210px; padding: 10px; overflow: hidden;
  /* ★ 用 flex 而不是 grid + place-items:center：
     grid 下容器高度是 auto 轨道，img 的 height:100% 解析不了，
     竖图（如 866x900 的牵引车正面）会按自身比例撑出去，盖住下面的标题。
     flex + max-height:100% 才能真正把图限制在框内。 */
  display: flex; align-items: center; justify-content: center;
}
.card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: var(--fs-h3); }
.card-body p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------- also in yard */
.also { margin-top: clamp(38px, 5vw, 58px); }
.also-title {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 16px;
}
.thumbs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  /* 2026-10-27：缩略图从 6 张增到 8 张（补叉车、水泥搅拌车），
     6 列会挤成一长条，4 列正好两行且每张还能看清车。 */
}
.thumbs figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden;
}
.thumbs img { width: 100%; height: 96px; object-fit: contain; background: #fff; padding: 8px; }
.thumbs figcaption {
  padding: 8px 10px 10px; font-size: .75rem; color: var(--muted);
  border-top: 1px solid var(--line-soft); text-align: center;
}
.also-foot { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }

/* ------------------------------------------------- 电力与工业设备（规格式） */
/* ★ 刻意不用图片卡：电力设备买家看的是 kVA / 电压 / 频率，不是外观图；
   而且用规格表就不依赖新图片，有图也不影响结构。 */
.power {
  margin-top: clamp(44px, 6vw, 70px);
  padding-top: clamp(32px, 4vw, 46px);
  border-top: 1px solid var(--line);
}
.power-head { max-width: 62ch; margin-bottom: clamp(26px, 3vw, 36px); }
.power-head h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); }
.power-head p { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.power-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.pwr { border-top: 2px solid var(--ink); padding-top: 16px; }
.pwr-no { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.pwr h4 { margin-top: 8px; font-size: 1rem; }
.pwr p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.power-foot {
  margin-top: 22px; font-size: var(--fs-sm); color: var(--muted);
  padding-top: 14px; border-top: 1px dashed var(--line);
}

/* ---------------------------------------------------------- two-column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.two-media img { width: 100%; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.cap { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.two-copy h2 { font-size: var(--fs-h2); }
.two-copy > p { margin-top: 16px; color: var(--ink-soft); }

.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: .9375rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 7px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* -------------------------------------------------------------- shipping */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.mini {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 28px;
}
.mini-num {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px;
}
.mini h3 { font-size: 1.1875rem; }
.mini p { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------- markets */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 34px); }
.mkt h3 {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); font-weight: 700;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.mkt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mkt li { font-size: .9375rem; color: var(--ink-soft); }
.mkt-foot { margin-top: 28px; font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------- process */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px);
  counter-reset: step;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-num { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.steps h3 { font-size: 1.0625rem; margin-top: 10px; }
.steps p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }

/* ------------------------------------------------------------ 图片组通用 */
.shot-strip, .ship-photos, .pwr-photos { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.shot-strip { grid-template-columns: repeat(3, 1fr); }
.ship-photos { grid-template-columns: 1.45fr 1fr; }
.pwr-photos { grid-template-columns: repeat(4, 1fr); margin-bottom: clamp(26px, 3vw, 38px); }

.shot-strip figure, .ship-photos figure, .pwr-photos figure, .photo-band { margin: 0; }
.shot-strip img, .ship-photos img, .pwr-photos img {
  width: 100%; border-radius: var(--r-sm); background: #fff;
  border: 1px solid var(--line); display: block;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.ship-photos img { height: clamp(220px, 26vw, 330px); object-fit: cover; }
.shot-strip figcaption, .ship-photos figcaption, .pwr-photos figcaption {
  margin-top: 9px; font-size: .75rem; color: var(--muted); line-height: 1.5;
}

/* 车况要点改成一行四点（原来是左文右图） */
.ticks-row {
  grid-template-columns: repeat(4, 1fr); gap: 10px 24px;
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}

/* 全宽实景条 */
.photo-band { position: relative; }
.photo-band img {
  width: 100%; height: clamp(220px, 34vw, 420px);
  object-fit: cover; display: block;
}
.photo-band figcaption {
  position: absolute; inset: auto 0 0 0;
  padding-bottom: clamp(18px, 3vw, 30px);
  background: linear-gradient(to top,
              rgba(9,10,12,.94) 0%, rgba(9,10,12,.72) 34%, rgba(9,10,12,0) 100%);
  color: #fff;
}
.photo-band figcaption .wrap { display: grid; gap: 5px; }
.photo-band strong, .photo-band span { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.photo-band strong { font-size: clamp(.95rem, .8rem + .5vw, 1.15rem); font-weight: 650; letter-spacing: .01em; }
.photo-band span { font-size: var(--fs-sm); color: #c9ced6; max-width: 56ch; }

/* --------------------------------------------------------------- contact */
.contact-grid { align-items: start; }
.lede-sm { margin-top: 14px; color: #b9bec7; max-width: 40ch; }
.contact-list { margin: 30px 0 0; display: grid; gap: 16px; }
.contact-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.contact-list dt {
  font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase;
  color: #8b929d; font-weight: 700; padding-top: 2px;
}
.contact-list dd { margin: 0; font-size: .9375rem; }

.form {
  background: #1c1f25; border: 1px solid #2b2f37; border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .75rem; letter-spacing: .06em; color: #a9afb9; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .9375rem; color: #fff;
  background: #14161a; border: 1px solid #333842; border-radius: var(--r-sm);
  padding: 11px 13px; transition: border-color .16s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, #8b929d 50%),
  linear-gradient(135deg, #8b929d 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.form-note { font-size: .8125rem; color: #8b929d; }
.form-note a { color: #d5d9df; text-decoration: underline; text-underline-offset: 2px; }
.privacy { grid-column: 1 / -1; font-size: .75rem; color: #767d88; border-top: 1px solid #2b2f37; padding-top: 12px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--dark); color: #b3b8c1; border-top: 1px solid #23262d; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.brand-foot { color: #fff; font-size: 1rem; letter-spacing: .04em; }
.brand-foot b { font-weight: 750; letter-spacing: .07em; }
.foot-note { margin-top: 10px; font-size: var(--fs-sm); color: #8b929d; max-width: 30ch; }
.site-foot h4 {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 14px; font-weight: 700;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot li { font-size: var(--fs-sm); }
.foot-bottom {
  margin-top: 46px; border-top: 1px solid #23262d;
  padding-top: 18px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.foot-bottom p { font-size: .75rem; color: #767d88; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
  .nav { gap: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .markets { grid-template-columns: repeat(2, 1fr); }
  .power-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-strip, .pwr-photos { grid-template-columns: repeat(2, 1fr); }
  .ship-photos { grid-template-columns: 1fr; }
  .ticks-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .wrap { padding-inline: 18px; }
  .burger { display: inline-flex; }
  .nav {
    position: absolute; inset: 66px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 18px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line-soft); }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 12px; text-align: center; border-radius: 10px; }
  .cards { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .three, .markets, .steps, .power-grid,
  .shot-strip, .pwr-photos, .ticks-row { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { letter-spacing: -0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============ 语言切换 + RTL ============ */

/* ---------------------------------------------- 右上角语言切换 */
.lang {
  position: relative;
  margin-inline-start: 8px;
  flex: 0 0 auto;
}
.lang > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
  user-select: none;
  transition: border-color .15s, color .15s;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover,
.lang[open] > summary { border-color: var(--ink); color: var(--ink); }
.lang-globe { display: inline-flex; color: var(--muted); }
.lang[open] .lang-globe { color: var(--accent); }
.lang-cur { min-width: 1.5em; text-align: center; }
.lang-caret { color: var(--muted); transition: transform .18s; }
.lang[open] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(12, 14, 18, .15);
}
.lang-menu li { margin: 0; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: .875rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.lang-menu button:hover { background: var(--paper); color: var(--ink); }
.lang-menu button[aria-current="true"] { color: var(--accent); font-weight: 650; }
.lang-menu button[aria-current="true"]::after {
  content: "✓";
  float: inline-end;
  font-size: .8125rem;
}

/* 移动端：导航折叠后，语言按钮自己顶到右侧 */
@media (max-width: 767px) {
  .lang { margin-inline-start: auto; }
  .lang > summary { padding: 6px 9px; }
  .lang-menu { min-width: 160px; }
}

/* ---------------------------------------------- RTL 整页镜像 */
/* 页面里只有 4 处是物理方向属性，其余都靠布局自然镜像。
   这里逐处对调，避免出现「文字从右往左但图标仍在左边」的错位。 */
html[dir="rtl"] .skip { left: auto; right: -9999px; }
html[dir="rtl"] .skip:focus { right: 16px; }
html[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .burger { margin-left: 0; margin-right: auto; }

html[dir="rtl"] .ticks li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .ticks li::before {
  left: auto;
  right: 0;
  border-left: 0;
  border-right: 2px solid var(--accent);
  transform: scaleX(-1);
}

/* 语言菜单在 RTL 下从右往左对齐 */
html[dir="rtl"] .lang-menu button { text-align: right; }

/* 阿拉伯语 / 波斯语：优先用系统自带的中东字体，不引入外部字体文件 */
html[lang="ar"] body,
html[lang="fa"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic",
               "Iranian Sans", "Vazirmatn", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Arial, sans-serif;
}
/* 阿拉伯文行高比拉丁文需要更松，否则上下会挤 */
html[lang="ar"] body,
html[lang="fa"] body { line-height: 1.75; }

/* 数字与型号（6x4、20–500 kVA）始终按 LTR 排列，否则在 RTL 里会读反 */
html[dir="rtl"] .pwr-no,
html[dir="rtl"] .step-num,
html[dir="rtl"] .mini-num { direction: ltr; unicode-bidi: isolate; }

/* ============ CJK / RTL 排版微调 ============ */

/* 平衡换行：避免标题最后一行只剩一两个字。
   balance 对拉丁文同样有益（长标题不会出现孤字），现代浏览器原生支持。 */
h1, h2, .power-head h3 { text-wrap: balance; }
.lede, .sec-head p { text-wrap: pretty; }

/* 中文：同字号下比拉丁文占位更宽，标题需要降一档才不至于频繁断行 */
html[lang="zh-CN"] h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.05vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: 0;
}
html[lang="zh-CN"] h2 {
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem);
  letter-spacing: 0;
}
html[lang="zh-CN"] .eyebrow {
  letter-spacing: .06em;   /* 英文原为 .14em，中文会被拉散 */
}
html[lang="zh-CN"] .brand-text small {
  letter-spacing: .04em;   /* 「工贸」两个字，字距必须收窄 */
  font-size: .625rem;
}
html[lang="zh-CN"] .lede,
html[lang="zh-CN"] p,
html[lang="zh-CN"] li { line-height: 1.72; }

/* 阿拉伯语 / 波斯语：标题也降一档，阿拉伯文连写体在高字号下容易挤 */
html[lang="ar"] h1,
html[lang="fa"] h1 {
  font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.7rem);
  line-height: 1.42;
}
html[lang="ar"] h2,
html[lang="fa"] h2 {
  font-size: clamp(1.25rem, .95rem + 1vw, 1.75rem);
  line-height: 1.5;
}

/* 中英混排时给拉丁词留一点空隙，避免「6×4车型」挤在一起 */
html[lang="zh-CN"] p { word-spacing: .04em; }

