/* 河北内卷网 · 前台样式（移动优先 / PC 自适应） */
:root {
    --brand: #D93A2B;
    --brand-2: #F2683C;
    --brand-soft: #FDF1EE;
    --ink: #171B22;
    --ink-2: #3B4350;
    --muted: #7B8494;
    --line: #E9ECF1;
    --bg: #F5F6F8;
    --card: #fff;
    --gold: #C8912C;
    --green: #0F7B4F;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(20, 24, 32, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 16px; }
.muted { color: var(--muted); }

/* ---------------- 顶栏 ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 60;
    background:rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(233,236,241,.9);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; flex: none;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 800; font-size: 19px;
    box-shadow: 0 6px 16px rgba(217, 58, 43, .25);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .5px; white-space: nowrap; }
.head-search {
    flex: 1; display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px; max-width: 460px;
    background: #F1F3F7; border-radius: 999px; color: var(--muted);
}
.head-search svg { width: 17px; height: 17px; }
.head-search input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; color: var(--ink); min-width: 0; }
.topnav { display: none; gap: 24px; margin-left: auto; }
.topnav a { font-size: 14px; color: var(--ink-2); font-weight: 500; padding: 4px 0; white-space: nowrap; }
.topnav a.on, .topnav a:hover { color: var(--brand); }
.top-avatar { margin-left: auto; flex: none; }
.top-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(20,24,32,.12); }
.topnav + .top-avatar { margin-left: 0; }

/* ---------------- 公告 ---------------- */
.notice-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin-bottom: 14px;
    background: #FFF8E8; border: 1px solid #F6E4B8; border-radius: 12px;
    color: #8A5B12; font-size: 13px;
}
.notice-bar svg { width: 16px; height: 16px; }

/* ---------------- 首页幻灯片 ---------------- */
.hero {
    position: relative; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #2A1C1A, #4A2420);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9; min-height: 180px;
    margin-bottom: 16px;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
    background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02) 20%, rgba(0,0,0,.62) 100%); }
.hero-content { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; z-index: 2; }
.hero-content h1 { font-size: 21px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.hero-more i { font-style: normal; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.hero-dots button { width: 6px; height: 6px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); padding: 0; transition: .3s; }
.hero-dots button.on { width: 18px; background: #fff; }
.hero-text { display: flex; align-items: center; background: radial-gradient(120% 140% at 80% 20%, #F2683C 0%, #D93A2B 45%, #8E1F16 100%); }
.hero-text-inner { position: relative; z-index: 2; padding: 28px 22px; color: #fff; max-width: 620px; }
.hero-tag { display: inline-block; font-size: 12px; letter-spacing: 1px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; margin-bottom: 10px; }
.hero-text-inner h1 { font-size: 24px; font-weight: 800; }
.hero-text-inner p { font-size: 13px; opacity: .85; margin: 8px 0 16px; max-width: 420px; }
.hero-deco { position: absolute; right: -10px; bottom: -40px; font-size: 190px; font-weight: 800; color: rgba(255,255,255,.08); line-height: 1; user-select: none; }
.btn-light { background: #fff; color: var(--brand); }

/* ---------------- 分类 ---------------- */
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: none; display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2);
    font-size: 13px; white-space: nowrap; transition: .2s;
}
.cat-chip:hover, .cat-chip.on { background: var(--brand-soft); border-color: #F3C3BA; color: var(--brand); font-weight: 600; }
.cat-dot { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* ---------------- 区块 ---------------- */
.sec { margin-bottom: 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.sec-bar { width: 4px; height: 17px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); display: inline-block; }
.sec-more { font-size: 12.5px; color: var(--muted); }
.sec-more:hover { color: var(--brand); }
.page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.page-head h1 { font-size: 23px; font-weight: 800; }
.page-sub { font-size: 13px; color: var(--muted); }
.page-sub b { color: var(--brand); }

.home-split { display: block; }

/* ---------------- 产品卡片 ---------------- */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(233,236,241,.9);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,24,32,.09); }
.p-cover { position: relative; aspect-ratio: 4 / 3; background: #F0F2F5; overflow: hidden; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.badge-top {
    position: absolute; left: 8px; top: 8px; z-index: 2;
    padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 2px 8px rgba(217,58,43,.3);
}
.badge-cat { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.5); color: #fff; font-size: 10.5px; backdrop-filter: blur(4px); }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-title {
    font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.9em;
}
.p-price { color: var(--brand); font-weight: 800; font-size: 16px; }
.p-shop { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; }
.p-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.p-name { max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-fans { white-space: nowrap; }
.lvl-icon { width: 18px; height: 18px; border-radius: 50%; flex: none; vertical-align: -3px; }
.lvl-icon.lg { width: 28px; height: 28px; vertical-align: -6px; }
.p-stats { display: flex; gap: 12px; color: #98A0AE; font-size: 11.5px; margin-top: auto; }
.p-stats span { display: inline-flex; align-items: center; gap: 3px; }
.p-stats svg { width: 13px; height: 13px; }

/* ---------------- 人气榜 ---------------- */
.rank-card { background: var(--card); border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-item { display: flex; align-items: center; gap: 9px; padding: 8px 4px; border-radius: 10px; }
.rank-item:hover { background: #F8F9FB; }
.rank-no { width: 20px; flex: none; text-align: center; font-weight: 800; font-size: 14px; color: #A6AEBB; font-style: italic; }
.rank-no.no-1 { color: #E2A100; }
.rank-no.no-2 { color: #8FA3BC; }
.rank-no.no-3 { color: #C87F45; }
.rank-cover { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; }
.rank-info { min-width: 0; display: flex; flex-direction: column; }
.rank-info b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info em { font-size: 11.5px; color: var(--muted); font-style: normal; }
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.home-stats b { display: block; font-size: 17px; color: var(--brand); }
.home-stats span { font-size: 11.5px; color: var(--muted); }

/* ---------------- 列表页 ---------------- */
.filter-panel { background: var(--card); border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); margin-bottom: 16px; }
.sort-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-tab { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.sort-tab.on { background: var(--brand); color: #fff; font-weight: 600; }
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cat-row .cat-chip { height: 30px; padding: 0 12px; font-size: 12.5px; }
.list-grid { margin-top: 4px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 24px 0 8px; flex-wrap: wrap; }
.pg { min-width: 34px; height: 34px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.pg.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pg-dots { color: var(--muted); }

/* ---------------- 详情 ---------------- */
.crumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.crumb a:hover { color: var(--brand); }
.detail-grid { display: block; }
.gallery { background: var(--card); border-radius: 18px; padding: 10px; border: 1px solid var(--line); }
.gallery-main { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #F0F2F5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumbs button { width: 60px; height: 60px; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: none; flex: none; }
.gallery-thumbs button.on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { background: var(--card); border-radius: 18px; padding: 16px; margin-top: 14px; border: 1px solid var(--line); }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-title-row h1 { font-size: 19px; font-weight: 800; line-height: 1.45; }
.detail-price { color: var(--brand); font-weight: 800; font-size: 21px; white-space: nowrap; }
.detail-summary { color: var(--ink-2); font-size: 13.5px; margin-top: 8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 12px; }
.block-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.rich-text { font-size: 14px; color: var(--ink-2); line-height: 1.9; word-break: break-word; }
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-top: 12px; }
.alert.error { background: #FDF0EF; color: #B42318; border: 1px solid #F6C9C4; }
.alert.warn { background: #FFF8E8; color: #8A5B12; border: 1px solid #F6E4B8; }
.side-card { background: var(--card); border-radius: 16px; padding: 16px; margin-top: 14px; border: 1px solid var(--line); }
.side-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.side-card p { font-size: 12.5px; color: var(--muted); }

.shop-card { background: var(--card); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.shop-head { display: flex; align-items: center; gap: 12px; }
.shop-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.shop-name a { font-size: 17px; font-weight: 800; }
.shop-level { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.shop-bio { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.shop-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); text-align: center; }
.shop-stats b { display: block; font-size: 16px; color: var(--ink); }
.shop-stats span { font-size: 11px; color: var(--muted); }
.shop-actions { display: flex; gap: 8px; }
.shop-actions .btn { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; font-size: 14px; font-weight: 600; transition: .18s; background: none; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 16px rgba(217,58,43,.22); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-outline { border-color: #F3C3BA; color: var(--brand); background: #fff; }
.btn-outline.followed { border-color: var(--line); color: var(--muted); background: #F5F6F8; }
.btn-ghost { color: var(--muted); background: #F5F6F8; }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn-contact { height: 46px; }
.contact-tip { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.contact-tip b { color: var(--brand); }

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(12,15,20,.56); backdrop-filter: blur(2px); animation: fadeIn .2s; }
.modal-card {
    position: relative; z-index: 2; width: 100%; max-width: 400px;
    background: #fff; border-radius: 20px; padding: 22px;
    box-shadow: 0 30px 80px rgba(10,14,20,.3);
    animation: popIn .26s cubic-bezier(.2,.9,.3,1.1);
    max-height: 88vh; overflow-y: auto;
}
.modal-close { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #F3F4F7; color: var(--muted); font-size: 20px; line-height: 1; }
.cm-shop { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
.cm-shop img#cmAvatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.cm-shop b { font-size: 16px; }
.cm-level { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.cm-level img { width: 18px; height: 18px; }
.cm-level em { font-style: normal; font-size: 12px; color: var(--muted); }
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; margin: 16px 0; padding: 12px 0; background: #F8F9FB; border-radius: 12px; }
.cm-stats b { display: block; font-size: 16px; }
.cm-stats span { font-size: 10.5px; color: var(--muted); }
.cm-contact { background: var(--brand-soft); border: 1px solid #F7D8D2; border-radius: 14px; padding: 14px; }
.cm-contact-title { font-size: 12px; color: #A84434; margin-bottom: 8px; }
.cm-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cm-row span { font-size: 12.5px; color: var(--muted); width: 44px; flex: none; }
.cm-row b { font-size: 15px; letter-spacing: .5px; flex: 1; word-break: break-all; }
.cm-copy { border: 1px solid #F0BDB4; background: #fff; color: var(--brand); border-radius: 7px; padding: 3px 9px; font-size: 11.5px; }
.cm-loading { text-align: center; font-size: 13px; color: var(--muted); padding: 8px 0; }
.cm-msg { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.cm-msg.bad { color: #B42318; }
.cm-recharge { display: block; text-align: center; margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------------- 空状态 ---------------- */
.empty { background: #fff; border: 1px dashed #DDE2EA; border-radius: 16px; padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty p { margin-bottom: 10px; }
.empty-icon { font-size: 34px; margin-bottom: 6px; }
.empty h1 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.empty .btn { margin-top: 8px; }
.error-page { margin-top: 30px; }

/* ---------------- 登录注册 ---------------- */
.auth-wrap { max-width: 430px; margin: 16px auto 30px; }
.auth-card { background: #fff; border-radius: 22px; padding: 26px 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.auth-brand h1 { font-size: 19px; font-weight: 800; }
.auth-brand p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.auth-tabs { display: flex; background: #F3F5F8; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tabs a { flex: 1; text-align: center; height: 36px; line-height: 36px; border-radius: 9px; font-size: 14px; color: var(--muted); font-weight: 600; }
.auth-tabs a.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(20,24,32,.07); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field > span i { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid #E3E7EE; background: #FAFBFC;
    border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(217,58,43,.08); }
.field textarea { resize: vertical; }
.auth-tip { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.auth-tip a { color: var(--brand); font-weight: 600; }

/* ---------------- 发布 / 表单 ---------------- */
.form-card { background: #fff; border-radius: 18px; border: 1px solid var(--line); padding: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.span-2 { grid-column: span 1; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.form-hint { font-size: 12px; color: var(--muted); }
.upload-box { position: relative; }
.upload-box > input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-label { display: block; border: 1.5px dashed #DDE2EA; border-radius: 14px; padding: 12px; text-align: center; cursor: pointer; background: #FAFBFC; transition: .18s; }
.upload-label:hover { border-color: var(--brand); background: #FFF9F8; }
.upload-label img { width: 100%; max-height: 210px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.upload-label em { display: block; font-size: 12px; color: var(--muted); font-style: normal; }
.gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.gallery-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin: 0; }

/* ---------------- 个人中心 ---------------- */
.me-hero { background: linear-gradient(135deg, #C22E22, #E8542F 62%, #F2683C); border-radius: 20px; padding: 20px; color: #fff; box-shadow: 0 14px 34px rgba(217,58,43,.22); }
.me-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.me-avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.65); }
.me-id { flex: 1; min-width: 0; }
.me-id h1 { font-size: 19px; font-weight: 800; }
.me-level { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 3px; opacity: .95; flex-wrap: wrap; }
.me-level em { font-style: normal; font-size: 11px; opacity: .75; }
.me-edit { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 6px 13px; font-size: 12px; color: #fff; background: rgba(255,255,255,.12); }
.me-wallet { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.22); align-items: center; }
.wallet-item { display: flex; align-items: center; gap: 8px; }
.wallet-item img { width: 30px; height: 30px; }
.wallet-item b { display: block; font-size: 19px; line-height: 1.2; }
.wallet-item span { font-size: 11px; opacity: .8; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #fff; border-radius: 16px; padding: 14px 8px; margin-top: 14px; border: 1px solid var(--line); }
.quick-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.qi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 16px; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; padding: 14px 8px; margin-top: 14px; border: 1px solid var(--line); text-align: center; }
.stat-item b { display: block; font-size: 18px; font-weight: 800; }
.stat-item span { font-size: 11px; color: var(--muted); }
.coin-list { background: #fff; border-radius: 16px; padding: 6px 16px; border: 1px solid var(--line); }
.coin-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #F2F4F7; }
.coin-row:last-child { border-bottom: 0; }
.coin-row b { display: inline-block; min-width: 42px; font-size: 14px; }
.coin-row b.plus { color: var(--green); }
.coin-row b.minus { color: var(--brand); }
.coin-row span { font-size: 12.5px; color: var(--ink-2); }
.coin-row em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.my-products { display: flex; flex-direction: column; gap: 10px; }
.my-product { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.mp-cover { width: 86px; height: 86px; border-radius: 10px; overflow: hidden; flex: none; background: #F0F2F5; }
.mp-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-main { flex: 1; min-width: 0; }
.mp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mp-title { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status { flex: none; font-size: 11px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.st-pending { background: #FFF6E5; color: #A26A00; }
.st-approved { background: #EAF7F0; color: var(--green); }
.st-rejected { background: #FDF0EF; color: #B42318; }
.st-offline { background: #F1F3F6; color: var(--muted); }
.mp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.mp-reject { font-size: 11.5px; color: #B42318; margin-top: 4px; }

/* ---------------- 资料 ---------------- */
.profile-avatar-row { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--line); }
.upload-avatar { position: relative; flex: none; }
.upload-avatar input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-avatar label { display: block; width: 82px; height: 82px; border-radius: 50%; overflow: hidden; position: relative; cursor: pointer; }
.upload-avatar img { width: 100%; height: 100%; object-fit: cover; }
.upload-avatar em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 10px; text-align: center; padding: 3px 0; font-style: normal; }
.profile-brief { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.profile-brief b { font-size: 17px; color: var(--ink); }
.inline-level { display: flex; align-items: center; gap: 5px; }

/* ---------------- 关注 ---------------- */
.follow-list { display: flex; flex-direction: column; gap: 10px; }
.follow-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.follow-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.follow-info { flex: 1; min-width: 0; }
.follow-name { font-size: 15px; font-weight: 700; }
.follow-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }

/* ---------------- 商家主页 ---------------- */
.shop-hero { background: linear-gradient(135deg, #2B2F38, #171B22); border-radius: 20px; padding: 20px; color: #fff; }
.shop-hero-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shop-hero-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.4); }
.shop-hero-info { flex: 1; min-width: 180px; }
.shop-hero-info h1 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.shop-level-text { font-size: 12px; color: #F0B9AE; margin-top: 3px; }
.shop-hero-bio { font-size: 12.5px; opacity: .8; margin-top: 5px; }
.shop-hero-join { font-size: 11px; opacity: .55; margin-top: 4px; }
.shop-hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; }
.shop-hero-stats b { display: block; font-size: 16px; }
.shop-hero-stats span { font-size: 10.5px; opacity: .65; }

/* ---------------- 排行榜 ---------------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.podium-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.podium-1 { background: linear-gradient(180deg, #FFF9EA, #fff); border-color: #F3E2B9; }
.podium-2 { background: linear-gradient(180deg, #F6F8FB, #fff); }
.podium-3 { background: linear-gradient(180deg, #FDF5EE, #fff); }
.podium-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; }
.podium-item b { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.podium-shop { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; overflow: hidden; }
.podium-num { font-size: 11px; color: var(--brand); font-weight: 600; }
.podium-medal { position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #C9A24A; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.podium-2 .podium-medal { background: #98A6B8; }
.podium-3 .podium-medal { background: #C08557; }
.rank-table { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 6px 14px; }
.rank-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #F2F4F7; }
.rank-row:last-child { border-bottom: 0; }
.rank-row-no { width: 22px; flex: none; text-align: center; font-weight: 800; color: #A6AEBB; font-style: italic; }
.rank-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.rank-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-row-info b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row-info em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.rank-row-num { font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; }
.rank-row-num i { display: block; font-style: normal; font-size: 10px; color: var(--muted); font-weight: 400; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 24px rgba(20,24,32,.04);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; font-size: 10.5px; color: #8B93A1; }
.tabbar a.on { color: var(--brand); font-weight: 600; }
.tabbar svg { width: 21px; height: 21px; }
.tabbar img { width: 21px; height: 21px; object-fit: contain; }
.site-footer { display: none; padding: 34px 0 26px; text-align: center; color: var(--muted); font-size: 12.5px; }
.foot-sub { margin-top: 4px; font-size: 11.5px; opacity: .75; }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed; left: 50%; top: 74px; transform: translateX(-50%);
    z-index: 200; max-width: calc(100% - 40px);
    background: rgba(23,27,34,.92); color: #fff;
    padding: 10px 18px; border-radius: 999px; font-size: 13px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    animation: toastIn .25s ease;
}
.toast.error { background: rgba(180,35,24,.95); }
.toast.ok { background: rgba(15,123,79,.95); }
.toast[hidden] { display: none; }

@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 420px) {
    .brand-name { display: none; }
    .hero { aspect-ratio: 16 / 10; }
    .hero-content h1 { font-size: 18px; }
    .p-body { padding: 9px 10px 11px; }
    .p-title { font-size: 13px; }
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
    .shop-hero-stats { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
}

@media (min-width: 560px) {
    .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .hero { aspect-ratio: 2.6 / 1; }
    .hero-content { left: 28px; bottom: 24px; }
    .hero-content h1 { font-size: 26px; }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .span-2 { grid-column: span 2; }
    .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
    .detail-side { position: sticky; top: 82px; }
    .gallery-thumbs button { width: 72px; height: 72px; }
    .shop-hero-stats { grid-template-columns: repeat(5, 1fr); }
    .my-product { padding: 12px; }
    .mp-cover { width: 104px; height: 104px; }
}

@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .topnav { display: flex; }
    .top-avatar { margin-left: 0; }
    .tabbar { display: none; }
    .site-footer { display: block; }
    .hero { aspect-ratio: 3.4 / 1; min-height: 300px; }
    .hero-text-inner { padding: 44px 40px; }
    .hero-text-inner h1 { font-size: 34px; }
    .hero-content { left: 40px; bottom: 34px; }
    .hero-content h1 { font-size: 32px; }
    .main { padding-top: 22px; }
    .cat-strip { padding-bottom: 18px; }
    .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .home-split { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
    .home-split .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rank-card { position: sticky; top: 84px; }
    .list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .quick-grid { grid-template-columns: repeat(4, 1fr); padding: 18px 12px; }
    .quick-grid a { font-size: 12.5px; }
    .qi { width: 42px; height: 42px; font-size: 18px; }
    .me-hero { padding: 26px 28px; }
    .podium { gap: 14px; }
    .podium-item { padding: 14px; }
    .podium-item b { font-size: 14px; }
    .form-card { padding: 24px; }
    .auth-wrap { margin-top: 40px; }
    .gallery { padding: 12px; }
    .detail-card { padding: 22px; }
    .detail-title-row h1 { font-size: 23px; }
    .p-title { font-size: 14.5px; }
}

@media (min-width: 1200px) {
    .wrap { padding: 0 22px; }
}
