/* ==========================================================================
   询盘站样式 —— 单文件，改 :root 变量即可换整套配色
   ========================================================================== */

:root {
  --ink: #15161a;
  --ink-2: #3b3f48;
  --muted: #6d7280;
  --paper: #f7f3ec;
  --paper-2: #fffdf8;
  --line: #e5ded2;
  --line-2: #d3c9b9;
  --rust: #c2542a;
  --rust-d: #a2411c;
  --teal: #1d5f5a;
  --gold: #c9963f;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 22, 26, .05), 0 14px 34px -20px rgba(21, 22, 26, .30);
  --shadow-lg: 0 26px 64px -30px rgba(21, 22, 26, .42);
  --wrap: 1180px;

  --font-display: "Fraunces", Georgia, "Songti SC", "Noto Serif SC", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 520px at 12% -6%, rgba(194, 84, 42, .10), transparent 62%),
    radial-gradient(760px 480px at 96% 4%, rgba(29, 95, 90, .10), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* 细网格底纹，让大片留白不显空 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(21, 22, 26, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 22, 26, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-d); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: .35em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86em; background: rgba(21, 22, 26, .07); padding: .12em .42em; border-radius: 5px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------------------------ 顶栏 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(247, 243, 236, .82);
  border-bottom: 1px solid rgba(21, 22, 26, .07);
}

.header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--rust), var(--rust-d) 70%);
  color: #fff;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px -8px rgba(162, 65, 28, .9);
}

.brand-name { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -.01em; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: .95rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--rust); transition: right .28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 22px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 17px; height: 1.8px; margin: 4px auto; background: var(--ink); border-radius: 2px; }

/* ------------------------------------------------------------------ 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: .94rem; font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper-2); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--rust); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.btn-outline { background: rgba(29, 95, 90, .08); color: var(--teal); border-color: rgba(29, 95, 90, .35); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------ 示例提示条 */

.demo-bar {
  background: repeating-linear-gradient(135deg, var(--gold), var(--gold) 14px, #d8a94f 14px, #d8a94f 28px);
  color: #241c08;
  font-size: .82rem;
  padding: 7px 16px;
  text-align: center;
}
.demo-bar code { background: rgba(255, 255, 255, .55); }

/* ------------------------------------------------------------------ 首页 Hero */

.hero { padding: 76px 0 40px; }
.hero-inner { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); }

.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--rust); }
.hero-lead { font-size: 1.06rem; color: var(--ink-2); max-width: 62ch; }

.toolbar { margin: 34px 0 26px; }
.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search {
  flex: 1 1 320px; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--rust); }
.search input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: .96rem;
  padding: 11px 0; outline: none; color: var(--ink);
}
.search svg { flex: none; opacity: .5; }

select {
  font: inherit; font-size: .9rem;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip {
  display: inline-block;
  font-size: .82rem;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 253, 248, .7);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip-filter { cursor: pointer; font-family: inherit; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.chip-filter:hover { border-color: var(--ink); color: var(--ink); }
.chip-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.chip-cat { background: rgba(255, 253, 248, .92); border-color: transparent; font-weight: 500; }
/* 绝对定位只对卡片图片上的角标生效（.card-media 是定位上下文）；
   详情页里的 chip 是普通行内元素，不能逃逸到页面左上角压住面包屑。 */
.card-media .chip-cat { position: absolute; top: 12px; left: 12px; }

.count { font-size: .88rem; color: var(--muted); margin: 26px 0 14px; }

/* ------------------------------------------------------------------ 产品网格 */

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }

.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #efe9df; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.045); }

.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5em; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--rust); }
.card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.price { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--teal); }
.price-lg { font-size: 1.5rem; }
.dot { font-size: .82rem; color: var(--muted); }
.dot::before { content: "·"; margin-right: 8px; }
.card-cta { margin-top: auto; font-size: .88rem; font-weight: 500; }

/* 无图占位块 */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 22% 12%, hsl(var(--h) 55% 82%), transparent 60%),
    linear-gradient(150deg, hsl(var(--h) 48% 76%), hsl(var(--h2) 42% 62%));
}
.ph span { font-family: var(--font-display); font-size: 1.9rem; color: rgba(255, 255, 255, .92); letter-spacing: .06em; }

.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); }

/* ------------------------------------------------------------------ 流程 / 信任 / CTA */

.section { padding: 66px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }

.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  background: rgba(255, 253, 248, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.step b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rust);
  margin-bottom: 6px;
}
.step h3 { font-size: 1.02rem; }
.step p { margin: 0; font-size: .92rem; color: var(--ink-2); }

.trust { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); padding-top: 30px; }
.trust div b { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.trust div span { font-size: .88rem; color: var(--muted); }

.cta-band {
  margin: 20px 0 0;
  padding: 44px 40px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(194, 84, 42, .22), transparent 55%),
    linear-gradient(135deg, #191b21, #23262e);
  color: #f6f2ea;
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: rgba(246, 242, 234, .78); max-width: 52ch; }
.cta-band .btn-primary { background: var(--rust); color: #fff; }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------------ 详情页 */

.crumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); padding: 26px 0 18px; flex-wrap: wrap; }
.crumbs em { font-style: normal; color: var(--ink-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--rust); }

.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efe9df;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 60px; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  overflow: hidden; background: none; cursor: pointer;
}
.thumb.is-active { border-color: var(--rust); box-shadow: 0 0 0 2px rgba(194, 84, 42, .22); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: .3em; }
.facts { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts b { font-weight: 500; color: var(--muted); }
.highlights { list-style: none; padding: 0; margin: 0 0 26px; }
.highlights li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: .95rem; color: var(--ink-2); }
.highlights li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.detail-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 56px 0 10px; align-items: start; }
.spec-card, .form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
table.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.specs th, table.specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { font-weight: 500; color: var(--muted); width: 42%; }

.related { padding: 46px 0 70px; }

.notfound { padding: 90px 22px; text-align: center; }

/* ------------------------------------------------------------------ 表单 */

.inquiry { margin-top: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.inquiry input, .inquiry textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: .95rem;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.inquiry input:focus, .inquiry textarea:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(194, 84, 42, .12); }
.inquiry textarea { resize: vertical; }
.form-status { min-height: 1.2em; font-size: .88rem; margin: 12px 0 4px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--rust-d); }

/* ------------------------------------------------------------------ 内容页（About / Contact） */

.page-head { padding: 62px 0 12px; max-width: 760px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: .45em; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; align-items: start; padding-bottom: 70px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; }
.contact-list b { font-weight: 500; color: var(--muted); font-size: .86rem; }

.faq { border-top: 1px solid var(--line); padding: 8px 0 70px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq summary::marker { color: var(--rust); }
.faq p { margin: 10px 0 0; color: var(--ink-2); font-size: .94rem; }

/* ------------------------------------------------------------------ 页脚 */

.site-footer { border-top: 1px solid var(--line); background: rgba(255, 253, 248, .55); padding: 46px 0 34px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-inner h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-inner a { display: block; color: var(--ink-2); font-size: .93rem; margin-bottom: 7px; }
.footer-inner a:hover { color: var(--rust); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ------------------------------------------------------------------ 悬浮联系按钮 */

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: .94rem;
  font-weight: 500;
  box-shadow: 0 16px 36px -14px rgba(29, 95, 90, .85);
  transition: transform .2s ease, background .2s ease;
}
.fab:hover { background: #174b47; color: #fff; transform: translateY(-2px); }
.fab svg { flex: none; }

@media (max-width: 560px) {
  .fab { right: 14px; bottom: 14px; padding: 13px; }
  .fab span { display: none; }
}

/* ------------------------------------------------------------------ 入场动画 */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.22, .68, .36, 1); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* ------------------------------------------------------------------ 响应式 */

@media (max-width: 960px) {
  .detail, .detail-lower, .split { grid-template-columns: 1fr; }
  .detail { gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 52px 0 24px; }
  .section { padding: 48px 0; }
  .header-cta { margin-left: auto; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 16px;
    margin: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
  .row { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
}
