/* ===== 全局重置与变量 ===== */
:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-200: #bbf7d0;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.bg-light { background: var(--gray-50); }

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all .3s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: var(--white); color: var(--green-800); }
.btn-secondary {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--green-300);
}
.btn-secondary:hover { background: var(--green-50); border-color: var(--green-500); }
.btn-block { width: 100%; }

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-800);
}
.logo-icon { font-size: 1.6rem; }
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-600);
  transition: width .3s;
}
.nav a:hover, .nav a.active { color: var(--green-700); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== 导航操作区（语言切换 + 汉堡） ===== */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ===== 语言切换器 ===== */
.lang-switcher { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: all .2s;
  font-family: inherit;
}
.lang-current:hover { background: var(--green-50); border-color: var(--green-300); }
.lang-flag { display: inline-flex; align-items: center; line-height: 0; }
.lang-flag svg { flex-shrink: 0; }
.lang-code { letter-spacing: .5px; }
.lang-arrow { opacity: .5; transition: transform .2s; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 100;
  list-style: none;
}
.lang-dropdown.open { display: block; }
.lang-dropdown li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.lang-dropdown li:hover { background: var(--green-50); }
.lang-dropdown li.active { background: var(--green-100); font-weight: 700; color: var(--green-800); }
.lang-dropdown li svg { flex-shrink: 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14532d 0%, #166534 30%, #15803d 60%, #16a34a 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.05) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px);
  pointer-events: none;
}
.hero-overlay { display: none; }
.hero-content { text-align: center; color: var(--white); position: relative; z-index: 1; padding: 120px 0 80px; }
.hero-title { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 900; line-height: 1.2; margin-bottom: 8px; }
.hero-subtitle { display: block; font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 400; opacity: .85; margin-top: 8px; letter-spacing: .4em; }
.hero-desc { font-size: 1.1rem; opacity: .9; margin: 24px 0 36px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 产品优势 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--green-900); }
.feature-card p { color: var(--gray-500); font-size: .95rem; }

/* ===== 型号卡片 ===== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.model-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all .3s;
  position: relative;
}
.model-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.model-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--green-600);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  z-index: 2;
}
.model-badge-new { background: #f59e0b; }
.model-placeholder {
  height: 260px;
  background: linear-gradient(135deg, var(--green-100) 0%, var(--gray-100) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gray-500);
  font-weight: 700;
  font-size: 1.1rem;
}
.model-placeholder small { font-weight: 400; font-size: .8rem; opacity: .7; }
.model-info { padding: 24px; }
.model-info h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--green-900); }
.model-info ul { margin-bottom: 20px; }
.model-info li {
  padding: 6px 0;
  color: var(--gray-700);
  font-size: .93rem;
  border-bottom: 1px solid var(--gray-100);
}
.model-info li::before { content: '✓ '; color: var(--green-600); font-weight: 700; }

/* ===== 参数表格 ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.specs-table { width: 100%; border-collapse: collapse; background: var(--white); }
.specs-table th, .specs-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.specs-table thead th {
  background: var(--green-800);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
}
.specs-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.specs-table thead th:last-child  { border-radius: 0 var(--radius) 0 0; }
.specs-table tbody tr:hover { background: var(--green-50); }
.specs-table tbody td:first-child { font-weight: 600; color: var(--gray-700); }
.specs-table tbody td:not(:first-child) { color: var(--gray-700); }

/* ===== 图库 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s;
  position: relative;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* 型号卡片照片 */
.model-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s;
}
.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.lightbox-inner .lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  position: static;
  background: none;
  opacity: 1;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 图库占位（无照片时回退） */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--green-800);
  font-size: .95rem;
  border: 2px dashed var(--green-300);
}

/* ===== 视频 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  cursor: pointer;
  transition: all .3s;
}
.video-placeholder:hover { transform: scale(1.02); box-shadow: var(--shadow-xl); }
.play-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background .3s;
}
.video-placeholder:hover .play-icon { background: var(--green-600); }
.video-placeholder span { font-weight: 600; font-size: 1rem; }
.video-placeholder small { opacity: .5; font-size: .8rem; }

/* 实际视频播放器 */
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000;
  outline: none;
}
.video-label {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  color: var(--gray-700);
}
.video-card { transition: transform .3s; }
.video-card:hover { transform: translateY(-4px); }

/* ===== 客户评价 ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-500);
}
.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }
.testimonial-card p { color: var(--gray-700); font-size: .95rem; margin-bottom: 12px; font-style: italic; line-height: 1.8; }
.author { color: var(--gray-500); font-size: .85rem; font-weight: 500; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.contact-item h4 { font-size: .9rem; color: var(--gray-500); margin-bottom: 2px; }
.contact-item p { font-size: 1.05rem; font-weight: 600; color: var(--gray-900); }

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .3s;
  background: var(--gray-50);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
  background: var(--white);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.footer-brand p { font-size: .9rem; opacity: .7; }
.footer-links h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.footer-links a { display: block; font-size: .9rem; opacity: .7; padding: 4px 0; transition: all .3s; }
.footer-links a:hover { opacity: 1; color: var(--green-200); }
.footer-qr { text-align: center; }
.qr-placeholder {
  width: 100px; height: 100px;
  background: var(--white);
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  margin: 0 auto 8px;
  line-height: 1.4;
}
.footer-qr span { font-size: .8rem; opacity: .6; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: .85rem;
  opacity: .5;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .hamburger { display: flex; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== 响应式：语言切换器在移动端 ===== */
@media (max-width: 768px) {
  .lang-dropdown { right: auto; left: 0; }
  .lang-current { padding: 4px 10px; font-size: .75rem; }
  .lang-code { display: none; }
}

/* ===== RTL：阿拉伯语支持 ===== */
html[dir="rtl"] body {
  direction: rtl;
}

/* 保持布局与 LTR 一致：Logo 左、语言切换器右 */
html[dir="rtl"] .logo { order: 3; }
html[dir="rtl"] .nav { order: 2; }
html[dir="rtl"] .nav-actions { order: 1; }

/* 语言下拉菜单内部始终保持 LTR（国旗统一在左） */
html[dir="rtl"] .lang-switcher { direction: ltr; }

/* 参数表文字右对齐 + 圆角对调 */
html[dir="rtl"] .specs-table th,
html[dir="rtl"] .specs-table td {
  text-align: right;
}
html[dir="rtl"] .specs-table thead th:first-child {
  border-radius: 0 var(--radius) 0 0;
}
html[dir="rtl"] .specs-table thead th:last-child {
  border-radius: var(--radius) 0 0 0;
}

/* 客户评价：左边框 → 右边框 */
html[dir="rtl"] .testimonial-card {
  border-left: none;
  border-right: 4px solid var(--green-500);
}
