:root {
  --bg: #0b1220;
  --bg-soft: #111c32;
  --text: #0f172a;
  --text-light: #e5e7eb;
  --muted: #64748b;
  --primary: #f59e0b;
  --white: #ffffff;
  --border: #e2e8f0;
}

* {
  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", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.65;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .nav-wrap,
html[dir="rtl"] .footer-wrap {
  flex-direction: row-reverse;
}

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

html[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

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

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

html[dir="rtl"] .hero-card ul {
  padding-left: 0;
  padding-right: 1.2rem;
}

html[dir="rtl"] .contact-list {
  padding-left: 0;
  padding-right: 1.1rem;
}

html[dir="rtl"] .detail-features ul {
  padding-left: 0;
  padding-right: 1.2rem;
}

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

html[dir="rtl"] .lang-select {
  padding-right: 12px;
  padding-left: 30px;
  background-position: 16px calc(1em - 2px), 11px calc(1em - 2px);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.2px;
}

.brand span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select,
.menu-toggle {
  border: 1px solid rgba(226, 232, 240, 0.4);
  background: transparent;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(226, 232, 240, 0.9) 50%),
    linear-gradient(135deg, rgba(226, 232, 240, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(1em - 2px), calc(100% - 11px) calc(1em - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.menu-toggle {
  display: none;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--white);
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  filter: brightness(0.95);
  transform: translateY(1px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.btn-light {
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.45);
  color: var(--text-light);
}

.hero {
  background: linear-gradient(135deg, #0b1220, #122646);
  color: var(--text-light);
  padding: 96px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.22;
}

.hero-copy p {
  color: #d1d5db;
  margin: 0;
  max-width: 60ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(17, 28, 50, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 20px;
}

.hero-card h3 {
  margin: 0 0 8px;
  color: var(--white);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #dbeafe;
}

.stats-bar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 28px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.95rem;
  color: #94a3b8;
}

.process-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.process-list li {
  display: grid;
  grid-template-columns: minmax(0, 140px) 1fr;
  gap: 14px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.process-step {
  font-weight: 800;
  color: #1e3a8a;
}

.process-desc {
  color: #475569;
  font-size: 0.98rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.news-card time {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.news-card h3 {
  margin: 8px 0 10px;
  font-size: 1.05rem;
}

.news-card p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: #eef2ff;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.about-grid,
.product-grid,
.service-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.product-card,
.service-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.card:hover,
.product-card:hover,
.service-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3,
.product-card h3,
.service-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p,
.product-card p,
.service-item p {
  margin: 0;
  color: #475569;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card a {
  display: inline-block;
  margin-top: 12px;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.product-card a:hover {
  text-decoration: underline;
  color: #1e40af;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-tip {
  color: #334155;
  margin-top: 10px;
}

.contact-list {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: #334155;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px 4% 14px;
  background: rgba(11, 18, 32, 0.98);
}

.mobile-nav a {
  color: #dbeafe;
  text-decoration: none;
}

.mobile-nav.open {
  display: flex;
}

.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 22px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
}

.detail-main {
  padding-top: 32px;
}

.breadcrumb {
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #1d4ed8;
  text-decoration: none;
}

.detail-hero {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

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

.spec-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.detail-features {
  margin-top: 28px;
}

.detail-features h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.detail-features ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #475569;
}

.detail-cta {
  margin-top: 22px;
}

/* Focus styles for keyboard accessibility */
.nav a:focus-visible,
.footer-links a:focus-visible,
.breadcrumb a:focus-visible,
.product-card a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.lang-select:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .product-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
