:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #5f6b7d;
  --line: #d9e2ef;
  --paper: #f5f8fc;
  --white: #ffffff;
  --navy: #071b3d;
  --blue: #0b6fd8;
  --cyan: #10a8e8;
  --amber: #d89528;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.top-strip {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px clamp(18px, 5vw, 72px);
  color: #d8e8ff;
  background: var(--navy);
  font-size: 13px;
}

.top-strip a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  width: 230px;
  height: 52px;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 230px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.nav-cta,
.button,
.part-search button,
.rfq-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-cta,
.button.primary,
.part-search button,
.rfq-card button {
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: 690px;
  padding: clamp(56px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 80% 18%, rgba(16, 168, 232, 0.2), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f5f9ff 42%, #e9f6ff 100%);
  overflow: hidden;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.language-option {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.language-option:hover,
.language-option.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

[dir="rtl"] .site-header,
[dir="rtl"] .site-nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .part-search div,
[dir="rtl"] .site-footer,
[dir="rtl"] .top-strip,
[dir="rtl"] .language-switcher {
  direction: rtl;
}

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

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

.page-hero {
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 27, 61, 0.95), rgba(9, 91, 154, 0.84)),
    url("assets/real-inventory/real-stock-intel-xeon6-tray.webp") center / cover;
}

.page-hero > div {
  max-width: 860px;
}

.page-hero h1,
.contact-page h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 28px;
  color: #e7f2ff;
  font-size: 19px;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.part-search {
  max-width: 720px;
  margin-top: 32px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(7, 27, 61, 0.1);
}

.part-search label,
.rfq-card label {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.part-search div {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.part-search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.part-search span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.hero-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(7, 27, 61, 0.16);
}

.hero-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.panel-body {
  padding: 24px;
}

.panel-body strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

dl {
  margin: 18px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--ink);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  padding: 28px clamp(18px, 4vw, 48px);
  background: var(--white);
}

.metric-strip strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
}

.metric-strip span {
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.tinted {
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.section h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.contact-page {
  min-height: 560px;
}

.contact-lines {
  margin-top: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.contact-lines p {
  margin: 8px 0;
  color: #eef6ff;
}

.section p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.info-box,
.service-grid article,
.quality-grid article,
.rfq-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 27, 61, 0.07);
}

.info-box {
  padding: 28px;
}

.info-box h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
}

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

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.keyword-grid a {
  display: block;
  min-height: 150px;
  padding: 22px;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(7, 27, 61, 0.06);
}

.keyword-grid strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.keyword-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.keyword-grid a:hover {
  border-color: #9fd8ff;
  transform: translateY(-2px);
}

.service-grid article {
  padding: 24px;
}

.service-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 20px;
}

.category-cloud,
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-cloud span {
  padding: 12px 16px;
  color: var(--navy);
  background: #eef7ff;
  border: 1px solid #c8e6ff;
  border-radius: 6px;
  font-weight: 800;
}

.brand-row {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.brand-row span {
  min-width: 160px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.image-stack {
  display: grid;
  gap: 16px;
}

.image-stack img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(7, 27, 61, 0.12);
}

.image-stack img:first-child {
  aspect-ratio: 1.55;
}

.image-stack img:last-child {
  aspect-ratio: 1.85;
  width: 82%;
  justify-self: end;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 700;
}

.check-list a {
  color: var(--navy);
  text-decoration-color: rgba(16, 168, 232, 0.45);
  text-underline-offset: 3px;
}

.check-list a:hover {
  color: var(--blue);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quality-grid article {
  padding: 26px;
}

.quality-grid strong {
  display: block;
  color: var(--navy);
  font-size: 21px;
}

.quality-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 27, 61, 0.96), rgba(8, 75, 128, 0.92)),
    url("assets/real-inventory/real-stock-intel-xeon6-6517p.webp") center / cover;
}

.contact-section h2,
.contact-section p {
  color: var(--white);
}

.rfq-card {
  padding: 24px;
}

.rfq-card textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

.rfq-card button {
  width: 100%;
  margin-top: 16px;
}

.rfq-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: #d8e8ff;
  background: #06162f;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  margin: 5px 0;
}

@media (max-width: 980px) {
  .top-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 27, 61, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .split,
  .split.reverse,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .keyword-grid,
  .quality-grid,
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand {
    width: 178px;
  }

  .brand img {
    width: 178px;
  }

  .hero {
    min-height: auto;
  }

  .part-search div,
  .site-footer {
    flex-direction: column;
  }

  .service-grid,
  .keyword-grid,
  .quality-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .brand-row span {
    min-width: 100%;
  }
}
