/* ==========================================================================
   智能安防工坊 · ZHIJIAN WORKS
   Design system: 深墨蓝工程蓝本 + 单一信号色琥珀
   0 radius on cards · 6px on buttons · 100px on pills
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* ink surfaces */
  --ink: #0b1219;
  --ink-2: #0f1922;
  --ink-3: #081017;
  --card: #101b25;
  --card-2: #16232e;
  --card-warm: #191207;

  /* hairlines */
  --line: #22303c;
  --line-2: #2a3a47;
  --line-warm: rgba(242, 169, 59, 0.45);

  /* text on dark */
  --txt: #eff3f5;
  --txt-2: #93a6b3;
  --txt-3: #5f7280;
  --txt-4: #a9bac6;

  /* signal */
  --amber: #f2a93b;
  --amber-deep: #4a3410;
  --amber-soft: #c7b395;
  --cyan: #5cb2ce;

  /* paper surfaces */
  --paper: #f0ebe0;
  --paper-card: #faf7ee;
  --paper-line: #d5cbBA;
  --paper-ink: #1a2228;
  --paper-txt: #3d4a52;
  --paper-txt-2: #5c6a73;
  --brown: #a8701a;
  --brown-2: #8a7a5c;

  /* type */
  --f-sans: "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --f-num: "Barlow", "Noto Sans SC", -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* layout */
  --page: 1440px;
  --pad: 72px;
  --sec-y: 92px;
  --gap: 16px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body,
h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input {
  font: inherit;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--txt);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* focus ring — never removed, only restyled */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.paper :focus-visible {
  outline-color: var(--brown);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--amber);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 12px;
}

/* ---------- primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: var(--sec-y);
}
.section--tight {
  padding-block: 96px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.kicker--amber {
  color: var(--amber);
}
.kicker--brown {
  color: var(--brown);
}

.h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h2--paper {
  color: var(--paper-ink);
}

.lead {
  font-size: 14px;
  line-height: 1.85;
  color: var(--txt-2);
  text-align: right;
  max-width: 340px;
}
.lead--paper {
  color: var(--paper-txt-2);
}

/* section header: title left, note right */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.sec-head__title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}
.btn--amber {
  background: var(--amber);
  color: var(--ink);
}
.btn--amber:hover {
  background: #ffb84d;
}
.btn--ghost {
  border: 1px solid #2e3f4d;
  color: var(--txt);
  font-weight: 400;
  padding: 15px 26px;
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn--dark {
  background: var(--ink);
  color: var(--amber);
}
.btn--dark:hover {
  background: #16232e;
}
.btn--outline-dark {
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 400;
  padding: 15px 24px;
}
.btn--outline-dark:hover {
  background: rgba(11, 18, 25, 0.08);
}
.btn--sm {
  padding: 8px 15px;
  font-size: 12px;
  border: 1px solid rgba(242, 169, 59, 0.5);
  color: var(--amber);
  background: var(--ink);
  border-radius: 6px;
}
.btn--sm:hover {
  background: var(--amber);
  color: var(--ink);
}
.btn--sm-solid {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--sm-solid:hover {
  background: #ffb84d;
}

/* ==========================================================================
   header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  /* 高亮滑块的定位基准 */
  position: relative;
}
.nav__link {
  font-size: 14px;
  color: var(--txt-2);
  transition: color 0.16s ease;
  position: relative;
  /* 压在滑块之上，否则文字会被半透明背景盖住 */
  z-index: 1;
}
.nav__link:hover {
  color: var(--txt);
}
/* 不加粗：字重一变字宽就跳，滑块会跟文字错位半帧 */
.nav__link[aria-current="page"],
.nav__link.is-active {
  color: var(--amber);
}

/* 随滚动移动的高亮滑块
   位置/宽度全部由 main.js 逐帧写入，这里只管长相和过渡 */
.nav__indicator {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 34px;
  margin-top: -17px;
  border-radius: 6px;
  background: rgba(242, 169, 59, 0.1);
  border: 1px solid rgba(242, 169, 59, 0.32);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.46s cubic-bezier(0.22, 0.68, 0.24, 1),
    width 0.46s cubic-bezier(0.22, 0.68, 0.24, 1),
    opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
  will-change: transform, width;
}
.nav__indicator.is-on {
  opacity: 1;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}
.header__ghost {
  font-size: 14px;
  color: var(--txt-2);
}
.header__ghost:hover {
  color: var(--txt);
}
.header__cta {
  padding: 13px 24px;
  font-size: 14px;
}

/* mobile nav */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--txt);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--txt);
}
.nav-toggle span::before {
  top: -5px;
}
.nav-toggle span::after {
  top: 5px;
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding: 8px 0 20px;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: var(--txt-2);
  border-bottom: 1px solid rgba(34, 48, 60, 0.6);
}
.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 100% at 30% 0%, #16242f 0%, #0b1219 62%);
  padding-block: 104px 96px;
  overflow: hidden;
}
.hero__rule {
  position: absolute;
  inset: 16px 0 auto 0;
  height: 18px;
  color: var(--line);
  pointer-events: none;
}
.hero__rule svg {
  width: 100%;
  height: 100%;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 72px;
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 700px;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__kicker i {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--amber);
}
.hero__title {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hero__sub {
  font-size: 16px;
  line-height: 1.85;
  color: var(--txt-2);
  max-width: 620px;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.stats {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-family: var(--f-num);
  font-size: 26px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1.1;
}
.stat__label {
  font-size: 12px;
  color: var(--txt-2);
}

/* live order card */
.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
}
.order-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--card-2);
}
.order-card__code {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--amber);
  background: rgba(242, 169, 59, 0.14);
  border: 1px solid rgba(242, 169, 59, 0.45);
}
.order-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 22px;
}
.order-card__title {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
}
.order-card__scope {
  font-size: 12px;
  color: var(--txt-2);
}
.order-card__body dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.order-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.order-card__row dt {
  font-size: 13px;
  color: var(--txt-2);
}
.order-card__row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.order-card__row dd.mono {
  font-family: var(--f-mono);
  font-weight: 400;
}
.order-card__price {
  font-family: var(--f-num);
  font-size: 20px;
  font-weight: 600;
  color: var(--amber);
}
.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--txt-2);
}
.order-card__foot b {
  font-weight: 400;
  color: var(--amber);
}

/* ==========================================================================
   services
   ========================================================================== */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.svc {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.svc:hover {
  border-color: #33475a;
  background: #121e29;
}
.svc__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
}
.svc__title {
  font-size: 21px;
  font-weight: 700;
}
.svc__desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--txt-2);
}
.svc__out {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--amber);
}
.svc--accent {
  background: var(--card-warm);
  border-color: var(--line-warm);
}
.svc--accent .svc__meta,
.svc--accent .svc__out {
  color: var(--amber);
}
.svc--accent .svc__desc {
  color: var(--amber-soft);
}

/* 整包交付：横跨整行的收口卡 */
.svc--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: center;
}
.svc__lead {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc--wide .svc__title {
  font-size: 24px;
}
.svc--wide .svc__out {
  margin-top: 0;
  padding-top: 0;
}

/* ==========================================================================
   process (paper)
   ========================================================================== */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.step {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  font-family: var(--f-num);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--brown);
}
.step__title {
  font-size: 17px;
  font-weight: 700;
}
.step__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-txt-2);
}

/* ==========================================================================
   works
   ========================================================================== */
.grid-works {
  /* 六则案例：3 × 2 两排。1080 以下退两列，900 以下仍保持两列（收单列太浪费版面），
     640 以下才收成一列。 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.work {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.work:hover {
  border-color: #33475a;
}
.work__thumb {
  position: relative;
  aspect-ratio: 640 / 250;
  background: #0e1822;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 统一压一档亮度和饱和，照片才不会在深色卡片里“发飘” */
  filter: saturate(0.92) contrast(1.05) brightness(0.88);
  transition: transform 0.6s ease, filter 0.6s ease;
}
/* 底部渐暗，让图片和卡片下缘过渡自然 */
.work__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 22, 0.12) 0%,
    rgba(10, 16, 22, 0.26) 55%,
    rgba(10, 16, 22, 0.6) 100%
  );
}
.work:hover .work__thumb img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.05) brightness(0.96);
}
@media (prefers-reduced-motion: reduce) {
  .work__thumb img,
  .work:hover .work__thumb img {
    transition: none;
    transform: none;
  }
}
.work__body {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work__title {
  font-size: 20px;
  font-weight: 700;
}
.work__meta {
  font-size: 12px;
  line-height: 1.7;
  color: var(--txt-2);
}
.work__result {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   pricing
   ========================================================================== */
.pricing {
  background: var(--ink-2);
}
.grid-pricing {
  /* 六档：在线调试 / 点位施工 / 单件交付 / 企业网站 / 项目包干 / 长期运维。
     3 × 2 两排各三张，左右边缘齐平；项目包干（accent）落在第二排正中，
     是整组的视觉重心。 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.tier {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier--accent {
  background: var(--card-warm);
  border-color: rgba(242, 169, 59, 0.55);
}
.tier__kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
}
.tier--accent .tier__kicker {
  color: var(--amber);
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tier__num {
  font-family: var(--f-num);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}
.tier--accent .tier__num {
  color: var(--amber);
}
.tier__unit {
  font-size: 13px;
  color: var(--txt-2);
}
.tier--accent .tier__unit {
  color: var(--amber-soft);
}
.tier__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--txt-2);
}
.tier--accent .tier__desc {
  color: var(--amber-soft);
}
.tier__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: #c6d3db;
}
.tier--accent .tier__list {
  color: #e6d7bf;
}
.tier__list li::before {
  content: "— ";
  color: var(--txt-3);
}
.tier--accent .tier__list li::before {
  color: var(--amber);
}
/* 在线调试卡的新客福利：贴底显示，四张卡对齐时不会把列表撑乱 */
.tier__promo {
  margin-top: auto;
  padding: 9px 12px;
  border: 1px dashed var(--amber);
  color: var(--amber);
  font-size: 12px;
  line-height: 1.5;
}
.tier__promo b {
  font-weight: 700;
}

/* ==========================================================================
   about (paper)
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 720px) 460px;
  gap: 64px;
  align-items: center;
  justify-content: space-between;
}
.about__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__p {
  font-size: 14px;
  line-height: 2;
  color: var(--paper-txt);
}
.about__rule {
  height: 1px;
  background: var(--paper-line);
}
.creds {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-ink);
}
.creds li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(213, 203, 186, 0.75);
}
.creds li:last-child {
  border-bottom: 0;
}
.about__meta {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.about__meta dt {
  font-size: 11px;
  color: var(--brown-2);
  margin-bottom: 6px;
}
.about__meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-ink);
}
.about__figure {
  position: relative;
  aspect-ratio: 460 / 500;
  background: #1a2228;
  overflow: hidden;
}
.about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* ==========================================================================
   faq
   ========================================================================== */
.grid-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 56px;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.faq__q {
  font-size: 15px;
  font-weight: 500;
  color: var(--txt);
}
.faq__a {
  font-size: 13px;
  line-height: 1.85;
  color: var(--txt-2);
}

/* ==========================================================================
   final cta
   ========================================================================== */
.cta {
  background: var(--amber);
  color: var(--ink);
  padding-block: 68px;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta__title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}
.cta__desc {
  margin-top: 14px;
  font-size: 14px;
  color: var(--amber-deep);
}
.cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer {
  background: var(--ink-3);
  padding-block: 64px 30px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.footer__brand {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__brand .brand__name {
  font-size: 17px;
}
.footer__tag {
  font-size: 13px;
  line-height: 1.85;
  color: #7c8f9c;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col h3 {
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
}
.footer__col a,
.footer__col span {
  font-size: 13px;
  color: var(--txt-2);
}
.footer__col a:hover {
  color: var(--amber);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1a2731;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--txt-3);
}

/* ==========================================================================
   orders page
   ========================================================================== */
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #7c8f9c;
}
.crumb__sep {
  font-family: var(--f-mono);
  color: #3f515e;
}
.crumb__now {
  color: var(--amber);
  font-weight: 500;
}
.orders-intro {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-block: 52px 40px;
}
.orders-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.orders-head__title h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.orders-head__title p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--txt-2);
  max-width: 640px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 12px;
  background: var(--card-2);
  color: var(--txt-4);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.chip:hover {
  color: var(--txt);
}
.chip[aria-pressed="true"] {
  background: var(--amber);
  color: var(--ink);
  font-weight: 500;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid #2b3a45;
  background: var(--ink);
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--txt);
  font-size: 12px;
}
.search input::placeholder {
  color: #6e8391;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  border-color: var(--amber);
}
.search svg {
  flex: none;
}

.orders-body {
  display: grid;
  grid-template-columns: minmax(0, 880px) 380px;
  gap: 36px;
  align-items: start;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 96px;
}
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--txt-4);
  padding-bottom: 0;
}
.list-head span:last-child {
  font-size: 12px;
  color: var(--txt-3);
}

.order {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.order:hover {
  border-color: #33475a;
  background: #121e29;
}
.order:focus-within {
  border-color: var(--amber);
}
.order--accent {
  background: var(--card-warm);
  border-color: var(--line-warm);
}
.order--accent:hover {
  background: #1f1708;
}
.order__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.order__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.order__price {
  font-family: var(--f-num);
  font-size: 19px;
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
  flex: none;
}
.order__meta {
  font-size: 12px;
  line-height: 1.7;
  color: var(--txt-2);
}
.order--accent .order__meta {
  color: var(--amber-soft);
}
.order__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.order__code {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--txt-3);
}
.order--accent .order__code {
  color: #a08a68;
}
.order.is-hidden {
  display: none;
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside__card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside__big {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.aside__big b {
  font-family: var(--f-num);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--amber);
}
.aside__big span {
  font-size: 13px;
  color: var(--txt-4);
}
.aside__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--txt-2);
}
.aside__row b {
  font-weight: 500;
  color: var(--amber);
}
.aside__row b.muted {
  color: var(--txt-3);
  font-weight: 400;
}
.aside__note {
  font-size: 11px;
  line-height: 1.75;
  color: var(--txt-3);
}
.aside__lines {
  font-size: 12px;
  line-height: 2.1;
  color: var(--txt-4);
}
.aside__cta {
  background: var(--amber);
  border: 0;
  color: var(--ink);
  gap: 12px;
}
.aside__cta h2 {
  font-size: 18px;
  font-weight: 700;
}
.aside__cta p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--amber-deep);
}
.aside__cta .btn {
  width: 100%;
  padding: 11px 16px;
  font-size: 12px;
  background: var(--ink);
  color: var(--amber);
  border-radius: 6px;
}
.aside__cta .btn:hover {
  background: #16232e;
}

/* empty state */
.empty {
  padding: 40px 22px;
  border: 1px dashed var(--line-2);
  color: var(--txt-3);
  font-size: 13px;
  text-align: center;
}
.empty[hidden] {
  display: none;
}

/* ==========================================================================
   modal
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.72);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  max-height: 86vh;
  overflow: auto;
}
.modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.modal__close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--txt-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.modal__close:hover {
  color: var(--amber);
  border-color: var(--amber);
}
.modal__body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal__title {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
}
.modal__dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal__dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.modal__dl dt {
  color: var(--txt-2);
}
.modal__dl dd {
  margin: 0;
  font-weight: 500;
}
.modal__note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--txt-2);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.modal__actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1280px) {
  :root {
    --pad: 48px;
    --sec-y: 76px;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
  }
  .about {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
  }
  .orders-body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  /* 报价卡在 1280 以下转两列，避免每张卡片窄到放不下价格 */
  .grid-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1081px) {
  .aside {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 1080px) {
  .nav,
  .header__ghost {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .grid-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orders-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 32px;
    --sec-y: 64px;
  }
  .hero {
    padding-block: 72px 64px;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .order-card {
    max-width: 470px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .lead {
    text-align: left;
    max-width: none;
  }
  .grid-faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc--wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .about__figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer__top {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 20px;
    --sec-y: 52px;
  }
  .grid-services,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-pricing {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    gap: 28px;
  }
  .hero__ctas .btn,
  .cta__actions .btn {
    width: 100%;
  }
  .order__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .order__bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .order__bot .btn {
    width: 100%;
  }
  .search {
    width: 100%;
  }
  .filter-bar {
    align-items: stretch;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .about__meta {
    gap: 28px;
  }
  .tier__num,
  .aside__big b {
    font-size: 32px;
  }
}

/* ---------- 在线咨询 ---------- */
/* 客服有新回复时，各咨询入口右上角亮一个琥珀色小点 */
[data-chat].has-unread {
  position: relative;
}
[data-chat].has-unread::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--ink);
  animation: chat-dot 1.6s ease-in-out infinite;
}
@keyframes chat-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  [data-chat].has-unread::after { animation: none; }
}
