/* Xinglu Hardware — one shared stylesheet. No frameworks. */
:root {
  --ink: #142033;
  --brand: #1e3a5f;
  --brand-dark: #12243c;
  --accent: #c45c26;
  --accent-hover: #a34a1c;
  --muted: #5c6b7a;
  --line: #d7dee6;
  --paper: #f6f4f0;
  --white: #ffffff;
  --wa: #128c4a;
  --wa-hover: #0e6f3a;
  --notice: #fff6e8;
  --notice-line: #e0c48a;
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(20, 32, 51, 0.08);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color: var(--ink); background: var(--white); scroll-behavior: smooth; }

body {
  margin: 0;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--brand); }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--brand-dark);
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}

.site-header a { color: inherit; text-decoration: none; }
.site-header a:hover { color: #f3d2bf; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand-mark {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-zh { font-size: 0.78rem; opacity: 0.8; }

.nav-desktop { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.nav-desktop a,
.nav-mobile nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.95rem;
}
.nav-desktop a[aria-current="page"],
.nav-mobile nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.nav-mobile { display: none; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 0.95rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 1.25rem;
  margin-top: 0.4rem;
  background: var(--brand);
  border-radius: var(--radius);
  padding: 0.4rem;
  min-width: 12rem;
  box-shadow: var(--shadow);
  z-index: 10;
}

/* Main */
main { flex: 1; }

.hero {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand) 60%, #2a5278);
  color: var(--white);
  padding: 3.2rem 0 3.4rem;
}
.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.hero .lead { margin: 0 0 1.4rem; max-width: 40rem; font-size: 1.1rem; color: #e4ebf3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.section { padding: 2.6rem 0; }
.section + .section { padding-top: 0; }
.section h2 { margin: 0 0 0.8rem; font-size: 1.45rem; }
.muted { color: var(--muted); }

.intro-grid,
.feature-grid,
.contact-grid {
  display: grid;
  gap: 1.2rem;
}
.intro-grid { grid-template-columns: 1.2fr 0.8fr; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.card p:last-child { margin-bottom: 0; }

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

.product-cards {
  display: grid;
  gap: 1rem;
}
.product-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.2rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--white);
  box-shadow: var(--shadow);
}
.product-card:hover { border-color: var(--brand); color: inherit; }
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e8edf2;
  border-radius: 8px;
}
.product-card h3 { margin: 0 0 0.35rem; }
.product-card .meta { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Product page */
.crumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.crumb a { color: inherit; }
.crumb span[aria-current="page"] { color: var(--ink); }

.placeholder-notice {
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1.4rem;
}
.placeholder-notice p { margin: 0.35rem 0 0; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.visual {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.visual .main-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #e8edf2;
  border-radius: 8px;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.thumbs a {
  display: block;
  width: 72px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
}
.thumbs a:hover,
.thumbs a:focus { border-color: var(--brand); }
.thumbs img { aspect-ratio: 1; object-fit: cover; }

.product-copy h1 { margin: 0 0 0.4rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.product-copy .category { margin: 0 0 1rem; color: var(--muted); }

.specs { margin: 1rem 0 0; }
.specs h2 { font-size: 1.15rem; }
.specs dl {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.45rem 1rem;
  margin: 0.6rem 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--line);
}
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; }
.awaiting { color: var(--muted); font-style: italic; }

.inquire {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); color: var(--white); }
.btn-mail { background: var(--brand); color: var(--white); }
.btn-mail:hover { background: var(--brand-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--paper); color: var(--brand); }

/* Contact / about */
.contact-block a.plain { font-weight: 600; }
.contact-grid { grid-template-columns: 1fr 1fr; }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: #d5dde6;
  margin-top: 2.5rem;
  padding: 1.8rem 0 1.5rem;
  font-size: 0.92rem;
}
.site-footer a { color: #f3d2bf; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.4rem;
}
.site-footer h2 { color: var(--white); font-size: 1rem; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.3rem; }
.legal { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); color: #9aa7b5; }

/* 404 */
.not-found { padding: 4rem 0; text-align: center; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; position: relative; }
  .intro-grid,
  .feature-grid,
  .product-layout,
  .contact-grid,
  .footer-inner,
  .product-card { grid-template-columns: 1fr; }
  .hero { padding: 2.2rem 0 2.4rem; }
  .specs dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .specs dt { margin-top: 0.45rem; }
  .header-inner { padding: 0.7rem 0; }
}

@media (max-width: 400px) {
  .brand-zh { display: none; }
  .btn { width: 100%; }
}

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


/* Product prices */
.prices { margin: 1.2rem 0 0; }
.prices h2 { font-size: 1.15rem; margin: 0 0 0.7rem; }
.price-list {
  display: grid;
  gap: 0.8rem;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  background: var(--paper);
}
.price-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.price-card .price-material { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.95rem; }
.price-cny { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; }
.price-usd { display: block; margin-top: 0.2rem; color: var(--muted); }
.price-card .price-notes { margin: 0.5rem 0 0; }
.price-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.92rem; }
.product-card .price-cny { font-weight: 700; margin: 0.35rem 0 0; }
.product-card .price-usd { font-size: 0.92rem; }

.main-figure { margin: 0; }
.main-figure figcaption,
.thumbs figcaption,
.visual .caption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.thumbs a { width: 80px; }
.thumbs img { aspect-ratio: 1; object-fit: contain; background: #e8edf2; }

.price-on-request { margin: 0; }
