@charset "utf-8";
/* ==========================================================================
   洁然生活 · 清洁用品 / 日用百货平台 —— 前台样式
   设计基调：清水白 + 深湖青 + 柠檬青提，大圆角卡片、柔和投影、无衬线字体。
   与旧版「宣纸米黄 + 墨绿香槟金 + 宋体细线」的器物风格完全区隔。
   全部响应式，断点 1200 / 960 / 680。
   ========================================================================== */

/* ------------------------------------------------------------------ 变量 */
:root {
    --brand: #0F5F72;
    --brand-2: #12A0B4;
    --brand-3: #4FC3D7;
    --brand-soft: #E7F4F7;
    --brand-softer: #F2FAFB;
    --lime: #7CB342;
    --lime-soft: #EEF7E2;
    --orange: #F0821E;
    --orange-soft: #FEF1E3;
    --ink: #14313A;
    --ink-2: #55666E;
    --ink-3: #93A1A7;
    --bg: #F4F8FA;
    --card: #FFFFFF;
    --line: #E3ECF0;
    --line-2: #D3E0E6;
    --danger: #D0463F;
    --ok: #2E9E6B;
    --r-lg: 18px;
    --r: 12px;
    --r-sm: 8px;
    --shadow: 0 2px 12px rgba(15, 95, 114, .06);
    --shadow-md: 0 8px 28px rgba(15, 95, 114, .10);
    --shadow-lg: 0 18px 46px rgba(15, 95, 114, .16);
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1280px;
}

/* ------------------------------------------------------------------ 基础 */
* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14.5px/1.75 var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }

img { max-width: 100%; display: block; border: 0; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: .3px; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; border: 0; background: none; }

::selection { background: var(--brand-soft); color: var(--brand); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ------------------------------------------------------------------ 顶部信息条 */
.topbar {
    background: var(--brand);
    color: rgba(255, 255, 255, .88);
    font-size: 12.5px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    gap: 12px;
}

.topbar a:hover { color: #fff; }

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar .dot { opacity: .4; }

/* ------------------------------------------------------------------ 主头部 */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(18, 160, 180, .28);
}

.logo-txt { display: flex; flex-direction: column; line-height: 1.2; }

.logo-txt b { font-size: 18px; letter-spacing: 1px; }

.logo-txt small { font-size: 10.5px; letter-spacing: 2px; color: var(--ink-3); text-transform: uppercase; }

.search {
    flex: 1;
    max-width: 460px;
    display: flex;
    height: 42px;
    border: 2px solid var(--brand-2);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    min-width: 0;
}

.search-btn {
    flex: none;
    padding: 0 26px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.search-btn:hover { filter: brightness(1.08); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.act {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--ink-2);
    border: 1px solid transparent;
}

.act:hover { background: var(--brand-soft); color: var(--brand); }

.act.is-solid {
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    font-weight: 600;
}

.act.is-solid:hover { color: #fff; filter: brightness(1.08); }

.badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}

.badge.is-zero { background: var(--line-2); color: var(--ink-3); }

/* 主导航 */
.nav {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.nav-inner { display: flex; align-items: center; gap: 4px; height: 48px; }

.nav a {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink-2);
}

.nav a:hover { background: var(--brand-soft); color: var(--brand); }

.nav a.active { background: var(--brand); color: #fff; font-weight: 600; }

.nav .spacer { flex: 1; }

.nav .nav-link-strong { color: var(--orange); font-weight: 600; }
.nav .nav-link-strong:hover { background: var(--orange-soft); color: var(--orange); }

/* ------------------------------------------------------------------ 首页：英雄区 */
.hero-wrap { background: #fff; padding: 20px 0 26px; }

.hero-layout {
    display: grid;
    grid-template-columns: 224px 1fr;
    gap: 20px;
}

/* 左侧分类竖排 */
.hero-cats {
    background: linear-gradient(160deg, var(--brand), var(--brand-2));
    border-radius: var(--r-lg);
    padding: 16px 10px 16px 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-cats h4 { font-size: 14px; letter-spacing: 2px; opacity: .85; margin-bottom: 10px; }

.hero-cat-list { overflow-y: auto; max-height: 372px; margin-right: 4px; }

.hero-cat-list::-webkit-scrollbar { width: 4px; }
.hero-cat-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); border-radius: 4px; }

.hero-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .92);
}

.hero-cat:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.hero-cat img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .35);
    flex: none;
}

.hero-cat small { display: block; font-size: 11px; opacity: .7; line-height: 1.3; }

/* 轮播 */
.hero-slider {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 420px;
    background: var(--brand-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 58, 70, .82) 0%, rgba(9, 58, 70, .38) 48%, rgba(9, 58, 70, .05) 100%);
}

.hero-text {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 460px;
}

.hero-kicker {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.hero-text h2 { font-size: 34px; line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, .2); }

.hero-text p { margin-top: 12px; font-size: 14.5px; opacity: .92; }

.hero-btn {
    display: inline-block;
    margin-top: 22px;
    padding: 11px 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-weight: 700;
}

.hero-btn:hover { background: var(--lime); color: #fff; }

.hero-dots {
    position: absolute;
    left: 46px;
    bottom: 26px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 26px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .4);
}

.hero-dot.active { background: #fff; width: 42px; }

/* 分类圆形入口 */
.cat-entry { background: #fff; padding: 4px 0 24px; }

.cat-circles {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.cat-circle {
    text-align: center;
    padding: 14px 4px 12px;
    border-radius: var(--r);
    border: 1px solid transparent;
}

.cat-circle:hover { border-color: var(--line); background: var(--brand-softer); }

.cat-circle img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
}

.cat-circle b { display: block; font-size: 13.5px; }

.cat-circle small { display: block; font-size: 11.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ 服务保障条 */
.promise { background: #fff; padding: 0 0 24px; }

.promise-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: var(--brand-softer);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px 12px;
}

.promise-item { display: flex; align-items: center; gap: 10px; justify-content: center; }

.promise-item .p-no {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: var(--shadow);
}

.promise-item b { display: block; font-size: 13.5px; }
.promise-item small { display: block; font-size: 11.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ 楼层通用 */
.floor { padding: 26px 0 6px; }

.floor-hd {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.floor-hd h3 { font-size: 22px; position: relative; padding-left: 14px; }

.floor-hd h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
}

.floor-hd .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; padding-left: 14px; }

.floor-more {
    font-size: 13px;
    color: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 5px 16px;
}

.floor-more:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------------ 商品卡片 */
.p-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.p-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.p-card {
    position: relative;
    background: var(--card);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .22s, box-shadow .22s, border-color .22s;
    display: flex;
    flex-direction: column;
}

.p-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-3);
}

.p-card-media {
    position: relative;
    padding-top: 100%;
    background: var(--brand-softer);
    overflow: hidden;
}

.p-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.p-card:hover .p-card-media img { transform: scale(1.05); }

.p-flag {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
}

.p-flag.is-new { background: var(--lime); }
.p-flag.is-hot { background: var(--orange); }
.p-flag.is-rec { background: var(--brand); }

.p-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }

.p-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p-card-sub {
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 4px;
    height: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.p-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }

.p-price { color: var(--orange); font-size: 20px; font-weight: 800; }

.p-price i { font-size: 13px; font-style: normal; }

.p-market { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }

.p-card-foot {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-3);
}

.p-add {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.p-add:hover { background: var(--brand); color: #fff; }

/* 榜单样式 */
.rank-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.rank-card {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px;
    align-items: center;
    transition: transform .2s, box-shadow .2s;
}

.rank-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.rank-no {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.rank-card .rk-img { width: 78px; height: 78px; border-radius: var(--r); object-fit: cover; flex: none; }

.rank-no.rk-1 { background: var(--orange); color: #fff; }
.rank-no.rk-2 { background: #E8A33D; color: #fff; }
.rank-no.rk-3 { background: #6D9DA8; color: #fff; }

/* ------------------------------------------------------------------ 场景楼层 */
.scene-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.scene-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 240px;
}

.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }

.scene-card:hover img { transform: scale(1.06); }

.scene-card .scene-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 58, 70, 0) 30%, rgba(9, 58, 70, .78) 100%);
}

.scene-card .scene-txt { position: absolute; left: 20px; bottom: 18px; right: 20px; color: #fff; }

.scene-card .scene-txt b { font-size: 17px; }
.scene-card .scene-txt p { font-size: 12.5px; opacity: .9; margin-top: 2px; }

/* 品牌直供 */
.brand-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.shop-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px;
    transition: transform .2s, box-shadow .2s;
}

.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.shop-card h5 { font-size: 15px; }

.shop-card .shop-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.shop-card p { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }

.shop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ------------------------------------------------------------------ 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: .2s;
}

.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 18px rgba(18, 160, 180, .3); }

.btn-lime { background: linear-gradient(135deg, #8BC34A, #689F38); color: #fff; }
.btn-lime:hover { color: #fff; filter: brightness(1.06); }

.btn-line { border-color: var(--line-2); color: var(--ink-2); background: #fff; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: var(--brand-soft); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

.btn-danger { border-color: #EBB6B3; color: var(--danger); background: #fff; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { height: 48px; padding: 0 34px; font-size: 15px; }

/* ------------------------------------------------------------------ 面包屑 / 页面头 */
.crumb { padding: 18px 0 4px; font-size: 13px; color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

.page { padding-bottom: 40px; }

.page-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    margin-bottom: 20px;
}

.page-head h1 { font-size: 24px; }

/* ------------------------------------------------------------------ 面板 */
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.panel-hd {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-bd { padding: 20px; }

.panel-bd.tight { padding: 12px 20px; }

/* ------------------------------------------------------------------ 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 10px 14px;
    margin-bottom: 16px;
}

.chip {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-2);
    border: 1px solid var(--line-2);
    background: #fff;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }

.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.filter-bar .grow { flex: 1; }

/* ------------------------------------------------------------------ 商品列表页 */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.sort-bar a { padding: 4px 12px; border-radius: 999px; color: var(--ink-2); }
.sort-bar a:hover { background: var(--brand-soft); color: var(--brand); }
.sort-bar a.active { background: var(--brand); color: #fff; }

.pager { display: flex; justify-content: center; gap: 6px; padding: 22px 0 4px; flex-wrap: wrap; }

.pager a, .pager span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--line-2);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--ink-2);
}

.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--ink-3);
}

.empty b { display: block; font-size: 16px; color: var(--ink-2); margin-bottom: 6px; }

/* ------------------------------------------------------------------ 商品详情 */
.pd-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
}

.pd-gallery { position: relative; }

.pd-main {
    border-radius: var(--r);
    overflow: hidden;
    background: var(--brand-softer);
    border: 1px solid var(--line);
}

.pd-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }

.pd-thumb {
    width: 76px;
    height: 76px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--brand-softer);
    padding: 0;
}

.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumb.active { border-color: var(--brand-2); }

.pd-title { font-size: 25px; line-height: 1.45; }

.pd-sub { color: var(--ink-2); margin-top: 8px; font-size: 14px; }

.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.tag {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--brand-soft);
    color: var(--brand);
}

.tag.lime { background: var(--lime-soft); color: #4F7A22; }
.tag.orange { background: var(--orange-soft); color: #B4570C; }
.tag.gray { background: #F1F4F6; color: var(--ink-2); }

.pd-pricebox {
    margin-top: 16px;
    background: linear-gradient(120deg, var(--brand-softer), #fff);
    border: 1px dashed var(--line-2);
    border-radius: var(--r);
    padding: 14px 18px;
}

.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.pd-price { color: var(--orange); font-size: 32px; font-weight: 800; }
.pd-price i { font-size: 17px; font-style: normal; }
.pd-market { color: var(--ink-3); text-decoration: line-through; }

.pd-price-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.spec-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.spec-item {
    min-width: 108px;
    padding: 9px 16px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line-2);
    background: #fff;
    font-size: 13.5px;
    text-align: center;
    position: relative;
}

.spec-item:hover { border-color: var(--brand-3); }

.spec-item.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.spec-item .sp-price { display: block; font-size: 12px; color: var(--orange); font-weight: 700; }

.qty { display: flex; align-items: center; margin-top: 8px; }

.qty button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-2);
    background: #fff;
    font-size: 18px;
    color: var(--ink-2);
}

.qty button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.qty button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.qty input {
    width: 58px;
    height: 34px;
    border: 1px solid var(--line-2);
    border-left: 0;
    border-right: 0;
    text-align: center;
    outline: 0;
}

.pd-buy { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.pd-service { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }

.pd-service span { display: flex; align-items: center; gap: 5px; }

.pd-service .dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.pd-detail { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 20px; }

.pd-rich { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.pd-rich h4 { font-size: 15px; color: var(--ink); margin: 16px 0 6px; }
.pd-rich .pd-lead { color: var(--ink); }
.pd-rich ul { list-style: disc; padding-left: 20px; }
.pd-rich li { margin: 2px 0; }

.pd-params { width: 100%; border-collapse: collapse; font-size: 13px; }
.pd-params td { border: 1px solid var(--line); padding: 8px 12px; }
.pd-params td:first-child { width: 40%; background: var(--brand-softer); color: var(--ink-2); }

/* ------------------------------------------------------------------ 购物车 */
.cart-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 40px 92px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item img { width: 92px; height: 92px; border-radius: var(--r-sm); object-fit: cover; }

.ci-name { font-weight: 600; font-size: 14px; line-height: 1.5; }
.ci-spec { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.ci-price { color: var(--orange); font-weight: 700; margin-top: 5px; }

.ci-remove { font-size: 12px; color: var(--ink-3); margin-top: 6px; display: inline-block; }
.ci-remove:hover { color: var(--danger); }

.cbx { width: 18px; height: 18px; accent-color: var(--brand); }

.sum-box { background: var(--brand-softer); border-radius: var(--r); padding: 16px 18px; }

.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; color: var(--ink-2); }
.sum-line.total { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 6px; color: var(--ink); }
.sum-line.total b { color: var(--orange); font-size: 22px; font-weight: 800; }

/* ------------------------------------------------------------------ 步骤条 */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }

.step i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #EAF0F3;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 700;
}

.step.on { color: var(--brand); }
.step.on i { background: var(--brand); color: #fff; }

.step-arrow { color: var(--ink-3); }

/* ------------------------------------------------------------------ 表单 */
.form { display: grid; gap: 14px; }

.form-row { display: grid; gap: 6px; }

.form-row label { font-size: 13px; color: var(--ink-2); font-weight: 600; }

.form-row .req { color: var(--orange); }

.input, .select, .textarea {
    height: 42px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r-sm);
    padding: 0 14px;
    outline: 0;
    background: #fff;
    width: 100%;
    transition: border-color .2s;
}

.textarea { height: auto; padding: 10px 14px; resize: vertical; min-height: 92px; line-height: 1.7; }

.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-2); }

.form-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.upload-box {
    border: 2px dashed var(--line-2);
    border-radius: var(--r);
    padding: 18px;
    text-align: center;
    background: var(--brand-softer);
}

.upload-box input { margin-top: 10px; }

.upload-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.upload-preview img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
}

.hint { font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------------ 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.tbl th {
    background: var(--brand-softer);
    color: var(--ink-2);
    font-weight: 600;
    text-align: left;
    padding: 11px 14px;
}

.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }

.tbl tr:hover td { background: #FBFDFE; }

.tbl .g { display: flex; align-items: center; gap: 10px; }

.tbl .g img { width: 54px; height: 54px; border-radius: var(--r-sm); object-fit: cover; flex: none; }

/* ------------------------------------------------------------------ 订单卡片 */
.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; margin-bottom: 16px; }

.order-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: var(--brand-softer);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-2);
    flex-wrap: wrap;
}

.order-card-hd .no { font-weight: 700; color: var(--ink); }

.order-card-bd { padding: 14px 18px; }

.oi-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }

.oi-row img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: none; }

.oi-info { flex: 1; min-width: 0; }
.oi-info b { font-size: 13.5px; display: block; }
.oi-info small { font-size: 12px; color: var(--ink-3); }

.order-card-ft {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px dashed var(--line);
    flex-wrap: wrap;
}

.order-ops { display: flex; gap: 8px; flex-wrap: wrap; }

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.is-pending { background: #FDF3E3; color: #B4570C; }
.status.is-waiting { background: #EAF3FB; color: #2E6FA8; }
.status.is-shipping { background: var(--brand-soft); color: var(--brand); }
.status.is-done { background: var(--lime-soft); color: #4F7A22; }
.status.is-closed { background: #F1F4F6; color: var(--ink-3); }

/* ------------------------------------------------------------------ 物流时间轴 */
.track-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff;
    flex-wrap: wrap;
}

.track-head b { font-size: 15px; }
.track-head .th-meta { font-size: 12.5px; opacity: .92; }

.track-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    font-size: 12px;
}

.track-copy:hover { background: rgba(255, 255, 255, .3); color: #fff; }

.timeline { padding: 18px 20px 10px; position: relative; }

.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }

.tl-item::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: var(--line-2);
}

.tl-item:last-child::before { display: none; }
.tl-item.done::before, .tl-item.current::before { background: var(--brand-3); }

.tl-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EDF1F3;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #EDF1F3;
    flex: none;
    margin-top: 1px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-item.done .tl-ico { background: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-soft); }
.tl-item.current .tl-ico {
    background: var(--orange);
    box-shadow: 0 0 0 3px #FBE3CE;
    animation: tlPulse 1.6s infinite;
}

@keyframes tlPulse {
    0% { box-shadow: 0 0 0 3px #FBE3CE; }
    70% { box-shadow: 0 0 0 9px rgba(240, 130, 30, .06); }
    100% { box-shadow: 0 0 0 3px #FBE3CE; }
}

.tl-body { flex: 1; min-width: 0; padding-top: 3px; }

.tl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.tl-item.todo .tl-title { color: var(--ink-3); font-weight: 600; }
.tl-now {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    padding: 1px 8px;
    border-radius: 999px;
}
.tl-est {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
    border: 1px dashed var(--line-2);
    padding: 1px 8px;
    border-radius: 999px;
}
.tl-text { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.7; }
.tl-item.todo .tl-text { color: var(--ink-3); }
.tl-time { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.tl-item.todo .tl-time { color: #C6CFD4; }

/* ---------- 物流详情页：状态头卡 ---------- */
.track-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff;
    border-radius: var(--r-lg);
    padding: 22px 24px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.th-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.th-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.th-status { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.th-route { font-size: 13.5px; opacity: .92; margin-top: 4px; }
.th-route b { font-weight: 700; }
.th-side { display: flex; flex-direction: column; gap: 10px; }
.th-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.th-line span { opacity: .82; }
.th-line b { font-weight: 700; letter-spacing: .3px; }
.th-no { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.th-copy {
    margin-left: 4px;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 12px;
    color: #fff;
}
.th-copy:hover { background: rgba(255, 255, 255, .34); }

/* ---------- 主阶段进度步进 ---------- */
.track-steps-panel { margin-top: 16px; }
.stepper { position: relative; display: flex; }
.stepper-bar {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--line-2);
}
.stepper-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--p, 0%);
    background: linear-gradient(90deg, var(--brand-2), var(--brand));
    border-radius: 3px;
    transition: width .4s ease;
}
.step-item {
    flex: 1 1 0;
    min-width: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--ink-3);
}
.step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EDEFF1;
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #EDEFF1;
    margin-bottom: 8px;
}
.step-label { display: block; font-size: 12.5px; }
.step-item.done .step-dot { background: var(--brand-2); color: #fff; box-shadow: 0 0 0 2px var(--brand-soft); }
.step-item.done .step-label { color: var(--ink-2); }
.step-item.now .step-dot {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 4px #FBE3CE;
}
.step-item.now .step-label { color: var(--orange); font-weight: 700; }

/* ---------- 物流信息卡 + 操作 ---------- */
.panel-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.logi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
}
.logi-grid div { min-width: 0; }
.logi-grid span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.logi-grid b { font-size: 13.5px; word-break: break-all; }
.logi-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.logi-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* 订单列表物流简报可点入 */
.track-brief { cursor: pointer; }
.track-brief .tb-go { color: var(--brand); font-size: 12px; margin-left: 8px; white-space: nowrap; }

/* 支付完成提示卡 */
.paid-card {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(160deg, #F1FAFC, #FFFFFF);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
}

.paid-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime), #5B9130);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 24px rgba(124, 179, 66, .32);
}

.paid-card h2 { font-size: 22px; }
.paid-card .paid-amount { font-size: 26px; color: var(--orange); font-weight: 800; margin-top: 8px; }

.paid-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px auto 0;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px;
}

.paid-meta div { min-width: 0; }
.paid-meta small { display: block; font-size: 12px; color: var(--ink-3); }
.paid-meta b { display: block; font-size: 13.5px; word-break: break-all; }

/* ------------------------------------------------------------------ 个人中心 */
.uc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }

.uc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

.uc-user { padding: 20px; text-align: center; background: linear-gradient(160deg, var(--brand), var(--brand-2)); color: #fff; }

.uc-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, .22);
    border: 2px solid rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.uc-user b { display: block; font-size: 15px; }
.uc-user small { font-size: 12px; opacity: .85; }

.uc-menu { padding: 8px; }

.uc-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    color: var(--ink-2);
}

.uc-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.uc-menu a.active { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 我的留言 ---------- */
.empty-ill {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--brand-softer);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cc-headbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.cc-title { font-size: 24px; }
.cc-headbar .btn { flex: none; }

.cc-filter { margin-bottom: 16px; }
.cc-filter .cc-count { font-size: 12.5px; color: var(--ink-3); }

.consult-list { display: flex; flex-direction: column; gap: 16px; }
.consult-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    transition: box-shadow .2s, border-color .2s;
}
.consult-card:hover { box-shadow: var(--shadow); border-color: var(--brand-3); }

.cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cc-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.cc-time { color: var(--ink-3); font-size: 12px; }
.cc-flag { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.cc-flag.ok { background: var(--lime-soft); color: #4F7A22; }
.cc-flag.wait { background: var(--orange-soft); color: #B4570C; }

.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; align-items: flex-start; gap: 10px; }
.msg.me { flex-direction: row; }
.msg.kf { flex-direction: row; justify-content: flex-end; }
.msg-ava {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EDEFF1;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.msg-ava.kf { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.msg-body { display: flex; flex-direction: column; max-width: 76%; }
.msg.kf .msg-body { align-items: flex-end; }
.msg-bubble {
    background: #F4F8FA;
    border: 1px solid var(--line);
    border-radius: 4px 14px 14px 14px;
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink);
    word-break: break-word;
}
.msg.kf .msg-bubble {
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    border-color: transparent;
    color: #fff;
    border-radius: 14px 4px 14px 14px;
}
.msg-bubble.sys { background: var(--brand-softer); color: var(--ink-2); border-style: dashed; font-size: 13px; }
.msg-time { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.msg.kf .msg-time { text-align: right; }

.cc-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); text-align: right; }
.cc-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    color: var(--brand);
    font-weight: 600;
}
.cc-link:hover { color: var(--brand-2); }

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

.uc-stat-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px;
    text-align: center;
}

.uc-stat-item b { display: block; font-size: 24px; color: var(--brand); font-weight: 800; }
.uc-stat-item small { font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ 登录 / 注册 */
.auth-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 480px;
}

.auth-side {
    position: relative;
    background: linear-gradient(160deg, var(--brand), var(--brand-2));
    color: #fff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-side h2 { font-size: 26px; }
.auth-side p { margin-top: 10px; font-size: 13.5px; opacity: .9; line-height: 1.8; }

.auth-side ul { margin-top: 22px; display: grid; gap: 10px; }

.auth-side li { display: flex; gap: 8px; font-size: 13px; opacity: .92; }

.auth-side li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-3);
    margin-top: 9px;
    flex: none;
}

.auth-main { padding: 36px; display: flex; flex-direction: column; justify-content: center; }

.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; }

.auth-tabs a {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink-3);
    font-weight: 600;
}

.auth-tabs a.active { background: var(--brand-soft); color: var(--brand); }

.auth-main h1 { font-size: 24px; margin-bottom: 4px; }

/* ------------------------------------------------------------------ 入驻 */
.apply-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

.apply-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }

.apply-side h4 { font-size: 15px; margin-bottom: 10px; }

.apply-side ol { list-style: decimal; padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 2; }

.step-nums { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

.step-num {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-3);
}

.step-num.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.step-num b { width: 20px; height: 20px; border-radius: 50%; background: #EAF0F3; color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 11.5px; }
.step-num.on b { background: rgba(255, 255, 255, .25); color: #fff; }

/* 审核状态 */
.status-hero {
    text-align: center;
    padding: 34px 24px;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, #F1FAFC, #fff);
    border: 1px solid var(--line);
}

.status-hero .sh-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 26px;
    font-weight: 700;
}

.status-hero.rejected .sh-icon { background: #FBE9E7; color: var(--danger); }
.status-hero.passed .sh-icon { background: var(--lime-soft); color: #4F7A22; }

/* ------------------------------------------------------------------ 文档 */
.doc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }

.doc-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; position: sticky; top: 130px; }

.doc-nav a { display: block; padding: 9px 14px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-2); }
.doc-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.doc-nav a.active { background: var(--brand); color: #fff; font-weight: 600; }

.doc-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 30px; }

.doc-title { font-size: 22px; }

.doc-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--ink-3);
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.doc-intro { font-size: 14px; color: var(--ink-2); line-height: 1.9; background: var(--brand-softer); border-radius: var(--r); padding: 14px 16px; }

.doc-sec { margin-top: 22px; }

.doc-sec h3 { font-size: 16px; color: var(--brand); }
.doc-sec p { font-size: 14px; color: var(--ink-2); line-height: 1.95; margin-top: 8px; }

.doc-sec ul { margin-top: 8px; }
.doc-sec li { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; padding-left: 16px; position: relative; }
.doc-sec li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-3); }

/* ------------------------------------------------------------------ 客服页 */
.service-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }

.faq-item { border-bottom: 1px dashed var(--line); padding: 14px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-weight: 700; font-size: 14px; display: flex; gap: 8px; }
.faq-q i { color: var(--brand); font-style: normal; }
.faq-a { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; margin-top: 6px; padding-left: 22px; }

.contact-card {
    background: linear-gradient(160deg, var(--brand), var(--brand-2));
    color: #fff;
    border-radius: var(--r-lg);
    padding: 22px;
}

.contact-card h4 { font-size: 16px; }
.contact-card .cc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact-card .cc-row:last-child { border-bottom: 0; }
.contact-card .cc-row span { opacity: .8; }

/* ------------------------------------------------------------------ 悬浮客服 */
.fav-float { position: fixed; right: 22px; bottom: 92px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }

.fav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--ink-2);
    flex-direction: column;
    gap: 1px;
}

.fav-btn b { font-size: 13px; font-weight: 700; }
.fav-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.fav-btn.is-top { background: var(--brand); color: #fff; }

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 49, 58, .5);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-mask.show { display: flex; }

.modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.modal-hd {
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-hd b { font-size: 15px; }

.modal-close { color: #fff; font-size: 20px; line-height: 1; opacity: .85; }
.modal-close:hover { opacity: 1; }

.modal-bd { padding: 18px; overflow-y: auto; }

.modal-ft { padding: 14px 18px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ 弹窗（通用） */
.dialog {
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.dialog-hd {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.dialog-bd { padding: 20px; overflow-y: auto; }
.dialog-ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* toast */
.toast {
    position: fixed;
    left: 50%;
    top: 88px;
    transform: translateX(-50%);
    background: rgba(20, 49, 58, .94);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13.5px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s, transform .24s;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }
.toast.ok { background: linear-gradient(135deg, #7CB342, #4F7A22); }
.toast.err { background: linear-gradient(135deg, #D9534F, #B03630); }

/* ------------------------------------------------------------------ 页脚 */
.footer {
    background: #0E3B47;
    color: rgba(255, 255, 255, .72);
    margin-top: 46px;
    padding: 40px 0 0;
}

.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }

.footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 12px; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.footer-brand .logo-mark { box-shadow: none; }

.footer-brand b { color: #fff; font-size: 17px; }

.footer-desc { font-size: 12.8px; line-height: 1.9; }

.footer li { font-size: 12.8px; padding: 3px 0; }
.footer li a:hover { color: #fff; }

.footer-contact { font-size: 12.8px; line-height: 2; }

.footer-contact b { color: #fff; }

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0 22px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom .icp-link { color: rgba(255, 255, 255, .8); }
.footer-bottom .icp-link:hover { color: #fff; text-decoration: underline; }

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* ------------------------------------------------------------------ 移动端底部导航 */
.mnav { display: none; }

/* ------------------------------------------------------------------ 快捷入口网格 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-grid.vertical { grid-template-columns: 1fr; }

.quick-grid a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.quick-grid a:hover {
    border-color: var(--brand-3);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-grid a b { display: block; font-size: 14px; color: var(--ink); }
.quick-grid a small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }

.quick-grid.vertical a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quick-grid.vertical a small { margin-top: 0; text-align: right; }

/* ------------------------------------------------------------------ 地址卡片（确认订单） */
.addr-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.addr-card:hover { border-color: var(--brand-3); }

.addr-card:has(input:checked) {
    border-color: var(--brand-2);
    background: var(--brand-softer);
}

.addr-card .ac-main { display: block; font-size: 13.5px; line-height: 1.7; }
.addr-card .ac-main b { font-size: 14px; color: var(--ink); }

.addr-card .ac-text {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--ink-2);
}

/* ------------------------------------------------------------------ 支付方式卡片 */
.pay-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pay-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.pay-card:hover { border-color: var(--brand-3); }

.pay-card:has(input:checked) {
    border-color: var(--brand-2);
    background: var(--brand-softer);
}

.pay-card span { display: block; line-height: 1.5; }
.pay-card span b { display: block; font-size: 13.5px; color: var(--ink); }
.pay-card span small { display: block; font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------------ 审核流程步骤 */
.audit-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.audit-step { display: flex; gap: 11px; }

.audit-step .as-no {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audit-step b { display: block; font-size: 14px; margin-bottom: 4px; }
.audit-step p { font-size: 12.5px; line-height: 1.8; }

/* ------------------------------------------------------------------ 审核标准栅格 */
.std-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.std-item {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--lime);
    border-radius: var(--r-sm);
    background: var(--lime-soft);
}

.std-item b { display: block; font-size: 14px; margin-bottom: 6px; }
.std-item p { font-size: 12.5px; line-height: 1.85; }

/* ------------------------------------------------------------------ 文档式列表 */
.doc-ul { list-style: none; padding: 0; }

.doc-ul li {
    position: relative;
    padding: 8px 0 8px 20px;
    font-size: 13.2px;
    line-height: 1.9;
    border-bottom: 1px dashed var(--line);
}

.doc-ul li:last-child { border-bottom: 0; }

.doc-ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-3);
}

/* ------------------------------------------------------------------ 订单列表物流简报 */
.track-brief {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 11px;
    border-radius: var(--r-sm);
    background: var(--brand-softer);
    font-size: 12.5px;
}

.tb-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(18, 160, 180, .16);
}

.tb-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ 两行截断 */
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.8px;
    line-height: 1.8;
    color: var(--ink-2);
}

/* ------------------------------------------------------------------ 商品详情右侧信息区 */
.pd-info {
    display: block;
    padding: 4px 0 0;
}

/* ------------------------------------------------------------------ 商家规格编辑行 */
.spec-edit-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

/* ------------------------------------------------------------------ 屏幕宽度自适应隐藏 */
.hide-sm { display: inline; }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1200px) {
    .container { max-width: 100%; }
    .hero-layout { grid-template-columns: 190px 1fr; }
    .hero-slider { height: 360px; }
    .cat-circles { grid-template-columns: repeat(6, 1fr); }
    .p-grid { grid-template-columns: repeat(3, 1fr); }
    .pd-layout { grid-template-columns: 380px 1fr; }
    .cart-row { grid-template-columns: 1fr 300px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .audit-steps { grid-template-columns: repeat(2, 1fr); }
    .std-grid { grid-template-columns: repeat(2, 1fr); }
    .pay-list { grid-template-columns: repeat(3, 1fr); }
    .spec-edit-row { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 960px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-cats { display: none; }
    .hero-slider { height: 300px; }
    .hero-text { left: 28px; }
    .hero-text h2 { font-size: 26px; }
    .hero-dots { left: 28px; }
    .cat-circles { grid-template-columns: repeat(4, 1fr); }
    .promise-row { grid-template-columns: repeat(2, 1fr); }
    .rank-list { grid-template-columns: repeat(2, 1fr); }
    .scene-row { grid-template-columns: 1fr; }
    .brand-row { grid-template-columns: 1fr; }
    .pd-layout { grid-template-columns: 1fr; }
    .pd-detail { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 1fr; }
    .uc-layout { grid-template-columns: 1fr; }
    .uc-menu { display: flex; overflow-x: auto; }
    .uc-menu a { white-space: nowrap; }
    .doc-layout { grid-template-columns: 1fr; }
    .doc-nav { position: static; display: flex; overflow-x: auto; }
    .doc-nav a { white-space: nowrap; }
    .service-layout { grid-template-columns: 1fr; }
    .apply-layout { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .form-inline { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid.vertical { grid-template-columns: 1fr; }
    .pay-list { grid-template-columns: 1fr; }
    .logi-grid { grid-template-columns: repeat(2, 1fr); }
    .cc-headbar { align-items: flex-start; }
}

@media (max-width: 680px) {
    body { font-size: 14px; }
    .container { padding: 0 14px; }
    .topbar-inner { font-size: 11.5px; }
    .header-inner { height: 60px; gap: 12px; }
    .logo-txt small { display: none; }
    .search { height: 36px; }
    .search-btn { padding: 0 16px; font-size: 13px; }
    .act { padding: 0 10px; font-size: 12.5px; }
    .act .act-txt { display: none; }
    .nav-inner { overflow-x: auto; height: 44px; }
    .nav a { white-space: nowrap; }
    .hero-wrap { padding: 12px 0 16px; }
    .hero-slider { height: 220px; }
    .hero-text { left: 18px; max-width: 74%; }
    .hero-text h2 { font-size: 21px; }
    .hero-text p { font-size: 12.5px; margin-top: 8px; }
    .hero-btn { margin-top: 14px; padding: 9px 20px; font-size: 13px; }
    .hero-dots { left: 18px; bottom: 14px; }
    .cat-circles { grid-template-columns: repeat(4, 1fr); gap: 2px; }
    .cat-circle img { width: 56px; height: 56px; }
    .cat-circle b { font-size: 12px; }
    .cat-circle small { display: none; }
    .promise-row { padding: 10px 8px; gap: 8px; }
    .promise-item { flex-direction: column; text-align: center; gap: 6px; }
    .promise-item small { display: none; }
    .p-grid, .p-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .p-card-body { padding: 10px; }
    .p-card-name { font-size: 13px; height: 38px; }
    .p-price { font-size: 17px; }
    .rank-list { grid-template-columns: 1fr; }
    .floor-hd h3 { font-size: 18px; }
    .pd-layout { padding: 14px; gap: 18px; }
    .pd-title { font-size: 19px; }
    .pd-price { font-size: 26px; }
    .pd-thumbs { gap: 6px; }
    .pd-thumb { width: 58px; height: 58px; }
    .pd-buy { gap: 8px; }
    .pd-buy .btn { flex: 1; padding: 0 12px; }
    .cart-item { grid-template-columns: 26px 72px 1fr; gap: 10px; padding: 12px 0; }
    .cart-item img { width: 72px; height: 72px; }
    .cart-item .ci-ops { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
    .tbl { font-size: 12.5px; }
    .tbl th, .tbl td { padding: 9px 8px; }
    .tbl .g img { width: 42px; height: 42px; }
    .order-card-hd, .order-card-ft { padding: 10px 12px; font-size: 12px; }
    .order-card-bd { padding: 10px 12px; }
    .paid-meta { grid-template-columns: 1fr; }
    .uc-stat { grid-template-columns: repeat(2, 1fr); }
    .auth-main { padding: 22px 18px; }
    .doc-body { padding: 18px 16px; }
    .footer-top { grid-template-columns: 1fr; gap: 18px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    body { padding-bottom: 58px; }

    .mnav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        background: #fff;
        border-top: 1px solid var(--line);
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    }

    .mnav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 11px;
        color: var(--ink-3);
        padding: 2px 0;
    }

    .mnav a.on { color: var(--brand); font-weight: 700; }
    .mnav a em { font-style: normal; font-size: 11px; position: relative; }
    .mnav a .mbadge {
        position: absolute;
        top: -6px;
        right: -12px;
        background: var(--orange);
        color: #fff;
        font-size: 10px;
        border-radius: 999px;
        padding: 0 4px;
        line-height: 14px;
    }

    .fav-float { right: 12px; bottom: 70px; }
    .fav-btn { width: 44px; height: 44px; font-size: 11px; }

    .quick-grid { grid-template-columns: 1fr; }
    .audit-steps { grid-template-columns: 1fr; }
    .std-grid { grid-template-columns: 1fr; }
    .spec-edit-row { grid-template-columns: 1fr 1fr; }
    .hide-sm { display: none; }

    .track-hero { padding: 18px; }
    .th-status { font-size: 19px; }
    .th-icon { width: 46px; height: 46px; border-radius: 13px; }
    .step-item { min-width: 46px; }
    .step-label { font-size: 11.5px; }
    .msg-body { max-width: 84%; }
    .logi-grid { gap: 10px 12px; }
}
