/* =====================================================================
   批发商城 · 主样式表
   =====================================================================
   多终端自适应策略（Mobile First）：
     基础样式            → 手机（< 480px）
     @media (min-width:480px)   → 大屏手机
     @media (min-width:768px)   → 平板竖屏
     @media (min-width:1024px)  → 平板横屏 / 小笔记本
     @media (min-width:1280px)  → 桌面宽屏
   所有可点元素最小触控区 44×44px，符合移动端可用性要求。
   ===================================================================== */

/* ---------------------------------------------------------------
 | 设计令牌
 --------------------------------------------------------------- */
:root {
    --c-brand:        #c8102e;
    --c-brand-dark:   #9e0c24;
    --c-brand-light:  #fdecef;
    --c-accent:       #ff6a00;
    --c-accent-light: #fff4e8;

    --c-text:         #1a1d24;
    --c-text-sub:     #5b6271;
    --c-text-muted:   #8b92a1;
    --c-line:         #e6e9ef;
    --c-line-strong:  #d2d7e0;
    --c-bg:           #f5f6f8;
    --c-surface:      #ffffff;
    --c-surface-alt:  #fafbfc;

    --c-success:      #0f9d58;
    --c-success-bg:   #e8f6ee;
    --c-warning:      #d97706;
    --c-warning-bg:   #fef4e6;
    --c-danger:       #d92d20;
    --c-danger-bg:    #fdecea;
    --c-info:         #1a73e8;
    --c-info-bg:      #e8f0fe;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-full: 999px;

    --sh-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --sh-md: 0 2px 8px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .06);
    --sh-lg: 0 12px 32px rgba(16, 24, 40, .12);

    --sp: 16px;
    --container: 1280px;
    --header-h: 60px;
    --tabbar-h: 56px;

    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --trans: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------
 | 基础重置
 --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    /* 移动端底部导航预留空间 */
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 .6em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 可访问性：仅键盘可见的聚焦环 */
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }

/* 工具类 */
.pf-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp); }
.pf-muted { color: var(--c-text-muted); }
.pf-hide-sm { display: none !important; }
.pf-hidden { display: none !important; }
.pf-nowrap { white-space: nowrap; }
.pf-text-right { text-align: right; }
.pf-mt { margin-top: var(--sp); }
.pf-mb { margin-bottom: var(--sp); }

/* ---------------------------------------------------------------
 | 顶部公告条
 --------------------------------------------------------------- */
.pf-topbar {
    background: var(--c-text);
    color: #cfd4de;
    font-size: 12px;
    line-height: 32px;
}
.pf-topbar__inner { display: flex; align-items: center; gap: 14px; height: 32px; }
.pf-topbar__spacer { flex: 1; }
.pf-topbar__item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-topbar__item--hide-sm { display: none; }
.pf-topbar__link { color: #fff; opacity: .82; transition: opacity var(--trans); white-space: nowrap; }
.pf-topbar__link:hover { opacity: 1; }

/* ---------------------------------------------------------------
 | 页头
 --------------------------------------------------------------- */
.pf-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-sm);
}
.pf-header__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--header-h);
}

.pf-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-shrink: 0;
}
.pf-burger span {
    display: block;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform var(--trans), opacity var(--trans);
}
.pf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pf-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pf-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pf-logo__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.pf-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.pf-logo__text strong { font-size: 16px; letter-spacing: .3px; }
.pf-logo__text small { display: none; font-size: 11px; color: var(--c-text-muted); font-weight: 400; }

/* 页头搜索：移动端隐藏（抽屉里有） */
.pf-search { display: none; }
.pf-search__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 2px solid var(--c-brand);
    border-right: none;
    border-radius: var(--r-full) 0 0 var(--r-full);
    background: var(--c-surface);
    outline: none;
}
.pf-search__input::-webkit-search-cancel-button { appearance: none; }
.pf-search__btn {
    display: grid;
    place-items: center;
    width: 68px;
    height: 40px;
    background: var(--c-brand);
    border-radius: 0 var(--r-full) var(--r-full) 0;
    color: #fff;
    transition: background var(--trans);
}
.pf-search__btn svg { width: 19px; height: 19px; stroke-width: 2.4; }
.pf-search__btn:hover { background: var(--c-brand-dark); }

.pf-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.pf-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--r-md);
    color: var(--c-text);
    transition: background var(--trans);
}
.pf-cart-btn svg { width: 22px; height: 22px; }
.pf-cart-btn__label { display: none; }
.pf-cart-btn:hover { background: var(--c-brand-light); }

.pf-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--r-full);
    background: var(--c-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
.pf-badge--tab { position: absolute; top: 2px; right: 50%; transform: translateX(16px); }

/* ---------------------------------------------------------------
 | 主导航（移动端 = 抽屉）
 --------------------------------------------------------------- */
.pf-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 82%;
    max-width: 320px;
    height: 100%;
    overflow-y: auto;
    background: var(--c-surface);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--sh-lg);
    -webkit-overflow-scrolling: touch;
}
.pf-nav.is-open { transform: translateX(0); }
.pf-nav__inner { display: flex; flex-direction: column; padding: 12px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.pf-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--c-line);
    transition: background var(--trans), color var(--trans);
}
.pf-nav__link:hover, .pf-nav__link.is-active { background: var(--c-brand-light); color: var(--c-brand); }
.pf-nav__count {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: var(--r-full);
    background: var(--c-bg);
    font-size: 11px;
    color: var(--c-text-muted);
}

.pf-drawer-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(16, 24, 40, .45);
    backdrop-filter: blur(2px);
    animation: pf-fade .2s ease;
}
@keyframes pf-fade { from { opacity: 0 } to { opacity: 1 } }

/* 抽屉内的移动版搜索 */
.pf-nav__search { padding: 0 16px 12px; }
.pf-nav__search .pf-search { display: flex; }
.pf-nav__search .pf-search__input { border-radius: var(--r-full) 0 0 var(--r-full); }

/* ---------------------------------------------------------------
 | 闪存提示
 --------------------------------------------------------------- */
.pf-flashes {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pf-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--c-surface);
    box-shadow: var(--sh-lg);
    border-left: 4px solid var(--c-info);
    animation: pf-slide-in .26s ease;
}
@keyframes pf-slide-in { from { opacity: 0; transform: translateY(-12px) } to { opacity: 1; transform: translateY(0) } }
.pf-flash__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-info);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.pf-flash__text { flex: 1; font-size: 13px; }
.pf-flash__close { flex-shrink: 0; width: 24px; height: 24px; font-size: 18px; line-height: 1; color: var(--c-text-muted); }
.pf-flash--success { border-left-color: var(--c-success); }
.pf-flash--success .pf-flash__icon { background: var(--c-success); }
.pf-flash--error { border-left-color: var(--c-danger); }
.pf-flash--error .pf-flash__icon { background: var(--c-danger); }
.pf-flash--warning { border-left-color: var(--c-warning); }
.pf-flash--warning .pf-flash__icon { background: var(--c-warning); }

/* ---------------------------------------------------------------
 | 主体 / 通用组件
 --------------------------------------------------------------- */
.pf-main { min-height: 60vh; padding: 16px 0 32px; }

.pf-card {
    background: var(--c-surface);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    overflow: hidden;
}
.pf-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-line);
}
.pf-card__title { font-size: 15px; font-weight: 600; }
.pf-card__body { padding: 16px; }

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--trans), border-color var(--trans), color var(--trans), transform .1s;
}
.pf-btn:active { transform: scale(.985); }
.pf-btn--primary { background: var(--c-brand); color: #fff; }
.pf-btn--primary:hover { background: var(--c-brand-dark); }
.pf-btn--accent { background: var(--c-accent); color: #fff; }
.pf-btn--accent:hover { filter: brightness(.94); }
.pf-btn--outline { border-color: var(--c-line-strong); color: var(--c-text); background: var(--c-surface); }
.pf-btn--outline:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pf-btn--ghost { color: var(--c-text-sub); }
.pf-btn--ghost:hover { background: var(--c-bg); }
.pf-btn--danger { background: var(--c-danger); color: #fff; }
.pf-btn--block { width: 100%; }
.pf-btn--lg { min-height: 50px; font-size: 16px; padding: 0 26px; }
.pf-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.pf-btn[disabled], .pf-btn.is-disabled { opacity: .5; pointer-events: none; }

.pf-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}
.pf-tag--brand { background: var(--c-brand-light); color: var(--c-brand); }
.pf-tag--accent { background: var(--c-accent-light); color: var(--c-accent); }
.pf-tag--success { background: var(--c-success-bg); color: var(--c-success); }
.pf-tag--warning { background: var(--c-warning-bg); color: var(--c-warning); }
.pf-tag--danger { background: var(--c-danger-bg); color: var(--c-danger); }
.pf-tag--info { background: var(--c-info-bg); color: var(--c-info); }
.pf-tag--muted { background: var(--c-bg); color: var(--c-text-muted); }

.pf-field { margin-bottom: 16px; }
.pf-field__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--c-text-sub); }
.pf-field__label .req { color: var(--c-danger); }
.pf-field__hint { margin-top: 6px; font-size: 12px; color: var(--c-text-muted); }
.pf-input, .pf-select, .pf-textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-md);
    background: var(--c-surface);
    outline: none;
    transition: border-color var(--trans), box-shadow var(--trans);
}
.pf-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.pf-input:focus, .pf-select:focus, .pf-textarea:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
.pf-input--error { border-color: var(--c-danger); }
.pf-err { margin-top: 5px; font-size: 12px; color: var(--c-danger); }

.pf-empty { padding: 56px 20px; text-align: center; color: var(--c-text-muted); }
.pf-empty__icon { font-size: 46px; margin-bottom: 12px; opacity: .5; }
.pf-empty__text { margin-bottom: 18px; }

.pf-alert { padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 14px; }
.pf-alert--info { background: var(--c-info-bg); color: #174ea6; }
.pf-alert--warning { background: var(--c-warning-bg); color: #8a4b00; }
.pf-alert--danger { background: var(--c-danger-bg); color: #9b1c13; }
.pf-alert--success { background: var(--c-success-bg); color: #0b6b3d; }

/* ---------------------------------------------------------------
 | 商品网格（1 → 2 → 3 → 4 列）
 --------------------------------------------------------------- */
.pf-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }

.pf-product {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform var(--trans), box-shadow var(--trans);
}
.pf-product:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.pf-product__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--c-bg);
    overflow: hidden;
}
.pf-product__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pf-product:hover .pf-product__img { transform: scale(1.04); }
.pf-product__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.pf-product__body { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.pf-product__title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    margin-bottom: 6px;
}
.pf-product__spec { font-size: 12px; color: var(--c-text-muted); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-product__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; color: var(--c-brand); margin-bottom: 4px; }
.pf-product__price .sym { font-size: 12px; font-weight: 600; }
.pf-product__price .val { font-size: 19px; font-weight: 700; line-height: 1; }
.pf-product__price .unit { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; }
.pf-product__market { font-size: 12px; color: var(--c-text-muted); text-decoration: line-through; white-space: nowrap; }
.pf-product__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--c-line);
    font-size: 11px;
    color: var(--c-text-muted);
}
.pf-product__moq { color: var(--c-accent); font-weight: 600; }

/* ---------------------------------------------------------------
 | 首页 Hero
 --------------------------------------------------------------- */
.pf-hero {
    background: linear-gradient(135deg, #c8102e 0%, #e8455f 46%, #ff8a3d 100%);
    color: #fff;
    margin-bottom: 20px;
}
.pf-hero__inner { padding: 30px 0 26px; }
.pf-hero__title { font-size: 24px; line-height: 1.3; margin-bottom: 10px; letter-spacing: .4px; }
.pf-hero__sub { font-size: 13.5px; line-height: 1.8; opacity: .94; margin-bottom: 18px; }
.pf-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-hero__actions .pf-btn--primary { background: #fff; color: var(--c-brand); }
.pf-hero__actions .pf-btn--primary:hover { background: #fff5f6; }
.pf-hero__actions .pf-btn--outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.pf-hero__actions .pf-btn--outline:hover { background: rgba(255,255,255,.14); color: #fff; }
.pf-hero__stats { display: flex; gap: 26px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.24); }
.pf-hero__stat { display: flex; flex-direction: column; gap: 2px; }
.pf-hero__stat strong { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-hero__stat span { font-size: 12px; opacity: .85; }

/* ---------------------------------------------------------------
 | 区块通用
 --------------------------------------------------------------- */
.pf-section { margin-bottom: 32px; }
.pf-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-section__title { font-size: 18px; }
.pf-section__more { font-size: 13px; color: var(--c-text-muted); transition: color var(--trans); }
.pf-section__more:hover { color: var(--c-brand); }

/* 分类磁贴 */
.pf-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pf-cat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 15px 14px;
    background: var(--c-surface);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    transition: transform var(--trans), box-shadow var(--trans);
}
.pf-cat:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.pf-cat__icon { font-size: 22px; margin-bottom: 3px; }
.pf-cat__name { font-size: 14px; font-weight: 600; }
.pf-cat__count { font-size: 12px; color: var(--c-text-muted); }

/* MOQ 规则横幅 */
.pf-rule-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 30px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #fff8f0, #fff2e8);
    border: 1px solid #ffd9b3;
}
.pf-rule-banner__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 54px;
    padding: 0 8px;
    border-radius: var(--r-md);
    background: var(--c-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.pf-rule-banner__body h3 { font-size: 15px; margin-bottom: 6px; color: #8a3c00; }
.pf-rule-banner__body p { margin: 0; font-size: 13px; line-height: 1.75; color: #a04a00; }
.pf-rule-banner__body strong { color: var(--c-brand); }

/* 支付方式卡片 */
.pf-pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pf-pay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--c-surface);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
}
.pf-pay-card.is-off { opacity: .68; }
.pf-pay-card__idx {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-line-strong);
}
.pf-pay-card h4 { font-size: 14.5px; }
.pf-pay-card p { margin: 0; font-size: 12.5px; color: var(--c-text-muted); line-height: 1.65; }

/* ---------------------------------------------------------------
 | 列表页布局
 --------------------------------------------------------------- */
.pf-listing { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pf-listing__side { display: none; }
.pf-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    transition: background var(--trans), color var(--trans);
}
.pf-side-link:hover { background: var(--c-bg); color: var(--c-brand); }
.pf-side-link.is-active { background: var(--c-brand-light); color: var(--c-brand); font-weight: 600; }

.pf-cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.pf-cat-scroll::-webkit-scrollbar { display: none; }

.pf-sortbar { display: flex; gap: 4px; overflow-x: auto; padding: 10px 12px; margin-bottom: 14px; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); scrollbar-width: none; }
.pf-sortbar::-webkit-scrollbar { display: none; }
.pf-sortbar__item { flex: 0 0 auto; padding: 7px 13px; border-radius: var(--r-sm); font-size: 13px; color: var(--c-text-sub); transition: all var(--trans); }
.pf-sortbar__item:hover { color: var(--c-brand); background: var(--c-brand-light); }
.pf-sortbar__item.is-active { background: var(--c-brand); color: #fff; font-weight: 500; }

/* ---------------------------------------------------------------
 | 页面标题条
 --------------------------------------------------------------- */
.pf-page-head { margin-bottom: 14px; }
.pf-page-head__title { font-size: 19px; }
.pf-page-head__sub { font-size: 13px; color: var(--c-text-muted); margin-top: 3px; }
.pf-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--c-text-muted); margin-bottom: 10px; }
.pf-breadcrumb a:hover { color: var(--c-brand); }
.pf-breadcrumb__sep { opacity: .5; }

/* ---------------------------------------------------------------
 | 详情页布局（移动端单列 → 桌面端两列）
 --------------------------------------------------------------- */
.pf-detail { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* ---------- 多图轮播 ---------- */
.pf-gallery { background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.pf-gallery__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--c-surface-alt);
    overflow: hidden;
    touch-action: pan-y;
    cursor: zoom-in;
}
.pf-gallery__track {
    display: flex;
    height: 100%;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.pf-gallery__slide { flex: 0 0 100%; height: 100%; }
.pf-gallery__slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.pf-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--c-text);
    box-shadow: var(--sh-md);
    opacity: 0;
    transition: opacity var(--trans), background var(--trans);
}
.pf-gallery__arrow svg { width: 20px; height: 20px; stroke-width: 2.4; }
.pf-gallery__arrow--prev { left: 10px; }
.pf-gallery__arrow--next { right: 10px; }
.pf-gallery__stage:hover .pf-gallery__arrow { opacity: 1; }
.pf-gallery__arrow:hover { background: #fff; color: var(--c-brand); }
.pf-gallery__arrow[disabled] { opacity: .28 !important; pointer-events: none; }

.pf-gallery__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: rgba(16, 24, 40, .62);
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
}
.pf-gallery__zoom {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--c-text);
    box-shadow: var(--sh-sm);
}
.pf-gallery__zoom svg { width: 17px; height: 17px; }

/* 缩略图条：横向滚动，触控友好 */
.pf-gallery__thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.pf-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.pf-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 4px; }
.pf-gallery__thumb {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: var(--r-sm);
    border: 2px solid var(--c-line);
    overflow: hidden;
    background: #fff;
    transition: border-color var(--trans), transform var(--trans);
}
.pf-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-gallery__thumb:hover { border-color: var(--c-line-strong); }
.pf-gallery__thumb.is-active { border-color: var(--c-brand); }

/* 圆点指示器（移动端优先） */
.pf-gallery__dots { display: flex; justify-content: center; gap: 6px; padding: 0 12px 10px; }
.pf-gallery__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-line-strong);
    transition: all var(--trans);
}
.pf-gallery__dot.is-active { width: 18px; border-radius: var(--r-full); background: var(--c-brand); }

/* 图片放大预览 */
.pf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 15, 20, .94);
    animation: pf-fade .2s ease;
}
.pf-lightbox__img { max-width: 96vw; max-height: 88vh; object-fit: contain; }
.pf-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 24px;
    line-height: 1;
}
.pf-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}
.pf-lightbox__nav svg { width: 22px; height: 22px; stroke-width: 2.4; }
.pf-lightbox__nav--prev { left: 12px; }
.pf-lightbox__nav--next { right: 12px; }
.pf-lightbox__counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; }

/* ---------- 商品信息 ---------- */
.pf-info { background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 16px; }
.pf-info__title { font-size: 17px; line-height: 1.45; margin-bottom: 6px; }
.pf-info__subtitle { font-size: 13px; color: var(--c-text-sub); margin-bottom: 12px; }
.pf-info__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    padding: 14px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, #fff5f6, #fff9f4);
    margin-bottom: 14px;
}
.pf-info__price { color: var(--c-brand); display: flex; align-items: baseline; gap: 3px; }
.pf-info__price .sym { font-size: 15px; font-weight: 600; }
.pf-info__price .val { font-size: 30px; font-weight: 700; line-height: 1; }
.pf-info__price .unit { font-size: 12px; color: var(--c-text-sub); }
.pf-info__market { color: var(--c-text-muted); text-decoration: line-through; font-size: 13px; }

.pf-info__kvs { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; margin-bottom: 14px; }
.pf-info__kvs dt { color: var(--c-text-muted); white-space: nowrap; }
.pf-info__kvs dd { margin: 0; }

/* MOQ 规则提示条 —— 全站最关键的提示 */
.pf-moq-note {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--c-accent-light);
    border: 1px dashed var(--c-accent);
    margin-bottom: 14px;
}
.pf-moq-note__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
.pf-moq-note__body { flex: 1; min-width: 0; }
.pf-moq-note__title { font-size: 13px; font-weight: 600; color: #8a3c00; margin-bottom: 3px; }
.pf-moq-note__text { font-size: 12.5px; color: #a04a00; line-height: 1.6; }
.pf-moq-note__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-moq-chip {
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: #fff;
    border: 1px solid var(--c-accent);
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--trans);
}
.pf-moq-chip:hover, .pf-moq-chip.is-active { background: var(--c-accent); color: #fff; }

/* 阶梯价表 */
.pf-tier-table { width: 100%; font-size: 13px; margin-bottom: 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.pf-tier-table th, .pf-tier-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--c-line); }
.pf-tier-table th { background: var(--c-surface-alt); font-weight: 500; color: var(--c-text-sub); font-size: 12px; }
.pf-tier-table tr:last-child td { border-bottom: none; }
.pf-tier-table tr.is-active td { background: var(--c-brand-light); font-weight: 600; color: var(--c-brand); }
.pf-tier-table__save { color: var(--c-success); font-size: 12px; }

/* 数量选择器 —— 倍数步进 */
.pf-qty { margin-bottom: 14px; }
.pf-qty__row { display: flex; align-items: stretch; gap: 0; max-width: 100%; }
.pf-qty__btn {
    display: grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    height: 48px;
    border: 1px solid var(--c-line-strong);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 20px;
    font-weight: 400;
    transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.pf-qty__btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.pf-qty__btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.pf-qty__btn:hover:not([disabled]) { border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-light); }
.pf-qty__btn[disabled] { opacity: .4; cursor: not-allowed; }
.pf-qty__input-wrap { position: relative; flex: 1; min-width: 0; }
.pf-qty__input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 12px;
    border: 1px solid var(--c-line-strong);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    outline: none;
    background: var(--c-surface);
}
.pf-qty__input:focus { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); }
.pf-qty__input.is-invalid { border-color: var(--c-danger); box-shadow: inset 0 0 0 1px var(--c-danger); color: var(--c-danger); }
.pf-qty__suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--c-text-muted);
    pointer-events: none;
}
.pf-qty__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--c-text-muted);
}
.pf-qty__multiple { color: var(--c-accent); font-weight: 600; }
.pf-qty__msg { font-size: 12.5px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-sm); display: none; }
.pf-qty__msg.is-error { display: block; background: var(--c-danger-bg); color: #9b1c13; }
.pf-qty__msg.is-warn { display: block; background: var(--c-warning-bg); color: #8a4b00; }
.pf-qty__msg.is-ok { display: block; background: var(--c-success-bg); color: #0b6b3d; }

/* 快捷数量 */
.pf-quick-qty { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pf-quick-qty__btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-full);
    background: var(--c-surface);
    font-size: 13px;
    transition: all var(--trans);
}
.pf-quick-qty__btn:hover, .pf-quick-qty__btn.is-active { border-color: var(--c-brand); background: var(--c-brand-light); color: var(--c-brand); font-weight: 600; }

/* 金额汇总 */
.pf-summary { border-top: 1px dashed var(--c-line); padding-top: 12px; margin-bottom: 14px; font-size: 13px; }
.pf-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; }
.pf-summary__row--total { font-size: 15px; font-weight: 600; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--c-line); }
.pf-summary__total { color: var(--c-brand); font-size: 22px; font-weight: 700; }

.pf-info__actions { display: flex; gap: 10px; }
.pf-info__actions .pf-btn { flex: 1; }

.pf-info__trust { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-text-muted); }
.pf-info__trust span { display: flex; align-items: center; gap: 5px; }
.pf-info__trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); }

/* 详情描述 */
.pf-desc { margin-top: 16px; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.pf-desc__head { display: flex; gap: 20px; padding: 0 16px; border-bottom: 1px solid var(--c-line); overflow-x: auto; }
.pf-desc__tab {
    position: relative;
    min-height: 48px;
    padding: 0 2px;
    font-size: 14px;
    color: var(--c-text-sub);
    white-space: nowrap;
    transition: color var(--trans);
}
.pf-desc__tab.is-active { color: var(--c-brand); font-weight: 600; }
.pf-desc__tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--c-brand);
    border-radius: 2px;
}
.pf-desc__panel { padding: 16px; font-size: 14px; line-height: 1.85; color: var(--c-text-sub); white-space: pre-line; word-break: break-word; }
.pf-desc__panel[hidden] { display: none; }
.pf-desc__highlights { display: grid; gap: 10px; }
.pf-desc__highlight { display: flex; gap: 10px; align-items: flex-start; }
.pf-desc__highlight .idx {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-brand-light);
    color: var(--c-brand);
    font-size: 12px;
    font-weight: 700;
}

/* ---------------------------------------------------------------
 | 购物车
 --------------------------------------------------------------- */
.pf-cart-list { display: flex; flex-direction: column; gap: 12px; }
.pf-cart-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 12px;
    background: var(--c-surface);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
}
.pf-cart-item__media { width: 84px; aspect-ratio: 1/1; border-radius: var(--r-sm); overflow: hidden; background: var(--c-bg); }
.pf-cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.pf-cart-item__title { font-size: 13.5px; font-weight: 500; line-height: 1.45; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-cart-item__spec { font-size: 12px; color: var(--c-text-muted); margin-bottom: 6px; }
.pf-cart-item__price { color: var(--c-brand); font-size: 15px; font-weight: 700; }
.pf-cart-item__price small { font-size: 11px; font-weight: 400; color: var(--c-text-muted); }
.pf-cart-item__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pf-cart-item__qty { display: flex; align-items: stretch; }
.pf-cart-item__qty button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1px solid var(--c-line-strong);
    background: var(--c-surface);
    font-size: 17px;
    display: grid;
    place-items: center;
    transition: all var(--trans);
}
.pf-cart-item__qty button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.pf-cart-item__qty button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pf-cart-item__qty button:hover:not([disabled]) { border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-light); }
.pf-cart-item__qty button[disabled] { opacity: .38; cursor: not-allowed; }
.pf-cart-item__qty input {
    width: 64px;
    height: 34px;
    border: 1px solid var(--c-line-strong);
    border-left: none;
    border-right: none;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    outline: none;
}
.pf-cart-item__qty input.is-invalid { border-color: var(--c-danger); color: var(--c-danger); }
.pf-cart-item__sub { font-weight: 700; color: var(--c-text); }
.pf-cart-item__remove { font-size: 12px; color: var(--c-text-muted); padding: 6px; }
.pf-cart-item__remove:hover { color: var(--c-danger); }
.pf-cart-item__issue { grid-column: 1 / -1; font-size: 12px; color: var(--c-danger); background: var(--c-danger-bg); padding: 7px 10px; border-radius: var(--r-sm); }

/* 结算汇总条 */
.pf-checkout-bar {
    position: sticky;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 16px;
    background: var(--c-surface);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
}
.pf-checkout-bar__info { flex: 1; min-width: 0; font-size: 12px; color: var(--c-text-muted); }
.pf-checkout-bar__total { color: var(--c-brand); font-size: 21px; font-weight: 700; }
.pf-checkout-bar__total small { font-size: 12px; font-weight: 400; color: var(--c-text-sub); }

/* 地址卡片 */
.pf-addr { padding: 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); margin-bottom: 10px; transition: border-color var(--trans), background var(--trans); }
.pf-addr:hover { border-color: var(--c-line-strong); }
.pf-addr.is-default { border-color: var(--c-brand); background: var(--c-brand-light); }
.pf-addr__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 5px; }
.pf-addr__body { font-size: 13px; color: var(--c-text-sub); line-height: 1.7; }
.pf-addr__actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pf-addr__actions .pf-btn { min-height: 32px; padding: 0 10px; font-size: 12.5px; }

/* 银行信息框（线下支付） */
.pf-bank-box { background: var(--c-surface-alt); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.pf-bank-box__row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--c-line); font-size: 13.5px; align-items: baseline; }
.pf-bank-box__row:last-child { border-bottom: none; }
.pf-bank-box__k { color: var(--c-text-muted); font-size: 13px; }
.pf-bank-box__v { font-weight: 500; word-break: break-all; }
.pf-bank-box__v--mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .5px; font-size: 15px; font-weight: 600; }
.pf-bank-box__v--amount { color: var(--c-brand); font-size: 20px; font-weight: 700; }

/* 订单结果页 */
.pf-result { max-width: 560px; margin: 0 auto; text-align: center; padding: 30px 0; }
.pf-result__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; font-size: 38px; }
.pf-result__icon--success { background: var(--c-success-bg); color: var(--c-success); }
.pf-result__icon--warning { background: var(--c-warning-bg); color: var(--c-warning); }
.pf-result__icon--info { background: var(--c-info-bg); color: var(--c-info); }
.pf-result__title { font-size: 21px; margin-bottom: 8px; }
.pf-result__sub { color: var(--c-text-muted); font-size: 13.5px; margin-bottom: 22px; line-height: 1.8; }
.pf-result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* 客服 / 步骤列表 */
.pf-steps { display: flex; flex-direction: column; gap: 14px; }
.pf-step { display: flex; gap: 12px; align-items: flex-start; }
.pf-step__idx { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand); font-size: 13px; font-weight: 700; }
.pf-step__body { flex: 1; font-size: 13.5px; line-height: 1.75; }
.pf-step__body strong { display: block; margin-bottom: 2px; }

/* ---------------------------------------------------------------
 | 结算 / 支付
 --------------------------------------------------------------- */
.pf-pay-list { display: flex; flex-direction: column; gap: 10px; }
.pf-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--c-line);
    border-radius: var(--r-md);
    background: var(--c-surface);
    cursor: pointer;
    transition: border-color var(--trans), background var(--trans);
}
.pf-pay-option:hover:not(.is-disabled) { border-color: var(--c-line-strong); }
.pf-pay-option.is-selected { border-color: var(--c-brand); background: var(--c-brand-light); }
.pf-pay-option.is-disabled { opacity: .55; cursor: not-allowed; background: var(--c-surface-alt); }
.pf-pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pf-pay-option__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}
.pf-pay-option__icon--balance { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pf-pay-option__icon--offline { background: linear-gradient(135deg, #475569, #1e293b); }
.pf-pay-option__icon--wechat { background: linear-gradient(135deg, #22c55e, #15803d); }
.pf-pay-option__icon--alipay { background: linear-gradient(135deg, #1677ff, #0958d9); }
.pf-pay-option__body { flex: 1; min-width: 0; }
.pf-pay-option__title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-pay-option__desc { font-size: 12.5px; color: var(--c-text-muted); margin-top: 2px; }
.pf-pay-option__check {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--c-line-strong);
    color: transparent;
    font-size: 13px;
    transition: all var(--trans);
}
.pf-pay-option.is-selected .pf-pay-option__check { border-color: var(--c-brand); background: var(--c-brand); color: #fff; }

/* 二维码容器 */
.pf-qrcode-box { text-align: center; padding: 24px 16px; }
.pf-qrcode-box img, .pf-qrcode-box canvas { display: inline-block; width: 200px; height: 200px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; padding: 8px; }
.pf-qrcode-box__tip { margin-top: 14px; font-size: 13px; color: var(--c-text-sub); }
.pf-qrcode-box__amount { font-size: 26px; font-weight: 700; color: var(--c-brand); margin: 10px 0; }

/* 订单商品行 */
.pf-order-line { display: grid; grid-template-columns: 66px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); align-items: center; }
.pf-order-line:last-child { border-bottom: none; }
.pf-order-line__media { width: 66px; aspect-ratio: 1/1; border-radius: var(--r-sm); overflow: hidden; background: var(--c-bg); }
.pf-order-line__media img { width: 100%; height: 100%; object-fit: cover; }
.pf-order-line__title { font-size: 13.5px; line-height: 1.45; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-order-line__meta { font-size: 12px; color: var(--c-text-muted); }
.pf-order-line__amount { text-align: right; font-weight: 600; white-space: nowrap; }
.pf-order-line__qty { font-size: 12.5px; color: var(--c-text-sub); font-weight: 400; }

/* ---------------------------------------------------------------
 | 订单列表 / 详情
 --------------------------------------------------------------- */
.pf-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 15px;
    border-radius: var(--r-full);
    font-size: 13px;
    color: var(--c-text-sub);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    transition: all var(--trans);
}
.pf-tabs__item:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pf-tabs__item.is-active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; font-weight: 500; }
.pf-tabs__count { font-size: 11px; opacity: .75; }

.pf-order-card { background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); margin-bottom: 12px; overflow: hidden; }
.pf-order-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: var(--c-surface-alt);
    border-bottom: 1px solid var(--c-line);
    font-size: 12.5px;
}
.pf-order-card__no { font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-order-card__body { padding: 4px 14px; }
.pf-order-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--c-line);
    background: var(--c-surface-alt);
}
.pf-order-card__total { font-size: 14px; }
.pf-order-card__total strong { color: var(--c-brand); font-size: 18px; }
.pf-order-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 订单详情信息网格 */
.pf-kv-grid { display: grid; grid-template-columns: 1fr; gap: 0; font-size: 13px; }
.pf-kv-grid__row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--c-line); }
.pf-kv-grid__row:last-child { border-bottom: none; }
.pf-kv-grid__k { color: var(--c-text-muted); }
.pf-kv-grid__v { word-break: break-word; }

/* 时间线 */
.pf-timeline { display: flex; flex-direction: column; gap: 0; }
.pf-timeline__item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.pf-timeline__item:last-child { padding-bottom: 0; }
.pf-timeline__dot { display: grid; place-items: center; }
.pf-timeline__dot span { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-strong); }
.pf-timeline__item.is-done .pf-timeline__dot span { background: var(--c-success); box-shadow: 0 0 0 4px var(--c-success-bg); }
.pf-timeline__item.is-current .pf-timeline__dot span { background: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-light); }
.pf-timeline__item:not(:last-child) .pf-timeline__dot::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 11px;
    width: 2px;
    height: calc(100% - 12px);
    background: var(--c-line);
}
.pf-timeline__label { font-size: 13.5px; font-weight: 500; }
.pf-timeline__time { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }

/* ---------------------------------------------------------------
 | 表单页
 --------------------------------------------------------------- */
.pf-form-narrow { max-width: 520px; margin: 0 auto; }
.pf-auth-wrap { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: linear-gradient(160deg, #fff5f6 0%, #f5f6f8 46%, #f0f4fa 100%); }
.pf-auth-card { width: 100%; max-width: 420px; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 28px 22px; }
.pf-auth-card__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.pf-auth-card__mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--c-brand), var(--c-accent)); color: #fff; font-size: 25px; font-weight: 700; }
.pf-auth-card__title { font-size: 20px; }
.pf-auth-card__sub { font-size: 13px; color: var(--c-text-muted); }
.pf-auth-card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line); text-align: center; font-size: 13px; color: var(--c-text-muted); }
.pf-auth-card__foot a { color: var(--c-brand); font-weight: 500; }
.pf-auth-side { display: none; }

/* ---------------------------------------------------------------
 | 后台
 --------------------------------------------------------------- */
.pf-admin { background: var(--c-bg); }
.pf-admin__layout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.pf-admin__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 232px;
    height: 100%;
    overflow-y: auto;
    background: #12161f;
    color: #b9c0cd;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.pf-admin__sidebar.is-open { transform: translateX(0); }
.pf-admin__brand { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.pf-admin__brand span.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--c-brand), var(--c-accent)); font-size: 14px; }
.pf-admin__nav { padding: 12px 0 32px; }
.pf-admin__nav-group { padding: 14px 18px 6px; font-size: 11px; letter-spacing: .6px; color: #5d6675; text-transform: uppercase; }
.pf-admin__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 13.5px;
    border-left: 3px solid transparent;
    transition: all var(--trans);
}
.pf-admin__nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.pf-admin__nav-link.is-active { background: rgba(200,16,46,.16); border-left-color: var(--c-brand); color: #fff; font-weight: 500; }
.pf-admin__nav-link .pf-nav__count { background: rgba(255,255,255,.1); color: #cbd2de; }
.pf-admin__nav-link .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--c-brand); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }

.pf-admin__main { min-width: 0; display: flex; flex-direction: column; }
.pf-admin__topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding: 0 16px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
}
.pf-admin__content { padding: 16px; flex: 1; }
.pf-admin__burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); }
.pf-admin__burger:hover { background: var(--c-bg); }
.pf-admin__burger svg { width: 22px; height: 22px; }
.pf-admin__title { font-size: 16px; font-weight: 600; }
.pf-admin__user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pf-admin__mask { position: fixed; inset: 0; z-index: 80; background: rgba(16,24,40,.5); }

/* 后台统计卡 */
.pf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.pf-stat { padding: 14px; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.pf-stat__label { font-size: 12px; color: var(--c-text-muted); margin-bottom: 6px; }
.pf-stat__value { font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pf-stat__value small { font-size: 12px; font-weight: 400; color: var(--c-text-muted); }
.pf-stat--brand .pf-stat__value { color: var(--c-brand); }
.pf-stat--success .pf-stat__value { color: var(--c-success); }
.pf-stat--warning .pf-stat__value { color: var(--c-warning); }

/* 弹层 */
.pf-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 20px 12px; background: rgba(16,24,40,.5); backdrop-filter: blur(2px); }
.pf-modal[hidden] { display: none; }
.pf-modal__panel { width: 100%; max-width: 560px; margin: auto; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; animation: pf-slide-in .22s ease; }
.pf-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.pf-modal__body { padding: 16px; }

/* 后台底部操作条 */
.pf-admin-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 0;
    margin-top: 8px;
    background: linear-gradient(180deg, rgba(245,246,248,0), var(--c-bg) 40%);
}

/* 后台两栏自适应网格 */
.pf-admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }

/* 通道健康行 */
.pf-health-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--c-line); }
.pf-health-row:last-child { border-bottom: none; }
.pf-health-row__idx { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c-bg); color: var(--c-text-muted); font-size: 11px; font-weight: 700; }
.pf-health-row__name { flex: 1; font-size: 13.5px; }

/* 低库存行 */
.pf-lowstock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--c-line); font-size: 13px; }
.pf-lowstock-row:last-child { border-bottom: none; }
.pf-lowstock-row a:hover { color: var(--c-brand); }

/* 规格提示 */
.pf-help { font-size: 12px; color: var(--c-text-muted); line-height: 1.65; }
.pf-help code { background: var(--c-bg); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }

/* ---------------------------------------------------------------
 | 后台表格 → 移动端卡片化
 --------------------------------------------------------------- */
.pf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pf-table { width: 100%; min-width: 640px; font-size: 13px; background: var(--c-surface); }
.pf-table th, .pf-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.pf-table th { background: var(--c-surface-alt); font-weight: 500; font-size: 12px; color: var(--c-text-sub); white-space: nowrap; }
.pf-table tbody tr:hover { background: var(--c-surface-alt); }
.pf-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-table__thumb { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; background: var(--c-bg); }
.pf-table__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.pf-filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); margin-bottom: 16px; }
.pf-filterbar .pf-field { margin-bottom: 0; min-width: 140px; flex: 1 1 140px; }
.pf-filterbar__actions { display: flex; gap: 8px; }

/* 支付通道卡片 */
.pf-gateway { background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); margin-bottom: 14px; overflow: hidden; }
.pf-gateway__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--c-line); }
.pf-gateway__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); color: #fff; font-size: 17px; font-weight: 700; flex-shrink: 0; }
.pf-gateway__title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-gateway__desc { font-size: 12.5px; color: var(--c-text-muted); margin-top: 2px; }
.pf-gateway__switch { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pf-gateway__body { padding: 14px; }
.pf-gateway__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pf-index-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-text); color: #fff; font-size: 11px; font-weight: 700; }

/* 开关 */
.pf-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.pf-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pf-switch__track { position: absolute; inset: 0; border-radius: var(--r-full); background: var(--c-line-strong); transition: background var(--trans); pointer-events: none; }
.pf-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--sh-sm);
    transition: transform var(--trans);
}
.pf-switch input:checked + .pf-switch__track { background: var(--c-success); }
.pf-switch input:checked + .pf-switch__track::after { transform: translateX(20px); }
.pf-switch input:focus-visible + .pf-switch__track { box-shadow: 0 0 0 3px rgba(200,16,46,.16); }

/* 迷你趋势图 */
.pf-spark { display: flex; align-items: flex-end; gap: 4px; height: 92px; padding: 8px 0; }
.pf-spark__bar { flex: 1; min-height: 3px; background: linear-gradient(180deg, var(--c-brand), #f8a9b6); border-radius: 3px 3px 0 0; position: relative; transition: opacity var(--trans); }
.pf-spark__bar:hover { opacity: .78; }
.pf-spark__labels { display: flex; gap: 4px; font-size: 10px; color: var(--c-text-muted); }
.pf-spark__labels span { flex: 1; text-align: center; }

/* 分页 */
.pf-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; }
.pf-pager__item {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line);
    background: var(--c-surface);
    font-size: 13px;
    transition: all var(--trans);
}
.pf-pager__item:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pf-pager__item.is-active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; font-weight: 600; }
.pf-pager__item.is-disabled { opacity: .45; pointer-events: none; }
.pf-pager__info { width: 100%; text-align: center; font-size: 12px; color: var(--c-text-muted); margin-top: 8px; }

/* ---------------------------------------------------------------
 | 页脚 + 底部导航
 --------------------------------------------------------------- */
.pf-footer { background: #12161f; color: #99a1b0; padding: 28px 0 0; margin-top: 32px; font-size: 13px; }
.pf-footer__grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 24px; }
.pf-footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.pf-footer__desc { line-height: 1.75; font-size: 12.5px; }
.pf-footer__col ul { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.pf-footer__col a:hover { color: #fff; }
.pf-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; font-size: 12px; }
.pf-footer__bottom .pf-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.pf-footer__tech { color: #5d6675; }

.pf-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--c-line);
}
.pf-tabbar__item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: var(--c-text-muted);
    transition: color var(--trans);
}
.pf-tabbar__item svg { width: 21px; height: 21px; }
.pf-tabbar__item.is-active { color: var(--c-brand); }

/* ---------------------------------------------------------------
 | 加载态
 --------------------------------------------------------------- */
.pf-loading { position: relative; pointer-events: none; opacity: .6; }
.pf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pf-spin .7s linear infinite;
    vertical-align: -2px;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.pf-skeleton { background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 50%, #eef0f4 75%); background-size: 200% 100%; animation: pf-shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes pf-shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* =====================================================================
   响应式断点
   ===================================================================== */

/* ---------- ≥480px：大屏手机 ---------- */
@media (min-width: 480px) {
    :root { --sp: 18px; }
    .pf-grid { gap: 14px; }
    .pf-product__title { font-size: 14px; }
    .pf-product__price .val { font-size: 21px; }
    .pf-info__price .val { font-size: 34px; }
    .pf-stats { grid-template-columns: repeat(2, 1fr); }
    .pf-topbar__item--hide-sm { display: inline; }
    .pf-cart-item { grid-template-columns: 100px 1fr; }
    .pf-cart-item__media { width: 100px; }
    .pf-gallery__thumb { width: 66px; height: 66px; }
}

/* ---------- ≥640px：小平板 ---------- */
@media (min-width: 640px) {
    .pf-grid { grid-template-columns: repeat(3, 1fr); }
    .pf-kv-grid { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
    .pf-gateway__grid { grid-template-columns: repeat(2, 1fr); }
    .pf-stats { grid-template-columns: repeat(3, 1fr); }
    .pf-order-line { grid-template-columns: 76px 1fr auto; }
    .pf-order-line__media { width: 76px; }
    .pf-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≥768px：平板竖屏 ---------- */
@media (min-width: 768px) {
    body { font-size: 14.5px; padding-bottom: 0; }
    :root { --sp: 22px; --header-h: 68px; }

    /* 平板：主导航横向展开 */
    .pf-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        transform: none;
        box-shadow: none;
        background: transparent;
        border-top: 1px solid var(--c-line);
        overflow: visible;
    }
    .pf-nav__inner { flex-direction: row; padding: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
    .pf-nav__inner::-webkit-scrollbar { display: none; }
    .pf-nav__link { min-height: 46px; padding: 0 14px; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
    .pf-nav__link:hover, .pf-nav__link.is-active { background: transparent; border-bottom-color: var(--c-brand); }
    .pf-nav__search, .pf-burger, .pf-drawer-mask, .pf-tabbar { display: none !important; }

    .pf-hide-sm { display: inline-flex !important; }
    .pf-search--header { display: flex; flex: 1; max-width: 420px; margin: 0 14px; }
    .pf-logo__text small { display: block; }
    .pf-cart-btn__label { display: inline; font-size: 13px; }
    .pf-cart-btn { padding: 0 14px; }
    .pf-badge { position: static; }
    .pf-badge--tab { display: none; }

    /* 详情页两列 */
    .pf-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
    .pf-detail__media { position: sticky; top: calc(var(--header-h) + 46px + 16px); }
    .pf-gallery__arrow { opacity: 1; }
    .pf-info__title { font-size: 20px; }
    .pf-info__price .val { font-size: 38px; }

    .pf-page-head__title { font-size: 22px; }

    /* 结算页两列 */
    .pf-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
    .pf-checkout__side { position: sticky; top: calc(var(--header-h) + 46px + 16px); }
    .pf-checkout-bar { position: static; flex-direction: column; align-items: stretch; gap: 12px; }

    .pf-form-narrow { max-width: 560px; }

    /* 列表页侧栏 */
    .pf-listing { grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; }
    .pf-listing__side { display: block; position: sticky; top: calc(var(--header-h) + 46px + 16px); }
    .pf-cat-scroll { display: none; }
    .pf-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .pf-hero__inner { padding: 44px 0 40px; }
    .pf-hero__title { font-size: 34px; }
    .pf-hero__sub { font-size: 15px; }
    .pf-hero__stat strong { font-size: 30px; }
    .pf-section__title { font-size: 20px; }
    .pf-pay-grid { grid-template-columns: repeat(4, 1fr); }
    .pf-rule-banner { padding: 20px 24px; }

    .pf-admin__sidebar { transform: none; }
    .pf-admin__main { margin-left: 232px; }
    .pf-admin__mask { display: none !important; }
    .pf-admin__burger { display: none; }
    .pf-admin__content { padding: 20px; }
    .pf-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .pf-admin-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }

    .pf-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .pf-footer { margin-top: 44px; }
    .pf-table { min-width: 0; }
}

/* ---------- ≥1024px：平板横屏 / 小笔记本 ---------- */
@media (min-width: 1024px) {
    body { padding-bottom: 0; }
    .pf-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .pf-detail { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; }
    .pf-checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
    .pf-info { padding: 20px; }
    .pf-main { padding: 20px 0 48px; }
    .pf-order-line { grid-template-columns: 84px 1fr auto; }
    .pf-order-line__media { width: 84px; }
    .pf-gateway__grid { grid-template-columns: repeat(3, 1fr); }
    .pf-auth-wrap { grid-template-columns: 1fr 1fr; padding: 0; }
    .pf-auth-side {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        padding: 60px;
        background: linear-gradient(150deg, #c8102e, #ff6a00);
        color: #fff;
    }
    .pf-auth-side h2 { font-size: 30px; line-height: 1.35; }
    .pf-auth-side p { opacity: .9; font-size: 15px; line-height: 1.8; }
    .pf-auth-side ul { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; font-size: 14px; }
    .pf-auth-side li { display: flex; gap: 8px; align-items: flex-start; }
    .pf-auth-card { max-width: 400px; padding: 34px 26px; }
    .pf-auth-wrap .pf-auth-inner { display: grid; place-items: center; min-height: 100vh; }
}

/* ---------- ≥1280px：桌面宽屏 ---------- */
@media (min-width: 1280px) {
    :root { --container: 1320px; }
    .pf-grid { grid-template-columns: repeat(4, 1fr); }
    .pf-product__title { font-size: 14.5px; }
    .pf-stats { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- 打印 ---------- */
@media print {
    .pf-header, .pf-footer, .pf-tabbar, .pf-topbar, .pf-checkout-bar, .pf-info__actions { display: none !important; }
    body { background: #fff; padding: 0; }
    .pf-card, .pf-info { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- 偏好减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ---------- 深色模式（跟随系统） ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --c-text: #e8eaed;
        --c-text-sub: #b8bec9;
        --c-text-muted: #858c99;
        --c-line: #2b303a;
        --c-line-strong: #3a414e;
        --c-bg: #14171d;
        --c-surface: #1c2028;
        --c-surface-alt: #232830;
        --c-brand-light: #3a1a20;
        --c-accent-light: #3a2a18;
        --c-success-bg: #14301f;
        --c-warning-bg: #33260f;
        --c-danger-bg: #3a1a18;
        --c-info-bg: #152a44;
    }
    .pf-topbar { background: #0e1116; }
    .pf-footer { background: #0e1116; }
    .pf-tabbar { background: rgba(28, 32, 40, .96); }
    .pf-info__price-row { background: linear-gradient(135deg, #2a1a1e, #2a2118); }
    .pf-gallery__slide img { background: var(--c-surface); }
    .pf-gallery__thumb { background: var(--c-surface); }
    .pf-qrcode-box img, .pf-qrcode-box canvas { background: #fff; }
    .pf-admin__sidebar { background: #0e1116; }
}
