/* ==========================================================
   盛源 SHENGYUAN · 公共样式（设计系统 / 导航 / 按钮 / 表单 / 页脚）
   ========================================================== */

:root {
  /* 色彩：深色为近黑带一点绿调，浅色为暖白纸感 */
  --ink: #0b0d0b;
  --ink-2: #121512;
  --ink-3: #1b1f1b;
  --paper: #f3f1ea;
  --paper-2: #e8e5db;
  --white: #ffffff;
  --text: #0e110e;
  --muted: #5f645c;
  --on-dark: #eef0ea;
  --on-dark-muted: rgba(238, 240, 234, 0.62);
  --line-dark: rgba(238, 240, 234, 0.13);
  --line-light: rgba(14, 17, 14, 0.12);
  --brand: #6aa338;          /* 取自 Logo 的品牌绿 */
  --lime: #b4e27a;           /* 深色背景上使用的高亮绿 */
  --sage: #cfd8a4;           /* 与产品棚拍背景墙呼应 */

  /* 字体：拉丁字符用 Inter/Inter Tight（本地 woff2），CJK 与阿文 fallback 到系统字体
     顺序：先拉丁 → 中文(Mac/Win/Linux) → 日文 → 韩文 → 阿文 → 系统兜底 */
  --f-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
           "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP",
           "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR";
  --f-ar: "Geeza Pro", "Traditional Arabic", "Sakkal Majalla", "Noto Naskh Arabic", "Segoe UI";
  --f-display: "Inter Tight", "Inter", var(--f-cjk), var(--f-ar),
               system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Inter", var(--f-cjk), var(--f-ar),
            system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Instrument Serif", "Songti SC", "SimSun", "Noto Serif CJK SC",
             "Hiragino Mincho ProN", "Noto Serif JP", var(--f-ar),
             "Times New Roman", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* 尺寸与动效 */
  --pad: clamp(20px, 4vw, 64px);
  --max: 1480px;
  --nav-h: 76px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 细腻颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 布局与主题 ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.theme-dark { background: var(--ink); color: var(--on-dark); }
.theme-light { background: var(--paper); color: var(--text); }

/* ---------- 字体层级 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  animation: ping 2.4s var(--ease-out) infinite;
}
.theme-light .eyebrow .dot { background: var(--brand); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(180, 226, 122, 0.55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(180, 226, 122, 0); }
}

.display-xl, .display-l, .display-m, .display-s {
  font-family: var(--f-display);
  font-weight: 600;
  text-wrap: balance;
}
.display-xl { font-size: clamp(46px, 7.6vw, 136px); line-height: 0.92; letter-spacing: -0.048em; }
.display-l  { font-size: clamp(40px, 6vw, 106px);   line-height: 0.95; letter-spacing: -0.042em; }
.display-m  { font-size: clamp(32px, 4.3vw, 70px);  line-height: 1.02; letter-spacing: -0.034em; }
.display-s  { font-size: clamp(24px, 2.4vw, 38px);  line-height: 1.1;  letter-spacing: -0.022em; font-weight: 500; }
.display-xl em, .display-l em, .display-m em, .display-s em, .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.012em;
}
/* CJK（中日韩）和阿文没有真正的斜体，浏览器伪斜体很难看 —— 用字重/颜色代替 */
html[lang^="zh"] .display-xl em, html[lang^="zh"] .display-l em,
html[lang^="zh"] .display-m em, html[lang^="zh"] .display-s em,
html[lang^="ja"] .display-xl em, html[lang^="ja"] .display-l em,
html[lang^="ja"] .display-m em, html[lang^="ja"] .display-s em,
html[lang^="ko"] .display-xl em, html[lang^="ko"] .display-l em,
html[lang^="ko"] .display-m em, html[lang^="ko"] .display-s em,
html[lang="ar"] .display-xl em, html[lang="ar"] .display-l em,
html[lang="ar"] .display-m em, html[lang="ar"] .display-s em {
  font-style: normal;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; text-wrap: pretty; }
.theme-dark .lead, .lead--dark { color: var(--on-dark-muted); }
.theme-light .lead, .lead--light { color: var(--muted); }

/* 文字拆分动画用的包裹层 */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.05em 0.12em 0; margin: 0 -0.05em -0.12em 0; }
.wi { display: inline-block; will-change: transform; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
  will-change: transform;
}
.btn__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  flex: none;
  transition: transform 0.6s var(--ease-out), background-color 0.45s var(--ease-out);
}
.btn__icon svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease-out); }
.btn:hover .btn__icon svg { transform: rotate(-45deg); }

/* 悬停时文字上滚替换 */
.roll { position: relative; display: inline-flex; overflow: hidden; }
.roll > span, .roll::after { display: block; transition: transform 0.6s var(--ease-out); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.btn:hover .roll > span, .btn:hover .roll::after { transform: translateY(-100%); }

.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light .btn__icon { background: var(--ink); color: var(--on-dark); }
.btn--light:hover { background: var(--lime); }

.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark .btn__icon { background: var(--lime); color: var(--ink); }
.btn--dark:hover { background: #22281f; }

.btn--glass { background: rgba(238, 240, 234, 0.08); color: var(--on-dark); border-color: var(--line-dark); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn--glass .btn__icon { background: var(--on-dark); color: var(--ink); }
.btn--glass:hover { background: rgba(238, 240, 234, 0.16); }

.btn--outline { color: var(--text); border-color: var(--line-light); }
.btn--outline .btn__icon { background: var(--ink); color: var(--paper); }
.btn--outline:hover { border-color: var(--text); }

.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-inline: var(--pad);
  color: var(--on-dark);
  transition: transform 0.7s var(--ease-out), color 0.4s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 11, 0.58);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0;
  transition: opacity 0.45s ease, background-color 0.45s ease, border-color 0.45s ease;
}
.nav > * { position: relative; }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-105%); }
.nav.nav--light { color: var(--text); }
.nav.nav--light::before { background: rgba(243, 241, 234, 0.76); border-bottom-color: var(--line-light); }
.nav.menu-open { color: var(--on-dark); }
.nav.menu-open::before { opacity: 0; }

.nav__logo { justify-self: start; display: block; position: relative; height: 38px; }
.nav__logo img { height: 38px; width: auto; transition: opacity 0.4s ease; }
.nav__logo .logo-color { position: absolute; inset: 0 auto auto 0; opacity: 0; }
.nav--light:not(.menu-open) .nav__logo .logo-white { opacity: 0; }
.nav--light:not(.menu-open) .nav__logo .logo-color { opacity: 1; }

.nav__links {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(238, 240, 234, 0.04);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.nav--light .nav__links { border-color: var(--line-light); background: rgba(14, 17, 14, 0.03); }
.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.86;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; background: rgba(238, 240, 234, 0.1); }
.nav--light .nav__links a:hover, .nav--light .nav__links a.is-active { background: rgba(14, 17, 14, 0.07); }

/* Products dropdown mega-menu */
.nav__dropdown { position: relative; display: inline-flex; align-items: center; }
.nav__dropdown-trigger { cursor: pointer; }
.nav__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 680px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
  padding: 20px;
}
.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__menu-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.nav__menu-inner a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #1d1d1f;
  text-decoration: none;
  transition: background 0.2s ease;
}
.nav__menu-inner a:hover { background: #f5f5f7; }
.nav__menu-inner a strong { font-size: 15px; font-weight: 600; }
.nav__menu-inner a span { font-size: 12px; color: #86868b; }

.nav__actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__wa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; opacity: 0.86; }
.nav__wa:hover { opacity: 1; }
.nav__wa svg { width: 18px; height: 18px; }
.nav .btn--sm { background: var(--on-dark); color: var(--ink); }
.nav--light:not(.menu-open) .btn--sm { background: var(--ink); color: var(--on-dark); }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); position: relative; }
.nav--light:not(.menu-open) .nav__burger { border-color: var(--line-light); }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.nav__burger i:first-child { top: 17px; }
.nav__burger i:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

/* 移动端全屏菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + 32px) var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(38px, 10vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.menu__links a small { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--lime); }
.menu__foot { display: grid; gap: 6px; color: var(--on-dark-muted); font-size: 15px; }

/* ---------- WhatsApp 悬浮按钮 ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(140%);
  transition: transform 0.7s var(--ease-out);
}
.wa-float.is-visible { transform: translateY(0); }
.wa-float__label {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}
.wa-float:hover .wa-float__label { opacity: 1; transform: none; }
.wa-float__btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease-out);
}
.wa-float__btn svg { width: 28px; height: 28px; }
.wa-float:hover .wa-float__btn { transform: scale(1.07); }

/* ---------- 表单 ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  color: inherit;
  font: inherit;
  font-size: 17px;
  padding: 26px 0 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { cursor: pointer; }
.field select option { color: var(--text); }
.field label {
  position: absolute;
  left: 0;
  top: 26px;
  font-size: 17px;
  color: var(--on-dark-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.45s var(--ease-out), color 0.3s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field--static label {
  transform: translateY(-22px) scale(0.74);
  color: var(--lime);
}
.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field--select::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 20px;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
  pointer-events: none;
}
.chips-label { display: block; font-size: 13px; color: var(--on-dark-muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.chip:hover span { border-color: rgba(238, 240, 234, 0.4); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--on-dark-muted); max-width: 34ch; }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 页脚 ---------- */
.footer { position: relative; background: var(--ink); color: var(--on-dark); padding: clamp(72px, 9vw, 130px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 42px; width: auto; margin-bottom: 22px; }
.footer__brand p { color: var(--on-dark-muted); font-size: 15px; max-width: 34ch; }
.footer h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; font-size: 15px; padding: 5px 0; width: fit-content; }
.footer__col a { position: relative; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__word {
  margin: clamp(56px, 8vw, 120px) 0 clamp(20px, 3vw, 36px);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(60px, 16.6vw, 290px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 240, 234, 0.2);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--lime) 0, rgba(180, 226, 122, 0) 18vw);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-muted); }
.footer__bottom a:hover { color: var(--on-dark); }

/* ---------- 视频弹窗 ---------- */
.vmodal { width: min(1200px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; color: var(--on-dark); overflow: visible; }
.vmodal::backdrop { background: rgba(5, 6, 5, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vmodal video { width: 100%; border-radius: 18px; background: #000; }
.vmodal__close { position: absolute; top: -54px; right: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.vmodal__close i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; font-style: normal; font-size: 18px; }

/* ---------- 评审模式：高亮占位数据（网址加 ?review 查看） ---------- */
.show-placeholders [data-placeholder] { outline: 2px dashed #ff6b3d; outline-offset: 4px; border-radius: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__wa { display: none; }
  .nav__burger { display: block; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .nav__logo, .nav__logo img { height: 32px; }
  .nav .btn--sm { display: none; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__btn { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- 多语言切换器 ---------- */
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-switch__current {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px;
  opacity: 0.86; transition: opacity 0.2s, background 0.2s;
}
.nav--light:not(.menu-open) .lang-switch__current { border-color: var(--line-light); color: var(--text); }
.lang-switch__current:hover, .lang-switch__current[aria-expanded="true"] { opacity: 1; background: rgba(238,240,234,0.08); }
.lang-switch__current::after { content: "▾"; font-size: 9px; opacity: 0.7; }
.lang-switch__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 6px; margin: 0; list-style: none; z-index: 200;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.nav--light:not(.menu-open) .lang-switch__menu { background: var(--paper); border-color: var(--line-light); color: var(--text); }
.lang-switch__menu[hidden] { display: none; }
.lang-switch__opt {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left;
  font-size: 13px; transition: background 0.15s;
}
.lang-switch__opt:hover, .lang-switch__opt[aria-selected="true"] { background: rgba(180,226,122,0.12); }
.lang-switch__opt[aria-selected="true"] { color: var(--lime); }
.lang-switch__opt small { opacity: 0.55; font-family: var(--f-mono); font-size: 11px; }

/* ---------- 阿拉伯语 RTL ---------- */
html[dir="rtl"] body { font-family: var(--f-body); }
html[dir="rtl"] .display-xl, html[dir="rtl"] .display-l, html[dir="rtl"] .display-m, html[dir="rtl"] .display-s {
  letter-spacing: 0; /* 阿文连写不接受负字距 */
}
html[dir="rtl"] .nav { direction: rtl; }
html[dir="rtl"] .nav__logo { justify-self: end; }
html[dir="rtl"] .nav__actions { justify-self: start; }
html[dir="rtl"] .footer__word { direction: rtl; }
html[dir="rtl"] .hero__foot .wrap { flex-direction: row-reverse; }
html[dir="rtl"] .marquee__track { animation-direction: reverse; }
html[dir="rtl"] .pcard__tag, html[dir="rtl"] .tile__idx, html[dir="rtl"] .eyebrow .dot { /* 保持视觉，不翻转 */ }

/* Hide Netlify badge */
#netlify-badge, .netlify-badge, iframe[src*="netlify"], div[data-netlify-badge] { display: none !important; }

