
:root {
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #020617;
  --dark-2: #111827;
  --soft: #f8fafc;
  --green-bg: #ecfdf5;
  --green-line: #bbf7d0;
  --green-text: #047857;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --han-gap: 1em;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-tight { padding: 8px 0 24px; }
.section-white { background: var(--white); }
.top-gap { margin-top: 16px; }
.top-gap-sm { margin-top: 12px; }
.top-gap-md { margin-top: 40px; }
.hidden { display: none !important; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.padded { padding: 28px 32px; }
.pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
}
.pill.green {
  background: var(--green-bg);
  border-color: var(--green-line);
  color: var(--green-text);
}
.muted { color: var(--muted); font-size: 14px; }
.muted.strong { font-weight: 600; }
.on-dark { color: rgba(255,255,255,.75); }
.dark-kicker { padding-left: 0; }

h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 18px; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.03em; margin-top: 14px; }
h3 { font-size: 26px; line-height: 1.25; margin-top: 10px; }
h4 { font-size: 18px; line-height: 1.6; margin-top: 10px; font-weight: 600; }
.section-text, .hero-text { color: var(--muted); font-size: 18px; margin-top: 18px; }
.site-header {
  position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(12px);
  background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(226,232,240,.9);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; flex-shrink: 0; }
.brand-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
html[dir="rtl"] .brand { flex-direction: row-reverse; }

.desktop-nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.desktop-nav a { color: #475569; font-size: 14px; }
.desktop-nav a:hover { color: var(--text); }
.mobile-toggle {
  display: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; width: 42px; height: 42px; cursor: pointer;
}
.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--white); padding: 12px 16px 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 14px; border-radius: 16px; color: #334155; }
.mobile-nav a:hover { background: #f8fafc; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px; font-weight: 600; border: 1px solid transparent;
}
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); }
.btn-light { background: var(--white); color: #334155; border-color: #cbd5e1; }
.btn-light:hover { border-color: #94a3b8; color: var(--text); }
.hero {
  padding-top: 48px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 28%),
    radial-gradient(circle at left, rgba(34,197,94,0.12), transparent 22%),
    var(--bg);
}
.hero-grid, .two-col, .products-layout, .footer-grid, .solution-flow {
  display: grid; gap: 36px;
}
.hero-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
.language-selector {
  margin-left: 8px;
  flex-shrink: 0;
}

.desktop-nav .language-selector { margin-left: 8px; }

.language-selector.mobile {
  margin-left: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.lang-dropdown-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  min-width: 120px;
  display: none;
}

.lang-dropdown-menu.open {
  display: block;
}

.lang-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  text-align: left;
  border: none;
  background: none;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-dropdown-item:hover {
  background: #f3f4f6;
  color: #3b82f6;
}

.lang-dropdown-item.active {
  background: #3b82f6;
  color: #fff;
}

.stats-grid, .highlight-grid, .four-grid, .triple-grid, .form-grid {
  display: grid; gap: 10px;
}
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
.stat { padding: 16px; }
.stat-value { font-size: 24px; font-weight: 600; margin-top: 4px; }
.dark-panel { overflow: hidden; }
.dark-head { background: var(--dark); color: white; padding: 18px var(--han-gap) 22px; border-bottom: 1px solid #1e293b; }
.dark-head p { color: rgba(255,255,255,.75); margin-top: 10px; }
.product-list-mini { padding: 24px; display: grid; gap: 14px; }
.mini-item { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.mini-item span { color: var(--muted); font-size: 12px; }
.highlight-grid { grid-template-columns: repeat(4, 1fr); }
.info-card { padding: 28px; }
.info-card h3, .padded h3 { font-size: 22px; }
.info-card p, .padded p, .small-card p, .contact-panel p, .form-panel p { color: var(--muted); margin-top: 12px; }
.two-col { grid-template-columns: 1fr 1fr; align-items: start; }
.stack-col { display: grid; gap: 20px; }
.triple-grid { grid-template-columns: repeat(3, 1fr); }
.small-card { min-height: 156px; }
.four-grid { grid-template-columns: repeat(4, 1fr); }
.products-layout { grid-template-columns: 1fr 1fr; }
.product-tabs { display: grid; gap: 16px; }
.product-tab {
  border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 24px; text-align: left; cursor: pointer; transition: all .2s ease;
}
.product-tab:hover { border-color: #cbd5e1; }
.product-tab.active { background: var(--dark); color: white; border-color: var(--dark); box-shadow: 0 12px 32px rgba(2,6,23,.15); }
.product-tab-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.product-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; font-size: 16px;
}
.product-tab.active .product-icon { background: rgba(255,255,255,.1); }
.product-badge { font-size: 12px; background: #f1f5f9; color: #475569; padding: 4px 8px; border-radius: 999px; }
.product-tab.active .product-badge { background: rgba(255,255,255,.1); color: white; }
.product-tab h4 { margin-top: 12px; font-size: 20px; line-height: 1.3; }
.product-tab p { margin-top: 4px; font-size: 14px; color: #64748b; }
.product-tab.active p { color: #cbd5e1; }
.detail-card { overflow: hidden; border-radius: 20px; }
.detail-head { background: var(--dark); color: white; padding: 24px 28px; }
.detail-head p { margin-top: 10px; color: rgba(255,255,255,.75); font-size: 14px; }
.detail-body { padding: 24px 28px; }
.bullet-list { display: grid; gap: 12px; }
.bullet-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #f8fafc;
}
.bullet-check { color: #059669; font-weight: 700; font-size: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #334155; font-size: 14px; }
.deep-grid { display: grid; gap: 16px; }
.deep-card { padding: 22px; }
.deep-card p { color: var(--muted); margin-top: 10px; }
.border-top { border-top: 1px solid var(--line); padding-top: 24px; }
.solution-flow { grid-template-columns: 1fr 1fr; overflow: hidden; }
.flow-col { padding: 28px 32px; }
.flow-col.left { border-right: 1px solid var(--line); }
.flow-col p { color: var(--muted); margin-top: 12px; }
.flow-steps { display: grid; gap: 12px; margin-top: 16px; }
.flow-step { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--soft); }
.flow-step span:first-child {
  width: 40px; height: 40px; border-radius: 999px; background: var(--dark); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.check-list { padding-left: 20px; margin-top: 16px; color: #334155; }
.stage { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; }
.market-list { display: grid; gap: 12px; margin-top: 16px; }
.market-list div { padding: 16px; border-radius: 18px; background: var(--soft); color: #334155; }
.contact-panel { overflow: hidden; display: flex; flex-direction: column; }
.contact-head { background: var(--dark); color: white; padding: 28px 32px; }
.contact-head p { color: rgba(255,255,255,.75); margin-top: 12px; }
.contact-body { padding: 28px 32px; display: grid; gap: 18px; flex: 1; }
.contact-item { padding: 18px; border-radius: 18px; background: var(--soft); display: grid; gap: 4px; }
.contact-item strong { font-size: 14px; color: var(--muted); }
.contact-item span { color: var(--text); font-weight: 600; }
.form-grid { grid-template-columns: repeat(2, 1fr); }
.field {
  border: 1px solid var(--line); background: white; color: #94a3b8; border-radius: 18px; padding: 14px 16px; min-height: 52px;
}
.field-large { min-height: 140px; }
.site-footer { border-top: 1px solid var(--line); background: white; padding: 40px 0; }
.footer-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
.footer-grid p { color: var(--muted); margin-top: 12px; max-width: 720px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 14px; margin: 0 0 12px 0; }
.footer-links a, .footer-links span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }



/* 统一文字与卡片边框的安全距离 */
.card > h3 {
  padding: 1em var(--han-gap) 0;
  margin-top: 0;
}

.card > .product-image-container,
.card > .param-grid,
.card > .feature-grid {
  margin-left: var(--han-gap);
  margin-right: var(--han-gap);
  margin-bottom: 1em;
}

.card > .param-grid,
.card > .feature-grid,
.card > .product-image-container {
  width: calc(100% - 2 * var(--han-gap));
}

/* 产品详情页面样式 */
.product-image-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

.param-grid::-webkit-scrollbar {
  width: 6px;
}

.param-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.param-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.param-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.param-item {
  padding: 16px;
  border-radius: 18px;
  background: var(--soft);
  display: grid;
  gap: 4px;
}

.param-item strong {
  font-size: 13px;
  color: var(--muted);
}

.param-item span {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.feature-item {
  padding: 20px;
  border-radius: 18px;
  background: var(--soft);
}

.feature-item h4 {
  margin-top: 0;
}

.feature-item p {
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .hero-grid, .two-col, .products-layout, .footer-grid, .solution-flow, .highlight-grid, .four-grid, .triple-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid, .two-col, .products-layout, .footer-grid, .solution-flow, .highlight-grid, .four-grid, .triple-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .flow-col.left { border-right: none; border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .brand-title { font-size: 16px; }
  .detail-head, .detail-body, .flow-col, .contact-head, .contact-body, .padded { padding: 22px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats-grid, .footer-links { grid-template-columns: 1fr; }
  .container { width: min(1180px, calc(100% - 24px)); }
}
