/**
 * B2B应急食品询盘网站 - 全局样式表 v2.0
 * 四种语言独立配色 + 完整响应式 + RTL + 微动效
 * 
 * 配色方案（高辨识度）：
 *   中文(zh-CN): 墨绿色系 — 食品·商务·稳重
 *   英文(en):    宝蓝色系 — 国际·科技·极简
 *   俄文(ru):    暗红色系 — 工业·硬核·军工
 *   阿拉伯文(ar): 琥珀金色系 — 暖调·轻奢·中東
 * 
 * 选择器规则：
 *   html[lang="zh-CN"] / html[lang="en"] / html[lang="ru"] / html[lang="ar"]
 *   同时兼容 body[data-lang="..."] 回退
 */

/* =================================================================
   1. 基础重置
   ================================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* =================================================================
   2. 间距系统（8px 基准网格）
   ================================================================= */
:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

/* =================================================================
   3. CSS 自定义属性：中文版（墨绿色系）
   选择器: html[lang="zh-CN"]（I18n.switch 实际设置值）
   ================================================================= */
html[lang="zh-CN"],
body[data-lang="zh"] {
  /* ── 色板 ── */
  --primary:        #1A5632;   /* 墨绿 - 食品行业天然联想 */
  --primary-dark:   #0F3D22;   /* 深墨绿 */
  --primary-light:  #E8F5E9;   /* 浅绿底 */
  --accent:         #D4783B;   /* 暖橙 CTA */
  --accent-hover:   #B85F2A;   /* 橙悬停 */
  --bg:             #FAFBFC;   /* 接近白 */
  --bg-secondary:   #F2F5F3;   /* 微绿灰底 */
  --bg-card:        #FFFFFF;
  --text:           #1A1A1A;   /* 近黑 */
  --text-secondary: #6B7280;   /* 灰字 */
  --text-inverse:   #FFFFFF;
  --border:         #E5E7EB;
  --border-light:   #F0F1F3;

  /* ── 阴影层级 ── */
  --shadow-xs:  0 1px 2px rgba(26,86,50,0.04);
  --shadow-sm:  0 1px 3px rgba(26,86,50,0.06), 0 1px 2px rgba(26,86,50,0.04);
  --shadow-md:  0 4px 12px rgba(26,86,50,0.08), 0 2px 4px rgba(26,86,50,0.04);
  --shadow-lg:  0 8px 24px rgba(26,86,50,0.10), 0 4px 8px rgba(26,86,50,0.05);
  --shadow-xl:  0 20px 48px rgba(26,86,50,0.12);

  /* ── 圆角 ── */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* ── 导航栏 ── */
  --header-bg:       linear-gradient(135deg, #1A5632 0%, #0F3D22 100%);
  --header-bg-solid: #1A5632;
  --header-text:     rgba(255,255,255,0.90);
  --header-border:   rgba(255,255,255,0.12);

  /* ── CTA ── */
  --btn-primary-bg:  linear-gradient(135deg, #1A5632 0%, #0F3D22 100%);
  --btn-primary-hover: linear-gradient(135deg, #226C41 0%, #154E2B 100%);
  --whatsapp:        #25D366;
  --whatsapp-hover:  #128C7E;

  /* ── 分区背景 ── */
  --section-bg-alt:  #F0F4F1;

  /* ── 字体 ── */
  --font-body:    "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-heading: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono:    "SF Mono", "Cascadia Code", monospace;
  --line-height:  1.6;
  --line-height-heading: 1.3;

  /* ── 其他 ── */
  --accent-glow:  0 0 0 3px rgba(212,120,59,0.2);
}

/* =================================================================
   4. CSS 自定义属性：英文版（宝蓝色系）
   ================================================================= */
html[lang="en"],
body[data-lang="en"] {
  --primary:        #1E40AF;   /* 宝蓝 - Stripe 式商务蓝 */
  --primary-dark:   #1E3A8A;   /* 深蓝 */
  --primary-light:  #EFF6FF;   /* 极浅蓝 */
  --accent:         #F97316;   /* 亮橙 CTA */
  --accent-hover:   #EA580C;
  --bg:             #FFFFFF;
  --bg-secondary:   #F8FAFC;
  --bg-card:        #FFFFFF;
  --text:           #0F172A;
  --text-secondary: #64748B;
  --text-inverse:   #FFFFFF;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;

  --shadow-xs:  0 1px 2px rgba(30,64,175,0.04);
  --shadow-sm:  0 1px 3px rgba(30,64,175,0.06), 0 1px 2px rgba(30,64,175,0.04);
  --shadow-md:  0 4px 12px rgba(30,64,175,0.08), 0 2px 4px rgba(30,64,175,0.04);
  --shadow-lg:  0 8px 24px rgba(30,64,175,0.10), 0 4px 8px rgba(30,64,175,0.05);
  --shadow-xl:  0 20px 48px rgba(30,64,175,0.12);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  --header-bg:       #1E40AF;
  --header-bg-solid: #1E40AF;
  --header-text:     rgba(255,255,255,0.92);
  --header-border:   rgba(255,255,255,0.10);

  --btn-primary-bg:  #1E40AF;
  --btn-primary-hover: #1E3A8A;
  --whatsapp:        #25D366;
  --whatsapp-hover:  #128C7E;

  --section-bg-alt:  #F8FAFC;

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", monospace;
  --line-height:  1.6;
  --line-height-heading: 1.25;

  --accent-glow:  0 0 0 3px rgba(249,115,22,0.2);
}

/* =================================================================
   5. CSS 自定义属性：俄文版（暗红色系）
   ================================================================= */
html[lang="ru"],
body[data-lang="ru"] {
  --primary:        #7B1A1A;   /* 暗红 - 俄罗斯传统力量色 */
  --primary-dark:   #5C1111;   /* 更深红 */
  --primary-light:  #FEF2F2;   /* 浅红底 */
  --accent:         #C9A84C;   /* 金色点缀 */
  --accent-hover:   #A8894A;
  --bg:             #FFFFFF;
  --bg-secondary:   #F5F5F5;
  --bg-card:        #FFFFFF;
  --text:           #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-inverse:   #FFFFFF;
  --border:         #E0E0E0;
  --border-light:   #F0F0F0;

  --shadow-xs:  0 1px 2px rgba(123,26,26,0.04);
  --shadow-sm:  0 1px 3px rgba(123,26,26,0.08), 0 1px 2px rgba(123,26,26,0.04);
  --shadow-md:  0 4px 12px rgba(123,26,26,0.10), 0 2px 4px rgba(123,26,26,0.06);
  --shadow-lg:  0 8px 24px rgba(123,26,26,0.12), 0 4px 8px rgba(123,26,26,0.06);
  --shadow-xl:  0 20px 48px rgba(123,26,26,0.14);

  --radius-sm:  2px;
  --radius-md:  2px;
  --radius-lg:  4px;
  --radius-xl:  4px;
  --radius-full: 2px;

  --header-bg:       linear-gradient(180deg, #7B1A1A 0%, #5C1111 100%);
  --header-bg-solid: #7B1A1A;
  --header-text:     rgba(255,255,255,0.90);
  --header-border:   rgba(255,255,255,0.10);

  --btn-primary-bg:  #7B1A1A;
  --btn-primary-hover: #5C1111;
  --whatsapp:        #25D366;
  --whatsapp-hover:  #128C7E;

  --section-bg-alt:  #F5F5F5;

  --font-body:    "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;
  --line-height:  1.5;
  --line-height-heading: 1.2;

  --accent-glow:  0 0 0 3px rgba(201,168,76,0.25);
}

/* =================================================================
   6. CSS 自定义属性：阿拉伯文版（琥珀金色系）
   ================================================================= */
html[lang="ar"],
body[data-lang="ar"] {
  --primary:        #8B6914;   /* 暖棕金 - 沙漠暖色调 */
  --primary-dark:   #6B5010;   /* 深金棕 */
  --primary-light:  #FEF9F0;   /* 暖米白底 */
  --accent:         #C4A35A;   /* 哑光金 */
  --accent-hover:   #A8894A;
  --bg:             #FAF7F2;   /* 暖米白 */
  --bg-secondary:   #F2EDE4;   /* 浅砂色 */
  --bg-card:        #FFFFFF;
  --text:           #1A2744;
  --text-secondary: #7A7A8A;
  --text-inverse:   #FFFFFF;
  --border:         #E8E3D8;
  --border-light:   #F0EDE6;

  --shadow-xs:  0 1px 2px rgba(139,105,20,0.04);
  --shadow-sm:  0 1px 3px rgba(139,105,20,0.06), 0 1px 2px rgba(139,105,20,0.04);
  --shadow-md:  0 4px 14px rgba(139,105,20,0.08), 0 2px 4px rgba(139,105,20,0.04);
  --shadow-lg:  0 8px 28px rgba(139,105,20,0.10), 0 4px 8px rgba(139,105,20,0.05);
  --shadow-xl:  0 20px 50px rgba(139,105,20,0.12);

  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --radius-xl:  14px;
  --radius-full: 9999px;

  --header-bg:       linear-gradient(135deg, #8B6914 0%, #6B5010 100%);
  --header-bg-solid: #8B6914;
  --header-text:     rgba(255,255,255,0.90);
  --header-border:   rgba(255,255,255,0.12);

  --btn-primary-bg:  linear-gradient(135deg, #C4A35A 0%, #A8894A 100%);
  --btn-primary-hover: linear-gradient(135deg, #D4B36A 0%, #B8995A 100%);
  --whatsapp:        #25D366;
  --whatsapp-hover:  #128C7E;

  --section-bg-alt:  #F2EDE4;

  --font-body:    "Cairo", "Tajawal", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-heading: "Cairo", "Tajawal", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-mono:    "SF Mono", monospace;
  --line-height:  1.75;
  --line-height-heading: 1.45;

  --accent-glow:  0 0 0 3px rgba(196,163,90,0.25);
}

/* =================================================================
   7. 全局通用样式
   ================================================================= */
body {
  font-family: var(--font-body);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* 分区 */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-heading);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =================================================================
   8. 按钮系统
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* 主按钮 */
.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--accent-glow);
}

/* WhatsApp 按钮 */
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

/* 边框按钮 */
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* =================================================================
   9. 卡片系统
   ================================================================= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* =================================================================
   10. 导航栏
   ================================================================= */
.header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: background 0.3s ease;
}

.header-top {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--header-border);
}

.header-main {
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Logo 区域 */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
}

/* 语言切换按钮 */
.lang-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--header-text);
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--header-border);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.35);
}

.lang-btn.active {
  background: rgba(255,255,255,0.28);
  color: #fff;
  border-color: rgba(255,255,255,0.50);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

/* 联系快捷入口 */
.header-contact {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.header-contact a:hover {
  background: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

/* 主导航链接 */
.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  color: var(--header-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}
.mobile-menu-btn:hover {
  background: rgba(255,255,255,0.25);
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* 详情页返回按钮 */
.mobile-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.mobile-back-btn:hover {
  background: rgba(255,255,255,0.30);
  border-color: rgba(255,255,255,0.40);
  transform: translateX(-2px);
}
.back-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* RTL 下返回箭头翻转 */
html[dir="rtl"] .mobile-back-btn:hover {
  transform: translateX(2px);
}
html[dir="rtl"] .back-icon {
  transform: scaleX(-1);
}

/* =================================================================
   11. 首页 Banner
   ================================================================= */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.40);
  z-index: 0;
  transform: scale(1.02); /* 防边缘白线 */
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
  max-width: 800px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: var(--line-height-heading);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* =================================================================
   12. 产品筛选与列表
   ================================================================= */
.products-section {
  background: var(--bg-secondary);
}

.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 产品网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.product-img-wrap {
  position: relative;
  padding-top: 66%;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-info {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info .product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-actions {
  display: flex;
  gap: var(--space-sm);
}

.product-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
}

/* =================================================================
   13. 核心优势（紧凑卡片布局）
   ================================================================= */
.advantages-section {
  background: var(--bg);
  /* 紧凑模式：减少分区内边距 */
  padding: var(--space-2xl) 0;
}

/* 桌面端 4列，平板 2列，手机 1列 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

.advantage-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.adv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.advantage-card:hover .adv-icon {
  transform: scale(1.1);
}

.advantage-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.advantage-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =================================================================
   14. 应用场景
   ================================================================= */
.scenes-section {
  background: var(--section-bg-alt);
  /* 紧凑模式：减少分区内边距 */
  padding: var(--space-2xl) 0;
}

/* 桌面端 6列，平板 3列，手机 2列 */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}
@media (max-width: 1024px) {
  .scenes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .scenes-grid { grid-template-columns: repeat(2, 1fr); }
}

.scene-item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.scene-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.scene-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.scene-item:hover .scene-icon {
  transform: scale(1.1);
}

.scene-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* =================================================================
   15. 页脚
   ================================================================= */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.80);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.70);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  transition: color 0.2s ease;
}

.footer-col p span,
.footer-col a span {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-col * {
  text-align: left;
}

.footer-col a:hover {
  color: #fff;
}

/* 页脚分类可点击链接 */
.footer-cat-link,
.footer-col a.footer-cat-link {
  display: block;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.2s ease, padding-left 0.2s ease, padding-right 0.2s ease;
  cursor: pointer;
}
.footer-cat-link:hover,
.footer-col a.footer-cat-link:hover {
  color: #fff;
  padding-left: 6px;
}
/* RTL 下悬停方向反转 */
html[dir="rtl"] .footer-cat-link:hover,
html[dir="rtl"] .footer-col a.footer-cat-link:hover {
  padding-left: 0;
  padding-right: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.50);
}

/* =================================================================
   16. 浮动询盘按钮
   ================================================================= */
.floating-inquiry {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: fabPulse 2s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
}

.fab:active {
  transform: scale(0.95);
}

.fab-whatsapp {
  background: var(--whatsapp);
}

.fab-email {
  background: #EA4335;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: var(--shadow-md); }
  50% { box-shadow: 0 6px 22px rgba(0,0,0,0.25); }
}

/* =================================================================
   17. 产品详情页
   ================================================================= */
.detail-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.detail-breadcrumb a:hover {
  color: var(--primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.detail-gallery {
  position: relative;
}

.detail-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.detail-thumb-list {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  overflow-x: auto;
}

.detail-thumb-list img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.detail-thumb-list img.active,
.detail-thumb-list img:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.detail-info h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-heading);
}

.detail-block {
  margin-bottom: var(--space-lg);
}

.detail-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-light);
}

.detail-block p,
.detail-block ul {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
}

.detail-block ul {
  padding-left: 18px;
  list-style: disc;
}

/* 安全提示警示色块 */
.detail-safety { margin-bottom: var(--space-lg); }
.safety-alert {
  background: #fff1e0;
  border: 1px solid #e8a34b;
  border-left: 4px solid #e8a34b;
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  color: #1a1a1a;
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 500;
}
.safety-alert .safety-text { display: block; }
html[dir="rtl"] .safety-alert {
  border-left: 1px solid #e8a34b;
  border-right: 4px solid #e8a34b;
  text-align: right;
  direction: rtl;
}

.detail-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.detail-cta .btn {
  flex: 1;
  min-width: 150px;
  padding: 16px 24px;
  font-size: 1rem;
  text-align: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* =================================================================
   18. 后台登录页
   ================================================================= */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: var(--space-md);
}

.login-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
}

.login-box h2 {
  text-align: center;
  margin-bottom: var(--space-sm);
  color: #1a1a2e;
  font-size: 1.5rem;
  font-weight: 700;
}

.login-box .login-sub {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102,126,234,0.35);
}
.login-btn:active {
  transform: scale(0.98);
}

.login-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: var(--space-md);
  text-align: center;
  display: none;
}

/* =================================================================
   19. 后台管理面板
   ================================================================= */
.admin-page {
  min-height: 100vh;
  background: #f0f2f5;
}

.admin-header {
  background: #fff;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header h1 {
  font-size: 1.25rem;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.admin-header .admin-actions {
  display: flex;
  gap: var(--space-md);
}

.admin-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}
.admin-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.30);
}

.admin-btn-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}
.admin-btn-secondary:hover {
  background: #f5f5f5;
}

.admin-btn-danger {
  background: #fff;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}
.admin-btn-danger:hover {
  background: #e74c3c;
  color: #fff;
}

.admin-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid #e8e8e8;
  padding: var(--space-lg) 0;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-lg);
  color: #666;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: #f0f2f5;
  color: #667eea;
  border-left-color: #667eea;
}

.admin-main {
  padding: var(--space-lg);
  overflow-y: auto;
}

/* 后台卡片 */
.admin-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* 后台表格 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 12px var(--space-md);
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:hover {
  background: #f8f9fa;
}

.admin-table img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.admin-table .actions {
  display: flex;
  gap: var(--space-sm);
}

.admin-table .actions button {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}
.btn-edit:hover {
  background: #1565c0;
  color: #fff;
}

.btn-delete {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.btn-delete:hover {
  background: #c62828;
  color: #fff;
}

/* 后台表单网格 */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.admin-form-grid .form-group.full {
  grid-column: 1 / -1;
}

/* 语言标签页 */
.lang-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid #eee;
  padding-bottom: var(--space-sm);
}

.lang-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: #f5f5f5;
  border: none;
  color: #666;
  transition: all 0.2s ease;
}

.lang-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.lang-panel {
  display: none;
}
.lang-panel.active {
  display: block;
}

/* 图片上传区域 */
.image-upload-area {
  border: 2px dashed #ddd;
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafafa;
}
.image-upload-area:hover {
  border-color: #667eea;
  background: #f0f2ff;
}
.image-upload-area input {
  display: none;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #ddd;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(231,76,60,0.90);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.image-preview-item .remove-img:hover {
  background: rgba(231,76,60,1);
}

/* 设置网格 */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.settings-grid .form-group.full {
  grid-column: 1 / -1;
}

/* =================================================================
   20. 模态框
   ================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
  animation: modalIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: #666;
  border: none;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: #eee;
  color: #333;
}

/* =================================================================
   21. RTL 阿拉伯语全局适配
   ================================================================= */
html[dir="rtl"],
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* 导航栏 RTL */
html[dir="rtl"] .header-inner {
  flex-direction: row-reverse !important;
}
html[dir="rtl"] .logo-area {
  flex-direction: row-reverse;
}
html[dir="rtl"] .lang-switcher {
  flex-direction: row-reverse;
}
html[dir="rtl"] .header-contact {
  flex-direction: row-reverse;
}

/* 导航链接 RTL */
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse !important;
  justify-content: flex-end;
}
html[dir="rtl"] .nav-links a::after {
  left: auto !important;
  right: 0 !important;
}

/* Hero RTL */
html[dir="rtl"] .hero-content {
  direction: rtl;
}
html[dir="rtl"] .hero-btns {
  flex-direction: row-reverse;
}

/* 产品区域 RTL */
html[dir="rtl"] .products-grid {
  direction: rtl;
}
html[dir="rtl"] .product-card {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .product-category-tag {
  left: auto;
  right: 12px;
}
html[dir="rtl"] .product-info h3,
html[dir="rtl"] .product-info .product-desc {
  text-align: right;
}
html[dir="rtl"] .product-actions {
  flex-direction: row-reverse;
}

/* 筛选按钮 RTL */
html[dir="rtl"] .filter-bar {
  direction: rtl;
}

/* 优势板块 RTL */
html[dir="rtl"] .advantages-grid {
  direction: rtl;
}
html[dir="rtl"] .advantage-card {
  direction: rtl;
}

/* 场景板块 RTL */
html[dir="rtl"] .scenes-grid {
  direction: rtl;
}

/* 页脚 RTL */
html[dir="rtl"] .footer-grid {
  direction: rtl;
}
html[dir="rtl"] .footer-col,
html[dir="rtl"] .footer-col * {
  direction: rtl;
  text-align: right !important;
}
html[dir="rtl"] .footer-col h4 {
  text-align: right !important;
}
html[dir="rtl"] .footer-col a,
html[dir="rtl"] .footer-col p {
  flex-direction: row-reverse;
  justify-content: flex-end !important;
  text-align: right !important;
}
html[dir="rtl"] .footer-bottom {
  direction: rtl;
}
html[dir="rtl"] .footer-bottom * {
  text-align: center !important;
}

/* 浮动按钮 RTL */
html[dir="rtl"] .floating-inquiry {
  right: auto;
  left: var(--space-lg);
}

/* 详情页 RTL */
html[dir="rtl"] .detail-grid {
  direction: rtl;
}
html[dir="rtl"] .detail-breadcrumb {
  flex-direction: row-reverse;
  direction: rtl;
}
html[dir="rtl"] .detail-info {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .detail-info h1,
html[dir="rtl"] .detail-block h3,
html[dir="rtl"] .detail-block p,
html[dir="rtl"] .detail-block ul {
  text-align: right;
}
html[dir="rtl"] .detail-block ul {
  padding-left: 0;
  padding-right: 18px;
}
html[dir="rtl"] .detail-cta {
  flex-direction: row-reverse;
}
html[dir="rtl"] .detail-thumb-list {
  direction: rtl;
}

/* 后台 RTL */
html[dir="rtl"] .admin-body {
  direction: rtl;
}
html[dir="rtl"] .admin-sidebar a {
  border-left: none;
  border-right: 3px solid transparent;
  flex-direction: row-reverse;
}
html[dir="rtl"] .admin-sidebar a:hover,
html[dir="rtl"] .admin-sidebar a.active {
  border-left-color: transparent;
  border-right-color: #667eea;
}
html[dir="rtl"] .admin-table th,
html[dir="rtl"] .admin-table td {
  text-align: right;
}
html[dir="rtl"] .admin-form-grid {
  direction: rtl;
}
html[dir="rtl"] .lang-tabs {
  flex-direction: row-reverse;
}
html[dir="rtl"] .settings-grid {
  direction: rtl;
}
html[dir="rtl"] .modal-close {
  right: auto;
  left: var(--space-md);
}
html[dir="rtl"] .image-preview-item .remove-img {
  right: auto;
  left: 4px;
}

/* =================================================================
   22. 语言专属视觉增强
   ================================================================= */

/* ── 英文版增强：极简国际商务 ── */
html[lang="en"] .btn-primary,
body[data-lang="en"] .btn-primary {
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  font-weight: 600;
}
html[lang="en"] .btn-outline,
body[data-lang="en"] .btn-outline {
  border-width: 1.5px;
  border-radius: var(--radius-sm);
}
html[lang="en"] .card,
body[data-lang="en"] .card {
  box-shadow: none;
  border: 1px solid var(--border);
}
html[lang="en"] .card:hover,
body[data-lang="en"] .card:hover {
  box-shadow: var(--shadow-lg);
}
html[lang="en"] .section-title,
body[data-lang="en"] .section-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[lang="en"] .hero h1,
body[data-lang="en"] .hero h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
}
html[lang="en"] .hero-badge,
body[data-lang="en"] .hero-badge {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
}
html[lang="en"] .filter-btn,
body[data-lang="en"] .filter-btn {
  border-width: 1.5px;
}
html[lang="en"] .lang-btn,
body[data-lang="en"] .lang-btn {
  border-radius: var(--radius-sm);
}

/* ── 阿拉伯文版增强：暖调轻奢 ── */
html[lang="ar"] .btn-primary,
body[data-lang="ar"] .btn-primary {
  background: var(--btn-primary-bg);
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
html[lang="ar"] .btn-primary::before,
body[data-lang="ar"] .btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}
html[lang="ar"] .btn-primary:hover::before,
body[data-lang="ar"] .btn-primary:hover::before {
  left: 100%;
}
html[lang="ar"] .btn-outline,
body[data-lang="ar"] .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
html[lang="ar"] .btn-outline:hover,
body[data-lang="ar"] .btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
html[lang="ar"] .product-card,
body[data-lang="ar"] .product-card {
  border-top: 2px solid transparent;
}
html[lang="ar"] .product-card:hover,
body[data-lang="ar"] .product-card:hover {
  border-top-color: var(--accent);
}
html[lang="ar"] .advantage-card,
body[data-lang="ar"] .advantage-card {
  position: relative;
  border: 1px solid var(--border);
}
html[lang="ar"] .advantage-card::after,
body[data-lang="ar"] .advantage-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}
html[lang="ar"] .advantage-card:hover::after,
body[data-lang="ar"] .advantage-card:hover::after {
  width: 60%;
}
html[lang="ar"] .adv-icon,
body[data-lang="ar"] .adv-icon {
  background: linear-gradient(135deg, var(--primary-light) 0%, #EDE8DF 100%);
  border: 1px solid rgba(196,163,90,0.20);
}
html[lang="ar"] .scene-item,
body[data-lang="ar"] .scene-item {
  border: 1px solid var(--border);
}
html[lang="ar"] .scene-item:hover,
body[data-lang="ar"] .scene-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(196,163,90,0.14);
}
html[lang="ar"] .scene-icon,
body[data-lang="ar"] .scene-icon {
  background: linear-gradient(135deg, var(--primary-light) 0%, #EDE8DF 100%);
}
html[lang="ar"] .section-title,
body[data-lang="ar"] .section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}
html[lang="ar"] .hero-badge,
body[data-lang="ar"] .hero-badge {
  background: rgba(196,163,90,0.15);
  border: 1px solid rgba(196,163,90,0.30);
  color: var(--accent);
  font-weight: 600;
}
html[lang="ar"] .footer,
body[data-lang="ar"] .footer {
  background: linear-gradient(180deg, #6B5010 0%, #5A420C 100%);
}
html[lang="ar"] .floating-inquiry .fab-whatsapp,
body[data-lang="ar"] .floating-inquiry .fab-whatsapp {
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
}

/* ── 俄文版增强：硬核工业军工风 ── */
html[lang="ru"] .btn-primary,
body[data-lang="ru"] .btn-primary {
  background: var(--btn-primary-bg);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
}
html[lang="ru"] .btn-primary::after,
body[data-lang="ru"] .btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
html[lang="ru"] .btn-primary:hover::after,
body[data-lang="ru"] .btn-primary:hover::after {
  width: 100%;
}
html[lang="ru"] .btn-outline,
body[data-lang="ru"] .btn-outline {
  border-width: 2px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 0.85rem;
}
html[lang="ru"] .card,
body[data-lang="ru"] .card {
  border: 1px solid var(--border);
}
html[lang="ru"] .product-card,
body[data-lang="ru"] .product-card {
  border-left: 3px solid transparent;
}
html[lang="ru"] .product-card:hover,
body[data-lang="ru"] .product-card:hover {
  border-left-color: var(--accent);
}
html[lang="ru"] .advantage-card,
body[data-lang="ru"] .advantage-card {
  border: 1px solid var(--border);
}
html[lang="ru"] .advantage-card:hover,
body[data-lang="ru"] .advantage-card:hover {
  border-color: var(--accent);
}
html[lang="ru"] .adv-icon,
body[data-lang="ru"] .adv-icon {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
html[lang="ru"] .scene-item,
body[data-lang="ru"] .scene-item {
  border: 1px solid var(--border);
}
html[lang="ru"] .scene-item:hover,
body[data-lang="ru"] .scene-item:hover {
  border-color: var(--accent);
}
html[lang="ru"] .scene-icon,
body[data-lang="ru"] .scene-icon {
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid var(--border);
}
html[lang="ru"] .filter-btn,
body[data-lang="ru"] .filter-btn {
  border-width: 1.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  font-weight: 600;
}
html[lang="ru"] .section-title,
body[data-lang="ru"] .section-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
html[lang="ru"] .hero-badge,
body[data-lang="ru"] .hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: 600;
}
html[lang="ru"] .footer,
body[data-lang="ru"] .footer {
  background: #5C1111;
  border-top: 3px solid var(--accent);
}
html[lang="ru"] .header,
body[data-lang="ru"] .header {
  border-bottom: 2px solid rgba(255,255,255,0.08);
}
html[lang="ru"] .floating-inquiry .fab,
body[data-lang="ru"] .floating-inquiry .fab {
  border-radius: var(--radius-sm);
}
html[lang="ru"] .lang-btn,
body[data-lang="ru"] .lang-btn {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}

/* ── 中文版增强：稳重商务留白 ── */
html[lang="zh-CN"] .btn-primary,
body[data-lang="zh"] .btn-primary {
  letter-spacing: 0.03em;
}
html[lang="zh-CN"] .section-title,
body[data-lang="zh"] .section-title {
  font-weight: 700;
  letter-spacing: 0.04em;
}
html[lang="zh-CN"] .hero h1,
body[data-lang="zh"] .hero h1 {
  font-weight: 800;
  letter-spacing: 0.02em;
}
html[lang="zh-CN"] .product-card,
body[data-lang="zh"] .product-card {
  border-radius: var(--radius-sm);
}
html[lang="zh-CN"] .advantage-card:hover,
body[data-lang="zh"] .advantage-card:hover {
  border-color: var(--primary);
}
html[lang="zh-CN"] .scene-item:hover,
body[data-lang="zh"] .scene-item:hover {
  border-color: var(--primary);
}

/* =================================================================
   23. 响应式适配
   ================================================================= */

/* ── 平板及以下（≤1024px） ── */
@media (max-width: 1024px) {
  .detail-grid {
    gap: var(--space-lg);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 手机横屏/小平板（≤768px） ── */
@media (max-width: 768px) {
  :root {
    --space-2xl: 32px;
    --space-3xl: 40px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: var(--space-xl);
  }

  /* 导航栏 */
  .header-top { padding: 8px 0; }
  .header-main { padding: 8px 0; }
  .header-inner { gap: var(--space-sm); }
  .logo-text { font-size: 0.9rem; }
  .logo-text small { font-size: 0.6rem; }
  .logo-img { width: 36px; height: 36px; font-size: 1.25rem; }

  .lang-switcher { gap: 4px; }
  .lang-btn { padding: 4px 10px; font-size: 0.7rem; }
  .header-contact { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg-solid);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn { display: flex; }
  .mobile-back-btn { display: inline-flex; }

  /* Hero */
  .hero { min-height: 320px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }

  /* 产品 */
  .products-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .filter-bar { gap: var(--space-xs); }
  .filter-btn { padding: 6px 14px; font-size: 0.8rem; }

  /* 移动端筛选栏悬停固定 */
  .filter-bar-sticky {
    position: sticky;
    top: 56px;
    z-index: 90;
    background: var(--bg);
    padding: var(--space-xs) 0;
    margin: 0 calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar-sticky::-webkit-scrollbar { display: none; }

  /* 优势（紧凑适配） */
  .advantage-card { padding: var(--space-lg) var(--space-md); }
  .adv-icon { width: 48px; height: 48px; }
  .advantage-card h3 { font-size: 0.9rem; }
  .advantage-card p { font-size: 0.78rem; }

  /* 场景 */
  .scene-item { padding: var(--space-md) var(--space-sm); }
  .scene-icon { width: 44px; height: 44px; }
  .scene-item span { font-size: 0.78rem; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer { padding: var(--space-xl) 0 var(--space-md); }

  /* 浮动按钮 */
  .floating-inquiry { bottom: var(--space-md); right: var(--space-md); gap: var(--space-sm); }
  .fab { width: 48px; height: 48px; font-size: 1.25rem; }

  /* 详情页 */
  .detail-grid {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
    gap: var(--space-lg);
  }
  .detail-info h1 { font-size: 1.2rem; }
  .detail-cta { flex-direction: column; }
  .detail-cta .btn { width: 100%; }

  /* 登录 */
  .login-box { padding: var(--space-lg) var(--space-md); }

  /* 后台 */
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    z-index: 99;
    padding: var(--space-sm) 0;
    border-right: none;
  }
  .admin-sidebar.active {
    display: flex;
    justify-content: space-around;
  }
  .admin-sidebar a {
    flex-direction: column;
    padding: var(--space-sm);
    font-size: 0.75rem;
    border: none;
    text-align: center;
    gap: 4px;
  }
  .admin-main { padding: var(--space-md); padding-bottom: 80px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .admin-table { font-size: 0.8rem; }
  .admin-table th, .admin-table td { padding: var(--space-sm); }
  .admin-table img { width: 36px; height: 36px; }
  .modal-content { padding: var(--space-lg); max-height: 85vh; }
}

/* ── 小手机（≤480px） ── */
@media (max-width: 480px) {
  :root {
    --space-2xl: 28px;
    --space-3xl: 32px;
  }

  .container { padding: 0 var(--space-sm); }

  .hero { min-height: 280px; }
  .hero h1 { font-size: 1.25rem; }
  .hero-content { padding: var(--space-xl) var(--space-sm); }
  .hero-badge { font-size: 0.7rem; padding: 4px 12px; }

  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .scenes-grid { grid-template-columns: repeat(2, 1fr); }

  .section-title { font-size: 1.2rem; }

  .detail-grid { padding: var(--space-md); }
  .detail-main-img { aspect-ratio: 1/1; }
}

/* ── 桌面大屏（≥1400px） ── */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =================================================================
   24. 通用工具类
   ================================================================= */
.hidden { display: none !important; }

/* 骨架加载动画 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 淡入上滑动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================================================
   25. 页面过渡动画（按语言差异化）
   ================================================================= */

/* ── 中文：简洁淡入（250ms ease-out） ── */
.page-enter-zh {
  animation: fadeInPage 0.25s ease-out;
}
.page-exit-zh {
  animation: fadeOutPage 0.2s ease-in forwards;
}

/* ── 英文：横向滑动（300ms ease-in-out） ── */
.page-enter-en {
  animation: slideInRight 0.3s ease-in-out;
}
.page-exit-en {
  animation: slideOutLeft 0.25s ease-in forwards;
}

/* ── 俄语：缩放+淡入（350ms ease-out） ── */
.page-enter-ru {
  animation: zoomInPage 0.35s ease-out;
}
.page-exit-ru {
  animation: zoomOutPage 0.3s ease-in forwards;
}

/* 阿拉伯语：无动画（直接跳转，无任何过渡） */

/* 动画关键帧 */
@keyframes fadeInPage {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOutPage {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}
@keyframes zoomInPage {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes zoomOutPage {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.98); }
}

/* =================================================================
   26. 打印样式
   ================================================================= */
@media print {
  .header,
  .floating-inquiry,
  .hero-bg,
  .mobile-menu-btn,
  .lang-switcher {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .hero {
    min-height: auto;
    color: #000;
  }
}