:root{
  --ink:#1a1f2b;
  --ink-2:#4a5266;
  --ink-3:#7b8399;
  --line:#e3e7ef;
  --bg:#ffffff;
  --bg-soft:#f6f8fb;
  --brand:#0f5c8c;
  --brand-2:#12809e;
  --gold:#c08a3e;
  --radius:10px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.7;font-size:15px;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--brand-2)}
h1,h2,h3,h4{line-height:1.35;margin:0 0 .6em;font-weight:700;letter-spacing:-.01em}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}

/* ---------- top bar ---------- */
.topbar{background:var(--ink);color:#c9d1e0;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:38px;gap:16px}
.topbar a{color:#c9d1e0}
.topbar a:hover{color:#fff}
.topbar .tb-right{display:flex;gap:18px;flex-wrap:wrap}

/* ---------- header ---------- */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
/* 高度改为 min-height：西语/俄语等译文比中文长，导航可能换行，
   写死 height:74px 会让内容溢出并压到 hero 上 */
.site-header .wrap{display:flex;align-items:center;gap:22px;min-height:74px;padding-top:8px;padding-bottom:8px}
.brand{display:flex;align-items:center;gap:11px;flex:0 0 auto}
.brand-mark{width:40px;height:40px;border-radius:9px;background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;letter-spacing:0}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-name{font-size:19px;font-weight:800;color:var(--ink)}
.brand-en{font-size:11px;color:var(--ink-3);letter-spacing:.12em;text-transform:uppercase}
/* 导航可收缩：flex 1 + min-width 0 才能让它在长译文下压缩而不是挤压语言器 */
.main-nav{margin-left:auto;flex:1 1 auto;min-width:0;overflow:hidden}
.main-nav ul{justify-content:flex-end}
/* 西班牙语/俄语菜单文字明显更长，收字号与内边距保持单行 */
body.lang-es .main-nav a,
body.lang-ru .main-nav a{font-size:12.5px;padding:8px 7px}
/* 导航一行排不下时缩小间距而不是换行，避免撑高头部 */
.main-nav ul{display:flex;gap:2px;list-style:none;margin:0;padding:0;flex-wrap:nowrap}
.main-nav a{white-space:nowrap}
.main-nav a{display:block;padding:8px 13px;border-radius:7px;color:var(--ink-2);font-size:14.5px;font-weight:500}
.main-nav a:hover,.main-nav .current-menu-item > a{background:var(--bg-soft);color:var(--brand)}
.nav-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 11px;font-size:14px;color:var(--ink-2)}

/* ---------- hero ---------- */
.hero{position:relative;background:linear-gradient(120deg,#0d3f63 0%,#0f5c8c 48%,#12809e 100%);
  color:#fff;overflow:hidden}
.hero:after{content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 78% 18%,rgba(255,255,255,.16),transparent 46%),
             radial-gradient(circle at 12% 88%,rgba(255,255,255,.09),transparent 42%);
  pointer-events:none}
.hero .wrap{position:relative;z-index:2;padding-top:72px;padding-bottom:76px;max-width:1180px}
.hero-eyebrow{display:inline-block;font-size:12.5px;letter-spacing:.18em;text-transform:uppercase;
  border:1px solid rgba(255,255,255,.34);border-radius:100px;padding:5px 14px;margin-bottom:20px;color:#dbe9f4}
.hero h1{font-size:42px;max-width:800px;margin-bottom:18px;letter-spacing:-.02em}
.hero h1 em{font-style:normal;color:#ffd79a}
.hero p{font-size:16.5px;color:#d5e4f0;max-width:660px;margin:0 0 30px}
.hero-actions{display:flex;gap:13px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:8px;
  font-weight:600;font-size:15px;border:1px solid transparent;transition:.18s}
.btn-primary{background:#fff;color:var(--brand)}
.btn-primary:hover{background:#eaf4fb;color:var(--brand)}
.btn-ghost{border-color:rgba(255,255,255,.5);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.13);color:#fff}
.hero-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.18);
  border-radius:var(--radius);overflow:hidden;margin-top:52px;position:relative;z-index:2}
.hero-stats div{background:rgba(255,255,255,.07);padding:20px 22px}
.hero-stats dt{font-size:26px;font-weight:800;color:#fff;margin:0}
.hero-stats dd{margin:4px 0 0;font-size:13px;color:#c2d7e7}

/* ---------- sections ---------- */
.section{padding:72px 0}
.section-soft{background:var(--bg-soft)}
.section-head{max-width:720px;margin-bottom:40px}
.section-head .kicker{display:block;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--brand-2);font-weight:700;margin-bottom:9px}
.section-head h2{font-size:31px;margin-bottom:12px}
.section-head p{color:var(--ink-2);margin:0;font-size:15.5px}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}

/* ---------- category grid ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cat-card{display:block;border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px;
  background:#fff;transition:.2s;height:100%}
.cat-card:hover{border-color:#bcd4e4;box-shadow:0 10px 28px rgba(15,92,140,.09);transform:translateY(-2px)}
.cat-ico{width:42px;height:42px;border-radius:10px;background:#eaf2f8;color:var(--brand);
  display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;margin-bottom:14px}
.cat-card h3{font-size:17px;margin-bottom:7px;color:var(--ink)}
.cat-card p{font-size:13.5px;color:var(--ink-3);margin:0;line-height:1.65}
.cat-count{display:inline-block;margin-top:12px;font-size:12.5px;color:var(--brand);font-weight:600}

/* ---------- product grid ---------- */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.prod-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;
  display:flex;flex-direction:column;transition:.2s}
.prod-card:hover{box-shadow:0 12px 30px rgba(20,30,50,.10);transform:translateY(-2px);border-color:#cfdcea}
.prod-thumb{aspect-ratio:4/3;background:linear-gradient(135deg,#eef4f9,#dce9f3);position:relative;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.prod-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.prod-card:hover .prod-thumb img{transform:scale(1.035)}
.prod-thumb .ph{font-size:30px;font-weight:800;color:#a9c3d6;letter-spacing:.06em}
.single-thumb{border-radius:12px;overflow:hidden;border:1px solid var(--line);margin:0 0 32px;background:var(--bg-soft)}
.single-thumb img{width:100%;height:auto;display:block}
.prod-cat-tag{position:absolute;left:10px;top:10px;background:rgba(255,255,255,.94);color:var(--brand);
  font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:100px}
.prod-body{padding:16px 17px 18px;display:flex;flex-direction:column;flex:1}
.prod-body h3{font-size:15.5px;margin-bottom:8px;line-height:1.45}
.prod-body h3 a{color:var(--ink)}
.prod-body h3 a:hover{color:var(--brand)}
.prod-body p{font-size:13px;color:var(--ink-3);margin:0 0 14px;line-height:1.6;flex:1}
.prod-meta{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;
  color:var(--ink-3);border-top:1px solid var(--line);padding-top:11px;margin-top:auto}
.prod-meta .enq{color:var(--brand);font-weight:700}

/* ---------- capability strip ---------- */
.cap-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center}
.cap-list{list-style:none;padding:0;margin:0}
.cap-list li{display:flex;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}
.cap-list li:last-child{border-bottom:0}
.cap-num{flex:0 0 30px;height:30px;border-radius:8px;background:var(--brand);color:#fff;font-size:13.5px;
  font-weight:700;display:flex;align-items:center;justify-content:center}
.cap-list strong{display:block;font-size:15.5px;margin-bottom:3px}
.cap-list span{font-size:13.5px;color:var(--ink-3)}
.cap-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:30px;
  box-shadow:0 16px 40px rgba(20,40,70,.07)}
.cap-panel h3{font-size:19px;margin-bottom:18px}
.cap-panel .row{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px dashed var(--line);font-size:14px}
.cap-panel .row:last-of-type{border-bottom:0}
.cap-panel .row span:first-child{color:var(--ink-3)}
.cap-panel .row span:last-child{font-weight:700;color:var(--ink)}

/* ---------- process ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:s}
.step{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 24px;position:relative}
.step:before{counter-increment:s;content:"0" counter(s);position:absolute;right:20px;top:14px;
  font-size:34px;font-weight:800;color:#eef3f8}
.step h3{font-size:16.5px;margin-bottom:8px;position:relative}
.step p{font-size:13.5px;color:var(--ink-3);margin:0;position:relative}

/* ---------- CTA ---------- */
.cta{background:linear-gradient(120deg,#0d3f63,#12809e);color:#fff;border-radius:16px;
  padding:48px 52px;display:flex;align-items:center;justify-content:space-between;gap:34px;flex-wrap:wrap}
.cta h2{font-size:26px;margin-bottom:9px}
.cta p{margin:0;color:#cfe1ee;font-size:15px}

/* ---------- single / page ---------- */
.entry-hero{background:var(--bg-soft);border-bottom:1px solid var(--line);padding:44px 0}
.entry-hero .breadcrumb{font-size:13px;color:var(--ink-3);margin-bottom:12px}
.entry-hero .breadcrumb a{color:var(--ink-3)}
.entry-hero .breadcrumb a:hover{color:var(--brand)}
.entry-hero h1{font-size:34px;margin:0;max-width:860px}
.entry-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;padding:52px 0}
.entry-content{font-size:15.5px;color:var(--ink-2)}
.entry-content h3{font-size:19px;color:var(--ink);margin-top:1.6em}
.entry-content ul,.entry-content ol{padding-left:22px}
.entry-content li{margin:.4em 0}
.entry-content p{margin:0 0 1.1em}
.side-card{border:1px solid var(--line);border-radius:var(--radius);padding:22px;background:#fff;margin-bottom:18px}
.side-card h4{font-size:14.5px;margin-bottom:13px;color:var(--ink)}
.side-card ul{list-style:none;padding:0;margin:0;font-size:13.5px}
.side-card li{padding:8px 0;border-bottom:1px dashed var(--line)}
.side-card li:last-child{border-bottom:0}
.side-card li a{color:var(--ink-2)}
.side-card li a:hover{color:var(--brand)}

/* ---------- archive list ---------- */
.post-list{display:grid;gap:2px}
.post-list .item{padding:26px 0;border-bottom:1px solid var(--line)}
.post-list .item h2{font-size:21px;margin-bottom:7px}
.post-list .item h2 a{color:var(--ink)}
.post-list .item h2 a:hover{color:var(--brand)}
.post-list .item p{color:var(--ink-3);font-size:14px;margin:0 0 9px}
.post-list .item .meta{font-size:12.5px;color:var(--ink-3)}

/* ---------- footer ---------- */
.site-footer{background:#12161f;color:#8e97aa;padding:56px 0 26px;margin-top:0;font-size:13.5px}
.site-footer h4{color:#fff;font-size:14.5px;margin:0 0 15px;font-weight:700}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:40px;padding-bottom:38px;
  border-bottom:1px solid #232a38}
.footer-grid ul{list-style:none;padding:0;margin:0}
.footer-grid li{padding:5px 0}
.site-footer a{color:#8e97aa}
.site-footer a:hover{color:#fff}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.footer-brand .brand-mark{width:34px;height:34px;font-size:15px}
.footer-brand .brand-name{color:#fff;font-size:16px}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;padding-top:22px;flex-wrap:wrap;
  color:#6b7488;font-size:12.5px}
.footer-bottom a{color:#6b7488}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .cat-grid,.prod-grid{grid-template-columns:repeat(2,1fr)}
  .cap-grid{grid-template-columns:1fr;gap:32px}
  .steps{grid-template-columns:repeat(2,1fr)}
  .entry-wrap{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
  .hero h1{font-size:34px}
}
@media (max-width:720px){
  .topbar{display:none}
  .site-header .wrap{height:auto;padding-top:12px;padding-bottom:12px;flex-wrap:wrap;gap:12px}
  .nav-toggle{display:block;margin-left:auto}
  .main-nav{display:none;width:100%;margin-left:0}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:2px}
  .hero .wrap{padding-top:48px;padding-bottom:52px}
  .hero h1{font-size:27px}
  .hero p{font-size:15px}
  .hero-stats{grid-template-columns:repeat(2,1fr);margin-top:34px}
  .section{padding:48px 0}
  .section-head h2{font-size:24px}
  .cat-grid,.prod-grid,.steps{grid-template-columns:1fr}
  .cta{padding:32px 26px}
  .cta h2{font-size:21px}
  .entry-hero h1{font-size:26px}
  .footer-grid{grid-template-columns:1fr}
}

/* ---------- 语言切换器 ---------- */
.lang-switch{position:relative;flex:0 0 auto;margin-left:14px;white-space:nowrap}
.lang-current{display:flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--line);
  background:#fff;border-radius:8px;font-size:13.5px;color:var(--ink-2);cursor:pointer;font-family:inherit}
.lang-current:hover{border-color:#bcd4e4;color:var(--brand)}
.lang-code{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:19px;
  padding:0 4px;border-radius:4px;background:#eaf2f8;color:var(--brand);font-size:10.5px;font-weight:800;letter-spacing:.03em}
.lang-caret{font-size:10px;color:var(--ink-3)}
.lang-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:158px;background:#fff;border:1px solid var(--line);
  border-radius:10px;padding:6px;margin:0;list-style:none;display:none;z-index:80;
  box-shadow:0 12px 32px rgba(20,40,70,.13)}
.lang-switch.open .lang-menu{display:block}
.lang-menu li{margin:0}
.lang-menu a{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:7px;
  font-size:13.5px;color:var(--ink-2)}
.lang-menu a:hover{background:var(--bg-soft);color:var(--brand)}

/* ---------- 其他补充 ---------- */
.cap-note{margin:20px 0 0;font-size:13px;color:var(--ink-3)}
.entry-meta{margin-top:12px;font-size:13px;color:var(--ink-3)}
.entry-hero-desc{margin:12px 0 0;color:var(--ink-2);max-width:760px;font-size:15px}
.entry-lead{font-size:16px;color:var(--ink-2);border-inline-start:3px solid var(--brand);
  padding-inline-start:14px;margin:0 0 1.6em;font-weight:500}
.footer-about{margin:0;line-height:1.75;color:#8e97aa;max-width:320px}
.pager{margin-top:40px;display:flex;justify-content:center}
.pager .nav-links{display:flex;gap:6px;flex-wrap:wrap}
.pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;
  padding:0 10px;border:1px solid var(--line);border-radius:7px;font-size:13.5px;color:var(--ink-2);background:#fff}
.pager .page-numbers:hover{border-color:#bcd4e4;color:var(--brand)}
.pager .page-numbers.current{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
.empty-note{padding:40px 0;color:var(--ink-3)}

/* ---------- RTL（阿拉伯语）---------- */
html[dir="rtl"] body{font-family:"Segoe UI","Tahoma","Arial",-apple-system,"PingFang SC",sans-serif}
/* 说明：row-reverse 只能用在外层容器上。
   .brand / .lang-current / .lang-menu a 这类「图标 + 文字」的小组件如果在 RTL 下
   反转，会出现图标跑到文字右边（中文/阿拉伯文的视觉都不对），因此不反转——
   它们在 dir="rtl" 下本来就会按右到左排列。*/
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .cap-list li,
html[dir="rtl"] .prod-meta,
html[dir="rtl"] .footer-bottom{flex-direction:row-reverse}
html[dir="rtl"] .lang-menu{right:auto;left:0;text-align:right}
html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero p,
html[dir="rtl"] .section-head,
html[dir="rtl"] .entry-content{text-align:right}
html[dir="rtl"] .section-head.center{text-align:center}
html[dir="rtl"] .hero .wrap{text-align:right}
html[dir="rtl"] .cat-card,
html[dir="rtl"] .prod-body,
html[dir="rtl"] .step{text-align:right}
html[dir="rtl"] .prod-cat-tag{left:auto;right:10px}
html[dir="rtl"] .step:before{right:auto;left:20px}
html[dir="rtl"] .cap-list li{padding-right:0}
html[dir="rtl"] .entry-lead{border-inline-start:0;border-inline-end:3px solid var(--brand);
  padding-inline-start:0;padding-inline-end:14px}
/* ---------- RTL 头部顺序 ----------
   DOM 顺序固定为 brand → nav-toggle → nav → lang。

   LTR:  <html dir="ltr">，flex 主轴从左起
         视觉 = [logo] [nav .......] [lang]

   RTL:  <html lang="ar" dir="rtl"> 会让 .site-header .wrap 继承 direction:rtl。
         flex-direction 保持默认的 row —— 此时主轴起点自动落在【右】侧，
         于是 DOM 第一个 .brand 天然排到最右，.lang-switch 排到最左：
         视觉 = [lang] [nav .......] [logo]   ← 正是阿拉伯语的阅读顺序。

   ⚠ 两个必须避开的坑（这里都踩过）：
   1) 不要再写 flex-direction:row-reverse。
      row-reverse 是在当前 direction 基础上再反转一次，
      与继承来的 dir=rtl 互相抵消，结果退回成 [logo]...[lang]，即"logo 与语言器互换"。
   2) 全局更不要给 flex 容器加 direction:rtl。上面第 1 条已经说明继承就够了，
      额外指定会把方向搞成双重反转。
   结论：RTL 头部「什么都不用做」——只要基础 CSS 用的是 row + margin-left:auto，
         dir=rtl 会自动把整套镜像出来。下面保留 auto margin 的换边即可。*/
html[dir="rtl"] .main-nav{margin-left:0;margin-right:auto}
html[dir="rtl"] .main-nav ul{justify-content:flex-start}
html[dir="rtl"] .lang-switch{margin-left:0;margin-right:18px}
/* logo 内部：DOM = [.brand-mark 图标][.brand-text 文字]。
   RTL 继承会让 flex 从右往左排，图标会跑到文字右边，视觉上很散。
   这里把内部顺序固定回 LTR（图标在左、文字在右），只让文字块自身右对齐，
   既符合"图标+名称"的通用识别习惯，也不会与整站 RTL 阅读方向冲突。*/
html[dir="rtl"] .brand{direction:ltr;flex-direction:row}
html[dir="rtl"] .brand .brand-mark{order:0}
html[dir="rtl"] .brand .brand-text{order:1;direction:rtl;align-items:flex-start;text-align:right}
html[dir="rtl"] .nav-toggle{margin-left:0;margin-right:auto}
html[dir="rtl"] .topbar .tb-right{flex-direction:row-reverse}
html[dir="rtl"] .hero-stats{text-align:center}
html[dir="rtl"] ul, html[dir="rtl"] ol{padding-right:22px;padding-left:0}
