@font-face {
  font-family: "ALKATIP";
  src: url("fonts/ALKATIP-Basma.woff2") format("woff2"),
       url("fonts/ALKATIP-Basma.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ALKATIP";
  src: url("fonts/ALKATIP-Basma-Bold.woff2") format("woff2"),
       url("fonts/ALKATIP-Basma-Bold.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee3;
  --paper-3: #eee7d9;
  --ink: #17140f;
  --ink-2: #3d372e;
  --muted: #857c6d;
  --line: #e2d8c6;
  --line-2: #d3c7b0;
  --gold: #b0894d;
  --gold-deep: #8a6733;
  --gold-soft: #d9c49c;

  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --wrap: 1260px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* 双语切换 */
.ug {
  display: none;
}

html[lang="ug"] .zh {
  display: none;
}

html[lang="ug"] .ug {
  display: inline;
}

html[lang="ug"] .ug.blk {
  display: block;
}

/* 维语：整站统一 ALKATIP，只保留纯拉丁品牌大字 / 英文眉标 / 数字的衬线 */
html[lang="ug"] body,
html[lang="ug"] body *:not(h1):not(.brand):not(.eyebrow) {
  font-family: "ALKATIP", "Noto Naskh Arabic", serif;
  letter-spacing: 0;
}

html[lang="ug"] h1 {
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

/* 语言切换里的维语按钮：中文页面下也必须是 ALKATIP */
[data-lang="ug"] {
  font-family: "ALKATIP", "Noto Naskh Arabic", sans-serif;
  letter-spacing: 0;
}

html[lang="ug"] .card-cat,
html[lang="ug"] .nav-link,
html[lang="ug"] .btn,
html[lang="ug"] .footer-link {
  letter-spacing: 0;
}

/* 布局 */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: var(--sec) 0;
  position: relative;
}

section[id] {
  scroll-margin-top: 86px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  margin-top: 14px;
}

.section-head p {
  max-width: 380px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}

/* 导航 */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(251, 248, 242, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(140%) blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.34em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lang button {
  padding: 2px 4px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

.lang button:hover {
  color: var(--ink);
}

.lang button.is-active {
  color: var(--gold-deep);
}

.lang .sep {
  width: 1px;
  height: 11px;
  background: var(--line-2);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
}

.nav-toggle span {
  position: relative;
  width: 16px;
  height: 1px;
  background: var(--ink);
  display: block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Hero */
.hero {
  padding-top: 76px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  padding: clamp(48px, 7vw, 96px) var(--pad) clamp(56px, 7vw, 104px);
}

.hero-copy h1 {
  font-size: clamp(52px, 7.2vw, 98px);
  letter-spacing: 0.16em;
  line-height: 1;
  margin: 22px 0 0 -0.04em;
}

html[lang="ug"] .hero-copy h1 {
  letter-spacing: 0.12em;
  font-size: clamp(48px, 7.8vw, 106px);
  line-height: 1.2;
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 29px);
  color: var(--ink);
  margin-top: 26px;
  line-height: 1.6;
}

.hero-desc {
  margin-top: 22px;
  max-width: 430px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-solid:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-line {
  border: 1px solid var(--line-2);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn .arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

html[dir="rtl"] .btn:hover .arrow {
  transform: translateX(-3px) scaleX(-1);
}

html[dir="rtl"] .btn .arrow {
  transform: scaleX(-1);
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-media {
  position: relative;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}

.hero-media:hover .hero-frame img {
  transform: scale(1.1);
}

.hero-badge {
  position: absolute;
  left: -1px;
  bottom: -1px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 18px;
  max-width: 240px;
}

.hero-badge strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.hero-badge > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-side {
  position: absolute;
  right: -34px;
  top: 0;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 信任条 */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item .num {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.2;
}

.trust-item .num small {
  font-size: 14px;
  color: var(--muted);
  margin-left: 2px;
}

.trust-item .cap {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* 产品 */
.products {
  background: var(--paper);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.filter {
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}

.filter:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(23, 20, 15, 0.35);
}

.card.is-hidden {
  display: none;
}

.card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5%;
  transition: transform 0.9s var(--ease);
}

.card-media.is-wide img {
  object-fit: contain;
  padding: 2%;
}

.card:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  padding: 20px 20px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.card h3 {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  min-height: 3em;
}

.card-spec {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.card-more {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.card-more:hover {
  color: var(--ink);
  gap: 12px;
}

.card-more .arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

html[dir="rtl"] .card-more .arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] .card-more:hover .arrow {
  transform: scaleX(-1) translateX(-3px);
}

/* 理念 */
.philo {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.philo-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 110px);
}

.philo-copy h2 {
  font-size: clamp(30px, 4vw, 50px);
  margin-top: 16px;
}

.philo-copy .lead {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 1px solid var(--gold);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.95;
  max-width: 340px;
}

html[dir="rtl"] .philo-copy .lead {
  padding-left: 0;
  padding-right: 20px;
  border-left: 0;
  border-right: 1px solid var(--gold);
}

.philo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.philo-list li {
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
}

.philo-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.philo-list .idx {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.philo-list h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.philo-list p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
}

/* 溯源 */
.trace {
  background: var(--ink);
  color: var(--paper);
}

.trace .eyebrow {
  color: rgba(251, 248, 242, 0.5);
}

.trace-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.trace h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin-top: 18px;
  color: #fdfbf6;
}

.trace h2 em {
  font-style: normal;
  color: var(--gold-soft);
}

.trace p {
  margin-top: 24px;
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(251, 248, 242, 0.72);
}

.trace-steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(251, 248, 242, 0.16);
  padding-top: 26px;
}

.trace-step .k {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.trace-step .t {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(251, 248, 242, 0.9);
  line-height: 1.7;
}

.trace-visual {
  position: relative;
  border: 1px solid rgba(251, 248, 242, 0.18);
  padding: clamp(24px, 3vw, 40px);
  background: rgba(251, 248, 242, 0.03);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.code-grid i {
  display: block;
  aspect-ratio: 1 / 1;
  background: rgba(251, 248, 242, 0.09);
}

.code-grid i.on {
  background: rgba(217, 196, 156, 0.62);
}

.code-cap {
  margin-top: 22px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: rgba(251, 248, 242, 0.5);
}

/* 联系/页脚 */
.contact {
  background: var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  margin-top: 16px;
}

.contact-desc {
  margin-top: 22px;
  max-width: 420px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.95;
}

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.contact-row .v {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.03em;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 40px;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.footer-link:hover {
  color: var(--gold-deep);
}

.footer-note {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-note .disclaimer {
  max-width: 620px;
}

.copyright {
  white-space: nowrap;
}

/* 动效 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* 响应式 */
@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-side {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 34px;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-media {
    order: -1;
  }

  .hero-frame {
    aspect-ratio: 4 / 3;
  }

  .hero-frame img {
    object-position: 50% 42%;
  }

  .hero-copy h1 {
    margin-top: 16px;
  }

  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .philo-inner,
  .trace-inner,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .trace-visual {
    order: -1;
  }

  .section-head p {
    max-width: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .nav-inner {
    height: 64px;
    gap: 10px;
  }

  .brand {
    font-size: 15px;
    letter-spacing: 0.2em;
  }

  .lang {
    padding: 4px 7px;
    gap: 5px;
    font-size: 10.5px;
  }

  .lang button {
    font-size: 10.5px;
    padding: 2px 3px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 14vw, 62px);
    letter-spacing: 0.1em;
  }

  .hero-sub {
    font-size: 19px;
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .btn {
    height: 46px;
    padding: 0 20px;
    flex: 1 1 auto;
  }

  .trust-item {
    padding: 20px 16px;
  }

  .trust-item .num {
    font-size: 24px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .card h3 {
    min-height: 0;
  }

  .card-media {
    aspect-ratio: 3 / 2;
  }

  .trace-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .contact-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .footer-note {
    flex-direction: column;
  }

  .hero-badge {
    display: none;
  }

  .dealer-tools {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 移动菜单 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad) 40px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}

.mobile-menu.is-open {
  transform: none;
}

.mobile-menu .mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.mobile-menu nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 26px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.03em;
}

html[lang="ug"] .mobile-menu nav a {
  font-family: "ALKATIP", var(--serif);
  font-size: 24px;
  line-height: 1.6;
}

.mm-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mm-lang {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.mm-lang button {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.mm-lang button.is-active {
  color: var(--gold-deep);
}

.mm-lang .sep {
  width: 1px;
  height: 12px;
  background: var(--line-2);
}

html[lang="ug"] .mm-lang button {
  font-family: "ALKATIP", var(--sans);
  letter-spacing: 0;
}

/* 维语排版：ALKATIP 字形偏小，统一上调字号与行距 */
html[lang="ug"] body {
  font-size: 17px;
  line-height: 1.92;
}

html[lang="ug"] .eyebrow { font-size: 12px; }
html[lang="ug"] .nav-link { font-size: 14px; }
html[lang="ug"] .lang button { font-size: 12.5px; }
html[lang="ug"] .hero-sub { font-size: clamp(21px, 2.5vw, 31px); line-height: 1.75; }
html[lang="ug"] .hero-desc { font-size: 16px; line-height: 2.05; }
html[lang="ug"] .btn { font-size: 14px; }
html[lang="ug"] .trust-item .num { font-size: 32px; }
html[lang="ug"] .trust-item .cap { font-size: 12px; line-height: 1.9; }
html[lang="ug"] .section-head p { font-size: 16px; line-height: 2.05; }
html[lang="ug"] .filter { font-size: 13px; }
html[lang="ug"] .card-cat { font-size: 11px; }
html[lang="ug"] .card h3 { font-size: 18px; line-height: 1.8; min-height: 3.6em; }
html[lang="ug"] .card-spec { font-size: 13px; line-height: 1.95; }
html[lang="ug"] .unit { font-size: 12px; }
html[lang="ug"] .philo-title .quote { font-size: 15px; line-height: 2.05; }
html[lang="ug"] .philo-item h3 { font-size: 21px; line-height: 1.7; }
html[lang="ug"] .philo-item p { font-size: 15px; line-height: 2.05; }
html[lang="ug"] .trace p { font-size: 15.5px; line-height: 2.05; }
html[lang="ug"] .trace-step .t { font-size: 14.5px; line-height: 1.95; }
html[lang="ug"] .contact-desc { font-size: 15.5px; line-height: 2.05; }
html[lang="ug"] .contact-row .v { font-size: 17px; }
html[lang="ug"] .footer-note { font-size: 12.5px; line-height: 2; }

/* RTL 细节 */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .nav-link::after {
  transform-origin: right;
}

html[dir="rtl"] .card,
html[dir="rtl"] .trust-item {
  text-align: right;
}

html[dir="rtl"] .trust-item {
  border-right: 0;
  border-left: 1px solid var(--line);
}

/* RTL 下视觉最左是 DOM 最后一项，外边缘的线要加在 :last-child 上 */
html[dir="rtl"] .trust-item:last-child {
  border-left: 0;
}

html[dir="rtl"] .philo-item {
  grid-template-columns: 52px minmax(0, 1fr);
}

html[dir="rtl"] .hero-copy h1 {
  margin-left: 0;
  margin-right: -0.04em;
}

html[dir="rtl"] .hero-badge {
  max-width: 320px;
}

@media (max-width: 900px) {
  html[dir="rtl"] .trust-item:nth-child(2) {
    border-left: 0;
  }
}

/* ===== 3D 产品卡 ===== */
.card {
  perspective: 1200px;
}

.card:hover {
  transform: none;
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.card.is-tilting .card-3d {
  transition-duration: 0.14s;
}

.sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  background: radial-gradient(58% 58% at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 62%);
}

.card:hover .sheen {
  opacity: 1;
}

/* ===== 产品详情弹层 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 15, 0.55);
  backdrop-filter: saturate(120%) blur(3px);
}

.modal-panel {
  position: relative;
  width: min(980px, calc(100% - 40px));
  max-height: 88vh;
  margin: 6vh auto;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: auto;
  box-shadow: 0 40px 120px -40px rgba(23, 20, 15, 0.55);
  animation: modal-in 0.4s var(--ease) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 18px;
  line-height: 1;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 14px;
}

.modal-media {
  background: #fff;
  padding: 30px 26px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html[dir="rtl"] .modal-media {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.preview-3d {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.preview-3d.is-dragging {
  cursor: grabbing;
  transition: none;
}

.preview-3d img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transform: scale(1.08);
  user-select: none;
  -webkit-user-drag: none;
}

.preview-3d .sheen {
  opacity: 1;
}

.preview-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.modal-content {
  padding: 42px 40px 30px;
}

.modal-content h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  margin-top: 12px;
  line-height: 1.35;
}

.modal-spec {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.modal-sections {
  margin-top: 26px;
  display: grid;
  gap: 22px;
}

.detail-block h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.detail-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.detail-block li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.detail-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

html[dir="rtl"] .detail-block li {
  padding-left: 0;
  padding-right: 14px;
}

html[dir="rtl"] .detail-block li::before {
  left: auto;
  right: 0;
}

.detail-block p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

.modal-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ===== 经销商 ===== */
.dealers {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.dealer-tools {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.95fr 1.15fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.field select,
.field input {
  height: 46px;
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
  cursor: pointer;
}

html[dir="rtl"] .field select {
  background-position: 18px 21px, 23px 21px;
  padding-right: 14px;
  padding-left: 38px;
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--gold);
}

.field input::placeholder {
  color: var(--line-2);
}

.dealer-count {
  padding-bottom: 13px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.dealer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.72fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.dealer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 566px;
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

html[dir="rtl"] .dealer-list {
  padding-right: 0;
  padding-left: 8px;
}

.dealer-list::-webkit-scrollbar {
  width: 4px;
}

.dealer-list::-webkit-scrollbar-thumb {
  background: var(--line-2);
}

.dealer {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.3s var(--ease);
}

.dealer:hover {
  border-color: var(--line-2);
}

.dealer-info h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.dealer-meta {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.dealer-call {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  /* 手机号永远从左到右，避免 RTL 下数字顺序颠倒 */
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

.dealer-call:hover {
  color: var(--ink);
}

html[lang="ug"] body .dealer-call {
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

.dealer-empty,
.dealer-more {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0;
  line-height: 1.8;
}

.qr-card {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 26px;
  text-align: center;
}

.qr-frame {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-frame img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.qr-card h3 {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.65;
}

.qr-card ol {
  counter-reset: q;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: start;
}

.qr-card li {
  counter-increment: q;
  position: relative;
  padding-left: 24px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.qr-card li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.28em;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

html[dir="rtl"] .qr-card li {
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .qr-card li::before {
  left: auto;
  right: 0;
}

.qr-note {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 维语：新增模块字号补齐 */
html[lang="ug"] .dealer-info h4 { font-size: 15px; line-height: 1.7; }
html[lang="ug"] .dealer-meta { font-size: 12.5px; line-height: 1.85; }
html[lang="ug"] .dealer-call { font-size: 14px; }
html[lang="ug"] .dealer-count { font-size: 13px; }
html[lang="ug"] .qr-card h3 { font-size: 16px; line-height: 1.85; }
html[lang="ug"] .qr-card li { font-size: 13.5px; line-height: 1.95; }
html[lang="ug"] .detail-block li,
html[lang="ug"] .detail-block p { font-size: 15px; line-height: 2; }
html[lang="ug"] .detail-block h4 { font-size: 12.5px; }
html[lang="ug"] .modal-spec { font-size: 14px; }
html[lang="ug"] .preview-hint { font-size: 12px; }
html[lang="ug"] .field select,
html[lang="ug"] .field input { font-size: 15px; }

@media (max-width: 900px) {
  .dealer-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dealer-count {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .dealer-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dealer-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: 480px;
    padding-right: 0;
  }

  .qr-card {
    position: static;
  }

  .modal-panel {
    width: 100%;
    max-height: 100%;
    height: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
  }

  .modal-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 14px;
  }

  html[dir="rtl"] .modal-media {
    border-left: 0;
  }

  .preview-3d {
    max-width: 300px;
    margin: 0 auto;
  }

  .modal-content {
    padding: 24px 20px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
