/* ============================================================
   铜鼓中专电子商务演示平台 —— 补充样式
   （用户中心 / 商户中心 / 管理后台 / 交互组件）
   ============================================================ */

:root {
  --c-main: #e4393c;
  --c-orange: #ff6700;
  --c-blue: #3c76d2;
  --c-green: #1aad19;
  --c-line: #e8e8e8;
  --c-bg: #f5f5f5;
  --c-txt: #333;
  --c-mute: #999;
  --radius: 6px;
}

.muted { color: var(--c-mute); font-size: 13px; }
.big { font-size: 20px; font-weight: 700; }
.c-up, .c-down { font-weight: 700; }
.c-up { color: #e4393c; }     /* 中国习惯：涨=红 */
.c-down { color: #1aad19; }   /* 跌=绿 */
.new { color: #ff6700; font-size: 12px; margin-left: 4px; }
.add { color: var(--c-blue); cursor: pointer; }
.unavail { opacity: .45; filter: grayscale(1); }
.unread { font-weight: 700; }

/* ---------- 通用表单 ---------- */
.form-row { display: flex; align-items: flex-start; margin-bottom: 16px; }
.form-row > label:first-child {
  width: 120px; flex: none; padding-top: 8px;
  color: #555; font-size: 14px; text-align: right; padding-right: 14px;
}
.form-row input[type=text], .form-row input[type=password], .form-row input[type=number],
.form-row input[type=email], .form-row input:not([type]), .form-row select, .form-row textarea {
  flex: 1; min-width: 0; max-width: 480px;
  border: 1px solid #ddd; border-radius: var(--radius);
  padding: 8px 10px; font-size: 14px; color: var(--c-txt); background: #fff;
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--c-main); box-shadow: 0 0 0 2px rgba(228,57,60,.08);
}
.form-row-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.form-row-inline input, .form-row-inline select {
  border: 1px solid #ddd; border-radius: var(--radius); padding: 7px 10px; font-size: 14px;
}
.inline-form { display: inline-block; }
.checkbox { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #666; cursor: pointer; margin-right: 12px; }
.checkbox input { margin: 0; }
form .tip, .form-tip { color: var(--c-mute); font-size: 12px; margin-left: 8px; }

/* ---------- 登录 / 注册 ---------- */
.auth-page { background: linear-gradient(135deg, #fdf1f1 0%, #f6f8fc 100%); padding: 46px 12px 60px; min-height: 60vh; }
.auth-box {
  max-width: 400px; margin: 0 auto; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08); padding: 30px 30px 26px;
}
.auth-box h2 { margin: 0 0 6px; font-size: 21px; color: #222; }
.auth-tip { color: var(--c-mute); font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
.auth-box .form-row { display: block; margin-bottom: 14px; }
.auth-box .form-row > label:first-child { width: auto; text-align: left; padding: 0 0 6px; display: block; }
.auth-box .form-row input, .auth-box .form-row select { max-width: none; width: 100%; box-sizing: border-box; }
.auth-box .btn { width: 100%; padding: 11px; font-size: 16px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 13px; color: var(--c-mute); }
.auth-foot a { color: var(--c-blue); }

/* ---------- 文章 / 公告 ---------- */
.article-page { display: grid; grid-template-columns: 1fr 260px; gap: 20px; margin: 16px 0 40px; }
.article-main { background: #fff; border-radius: 8px; padding: 26px 30px; }
.article-title { font-size: 22px; margin: 0 0 10px; color: #222; line-height: 1.4; }
.article-meta { color: var(--c-mute); font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); margin-bottom: 18px; }
.article-content { font-size: 15px; line-height: 1.9; color: #444; word-break: break-word; }
.article-content img { max-width: 100%; height: auto; border-radius: 4px; }
.article-content h3 { font-size: 17px; margin: 20px 0 8px; }
.article-side { }
.side-box { background: #fff; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.side-box > h3, .side-box .side-hd { font-size: 15px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--c-line); color: #333; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 7px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: #555; }
.side-list a:hover { color: var(--c-main); }

/* ---------- 用户中心 / 商户中心 布局 ---------- */
.uc-main { min-width: 0; }
.uc-title { font-size: 19px; margin: 0 0 16px; color: #222; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.uc-title small { font-size: 13px; color: var(--c-mute); font-weight: 400; }
.uc-block { background: #fff; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.uc-block-hd { font-size: 15px; font-weight: 700; color: #333; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.uc-block-hd a { font-size: 13px; font-weight: 400; color: var(--c-blue); }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--c-line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a, .tabs button {
  padding: 9px 18px; font-size: 14px; color: #666; text-decoration: none;
  border: 0; background: none; cursor: pointer; position: relative; top: 2px;
  border-bottom: 2px solid transparent;
}
.tabs a.on, .tabs button.on { color: var(--c-main); font-weight: 700; border-bottom-color: var(--c-main); }
.tool-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tool-bar .spacer { flex: 1; }
.search-mini { display: flex; gap: 0; }
.search-mini input { border: 1px solid #ddd; border-right: 0; border-radius: 4px 0 0 4px; padding: 7px 10px; font-size: 13px; width: 180px; }
.search-mini button { border: 1px solid var(--c-main); background: var(--c-main); color: #fff; border-radius: 0 4px 4px 0; padding: 7px 16px; cursor: pointer; font-size: 13px; }

/* ---------- 数据卡片 ---------- */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dash-card, .kpi-card {
  background: #fff; border-radius: 8px; padding: 16px 18px; text-align: center;
  border: 1px solid #f0f0f0;
}
.dash-card b, .kpi-card b { display: block; font-size: 26px; color: var(--c-main); line-height: 1.3; font-weight: 700; }
.dash-card span, .kpi-card span { font-size: 13px; color: var(--c-mute); }
.dash-card a { display: block; margin-top: 6px; font-size: 12px; color: var(--c-blue); }

.mini-orders { }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; }
.mini-row .f1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 状态标签 ---------- */
.status, .status-on, .status-paid, .tag-hot, .tag-warn, .tag-danger, .tag-done, .tag-default {
  display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; line-height: 18px; white-space: nowrap;
}
.status { background: #f2f2f2; color: #666; }
.status-on, .tag-done { background: #eaf7ea; color: var(--c-green); }
.status-paid, .tag-warn { background: #fff4e5; color: #ff8f1f; }
.tag-hot, .tag-danger { background: #fdeced; color: var(--c-main); }
.tag-default { background: #f2f2f2; color: #888; }
.status-unpaid { background: #fff4e5; color: #ff8f1f; }
.status-shipped { background: #eaf1fd; color: var(--c-blue); }
.status-finished { background: #eaf7ea; color: var(--c-green); }
.status-cancelled, .status-refunded { background: #f2f2f2; color: #999; }
.status-refunding { background: #fdeced; color: var(--c-main); }
.status-pending { background: #fff4e5; color: #ff8f1f; }
.status-approved, .status-running { background: #eaf7ea; color: var(--c-green); }
.status-rejected { background: #fdeced; color: var(--c-main); }
.status-paused { background: #f2f2f2; color: #888; }
.star { color: #ff9900; letter-spacing: 1px; }

/* ---------- 购物车 ---------- */
.cart-shop-hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fafafa; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.cart-shop-hd a { color: #333; font-weight: 700; }
.ci-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; flex: none; }
.ci-name { flex: 1; min-width: 0; font-size: 14px; color: #333; line-height: 1.5; }
.ci-name a { color: #333; }
.ci-name a:hover { color: var(--c-main); }
.ci-flag { display: inline-block; font-size: 12px; color: var(--c-main); margin-top: 4px; }
.ci-price { width: 90px; text-align: center; color: var(--c-main); font-weight: 700; }
.ci-qty { width: 120px; text-align: center; }
.ci-sub { width: 100px; text-align: center; color: var(--c-main); font-weight: 700; }
.ci-del { width: 60px; text-align: center; }
.ci-del a, .ci-del button { color: var(--c-mute); font-size: 13px; background: none; border: 0; cursor: pointer; }
.ci-del a:hover, .ci-del button:hover { color: var(--c-main); }
.cart-bar-r { display: flex; align-items: center; gap: 16px; }
.qty-wrap, .qty-box { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.qty-wrap button, .qty-box button, .qty-minus, .qty-plus {
  width: 28px; height: 30px; border: 0; background: #fafafa; cursor: pointer; font-size: 15px; color: #666;
}
.qty-wrap input, .qty-box input {
  width: 46px; height: 30px; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee;
  text-align: center; font-size: 14px; -moz-appearance: textfield;
}
.qty-wrap input::-webkit-outer-spin-button, .qty-box input::-webkit-outer-spin-button,
.qty-wrap input::-webkit-inner-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 结算 ---------- */
.co-block { background: #fff; border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.co-hd { padding: 12px 18px; font-size: 15px; font-weight: 700; color: #333; border-bottom: 1px solid var(--c-line); background: #fafafa; }
.co-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px dashed #f0f0f0; }
.co-item:last-child { border-bottom: 0; }
.co-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; flex: none; }
.co-name { flex: 1; min-width: 0; font-size: 14px; color: #333; }
.co-price { width: 100px; text-align: right; color: #666; }
.co-sub { width: 100px; text-align: right; color: var(--c-main); font-weight: 700; }
.co-remark { padding: 12px 18px; }
.co-remark input, .co-remark textarea { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.co-foot { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 16px 20px; background: #fff; border-radius: 8px; }
.co-total { font-size: 15px; color: #666; }
.co-total b { font-size: 24px; color: var(--c-main); font-weight: 700; margin-left: 6px; }

.addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 14px 18px; }
.addr-item {
  border: 2px solid #eee; border-radius: 6px; padding: 12px 14px; cursor: pointer;
  font-size: 13px; line-height: 1.7; color: #555; position: relative; background: #fff;
}
.addr-item.on { border-color: var(--c-main); background: #fffafa; }
.addr-item b { color: #222; font-size: 14px; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.addr-card { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 16px; font-size: 13px; line-height: 1.8; color: #555; }
.addr-card b { font-size: 15px; color: #222; }
.addr-card-acts { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eee; display: flex; gap: 10px; }
.addr-card-acts button, .addr-card-acts a { background: none; border: 0; color: var(--c-blue); cursor: pointer; font-size: 13px; padding: 0; }
.addr-edit { background: #fff; border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.addr-form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.addr-form-row input, .addr-form-row select { border: 1px solid #ddd; border-radius: 4px; padding: 8px 10px; font-size: 13px; flex: 1; min-width: 140px; }

/* ---------- 支付 ---------- */
.pay-box { max-width: 620px; margin: 26px auto 50px; background: #fff; border-radius: 10px; padding: 28px 32px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.pay-order { font-size: 13px; color: var(--c-mute); line-height: 2; border-bottom: 1px dashed #eee; padding-bottom: 14px; margin-bottom: 18px; }
.pay-amount { text-align: center; font-size: 14px; color: #666; margin-bottom: 22px; }
.pay-amount b { display: block; font-size: 36px; color: var(--c-main); font-weight: 700; margin-top: 6px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.pay-m {
  border: 2px solid #eee; border-radius: 8px; padding: 14px; text-align: center;
  cursor: pointer; font-size: 14px; color: #444; transition: .15s;
}
.pay-m:hover { border-color: #ffd9d9; }
.pay-m.on { border-color: var(--c-main); background: #fffafa; color: var(--c-main); font-weight: 700; }
.pay-m i { display: block; font-size: 26px; margin-bottom: 6px; font-style: normal; }
.pay-actions { display: flex; gap: 12px; justify-content: center; }
.pay-actions .btn { min-width: 140px; padding: 11px 0; font-size: 15px; }
.pay-note { margin-top: 18px; padding: 12px 14px; background: #fff9e6; border: 1px solid #ffe9a8; border-radius: 6px; color: #a9750a; font-size: 13px; line-height: 1.7; }

/* ---------- 订单 ---------- */
.order-item, .od-card { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.order-hd, .od-line {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  background: #fafafa; border-bottom: 1px solid var(--c-line); font-size: 13px; color: #666; flex-wrap: wrap;
}
.order-hd .f1, .od-line .f1 { flex: 1; }
.order-hd a { color: #333; font-weight: 700; }
.oi-thumb { width: 66px; height: 66px; object-fit: cover; border-radius: 4px; flex: none; }
.oi-name { flex: 1; min-width: 0; font-size: 14px; color: #333; line-height: 1.5; }
.oi-name a { color: #333; }
.oi-price { width: 110px; text-align: right; color: #666; font-size: 13px; }
.oi-sub { width: 110px; text-align: right; color: var(--c-main); font-weight: 700; }
.order-ft { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--c-line); background: #fcfcfc; flex-wrap: wrap; }
.od-total { font-size: 14px; color: #666; }
.od-total b { color: var(--c-main); font-size: 19px; margin-left: 4px; }
.order-acts, .od-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.od-status { font-size: 15px; font-weight: 700; color: var(--c-main); }
.od-state { padding: 18px; background: #fff7f7; border-bottom: 1px solid #ffe0e0; }
.od-state b { font-size: 17px; color: var(--c-main); }
.od-state p { margin: 6px 0 0; color: #888; font-size: 13px; }
.od-sec-hd { padding: 12px 16px; font-weight: 700; font-size: 14px; color: #333; background: #fafafa; border-bottom: 1px solid var(--c-line); }

/* ---------- 评价 ---------- */
.review-list { }
.rv-edit { background: #fff; border-radius: 8px; padding: 18px; margin-bottom: 14px; }
.rv-edit-main { display: flex; gap: 12px; align-items: flex-start; }
.rv-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.rv-edit-name { font-size: 14px; color: #333; margin-bottom: 8px; }
.rv-rate { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; color: #666; }
.rv-rate .star-pick { color: #ddd; font-size: 22px; cursor: pointer; letter-spacing: 2px; }
.rv-rate .star-pick.on { color: #ff9900; }
.rv-text { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 6px; padding: 10px; font-size: 13px; min-height: 76px; resize: vertical; }
.rv-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rv-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid #eee; cursor: pointer; }
.rv-submit { margin-top: 16px; text-align: right; }
.rv-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #666; margin-bottom: 8px; }
.rv-head b { color: #333; }
.rv-content { font-size: 14px; color: #444; line-height: 1.8; }
.rv-reply { margin-top: 10px; padding: 10px 12px; background: #f7f9fc; border-left: 3px solid var(--c-blue); border-radius: 0 4px 4px 0; font-size: 13px; color: #555; line-height: 1.7; }
.rv-reply b { color: var(--c-blue); }
.rv-reply-box { margin-top: 10px; display: flex; gap: 8px; }
.rv-reply-box input, .rv-reply-box textarea { flex: 1; border: 1px solid #ddd; border-radius: 4px; padding: 7px 10px; font-size: 13px; }
.rv-acts { margin-top: 8px; display: flex; gap: 8px; justify-content: flex-end; }
.pend-hd { font-size: 14px; font-weight: 700; margin: 0 0 10px; color: #333; }
.pend-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; }
.pend-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.pend-imgs { display: flex; gap: 6px; }

/* ---------- 收藏 ---------- */
.fav-goods-wrap { }
.fav-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fav-shop { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 16px; display: flex; gap: 12px; align-items: center; }
.fs-logo { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; flex: none; }
.fs-name { flex: 1; min-width: 0; font-size: 15px; color: #333; font-weight: 700; }
.fs-name small { display: block; font-weight: 400; font-size: 12px; color: var(--c-mute); margin-top: 4px; }
.fav-cancel { background: none; border: 1px solid #ddd; border-radius: 4px; color: #888; font-size: 12px; padding: 4px 10px; cursor: pointer; }
.fav-cancel:hover { border-color: var(--c-main); color: var(--c-main); }

/* ---------- 消息 ---------- */
.msg-list { background: #fff; border-radius: 8px; overflow: hidden; }
.msg-item { padding: 14px 18px; border-bottom: 1px solid #f2f2f2; }
.msg-item:last-child { border-bottom: 0; }
.msg-item.unread { background: #fffbfb; }
.msg-title { font-size: 14px; color: #333; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.msg-content { font-size: 13px; color: #666; line-height: 1.7; }
.msg-time { font-size: 12px; color: #bbb; margin-top: 6px; }

/* ---------- 商户：申请 / 店铺 ---------- */
.seller-apply { max-width: 760px; margin: 20px auto 50px; background: #fff; border-radius: 10px; padding: 28px 32px; }
.seller-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.apply-info { background: #f7f9fc; border: 1px solid #e3ebf7; border-radius: 8px; padding: 16px 18px; font-size: 13px; color: #555; line-height: 1.9; margin-bottom: 20px; }
.apply-info b { color: var(--c-blue); }
.shop-layout { display: grid; grid-template-columns: 210px 1fr; gap: 18px; }
.promo-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

/* ---------- 发货 ---------- */
.ship-card { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.ship-hd { padding: 10px 16px; background: #fafafa; border-bottom: 1px solid var(--c-line); font-size: 13px; color: #666; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ship-form { padding: 14px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ship-form input, .ship-form select { border: 1px solid #ddd; border-radius: 4px; padding: 7px 10px; font-size: 13px; }

/* ---------- 钱包 ---------- */
.wallet-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.wallet-balance { background: linear-gradient(135deg, #ff7a45, #e4393c); color: #fff; border-radius: 10px; padding: 22px 24px; }
.wallet-balance span { font-size: 13px; opacity: .9; }
.wallet-balance b { display: block; font-size: 34px; font-weight: 700; margin-top: 6px; }
.wallet-recharge { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 18px 20px; }
.wallet-recharge h4 { margin: 0 0 12px; font-size: 15px; }

/* ---------- 分类树 ---------- */
.cat-tree { background: #fff; border-radius: 8px; padding: 8px 0; }
.cat-node { border-bottom: 1px solid #f5f5f5; }
.cat-node:last-child { border-bottom: 0; }
.cat-parent { display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 14px; font-weight: 700; color: #333; }
.cat-children { padding: 0 0 6px 34px; }
.cat-child { display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 0; font-size: 13px; color: #666; }
.cat-acts { margin-left: auto; display: flex; gap: 8px; }
.cat-acts button, .cat-acts a { background: none; border: 0; color: var(--c-blue); cursor: pointer; font-size: 12px; padding: 0; }
.cat-acts button:hover { color: var(--c-main); }
.cat-add { background: #fff; border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }

/* ---------- 上传 / 富文本 ---------- */
.upload-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.up-btn {
  display: inline-block; padding: 8px 18px; border: 1px dashed #c8c8c8; border-radius: 6px;
  background: #fafafa; color: #666; font-size: 13px; cursor: pointer; position: relative; overflow: hidden;
}
.up-btn:hover { border-color: var(--c-main); color: var(--c-main); }
.up-btn input[type=file] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.up-previews { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.up-img { width: 92px; height: 92px; object-fit: cover; border-radius: 4px; border: 1px solid #eee; }
.up-tip { font-size: 12px; color: var(--c-mute); line-height: 1.6; }
.existing-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ex-img { position: relative; text-align: center; }
.ex-img img { width: 92px; height: 92px; object-fit: cover; border-radius: 4px; border: 1px solid #eee; display: block; }
.ex-img .checkbox { font-size: 12px; margin: 4px 0 0; }

.rich-editor {
  min-height: 150px; border: 1px solid #ddd; border-radius: 6px 6px 0 0; padding: 12px 14px;
  font-size: 14px; line-height: 1.8; color: #444; background: #fff; overflow-y: auto; max-height: 460px;
}
.rich-editor:focus { outline: none; border-color: var(--c-main); }
.rich-editor img { max-width: 100%; height: auto; }
.rich-editor:empty:before { content: attr(data-ph); color: #bbb; }
.editor-tools {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 7px 10px;
  border: 1px solid #ddd; border-top: 0; border-radius: 0 0 6px 6px; background: #fafafa; margin-bottom: 14px;
}
.editor-tools button {
  border: 1px solid #ddd; background: #fff; border-radius: 4px; padding: 4px 10px;
  font-size: 12px; color: #555; cursor: pointer;
}
.editor-tools button:hover { border-color: var(--c-main); color: var(--c-main); }

/* ---------- 媒体库 ---------- */
.media-meta { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12px; flex-wrap: wrap; }

/* ---------- 管理后台补充 ---------- */
.adm-wrap { padding: 4px 0 30px; }
.adm-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.adm-hd h2 { margin: 0; font-size: 19px; color: #222; }
.adm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.td-goods { display: flex; align-items: center; gap: 8px; }
.td-goods img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; }
.td-goods span { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.td-acts button, .td-acts a { background: none; border: 0; padding: 0; color: var(--c-blue); font-size: 12px; cursor: pointer; }
.td-acts button:hover, .td-acts a:hover { color: var(--c-main); }

/* ---------- 提示条 ---------- */
.flash { transition: opacity .4s; }
.flash-success { background: #eaf7ea; border: 1px solid #b9e6b9; color: #1a7f1a; }
.flash-error, .flash-err { background: #fdeced; border: 1px solid #f6c4c6; color: #c8383b; }
.flash-warn { background: #fff8e6; border: 1px solid #ffe3a3; color: #a9750a; }
.flash-info { background: #eaf1fd; border: 1px solid #c2d6f7; color: #2f5fae; }

/* ---------- Toast ---------- */
.toast-box { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: 14px; max-width: 78vw; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: toastIn .25s ease; transition: opacity .35s, transform .35s;
}
.toast.out { opacity: 0; transform: translateY(-10px); }
.toast-err { background: rgba(200,45,48,.92); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- 灯箱 ---------- */
.img-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 10000;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.img-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 4px; }
.lb-close { position: absolute; right: 22px; top: 14px; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 18px; bottom: 96px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.4); color: #fff; text-align: center; line-height: 42px; font-size: 20px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: .2s; z-index: 900;
}
.back-top.on { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--c-main); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .article-page { grid-template-columns: 1fr; }
  .article-main { padding: 18px 16px; }
  .article-title { font-size: 18px; }
  .seller-cols, .adm-cols, .wallet-top { grid-template-columns: 1fr; }
  .shop-layout, .promo-layout { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-card b, .kpi-card b { font-size: 21px; }

  .form-row { display: block; }
  .form-row > label:first-child { width: auto; text-align: left; padding: 0 0 6px; display: block; }
  .form-row input, .form-row select, .form-row textarea { max-width: none; width: 100%; box-sizing: border-box; }

  .ci-price, .oi-price { display: none; }
  .ci-qty { width: auto; }
  .ci-sub, .oi-sub { width: 78px; font-size: 13px; }
  .ci-del { width: 40px; }
  .ci-thumb, .oi-thumb, .co-thumb { width: 56px; height: 56px; }
  .co-price { display: none; }
  .co-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .co-foot .btn { width: 100%; }

  .pay-box { padding: 20px 16px; margin: 14px 10px 40px; }
  .pay-amount b { font-size: 28px; }
  .pay-actions { flex-direction: column; }
  .pay-actions .btn { width: 100%; }

  .addr-list, .addr-grid, .fav-shops { grid-template-columns: 1fr; }
  .order-ft { justify-content: space-between; }
  .search-mini input { width: 130px; }
  .tabs { overflow-x: auto; white-space: nowrap; }
  .tabs a, .tabs button { padding: 9px 12px; font-size: 13px; }
  .td-goods span { max-width: 130px; }
  .back-top { bottom: 118px; right: 12px; }
  .toast-box { top: 60px; }
}

@media (max-width: 520px) {
  .dash-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-card, .kpi-card { padding: 12px 8px; }
  .uc-block { padding: 12px 12px; }
  .auth-box { padding: 22px 18px; }
}
