/* ============================================================
   酒未来 · 分销商控制台样式（仅 platform/ 使用）
   ------------------------------------------------------------
   为什么单独一个文件：style.css 是官网与分销平台共用的，
   分销端要的是「经营工作台」结构（侧栏 + 顶栏 + 内容区），
   直接改 style.css 会连带影响官网。所以这里只做分销端的覆盖，
   所有规则都收敛在 .pf-* 与 .platform-wrap.pf-shell 之下。
   引入顺序：style.css 之后 → 同权重规则以后者为准。

   ⚠ 必须保留 .platform-wrap 这个类名：
     main.js 用 if (!document.querySelector('.platform-wrap')) 来判断
     「当前不是平台页」，只有命中才给 .sec-head / .grid>.card 加 .reveal
     隐藏类。若改名，平台页会被加上 .reveal 导致内容初始不可见。
   ============================================================ */

:root {
  --p-bg: #f4f0e7;
  --p-card: #ffffff;
  --p-ink: #2b2118;
  --p-ink-2: #6b5b48;
  --p-ink-3: #9d907c;
  --p-line: #e8ddc4;
  --p-line-2: #f2ecdd;
  --p-gold: #b8860b;
  --p-gold-2: #d4af37;
  --p-gold-dark: #8a6508;
  --p-gold-bg: #faf6ec;
  --p-side-1: #241c14;
  --p-side-2: #3a2c1e;
  --p-ok: #1e7e34;
  --p-warn: #b26a00;
  --p-danger: #c0392b;
  --p-radius: 12px;
  --p-shadow: 0 1px 2px rgba(43, 33, 24, .05), 0 14px 30px -22px rgba(43, 33, 24, .45);
}

/* ==================== 外壳 ==================== */
body.pf-body { background: var(--p-bg); }
.platform-wrap.pf-shell { display: flex; min-height: 100vh; background: var(--p-bg); }

/* ==================== 侧边栏 ==================== */
.pf-side {
  flex: 0 0 238px; width: 238px;
  background: linear-gradient(180deg, var(--p-side-1), var(--p-side-2));
  color: #d9cdb8;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.pf-side::before {
  content: ""; flex: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--p-gold), var(--p-gold-2), rgba(212, 175, 55, 0));
}
.pf-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px 15px; border-bottom: 1px solid rgba(212, 175, 55, .16);
}
.pf-brand img {
  height: 38px; width: 38px; object-fit: contain; flex: 0 0 auto;
  background: #fff; border-radius: 9px; padding: 3px;
}
.pf-brand-txt { min-width: 0; }
.pf-brand-txt strong { display: block; font-size: 15px; letter-spacing: .1em; color: #f4e6c4; white-space: nowrap; }
.pf-brand-txt em { display: block; font-style: normal; font-size: 9px; letter-spacing: .16em; color: #a08a63; margin-top: 3px; }

.pf-nav { flex: 1; overflow-y: auto; padding: 12px 12px 16px; }
.pf-nav-group { font-size: 10px; letter-spacing: .18em; color: #7d6a4e; padding: 15px 10px 7px; }
.pf-nav-group:first-child { padding-top: 3px; }
.pf-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; font-size: 14px; color: #cbbba1;
  transition: background .18s, color .18s;
}
.pf-nav a i { font-style: normal; width: 17px; text-align: center; font-size: 12.5px; opacity: .75; }
.pf-nav a:hover { background: rgba(212, 175, 55, .09); color: #f0dfb8; }
.pf-nav a.on {
  background: linear-gradient(90deg, rgba(212, 175, 55, .24), rgba(212, 175, 55, .05));
  color: #f7e9c6; box-shadow: inset 3px 0 0 var(--p-gold-2);
}
.pf-nav a.on i { opacity: 1; }
.pf-nav-badge {
  margin-left: auto; background: var(--p-danger); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 9px;
  padding: 0 7px; line-height: 17px; min-width: 18px; text-align: center;
}

.pf-side-foot { border-top: 1px solid rgba(212, 175, 55, .16); padding: 14px 16px 16px; }
.pf-me { display: flex; align-items: center; gap: 10px; }
.pf-me-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #3a2c1e;
  background: linear-gradient(135deg, var(--p-gold-2), var(--p-gold));
}
.pf-me-txt { min-width: 0; flex: 1; }
.pf-me-txt strong { display: block; font-size: 13px; color: #f0e2c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-me-txt span { display: block; font-size: 11px; color: #8d7a5c; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-snap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pf-snap > div {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(212, 175, 55, .14);
  border-radius: 9px; padding: 8px 10px; min-width: 0;
}
.pf-snap span { display: block; font-size: 10.5px; color: #8d7a5c; white-space: nowrap; }
.pf-snap b { display: block; font-size: 14px; color: #f0dfb8; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pf-side-links { display: flex; gap: 8px; margin-top: 11px; }
.pf-side-links a {
  flex: 1; text-align: center; font-size: 12px; padding: 6px 0; border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, .25); color: #c3b193; transition: .18s;
}
.pf-side-links a:hover { background: rgba(212, 175, 55, .12); color: #f3e4c0; }

/* ==================== 主体 + 顶栏 ==================== */
.pf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 58px; padding: 0 26px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--p-line);
}
.pf-crumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--p-ink-3); min-width: 0; }
.pf-crumb i { font-style: normal; color: #cfc3ab; }
.pf-crumb strong { color: var(--p-ink); font-size: 13.5px; }
.pf-crumb em { font-style: normal; color: var(--p-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-top-right { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.pf-top-user { font-size: 12.5px; color: var(--p-ink-2); }
.pf-top-btn {
  font-size: 12.5px; padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--p-line); color: var(--p-ink-2); background: #fff; transition: .18s;
}
.pf-top-btn:hover { border-color: var(--p-gold-2); color: var(--p-gold-dark); background: var(--p-gold-bg); }

.pf-content { flex: 1; width: 100%; max-width: 1480px; padding: 26px 28px 40px; }

/* ==================== 内容区排版 ==================== */
/* 页面标题：各页自带 <h1>，这里统一压过（分销端专属，不影响官网） */
.pf-content > h1 {
  display: flex; align-items: center;
  font-size: 23px !important; line-height: 1.32 !important;
  margin: 0 0 7px !important; font-weight: 700; letter-spacing: .01em;
}
.pf-content > h1::before {
  content: ""; width: 4px; height: 19px; border-radius: 2px; flex: 0 0 auto;
  margin-right: 11px; background: linear-gradient(180deg, var(--p-gold-2), var(--p-gold));
}
.pf-content .page-sub { color: var(--p-ink-2); font-size: 13px; line-height: 1.85; margin: 0 0 22px; }
.pf-content .page-sub strong { color: var(--p-gold-dark); }
.pf-content h2 { font-size: 17px !important; line-height: 1.45; font-weight: 700; color: var(--p-ink); }
.pf-content h3 { color: var(--p-gold-dark); font-weight: 700; }
.pf-content .metric-note {
  font-size: 12.5px; line-height: 1.85; color: var(--p-ink-2);
  background: var(--p-gold-bg); border: 1px solid var(--p-line);
  border-radius: 10px; padding: 11px 15px; margin: 0 0 20px;
}
.pf-content .metric-note strong { color: var(--p-gold-dark); }

/* ==================== KPI 卡 ==================== */
/* !important：feedback/forecast 页在容器上写了内联 grid-template-columns，需压过它 */
.pf-content .kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)) !important;
  gap: 14px; margin-bottom: 24px;
}
.pf-content .kpi {
  position: relative; overflow: hidden; margin: 0;
  background: var(--p-card); border: 1px solid var(--p-line);
  border-radius: var(--p-radius); padding: 16px 18px 17px;
  box-shadow: var(--p-shadow); transition: transform .18s, border-color .18s;
}
.pf-content .kpi::after {
  content: ""; position: absolute; right: -28px; top: -28px; width: 78px; height: 78px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212, 175, 55, .2), rgba(212, 175, 55, 0) 70%);
}
.pf-content .kpi:hover { transform: translateY(-2px); border-color: #ddcfa8; }
.pf-content .kpi .label { font-size: 12.5px; color: var(--p-ink-2); letter-spacing: .02em; }
.pf-content .kpi .val {
  font-size: 25px; font-weight: 700; color: var(--p-gold-dark);
  margin-top: 7px; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.pf-content .kpi .val small { font-size: 12px; font-weight: 400; color: var(--p-ink-3); margin-left: 3px; }
.pf-content .kpi .val.metric-ok { color: var(--p-ok); }
.pf-content .kpi .val.metric-warn { color: var(--p-warn); }
.pf-content .kpi .val .tag { font-size: 13px; padding: 4px 14px; }

/* ==================== 表格 ==================== */
.pf-content .tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  overflow: hidden; box-shadow: var(--p-shadow); margin-bottom: 22px;
}
.pf-content .tbl th {
  background: linear-gradient(180deg, #faf6ec, #f6efe0);
  color: var(--p-gold-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  padding: 12px 15px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--p-line);
}
.pf-content .tbl td {
  padding: 12px 15px; font-size: 13.5px; color: var(--p-ink);
  border-bottom: 1px solid var(--p-line-2); vertical-align: middle; line-height: 1.65;
}
.pf-content .tbl tr:last-child td { border-bottom: none; }
.pf-content .tbl tr:hover td { background: #fdfaf3; }
.pf-content .tbl small { color: var(--p-ink-3); }
.pf-content .tbl a { color: var(--p-gold-dark); font-weight: 600; }
.pf-content .tbl a:hover { text-decoration: underline; }
.pf-content .tbl input[type=number],
.pf-content .tbl input[type=text] {
  width: 92px; padding: 7px 9px; font-size: 13px; font-family: inherit; color: var(--p-ink);
  border: 1px solid var(--p-line); border-radius: 8px; background: #fffdf8;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.pf-content .tbl input[type=number]:focus,
.pf-content .tbl input[type=text]:focus {
  outline: none; border-color: var(--p-gold-2); background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
}
.pf-content .row-sub { font-variant-numeric: tabular-nums; font-weight: 600; }
.pf-content .tbl .order-head th {
  background: linear-gradient(180deg, #f7edd6, #f3e6c8);
  border-bottom: 1px solid #eddcb8; font-size: 13px; letter-spacing: 0;
}
.pf-content .tbl .order-head th .tag { float: right; margin-left: 10px; }

/* ==================== 面板 ==================== */
.pf-content .panel {
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow); padding: 18px 20px 20px; margin-bottom: 20px;
}
.pf-content .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.pf-content .panel-head h2 {
  display: flex; align-items: center; margin: 0 !important; font-size: 15.5px !important;
}
.pf-content .panel-head h2::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px; flex: 0 0 auto;
  margin-right: 9px; background: linear-gradient(180deg, var(--p-gold-2), var(--p-gold));
}
.pf-content .panel-head .panel-more { font-size: 12.5px; color: var(--p-gold-dark); font-weight: 600; }
.pf-content .panel-head .panel-more:hover { text-decoration: underline; }
.pf-content .panel-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }

/* 空态 */
.pf-content .pf-empty {
  background: #fff; border: 1px dashed var(--p-line);
  border-radius: var(--p-radius); padding: 42px 20px; text-align: center;
  color: var(--p-ink-2); font-size: 13.5px; line-height: 1.9; margin-bottom: 20px;
}
.pf-content .pf-empty a { color: var(--p-gold-dark); font-weight: 600; }

/* ==================== 表单 ==================== */
.pf-content .form-card {
  max-width: none; margin: 0 0 24px; background: #fff;
  border: 1px solid var(--p-line); border-radius: 14px;
  padding: 22px 26px 24px; box-shadow: var(--p-shadow);
}
.pf-content .form-card h2 { text-align: left !important; margin: 0 0 18px !important; font-size: 16px !important; }
.pf-content .field { margin-bottom: 14px; }
.pf-content .field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--p-ink-2); margin-bottom: 6px; }
.pf-content .field input,
.pf-content .field select,
.pf-content .field textarea {
  width: 100%; padding: 9px 12px; font-size: 13.5px; font-family: inherit;
  color: var(--p-ink); background: #fffdf8;
  border: 1px solid var(--p-line); border-radius: 9px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.pf-content .field input:focus,
.pf-content .field select:focus,
.pf-content .field textarea:focus {
  outline: none; border-color: var(--p-gold-2); background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
}
.pf-content .field textarea { resize: vertical; line-height: 1.8; }
.pf-content .form-actions {
  display: flex; align-items: center; gap: 10px;
  text-align: left; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--p-line);
}
.pf-content .form-actions .btn { width: auto; }
.pf-content .form-tip { font-size: 12.5px; color: var(--p-ink-3); margin-top: 12px; line-height: 1.8; }
.pf-content .form-tip a { color: var(--p-gold-dark); font-weight: 600; }
/* 表单两列 / 三列 */
.pf-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.pf-form-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

/* ==================== 按钮 ==================== */
.pf-content .btn {
  display: inline-block; padding: 8px 20px; border-radius: 9px;
  font-size: 13.5px; line-height: 1.6; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s, color .16s;
}
.pf-content .btn-gold {
  background: linear-gradient(135deg, var(--p-gold-2), var(--p-gold));
  color: #fff; box-shadow: 0 5px 14px -8px rgba(184, 134, 11, .9);
}
.pf-content .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 9px 20px -9px rgba(184, 134, 11, .95); }
.pf-content .btn-line { background: #fff; border-color: var(--p-line); color: var(--p-ink-2); }
.pf-content .btn-line:hover { border-color: var(--p-gold-2); color: var(--p-gold-dark); background: var(--p-gold-bg); }

/* ==================== 标签 ==================== */
.pf-content .tag {
  display: inline-block; padding: 2.5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.75;
  background: #f4f1ea; color: var(--p-ink-2); border: 1px solid transparent;
}
.pf-content .tag-gold { background: #f7edd6; color: var(--p-gold-dark); border-color: #eddcb8; }
.pf-content .tag-ok { background: #e9f6ee; color: var(--p-ok); border-color: #c8e6d3; }
.pf-content .tag-warn { background: #fdf2e2; color: var(--p-warn); border-color: #f2ddba; }
.pf-content a.tag { cursor: pointer; transition: .16s; }
.pf-content a.tag:hover { border-color: var(--p-gold-2); transform: translateY(-1px); }

/* ==================== 提示条 ==================== */
.pf-content .msg-ok,
.pf-content .msg-err {
  position: relative; padding: 11px 16px 11px 40px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.75; margin-bottom: 18px; border: 1px solid transparent;
}
.pf-content .msg-ok::before,
.pf-content .msg-err::before { position: absolute; left: 15px; top: 10px; font-size: 14px; font-weight: 700; }
.pf-content .msg-ok { background: #eef9f2; border-color: #cbe8d6; color: #1c6b31; }
.pf-content .msg-ok::before { content: "\2713"; }
.pf-content .msg-err { background: #fdf0ee; border-color: #f3ccc6; color: #a83224; }
.pf-content .msg-err::before { content: "!"; }

/* ==================== AI 面板 ==================== */
.pf-content .ai-panel {
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid var(--p-line); border-radius: 14px;
  padding: 22px 24px 24px; margin-bottom: 24px; box-shadow: var(--p-shadow);
}
.pf-content .ai-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--p-gold-2), var(--p-gold), rgba(212, 175, 55, .1));
}
.pf-content .ai-panel h3 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 12px; font-size: 16.5px; color: var(--p-gold-dark);
}
.pf-content .ai-panel h3::before {
  content: "✦"; font-size: 14px; color: var(--p-gold-2);
}
.pf-content .ai-panel .ai-intro { font-size: 13px; color: var(--p-ink-2); line-height: 1.9; margin: 0 0 16px; }
.pf-content .ai-panel .ai-intro b { color: var(--p-ink); }
.pf-content .ai-answer {
  background: var(--p-gold-bg); border: 1px solid var(--p-line);
  border-left: 3px solid var(--p-gold-2);
  border-radius: 10px; padding: 15px 18px; margin-top: 16px;
  font-size: 13.5px; line-height: 1.95; white-space: pre-wrap; color: var(--p-ink);
}
.pf-content .ai-answer.ai-answer-error { background: #fdf0ee; border-color: #f3ccc6; border-left-color: var(--p-danger); color: #a83224; }
.pf-content .ai-badge {
  display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  margin-left: 2px; vertical-align: middle; font-weight: 600; border: 1px solid transparent;
}
.pf-content .ai-badge.real { background: #e9f6ee; color: var(--p-ok); border-color: #c8e6d3; }
.pf-content .ai-badge.fallback { background: #fdf2e2; color: var(--p-warn); border-color: #f2ddba; }
/* AI 加载中指示 */
.pf-content .ai-loading { display: flex; align-items: center; gap: 12px; color: var(--p-gold-dark); font-size: 13.5px; }
.pf-content .ai-spinner {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 3px solid rgba(212, 175, 55, .25); border-top-color: var(--p-gold);
  border-radius: 50%; animation: pfSpin .8s linear infinite;
}
@keyframes pfSpin { to { transform: rotate(360deg); } }

/* AI 选品结果卡（main.js 渲染，类名沿用 style.css 的 .ai-item） */
.pf-content .grid { display: grid; gap: 14px; }
.pf-content .grid-2 { grid-template-columns: repeat(2, 1fr); }
.pf-content .grid-3 { grid-template-columns: repeat(3, 1fr); }
.pf-content .card.ai-item {
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 17px 18px; display: flex; flex-direction: column;
  box-shadow: var(--p-shadow); transition: transform .18s, border-color .18s;
}
.pf-content .card.ai-item:hover { transform: translateY(-2px); border-color: #ddcfa8; }
.pf-content .ai-item .ai-item-head h3 { font-size: 15.5px; margin: 0; line-height: 1.5; color: var(--p-ink); }
.pf-content .ai-item .ai-item-meta { font-size: 12px; color: var(--p-gold-dark); margin: 8px 0 0; }
.pf-content .ai-item .ai-item-why {
  font-size: 12.5px; color: var(--p-ink-2); line-height: 1.85;
  margin: 9px 0 0; padding-left: 10px; border-left: 2px solid #eddcb8;
}
.pf-content .ai-item .ai-item-price { font-size: 13px; color: var(--p-ink-2); margin: 10px 0 0; }
.pf-content .ai-item .ai-item-price b { color: var(--p-gold-dark); font-size: 15px; }
.pf-content .ai-item .ai-item-qty {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--p-line);
  font-size: 12.5px; color: var(--p-ink-2);
}
.pf-content .ai-item .ai-item-qty input {
  width: 72px; padding: 6px 9px; border: 1px solid var(--p-line); border-radius: 8px;
  font-size: 13.5px; font-family: inherit; background: #fffdf8; color: var(--p-ink);
}
.pf-content .ai-item .ai-item-qty input:focus { outline: none; border-color: var(--p-gold-2); box-shadow: 0 0 0 3px rgba(212, 175, 55, .16); }
.pf-content .ai-item .ai-item-qty b { color: var(--p-gold-dark); }
.pf-content .ai-cart-bar {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #fffdf6, #f8f0dd);
  border: 1.5px solid #ecd9a8; border-radius: 12px; padding: 14px 18px; font-size: 13.5px;
}
.pf-content .ai-cart-bar b { color: var(--p-gold-dark); }
/* AI 带入的行高亮 */
.pf-content tr.row-ai td { background: #fffdf4; }

/* ==================== 邀请码卡 ==================== */
.pf-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pf-invite-code {
  flex: 0 0 auto; font-size: 26px; font-weight: 700; letter-spacing: .22em;
  color: var(--p-gold-dark); font-variant-numeric: tabular-nums;
  background: var(--p-gold-bg); border: 1px dashed #e3cf9f;
  border-radius: 12px; padding: 10px 20px 10px 24px;
}
.pf-invite-tip { flex: 1; min-width: 220px; font-size: 12.5px; line-height: 1.9; color: var(--p-ink-2); }
.pf-invite-tip b { color: var(--p-gold-dark); }

/* ==================== 分类筛选标签 ==================== */
.pf-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pf-cats .tag { padding: 5px 15px; font-size: 12.5px; background: #fff; border-color: var(--p-line); }

/* ==================== 订货底栏 ==================== */
.pf-cartbar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 8px; padding: 13px 18px;
  background: linear-gradient(135deg, #fffdf6, #f8f0dd);
  border: 1.5px solid #ecd9a8; border-radius: 12px;
  box-shadow: 0 -8px 26px -18px rgba(43, 33, 24, .8);
}
.pf-cartbar .pf-cart-sum { font-size: 14px; font-weight: 700; color: var(--p-gold-dark); font-variant-numeric: tabular-nums; }
.pf-cartbar .pf-cart-hint { font-size: 12px; color: var(--p-ink-3); }

/* ==================== 分页 ==================== */
.pf-content .pagination { text-align: center; margin: 22px 0; font-size: 13.5px; }
.pf-content .pagination a, .pf-content .pagination .cur {
  display: inline-block; min-width: 34px; padding: 6px 10px; margin: 0 3px;
  border: 1px solid var(--p-line); border-radius: 8px; background: #fff; color: var(--p-ink-2);
  transition: .16s;
}
.pf-content .pagination .cur { background: linear-gradient(135deg, var(--p-gold-2), var(--p-gold)); color: #fff; border-color: var(--p-gold); font-weight: 700; }
.pf-content .pagination a:hover { border-color: var(--p-gold-2); color: var(--p-gold-dark); background: var(--p-gold-bg); }

/* ==================== 内容区底栏 ==================== */
.pf-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 28px 22px; border-top: 1px solid var(--p-line);
  font-size: 12.5px; color: var(--p-ink-3);
}
.pf-foot a { color: var(--p-gold-dark); font-weight: 600; }
.pf-foot a:hover { text-decoration: underline; }

/* ==================== 登录 / 注册（访客模式，无侧栏） ==================== */
body.pf-body.pf-guest-body {
  margin: 0; min-height: 100vh; padding: 34px 18px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 560px at 10% -12%, rgba(212, 175, 55, .3), transparent 62%),
    radial-gradient(900px 500px at 108% 112%, rgba(212, 175, 55, .16), transparent 60%),
    linear-gradient(150deg, #241c14, #3a2c1f 52%, #2b2118);
}
.pf-guest { width: 100%; max-width: 560px; }
.pf-guest-brand {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 22px; text-align: left;
}
.pf-guest-logo { height: 52px; width: 52px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.pf-guest-brand strong { display: block; font-size: 17px; letter-spacing: .1em; color: #f4e6c4; }
.pf-guest-brand em { display: block; font-style: normal; font-size: 9.5px; letter-spacing: .18em; color: #a08a63; margin-top: 4px; }
.pf-guest .form-card {
  max-width: none; margin: 0; background: #fff;
  border: none; border-radius: 18px; padding: 32px 32px 26px;
  box-shadow: 0 34px 64px -32px rgba(0, 0, 0, .68);
}
.pf-guest .form-card h2 {
  text-align: center !important; margin: 0 0 22px !important;
  font-size: 19px !important; letter-spacing: .06em; color: var(--p-ink);
}
.pf-guest .field { margin-bottom: 15px; }
.pf-guest .field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--p-ink-2); margin-bottom: 6px; }
.pf-guest .field input,
.pf-guest .field select {
  width: 100%; padding: 11px 13px; font-size: 14px; font-family: inherit; color: var(--p-ink);
  background: #fffdf8; border: 1px solid var(--p-line); border-radius: 10px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.pf-guest .field input:focus,
.pf-guest .field select:focus {
  outline: none; border-color: var(--p-gold-2); background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}
.pf-guest .form-actions {
  display: block; margin-top: 22px; padding-top: 0; border-top: none; text-align: center;
}
.pf-guest .form-actions .btn {
  display: block; width: 100%; padding: 12px 0; border-radius: 10px;
  font-size: 15px; letter-spacing: .1em; color: #fff;
  background: linear-gradient(135deg, var(--p-gold-2), var(--p-gold));
  box-shadow: 0 10px 22px -12px rgba(184, 134, 11, .95);
  transition: transform .16s, box-shadow .16s;
}
.pf-guest .form-actions .btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(184, 134, 11, .95); }
.pf-guest .form-tip { font-size: 12.5px; color: var(--p-ink-3); text-align: center; margin-top: 14px; line-height: 1.8; }
.pf-guest .form-tip a { color: var(--p-gold-dark); font-weight: 600; }
.pf-guest .msg-ok,
.pf-guest .msg-err {
  position: relative; padding: 10px 14px 10px 38px; margin-bottom: 20px;
  border-radius: 10px; font-size: 13.5px; line-height: 1.7; border: 1px solid transparent;
}
.pf-guest .msg-ok { background: #eef9f2; border-color: #cbe8d6; color: #1c6b31; }
.pf-guest .msg-ok::before { content: "\2713"; position: absolute; left: 14px; top: 9px; font-weight: 700; }
.pf-guest .msg-err { background: #fdf0ee; border-color: #f3ccc6; color: #a83224; }
.pf-guest .msg-err::before { content: "!"; position: absolute; left: 15px; top: 9px; font-weight: 700; }
.pf-guest-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 0 6px; font-size: 12.5px; color: #a08a63;
}
.pf-guest-foot a { color: #e8d5a8; font-weight: 600; }
.pf-guest-foot a:hover { text-decoration: underline; }

/* ==================== 响应式 ==================== */
@media (max-width: 1180px) {
  .pf-content .panel-grid { grid-template-columns: 1fr; }
  .pf-form-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .platform-wrap.pf-shell { flex-direction: column; }
  .pf-side { flex: none; width: auto; height: auto; position: relative; }
  .pf-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; }
  .pf-nav-group { display: none; }
  .pf-nav a { white-space: nowrap; padding: 7px 12px; }
  .pf-nav a.on { box-shadow: inset 0 -2px 0 var(--p-gold-2); background: rgba(212, 175, 55, .16); }
  .pf-nav-badge { margin-left: 6px; }
  .pf-side-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 14px; }
  .pf-snap { margin-top: 0; }
  .pf-side-links { margin-top: 0; }
  .pf-top { padding: 0 16px; height: 52px; }
  .pf-top-user, .pf-crumb em { display: none; }
  .pf-content { padding: 18px 16px 34px; }
  .pf-foot { padding: 14px 16px 20px; }
  .pf-form-2, .pf-form-3 { grid-template-columns: 1fr; }
  .pf-content .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .pf-content .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .pf-content .kpi { padding: 13px 14px; }
  .pf-content .kpi .val { font-size: 21px; }
  .pf-content > h1 { font-size: 20px !important; }
  .pf-content .grid-2, .pf-content .grid-3 { grid-template-columns: 1fr; }
  .pf-guest .form-card { padding: 26px 20px 22px; }
}
@media print {
  .pf-side, .pf-top, .pf-cartbar, .pf-foot { display: none !important; }
  .pf-content { padding: 0; }
}
