/* ==========================================================
   页面级样式：首页 / 作品集 / 下单 / 查询 / 接单大厅 / 后台
   ========================================================== */

/* hidden 属性必须真正隐藏（.login-wrap / .admin-shell 等设了 display 会覆盖默认行为） */
[hidden] { display: none !important; }

/* ---------------- 首页 Hero ---------------- */
.hero { background: #fff; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(16,24,40,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,24,40,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center; padding: 72px 24px 80px; max-width: var(--maxw); margin: 0 auto;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--blue-soft);
  border: 1px solid var(--blue-line); font-size: 12px; color: var(--blue); font-weight: 600;
  margin-bottom: 20px;
}
.hero__tag i { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.hero h1 { font-size: 44px; line-height: 1.18; font-weight: 720; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--blue); }
.hero__lead { margin-top: 18px; font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 520px; }
.hero__points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hero__points li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); }
.hero__points li svg { flex: none; margin-top: 3px; }
.hero__actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__meta { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hero__meta b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.hero__meta .sep { width: 1px; height: 14px; background: var(--line); }

/* 右侧叠卡示意 */
.hero-visual { position: relative; height: 420px; }
.hero-visual__stage {
  position: absolute; inset: 0; transform: rotate(-1.2deg);
}
.hv-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(16,24,40,.28), 0 2px 6px rgba(16,24,40,.04);
  padding: 16px; font-size: 12px;
}
.hv-card--main { width: 340px; left: 8%; top: 34px; z-index: 3; padding: 0; overflow: hidden; }
.hv-card--main .hv-top { background: #f9fafb; border-bottom: 1px solid var(--line-2); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.hv-card--main .hv-top b { font-size: 13px; color: var(--ink); font-weight: 650; }
.hv-card--main .hv-body { padding: 16px; }
.hv-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 14px; }
.hv-kv div { font-size: 11px; color: var(--muted-2); }
.hv-kv div b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.hv-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.hv-bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--blue), #4b82e8); border-radius: 3px; }
.hv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.hv-price { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hv-price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.hv-card--side {
  width: 230px; left: 58%; top: 96px; z-index: 2;
  transform: rotate(3deg); background: #fff;
}
.hv-card--side .badge { margin-bottom: 8px; }
.hv-card--side h5 { margin: 0 0 4px; font-size: 13px; color: var(--ink); font-weight: 620; }
.hv-card--side p { font-size: 11px; color: var(--muted); line-height: 1.6; }
.hv-card--bottom {
  width: 210px; left: 0; bottom: 8px; z-index: 1; transform: rotate(-4deg);
  background: #fff; padding: 12px 14px;
}
.hv-card--bottom .row { gap: 8px; }
.hv-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.hv-card--bottom b { display: block; font-size: 12px; color: var(--ink); }
.hv-card--bottom span { font-size: 10px; color: var(--muted-2); }
.hv-card--stat {
  width: 150px; right: 0; bottom: 60px; z-index: 4; transform: rotate(2deg);
  text-align: center; padding: 14px;
}
.hv-card--stat b { display: block; font-size: 24px; color: var(--blue); font-weight: 720; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hv-card--stat span { font-size: 11px; color: var(--muted); }

/* 信任条 */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-bar__inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.trust-bar__inner b { color: var(--ink); font-variant-numeric: tabular-nums; }
.trust-bar__item { display: flex; align-items: center; gap: 8px; }

/* 特色三栏 */
.feature { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.feature__icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--blue-soft);
  display: grid; place-items: center; color: var(--blue); margin-bottom: 14px;
}
.feature h3 { font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 首页报价器 */
.quoter { display: grid; grid-template-columns: 1.35fr .8fr; gap: 28px; align-items: stretch; }
.quoter__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.quoter__row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.quoter__row:last-of-type { border-bottom: 0; }
.quoter__row > span { font-size: 13px; color: var(--muted); }
.quoter__result {
  background: linear-gradient(180deg, #10203c 0%, #142a4d 100%);
  border-radius: var(--radius-lg); color: #fff; padding: 30px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.quoter__result::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
}
.quoter__result h4 { color: #fff; font-size: 13px; font-weight: 500; opacity: .72; letter-spacing: .04em; }
.quoter__amount { font-size: 46px; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 8px 0 2px; }
.quoter__amount small { font-size: 15px; font-weight: 500; opacity: .7; margin-left: 4px; }
.quoter__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 12px; opacity: .82; }
.quoter__list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.09); }
.quoter__result .btn { margin-top: 22px; background: #fff; color: #10203c; }
.quoter__result .btn:hover { background: #eef3fd; color: #10203c; }
.quoter__note { font-size: 11px; opacity: .55; margin-top: 10px; line-height: 1.6; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 26px 26px 26px 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: 22px; top: 34px; width: 28px; height: 1px; background: var(--line); display: none;
}
.step__num {
  width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--blue);
  font-variant-numeric: tabular-nums; margin-bottom: 14px;
}
.step h4 { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 案例卡 */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3dbe6; }
.case-card__cover { position: relative; aspect-ratio: 16 / 9; background: #e9edf3; overflow: hidden; }
.case-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-card__cover img { transform: scale(1.03); }
.case-card__cover .fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #12243f, #1d3f74); color: #fff;
}
.case-card__cover .fallback b { font-size: 15px; font-weight: 600; letter-spacing: .06em; opacity: .9; }
.case-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.case-card__body h3 { font-size: 14.5px; font-weight: 640; letter-spacing: -.005em; }
.case-card__body p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.case-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case-card__foot .pages { font-size: 12px; color: var(--muted-2); }

/* 评价 */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.quote-card__text { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.quote-card__stars { color: #e9a23b; font-size: 12px; letter-spacing: 2px; }
.quote-card__user { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.quote-card__user b { font-size: 12.5px; color: var(--ink); font-weight: 600; display: block; }
.quote-card__user span { font-size: 11px; color: var(--muted-2); }

/* CTA */
.cta-band {
  background: #10203c; color: #fff; border-radius: var(--radius-lg); padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -140px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(75,130,232,.28), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: 26px; font-weight: 680; }
.cta-band p { color: rgba(255,255,255,.66); margin-top: 8px; font-size: 14px; }
.cta-band .btn { background: #fff; color: #10203c; flex: none; }
.cta-band .btn:hover { background: #eef3fd; color: #10203c; }

/* ---------------- 下单页 ---------------- */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 80px; }
.order-main { display: flex; flex-direction: column; gap: 20px; }
.form-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.form-block__head { padding: 18px 24px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; background: #fcfcfd; }
.form-block__head .idx {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none;
}
.form-block__head h3 { font-size: 15px; font-weight: 650; }
.form-block__head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.form-block__body { padding: 22px 24px 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid--3 .span-3 { grid-column: span 3; }

/* 上传区 */
.upload {
  border: 1px dashed #cfd6e2; border-radius: var(--radius-sm); background: var(--bg-2);
  padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.upload:hover, .upload.is-drag { border-color: var(--blue-2); background: #f7faff; }
.upload__icon { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 10px; color: var(--muted); }
.upload b { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.upload span { display: block; font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px; }
.file-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.file-item__size { color: var(--muted-2); font-variant-numeric: tabular-nums; flex: none; }

/* 报价侧栏 */
.side-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.summary__head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.summary__head b { font-size: 14px; color: var(--ink); }
.summary__body { padding: 16px 20px; }
.summary__line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; color: var(--ink-2); }
.summary__line span:first-child { color: var(--muted); }
.summary__line--mute { font-size: 12px; color: var(--muted-2); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-top: 1px solid var(--line-2); background: #fcfcfd; }
.summary__total b { font-size: 13px; color: var(--muted); font-weight: 500; }
.summary__total .num { font-size: 28px; font-weight: 720; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.summary__total .num small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.summary__foot { padding: 0 20px 20px; }
.summary__tips { font-size: 12px; color: var(--muted-2); line-height: 1.7; }
.mini-note { display: flex; gap: 10px; padding: 14px 16px; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--radius-sm); font-size: 12.5px; color: var(--blue); line-height: 1.7; }

/* 成功页 */
.success-wrap { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); border: 1px solid #c6f0d7; display: grid; place-items: center; margin: 0 auto 22px; color: var(--green); }
.success-wrap h1 { font-size: 26px; font-weight: 700; }
.success-wrap > p { color: var(--muted); margin-top: 10px; }
.order-no-box { margin: 28px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.order-no-box span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.order-no-box b { display: block; font-family: var(--mono); font-size: 24px; color: var(--ink); letter-spacing: .04em; margin-top: 6px; font-weight: 650; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; text-align: left; }
.next-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.next-step b { display: block; font-size: 13px; color: var(--ink); font-weight: 620; margin-bottom: 4px; }
.next-step p { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ---------------- 订单查询 ---------------- */
.track-panel { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.track-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; box-shadow: var(--shadow-sm); }
.track-result { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.track-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.track-head__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.track-head__no { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.track-head h2 { font-size: 20px; font-weight: 680; margin-top: 4px; }

/* 进度条 */
.progress { display: flex; align-items: center; margin-top: 22px; gap: 0; }
.progress__dot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; flex: none; text-align: center; width: 84px; }
.progress__dot i {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 11px; font-style: normal; color: var(--muted-2);
}
.progress__dot span { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.progress__dot.is-done i { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress__dot.is-done span { color: var(--ink-2); font-weight: 600; }
.progress__dot.is-current i { background: #fff; border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px rgba(29,91,214,.12); }
.progress__dot.is-current span { color: var(--blue); font-weight: 600; }
.progress__line { flex: 1; height: 2px; background: var(--line); margin-bottom: 18px; }
.progress__line.is-done { background: var(--blue); }

/* 时间线 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; font-size: 13px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 3.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: 11px; color: var(--muted-2); margin-top: 1px; font-variant-numeric: tabular-nums; }

/* 聊天 */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 360px; overflow: auto; padding: 4px 2px; }
.chat__msg { max-width: 78%; padding: 9px 13px; border-radius: 10px; font-size: 13px; line-height: 1.65; position: relative; word-break: break-word; }
.chat__msg b { display: block; font-size: 11px; font-weight: 600; margin-bottom: 2px; opacity: .7; }
.chat__msg time { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; display: block; }
.chat__msg--customer { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat__msg--designer { align-self: flex-end; background: var(--blue-soft); border: 1px solid var(--blue-line); color: var(--blue); }
.chat__msg--admin { align-self: center; background: #f4f0ff; border: 1px solid #e4d9ff; color: #5925dc; max-width: 92%; text-align: center; }
.chat-input { display: flex; gap: 10px; margin-top: 14px; }
.chat-input .input { flex: 1; }

/* ---------------- 接单大厅 ---------------- */
.hall-top { background: #fff; border-bottom: 1px solid var(--line); }
.hall-top__inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hall-top h1 { font-size: 24px; font-weight: 700; }
.hall-top p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.designer-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.designer-chip .hv-avatar { width: 30px; height: 30px; font-size: 13px; }
.designer-chip b { font-size: 13px; color: var(--ink); display: block; line-height: 1.2; }
.designer-chip span { font-size: 11px; color: var(--muted-2); }
.hall-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 24px; font-weight: 720; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat b small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 4px; }
.tab { height: 32px; padding: 0 14px; border: none; background: none; border-radius: 6px; font-size: 13px; color: var(--muted); cursor: pointer; font-weight: 500; }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--blue); color: #fff; font-weight: 600; }
.tab .n { font-size: 11px; opacity: .8; margin-left: 3px; }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .15s, box-shadow .15s; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px;
}
.order-item:hover { border-color: #cdd6e3; box-shadow: var(--shadow-sm); }
.order-item__main { min-width: 0; }
.order-item__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.order-item__title h3 { font-size: 15px; font-weight: 640; }
.order-item__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.order-item__meta span { display: inline-flex; align-items: center; gap: 4px; }
.order-item__desc { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-item__side { border-left: 1px solid var(--line-2); padding-left: 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.order-item__side .price { font-size: 22px; letter-spacing: -.02em; }

/* 顶栏下单按钮 */
.nav a.nav-cta {
  height: 36px; padding: 0 16px; margin-left: 4px;
  display: inline-flex; align-items: center;
  background: var(--blue); color: #fff; border-radius: 8px;
  font-weight: 550; font-size: 13.5px;
}
.nav a.nav-cta:hover { background: #0f3674; color: #fff; text-decoration: none; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; padding: 0 20px; transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--muted-2); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > p {
  margin: 0; padding: 14px 0 18px; border-top: 1px dashed var(--line-2);
  font-size: 13px; color: var(--muted); line-height: 1.85;
}

/* 登录卡 */
.login-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 48px 24px; background: var(--bg); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 22px; font-weight: 700; text-align: center; }
.login-card > p { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.login-card .field:last-of-type { margin-bottom: 22px; }
.login-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted-2); line-height: 1.8; }

/* 详情弹层里的 kv */
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-word; }
.desc-box { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }

/* ---------------- 后台 ---------------- */
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #0d1626; color: #c3cbd8; padding: 20px 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .brand { padding: 0 20px 20px; color: #fff; }
.admin-side .brand__mark { background: rgba(255,255,255,.12); color: #fff; }
.admin-side .brand__text span { color: rgba(255,255,255,.4); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.admin-nav button {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border: none; background: none; color: #b6c0d0; font-size: 13.5px; text-align: left;
  border-radius: 8px; cursor: pointer;
}
.admin-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav button.is-on { background: rgba(75,130,232,.18); color: #fff; font-weight: 600; }
.admin-nav .ico { width: 16px; height: 16px; flex: none; opacity: .8; }
.admin-side__foot { margin-top: auto; padding: 16px 20px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.7; }
.admin-main { background: var(--bg); min-width: 0; }
.admin-head { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20; }
.admin-head h1 { font-size: 19px; font-weight: 680; }
.admin-head p { font-size: 12px; color: var(--muted); }
.admin-body { padding: 24px 28px 60px; }
.panel[hidden] { display: none; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi label { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 28px; font-weight: 720; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi b small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .trend { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

.chart { display: flex; align-items: flex-end; gap: 12px; height: 140px; padding: 10px 4px 0; }
.chart__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart__bar i { width: 100%; max-width: 34px; background: linear-gradient(180deg, #4b82e8, #1d5bd6); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart__bar span { font-size: 11px; color: var(--muted-2); }
.chart__bar em { font-size: 11px; font-style: normal; color: var(--ink-2); font-weight: 600; }

.data-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table table { font-size: 13px; }
.data-table th {
  text-align: left; padding: 12px 16px; background: #fcfcfd; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fcfdfe; }
.data-table .no { font-family: var(--mono); font-size: 12px; color: var(--ink); letter-spacing: .02em; }
.data-table .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* 订单表操作列固定在右侧，窄屏横向滚动时也能直接点到「详情 / 删除」 */
.data-table .op-col {
  position: sticky; right: 0; background: #fff; white-space: nowrap;
  box-shadow: -14px 0 14px -14px rgba(16, 24, 40, .2);
}
.data-table thead .op-col { background: #fcfcfd; }
.data-table tbody tr:hover .op-col { background: #fcfdfe; }

.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar .input, .filter-bar .select { height: 36px; font-size: 13px; width: auto; min-width: 150px; }
.filter-bar .grow { flex: 1; min-width: 200px; }

.status-select { height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; background: #fff; font-size: 12px; color: var(--ink-2); }

/* 后台设计师/案例列表 */
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.mini-row__main { flex: 1; min-width: 0; }
.mini-row__main b { display: block; font-size: 13px; color: var(--ink); font-weight: 620; }
.mini-row__main span { font-size: 11.5px; color: var(--muted-2); }

/* 后台响应式 */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hall-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 16px 56px; }
  .hero h1 { font-size: 32px; }
  .hero-visual { height: 380px; }
  .quoter { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid--3 .span-3 { grid-column: auto; }
  .order-item { grid-template-columns: 1fr; gap: 14px; }
  .order-item__side { border-left: none; border-top: 1px solid var(--line-2); padding-left: 0; padding-top: 14px; flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 14px; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  .admin-side__foot { display: none; }
  .admin-body { padding: 18px 16px 48px; }
  .track-form { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .next-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quoter__row { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .case-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .progress__dot { width: 62px; }
  .progress__dot span { font-size: 10px; }
  .pay-panel { padding: 20px 18px; }
  .pay-panel__head { flex-direction: column; gap: 8px; }
}

/* ---------------- 付款面板 ---------------- */
.pay-panel {
  margin: 28px 0 4px; padding: 24px 26px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pay-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pay-panel__amount { font-size: 30px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pay-panel__method {
  background: var(--blue-soft); color: var(--blue-2); border: 1px solid var(--blue-line);
  border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pay-panel__body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.pay-panel__body b { color: var(--ink); }
.pay-panel__body .qr {
  display: block; width: 156px; height: 156px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; background: #fff;
}
.pay-panel__notes { margin: 14px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ---------------- 后台收款设置 ---------------- */
.qr-box {
  display: flex; align-items: center; justify-content: center;
  min-height: 190px; padding: 14px;
  border: 1px dashed var(--line); border-radius: 12px; background: #fbfcfd;
}
.qr-box img { max-width: 190px; max-height: 190px; border-radius: 8px; background: #fff; }
.qr-empty { font-size: 13px; color: var(--muted); }

/* 设计师表格：列不挤成竖排，窄屏横向滚动 */
.dsg-table { min-width: 880px; }
.dsg-table th, .dsg-table td { white-space: nowrap; }
.dsg-table td.dsg-intro { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }


/* ---------------- 独立聊天窗口（客户 / 设计师 / 客服） ---------------- */
.chat-page main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 48px; }

.chat-gate {
  max-width: 460px; margin: 40px auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.chat-gate h1 { font-size: 20px; margin: 0 0 6px; }
.chat-gate p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 18px; }

.chat-shell { display: grid; grid-template-columns: 296px 1fr; gap: 16px; align-items: start; }
.chat-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm);
}
.chat-card__no { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--blue-2); }
.chat-card__topic { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; margin-top: 6px; }
.chat-card__meta { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.95; }
.chat-card__meta b { color: var(--ink-2); font-weight: 600; }
.chat-side__people { display: flex; flex-direction: column; gap: 12px; }
.chat-person { display: flex; align-items: center; gap: 10px; }
.chat-person__av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--blue-soft); color: var(--blue-2);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.chat-person__txt { display: flex; flex-direction: column; gap: 1px; }
.chat-person__txt b { font-size: 13px; color: var(--ink); font-weight: 600; }
.chat-side__note { font-size: 11.5px; line-height: 1.8; color: var(--muted-2); padding: 0 4px; }

.chat-main {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - 210px); min-height: 540px; box-shadow: var(--shadow-sm);
}
.chat-main__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.chat-main__head .tiny { margin-top: 2px; }

.chat-stream {
  flex: 1; overflow-y: auto; padding: 18px 18px 20px;
  background: #fbfcfd; display: flex; flex-direction: column; gap: 14px;
}
.cday {
  align-self: center; font-size: 11.5px; color: var(--muted-2);
  background: #eef1f5; border-radius: 999px; padding: 3px 12px;
}
.cmsg { max-width: 74%; display: flex; flex-direction: column; gap: 4px; }
.cmsg--me { align-self: flex-end; align-items: flex-end; }
.cmsg__who { font-size: 11.5px; color: var(--muted-2); }
.cmsg__bubble {
  font-size: 13.5px; line-height: 1.75; padding: 10px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  word-break: break-word; white-space: normal;
}
.cmsg--me .cmsg__bubble { background: var(--blue); border-color: var(--blue); color: #fff; }
.cmsg--staff { align-self: center; align-items: center; max-width: 88%; }
.cmsg--staff .cmsg__bubble {
  background: #f4f0ff; border-color: #e4d9ff; color: #4b2ea8; text-align: center;
}

.chat-composer { border-top: 1px solid var(--line-2); background: #fff; padding: 12px 16px 14px; }
.chat-composer textarea {
  width: 100%; height: 66px; resize: none; outline: none;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 13.5px; line-height: 1.6;
  color: var(--ink); background: var(--bg-2);
}
.chat-composer textarea:focus { border-color: var(--blue-line); background: #fff; }
.chat-composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

@media (max-width: 860px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-side { position: static; order: 2; }
  .chat-main { height: auto; min-height: 72vh; }
  .chat-page main { padding: 16px 12px 32px; }
}

/* 后台「订单聊天」表：订单号不折行，最后一条限宽 */
#chatBody td:first-child { white-space: nowrap; }
#chatBody td:nth-child(2) { white-space: nowrap; }
#chatBody td:nth-child(3) { max-width: 420px; }
#chatBody td:nth-child(3) div { white-space: nowrap; }

/* 聊天附件：客户 / 设计师 / 客服都能发文件，三方看到同一张卡 */
.cfile {
  display: flex; align-items: center; gap: 10px; max-width: 300px;
  padding: 9px 11px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.cfile:hover { border-color: var(--blue-line); box-shadow: 0 4px 12px rgba(16, 42, 86, .08); }
.cfile__tag {
  flex: none; width: 38px; height: 38px; border-radius: 8px;
  background: #eef3fc; color: #1f4b99; text-align: center;
  font: 600 11px/38px "Segoe UI", system-ui, sans-serif; letter-spacing: .4px;
}
.cfile__img { flex: none; width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: #f2f4f7; }
.cfile__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfile__txt b { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.cfile__txt span { font-size: 11px; color: var(--muted-2); }
.cmsg--me .cfile, .cmsg--staff .cfile { border-color: rgba(255, 255, 255, .6); }
.cmsg__bubble--file { padding: 0; background: transparent; border: none; }

/* 输入区的「传文件」按钮 */
.file-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2);
  font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.file-btn:hover { border-color: var(--blue-line); color: var(--blue); }
.file-btn:disabled { opacity: .6; cursor: default; }


/* 上传进度：大文件传的时候能看到百分比和进度条 */
.chat-progress { padding: 2px 0 8px; }
.chat-progress__row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--muted-2); margin-bottom: 6px;
}
.chat-progress__row b {
  color: var(--ink-2); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-progress__bar { height: 5px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.chat-progress__bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #1f4b99, #3f7bd6); transition: width .12s linear;
}
