:root {
  --primary: #1668DC;
  --primary-dark: #0e4b9e;
  --primary-light: #e8f1fe;
  --primary-soft: #f2f7ff;
  --navy: #0B1E3D;
  --text: #1A2233;
  --text-muted: #5A6474;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FD;
  --border: #DEE5EF;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(11, 30, 61, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 30, 61, 0.14);
  --max-width: 1200px;
  --header-height: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans Arabic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p { margin: 0; }

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
/* 品牌墙紧跟首屏，收紧上下间距让它尽早进入视野 */
.section-brands { padding: 64px 0 76px; }
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 104, 220, .28);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 20px rgba(22, 104, 220, .35); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  font-family: Montserrat, "PingFang SC", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -.04em;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo-text .cn {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}
body.dark-hero .site-header:not(.scrolled) .logo-text .cn { color: #fff; }
/* 外语界面 logo 里的公司名改为拉丁写法，字号略收，避免撑破小屏 */
html:not([lang^="zh"]) .logo-text .cn { font-size: .78rem; letter-spacing: .04em; }
.logo-text .en {
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
body.dark-hero .site-header:not(.scrolled) .logo-text .en { color: rgba(255,255,255,.7); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
body.dark-hero .site-header:not(.scrolled) .main-nav a { color: #fff; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .25s;
}
body.dark-hero .site-header:not(.scrolled) .main-nav a::after { background: #fff; }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav .nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}
.main-nav .nav-login:hover { background: var(--primary-dark); color: #fff; }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}
.user-menu {
  position: absolute;
  top: 56px; right: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 140px;
  display: none;
}
.user-menu.open { display: block; }
.user-menu a, .user-menu button {
  display: block; width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none; border: none;
  color: var(--text); font-size: .9rem;
  cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: var(--bg-soft); color: var(--primary); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform .2s;
}
body.dark-hero .site-header:not(.scrolled) .mobile-toggle span { background: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 30, 61, .88) 0%, rgba(11, 30, 61, .55) 55%, rgba(11, 30, 61, .25) 100%);
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}
.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 30, 61, .45);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  /* 中文不按单字断行，只在本行手工换行处折行，避免「平衡杆」被拆成两行 */
  word-break: keep-all;
  overflow-wrap: normal;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  text-wrap: pretty;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
/* 拉丁/西里尔/阿拉伯文字单词更长，标题字号相应下调，保证 3 行内排完且不出现孤字行 */
.hero-title:lang(en),
.hero-title:lang(es),
.hero-title:lang(ru),
.hero-title:lang(ar) {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-title:lang(ar) { line-height: 1.35; }
.hero-title span { color: #5aa4ff; }
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
}
.hero-stats .stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-stats .stat span {
  font-size: .85rem;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

/* Category cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.category-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.category-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.category-card p { font-size: .8rem; color: var(--text-muted); }

/* Vehicle brands wall */
.brands-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}
.brand-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 10px 18px;
  text-align: center;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.brand-tile::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .26s ease;
}
.brand-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.brand-tile:hover::after { transform: scaleX(1); }
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  margin-bottom: 14px;
  transition: transform .22s;
}
.brand-tile:hover .brand-logo { transform: scale(1.07); }
.brand-name {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: .72rem;
  line-height: 1.25;
  letter-spacing: .04em;
  color: var(--navy);
  text-transform: uppercase;
  word-break: break-word;
}
.brand-cn {
  display: block;
  margin-top: 3px;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--text-muted);
}
/* 品牌墙：非中文界面只显示拉丁厂牌，避免出现「比亚迪 / 吉利」这类汉字 */
html:not([lang^="zh"]) .brand-cn { display: none; }
.brands-note {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
}

/* Brand filter (products page, auto-shown when >=2 brands in catalog) */
.brand-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}
.brand-filter-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.brand-filter-wrap .products-toolbar { margin-bottom: 0; gap: 8px; }
.brand-filter-wrap .filter-chip { padding: 7px 16px; font-size: .85rem; }

/* Features / icons list */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-item {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}
.feature-item .icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-item p { color: var(--text-muted); font-size: .95rem; }

/* Products */
.products-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 首页精选：4 列一行，避免 4 个产品时第二行只剩一个 */
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img {
  height: 182px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.product-img .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.product-body { padding: 24px; }
.product-meta {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.product-meta span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 100px;
}
.product-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-card .oem { font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; }
.product-card .vehicle { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.product-card .desc { font-size: .9rem; color: var(--text); line-height: 1.65; }

/* About */
.about-hero {
  background: var(--navy);
  color: #fff;
  padding: calc(var(--header-height) + 64px) 0 80px;
}
/* 阿语产品规格：每段用 bdi 隔离后按 RTL 排列，既符合阿语阅读顺序，也不会把 28–30 HRC 拆散 */
html[lang="ar"] .product-card .desc { direction: rtl; unicode-bidi: isolate; text-align: right; }

/* 标题长度随语言变化（Contáctenos / Продукция / المنتجات），用 clamp 保证小屏不撑破 */
.about-hero h1 { font-size: clamp(1.75rem, 9vw, 3rem); margin-bottom: 16px; overflow-wrap: break-word; }
.about-hero p { color: rgba(255,255,255,.75); max-width: 640px; font-size: 1.1rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.about-content h2 { font-size: 2rem; margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; }

/* 无图版「关于」：标题跨栏、正文两栏并排，避免右侧大片空白 */
.about-grid-text {
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: start;
}
.about-grid-text .about-title {
  grid-column: 1 / -1;
  font-size: 2rem;
  margin-bottom: 34px;
  color: var(--navy);
  text-align: center;
}
.about-grid-text p {
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 0;
  font-size: 1rem;
}
.about-grid-text .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 38px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card span { color: var(--text-muted); font-size: .9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .icon {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-muted); font-size: .9rem; }
.contact-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #e8eef7;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  margin-top: 8px;
  overflow: hidden;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group label .required { color: #e14b4b; margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-control::placeholder { color: #9ca5b3; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.form-error { color: #d23f3f; font-size: .85rem; margin-top: 6px; }

/* Login */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 100%);
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.auth-card h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: .95rem;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1.5px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px 4px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: .2s;
}
.auth-tab.active { color: var(--primary); border-color: var(--primary); }
.auth-tab:hover { color: var(--primary); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.otp-row { display: flex; gap: 12px; }
.otp-row .form-control { flex: 1; }
.otp-row .btn { padding-left: 16px; padding-right: 16px; white-space: nowrap; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .9rem;
  color: var(--text-muted);
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: .8rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Account */
.account-page { padding-top: calc(var(--header-height) + 40px); min-height: 100vh; background: var(--bg-soft); }
.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.account-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  align-self: start;
}
.account-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 16px;
}
.account-sidebar h2 { font-size: 1.15rem; margin-bottom: 4px; }
.account-sidebar .uid { font-size: .75rem; color: var(--text-muted); word-break: break-all; margin-bottom: 20px; }
.account-menu { list-style: none; padding: 0; margin: 0; }
.account-menu li { margin-bottom: 4px; }
.account-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600; font-size: .9rem;
}
.account-menu a:hover, .account-menu a.active { background: var(--primary-soft); color: var(--primary); }

.account-main { display: flex; flex-direction: column; gap: 28px; }
.account-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.account-card h3 { font-size: 1.15rem; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
  font-size: .95rem;
}

.message-list { display: flex; flex-direction: column; gap: 14px; }
.message-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.message-item header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.message-item .name { font-weight: 700; }
.message-item time { font-size: .8rem; color: var(--text-muted); }
.message-item .subject { font-size: .85rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.message-item p { color: var(--text); font-size: .9rem; }
.message-item .attachment { margin-top: 10px; font-size: .85rem; }

.file-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.file-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.file-card .name { font-weight: 600; word-break: break-all; font-size: .9rem; }
.file-card .meta { font-size: .75rem; color: var(--text-muted); }
.file-card .actions { display: flex; gap: 8px; }
.file-card .actions button { flex: 1; }

.upload-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: .2s;
}
.upload-drop:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.upload-drop input { display: none; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo-mark { color: #fff; }
.footer-brand .cn { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.65); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 90px; right: 24px;
  z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: #fff;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 240px;
  max-width: 360px;
  animation: slideIn .25s ease;
  font-size: .95rem;
}
.toast.error { border-color: #e14b4b; }
.toast.success { border-color: #28a745; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 多行内容（含换行）按原样显示 */
.data-multiline { white-space: pre-line; }

/* 后台标签页 */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab {
  padding: 10px 22px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy, #0b1e3d);
}
.admin-tab.active { background: var(--primary, #1668dc); color: #fff; border-color: var(--primary, #1668dc); }
.content-section { margin-bottom: 26px; }
.content-section h4 { margin-bottom: 12px; color: var(--navy, #0b1e3d); font-size: 1rem; }
.content-lang-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.content-lang-bar label { font-weight: 600; color: var(--navy, #0b1e3d); white-space: nowrap; }
.content-lang-bar select { max-width: 220px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11, 30, 61, .5);
  z-index: 3000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 420px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* Responsive */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-wall { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-img { height: 200px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid-text { gap: 20px; }
  .about-grid-text .btn { margin-top: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
}

@media (max-width: 768px) {
  .section-brands { padding: 40px 0 52px; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .main-nav .nav-login { margin-top: 8px; justify-content: center; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.15rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-wall { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .brand-logo { height: 44px; }
  .products-grid { grid-template-columns: 1fr; }
  .products-grid-4 { grid-template-columns: 1fr; }
  .product-img { height: 220px; padding: 12px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
  .hero-title { font-size: 2rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .brands-wall { grid-template-columns: repeat(2, 1fr); }
  .file-list { grid-template-columns: 1fr; }
}

/* ===== Product image in card ===== */
/* 产品图整张显示：contain + 自适应，避免横长/竖长产品被裁掉两端 */
.product-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img svg { flex: none; }

/* ===== Admin console ===== */
.admin-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--bg-soft);
}
.admin-head { margin-bottom: 24px; }
.admin-head h1 { font-size: 1.8rem; margin-bottom: 8px; }
.admin-head p { color: var(--text-muted); }
.admin-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.admin-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.admin-stats .s strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.admin-stats .s span { font-size: .78rem; color: var(--text-muted); }
.admin-actions { display: flex; gap: 10px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 880px; }
.data-table th {
  text-align: left; font-size: .72rem; letter-spacing: .04em;
  color: var(--text-muted); font-weight: 700;
  padding: 10px 12px; border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbfd; }
.data-table .sub { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.data-table .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--text-muted); }
.thumb {
  width: 52px; height: 52px; border-radius: 8px;
  object-fit: cover; background: var(--bg-soft); display: block;
}
.thumb-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 800; font-size: 1.1rem;
}
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  background: var(--primary-soft); color: var(--primary);
  font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.chip-primary { background: var(--primary); color: #fff; }
.row-actions { display: flex; gap: 8px; white-space: nowrap; }
.btn-xs { padding: 6px 12px; font-size: .78rem; }
.btn-danger { background: #fff; color: #d23f3f; border: 1.5px solid #f0c4c4; }
.btn-danger:hover { background: #fdf2f2; border-color: #e79a9a; }
.img-preview { margin-top: 12px; }
.img-preview img {
  max-width: 220px; max-height: 150px; display: block;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft);
}
.no-perm { text-align: center; padding: 48px 24px; }
.no-perm h3 { margin-bottom: 10px; }
.no-perm p { color: var(--text-muted); margin-bottom: 6px; }
.no-perm .code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 16px; display: inline-block;
  margin: 14px 0; word-break: break-all; user-select: all; font-size: .82rem;
}
.switch { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); padding-top: 10px; }
.switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.modal-lg { max-width: 680px; max-height: 88vh; overflow-y: auto; }

/* ===== 语言切换器 ===== */
.lang-switcher {
  position: relative;
  margin-left: 6px;
  display: inline-flex;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: .2s;
}
body.dark-hero .site-header:not(.scrolled) .lang-current {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.lang-current:hover { border-color: var(--primary); color: var(--primary); }
body.dark-hero .site-header:not(.scrolled) .lang-current:hover { color: #fff; border-color: #fff; }
.lang-current svg { transition: transform .2s; }
.lang-switcher.menu-open .lang-current svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1200;
}
.lang-menu.open { display: block; }
.lang-menu li {
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.lang-menu li:hover { background: var(--bg-soft); color: var(--primary); }
.lang-menu li.active { color: var(--primary); font-weight: 700; background: var(--primary-soft); }

/* ===== RTL（阿拉伯语）适配 ===== */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .hero-content,
html[dir="rtl"] .about-content,
html[dir="rtl"] .contact-info-item,
html[dir="rtl"] .feature-item,
html[dir="rtl"] .account-card,
html[dir="rtl"] .contact-info-card { text-align: right; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .product-meta,
html[dir="rtl"] .contact-info-item { flex-direction: row-reverse; }
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .admin-actions { flex-direction: row-reverse; }
html[dir="rtl"] .main-nav a::after { left: auto; right: 0; }
@media (max-width: 768px) {
  .admin-toolbar { flex-direction: column; align-items: flex-start; }
  .admin-actions { width: 100%; }
  .admin-actions .btn { flex: 1; }
}

/* ===== WhatsApp 咨询入口（悬浮按钮 + 页脚链接） ===== */
.wa-fab {
  position: fixed;
  right: 24px;
  z-index: 1300;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 17px;
  border-radius: 100px;
  background: #25d366;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .34);
  transition: transform .2s, box-shadow .2s, background .2s;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.wa-fab:hover {
  color: #fff;
  background: #1fbe5a;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, .42);
}
.wa-fab:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 3px; }
.wa-fab svg { width: 26px; height: 26px; flex: none; }
.wa-fab-label { white-space: nowrap; }

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.footer-wa svg { width: 15px; height: 15px; flex: none; color: #25d366; }
.footer-wa:hover { color: #25d366; text-decoration: underline; }

@media (max-width: 768px) {
  .wa-fab {
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
  }
  .wa-fab svg { width: 27px; height: 27px; }
  .wa-fab-label { display: none; }
}

html[dir="rtl"] .wa-fab { right: auto; left: 24px; }
@media (max-width: 768px) {
  html[dir="rtl"] .wa-fab { left: 14px; right: auto; }
}

/* 悬浮按钮避让：页脚底部右侧留给 WhatsApp，避免遮住备案号 */
.footer-bottom { padding-right: 150px; }
.wa-li { list-style: none; }
html[dir="rtl"] .footer-bottom { padding-right: 0; padding-left: 150px; }
@media (max-width: 768px) {
  .footer-bottom { padding-right: 0; padding-bottom: 76px; }
  html[dir="rtl"] .footer-bottom { padding-left: 0; padding-bottom: 76px; }
}

/* 阿拉伯语（RTL）下号码与图标保持从左到右，避免 +86 177… 被重排成 7623 5761 177 86+ */
.wa-fab { direction: ltr; }
.footer-wa { direction: ltr; }
.footer-wa .wa-txt { unicode-bidi: isolate; }
html[dir="rtl"] .footer-wa { flex-direction: row; }

/* 联系页信息卡里的 WhatsApp 链接（浅底） */
.contact-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.contact-wa:hover { text-decoration: underline; }
.contact-wa .wa-txt { unicode-bidi: isolate; }
.contact-info-item .icon svg { color: var(--primary); }
.contact-info-item:has(.contact-wa) .icon svg { color: #25d366; }

/* ===== 修复：关于页数据卡片在窄屏撑破屏幕 ===== */
/* 2 列时 "15,000 m²" / "2,000+" 的最小宽度大于 1fr 份额，导致 grid 溢出、页面横向滚动 */
.stat-card { min-width: 0; }
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .stat-card { padding: 22px 18px; }
  .stat-card strong { font-size: 2rem; }
}

/* ===== 修复：深色板块内卡片正文沿用浅底灰字，几乎看不清 ===== */
.section-dark .feature-item h3 { color: #fff; }
.section-dark .feature-item p { color: rgba(255, 255, 255, .76); }

/* ===== 修复：产品卡片在非中文语言下渲染出空的蓝色胶囊 ===== */
.product-meta span:empty { display: none; }

/* ===== 联系页位置卡（替换加载不出来的地图 iframe 灰块） ===== */
.contact-loc {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px 20px;
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-loc .loc-icon {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-loc h4 { font-size: .95rem; margin: 0 0 4px; color: var(--navy); }
.contact-loc p { font-size: .86rem; color: var(--text-muted); margin: 0 0 8px; line-height: 1.6; }
.contact-loc a { font-size: .84rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.contact-loc a:hover { text-decoration: underline; }

/* ===== 修复：手机端展开菜单是白底，但 dark-hero 首页把导航文字强制成白色 ===== */
/* 结果：点三条杠后面板打开，但链接白字叠白底，看起来完全空白 */
@media (max-width: 768px) {
  .main-nav {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.dark-hero .site-header:not(.scrolled) .main-nav a {
    color: var(--navy);
  }
  body.dark-hero .site-header:not(.scrolled) .main-nav a.active {
    color: var(--primary);
  }
  body.dark-hero .site-header:not(.scrolled) .main-nav a::after {
    background: var(--primary);
  }
  body.dark-hero .site-header:not(.scrolled) .main-nav .lang-current {
    background: #fff;
    border-color: var(--border);
    color: var(--navy);
  }
  body.dark-hero .site-header:not(.scrolled) .main-nav .lang-current:hover {
    color: var(--primary);
    border-color: var(--primary);
  }
  /* 菜单展开时让顶部导航条变成实底，避免面板与 hero 图片之间有透明缝隙 */
  body.dark-hero .site-header:has(.main-nav.open) {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
  }
  body.dark-hero .site-header:has(.main-nav.open) .logo-text .cn { color: var(--navy); }
  body.dark-hero .site-header:has(.main-nav.open) .logo-text .en { color: var(--text-muted); }
  body.dark-hero .site-header:has(.main-nav.open) .mobile-toggle span { background: var(--navy); }

  /* 菜单项分隔与更好的可点区域 */
  .main-nav { align-items: stretch; }
  .main-nav a {
    text-align: left;
    padding: 14px 2px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }
  .main-nav a:last-of-type { border-bottom: none; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--primary); }
  .main-nav .lang-switcher { margin-top: 10px; align-self: flex-start; }
}

/* 三条杠：加大点击热区 + 展开变 X */
.mobile-toggle {
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  transition: background .2s;
}
.mobile-toggle:hover { background: rgba(0, 0, 0, .05); }
.mobile-toggle span { transition: transform .22s, opacity .18s; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 阿语版：版式与中/英/俄/西一致（从左到右），但文本仍按阿语正确断行 =====
   只对文字容器启用 unicode-bidi: plaintext —— 段落基准方向由首个强字符决定（阿语即 RTL），
   标点、OEM/ODM 这类拉丁串、数字顺序才不会被打乱；元素方向与对齐方式不变，
   所以整页布局不再镜像，文字仍左对齐。 */
html[lang="ar"] :is(p, h1, h2, h3, h4, h5, h6, li, dt, dd, label, button, a, span, strong, small, em, td, th, blockquote, .desc, .vehicle, .product-name) {
  unicode-bidi: plaintext;
}

/* 阿语标题里的「·」分隔点两侧保持一个视觉间隔 */
html[lang="ar"] .hero-title { line-height: 1.55; }

/* 与中文版一致：文字左对齐（覆盖 plaintext 下浏览器按内容方向右对齐的行为） */
html[lang="ar"] :is(h1, h2, h3, h4, h5, h6, p, li, label, td, th) { text-align: left; }
html[lang="ar"] .hero-content,
html[lang="ar"] .about-content,
html[lang="ar"] .section-head { text-align: left; }

/* 手机端：首屏数据区避开右下角 WhatsApp 浮标，避免「10+」被压住 */
@media (max-width: 768px) {
  .hero-stats {
    gap: 14px;
    margin-top: 44px;
  }
  .hero-stats .stat strong { font-size: 1.6rem; }
  .hero-stats .stat span { font-size: .74rem; }
}
