:root {
  --ink: #16202c;
  --navy: #0f3b6d;
  --navy-d: #0a2c52;
  --accent: #e8622c;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e6e9ee;
  --muted: #6b7685;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .05), 0 8px 24px rgba(16, 30, 54, .06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
  color: var(--navy);
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-sub {
  font-size: 13px;
  font-weight: 700;
  color: #35414f;
  line-height: 1.35;
  letter-spacing: 0;
}

.logo-sub small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--navy), #1b5aa0);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1.2px;
  line-height: 1;
}

.main-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.main-nav a { color: #45505e; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.on { color: var(--navy); border-color: var(--accent); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(232, 98, 44, .18), transparent 60%),
    linear-gradient(160deg, #0a2c52, #10437b 60%, #0d3560);
  color: #fff;
  padding: 54px 0 48px;
}

.hero h1 {
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: .5px;
}

.hero h1 em { font-style: normal; color: #ffb996; }

.hero p {
  margin: 0 0 24px;
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d4551f; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-line { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-line:hover { border-color: var(--navy); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badges span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- search ---------- */
.searchbar {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(3, 18, 40, .25);
  margin-top: 26px;
  max-width: 640px;
}

.searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  padding: 8px 12px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
}

.searchbar button {
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  font-size: 14px;
}

/* ---------- sections ---------- */
.section { padding: 54px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 24px; margin: 0; letter-spacing: .5px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-head .more { color: var(--navy); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfdae8; }

.cat-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(145deg, #eef3fb, #e3ecf9);
  border: 1px solid #dbe6f4;
}

.cat-card h3 { margin: 0 0 4px; font-size: 16px; }
.cat-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.prod-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #f1f5fb, #e7eef8 55%, #dde8f6);
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.prod-thumb .ph { font-size: 40px; opacity: .55; }
.prod-thumb .ph-note { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 11px; letter-spacing: .5px; color: #9aa8ba; }
.prod-thumb .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

/* 有实拍图时铺满卡片 */
.prod-thumb.has-img { display: block; background: #eef2f8; }
.prod-thumb.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prod-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.prod-body .spec { font-size: 12.5px; color: var(--muted); }
.prod-body .fit { font-size: 12.5px; color: #7b8794; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.prod-foot .price { color: var(--accent); font-weight: 800; font-size: 15px; }
.prod-foot .ask { font-size: 12.5px; color: var(--navy); font-weight: 700; }

/* ---------- promises ---------- */
.promise { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.promise div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; }
.promise b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--navy); }
.promise span { font-size: 12.5px; color: var(--muted); }

/* ---------- contact band ---------- */
.contact-band {
  background: linear-gradient(150deg, #0b2f58, #104a86);
  color: #fff;
  border-radius: 18px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.contact-band h2 { margin: 0 0 10px; font-size: 22px; }
.contact-band p { margin: 0 0 4px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.contact-band .big { font-size: 26px; font-weight: 800; letter-spacing: .5px; }

.qr-box { background: #fff; border-radius: 14px; padding: 14px; color: var(--ink); text-align: center; }
.qr-box .qr { width: 120px; height: 120px; margin: 0 auto 8px; border: 1px dashed #cfd8e6; border-radius: 8px; display: grid; place-items: center; color: #9aa7b8; font-size: 12px; }
.qr-box .qr-img { width: 168px; height: 168px; margin: 0 auto 8px; display: block; border-radius: 6px; }
.qr-box b { font-size: 13px; }

/* ---------- page head (sub pages) ---------- */
.pagehead { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a:hover { color: var(--navy); }
.pagehead h1 { margin: 0; font-size: 26px; letter-spacing: .5px; }
.pagehead p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; padding: 40px 0; align-items: start; }
.detail-media {
  aspect-ratio: 1 / 1;
  min-width: 0;
  border-radius: 16px;
  background: linear-gradient(150deg, #f1f5fb, #e3ebf7);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.detail-media .ph { font-size: 74px; opacity: .55; }
.detail-media .ph-note { font-size: 12px; color: #9aa8ba; letter-spacing: .5px; }
.detail-media.has-img { display: block; background: #eef2f8; padding: 0; }
.detail-media.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 16px; }
.detail h1 { margin: 4px 0 10px; font-size: 26px; }
.detail .lead { color: var(--muted); margin: 0 0 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 96px; color: var(--muted); font-weight: 500; }
.detail .price-line { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.detail .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail .tip { color: var(--muted); font-size: 13px; margin: 14px 0 18px; }

/* 询价表单 */
.ask-box { border: 1px solid var(--line); background: #fbfcfe; border-radius: 14px; padding: 18px; }
.ask-box h3 { margin: 0 0 12px; font-size: 15px; color: var(--navy); }
.ask-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask-form input, .ask-form textarea {
  border: 1px solid #dde3ec; border-radius: 9px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; background: #fff; width: 100%; min-width: 0; color: var(--ink);
}
.ask-form textarea { grid-column: 1 / -1; resize: vertical; }
.ask-form button { grid-column: 1 / -1; justify-self: start; }
.ask-hint { margin-top: 10px; font-size: 13px; min-height: 18px; }
.ask-hint.ok { color: #1c7a41; }
.ask-hint.err { color: #c0392b; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 34px 0 50px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { margin: 0 0 14px; font-size: 17px; color: var(--navy); }
.info-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { width: 74px; flex: none; color: var(--muted); }
.info-row .v { font-weight: 600; }
.info-row a.v:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: #0b1622; color: #93a1b1; padding: 36px 0 30px; font-size: 13px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.site-footer .fname { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; color: #64717f; }

/* ---------- misc ---------- */
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- 手机端底部固定咨询条 ---------- */
.mobile-cta { display: none; }

@media (max-width: 560px) {
  body { padding-bottom: 78px; }
  .mobile-cta {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--line);
  }
  .mc-btn {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
  }
  .mc-call { background: var(--accent); color: #fff; }
  .mc-wechat { background: var(--navy); color: #fff; }
}

@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-band { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 560px) {
  .wrap { width: 94%; }
  .hero { padding: 38px 0 34px; }
  .cat-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promise { grid-template-columns: 1fr 1fr; }
  .header-inner { height: 58px; gap: 10px; }
  .logo small { display: none; }
  .logo-sub { display: none; }
  .logo-img { height: 44px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .section { padding: 38px 0; }
  .prod-body { padding: 11px; }
  .prod-body h3 { font-size: 14px; }
  .contact-band { padding: 24px; }
  .qr-box .qr-img { width: 200px; height: 200px; }
  .pagehead h1 { font-size: 22px; }
  .detail h1 { font-size: 22px; }
  .ask-form { grid-template-columns: 1fr; }
}
