/* ============ qiaozi商城 用户端样式 ============ */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; background:#f5f5f5; color:#333; font-size:14px; }
a { color:#333; text-decoration:none; }
img { border:0; vertical-align:middle; }
ul,ol { list-style:none; }
input,button,select,textarea { font-family:inherit; outline:none; }
button { cursor:pointer; }

.container { max-width:1200px; margin:0 auto; padding:0 10px; }

/* 顶部导航 */
.topbar { background:#333; color:#bbb; font-size:12px; }
.topbar .container { display:flex; justify-content:space-between; height:34px; line-height:34px; }
.topbar a { color:#bbb; margin-left:15px; }
.topbar a:hover { color:var(--lg-c2, #ff5000); }

/* 头部 */
.header { background:#fff; border-bottom:1px solid #eee; }
.header-main { display:flex; align-items:center; padding:18px 0; }
.logo { font-size:26px; font-weight:bold; color:var(--lg-c2, #ff5000); margin-right:40px; }
.logo span { font-size:13px; color:#999; font-weight:normal; margin-left:6px; }
.search-box { flex:1; max-width:520px; display:flex; }
.search-box input { flex:1; height:38px; border:2px solid var(--lg-c2, #ff5000); border-right:0; padding:0 12px; font-size:14px; border-radius:4px 0 0 4px; }
.search-box button { width:90px; height:38px; background:var(--lg-c2, #ff5000); color:#fff; border:0; font-size:14px; border-radius:0 4px 4px 0; }
.header-right { margin-left:auto; }
.header-right a { display:inline-block; margin-left:20px; color:#666; font-size:13px; position:relative; }
.header-right .cart-badge { position:absolute; top:-6px; right:-14px; background:var(--lg-c2, #ff5000); color:#fff; border-radius:8px; font-size:11px; min-width:16px; height:16px; line-height:16px; text-align:center; padding:0 4px; }

/* 导航栏 */
.nav-bar { background:#fff; border-bottom:1px solid #eee; }
.nav-list { display:flex; }
.nav-list li a { display:block; padding:0 18px; height:42px; line-height:42px; font-size:15px; }
.nav-list li.active a, .nav-list li a:hover { color:var(--lg-c2, #ff5000); font-weight:bold; }

/* 公告 */
.notice-bar { background:#fff8f0; color:#ff7000; font-size:12px; padding:6px 0; border-bottom:1px solid #ffe8d0; overflow:hidden; white-space:nowrap; }

/* 轮播 */
.banner-wrap { position:relative; overflow:hidden; border-radius:6px; }
.banner-wrap .banner-imgs { display:flex; transition:transform .4s; }
.banner-wrap .banner-imgs a { flex:0 0 100%; }
.banner-wrap .banner-imgs img { width:100%; height:320px; object-fit:cover; display:block; }
.banner-dots { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); display:flex; }
.banner-dots span { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.6); margin:0 4px; cursor:pointer; }
.banner-dots span.on { background:var(--lg-c2, #ff5000); }

/* 首页布局 */
.home-cate { display:flex; background:#fff; border-radius:6px; padding:15px 0; margin:10px 0; }
.home-cate a { flex:1; text-align:center; color:#666; font-size:13px; }
.home-cate a:hover { color:var(--lg-c2, #ff5000); }
.home-cate .cate-icon { display:block; font-size:26px; margin-bottom:4px; }

.section { margin-top:15px; }
.section-title { display:flex; align-items:center; margin-bottom:12px; }
.section-title h2 { font-size:18px; border-left:4px solid var(--lg-c2, #ff5000); padding-left:10px; }
.section-title a { margin-left:auto; font-size:12px; color:#999; }

/* 商品卡片 */
.goods-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.goods-card { background:#fff; border-radius:6px; overflow:hidden; transition:box-shadow .2s; }
.goods-card:hover { box-shadow:0 4px 14px rgba(0,0,0,.1); }
.goods-card .g-img { width:100%; height:260px; object-fit:cover; display:block; background:#f7f7f7; }
.goods-card .g-info { padding:10px 12px 14px; }
.goods-card .g-name { font-size:14px; height:40px; line-height:20px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.goods-card .g-price { margin-top:8px; color:var(--lg-c2, #ff5000); font-size:18px; font-weight:bold; }
.goods-card .g-price i { font-style:normal; font-size:12px; }
.goods-card .g-meta { margin-top:4px; color:#999; font-size:12px; display:flex; justify-content:space-between; }
.goods-card .g-sales { color:#999; }

/* 按钮 */
.btn { display:inline-block; padding:8px 22px; border-radius:4px; font-size:14px; border:0; }
.btn-primary { background:var(--lg-c2, #ff5000); color:#fff; }
.btn-danger { background:#e1251b; color:#fff; }
.btn-default { background:#fff; color:#333; border:1px solid #ddd; }
.btn-sm { padding:4px 12px; font-size:12px; }
.btn-lg { padding:12px 40px; font-size:16px; }
.btn-block { display:block; width:100%; text-align:center; }
.btn[disabled] { opacity:.5; cursor:not-allowed; }

/* 面包屑 */
.crumb { padding:10px 0; font-size:13px; color:#666; }
.crumb a { color:#666; }
.crumb a:hover { color:var(--lg-c2, #ff5000); }
.crumb .sep { margin:0 6px; color:#ccc; }

/* 详情页 */
.detail-wrap { background:#fff; border-radius:6px; padding:20px; display:flex; }
.detail-left { width:420px; }
/* 主图左右滑动画廊 */
.gallery{ position:relative; width:420px; overflow:hidden; border-radius:4px; background:#f7f7f7; -webkit-user-select:none; user-select:none; touch-action:pan-y; }
.g-track{ display:flex; transition:transform .35s ease; will-change:transform; }
.g-slide{ flex:0 0 100%; width:100%; height:420px; object-fit:cover; display:block; pointer-events:none; }
.g-arrow{ position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:34px; height:46px; display:flex; align-items:center; justify-content:center; background:rgba(17,24,39,.28); color:#fff; font-size:26px; text-decoration:none; border-radius:6px; opacity:0; transition:opacity .2s; }
.gallery:hover .g-arrow{ opacity:1; }
.g-arrow:hover{ background:rgba(17,24,39,.5); }
.g-prev{ left:10px; } .g-next{ right:10px; }
.g-dots{ position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:5px; z-index:2; }
.g-dots i{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); display:block; transition:all .25s; }
.g-dots i.on{ width:18px; border-radius:4px; background:#fff; }
.g-count{ position:absolute; right:10px; bottom:10px; z-index:2; background:rgba(17,24,39,.32); color:#fff; font-size:11px; padding:2px 9px; border-radius:10px; line-height:1.6; }
.detail-left .thumb-imgs { display:none; }
.detail-right { flex:1; padding-left:30px; }
.detail-right h1 { font-size:20px; line-height:1.4; }
.detail-sub { color:#999; font-size:13px; margin:8px 0; }
.price-box { background:#fff8f6; padding:14px; border-radius:4px; margin:14px 0; }
.price-box .now { color:var(--lg-c2, #ff5000); font-size:26px; font-weight:bold; }
.price-box .now i { font-style:normal; font-size:15px; }
.price-box .market { color:#999; text-decoration:line-through; margin-left:12px; font-size:13px; }
.price-box .sales { color:#999; font-size:13px; margin-left:20px; }
.sku-row { display:flex; align-items:center; margin:14px 0; }
.sku-row .label { width:70px; color:#999; }
.sku-item { display:inline-block; padding:6px 16px; border:1px solid #ddd; border-radius:4px; margin:0 8px 8px 0; cursor:pointer; }
.sku-item.on { border-color:var(--lg-c2, #ff5000); color:var(--lg-c2, #ff5000); }
.sku-item.disabled { color:#ccc; cursor:not-allowed; }
.num-box { display:flex; align-items:center; }
.num-box button { width:30px; height:30px; border:1px solid #ddd; background:#fff; font-size:16px; }
.num-box input { width:48px; height:30px; border:1px solid #ddd; border-left:0; border-right:0; text-align:center; }
.detail-btns { margin-top:22px; display:flex; gap:14px; }
.fav-btn { display:inline-block; margin-left:14px; color:#999; line-height:38px; }

/* 商品详情区域 */
.detail-content { background:#fff; border-radius:6px; margin-top:15px; padding:20px; }
.detail-content h3 { font-size:16px; border-left:4px solid var(--lg-c2, #ff5000); padding-left:10px; margin-bottom:14px; }
.detail-html { line-height:1.8; }
.detail-html img { max-width:100%; }

/* 评价 */
.comment-item { border-bottom:1px dashed #eee; padding:14px 0; }
.comment-item .c-user { color:#666; font-size:13px; }
.comment-item .c-score { color:#ffb400; margin:6px 0; }
.comment-item .c-content { color:#333; line-height:1.6; }
.comment-item .c-time { color:#bbb; font-size:12px; margin-top:6px; }

/* 通用页面容器 */
.page-box { background:#fff; border-radius:6px; padding:18px; }
.page-title { font-size:16px; font-weight:bold; border-left:4px solid var(--lg-c2, #ff5000); padding-left:10px; margin-bottom:16px; }

/* 商品列表页 */
.filter-bar { background:#fff; padding:14px; border-radius:6px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.filter-bar .f-item { padding:6px 14px; border-radius:16px; font-size:13px; color:#666; background:#f5f5f5; }
.filter-bar .f-item.on { background:var(--lg-c2, #ff5000); color:#fff; }
.filter-bar .cat-link { font-size:13px; color:#666; }
.filter-bar .cat-link.on { color:var(--lg-c2, #ff5000); font-weight:bold; }

/* 表格 */
table.list-table { width:100%; background:#fff; border-collapse:collapse; }
table.list-table th, table.list-table td { border-bottom:1px solid #f0f0f0; padding:12px 8px; text-align:left; font-size:13px; }
table.list-table th { background:#fafafa; color:#666; font-weight:normal; }

/* 提示框 */
.tip { padding:40px; text-align:center; color:#999; background:#fff; border-radius:6px; }
.tip .tip-icon { font-size:50px; display:block; margin-bottom:10px; }

/* 会员中心布局 */
.member-layout { display:flex; gap:15px; margin-top:12px; }
.member-side { width:200px; background:#fff; border-radius:6px; padding:10px 0; align-self:flex-start; }
.member-side a { display:block; padding:12px 20px; color:#666; }
.member-side a:hover, .member-side a.on { color:var(--lg-c2, #ff5000); background:#fff8f6; border-left:3px solid var(--lg-c2, #ff5000); }
.member-main { flex:1; }

/* 订单卡片 */
.order-card { background:#fff; border-radius:6px; margin-bottom:12px; }
.order-card .oc-head { display:flex; justify-content:space-between; padding:10px 14px; border-bottom:1px solid #f5f5f5; font-size:13px; color:#666; }
.order-card .oc-head .st { color:var(--lg-c2, #ff5000); }
.order-card .oc-item { display:flex; padding:14px; align-items:center; border-bottom:1px solid #f8f8f8; }
.order-card .oc-item img { width:70px; height:70px; border-radius:4px; margin-right:12px; object-fit:cover; }
.order-card .oc-item .g-name { font-size:14px; }
.order-card .oc-item .g-sku { color:#999; font-size:12px; margin-top:4px; }
.order-card .oc-item .g-price { margin-left:auto; text-align:right; }
.order-card .oc-item .g-price .p1 { color:var(--lg-c2, #ff5000); font-weight:bold; }
.order-card .oc-item .g-price .p2 { color:#999; font-size:12px; }
.order-card .oc-foot { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; font-size:13px; }
.order-card .oc-actions button { margin-left:10px; }

/* 地址卡片 */
.addr-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.addr-card { background:#fff; border-radius:6px; padding:16px; border:1px solid #eee; position:relative; }
.addr-card .a-name { font-weight:bold; }
.addr-card .a-phone { color:#999; margin-left:10px; }
.addr-card .a-detail { margin-top:8px; color:#555; line-height:1.5; }
.addr-card .a-tag { position:absolute; top:12px; right:12px; background:var(--lg-c2, #ff5000); color:#fff; font-size:11px; padding:2px 6px; border-radius:3px; }
.addr-card .a-actions { margin-top:12px; font-size:13px; }
.addr-card .a-actions a { margin-right:12px; color:#666; }
.addr-card .a-actions a:hover { color:var(--lg-c2, #ff5000); }
.addr-new { display:flex; align-items:center; justify-content:center; border:1px dashed #ccc; border-radius:6px; min-height:120px; color:#999; cursor:pointer; background:#fff; }
.addr-new:hover { color:var(--lg-c2, #ff5000); border-color:var(--lg-c2, #ff5000); }

/* 模态 */
.modal-mask { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:1000; }
.modal-mask.show { display:flex; align-items:center; justify-content:center; }
.modal { background:#fff; border-radius:8px; width:440px; max-width:92%; padding:22px; }
.modal h3 { font-size:16px; margin-bottom:16px; }
.modal .form-row { margin-bottom:14px; }
.modal .close-x { float:right; cursor:pointer; color:#999; font-size:20px; }

/* 表单 */
.form-row { margin-bottom:16px; }
.form-row label { display:block; margin-bottom:6px; color:#555; font-size:13px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=tel], .form-row input[type=number], .form-row input[type=email], .form-row select, .form-row textarea {
  width:100%; height:38px; border:1px solid #ddd; border-radius:4px; padding:0 12px; font-size:14px;
}
.form-row textarea { height:auto; padding:10px 12px; }
.form-inline { display:flex; gap:10px; }
.form-inline .form-row { flex:1; }
.login-wrap { max-width:420px; margin:60px auto; background:#fff; border-radius:8px; padding:34px; }
.login-wrap h2 { text-align:center; margin-bottom:24px; }
.link-center { text-align:center; margin-top:14px; font-size:13px; color:#999; }
.link-center a { color:var(--lg-c2, #ff5000); }

/* 结算页 */
.checkout-box { background:#fff; border-radius:6px; padding:18px; margin-bottom:12px; }
.checkout-box h3 { font-size:15px; margin-bottom:12px; }
.checkout-item { display:flex; align-items:center; padding:10px 0; border-bottom:1px dashed #f0f0f0; }
.checkout-item img { width:60px; height:60px; object-fit:cover; margin-right:12px; border-radius:4px; }
.checkout-item .g-name { font-size:14px; }
.checkout-item .g-price { margin-left:auto; text-align:right; }
.summary-bar { background:#fff; border-radius:6px; padding:16px 20px; display:flex; align-items:center; justify-content:flex-end; margin-top:12px; }
.summary-bar .total { color:var(--lg-c2, #ff5000); font-size:22px; font-weight:bold; margin:0 18px; }
.coupon-opt { display:flex; align-items:center; padding:8px 0; }
.coupon-opt select { height:34px; border:1px solid #ddd; border-radius:4px; padding:0 8px; }

/* 地址选择 */
.addr-select { display:flex; flex-wrap:wrap; gap:10px; }
.addr-option { border:1px solid #eee; border-radius:6px; padding:10px 14px; cursor:pointer; width:240px; }
.addr-option.on { border-color:var(--lg-c2, #ff5000); }
.addr-option .t { font-weight:bold; }
.addr-option .p { color:#999; font-size:12px; margin-top:4px; }

/* 空状态 */
.empty-box { text-align:center; padding:60px 0; color:#bbb; }
.empty-box .icon { font-size:56px; display:block; margin-bottom:14px; }

/* 评价输入区(桌面缩进对齐左侧图片) */
.comment-meta { padding:10px 0 16px 84px; }

/* 后台布局 */
.admin-body { display:flex; min-height:100vh; background:#f0f2f5; }
.admin-side { width:210px; background:#001529; color:#fff; flex-shrink:0; min-height:100vh; }
.admin-side .logo { color:#fff; padding:18px 20px; font-size:17px; font-weight:bold; background:rgba(255,255,255,.06); margin:0; }
.admin-side .menu-group { padding:4px 0; }
.admin-side .menu-group + .menu-group { border-top:1px solid rgba(255,255,255,.05); }
/* 一级菜单标题(可折叠) */
.admin-side .mg-title {
  display:flex; align-items:center; cursor:pointer;
  padding:11px 18px; color:#c6d3e0; font-size:13px;
  transition:background .2s, color .2s;
}
.admin-side .mg-title:hover { background:rgba(255,255,255,.07); color:#fff; }
.admin-side .mg-title .mg-title-i { margin-right:8px; font-size:15px; display:inline-flex; }
.admin-side .mg-title .mg-title-t { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-side .mg-title .mg-arrow { margin-left:6px; font-size:14px; transition:transform .25s; flex:none; }
.admin-side .menu-group.open .mg-title .mg-arrow { transform:rotate(180deg); }
/* 二级子菜单 */
.admin-side .mg-body { display:none; }
.admin-side .menu-group.open .mg-body { display:block; }
.admin-side .mg-body a {
  display:block; position:relative; padding:9px 16px 9px 46px;
  color:#93a5b8; font-size:13px;
  transition:background .2s, color .2s;
}
.admin-side .mg-body a:before {
  content:''; position:absolute; left:26px; top:50%; transform:translateY(-50%);
  width:5px; height:5px; border-radius:50%; background:#5b6f84;
  transition:background .2s;
}
.admin-side .mg-body a:hover, .admin-side .mg-body a.on { color:#fff; background:var(--lg-c2, #ff5000); }
.admin-side .mg-body a.on:before { background:#fff; }
/* 无子菜单的单条链接(控制台等) */
.admin-side .menu-link {
  display:flex; align-items:center; gap:8px;
  padding:11px 18px; color:#c6d3e0; font-size:13px;
  transition:background .2s, color .2s;
}
.admin-side .menu-link i[class^="ri-"]{ font-size:15px; }
.admin-side .menu-link:hover, .admin-side .menu-link.on { color:#fff; background:var(--lg-c2, #ff5000); }
.admin-main { flex:1; padding:0; }
.admin-top { background:#fff; height:52px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.admin-top .admin-user { font-size:13px; color:#666; }
.admin-top .admin-user a { margin-left:14px; color:var(--lg-c2, #ff5000); }
.admin-content { padding:18px; }

/* ============ 后台移动端适配 ============ */
.admin-menu-btn{ display:none; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid #e5e6eb; background:#fff; border-radius:6px; color:#333; font-size:20px; cursor:pointer; padding:0; flex:none; }
.admin-menu-btn:active{ background:#f5f6f8; }
.admin-top-l{ display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.admin-top-l span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-mask{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1200; }
.admin-side-head{ display:flex; align-items:center; }
.admin-side-close{ display:none; }
@media (max-width:768px){
  .admin-body{ position:relative; }
  .admin-menu-btn{ display:flex; }
  .admin-mask.show{ display:block; }
  .admin-side{
    position:fixed; left:0; top:0; bottom:0; z-index:1201;
    width:230px; max-width:82%;
    transform:translateX(-105%); transition:transform .28s ease;
    overflow-y:auto; -webkit-overflow-scrolling:touch; min-height:0;
  }
  .admin-side.open{ transform:translateX(0); box-shadow:0 0 24px rgba(0,0,0,.18); }
  .admin-side-head{ justify-content:space-between; padding-right:10px; }
  .admin-side-close{ display:flex; align-items:center; justify-content:center; width:34px; height:34px; color:#8ba0b8; font-size:20px; cursor:pointer; border-radius:6px; }
  .admin-side-close:active{ background:rgba(255,255,255,.12); color:#fff; }
  .admin-main{ min-width:0; }
  .admin-top{ padding:0 10px; }
  .admin-top .admin-user{ font-size:12px; display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:2px 6px; }
  .admin-top .admin-user a{ margin-left:0; }
  .admin-content{ padding:12px; }
  .panel{ padding:12px; }
  .admin-content > .flex{ flex-wrap:wrap; }
  .admin-content > .flex > .panel{ flex:1 1 100% !important; width:100%; }
  .admin-content .stat-cards{ grid-template-columns:repeat(2,1fr) !important; gap:10px; }
  .admin-content .form-inline{ flex-direction:column; align-items:stretch; gap:0; }
  .admin-content .form-inline .form-row{ width:100%; }
  .toolbar form.flex{ flex-wrap:wrap; }
  .toolbar input[type=text], .toolbar input[type=date], .toolbar select{ max-width:100%; }
}

/* 后台卡片与表格 */
.panel { background:#fff; border-radius:6px; padding:16px; margin-bottom:16px; }
.panel-title { font-size:15px; font-weight:bold; margin-bottom:14px; }
.stat-cards { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.stat-card { background:#fff; border-radius:6px; padding:16px; }
.stat-card .num { font-size:22px; font-weight:bold; color:var(--lg-c2, #ff5000); margin-top:6px; }
.stat-card .label { color:#999; font-size:12px; }
.stat-card.blue .num { color:#2f6bff; }
.stat-card.green .num { color:#00b578; }
.stat-card.orange .num { color:#ff8f1f; }
.stat-card.purple .num { color:#7b5cff; }
.table-wrap { overflow-x:auto; }
.table-wrap table { width:100%; border-collapse:collapse; background:#fff; }
.table-wrap th, .table-wrap td { border-bottom:1px solid #f0f0f0; padding:10px 12px; font-size:13px; text-align:left; white-space:nowrap; }
.table-wrap th { background:#fafafa; color:#666; }
.table-wrap img.t-img { width:46px; height:46px; object-fit:cover; border-radius:4px; }
.toolbar { display:flex; gap:10px; margin-bottom:14px; align-items:center; flex-wrap:wrap; }
.toolbar input[type=text], .toolbar select { height:32px; border:1px solid #ddd; border-radius:4px; padding:0 10px; }
.pager { display:flex; gap:6px; margin-top:14px; align-items:center; }
.pager a, .pager span { padding:5px 12px; border:1px solid #ddd; background:#fff; border-radius:4px; font-size:13px; color:#666; }
.pager a.on { background:var(--lg-c2, #ff5000); color:#fff; border-color:var(--lg-c2, #ff5000); }

/* 标签 */
.tag { display:inline-block; padding:2px 10px; border-radius:3px; font-size:12px; }
.tag-green { background:#e8f8f0; color:#00b578; }
.tag-red { background:#fdeeee; color:#e1251b; }
.tag-orange { background:#fff5e8; color:#ff8f1f; }
.tag-blue { background:#eaf3ff; color:#2f6bff; }
.tag-gray { background:#f2f2f2; color:#999; }

/* 文本工具 */
.text-red { color:#e1251b; }
.text-orange { color:var(--lg-c2, #ff5000); }
.text-gray { color:#999; }
.text-green { color:#00b578; }
.mt10 { margin-top:10px; }
.mt20 { margin-top:20px; }
.mb10 { margin-bottom:10px; }
.mb20 { margin-bottom:20px; }
.flex { display:flex; align-items:center; }
.flex-between { display:flex; justify-content:space-between; align-items:center; }
.text-right { text-align:right; }

/* ============ 优惠券卡 ============ */
.coupon-card { display:flex; background:#fff; border-radius:6px; overflow:hidden; margin-bottom:10px; border:1px solid #f0f0f0; }
.coupon-card .cc-left { width:150px; background:var(--lg-grad, linear-gradient(135deg,#ff5000,#ff8f1f)); color:#fff; text-align:center; padding:16px 6px; }
.coupon-card .cc-left .amt { font-size:26px; font-weight:bold; }
.coupon-card .cc-left .cond { font-size:12px; }
.coupon-card .cc-mid { flex:1; padding:14px; }
.coupon-card .cc-mid .name { font-weight:bold; }
.coupon-card .cc-mid .time { color:#999; font-size:12px; margin-top:6px; }
.coupon-card .cc-right { width:110px; display:flex; align-items:center; justify-content:center; }
.coupon-card.disabled .cc-left { background:#bbb; }

/* 领券中心(首页)小号优惠券卡 */
.coupon-sm-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:8px; }
.coupon-sm-grid .coupon-card{ margin-bottom:0; }
.coupon-sm-grid .coupon-card .cc-left{ width:80px; padding:10px 4px; }
.coupon-sm-grid .coupon-card .cc-left .amt{ font-size:18px; }
.coupon-sm-grid .coupon-card .cc-left .cond{ font-size:10px; margin-top:2px; }
.coupon-sm-grid .coupon-card .cc-mid{ padding:8px 10px; min-width:0; }
.coupon-sm-grid .coupon-card .cc-mid .name{ font-size:12px; }
.coupon-sm-grid .coupon-card .cc-mid .time{ font-size:10px; margin-top:4px; }
.coupon-sm-grid .coupon-card .cc-right{ width:64px; }
.coupon-sm-grid .coupon-card .cc-right .btn{ padding:3px 6px; font-size:11px; border-radius:3px; }
@media (max-width:600px){
  .coupon-sm-grid{ grid-template-columns:1fr; }
  .coupon-sm-grid .coupon-card .cc-left{ width:96px; padding:12px 6px; }
  .coupon-sm-grid .coupon-card .cc-left .amt{ font-size:20px; }
  .coupon-sm-grid .coupon-card .cc-right{ width:76px; }
}

/* ============ 详情页卖点条 ============ */
.gd-promise{ display:flex; gap:18px; flex-wrap:wrap; padding:10px 0 2px; font-size:12px; color:#8a90a3; }
.gd-promise span{ display:inline-flex; align-items:center; gap:4px; }
.gd-promise i{ color:var(--lg-c2,#ff5e3a); font-size:14px; }

/* ============ 详情页底部操作栏(拼多多风格) ============ */
.gd-bar{ position:fixed; left:0; right:0; bottom:0; z-index:950; background:#fff; border-top:1px solid #eee; box-shadow:0 -2px 14px rgba(0,0,0,.05); }
.gd-bar-inner{ display:flex; align-items:center; padding:6px 12px; padding-bottom:calc(6px + env(safe-area-inset-bottom)); }
.gd-bar-l{ display:flex; align-items:center; }
.gd-act{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:58px; padding:2px 0; color:#666; font-size:10px; text-decoration:none; }
.gd-act i{ font-size:21px; line-height:1; }
.gd-act span{ margin-top:2px; }
.gd-act .gd-badge{ position:absolute; top:-2px; left:calc(50% + 6px); min-width:15px; height:15px; padding:0 3px; background:#e1251b; color:#fff; font-size:9px; font-style:normal; line-height:15px; text-align:center; border-radius:8px; }
.gd-bar-r{ margin-left:auto; display:flex; gap:10px; align-items:center; }
.gd-btn{ border:0; cursor:pointer; color:#fff; font-size:15px; height:40px; line-height:40px; padding:0 24px; border-radius:20px; text-decoration:none; display:inline-block; text-align:center; white-space:nowrap; }
.gd-cart{ background:var(--lg-grad, linear-gradient(135deg,#ffa63e,#ff7a2b)); box-shadow:0 6px 14px rgba(var(--lg-c2-rgb, 255,140,40),.3); }
.gd-buy{ background:var(--lg-grad, linear-gradient(135deg,#ff5e3a,#ff2e63)); box-shadow:0 6px 14px rgba(var(--lg-c2-rgb, 255,80,60),.3); }
.gd-btn.gd-lg{ flex:1; max-width:260px; }
@media (max-width:768px){
  .gd-bar-inner{ padding:5px 8px; padding-bottom:calc(5px + env(safe-area-inset-bottom)); }
  .gd-btn{ font-size:14px; height:38px; line-height:38px; padding:0 16px; }
  .gd-act{ width:48px; }
  .gd-act span{ display:none; }
  .gd-act i{ font-size:23px; }
}
/* 详情页隐藏全局底部导航,让出操作栏 */
body.gd-page .m-tabbar, body.gd-page .m-tabbar-space{ display:none; }
body.gd-page{ padding-bottom:64px; }

/* ============ 规格选择弹层(拼多多风格) ============ */
.sheet-mask{ position:fixed; inset:0; z-index:1500; background:rgba(0,0,0,.5); display:flex; align-items:flex-end; justify-content:center; }
.sheet{ width:100%; max-width:620px; background:#fff; border-radius:18px 18px 0 0; padding:16px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing:border-box; animation:gdSheetUp .28s cubic-bezier(.2,.85,.3,1.1) both; max-height:86vh; overflow-y:auto; }
@keyframes gdSheetUp{ from{ transform:translateY(40px); opacity:.4; } to{ transform:none; opacity:1; } }
@media (min-width:768px){
  .sheet-mask{ align-items:center; padding:20px; }
  .sheet{ border-radius:18px; }
}
.sheet-head{ display:flex; gap:12px; position:relative; padding-bottom:12px; }
.sheet-head img{ width:74px; height:74px; border-radius:10px; object-fit:cover; flex:none; background:#f5f5f5; }
.sheet-info{ flex:1; min-width:0; }
.sheet-price{ color:var(--lg-c2,#ff2e63); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sheet-price .p{ font-size:20px; font-weight:800; }
.sheet-price .p i{ font-style:normal; font-size:13px; }
.sheet-price .stock{ color:#999; font-size:12px; font-weight:normal; }
.sheet-name{ font-size:14px; color:#333; margin-top:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sheet-close{ position:absolute; top:0; right:0; width:26px; height:26px; border-radius:50%; background:#f2f2f2; color:#888; text-align:center; line-height:26px; cursor:pointer; font-size:16px; }
.sheet-sku{ border-top:1px solid #f5f5f5; padding:12px 0; }
.sheet-label{ font-size:13px; color:#333; margin-bottom:8px; }
.sheet-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.sheet-opt{ border:1px solid #ddd; border-radius:6px; padding:6px 14px; font-size:13px; color:#555; cursor:pointer; background:#fff; transition:all .15s; }
.sheet-opt.on{ border-color:var(--lg-c2,#ff5e3a); color:var(--lg-c2,#ff5e3a); background:rgba(255,94,58,.06); font-weight:600; }
.sheet-opt.disabled{ color:#bbb; background:#f5f5f5; border-color:#eee; cursor:not-allowed; }
.sheet-num{ display:flex; align-items:center; justify-content:space-between; border-top:1px solid #f5f5f5; padding:12px 0; font-size:14px; color:#333; }
.sheet-tip{ background:#fff8f6; border:1px solid rgba(255,94,58,.2); color:#8a5a3c; border-radius:8px; padding:8px 12px; font-size:12px; line-height:1.7; }
.sheet-foot{ display:flex; align-items:center; gap:14px; padding-top:12px; }
.sheet-total{ flex:1; color:#333; font-size:14px; }
.sheet-total .p{ color:var(--lg-c2,#ff2e63); font-size:20px; font-weight:800; }
.sheet-total .p i{ font-style:normal; font-size:13px; }
.sheet-foot .btn{ height:42px; line-height:42px; padding:0 34px; font-size:16px; border-radius:21px; }

/* toast */
#toast { position:fixed; top:20%; left:50%; transform:translateX(-50%); background:rgba(0,0,0,.8); color:#fff; padding:10px 24px; border-radius:6px; font-size:14px; z-index:9999; display:none; }

/* 页脚 */
.footer { background:#fff; margin-top:30px; border-top:1px solid #eee; padding:20px 0; text-align:center; color:#999; font-size:12px; }

/* ============ 移动端组件(默认隐藏,≤768px启用) ============ */
.m-header { display:none; }
.m-tabbar { display:none; }
.m-tabbar-space { display:none; }

/* ============ 移动端(<769px) ============ */
@media (max-width:768px){
  .goods-grid { grid-template-columns:repeat(2,1fr); }
  .detail-wrap { flex-direction:column; }
  .detail-left { width:100%; }
  .gallery{ width:100%; }
  .g-slide{ height:auto; aspect-ratio:1/1; }
  .g-arrow{ display:none; }
  .header-main { flex-wrap:wrap; }
  .search-box { order:3; max-width:100%; margin-top:10px; width:100%; }
  /* 会员中心:移动端内容在上,导航改为竖排列表置于内容下方(不再顶部横排滑动) */
  .member-layout { flex-direction:column; }
  .member-main { order:1; min-width:0; }
  .member-side { order:2; width:100%; margin-top:15px; padding:6px 0; }
  .member-side a {
    display:flex; align-items:center; gap:10px;
    padding:13px 18px; color:#666; font-size:14px;
    border-left:0; border-bottom:1px solid #f5f5f5;
  }
  .member-side a:last-child { border-bottom:0; }
  /* 用户中心:移动端子页面(我的订单/积分/地址等)隐藏下方菜单列表,仅个人中心主页(body.uc-home)保留 */
  .member-side { display:none; }
  body.uc-home .member-side { display:block; }
  /* 用户中心:页脚沉底——内容不足一屏时,页脚(用户协议/隐私政策等)贴到视口底部,不悬停在页面中间 */
  body.uc-page, body.uc-home { min-height:100vh; display:flex; flex-direction:column; }
  body.uc-page .container, body.uc-home .container { flex:1 0 auto; width:100%; }
  .stat-cards { grid-template-columns:repeat(3,1fr); }
  .addr-grid { grid-template-columns:repeat(2,1fr); }

  /* ---------- 移动顶栏 ---------- */
  .m-header { display:block; position:sticky; top:0; z-index:999; background:#fff; border-bottom:1px solid #eee; }
  .m-header-inner { display:flex; align-items:center; gap:10px; padding:8px 12px; }
  .m-logo { font-size:19px; font-weight:bold; color:var(--lg-c2, #ff5000); white-space:nowrap; }
  .m-search { flex:1; display:flex; }
  .m-search input { flex:1; height:34px; border:1.5px solid var(--lg-c2, #ff5000); border-right:0; border-radius:17px 0 0 17px; padding:0 14px; font-size:13px; background:#f5f5f5; }
  .m-search button { width:56px; height:34px; background:var(--lg-c2, #ff5000); color:#fff; border:0; font-size:13px; border-radius:0 17px 17px 0; }
  .m-cart { position:relative; font-size:22px; color:#333; text-decoration:none; }
  .m-cart-badge { position:absolute; top:-4px; right:-8px; background:#e1251b; color:#fff; font-style:normal; font-size:10px; min-width:16px; height:16px; line-height:16px; text-align:center; border-radius:9px; padding:0 4px; }

  /* 隐藏PC版顶栏/头部/主导航,避免与移动顶栏重复 */
  .topbar, .header, .nav-bar { display:none; }

  /* 页面主体留白(适配固定底部导航) */
  body { padding-bottom:60px; }
  .m-tabbar-space { display:none; }

  /* ---------- 底部导航栏 ---------- */
  .m-tabbar {
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:1000;
    background:#fff; border-top:1px solid #eee;
    height:56px; padding-bottom:env(safe-area-inset-bottom);
    box-shadow:0 -2px 10px rgba(0,0,0,.04);
  }
  .m-tab { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#999; font-size:11px; text-decoration:none; position:relative; }
  .m-tab-icon { font-size:22px; line-height:1; }
  .m-tab.on { color:var(--lg-c2, #ff5000); font-weight:bold; }
  .m-tab-badge { position:absolute; top:6px; left:calc(50% + 6px); background:#e1251b; color:#fff; font-style:normal; font-size:10px; min-width:16px; height:16px; line-height:16px; text-align:center; border-radius:9px; padding:0 4px; }

  /* 移动端页面间距压缩 */
  .crumb { padding:8px 4px; font-size:12px; }
  .filter-bar { padding:10px 8px; gap:6px; }
  .section-title { margin-bottom:8px; }
  .home-cate { padding:10px 0; }
  .home-cate .cate-icon { font-size:20px; }

  /* 卡片间距与字体 */
  .goods-card .g-img { height:auto; aspect-ratio:1/1; }
  .goods-card .g-info { padding:8px; }
  .goods-card .g-name { font-size:13px; }
  .goods-card .g-price { font-size:16px; margin-top:4px; }

  /* 首页分类宫格:换行多行展示 */
  .home-cate { flex-wrap:wrap; }
  .home-cate a { flex:0 0 25%; margin:6px 0; }

  /* 用户中心订单统计宫格 6列->3列 */
  .member-main .goods-grid { grid-template-columns:repeat(3,1fr) !important; }
  .member-main .goods-grid a { padding:10px 4px !important; }
  .member-main .goods-grid a > div:first-child { font-size:20px !important; }

  /* 结算/购物车压缩 */
  .checkout-box { padding:12px; }
  .checkout-item { flex-wrap:wrap; gap:8px; }
  .checkout-item img { width:64px; height:64px; }
  .summary-bar { padding:12px; }
  .summary-bar .total { font-size:18px; margin:0 10px; }
  .summary-bar .btn-lg { padding:10px 22px; font-size:14px; }

  /* 结算地址选项占宽 */
  .addr-option { width:100%; }

  /* 弹窗与表单 */
  .modal { width:92%; }
  .login-wrap { margin:16px auto; padding:22px 16px; box-shadow:none; }

  /* 订单卡 */
  .order-card .oc-item { padding:10px; }
  .order-card .oc-item img { width:64px; height:64px; }
  .addr-card { padding:12px; }
  .order-card .oc-actions button { margin:4px 0 4px 8px; }
  .order-card .oc-head { flex-wrap:wrap; row-gap:4px; }

  /* 地址卡单列 & 评价缩进收敛 */
  .addr-grid { grid-template-columns:1fr; }
  .comment-meta { padding-left:0 !important; }

  /* 桌面大搜索/logo等元素收敛 */
  .detail-right { padding-left:0; }
  .detail-right h1 { font-size:17px; }
  .price-box .now { font-size:22px; }
  .banner-wrap .banner-imgs img { height:150px; }

  /* 个人中心信息卡换行 */
  .member-main .page-box.flex { flex-wrap:wrap; row-gap:10px; }
  .member-main .page-box.flex .btn { margin-left:0 !important; }

  /* 订单详情操作区换行,页脚信息精简 */
  .flex-between { flex-wrap:wrap; row-gap:8px; }
  .text-right { margin-left:auto; }
  .footer { padding:12px 0; font-size:11px; }
  .footer p.mt10 { display:none; }
}

/* ============ 图标字体(Remix iconfont 风格)微调 ============ */
[class^="ri-"], [class*=" ri-"]{
  display:inline-block;
  font-size:inherit;
  vertical-align:-.14em;
  line-height:1;
}
i[class^="ri-"] + span, i[class^="ri-"] + a { vertical-align:-.02em; }
/* 图标与相邻文本间距(常见于 "icon 文本" 结构) */
i[class^="ri-"] + i[class^="ri-"] { margin-left:4px; }
.m-tab-icon i[class^="ri-"]{ font-size:inherit; }
.section-title h2 i[class^="ri-"]{ font-size:.95em; }
.crumb i[class^="ri-"]{ margin-right:2px; }
.btn i[class^="ri-"]{ margin-right:4px; }
.empty-box .icon i[class^="ri-"]{ font-size:56px; line-height:1; }
.tip .tip-icon i[class^="ri-"]{ font-size:50px; }
.member-main .goods-grid a > div:first-child i[class^="ri-"]{ font-size:inherit; }
.order-card .oc-item i[class^="ri-"], .order-card .oc-head i[class^="ri-"]{ margin-right:2px; }
.notice-bar i[class^="ri-"]{ margin-right:6px; vertical-align:-.08em; }
.home-cate .cate-icon i[class^="ri-"]{ font-size:inherit; }
.m-tab-badge{ font-style:normal; }

/* ============ 政策页/页脚链接 ============ */
.policy-links{ margin-top:10px; font-size:12px; color:#ccc; }
.policy-links a{ color:#999; text-decoration:none; margin:0 8px; transition:color .2s; }
.policy-links a:hover{ color:var(--lg-c2, #ff5000); }
.policy-links span{ color:#e0e0e0; }
.auth-tip a{ color:var(--lg-c2, #ff6b3d); text-decoration:none; }
.auth-tip a:hover{ text-decoration:underline; }

/* 登录/注册 协议勾选 */
.auth-check{
  display:flex; align-items:center; flex-wrap:wrap; gap:0 2px;
  margin:2px 0 14px; font-size:12px; color:#8a90a3; line-height:1.8;
  cursor:pointer; -webkit-user-select:none; user-select:none;
}
.auth-check input[type=checkbox]{
  width:15px; height:15px; margin:0 5px 0 0; cursor:pointer;
  accent-color:#ff5e3a; flex:none;
}
.auth-check a{ color:var(--lg-c2, #ff6b3d); text-decoration:none; }
.auth-check a:hover{ text-decoration:underline; }

/* ============ 政策页/政策弹窗 排版(整页与弹窗共用) ============ */
.policy-wrap{ max-width:880px; margin:26px auto 10px; padding:34px 40px 30px; }
.policy-wrap h1{ font-size:22px; text-align:center; color:#22243a; margin:0 0 6px; }
.policy-wrap .policy-meta{ text-align:center; color:#9aa0b5; font-size:12px; margin-bottom:24px; }
.policy-wrap h2{ font-size:16px; color:#ff5e3a; margin:26px 0 10px; padding-left:10px; border-left:3px solid #ff9a44; }
.policy-wrap h3{ font-size:14px; color:#333; margin:16px 0 6px; }
.policy-wrap p{ font-size:14px; line-height:1.95; color:#555; margin:8px 0; text-align:justify; }
.policy-wrap ul, .policy-wrap ol{ margin:8px 0 8px 22px; padding:0; }
.policy-wrap li{ font-size:14px; line-height:1.95; color:#555; margin:4px 0; }
.policy-wrap table{ width:100%; border-collapse:collapse; margin:10px 0; font-size:13px; }
.policy-wrap table th, .policy-wrap table td{ border:1px solid rgba(31,45,88,.12); padding:8px 10px; text-align:left; color:#555; }
.policy-wrap table th{ background:rgba(255,154,68,.08); color:#333; }
.policy-wrap .policy-tip{ background:rgba(255,154,68,.1); border:1px solid rgba(255,154,68,.25); color:#a05a1c; padding:10px 14px; border-radius:10px; font-size:13px; margin-top:20px; }
@media (max-width:768px){
  .policy-wrap{ margin:14px 10px 8px; padding:22px 18px; }
}

/* ============ 政策弹窗 ============ */
.policy-modal .modal{ width:760px; max-width:96%; padding:0; overflow:hidden; }
.policy-modal{ z-index:1100; }
.policy-modal .policy-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 22px; border-bottom:1px solid rgba(31,45,88,.08);
}
.policy-modal .policy-modal-head h3{ margin:0; font-size:17px; color:#22243a; }
.policy-modal .policy-modal-body{
  max-height:72vh; overflow-y:auto; padding:6px 22px 22px;
  -webkit-overflow-scrolling:touch;
}
.policy-modal .policy-modal-body .policy-wrap{
  max-width:none; margin:0; padding:18px 0 4px; border:0; box-shadow:none;
}
.policy-modal .policy-modal-body .policy-meta{ margin-bottom:16px; }
.policy-modal .close-x{ float:none; font-size:22px; color:#9aa0b5; cursor:pointer; }
.policy-modal .close-x:hover{ color:var(--lg-c2, #ff5000); }
@media (max-width:768px){
  .policy-modal .modal{ width:96%; }
  .policy-modal .policy-modal-head{ padding:12px 14px; }
  .policy-modal .policy-modal-body{ padding:4px 14px 16px; max-height:80vh; }
}

/* ============ 商品角标(热/新/卡密) ============ */
.goods-card{ position:relative; }
.g-badges{ position:absolute; top:8px; left:8px; z-index:2; display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.g-badge{ display:inline-block; font-size:11px; line-height:1; padding:4px 6px; border-radius:4px; color:#fff; letter-spacing:1px; }
.g-badge.b-hot{ background:#e1251b; }
.g-badge.b-new{ background:linear-gradient(135deg,#ff9a44,#ff5e3a); }
.g-badge.b-card{ background:#4b3f72; }

/* ============ 商品列表页(桌面侧栏分类 + 移动tab联动) ============ */
.list-layout{ display:flex; gap:12px; align-items:flex-start; }
.list-side{ width:200px; flex:none; background:#fff; border-radius:6px; padding:8px 0 12px; align-self:flex-start; }
.ls-title{ padding:8px 16px 10px; font-weight:bold; color:#333; border-bottom:1px solid #f2f2f2; margin-bottom:4px; font-size:14px; }
.list-side > a{ display:block; padding:8px 16px; color:#666; font-size:13px; }
.list-side > a.on{ color:var(--lg-c2,#ff5000); font-weight:bold; background:#fff8f6; border-left:3px solid var(--lg-c2,#ff5000); }
.ls-top{ display:block; padding:9px 16px 2px; font-weight:bold; color:#444; font-size:14px; margin-top:6px; }
.ls-top.on{ color:var(--lg-c2,#ff5000); }
.ls-subs{ padding:2px 0 0; }
.ls-subs a{ display:block; padding:6px 16px 6px 32px; color:#999; font-size:13px; }
.ls-subs a.on{ color:var(--lg-c2,#ff5000); font-weight:bold; background:#fff8f6; }
.ls-subs a:hover{ color:var(--lg-c2,#ff5000); }
.list-main{ flex:1; min-width:0; }

/* 移动端分类(默认隐藏,<=768px显示) */
.m-cat-tabs{ display:none; }
.m-cat-chips{ display:none; }

/* 分页 */
.pager{ display:flex; justify-content:center; gap:8px; padding:20px 0 6px; flex-wrap:wrap; }
.pager a{ min-width:34px; height:34px; line-height:32px; padding:0 8px; text-align:center; border-radius:6px; background:#fff; color:#666; font-size:13px; border:1px solid #e8e8e8; display:inline-block; box-sizing:border-box; }
.pager a:hover{ color:var(--lg-c2,#ff5000); border-color:var(--lg-c2,#ff5000); }
.pager a.cur{ background:var(--lg-c2,#ff5000); color:#fff; border-color:var(--lg-c2,#ff5000); cursor:default; }

@media (max-width:768px){
  .list-layout{ flex-direction:column; }
  .list-side{ display:none; }
  .m-cat-tabs{ display:flex; gap:8px; overflow-x:auto; padding:8px 0 2px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .m-cat-tabs::-webkit-scrollbar{ display:none; }
  .m-cat-tabs a{ flex:none; padding:6px 16px; border-radius:16px; background:#fff; color:#666; font-size:13px; border:1px solid #eee; }
  .m-cat-tabs a.on{ background:var(--lg-c2,#ff5000); color:#fff; border-color:var(--lg-c2,#ff5000); font-weight:600; }
  .m-cat-chips{ display:none; flex-wrap:wrap; gap:8px; padding:8px 0 2px; }
  .m-cat-chips.on{ display:flex; }
  .m-cat-chips a{ padding:4px 12px; border-radius:12px; background:#f3f4f8; color:#777; font-size:12px; }
  .m-cat-chips a.on{ background:rgba(var(--lg-c2-rgb,255,80,60),.12); color:var(--lg-c2,#ff5000); font-weight:bold; }
  .pager{ padding:14px 0 4px; }
  .pager a{ min-width:32px; height:32px; line-height:30px; }
}
