/* ==============================================
   冠宇建机 - 混凝土搅拌站独立站
   浅色商务风格 · 白色背景 · B2B工业风
   ============================================== */

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

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-light); }

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

/* ============ 头部导航 ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-right: 40px;
  letter-spacing: -0.5px;
}
.logo span { color: var(--text); }

nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
nav a {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
nav a:hover {
  color: var(--primary);
  background: #eff6ff;
}
nav a.active {
  color: var(--primary);
  background: #eff6ff;
  font-weight: 600;
}

.lang-switch {
  margin-left: 20px;
  font-size: 13px;
  color: var(--text-light);
}
.lang-switch a { padding: 4px 6px; font-size: 13px; }
.lang-switch a.active { color: var(--primary); font-weight: 600; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}

/* ============ Hero Banner ============ */
.hero {
  position: relative;
  margin-top: 64px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #3b82f6 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.03)" x="10" y="10" width="80" height="80" rx="4"/></svg>') repeat;
  background-size: 60px 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 60px 24px;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}
.btn-primary:hover {
  background: #f0f5ff;
  color: var(--primary-dark);
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ============ Sections ============ */
.section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section.bg-light {
  background: var(--bg-alt);
  max-width: 100%;
  padding-left: calc((100% - 1200px) / 2 + 24px);
  padding-right: calc((100% - 1200px) / 2 + 24px);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-title p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.text-center { text-align: center; }
.mt-20 { margin-top: 32px; }
.mb-20 { margin-bottom: 32px; }

/* ============ 产品网格 ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  cursor: default;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.product-card .model-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}
.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.product-card .capacity {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.product-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-card .spec-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.product-card .spec-mini span { display: flex; justify-content: space-between; }
.product-card .spec-mini strong { color: var(--text); }
.product-card .markets-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.market-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
}
.market-tag.me { background: #dc2626; }
.market-tag.ca { background: #1e40af; }
.market-tag.af { background: #d97706; }
.market-tag.sa { background: #047857; }
.market-tag.se { background: #0891b2; }

/* ============ 核心优势 ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ 市场展示 ============ */
.markets-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.market-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.market-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.market-card.region-mideast::before { background: #dc2626; }
.market-card.region-asia::before { background: #1e40af; }
.market-card.region-africa::before { background: #d97706; }
.market-card.region-samerica::before { background: #047857; }
.market-card.region-asean::before { background: #0891b2; }
.market-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.market-icon { font-size: 32px; margin-bottom: 12px; }
.market-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.market-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.market-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}

/* ============ 产品详情页 ============ */
.page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, #1e3a5f, #1e40af);
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* 产品对比表格 */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th {
  background: #f8fafc;
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-secondary);
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  background: #fafbfc;
  white-space: nowrap;
}
.comparison-table tr:hover td { background: #f0f5ff; }
.comparison-table .highlight-col {
  background: #eff6ff !important;
  font-weight: 600;
  color: var(--primary) !important;
}

/* 单型号详情 */
.product-detail {
  margin-top: 40px;
}
.product-detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
  scroll-margin-top: 80px;
}
.product-detail-card h2 {
  font-size: 26px;
  margin-bottom: 4px;
}
.product-detail-card .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.prod-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .prod-detail-grid { grid-template-columns: 1fr; }
}
.prod-detail-grid .info-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.prod-detail-grid .info-col p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.prod-detail-grid .info-col ul {
  list-style: none;
  padding: 0;
}
.prod-detail-grid .info-col ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.prod-detail-grid .info-col ul li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
}
.spec-table td:first-child {
  color: var(--text-secondary);
  width: 45%;
}
.spec-table td:last-child {
  font-weight: 500;
  color: var(--text);
}

/* ============ 市场页 ============ */
.market-detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: 80px;
}
.market-detail-card h2 {
  font-size: 24px;
  margin-bottom: 4px;
}
.market-detail-card .market-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.country-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.country-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.country-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.country-item .demand {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}
.country-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.market-analysis {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}
.market-analysis h4 { font-size: 15px; margin-bottom: 8px; }
.market-analysis p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ============ 案例页 ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.case-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.case-card .case-region {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #eff6ff;
  color: var(--primary);
  margin-bottom: 10px;
}
.case-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.case-card .case-model {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.case-card .case-year {
  font-size: 12px;
  color: var(--text-light);
}
.case-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ 联系页 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form-wrap h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #ffffff;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon { font-size: 20px; }
.contact-info-item .info h4 { font-size: 14px; margin-bottom: 2px; }
.contact-info-item .info p { font-size: 13px; color: var(--text-secondary); }

/* 表单成功消息 */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .check {
  font-size: 48px;
  margin-bottom: 16px;
}
.form-success h3 { font-size: 20px; margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }

/* ============ 筛选控制 ============ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  color: var(--text-secondary);
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ============ Footer ============ */
footer {
  background: #1f2937;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 12px;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.7;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============ 动画 ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* ============ WhatsApp 悬浮按钮 ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  background: #20bd5a;
}
.whatsapp-float:active {
  transform: scale(0.95);
}

/* ============ 语言切换器 ============ */
#langSwitcher {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}
#langSwitcher .lang-btn {
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 4px;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
#langSwitcher .lang-btn:hover {
  background: #eff6ff;
  color: var(--primary);
}
#langSwitcher .lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

/* ============ RTL 支持 ============ */
.rtl-lang .header-inner { flex-direction: row; }
.rtl-lang .logo { order: 1; margin-right: auto; margin-left: 0; }
.rtl-lang nav { order: 0; }
.rtl-lang #langSwitcher { order: -1; margin-left: 0; margin-right: 12px; }
.rtl-lang .contact-info-item { flex-direction: row-reverse; }
.rtl-lang .whatsapp-float { right: auto; left: 24px; }
.rtl-lang .spec-table td:first-child { text-align: right; }
.rtl-lang .spec-table td:last-child { text-align: left; }
.rtl-lang .comparison-table th:first-child { text-align: right; }
.rtl-lang .comparison-table td:first-child { text-align: right; }
.rtl-lang .market-analysis { border-left: none; border-right: 4px solid var(--primary); }
.rtl-lang nav a { text-align: right; }
.rtl-lang .market-subtitle { flex-direction: row-reverse; }
.rtl-lang .hero-content { text-align: right; }
.rtl-lang .hero-actions { flex-direction: row-reverse; }
.rtl-lang .section-title { text-align: right; }
.rtl-lang .product-detail-card h2 { text-align: right; }
.rtl-lang .product-detail-card .subtitle { text-align: right; }
.rtl-lang .product-detail-card { text-align: right; }
.rtl-lang .case-card { text-align: right; }
.rtl-lang .case-card .case-model { text-align: right; }
.rtl-lang .market-detail-card,
.rtl-lang .market-detail-card h2,
.rtl-lang .market-detail-card p,
.rtl-lang .country-item,
.rtl-lang .country-item h4,
.rtl-lang .country-item p,
.rtl-lang .country-item .demand,
.rtl-lang .market-analysis,
.rtl-lang .market-analysis h4,
.rtl-lang .market-analysis p { text-align: right; }
.rtl-lang .contact-form-wrap h2 { text-align: right; }
.rtl-lang .contact-info-card h2 { text-align: right; }
.rtl-lang .form-group label { text-align: right; }
.rtl-lang .form-group input,
.rtl-lang .form-group select,
.rtl-lang .form-group textarea { text-align: right; }
.rtl-lang ul li { text-align: right; }
.rtl-lang .prod-detail-grid { direction: rtl; }
.rtl-lang .product-detail-card { text-align: right; }
.rtl-lang .product-detail-card .prod-detail-grid { direction: rtl; }
.rtl-lang .footer-inner { text-align: right; }
.rtl-lang .footer-bottom { direction: rtl; }
.rtl-lang .filter-bar { flex-direction: row-reverse; }
.rtl-lang .page-hero h1 { text-align: center; }
.rtl-lang .page-hero p { text-align: center; }
/* RTL: 不需要设 direction:rtl，保持 direction:ltr，通过 text-align 控制对齐 */
.rtl-lang .section-title { text-align: center; }
.rtl-lang .product-detail-card { text-align: right; }
.rtl-lang .product-detail-card .info-col { text-align: right; }
.rtl-lang .product-card { text-align: right; }
.rtl-lang .market-card { text-align: right; }
.rtl-lang .case-card { text-align: right; }
/* 产品详情页 RTL 完整覆盖 */
.rtl-lang .product-detail-card h2,
.rtl-lang .product-detail-card p,
.rtl-lang .product-detail-card ul,
.rtl-lang .product-detail-card ul li,
.rtl-lang .product-detail-card .subtitle,
.rtl-lang .product-detail-card .info-col h3,
.rtl-lang .product-detail-card .info-col p,
.rtl-lang .product-detail-card .spec-table td { text-align: right; }
.rtl-lang .product-detail-card .prod-detail-grid { direction: rtl; text-align: right; }
/* 产品对比表 */
.rtl-lang .comparison-table th,
.rtl-lang .comparison-table td { text-align: right; }
.rtl-lang .comparison-table th:first-child,
.rtl-lang .comparison-table td:first-child { text-align: right; }
/* 部件网格 */
.rtl-lang .product-detail-card .part-item { text-align: center; }
/* 按钮保持视觉一致性 */
.rtl-lang .btn { text-align: center; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px; box-shadow: var(--shadow-md); }
  .menu-toggle { display: block; }
  .lang-switch { margin-left: auto; margin-right: 12px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .section { padding: 40px 16px; }
  .section-title h2 { font-size: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .markets-showcase { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .product-detail-card { padding: 24px; }
  .market-detail-card { padding: 24px; }
}
