:root {
  --surface: rgba(20, 28, 48, 0.75);
  --surface-strong: #141c30;
  --line: rgba(0, 212, 255, 0.12);
  --text: #c8d6e5;
  --muted: #8395a7;
  --title: #ffffff;
  --primary: #00d4ff;
  --primary-light: #54e1ff;
  --primary-dark: #0a1628;
  --accent: #0099cc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Manrope, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.08), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(0, 153, 204, 0.06), transparent 28%),
    linear-gradient(180deg, #0a1628 0%, #0d1b2a 52%, #0a1628 100%);
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.4;
}

.page-glow-a {
  width: 420px;
  height: 420px;
  background: rgba(0, 212, 255, 0.25);
  top: -120px;
  left: -100px;
}

.page-glow-b {
  width: 520px;
  height: 520px;
  background: rgba(0, 153, 204, 0.2);
  top: 200px;
  right: -180px;
}

.wrap {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.feature-card,
.info-panel,
.timeline-item,
.cta-box {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 38px;
  border-radius: 32px;
  animation: rise 0.7s ease;
}

.eyebrow {
  display: none;
}

.hero h1,
.section h2,
.hero-card h2 {
  margin: 0;
  color: var(--title);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  max-width: 10ch;
}

.hero-text,
.section-text,
.hero-card p,
.feature-card p,
.info-panel p,
.timeline-item p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-text {
  margin: 20px 0 0;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
}

.button-primary:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.button-secondary {
  color: var(--primary);
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.08);
}

.button-secondary:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}


.hero-card {
  border-radius: 32px;
  padding: 32px;
  animation: rise 0.9s ease;
}

.hero-media {
  flex: 1;
  margin-bottom: 14px;
  border-radius: 24px;
  overflow: hidden;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.hero-media-copy {
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin-inline: -22px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.hero-media-copy img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
}

.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-actions,
.hero-copy .search-panel {
  display: none;
}

.hero-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 999px;
  background: rgba(20, 28, 48, 0.78);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.hero-tab:hover {
  color: var(--primary);
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.3);
}

.hero-tab:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.4);
  outline-offset: 2px;
}

.hero-tab.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.mini-note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.hero-card h2 {
  margin-top: 22px;
  font-size: clamp(28px, 4vw, 44px);
}

.hero-card p {
  margin-top: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.metric-grid article {
  padding: 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.9), rgba(15, 22, 38, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(0, 212, 255, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.metric-grid article:last-child {
  grid-column: 1 / -1;
}

.metric-grid article:nth-child(1),
.metric-grid article:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(20, 28, 48, 0.95), rgba(15, 22, 38, 0.98));
  border-color: rgba(0, 212, 255, 0.18);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.08),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

.metric-grid article:nth-child(3) {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(15, 22, 38, 0.96));
}

.metric-grid article:nth-child(4),
.metric-grid article:nth-child(5) {
  background:
    radial-gradient(circle at bottom right, rgba(0, 153, 204, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(15, 22, 38, 0.96));
}

.metric-grid article:nth-child(6) {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(15, 22, 38, 0.96));
  border-color: rgba(0, 212, 255, 0.14);
}

.metric-grid article:last-child {
  background:
    radial-gradient(circle at right center, rgba(0, 212, 255, 0.1), transparent 26%),
    linear-gradient(135deg, rgba(20, 28, 48, 0.95), rgba(15, 22, 38, 0.98));
  border-color: rgba(0, 212, 255, 0.16);
  box-shadow:
    0 0 32px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(0, 212, 255, 0.08);
}

.metric-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.15),
    inset 0 1px 0 rgba(0, 212, 255, 0.12);
}

.metric-grid strong {
  display: block;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.1;
  white-space: nowrap;
  word-break: keep-all;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.metric-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.metric-grid article:nth-child(1) strong,
.metric-grid article:nth-child(2) strong,
.metric-grid article:last-child strong {
  color: var(--primary-light);
}

.usage-panel {
  margin-inline: -22px;
  padding: 7px 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(20, 28, 48, 0.9), rgba(15, 22, 38, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(0, 212, 255, 0.08);
  animation: rise 0.95s ease;
}

.usage-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.usage-metrics article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 32px;
  padding: 6px 16px;
}

.usage-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.led-number {
  margin-top: 2px;
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(0, 212, 255, 0.7),
    0 0 24px rgba(0, 212, 255, 0.3);
}

.section {
  padding: 28px 0;
}

section[id] {
  scroll-margin-top: 88px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-head h2,
.cta-box h2 {
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.1;
}

.product-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title span {
  display: block;
}

.section-head.compact {
  max-width: none;
}

.section-head.compact h2 {
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#download .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

#download .feature-card {
  display: flex;
  flex-direction: column;
  writing-mode: horizontal-tb;
  direction: ltr;
}

#download .feature-card * {
  writing-mode: horizontal-tb;
  direction: ltr;
  text-orientation: mixed;
}

#download .feature-card .inline-button {
  margin-top: auto;
}

.download-card-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

@keyframes wechatGateSpin {
  to {
    transform: rotate(360deg);
  }
}

.feature-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.faq-item {
  height: 100%;
}

.faq-item h3 {
  margin-top: 0;
  font-size: clamp(22px, 2.3vw, 28px);
}

.faq-item p {
  margin-top: 14px;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 68%);
}

.card-index {
  display: inline-block;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-card h3,
.info-panel h3,
.timeline-item h3 {
  margin: 14px 0 0;
  color: var(--title);
  font-size: 24px;
  line-height: 1.15;
}

.feature-card p,
.info-panel p,
.timeline-item p {
  margin: 12px 0 0;
}

.inline-button {
  margin-top: 22px;
}

.alt-section {
  position: relative;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.product-layout {
  display: grid;
  gap: 24px;
}

.product-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bullet-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 600;
}

.bullet-list li + li {
  margin-top: 12px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.info-panel {
  padding: 28px;
  border-radius: 28px;
}

.product-panel {
  height: 100%;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.product-badge-light {
  background: rgba(0, 212, 255, 0.2);
  color: #ffffff;
}

.accent-panel {
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(0, 102, 153, 0.96) 55%, rgba(0, 153, 204, 0.92));
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(0, 212, 255, 0.18);
}

.accent-panel h3,
.accent-panel p {
  color: #ffffff;
}

.bullet-list-light li {
  color: rgba(255, 255, 255, 0.9);
}

.bullet-list-light li::before {
  background: rgba(255, 255, 255, 0.9);
}

.capability-map {
  display: grid;
  grid-template-columns: repeat(12, minmax(56px, 1fr)) minmax(36px, 48px);
  grid-template-rows: repeat(8, minmax(54px, auto));
  gap: 5px;
  padding: 6px;
  overflow-x: auto;
  border-radius: 18px;
  background: rgba(20, 28, 48, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.12);
  box-shadow: var(--shadow);
}

.capability-tile,
.capability-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 5px;
  color: #ffffff;
  font-size: clamp(14px, 1.8vw, 25px);
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.capability-side {
  min-width: 36px;
  padding: 8px 6px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0;
}

:lang(en) .capability-side {
  text-orientation: mixed;
}

.capability-green {
  background: #6aad42;
}

.capability-pink {
  background: #f70565;
}

.capability-orange {
  background: #fbbd06;
}

.capability-blue {
  background: #10aee1;
}

.tile-system { grid-area: 1 / 1 / 2 / 4; }
.tile-alarm { grid-area: 1 / 4 / 2 / 7; }
.tile-history { grid-area: 1 / 7 / 2 / 10; }
.tile-logic { grid-area: 1 / 10 / 2 / 13; }
.tile-linux { grid-area: 2 / 1 / 3 / 4; }
.tile-gateway { grid-area: 2 / 4 / 3 / 7; }
.tile-mqtt { grid-area: 2 / 7 / 3 / 10; }
.tile-hardware { grid-area: 2 / 10 / 3 / 13; }
.side-commercial { grid-area: 1 / 13 / 3 / 14; }

.tile-dynamic { grid-area: 3 / 1 / 4 / 4; }
.tile-parse { grid-area: 3 / 4 / 4 / 6; }
.tile-curve { grid-area: 3 / 6 / 4 / 8; }
.tile-timing { grid-area: 3 / 8 / 4 / 10; }
.tile-loss-device { grid-area: 3 / 10 / 4 / 13; }
.tile-poll { grid-area: 4 / 1 / 5 / 3; }
.tile-batch { grid-area: 4 / 3 / 5 / 5; }
.tile-custom { grid-area: 4 / 5 / 5 / 8; }
.tile-record { grid-area: 4 / 8 / 5 / 10; }
.tile-loss-channel { grid-area: 4 / 10 / 5 / 13; }
.side-project { grid-area: 3 / 13 / 5 / 14; }

.tile-master { grid-area: 5 / 1 / 6 / 7; }
.tile-slave { grid-area: 5 / 7 / 6 / 13; }
.tile-ascii { grid-area: 6 / 1 / 7 / 4; }
.tile-rtu { grid-area: 6 / 4 / 7 / 7; }
.tile-modbus-tcp { grid-area: 6 / 7 / 7 / 10; }
.tile-rtu-over { grid-area: 6 / 10 / 7 / 13; }
.side-device { grid-area: 5 / 13 / 7 / 14; }

.tile-serial { grid-area: 7 / 1 / 9 / 4; }
.tile-rs485 { grid-area: 7 / 4 / 9 / 7; }
.tile-tcp { grid-area: 7 / 7 / 8 / 10; }
.tile-udp { grid-area: 7 / 10 / 8 / 13; }
.tile-ethernet { grid-area: 8 / 7 / 9 / 13; }
.side-channel { grid-area: 7 / 13 / 9 / 14; }

.product-compare {
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.product-compare h3 {
  margin: 0 0 18px;
  color: var(--title);
  font-size: clamp(24px, 3vw, 34px);
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(21, 56, 94, 0.08);
  vertical-align: middle;
}

.compare-table th {
  color: var(--title);
  font-size: 15px;
  font-weight: 800;
  background: rgba(41, 141, 255, 0.06);
}

.compare-table td {
  color: var(--muted);
  line-height: 1.6;
}

.compare-table .compare-yes,
.compare-table .compare-no,
.compare-table .compare-note {
  font-weight: 800;
}

.compare-table .compare-yes {
  color: #0b8a2a;
  text-align: center;
}

.compare-table .compare-no {
  color: #e02424;
  text-align: center;
}

.compare-table .compare-note-ok {
  color: #0b8a2a;
}

.compare-table .compare-note-warn {
  color: #e02424;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.timeline-item {
  padding: 26px;
  border-radius: 28px;
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.cta-section {
  padding-bottom: 60px;
}

.cta-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(20, 28, 48, 0.95), rgba(15, 22, 38, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.18);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.1);
}

.cta-box > div:first-child {
  flex: 0 1 420px;
  min-width: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-layout,
  .product-columns,
  .card-grid,
  .faq-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid article:last-child {
    grid-column: auto;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box > div:first-child {
    width: 100%;
    flex: none;
  }

  .contact-visual {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #download .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  }
}

@media (max-width: 860px) {
  .contact-visual {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .contact-card {
    width: min(100%, 320px);
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100vw - 24px, 100%);
  }

  .nav-row {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 10px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-card,
  .feature-card,
  .info-panel,
  .timeline-item,
  .cta-box,
  .product-compare {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-card,
  .feature-card,
  .info-panel,
  .timeline-item,
  .product-compare {
    padding: 22px;
  }

  .hero-media-copy {
    min-height: 0;
    margin-inline: -10px;
  }

  .usage-panel {
    margin-inline: -10px;
  }

  .usage-panel,
  .usage-metrics {
    grid-template-columns: 1fr;
  }

  .usage-metrics article {
    min-height: 32px;
  }

  .search-row,
  .metric-grid,
  .footer-row {
    grid-template-columns: 1fr;
  }

  #download .card-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    gap: 10px;
  }

  .cta-box {
    align-items: center;
  }

  .cta-box > div:first-child {
    width: 100%;
  }

  .section-head.compact h2 {
    white-space: normal;
  }

  .compare-table {
    min-width: 0;
    table-layout: fixed;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
    font-size: 13px;
    word-break: break-word;
  }

  .capability-map {
    display: grid;
    grid-template-columns: repeat(12, max-content) minmax(34px, max-content);
    grid-template-rows: repeat(8, minmax(48px, auto));
    margin-inline: -2px;
    overflow-x: auto;
  }

  .capability-tile,
  .capability-side {
    min-height: 48px;
    min-width: 88px;
    padding: 7px 8px;
    font-size: 14px;
  }

  .capability-side {
    min-width: 34px;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  :lang(en) .capability-map {
    grid-template-columns: repeat(12, max-content) minmax(34px, max-content);
  }

  :lang(en) .capability-side {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
}

/* 页头样式 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--title);
  font-weight: 700;
  font-size: 20px;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* 页脚样式 */
.footer {
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #0d1b2a 0%, #07101e 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 60px 0 24px;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-link {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-qrcodes {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qrcode-img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.qrcode-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.footer-copyright p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-powerby a {
  color: var(--primary-light);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-powerby a:hover {
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .header-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  }
  
  .header-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-btn.menu-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.menu-open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.menu-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .contact-qrcodes {
    flex-direction: column;
    gap: 16px;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .header-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-left {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-grid {
  direction: rtl;
}

[dir="rtl"] .hero-tabs {
  direction: rtl;
}

[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .metric-grid {
  direction: rtl;
}

[dir="rtl"] .card-grid {
  direction: rtl;
}

[dir="rtl"] .feature-card {
  direction: rtl;
}

[dir="rtl"] .product-columns {
  direction: rtl;
}

[dir="rtl"] .bullet-list li {
  padding-right: 24px;
  padding-left: 0;
}

[dir="rtl"] .bullet-list li::before {
  right: 0;
  left: auto;
}

[dir="rtl"] .capability-map {
  direction: rtl;
}

[dir="rtl"] .compare-table th,
[dir="rtl"] .compare-table td {
  text-align: right;
}

[dir="rtl"] .footer-top {
  direction: rtl;
}

[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-copyright {
  text-align: left;
}

[dir="rtl"] .nav-link::after {
  right: 0;
  left: auto;
}

[dir="rtl"] .nav-link:hover::after {
  width: 100%;
}

[dir="rtl"] .cta-box {
  flex-direction: row-reverse;
}

[dir="rtl"] .timeline {
  direction: rtl;
}

[dir="rtl"] .contact-visual {
  direction: rtl;
}

[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

/* Language Dropdown Styling */
.lang-dropdown {
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 120px;
  z-index: 100;
  position: relative;
}

.lang-dropdown:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-dropdown:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.lang-dropdown option {
  background: #0f172a;
  color: #ffffff;
  padding: 8px;
}

[dir="rtl"] .lang-dropdown {
  text-align: right;
  background-position: left 10px center;
  padding: 8px 12px 8px 32px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(41, 141, 255, 1);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(41, 141, 255, 0.5);
}

.back-to-top:active {
  transform: translateY(-1px);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 30px;
}

/* Slideshow 轮播图样式 */
.slideshow {
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 960px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
}

.slide-image-full {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image-full img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(10, 22, 40, 0.8);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.slideshow-nav:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary-light);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.slideshow-prev {
  left: 20px;
}

.slideshow-next {
  right: 20px;
}

.slideshow-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slideshow-dot:hover {
  background: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.slideshow-dot.is-active {
  background: var(--primary);
  width: 32px;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
}

@media (max-width: 1024px) {
  .slideshow-container,
  .slideshow {
    height: 500px;
  }

  .slide-image-full img {
    max-height: 100%;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .slideshow-container,
  .slideshow {
    height: 350px;
  }

  .slide-content {
    padding: 0 10px;
  }

  .slide-image-full img {
    max-height: 100%;
    height: 100%;
  }

  .slideshow-nav {
    width: 36px;
    height: 36px;
  }

  .slideshow-prev {
    left: 6px;
  }

  .slideshow-next {
    right: 6px;
  }
}
