:root {
  --primary: #c8102e;
  --primary-dark: #a00d25;
  --dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-alt: #f5f6fa;
  --border: #e0e0e0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
}

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

/* 阿拉伯语 RTL */
html[dir="rtl"] body { direction: rtl; text-align: right; }

/* 头部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text strong { display: block; font-size: 18px; color: var(--dark); }
.logo-text small { font-size: 12px; color: var(--text-light); }

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.lang-switch { display: flex; gap: 4px; }

.lang-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text);
  transition: all .2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.menu-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 110px 0;
  text-align: center;
}

.hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 18px; color: #cbd5e1; margin-bottom: 12px; }
.hero .hero-cert { font-size: 15px; color: #94a3b8; margin-bottom: 30px; }

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

/* 通用 section */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 16px;
}

/* 产品浏览 */
.product-browser {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 30px;
  align-items: start;
}

.product-series {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.series-title {
  background: linear-gradient(135deg, #c60018 0%, #d9001b 100%);
  color: #fff;
  padding: 30px 24px 26px;
}

.series-title span {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  opacity: .9;
}

.series-title strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.series-item {
  position: relative;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  padding: 16px 24px 16px 40px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.series-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%);
}

.series-item.active,
.series-item:hover {
  background: #fff5f6;
  color: var(--primary);
  font-weight: 700;
}

.series-item b {
  font-size: 16px;
}

.product-panel {
  min-width: 0;
}

.series-feature {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 560px;
  margin-bottom: 34px;
  background: #fff;
  border: 3px solid rgba(200,16,46,.72);
  box-shadow: inset 0 -48px 0 rgba(0,0,0,0.04);
  overflow: hidden;
}

.series-copy {
  padding: 66px 28px 62px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.series-number {
  color: #d00018;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 74px;
}

.series-copy h3 {
  color: var(--dark);
  font-size: 34px;
  margin-bottom: 82px;
}

.series-copy p {
  color: var(--text-light);
  line-height: 2.1;
  max-width: 360px;
  margin-bottom: 86px;
}

.more-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.series-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px;
}

.series-visual span {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(200,16,46,.07);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 6px;
}

.series-visual img {
  position: relative;
  width: min(420px, 100%);
  max-height: 360px;
  object-fit: contain;
  background: #fff;
  padding: 44px 36px;
  box-shadow: 0 22px 44px rgba(0,0,0,0.08);
}

.series-feature::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -64px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(200,16,46,.12);
}

/* 产品网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: all .25s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-4px); }

.product-image {
  height: 360px;
  padding: 24px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card h3 { font-size: 22px; color: var(--dark); margin: 22px 24px 12px; }
.product-card p { font-size: 15px; color: var(--text-light); margin: 0 24px 18px; line-height: 1.7; }
.product-link { display: inline-block; color: var(--primary); font-weight: 600; margin-bottom: 26px; font-size: 15px; }

/* 新闻资讯 */
.section-news { background: #f8fafc; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15, 23, 42, .1); }
.news-card > img { width: 100%; height: 190px; object-fit: contain; padding: 18px; background: #fff; border-bottom: 1px solid var(--border); }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 20px; }
.news-card time { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.news-card h3 { margin: 10px 0 10px; color: var(--dark); font-size: 19px; line-height: 1.45; }
.news-card p { margin: 0 0 18px; color: var(--text-light); font-size: 14px; line-height: 1.75; }
.news-link { margin-top: auto; color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.news-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.news-link:hover span { transform: translateX(4px); }

/* 产品详情页 */
.detail-hero { background: var(--bg-alt); padding: 42px 0; }
.breadcrumb { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.detail-hero h1 { color: var(--dark); font-size: 36px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.detail-main-image { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.detail-main-image img { width: 100%; display: block; object-fit: contain; }
.detail-copy h2 { color: var(--dark); font-size: 28px; margin-bottom: 14px; }
.detail-copy p { color: var(--text-light); margin-bottom: 18px; }
.feature-list { margin: 0 0 22px 20px; color: var(--text); }
.feature-list li { margin-bottom: 8px; }
.spec-box { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 24px; overflow: hidden; }
.spec-box p { display: grid; grid-template-columns: 120px 1fr; gap: 14px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.spec-box p:last-child { border-bottom: 0; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.detail-gallery img { width: 100%; height: 240px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }

/* 关于 */
.about-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-text p { margin-bottom: 16px; color: var(--text); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.stat strong { display: block; font-size: 28px; color: var(--primary); }
.stat span { font-size: 14px; color: var(--text-light); }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }

.contact-item { margin-bottom: 24px; }
.contact-item strong { display: block; color: var(--dark); margin-bottom: 4px; }
.contact-item a { color: var(--primary); text-decoration: none; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form .btn { align-self: flex-start; }

/* 页脚 */
.footer { background: var(--dark); color: #94a3b8; text-align: center; padding: 32px 0; font-size: 14px; }
.footer p { margin-bottom: 4px; }

/* 响应式 */
@media (max-width: 900px) {
  .product-browser { grid-template-columns: 1fr; }
  .product-series { position: static; }
  .series-feature { grid-template-columns: 1fr; min-height: auto; }
  .series-copy { padding: 42px 28px; }
  .series-number, .series-copy h3, .series-copy p { margin-bottom: 24px; }
  .series-visual { padding: 24px 28px 48px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content, .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .lang-switch { display: none; }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-hero h1 { font-size: 28px; }
}
