:root {
  --ink: #16211f;
  --muted: #64706c;
  --line: #d9dfdc;
  --paper: #f6f3ed;
  --panel: #ffffff;
  --accent: #d87922;
  --accent-dark: #9f541a;
  --blue: #245b73;
  --shadow: 0 18px 50px rgba(18, 31, 29, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 243, 237, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
}

.nav-links a:hover,
.language-menu summary:hover {
  background: #ebe6dc;
  color: var(--ink);
}

.language-menu {
  position: relative;
}

.language-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  border-radius: 6px;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "▾";
  margin-left: 6px;
  color: var(--muted);
}

[dir="rtl"] .language-menu summary::after {
  margin-right: 6px;
  margin-left: 0;
}

.language-menu div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

[dir="rtl"] .language-menu div {
  right: auto;
  left: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 76vh, 760px);
  overflow: hidden;
  padding: clamp(34px, 7vw, 88px) clamp(18px, 4vw, 56px);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 9, .94) 0%, rgba(5, 10, 9, .76) 44%, rgba(5, 10, 9, .42) 100%),
    rgba(0, 0, 0, .18);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1,
.page-title h1,
.detail-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
}

.hero p,
.page-title p,
.detail-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero p {
  color: rgba(255, 255, 255, .82);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2a23a;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

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

.button.ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.button.muted {
  background: #e6ece9;
  color: var(--blue);
}

.detail-title-row {
  display: grid;
  gap: 14px;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(28, 128, 75, .26);
  border-radius: 999px;
  background: rgba(28, 128, 75, .1);
  color: #1c804b;
  font-size: 13px;
  font-weight: 800;
}

.stock-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #22a35a;
}

[dir="rtl"] .stock-badge::before {
  margin-right: 0;
  margin-left: 7px;
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: #111b19;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78);
}

.brand-strip > span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-strip div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.brand-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.brand-strip a:hover {
  border-color: rgba(242, 162, 58, .72);
  background: rgba(242, 162, 58, .14);
}

.empty-state {
  display: grid;
  justify-items: start;
  max-width: 720px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-state span {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.empty-state p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.trust-band {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 56px) 38px;
  background: linear-gradient(180deg, #111b19 0%, #192623 58%, var(--paper) 58%, var(--paper) 100%);
  border: 0;
}

.trust-card {
  position: relative;
  min-height: 180px;
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    #16211f;
  color: #fff;
  box-shadow: 0 22px 56px rgba(8, 15, 14, .22);
}

.trust-card:first-child {
  border-radius: 8px 0 0 8px;
}

.trust-card:last-child {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.trust-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(216, 121, 34, 0));
}

.trust-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: rgba(242, 162, 58, .16);
  color: #f2a23a;
  font-size: 13px;
  font-weight: 800;
}

.trust-band strong,
.support-box strong {
  font-size: 18px;
}

.trust-band p {
  max-width: 680px;
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, .74);
}

.trust-card small {
  color: rgba(255, 255, 255, .54);
  font-size: 13px;
  font-weight: 700;
}

.support-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-wrap,
.detail-section,
.page-title,
.machine-detail {
  padding: 44px clamp(18px, 4vw, 56px);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.machine-card {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card-image {
  position: relative;
  display: block;
  background: #dfe4e1;
}

.card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 16px;
}

.machine-type {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-weight: 700;
}

.card-body h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.25;
}

.meta-list,
.detail-meta,
.spec-table {
  margin: 0;
}

.meta-list div,
.detail-meta div,
.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 44px clamp(18px, 4vw, 56px);
}

.detail-hero > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-meta {
  max-width: 560px;
  margin-top: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: clamp(24px, 5vw, 64px);
}

.spec-table {
  border-bottom: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.support-box {
  margin-top: 22px;
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: #fff;
}

.video-grid video {
  width: 100%;
  max-height: 620px;
  border-radius: 8px;
  background: #000;
}

.photo-wall {
  column-count: 3;
  column-gap: 14px;
}

.photo-wall a {
  display: block;
  margin-bottom: 14px;
  break-inside: avoid;
}

.photo-wall img {
  width: 100%;
  border-radius: 8px;
  background: #dfe4e1;
}

.photo-stream {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.stream-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe4e1;
}

.stream-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stream-item span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(22, 33, 31, .78);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.site-footer p,
.footer-contact {
  color: rgba(255, 255, 255, .72);
}

.footer-contact {
  display: grid;
  gap: 6px;
  text-align: right;
}

@media (max-width: 900px) {
  .detail-hero,
  .two-col,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .trust-card:first-child,
  .trust-card:last-child {
    border-radius: 8px;
    border-left: 1px solid rgba(255, 255, 255, .14);
  }

  .trust-card + .trust-card {
    margin-top: 12px;
  }

  .brand-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-strip div {
    justify-content: flex-start;
  }

  .photo-wall {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .hero h1,
  .page-title h1,
  .detail-hero h1 {
    font-size: 36px;
  }

  .photo-wall {
    column-count: 1;
  }

  .footer-contact {
    text-align: left;
  }
}
