/* =========================================================
   发卡网前台样式
   ========================================================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff4ff;
  --primary-line: #c7d7fe;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #111827;
  --text-2: #374151;
  --muted: #8b91a1;
  --line: #edeff4;
  --line-2: #e3e6ee;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #10b981;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .04);
  --shadow: 0 6px 20px -10px rgba(17, 24, 39, .18);
  --shadow-lg: 0 16px 40px -18px rgba(17, 24, 39, .28);
  --container: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.text-warn { color: var(--danger); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.main { padding-bottom: 56px; min-height: 55vh; }

/* ===================== 头部 ===================== */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  font-weight: 700; font-size: 17px; box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .7);
}
.logo-text { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.logo-img { height: 40px; width: auto; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -.01em;
  padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-link:hover { color: var(--primary); }
.nav-link.on { color: var(--primary); border-bottom-color: var(--primary); }

.search-mini { display: flex; align-items: center; flex: 0 0 auto; background: #f4f5f8; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 3px 3px 14px; }
.search-mini input { border: 0; background: transparent; outline: 0; width: 150px; font-size: 13.5px; color: var(--text); padding: 6px 0; }
.search-mini button { border: 0; background: var(--text); color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.search-mini button:hover { background: #000; }

/* ===================== 公告栏 ===================== */
.notice-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding: 9px 14px 9px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.notice-label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.notice-label i { font-style: normal; font-size: 12px; }
.notice-track { flex: 1; min-width: 0; overflow: hidden; }
.notice-move { display: inline-flex; align-items: center; white-space: nowrap; }
.notice-inner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; color: var(--text-2); }
.notice-track.is-scroll .notice-move { animation: notice-marquee 30s linear infinite; }
.notice-track.is-scroll:hover .notice-move { animation-play-state: paused; }
.notice-item { white-space: nowrap; }
a.notice-item:hover { color: var(--primary); text-decoration: underline; }
.notice-sep { font-style: normal; color: #c8ccd6; }
@keyframes notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.notice-track.is-scroll .notice-inner { padding-right: 42px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .8); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { border-color: #c9cdd8; color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 7px; font-weight: 500; }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ===================== 服务承诺 ===================== */
.feature-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 8px; margin-top: 16px; position: relative; z-index: 5;
  box-shadow: var(--shadow-sm);
}
.feature { display: flex; align-items: center; gap: 12px; padding: 4px 18px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); font-size: 20px;
}
.feature strong { display: block; font-size: 14.5px; line-height: 1.4; }
.feature small { color: var(--muted); font-size: 12.5px; }

/* ===================== 分类图标墙 ===================== */
.cat-wall {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.cat-tile {
  flex: 0 0 118px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px; border-radius: 12px; transition: background .15s, transform .15s;
}
.cat-tile:hover { background: #f7f8fb; transform: translateY(-2px); }
.cat-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); overflow: hidden;
}
.cat-ico img { width: 70%; height: 70%; object-fit: contain; }
.cat-emoji { font-size: 22px; line-height: 1; }
.cat-name { font-size: 13px; color: var(--text-2); text-align: center; }

/* ===================== 推广横幅 ===================== */
.promo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.promo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 132px;
  display: flex; align-items: center; border: 1px solid var(--line);
  background: linear-gradient(115deg, var(--primary-soft), #ffffff 70%);
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.promo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo.has-image { background: #0f172a; }
.promo.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-body { position: relative; z-index: 2; padding: 24px 26px; }
.promo-body strong { display: block; font-size: 18px; margin-bottom: 4px; color: var(--text); }
.promo-body span { display: block; font-size: 13px; color: var(--muted); }
.promo-body em { display: inline-block; margin-top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ===================== 区块 ===================== */
.block { margin-top: 34px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.block-title { font-size: 21px; letter-spacing: -.01em; }
.block-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.block-sub a { color: var(--primary); }

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

/* ===================== 商品卡片 ===================== */
.pcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-line); }
.pcard-img { position: relative; aspect-ratio: 4 / 3; background: #f4f6fa; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 34px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
}
.pcard.is-out .pcard-img { filter: grayscale(.35); }
.pcard-badge {
  position: absolute; left: 8px; top: 8px; font-size: 11.5px; padding: 2px 8px;
  border-radius: 6px; background: rgba(255, 255, 255, .92); color: #b91c1c; font-weight: 600;
}
.badge-out { background: rgba(17, 24, 39, .78); color: #fff; }
.badge-manual { background: rgba(245, 158, 11, .95); color: #fff; }
.badge-low { background: rgba(239, 68, 68, .95); color: #fff; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-title {
  font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px;
}
.pcard-sum {
  margin: 0; font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pcard-price { color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.pcard-price i { font-style: normal; font-size: 12px; font-weight: 600; margin-right: 1px; color: var(--danger); }
.pcard-price b { font-weight: 700; }
.pcard-sales { font-size: 11.5px; color: var(--muted); }

.empty-box {
  background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
  padding: 56px 20px; text-align: center;
}
.empty-ico { font-size: 34px; display: block; margin-bottom: 8px; }
.empty-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.empty-sub { margin: 0; color: var(--muted); font-size: 13px; }

/* ===================== 提示 ===================== */
.alert { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin: 14px 0; border: 1px solid transparent; }
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.alert-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ===================== 面包屑 ===================== */
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 18px 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumb-cur { color: var(--text-2); }

/* ===================== 商品详情 ===================== */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.product-main { padding: 22px; }
.product-cover { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 22px; background: #f4f6fa; display: grid; place-items: center; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; font-size: 36px; font-weight: 700;
}
.cover-fallback.lg { width: 96px; height: 96px; border-radius: 26px; font-size: 44px; }
.product-title { font-size: 24px; letter-spacing: -.01em; margin-bottom: 8px; }
.product-summary { color: var(--muted); margin: 0 0 14px; font-size: 13.5px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meta { font-size: 12px; color: var(--muted); background: #f4f5f8; border-radius: 7px; padding: 3px 9px; }
.section { margin-top: 24px; }
.section-title { font-size: 15px; margin-bottom: 10px; }
.rich { color: var(--text-2); font-size: 13.5px; }
.rich.notice { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; }

.product-buy { position: sticky; top: 88px; padding: 22px; }
.buy-price { display: flex; align-items: baseline; gap: 2px; color: var(--danger); font-weight: 800; font-size: 32px; margin-bottom: 18px; }
.buy-price .cny { font-size: 17px; }
.buy-price del { font-size: 13px; color: #9ca3af; font-weight: 400; margin-left: 8px; }
.soldout-box { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 14px; text-align: center; font-size: 13.5px; }

/* ===================== 表单 ===================== */
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea {
  width: 100%; padding: 10px 12px; font-size: 14px; color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; line-height: 1.6; }
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper input { border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .step { width: 42px; height: 40px; border: 0; background: #f7f8fa; font-size: 17px; color: #4b5563; cursor: pointer; }
.stepper .step:hover { background: var(--primary-soft); color: var(--primary); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pay-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 13.5px; background: #fff;
}
.pay-item input { accent-color: var(--primary); }
.pay-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.pay-ico.ali { background: #1677ff; }
.pay-ico.wx { background: #07c160; }

.total-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px dashed var(--line-2); margin-top: 4px; font-size: 13.5px; }
.total-row strong { color: var(--danger); font-size: 21px; }
.buy-tip { color: var(--muted); font-size: 11.5px; margin: 9px 0 0; line-height: 1.5; }
.assure { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: grid; gap: 6px; }

/* ===================== 支付 / 订单 ===================== */
.center-box { display: flex; justify-content: center; padding: 36px 0; }
.center-box.narrow { max-width: 520px; margin: 0 auto; }
.pay-panel { width: 100%; max-width: 520px; text-align: center; padding: 32px; }
.pay-title { font-size: 21px; margin-bottom: 6px; }
.pay-sub { color: var(--muted); margin: 0 0 20px; font-size: 13.5px; }
.order-brief { text-align: left; background: #f8f9fc; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; margin-bottom: 18px; display: grid; gap: 7px; }
.order-brief div { display: flex; justify-content: space-between; font-size: 13.5px; }
.order-brief span { color: var(--muted); }
.pay-amount { color: var(--danger); }
.link-muted { color: var(--muted); font-size: 12.5px; }

.page-title { font-size: 21px; margin-bottom: 6px; }

.order-wrap { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-status { display: flex; align-items: center; gap: 13px; }
.order-no { font-size: 19px; letter-spacing: .01em; }
.order-amount { font-size: 26px; font-weight: 800; color: var(--danger); }
.status-badge { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.st-pending { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.st-done { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.st-paid { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.st-closed { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

.pay-action h2 { font-size: 16px; margin-bottom: 5px; }
.secret-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.secret-list { display: grid; gap: 8px; }
.secret-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.secret-item code { flex: 1; word-break: break-all; font-size: 13px; color: #0f172a; }
.secret-idx { color: #94a3b8; font-size: 11.5px; }
.btn.copied { background: #ecfdf5 !important; color: #047857 !important; border-color: #a7f3d0 !important; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-size: 13px; text-align: right; word-break: break-all; }

/* 订单列表（邮箱查询结果） */
.order-list { display: grid; gap: 8px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 14px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 11px;
  transition: border-color .15s, background .15s, transform .15s;
}
.order-row:hover { border-color: var(--primary-line); background: var(--primary-soft); transform: translateY(-1px); }
.order-row-title { font-size: 14px; font-weight: 600; color: var(--text); }
.order-row-qty { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 4px; }
.order-row-sub { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.order-row-sub .dot { color: #c8ccd6; }
.order-row-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.order-row-amount { font-weight: 700; font-size: 15px; color: var(--text); }

/* ===================== 分页 ===================== */
.pager { display: flex; gap: 7px; justify-content: center; padding: 18px 0 4px; }
.pg { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); font-size: 13px; }
.pg.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===================== 页脚 ===================== */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding: 36px 20px 28px; }
.footer-brand { max-width: 320px; }
.footer-desc { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.footer-contact { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { font-size: 13px; color: var(--text); margin-bottom: 2px; }
.footer-col a, .footer-col span { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--primary); }
.footer-muted { font-size: 12.5px; color: #b3b8c4; }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 0 18px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.footer-credit { font-size: 12px; color: #b3b8c4; }
.footer-credit a { color: #9aa1b0; }
.footer-credit a:hover { color: var(--primary); }

/* 悬浮客服 */
.float-service {
  position: fixed; right: 22px; bottom: 26px; z-index: 50;
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  background: var(--primary); color: #fff; border: 0; border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(37, 99, 235, .8); font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.float-service:hover { background: var(--primary-dark); color: #fff; }
.float-service em { font-style: normal; }
.float-service span { font-size: 15px; }

/* 客服弹窗 */
.svc-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.svc-modal[hidden] { display: none; }
.svc-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.svc-card {
  position: relative; width: min(400px, 100%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: 0 30px 70px -24px rgba(15, 23, 42, .45);
  animation: svc-in .18s ease-out;
}
@keyframes svc-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.svc-close {
  position: absolute; right: 10px; top: 8px; width: 32px; height: 32px;
  border: 0; background: transparent; font-size: 22px; line-height: 1; color: #9aa1b0;
  cursor: pointer; border-radius: 9px; font-family: inherit;
}
.svc-close:hover { background: #f3f4f6; color: var(--text); }
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 26px; }
.svc-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); font-size: 20px; }
.svc-head strong { display: block; font-size: 16px; }
.svc-head small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.svc-qq-box { display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px dashed var(--primary-line); border-radius: 12px; padding: 14px 16px; }
.svc-qq-label { font-size: 12.5px; color: var(--muted); flex: 0 0 auto; }
.svc-qq-num { flex: 1; font-size: 21px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.svc-tip { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ===================== 错误页 ===================== */
.error-panel { text-align: center; padding: 38px 26px; }
.error-code { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); margin-bottom: 10px; }
.error-msg { color: var(--muted); margin: 0 0 18px; }

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .search-mini input { width: 110px; }
}
@media (max-width: 860px) {
  .header-inner { gap: 14px; height: 60px; }
  .search-mini { display: none; }
  .feature-bar { grid-template-columns: repeat(2, 1fr); margin-top: 12px; padding: 12px 6px; row-gap: 12px; }
  .feature + .feature { border-left: 0; }
  .feature:nth-child(even) { border-left: 1px solid var(--line); }
  .product { grid-template-columns: 1fr; }
  .product-buy { position: static; }
  .promo-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 26px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  /* iOS Safari：输入框字号小于 16px 时，聚焦会自动放大页面，这里统一提到 16px 避免误触缩放 */
  input[type=text], input[type=password], input[type=number],
  input[type=email], input[type=tel], input[type=search], select, textarea {
    font-size: 16px;
  }
  .stepper input { font-size: 16px; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .logo-text, .nav-link { font-size: 17px; }
  .logo-img { height: 32px; }
  .header-inner { gap: 14px; }
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-wall { padding: 10px; gap: 2px; }
  .cat-tile { flex: 0 0 88px; padding: 8px 4px; }
  .cat-ico { width: 40px; height: 40px; border-radius: 12px; }
  .cat-name { font-size: 12px; }
  .block-title { font-size: 18px; }
  .block { margin-top: 26px; }
  .pcard-body { padding: 10px 12px 12px; gap: 4px; }
  .pcard-title { font-size: 14px; min-height: 40px; line-height: 1.45; }
  .pcard-price { font-size: 16px; }
  .pcard-price i { font-size: 12px; }
  .pcard-sales { font-size: 11px; }
  .pcard-badge { font-size: 11px; padding: 2px 7px; left: 7px; top: 7px; }
  .order-head { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .float-service em { display: none; }
  .float-service { padding: 12px; }
}
