:root {
  --ink: #141619;
  --muted: #5d6673;
  --line: #d7dde4;
  --paper: #f6f7f8;
  --panel: #ffffff;
  --steel: #26384f;
  --accent: #c42026;
  --accent-dark: #8f171c;
  --sand: #e8e1d6;
  --shadow: 0 24px 70px rgba(20, 22, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body[data-lang="zh"] [data-en],
body[data-lang="en"] [data-zh] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 221, 228, 0.86);
  background: rgba(246, 247, 248, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.brand-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

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

.lang-toggle,
.outline-link,
.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--line);
  cursor: pointer;
}

.lang-toggle,
.outline-link {
  background: #fff;
  color: var(--steel);
}

.primary-link {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.primary-link:hover {
  background: var(--accent-dark);
}

.ghost-link {
  background: transparent;
  color: var(--steel);
}

.hero .ghost-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  background:
    linear-gradient(90deg, rgba(20, 22, 25, 0.86) 0%, rgba(20, 22, 25, 0.72) 42%, rgba(20, 22, 25, 0.18) 76%),
    url("assets/dq-cover.png") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 690px;
  margin: 0 auto;
  padding: 86px 0 118px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

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

.hero-metrics {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  width: min(760px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 22, 25, 0.62);
  backdrop-filter: blur(14px);
}

.metric {
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 92px 0;
}

.section.dark {
  color: #fff;
  background: var(--steel);
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.dark .section-head p,
.dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.copy-panel {
  display: grid;
  gap: 22px;
  padding: 40px;
  border-top: 5px solid var(--accent);
  background: #fff;
}

.copy-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

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

.capability,
.product-card,
.contact-card,
.timeline-item {
  border: 1px solid var(--line);
  background: #fff;
}

.capability {
  padding: 28px;
  min-height: 244px;
}

.capability-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.capability h3,
.product-card h3,
.contact-card h3,
.timeline-item h3 {
  margin: 18px 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.capability p,
.product-card p,
.contact-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-card {
  display: grid;
  min-height: 330px;
  padding: 28px;
}

.product-card ul {
  align-self: end;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.product-card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.clients-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.client {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

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

.timeline-item {
  padding: 24px;
}

.timeline-item time {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

#contact .section-head {
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}

.contact-card {
  padding: 28px;
}

.site-footer {
  padding: 34px 0;
  background: #101318;
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  font-size: 13px;
}

.product-hero {
  background:
    linear-gradient(90deg, rgba(20, 22, 25, 0.86), rgba(38, 56, 79, 0.68)),
    url("assets/dq-factory-intro.png") center / cover no-repeat;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.spec-table th,
.spec-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 28%;
  color: var(--steel);
  background: #eef1f4;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 26px;
  }

  .hero-inner {
    min-height: auto;
    padding: 82px 0 26px;
  }

  .hero-metrics,
  .section-head,
  .about-grid,
  .capability-grid,
  .product-grid,
  .timeline,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    position: static;
    width: auto;
    margin: 0 16px;
  }

  .metric {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 66px;
    gap: 14px;
  }

  .brand-subtitle,
  .nav-actions .outline-link {
    display: none;
  }

  .hero-inner {
    padding-top: 54px;
  }

  .section {
    padding: 68px 0;
  }

  .copy-panel,
  .capability,
  .product-card,
  .contact-card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
