/* ============================================================
   甘肃锦梁昱商贸有限公司 — 市政工程器材供应
   Static marketing site stylesheet
   ============================================================ */

:root {
  --accent: #f3c012;        /* primary yellow */
  --accent-2: #c2410c;      /* secondary orange */
  --ink: #14202b;           /* dark navy */
  --ink-deep: #0f1822;      /* footer navy */
  --paper: #f4f2ee;         /* page background */
  --text: #1a2129;
  --text-muted: #5a646e;
  --text-soft: #6b7580;
  --line: #e6e2db;
  --line-soft: #eceae4;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
}

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

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #d6dde4;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar .container {
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__dot {
  width: 8px; height: 8px;
  background: var(--accent);
  display: inline-block;
}
.topbar__region { color: #8a97a4; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__stripe {
  height: 6px;
  width: 100%;
  background-image: repeating-linear-gradient(
    45deg, var(--accent) 0 22px, var(--ink) 22px 44px);
}
.hero__layout {
  padding-top: 64px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
}
.hero__content { min-width: 0; }
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
  border: 1px solid rgba(243, 192, 18, 0.4);
  padding: 6px 14px;
  margin-bottom: 26px;
}
.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.hero__lead {
  margin: 24px 0 0;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 500;
  color: #c4ccd4;
  max-width: 640px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.tag {
  appearance: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 22px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.tag:hover { border-color: rgba(243, 192, 18, 0.72); }
.tag:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tag--solid {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-color: transparent;
}

/* Hero product carousel */
.hero-carousel {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 18px 18px 0 rgba(243, 192, 18, 0.12);
}
.hero-carousel::before {
  content: "产品实拍";
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.hero-carousel__viewport {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #27333e;
}
.hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(8, 14, 20, 0.92));
  pointer-events: none;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide:nth-child(1) img { object-position: center 46%; }
.hero-slide:nth-child(2) img { object-position: center center; }
.hero-slide figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.hero-slide figcaption strong { font-size: 22px; font-weight: 900; }
.hero-slide figcaption span { color: #c4ccd4; font-size: 13px; white-space: nowrap; }
.hero-carousel__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 24, 34, 0.72);
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, color 160ms ease;
}
.hero-carousel__arrow:hover,
.hero-carousel__arrow:focus-visible { background: var(--accent); color: var(--ink); outline: none; }
.hero-carousel__arrow--prev { left: 14px; }
.hero-carousel__arrow--next { right: 14px; }
.hero-carousel__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -18px;
  display: flex;
  gap: 8px;
  padding: 9px 12px;
  background: var(--ink);
  transform: translateX(-50%);
}
.hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  background: #697581;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}
.hero-carousel__dot.is-active { width: 24px; background: var(--accent); }
.hero-carousel__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Stats strip ---------- */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 0;
  padding-right: 0;
}
.stat {
  padding: 28px 8px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
}
.stat__unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-2);
}
.stat__label {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ---------- Section primitives ---------- */
.section { padding-top: 72px; }
.section--tight { padding-top: 56px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent-2);
}
.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.25;
}
.rule {
  width: 52px;
  height: 4px;
  background: var(--accent);
  margin-top: 20px;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.about__head h2 { margin: 14px 0 0; }
.about__body {
  font-size: 16px;
  color: #3a444e;
  line-height: 1.9;
}
.about__body p { margin: 0 0 16px; }
.about__body p:last-child { margin-bottom: 0; }

/* ---------- Products ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.section-head__note { font-size: 14px; color: var(--text-soft); }

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
}
.product__media {
  height: 320px;
  overflow: hidden;
  position: relative;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.product__media--placeholder {
  background-image: repeating-linear-gradient(
    45deg, #ece9e3 0 14px, var(--paper) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product__placeholder-text {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: #9a958c;
  letter-spacing: 0.05em;
}
.product__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
}
.product__body { padding: 24px 26px 28px; }
.product__body h3 { margin: 0; font-size: 22px; font-weight: 900; }
.product__body p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Price list (dark) ---------- */
.pricing {
  background: var(--ink);
  color: #fff;
  margin-top: 72px;
}
.pricing .container { padding-top: 72px; padding-bottom: 80px; }
.pricing__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.pricing__head .eyebrow { color: var(--accent); }
.pricing__head h2 { margin: 12px 0 0; }
.pricing__note { font-size: 14px; color: #9aa6b1; }

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.price-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 30px 28px;
}
.price-card__name {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.price-card__spec { font-size: 15px; color: #9aa6b1; margin-top: 8px; }
.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 24px;
}
.price-card__num { font-size: 46px; font-weight: 900; color: #fff; }
.price-card__per { font-size: 16px; color: #c4ccd4; }
.price-card--featured {
  background: var(--accent);
  color: var(--ink);
}
.price-card--featured .price-card__name { color: var(--ink); }
.price-card--featured .price-card__spec,
.price-card--featured .price-card__per { color: #4a4326; }
.price-card--featured .price-card__num { color: var(--ink); }

.pricing__custom {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(243, 192, 18, 0.5);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.chip {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
}
.pricing__custom span:last-child { font-size: 17px; font-weight: 500; }

/* ---------- Why us ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 26px 24px;
}
.why-card__title {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}
.why-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Partners ---------- */
.partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--accent);
  padding: 28px 22px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}
.partner--more {
  background: var(--paper);
  border-style: dashed;
  border-bottom-style: dashed;
  border-color: #d8d2c8;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 18px 24px;
}
.faq-item summary {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-2);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 14px 0 2px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ---------- Contact CTA ---------- */
.cta {
  background: #fff;
  border: 1px solid var(--line);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta__head h2 { margin: 0; font-size: clamp(24px, 3.5vw, 30px); font-weight: 900; }
.cta__head p { margin: 14px 0 0; font-size: 16px; color: var(--text-muted); }
.cta__tags { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.cta__tags span {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
}
.cta__contact {
  border-left: 4px solid var(--accent);
  padding-left: 28px;
}
.cta__label {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.2em;
  font-weight: 700;
}
.cta__phone {
  font-size: clamp(26px, 4vw, 30px);
  font-weight: 900;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.cta__phone:hover { color: var(--accent-2); }
.cta__company { font-size: 14px; color: var(--text-soft); margin-top: 14px; }
.cta__company strong { color: var(--text); font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-deep);
  color: #8a97a4;
  font-size: 13px;
}
.footer .container {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .hero-carousel { width: min(100%, 620px); box-shadow: 12px 12px 0 rgba(243, 192, 18, 0.12); }
  .hero-carousel__viewport { aspect-ratio: 16 / 10; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .products__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .cta__contact { border-left: none; border-top: 4px solid var(--accent); padding-left: 0; padding-top: 24px; }
}

@media (max-width: 560px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero__layout { padding-top: 46px; padding-bottom: 58px; gap: 36px; }
  .hero__lead br { display: none; }
  .hero-carousel { width: calc(100% - 10px); }
  .hero-carousel__viewport { aspect-ratio: 4 / 5; }
  .hero-slide figcaption { left: 18px; right: 18px; bottom: 25px; align-items: start; flex-direction: column; gap: 2px; }
  .hero-slide figcaption strong { font-size: 20px; }
  .hero-carousel__arrow { width: 38px; height: 38px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .why__grid { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track { transition: none; }
}
