/* 乔初清洁 · 物业耗材  前台样式 2026-11-10 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f7f6; color: #22312f; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { line-height: 1.8; }

/* 顶部通知条 */
.qc-notice { background: #12564f; color: #d8efe9; font-size: 12px; text-align: center; padding: 7px 10px; letter-spacing: .5px; }
/* 品牌刊头 */
.qc-masthead { background: #fff; padding: 18px 16px 14px; border-bottom: 1px solid #e3ece9; }
.qc-mast-brand { font-size: 26px; font-weight: 800; color: #12564f; letter-spacing: 2px; }
.qc-mast-brand span { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 500; color: #2e8b7f; background: #e8f4f1; border-radius: 10px; padding: 3px 10px; vertical-align: middle; letter-spacing: 0; }
.qc-mast-sub { margin-top: 8px; font-size: 12.5px; color: #7d918d; letter-spacing: .5px; }
/* 分类胶囊带 */
.qc-chip-nav { display: flex; gap: 8px; overflow-x: auto; background: #fff; padding: 10px 14px 12px; border-bottom: 1px solid #e3ece9; scrollbar-width: none; }
.qc-chip-nav::-webkit-scrollbar { display: none; }
.qc-chip-nav a { flex: 0 0 auto; font-size: 13px; color: #4c6360; background: #eef5f3; border-radius: 14px; padding: 6px 14px; }
.qc-chip-nav a.on { background: #12564f; color: #fff; }
.qc-chip-nav-sub { position: sticky; top: 0; z-index: 20; }
/* 服务横条 */
.qc-service-strip { display: flex; background: #e8f4f1; margin: 10px 12px 0; border-radius: 8px; padding: 12px 6px; }
.qc-service-strip div { flex: 1; text-align: center; border-right: 1px solid #cfe4df; }
.qc-service-strip div:last-child { border-right: none; }
.qc-service-strip b { display: block; font-size: 13px; color: #12564f; }
.qc-service-strip span { font-size: 11px; color: #6d827e; }
/* 楼层 */
.qc-floor { margin-top: 14px; }
.qc-floor-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 14px 8px; }
.qc-floor-head h2 { font-size: 17px; color: #12564f; letter-spacing: 1px; }
.qc-floor-head h2::before { content: ""; display: inline-block; width: 4px; height: 15px; background: #2e8b7f; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.qc-floor-head span { font-size: 11.5px; color: #93a5a1; }
/* 商品卡：移动端横卡 */
.qc-goods-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 12px; }
.qc-goods-card { display: flex; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(18,86,79,.06); }
.qc-goods-card .qc-thumb { width: 112px; height: 112px; flex: 0 0 112px; object-fit: cover; background: #f4f7f6; }
.qc-goods-card .qc-info { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
.qc-goods-card .qc-name { font-size: 13.5px; line-height: 1.45; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qc-goods-card .qc-price { color: #c0562d; font-weight: 800; font-size: 18px; margin-top: 6px; }
.qc-goods-card .qc-price small { font-size: 12px; font-weight: 600; margin-right: 1px; }
.qc-goods-card .qc-meta { font-size: 11px; color: #9aa8a5; margin-top: 4px; }
/* 采购指南 */
.qc-guide { margin: 20px 12px 0; }
.qc-guide h2 { font-size: 16px; color: #12564f; margin-bottom: 10px; }
.qc-guide-card { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.qc-guide-card h3 { font-size: 14px; color: #1c6b62; margin-bottom: 6px; }
.qc-guide-card p { font-size: 12.5px; color: #61716e; }
.qc-home-paybar { margin: 14px 12px 0; text-align: center; font-size: 12px; color: #4f6663; background: #eef5f3; border-radius: 8px; padding: 10px; }
/* 支付宝标识 */
.qc-alipay-badge { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: #4f6663; }
.qc-pay-dot { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 5px; background: #1677ff; color: #fff; font-size: 13px; font-weight: 700; }
/* 页脚 */
.qc-footer { margin-top: 22px; background: #fff; border-top: 1px solid #e3ece9; padding: 18px 16px 24px; }
.qc-foot-brand { text-align: center; margin-bottom: 12px; }
.qc-foot-brand b { display: block; font-size: 15px; color: #12564f; letter-spacing: 1px; }
.qc-foot-brand span { font-size: 11.5px; color: #93a5a1; }
.qc-foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; padding: 6px 0 10px; border-bottom: 1px solid #eef3f2; margin-bottom: 12px; }
.qc-foot-links a { font-size: 12px; color: #5d7370; }
.qc-foot-info { text-align: center; font-size: 12px; color: #8a9b98; line-height: 1.9; }
.qc-foot-info a { color: #8a9b98; }
.qc-footer .qc-alipay-badge { margin-top: 12px; }
/* TabBar（固定，正文留出底部空间，不重叠） */
.qc-tabbar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; display: flex; border-top: 1px solid #e3ece9; z-index: 90; padding-bottom: env(safe-area-inset-bottom); }
.qc-tabbar a { flex: 1; text-align: center; padding: 7px 0 6px; font-size: 11px; color: #8a9b98; }
.qc-tabbar a .qc-ico { font-size: 19px; display: block; line-height: 1.2; }
.qc-tabbar a.active { color: #12564f; font-weight: 700; }
/* 二级页头 */
.qc-subhead { display: flex; align-items: center; gap: 8px; background: #12564f; color: #fff; padding: 14px 14px; }
.qc-subhead h1 { flex: 1; font-size: 17px; font-weight: 600; }
.qc-back { font-size: 22px; color: #cfe8e2; }
.qc-count { font-size: 12px; color: #bcd9d3; }
.qc-goods-grid-page { padding-top: 12px; }
/* 详情页 */
.qc-pd-page { background: #fff; }
.qc-crumb { font-size: 12px; color: #8a9b98; padding: 10px 14px; background: #f4f7f6; }
.qc-crumb a { color: #4f6663; }
.swiper { position: relative; background: #f7faf9; overflow: hidden; }
.qc-swiper-track { display: flex; transition: transform .3s ease; will-change: transform; cursor: grab; touch-action: pan-y; }
.qc-swiper-track.dragging { transition: none; cursor: grabbing; }
.swiper .qc-swiper-slide { flex: 0 0 100%; }
.swiper .qc-swiper-slide img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; -webkit-user-drag: none; user-select: none; }
.swiper .qc-counter { position: absolute; right: 12px; bottom: 12px; background: rgba(18,86,79,.55); color: #fff; font-size: 12px; border-radius: 12px; padding: 2px 10px; pointer-events: none; }
.swiper .qc-arrow-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; line-height: 28px; text-align: center; background: rgba(18,86,79,.35); color: #fff; border-radius: 50%; font-size: 16px; cursor: pointer; }
.swiper .qc-arrow-btn.prev { left: 8px; }
.swiper .qc-arrow-btn.next { right: 8px; }
.swiper .qc-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.swiper .qc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(18,86,79,.25); }
.swiper .qc-dots i.on { background: #12564f; width: 14px; border-radius: 3px; }
.qc-thumb-strip { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; background: #fff; }
.qc-thumb-strip img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.qc-thumb-strip img.on { border-color: #2e8b7f; }
.qc-pd-title { font-size: 18px; line-height: 1.5; padding: 12px 14px 4px; color: #1d2d2b; font-weight: 700; }
.qc-pd-pricebox { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 6px 14px 12px; border-bottom: 1px solid #eef3f2; }
.qc-pd-now { color: #c0562d; font-size: 26px; font-weight: 800; }
.qc-pd-now small { font-size: 14px; font-weight: 600; }
.qc-pd-origin { font-size: 12px; color: #a3b1ae; text-decoration: line-through; }
.qc-pd-sold { font-size: 11.5px; color: #8a9b98; margin-left: auto; }
.qc-pd-specrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; }
.qc-tag { border: 1px solid #cfe0dc; color: #4f6663; border-radius: 4px; font-size: 12px; padding: 3px 10px; }
.qc-tag.on { border-color: #2e8b7f; color: #12564f; background: #e8f4f1; }
.qc-chosen { font-size: 12px; color: #8a9b98; }
.qc-pd-body { padding: 8px 16px 18px; font-size: 14px; color: #3c4d4a; }
.qc-pd-body h2 { font-size: 16px; color: #12564f; margin: 18px 0 8px; padding-left: 8px; border-left: 4px solid #2e8b7f; }
.qc-pd-body h3 { font-size: 14.5px; color: #1c6b62; margin: 14px 0 6px; }
.qc-pd-body p { margin: 6px 0; line-height: 1.9; }
.qc-pd-body ul, .qc-pd-body ol { margin: 6px 0 6px 20px; }
.qc-pd-body li { line-height: 1.9; }
.qc-pd-body table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.qc-pd-body th, .qc-pd-body td { border: 1px solid #e3ece9; padding: 8px; text-align: left; }
.qc-pd-body th { background: #f4f7f6; color: #12564f; font-weight: 600; }
.qc-alipay-pd { margin: 4px 14px 14px; background: #f2f7ff; border: 1px solid #dce9ff; border-radius: 8px; padding: 10px; justify-content: flex-start; }
.qc-pd-note { margin: 0 14px 18px; background: #f4f7f6; border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: #5d7370; }
.qc-pd-note b { display: block; color: #12564f; margin-bottom: 4px; }
.qc-pd-note p { margin: 4px 0; }
/* 底部操作条 */
.qc-bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; display: flex; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -2px 8px rgba(18,86,79,.08); z-index: 90; }
.qc-bottom-bar .qc-op { text-align: center; font-size: 10.5px; color: #7d918d; width: 44px; }
.qc-bottom-bar .qc-op .qc-ico { font-size: 18px; display: block; }
.qc-btn-cart { flex: 1; background: #d9ece7; color: #12564f; border: none; border-radius: 20px; padding: 11px; font-size: 15px; }
.qc-btn-buy2 { flex: 1; background: #12564f; color: #fff; border: none; border-radius: 20px; padding: 11px; font-size: 15px; }
/* 规格弹层 */
.qc-spec-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 99; }
.qc-spec-panel { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 10px 10px 0 0; padding: 14px; display: none; z-index: 100; max-height: 70vh; overflow: auto; }
.qc-spec-row { display: flex; justify-content: space-between; align-items: center; }
.qc-spec-item { display: inline-block; border: 1px solid #cfe0dc; color: #4f6663; border-radius: 4px; padding: 5px 12px; font-size: 13px; margin: 4px 6px 4px 0; cursor: pointer; }
.qc-spec-item.on { background: #12564f; border-color: #12564f; color: #fff; }
.qc-num-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.qc-num-ctrl button { width: 28px; height: 28px; border: 1px solid #dde7e5; background: #fff; border-radius: 4px; }
/* 内容页 */
.qc-article { background: #fff; padding: 18px 16px 8px; font-size: 14px; color: #3c4d4a; line-height: 1.95; }
.qc-article h2 { font-size: 16px; color: #12564f; margin: 20px 0 8px; padding-left: 8px; border-left: 4px solid #2e8b7f; }
.qc-article h3 { font-size: 14.5px; color: #1c6b62; margin: 14px 0 6px; }
.qc-article p { margin: 8px 0; }
.qc-article ul, .qc-article ol { margin: 8px 0 8px 20px; }
.qc-article li { margin: 4px 0; }
.qc-article .qc-info-line { background: #f4f7f6; border-radius: 6px; padding: 10px 12px; font-size: 13px; color: #4f6663; margin: 12px 0; }
@media (min-width: 768px) {
    .qc-article { max-width: 860px; margin: 0 auto; padding: 26px 24px 10px; }
}
/* 通用卡片与表单 */
.qc-card { background: #fff; border-radius: 8px; margin: 10px 12px; padding: 12px; }
.qc-cell { background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eef3f2; }
.qc-form-item { display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #eef3f2; padding: 14px 16px; }
.qc-form-item input { flex: 1; border: none; outline: none; font-size: 15px; }
.qc-btn-primary { display: block; width: 100%; background: #12564f; color: #fff; border: none; border-radius: 22px; padding: 12px; font-size: 16px; text-align: center; cursor: pointer; }
.qc-me-head { background: #12564f; color: #fff; padding: 18px 16px 0; }
.qc-me-stats { display: flex; text-align: center; padding: 14px 0; }
.qc-me-stats div { flex: 1; }
.qc-me-stats b { display: block; font-size: 18px; }
.qc-me-stats span { font-size: 12px; color: #bcd9d3; }
.qc-order-grid { display: flex; background: #fff; padding: 12px 0; margin-top: 10px; }
.qc-order-grid a { flex: 1; text-align: center; font-size: 12px; color: #555; position: relative; }
.qc-order-grid .qc-ico { font-size: 22px; display: block; margin-bottom: 4px; }
.qc-order-grid .qc-badge { position: absolute; top: -6px; right: 18%; background: #e33; color: #fff; font-size: 10px; border-radius: 10px; padding: 0 5px; }
.admin-wrap { max-width: 100%; }
.admin-nav { background: #12564f; color: #fff; }
.admin-nav a { color: #c6d8d4; display: block; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-nav a.active { background: #2e8b7f; color: #fff; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid #eef3f2; padding: 10px; font-size: 13px; text-align: left; }
.table th { background: #f4f7f6; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 4px; border: 1px solid #dde7e5; background: #fff; cursor: pointer; }
.btn-del { color: #e33; border-color: #e33; }

/* ============ 桌面端：铺满 + 4 列 + 首屏 6 件以上 ============ */
@media (min-width: 768px) {
    body { max-width: none; margin: 0; padding: 0 0 40px; background: #eef3f2; }
    .qc-notice { font-size: 12.5px; padding: 6px 0; }
    .qc-masthead { padding: 14px 40px 12px; }
    .qc-mast-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: baseline; gap: 20px; }
    .qc-mast-brand { font-size: 24px; }
    .qc-mast-sub { margin-top: 0; }
    .qc-chip-nav { padding: 8px 40px; justify-content: center; }
    .qc-service-strip { max-width: 1280px; margin: 12px auto 0; }
    .qc-floor { max-width: 1280px; margin: 16px auto 0; }
    .qc-floor-head { padding: 0 0 10px; }
    .qc-goods-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; }
    .qc-goods-card { display: block; }
    .qc-goods-card .qc-thumb { width: 100%; height: 190px; }
    .qc-goods-card .qc-info { display: block; padding: 10px 12px 12px; }
    .qc-goods-card .qc-name { height: 40px; font-size: 13.5px; }
    .qc-goods-card .qc-price { font-size: 19px; margin-top: 8px; }
    .qc-guide { max-width: 1280px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .qc-guide h2 { grid-column: 1 / -1; margin-bottom: 0; }
    .qc-guide-card { margin-bottom: 0; }
    .qc-home-paybar { max-width: 1280px; margin: 16px auto 0; }
    .qc-footer { padding: 22px 40px 26px; }
    .qc-tabbar { max-width: 100%; padding: 0 40px; }
    .qc-tabbar a { padding: 9px 0 8px; }
    .qc-tabbar a .qc-ico { display: inline-block; margin-right: 6px; font-size: 16px; }
    .qc-goods-grid-page { max-width: 1280px; margin: 0 auto; padding-top: 14px; }
    .qc-subhead { padding: 14px 40px; }
    .qc-chip-nav-sub { position: static; }
    .qc-bottom-bar { max-width: 100%; padding: 10px 40px; }
    .qc-spec-panel { max-width: 600px; left: 50%; transform: translateX(-50%); border-radius: 10px 10px 0 0; }
    /* 详情页：杂志式单栏收敛 */
    .qc-pd-page { background: #fff; }
    .qc-crumb { max-width: 900px; margin: 0 auto; padding: 12px 0; background: transparent; }
    .qc-pd-page .swiper, .qc-pd-page .qc-thumb-strip, .qc-pd-page .qc-pd-title, .qc-pd-page .qc-pd-pricebox,
    .qc-pd-page .qc-pd-specrow, .qc-pd-page .qc-pd-body, .qc-pd-page .qc-alipay-pd, .qc-pd-page .qc-pd-note { max-width: 900px; margin-left: auto; margin-right: auto; }
    .qc-pd-page .swiper .qc-swiper-slide img { height: 560px; aspect-ratio: auto; }
    .qc-pd-title { font-size: 22px; padding-top: 16px; }
    .qc-pd-body { padding: 10px 0 20px; }
    .qc-pd-note { margin-bottom: 24px; }
}
