:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --accent: #ff6a00;
  --text: #1f2329;
  --text-2: #5c6470;
  --text-3: #98a1ad;
  --border: #ebedf0;
  --bg: #f5f6f8;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(31, 35, 41, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部 ---------- */
.topbar { background: #2b3038; color: #c9ced6; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 32px; }

.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; height: 60px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #3ddc97); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.logo-sub { font-size: 11px; font-weight: 400; color: var(--text-3); letter-spacing: .5px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { padding: 6px 0; color: var(--text-2); position: relative; }
.nav-links a:hover, .nav-links a.on { color: var(--primary); }
.nav-links a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); border-radius: 2px; }
.nav-search { flex: 1; display: flex; justify-content: flex-end; }
.nav-search input { width: 220px; height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 18px; background: #f7f8fa; }
.cart-btn { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 13px; white-space: nowrap; }
.cart-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: var(--primary); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- 通用 ---------- */
.page { padding: 20px 0 48px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.crumb { font-size: 13px; color: var(--text-3); padding: 14px 0 0; }
.crumb a:hover { color: var(--primary); }
.sec-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 14px; }
.sec-title h2 { font-size: 20px; }
.sec-title span { font-size: 13px; color: var(--text-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 26px; border: none; border-radius: 22px; background: var(--primary); color: #fff; font-size: 15px; cursor: pointer; transition: .15s; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { background: #c8cdd4; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: #f7f8fa; color: var(--text); }
.btn-orange { background: linear-gradient(90deg, #ff8a00, var(--accent)); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; border-radius: 17px; }

.price { color: var(--accent); font-weight: 700; }
.price small { font-size: 12px; }
.price del { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 6px; }

.tag { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 11px; line-height: 18px; }
.tag-green { background: #e8f8ef; color: var(--primary-dark); }
.tag-orange { background: #fff2e6; color: #d96000; }

/* ---------- 首页 ---------- */
.hero { background: linear-gradient(120deg, #07c160, #0bb35f 45%, #3ddc97); color: #fff; padding: 44px 0 52px; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero h1 { font-size: 30px; line-height: 1.35; margin-bottom: 10px; }
.hero p { opacity: .92; margin-bottom: 22px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span { padding: 5px 14px; border-radius: 14px; background: rgba(255, 255, 255, .18); font-size: 12px; }
.hero .btn { background: #fff; color: var(--primary-dark); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; position: relative; z-index: 2; }
.feature { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; align-items: center; gap: 10px; }
.feature i { width: 34px; height: 34px; border-radius: 8px; background: #e8f8ef; color: var(--primary); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 17px; }
.feature b { display: block; font-size: 14px; }
.feature em { font-style: normal; font-size: 12px; color: var(--text-3); }

.cat-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 4px; }
.cat-bar a { padding: 6px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.cat-bar a.on, .cat-bar a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goods { background: #fff; border-radius: var(--radius); overflow: hidden; transition: .2s; }
.goods:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31, 35, 41, .12); }
.goods-pic { position: relative; padding-top: 100%; background: #f7f8fa; }
.goods-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.goods-pic .tag { position: absolute; left: 8px; top: 8px; }
.goods-body { padding: 12px 14px 16px; }
.goods-name { font-size: 14px; font-weight: 500; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goods-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.goods-sales { font-size: 12px; color: var(--text-3); }

/* ---------- 商品详情 ---------- */
.detail { display: grid; grid-template-columns: 420px 1fr; gap: 28px; }
.detail-pic { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.detail-info h1 { font-size: 21px; line-height: 1.45; }
.detail-sub { color: var(--text-3); font-size: 13px; margin: 6px 0 14px; }
.price-box { background: linear-gradient(90deg, #fff6ef, #fff); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.price-box .price { font-size: 28px; }
.price-box .price small { font-size: 16px; }
.rows { display: grid; grid-template-columns: 72px 1fr; gap: 10px 12px; font-size: 13px; padding: 10px 0; border-top: 1px solid var(--border); }
.rows dt { color: var(--text-3); }
.rows dd { color: var(--text); }
.spec-list { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-list span { padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; color: var(--text-2); background: #fafbfc; }
.num-ctrl { display: flex; align-items: center; gap: 2px; }
.num-ctrl button { width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.num-ctrl button:hover { color: var(--primary); border-color: var(--primary); }
.num-ctrl input { width: 52px; height: 30px; text-align: center; border: 1px solid var(--border); border-left: none; border-right: none; }
.buy-bar { display: flex; gap: 12px; margin-top: 20px; }

.review { border-top: 1px solid var(--border); padding: 14px 0; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.review-stars { color: #ff9f1a; letter-spacing: 1px; }
.review-text { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* ---------- 表格 / 表单 ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.table th { background: #fafbfc; color: var(--text-2); font-weight: 500; }
.table tr:last-child td { border-bottom: none; }
.table .g-cell { display: flex; align-items: center; gap: 12px; }
.table .g-cell img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.table tfoot td { background: #fafbfc; }

.form-row { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.form-row:last-child { border-bottom: none; }
.form-row label { color: var(--text-2); font-size: 13px; }
.form-row label em { color: var(--accent); font-style: normal; }
.form-row input, .form-row textarea, .form-row select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; }
.form-row textarea { height: 70px; padding: 10px 12px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }
.form-inline { display: flex; gap: 10px; }
.err { color: var(--accent); font-size: 12px; min-height: 18px; padding-top: 6px; }

/* ---------- 结果页 ---------- */
.result { text-align: center; padding: 40px 24px; }
.result-icon { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 32px; line-height: 62px; }
.result h2 { font-size: 21px; margin-bottom: 6px; }
.result p { color: var(--text-3); margin-bottom: 22px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.deliver { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-top: 20px; text-align: left; }
.deliver h3 { font-size: 15px; margin-bottom: 12px; }
.timeline { border-left: 2px solid var(--border); padding-left: 18px; margin-left: 6px; }
.timeline li { position: relative; padding-bottom: 18px; font-size: 13px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.timeline li.on::before { background: var(--primary); box-shadow: 0 0 0 3px #e8f8ef; }
.timeline li b { display: block; font-size: 13px; }
.timeline li span { color: var(--text-3); font-size: 12px; }

.empty { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty-icon { font-size: 46px; margin-bottom: 12px; }

/* ---------- 协议 / 正文 ---------- */
.doc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.doc h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.doc .doc-meta { text-align: center; color: var(--text-3); font-size: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.doc h2 { font-size: 16px; margin: 24px 0 10px; padding-left: 10px; border-left: 3px solid var(--primary); }
.doc p, .doc li { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.doc ol, .doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc ul li { list-style: disc; }
.doc ol li { list-style: decimal; }
.doc strong { color: var(--text); }
.contact-box { background: #f7f8fa; border-radius: 8px; padding: 16px 20px; margin-top: 24px; font-size: 13px; color: var(--text-2); }

/* ---------- 页脚 ---------- */
.footer { background: #2b3038; color: #a8b0bb; margin-top: 40px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 36px 0 24px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer p { margin-bottom: 5px; }
.footer li { margin-bottom: 7px; }
.footer li a:hover, .footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #3b414a; padding: 16px 0 26px; text-align: center; font-size: 12px; color: #7d858f; }
.footer-bottom a { color: #a8b0bb; }
.footer-bottom a:hover { color: #fff; }

.toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .78); color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 14px; z-index: 999; opacity: 0; transition: .2s; pointer-events: none; }
.toast.on { opacity: 1; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-search { display: none; }
  .doc { padding: 20px; }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 23px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-inner { gap: 12px; }
  .logo-sub { display: none; }
}

/* ===========================================================
 * 动画与视觉增强
 * - 纯 CSS 实现，无第三方依赖
 * - 入场动画由脚本添加 .anim-in 触发；未启用 JS 时元素保持默认
 *   可见，不影响内容展示与抓取（配合支付审核对静态内容的要求）
 * =========================================================== */

/* 1. 入场动画（滚动渐入） */
@keyframes ywRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.anim-in { animation: ywRise .62s cubic-bezier(.22, .68, .3, 1) both; }

/* 2. 首屏 Hero：流动光晕 + 网格纹理 */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.hero::before {
  content: ''; position: absolute; left: -10%; right: -10%; top: -30%; height: 170%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 70%) 18% 32% / 520px 520px no-repeat,
    radial-gradient(closest-side, rgba(61, 220, 151, .42), rgba(61, 220, 151, 0) 70%) 82% 22% / 430px 430px no-repeat;
  animation: ywFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 32%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 32%, transparent 76%);
}
@keyframes ywFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.03); }
}
.hero h1, .hero p, .hero-tags, .hero .btn { animation: ywRise .72s cubic-bezier(.22, .68, .3, 1) both; }
.hero h1 { animation-delay: .04s; }
.hero p { animation-delay: .14s; }
.hero-tags { animation-delay: .24s; }
.hero .btn { animation-delay: .32s; }

/* 3. 服务卡片：图片缩放 + 悬浮层次 */
.goods-pic { overflow: hidden; }
.goods-pic img { transition: transform .55s cubic-bezier(.22, .68, .3, 1); }
.goods:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(31, 35, 41, .14); }
.goods:hover .goods-pic img { transform: scale(1.07); }
.goods:active { transform: translateY(-2px); }

/* 4. 按钮：流光扫过 + 按压反馈 */
.btn { position: relative; overflow: hidden; transition: .18s; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(7, 193, 96, .16), transparent); }

/* 5. 优势卡片 / 分类 / 规格标签 */
.feature, .cat-bar a, .spec-list span { transition: transform .25s, box-shadow .25s, border-color .2s, color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(31, 35, 41, .12); }
.feature i { transition: transform .3s; }
.feature:hover i { transform: rotate(-8deg) scale(1.1); }
.cat-bar a:hover { transform: translateY(-2px); }
.spec-list span:hover { border-color: var(--primary); color: var(--primary); }

/* 6. 导航滚动阴影 */
.nav { transition: box-shadow .25s ease; }
.nav.scrolled { box-shadow: 0 4px 18px rgba(31, 35, 41, .09); }

/* 7. 细节质感 */
html { scroll-behavior: smooth; }
.goods-name { transition: color .2s; }
.goods:hover .goods-name { color: var(--primary-dark); }
.crumb a, .nav-links a, .footer a { transition: color .2s; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfd4da; border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b4bac2; }

/* 8. 无障碍：尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 9. 首屏装饰：三层同心圆环缓慢旋转 */
.hero-deco { position: absolute; right: -60px; bottom: -90px; width: 330px; height: 330px; pointer-events: none; z-index: 1; }
.hero-deco span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.hero-deco span:nth-child(1) { inset: 0; animation: ywSpin 28s linear infinite; }
.hero-deco span:nth-child(2) { inset: 44px; border-style: dashed; border-color: rgba(255, 255, 255, .3); animation: ywSpin 19s linear infinite reverse; }
.hero-deco span:nth-child(3) { inset: 96px; border-color: rgba(255, 255, 255, .38); animation: ywSpin 13s linear infinite; }
@keyframes ywSpin { to { transform: rotate(360deg); } }

/* 10. 服务能力指标条 */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { position: relative; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 14px; text-align: center; transition: transform .25s, box-shadow .25s; }
.stat::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), #3ddc97); transform: translateX(-50%); transition: width .35s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(31, 35, 41, .12); }
.stat:hover::before { width: 62%; }
.stat b { display: block; font-size: 26px; line-height: 1.25; color: var(--primary-dark); }
.stat b i { font-style: normal; }
.stat em { font-style: normal; font-size: 12px; color: var(--text-3); }

/* 11. 服务流程时间线 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2px 0 6px; }
.step { position: relative; padding: 4px 12px; text-align: center; }
.step::after {
  content: ''; position: absolute; left: 50%; top: 17px; width: 100%; height: 2px; z-index: 1;
  background: linear-gradient(90deg, var(--primary), #3ddc97); opacity: .26;
}
.step:last-child::after { display: none; }
.step i {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3ddc97); color: #fff;
  font-style: normal; font-weight: 700; box-shadow: 0 0 0 6px rgba(7, 193, 96, .1);
  transition: transform .3s, box-shadow .3s;
}
.step:hover i { transform: scale(1.12); box-shadow: 0 0 0 9px rgba(7, 193, 96, .14); }
.step b { display: block; font-size: 14px; margin-bottom: 4px; }
.step em { font-style: normal; font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* 12. 首页分类卡片：彩色侧边条（每个分类独立配色） */
#catGrid .card { position: relative; overflow: hidden; }
#catGrid .card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary), #3ddc97); transition: width .25s;
}
#catGrid .card:hover::before { width: 5px; }
#catGrid .card:nth-child(1)::before { background: linear-gradient(180deg, #3b82f6, #60a5fa); }
#catGrid .card:nth-child(2)::before { background: linear-gradient(180deg, #0ea5e9, #38bdf8); }
#catGrid .card:nth-child(3)::before { background: linear-gradient(180deg, #ef4444, #f87171); }
#catGrid .card:nth-child(4)::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
#catGrid .card:nth-child(5)::before { background: linear-gradient(180deg, #10b981, #34d399); }
#catGrid .card:nth-child(6)::before { background: linear-gradient(180deg, #6366f1, #818cf8); }
#catGrid .card:nth-child(7)::before { background: linear-gradient(180deg, #f43f5e, #fb7185); }
#catGrid .card:nth-child(8)::before { background: linear-gradient(180deg, #14b8a6, #2dd4bf); }
#catGrid .card:nth-child(9)::before { background: linear-gradient(180deg, #f97316, #fb923c); }

/* 13. 服务卡片：悬浮时顶部展开品牌色条 */
.goods { position: relative; }
.goods::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--primary), #3ddc97);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.22, .68, .3, 1);
}
.goods:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .step::after { display: none; }
  .hero-deco { width: 230px; height: 230px; right: -50px; bottom: -70px; }
}

/* 14. 页脚资质徽章行 */
.badgebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 24px 0 2px; }
.badge {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s, border-color .25s, transform .25s;
}
.badge:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.badge i { font-style: normal; font-size: 19px; line-height: 1; }
.badge b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.badge em { font-style: normal; font-size: 11px; color: #7d858f; }

/* 15. 详情页质感：价格区 / 保障徽章 / 规格打勾 / 评价卡片 */
.price-box { border-left: 3px solid var(--accent); }
.first-pay { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.first-pay b { color: var(--accent); font-weight: 700; }
.assure { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.assure span {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 6px;
  background: #f2fbf6; color: var(--primary-dark); font-size: 12px;
  transition: transform .2s, background .2s;
}
.assure span:hover { transform: translateY(-2px); background: #e6f7ee; }
.assure i { font-style: normal; font-weight: 700; }
.spec-list span { display: inline-flex; align-items: center; }
.spec-list span::before { content: '✓'; margin-right: 4px; color: var(--primary); font-weight: 700; font-size: 12px; }
.review {
  padding: 12px 14px; margin-bottom: 10px; border-radius: 8px;
  background: #fafbfc; border: 1px solid var(--border);
  transition: background .2s, border-color .2s;
}
.review:hover { background: #f5f9f7; border-color: #d6efe0; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-head b { font-size: 13px; }
.review-stars { color: #ff9f1a; font-size: 12px; letter-spacing: 1px; }
.review-text { font-size: 13px; color: var(--text-2); }

@media (max-width: 900px) {
  .badgebar { grid-template-columns: repeat(2, 1fr); }
}

/* 16. 服务列表页：筛选区 + 分类速览横条 */
.filter-bar { display: flex; gap: 10px; align-items: center; margin: 16px 0 6px; flex-wrap: wrap; }
.search-input {
  width: 260px; height: 36px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: 18px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(7, 193, 96, .12); }
.count-text {
  margin-left: auto; font-size: 12px; color: var(--text-2); background: #fff;
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 14px;
}
.count-text b { color: var(--primary); }

/* 分类速览：每个分类独立主题色，悬浮染色，选中为渐变胶囊 */
.cat-bar { gap: 10px; margin: 18px 0 4px; }
.cat-bar a {
  position: relative; padding: 8px 16px; border-radius: 20px; background: #fff;
  border: 1px solid var(--border); font-size: 13px; color: var(--text-2);
  transition: transform .2s, border-color .2s, color .2s, box-shadow .2s;
}
.cat-bar a:hover {
  transform: translateY(-2px); border-color: var(--c, var(--primary));
  color: var(--c, var(--primary)); box-shadow: 0 6px 16px rgba(31, 35, 41, .08);
}
.cat-bar a.on {
  background: linear-gradient(135deg, var(--c, var(--primary)), var(--c2, #3ddc97));
  border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(7, 193, 96, .25);
}
.cat-bar a i {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px;
  background: rgba(0, 0, 0, .05); font-style: normal; font-size: 11px; line-height: 17px;
}
.cat-bar a.on i { background: rgba(255, 255, 255, .26); }
.cat-bar a:nth-child(1) { --c: #3b82f6; --c2: #60a5fa; }
.cat-bar a:nth-child(2) { --c: #0ea5e9; --c2: #38bdf8; }
.cat-bar a:nth-child(3) { --c: #ef4444; --c2: #f87171; }
.cat-bar a:nth-child(4) { --c: #f59e0b; --c2: #fbbf24; }
.cat-bar a:nth-child(5) { --c: #10b981; --c2: #34d399; }
.cat-bar a:nth-child(6) { --c: #6366f1; --c2: #818cf8; }
.cat-bar a:nth-child(7) { --c: #f43f5e; --c2: #fb7185; }
.cat-bar a:nth-child(8) { --c: #14b8a6; --c2: #2dd4bf; }
.cat-bar a:nth-child(9) { --c: #f97316; --c2: #fb923c; }
.cat-bar a:nth-child(10) { --c: #8b5cf6; --c2: #a78bfa; }

/* 17. 购物车 / 结算：清单卡片化 */
.ci-head, .ci {
  display: grid; grid-template-columns: 56px 1fr 110px 130px 120px 60px;
  gap: 12px; align-items: center;
}
.ci-head { padding: 0 16px 10px; font-size: 12px; color: var(--text-3); }
.ci {
  padding: 14px 16px; margin-bottom: 10px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .25s, opacity .22s, transform .22s;
}
.ci:hover { box-shadow: 0 8px 22px rgba(31, 35, 41, .1); }
.ci.removing { opacity: 0; transform: translateX(26px); }
.ci-pic { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #f7f8fa; }
.ci-main { min-width: 0; }
.ci-name {
  display: block; font-size: 14px; font-weight: 500; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; transition: color .2s;
}
.ci-name:hover { color: var(--primary); }
.ci-cat { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ci-price, .ci-sub { font-size: 14px; }
.ci-sub { font-weight: 700; }
.ci-del { font-size: 12px; color: var(--text-3); text-align: center; transition: color .2s; }
.ci-del:hover { color: #fa5151; }
.num-ctrl input { transition: transform .2s, color .2s, border-color .2s; }
.num-ctrl input.bump { transform: scale(1.25); color: var(--primary); border-color: var(--primary); }
.ci-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 14px; padding: 16px 18px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.ci-foot b { color: var(--primary); }
/* 结算页清单嵌在白卡片内，改用浅底描边，避免"白卡片套白卡片" */
#goodsList .ci { background: #fafbfc; box-shadow: none; border: 1px solid var(--border); }
#goodsList .ci:hover { background: #f5f9f7; border-color: #d6efe0; box-shadow: none; }

/* 18. 页头：标题 + 一句说明 */
.page-head { margin: 16px 0 18px; }
.page-head h2 { font-size: 20px; }
.page-head p { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* 19. 结算步骤条 */
.checkout-steps { grid-template-columns: repeat(3, 1fr); margin: 0 0 20px; }
.checkout-steps .step { padding: 0; }
.checkout-steps .step i { background: #e6e9ed; color: #a8b0bb; box-shadow: none; }
.checkout-steps .step.on i {
  background: linear-gradient(135deg, var(--primary), #3ddc97); color: #fff;
  box-shadow: 0 0 0 6px rgba(7, 193, 96, .1);
}
.checkout-steps .step.on b { color: var(--primary-dark); }
.checkout-steps .step b { font-size: 13px; }

@media (max-width: 760px) {
  .ci-head { display: none; }
  .ci { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .ci-main { flex: 1; min-width: 130px; }
  .ci-price::before { content: '单价 '; color: var(--text-3); font-size: 12px; }
  .ci-sub::before { content: '小计 '; color: var(--text-3); font-size: 12px; }
  .ci-del { margin-left: auto; }
}
