/* ============================================================
   物产中大（浙江）数字贸易科技有限公司 · 食品商城设计系统
   商务专业蓝 · 浅色日间模式
   ============================================================ */
:root{
  --brand:#2A5A8C;
  --brand-600:#234C79;
  --brand-700:#1D4068;
  --brand-800:#173456;
  --navy:#0F1B2D;
  --navy-700:#16263D;
  --brand-tint:#EAF1F8;
  --brand-tint-2:#DCE8F4;
  --bg:#F4F7FA;
  --surface:#FFFFFF;
  --surface-2:#F7FAFC;
  --ink:#17212E;
  --ink-2:#33404F;
  --muted:#6B7A8D;
  --faint:#93A1B1;
  --line:#E3E9F0;
  --line-2:#D2DCE6;
  --price:#D8432C;
  --price-bg:#FDF1ED;
  --gold:#B8863B;
  --success:#1F9D55;
  --success-bg:#E9F7EF;
  --warning:#C77E0F;
  --warning-bg:#FCF3E3;
  --danger:#D8432C;
  --danger-bg:#FDEDEA;
  --info:#2A5A8C;
  --info-bg:#EAF1F8;
  --radius:10px;
  --radius-lg:14px;
  --shadow-sm:0 1px 3px rgba(15,27,45,.06);
  --shadow:0 4px 16px rgba(15,27,45,.08);
  --shadow-lg:0 12px 40px rgba(15,27,45,.12);
  --focus-ring:0 0 0 3px rgba(42,90,140,.16);
  --max-width:1240px
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:"MiSans","MiSans VF","HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.65;
  font-size:14px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
::selection{background:var(--brand-tint-2);color:var(--navy)}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:var(--surface-2)}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:var(--faint)}

.container{max-width:var(--max-width);margin:0 auto;padding:0 24px}
.shop-main-content{flex:1;width:100%}

/* ================= 顶部通栏 ================= */
.m-topbar{background:var(--navy);color:rgba(255,255,255,.72);font-size:12.5px}
.m-topbar-inner{max-width:var(--max-width);margin:0 auto;padding:0 24px;height:36px;display:flex;align-items:center;justify-content:space-between}
.m-topbar-links{display:flex;align-items:center;gap:4px}
.m-topbar-links a{color:rgba(255,255,255,.78);padding:2px 10px;border-radius:4px;transition:.15s}
.m-topbar-links a:hover{color:#fff;background:rgba(255,255,255,.08)}
.m-topbar-links .sep{color:rgba(255,255,255,.2)}
.m-topbar-phone{display:flex;align-items:center;gap:6px;color:#fff}
.m-topbar-phone b{font-weight:700;letter-spacing:.5px}
.m-topbar-phone svg{width:13px;height:13px;color:#8FB6DE}

/* ================= 主头部 ================= */
.m-header-sticky{position:sticky;top:0;z-index:200;box-shadow:0 2px 10px rgba(15,27,45,.07)}
.m-header{background:var(--surface);border-bottom:1px solid var(--line)}
.m-header-inner{max-width:var(--max-width);margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:36px;height:92px}
.m-brand{display:flex;align-items:center;gap:14px;flex-shrink:0}
.m-brand-mark{width:46px;height:46px;border-radius:8px;background:linear-gradient(135deg,var(--brand) 0%,var(--navy) 100%);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;letter-spacing:-1px;box-shadow:0 4px 12px rgba(42,90,140,.28)}
.m-brand-text{line-height:1.25}
.m-brand-text b{display:block;font-size:19px;font-weight:800;color:var(--navy);letter-spacing:.5px}
.m-brand-text span{display:block;font-size:11px;color:var(--muted);letter-spacing:2.5px;margin-top:2px}
.m-search{flex:1;max-width:560px}
.m-search-box{display:flex;border:2px solid var(--brand);border-radius:8px;overflow:hidden;background:var(--surface)}
.m-search-box input{flex:1;border:0;outline:0;padding:10px 16px;font-size:14px;background:transparent}
.m-search-box input::placeholder{color:var(--faint)}
.m-search-box button{background:var(--brand);color:#fff;border:0;padding:0 26px;font-size:14.5px;font-weight:700;transition:background .15s}
.m-search-box button:hover{background:var(--brand-700)}
.m-hotwords{display:flex;gap:14px;margin-top:7px;font-size:12px;color:var(--muted)}
.m-hotwords a:hover{color:var(--brand)}
.m-header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}
.m-cart-btn{display:flex;align-items:center;gap:9px;padding:10px 18px;border:1px solid var(--line-2);border-radius:8px;font-size:13.5px;font-weight:600;color:var(--ink-2);background:var(--surface);position:relative;transition:.15s}
.m-cart-btn:hover{border-color:var(--brand);color:var(--brand)}
.m-cart-btn svg{width:19px;height:19px}
.m-cart-count{position:absolute;top:-8px;right:-8px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--price);color:#fff;font-size:11px;font-weight:700;line-height:19px;text-align:center;box-shadow:0 0 0 2px var(--surface)}
.m-user-chip{display:flex;align-items:center;gap:9px;padding:8px 16px 8px 8px;border-radius:99px;border:1px solid transparent;transition:.15s;cursor:pointer;position:relative}
.m-user-chip:hover{border-color:var(--line-2);background:var(--surface-2)}
.m-user-avatar{width:34px;height:34px;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--brand-700));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.m-user-name{font-size:13.5px;font-weight:600;color:var(--ink-2);max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-user-menu{position:absolute;top:calc(100% + 10px);right:0;min-width:180px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lg);padding:8px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:.2s;z-index:50}
.m-user-chip:hover .m-user-menu{opacity:1;visibility:visible;transform:translateY(0)}
.m-user-menu a{display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:7px;font-size:13.5px;color:var(--ink-2);transition:.12s}
.m-user-menu a svg{width:15px;height:15px;color:var(--faint)}
.m-user-menu a:hover{background:var(--brand-tint);color:var(--brand)}
.m-user-menu a.out{border-top:1px solid var(--line);margin-top:6px;padding-top:12px;border-radius:7px 7px 0 0;color:var(--muted)}
.m-user-menu a.out:hover{color:var(--danger);background:var(--danger-bg)}
.m-login-link{font-size:13.5px;font-weight:600;color:var(--ink-2);padding:8px 10px;border-radius:6px;transition:.15s}
.m-login-link:hover{color:var(--brand)}
.m-register-btn{font-size:13.5px;font-weight:700;color:#fff;background:var(--brand);padding:9px 20px;border-radius:7px;transition:.15s}
.m-register-btn:hover{background:var(--brand-700)}

/* ================= 分类导航条 ================= */
.m-catbar{background:var(--brand);position:relative;z-index:150}
.m-catbar-inner{max-width:var(--max-width);margin:0 auto;padding:0 24px;display:flex;align-items:stretch;gap:6px;height:46px}
.m-catall{display:flex;align-items:center;gap:9px;padding:0 22px 0 18px;background:var(--navy);color:#fff;font-size:14.5px;font-weight:700;position:relative;cursor:pointer;user-select:none}
.m-catall svg{width:15px;height:15px;transition:transform .2s}
.m-catall:hover svg{transform:rotate(180deg)}
.m-catdrop{position:absolute;top:100%;left:0;width:640px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:0 0 10px 10px;box-shadow:var(--shadow-lg);display:grid;grid-template-columns:1fr 1fr;padding:14px 10px 10px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s}
.m-catall:hover .m-catdrop{opacity:1;visibility:visible;transform:translateY(0)}
.m-catdrop a{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-radius:7px;font-size:13.5px;color:var(--ink-2);transition:.12s}
.m-catdrop a:hover{background:var(--brand-tint);color:var(--brand);font-weight:600}
.m-catdrop a em{font-style:normal;font-size:11.5px;color:var(--faint);background:var(--surface-2);padding:1px 8px;border-radius:99px}
.m-catnav{display:flex;align-items:center}
.m-catnav a{display:flex;align-items:center;padding:0 20px;color:rgba(255,255,255,.92);font-size:14.5px;font-weight:600;position:relative;transition:.15s}
.m-catnav a::after{content:"";position:absolute;left:50%;right:50%;bottom:0;height:3px;background:#fff;transition:.2s}
.m-catnav a:hover::after,.m-catnav a.active::after{left:20%;right:20%}
.m-catnav a:hover,.m-catnav a.active{color:#fff}
.m-catnav a.accent{color:#FFE2B0}
.m-catnav a.accent:hover{color:#FFD79A}
.m-catnav a.accent::after{background:#FFD79A}

/* ================= 首页 Hero ================= */
.m-hero{background:linear-gradient(115deg,var(--navy) 0%,var(--brand-800) 55%,var(--brand) 100%);color:#fff;overflow:hidden;position:relative}
.m-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 55% 80% at 85% 30%,rgba(255,255,255,.08),transparent 60%),radial-gradient(ellipse 40% 60% at 10% 90%,rgba(42,90,140,.5),transparent 60%)}
.m-hero::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:48px 48px;pointer-events:none}
.m-hero-inner{position:relative;z-index:2;max-width:var(--max-width);margin:0 auto;padding:64px 24px 68px;display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center}
.m-hero-badge{display:inline-flex;align-items:center;gap:9px;padding:7px 18px;border:1px solid rgba(255,255,255,.28);border-radius:99px;font-size:12.5px;font-weight:600;color:#DCE8F4;letter-spacing:1px;background:rgba(255,255,255,.06);margin-bottom:24px}
.m-hero-badge i{width:7px;height:7px;border-radius:50%;background:#7EC3FF;box-shadow:0 0 10px #7EC3FF;display:inline-block}
.m-hero h1{font-size:46px;font-weight:800;line-height:1.18;letter-spacing:-.5px;margin-bottom:18px}
.m-hero h1 span{color:#9CC8EF}
.m-hero-lead{font-size:15.5px;line-height:1.85;color:rgba(255,255,255,.78);max-width:520px;margin-bottom:34px}
.m-hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.m-btn-hero{display:inline-flex;align-items:center;gap:9px;padding:15px 34px;border-radius:9px;font-size:15px;font-weight:700;transition:.2s}
.m-btn-hero svg{width:17px;height:17px}
.m-btn-hero--light{background:#fff;color:var(--brand-700);box-shadow:0 8px 24px rgba(0,0,0,.22)}
.m-btn-hero--light:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(0,0,0,.3)}
.m-btn-hero--ghost{border:1px solid rgba(255,255,255,.4);color:#fff}
.m-btn-hero--ghost:hover{border-color:#fff;background:rgba(255,255,255,.1)}
.m-hero-panel{position:relative}
.m-hero-panel-card{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);border-radius:14px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:30px;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.m-hero-panel-card h3{font-size:17px;font-weight:700;color:#fff;margin-bottom:6px;display:flex;align-items:center;gap:10px}
.m-hero-panel-card h3::before{content:"";width:4px;height:16px;background:#7EC3FF;border-radius:2px}
.m-hero-panel-card p{font-size:12.5px;color:rgba(255,255,255,.6);margin-bottom:20px}
.m-hero-panel-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.m-hero-panel-item{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:9px;padding:14px 10px;text-align:center}
.m-hero-panel-item b{display:block;font-size:16px;font-weight:800;color:#fff;margin-bottom:2px}
.m-hero-panel-item span{font-size:11px;color:rgba(255,255,255,.62);letter-spacing:.5px}

/* ================= 服务保障条 ================= */
.m-service{background:var(--surface);border-bottom:1px solid var(--line)}
.m-service-inner{max-width:var(--max-width);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:repeat(4,1fr)}
.m-service-item{display:flex;align-items:center;gap:14px;padding:22px 8px}
.m-service-item + .m-service-item{border-left:1px solid var(--line)}
.m-service-icon{width:42px;height:42px;border-radius:9px;background:var(--brand-tint);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.m-service-icon svg{width:21px;height:21px}
.m-service-item b{display:block;font-size:14.5px;font-weight:700;color:var(--ink)}
.m-service-item span{font-size:12px;color:var(--muted)}

/* ================= 区块通用 ================= */
.m-section{max-width:var(--max-width);margin:0 auto;padding:44px 24px 8px}
.m-section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px;gap:16px;flex-wrap:wrap}
.m-section-title{display:flex;align-items:center;gap:14px;font-size:24px;font-weight:800;color:var(--navy);letter-spacing:-.3px}
.m-section-title::before{content:"";width:6px;height:24px;background:linear-gradient(180deg,var(--brand),var(--navy));border-radius:3px}
.m-section-sub{font-size:13px;color:var(--muted);margin-top:6px;padding-left:20px}
.m-section-more{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;color:var(--brand);padding:9px 18px;border:1px solid var(--brand-tint-2);border-radius:99px;transition:.15s}
.m-section-more:hover{background:var(--brand-tint);border-color:var(--brand)}
.m-section-more svg{width:14px;height:14px}

/* ================= 商品卡片 ================= */
.m-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.m-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,border-color .2s,transform .2s}
.m-card:hover{box-shadow:var(--shadow-lg);border-color:var(--brand-tint-2);transform:translateY(-3px)}
.m-card-img{position:relative;display:block;height:224px;overflow:hidden;background:var(--surface-2)}
.m-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.m-card:hover .m-card-img img{transform:scale(1.06)}
.m-card-cat{position:absolute;top:12px;left:12px;padding:4px 11px;background:rgba(15,27,45,.72);color:#fff;font-size:11px;font-weight:600;border-radius:5px;letter-spacing:.5px;backdrop-filter:blur(4px)}
.m-card-body{padding:16px 16px 18px;flex:1;display:flex;flex-direction:column;gap:9px}
.m-card-title{font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px;transition:color .15s}
.m-card-title:hover{color:var(--brand)}
.m-card-price{display:flex;align-items:baseline;gap:4px;color:var(--price)}
.m-card-price .yen{font-size:13px;font-weight:700}
.m-card-price .amount{font-size:23px;font-weight:800;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.m-card-price .unit{font-size:11.5px;color:var(--faint)}
.m-card-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:auto}
.m-card-merchant{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-card-verified{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-weight:600;flex-shrink:0}
.m-card-verified svg{width:12px;height:12px}
.m-card-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 0;border:1px solid var(--brand);color:var(--brand);border-radius:8px;font-size:13.5px;font-weight:700;background:var(--surface);transition:.18s}
.m-card-btn:hover{background:var(--brand);color:#fff}
.m-card-btn svg{width:15px;height:15px}
.m-card-btn--solid{background:var(--brand);color:#fff}
.m-card-btn--solid:hover{background:var(--brand-700)}
.m-card-btn-row{display:flex;gap:9px}
.m-card-btn-row .m-card-btn{flex:1}
.m-card-sales{font-size:11.5px;color:var(--faint)}

/* ================= 工具栏 / 筛选 ================= */
.m-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 20px;margin-bottom:18px}
.m-toolbar-count{font-size:13.5px;color:var(--muted);display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.m-toolbar-count b{color:var(--brand);font-size:17px;font-weight:800}
.m-toolbar-count .cur{color:var(--ink);font-weight:700}
.m-filter{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.m-chip{display:inline-flex;align-items:center;padding:7px 16px;border:1px solid var(--line-2);border-radius:99px;font-size:13px;font-weight:600;color:var(--ink-2);background:var(--surface);transition:.15s}
.m-chip:hover{border-color:var(--brand);color:var(--brand)}
.m-chip.active{background:var(--brand);border-color:var(--brand);color:#fff}
.m-search-inline{display:flex;border:2px solid var(--brand);border-radius:8px;overflow:hidden}
.m-search-inline input{border:0;outline:0;padding:8px 14px;font-size:13.5px;width:220px}
.m-search-inline input::placeholder{color:var(--faint)}
.m-search-inline button{background:var(--brand);color:#fff;border:0;padding:0 20px;font-size:13.5px;font-weight:700}
.m-search-inline button:hover{background:var(--brand-700)}

/* ================= 分页 ================= */
.m-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:32px}
.m-pagination a,.m-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 14px;border:1px solid var(--line-2);border-radius:8px;font-size:13.5px;font-weight:600;color:var(--ink-2);background:var(--surface);transition:.15s}
.m-pagination a:hover{border-color:var(--brand);color:var(--brand)}
.m-pagination .current{background:var(--brand);border-color:var(--brand);color:#fff}
.m-pagination .dots{border:0;background:none;color:var(--faint)}

/* ================= 面包屑 ================= */
.m-breadcrumb{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted);margin-bottom:16px;flex-wrap:wrap}
.m-breadcrumb a:hover{color:var(--brand)}
.m-breadcrumb .sep{color:var(--line-2)}

/* ================= 商品详情 ================= */
.m-pd{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;display:grid;grid-template-columns:440px 1fr;gap:36px}
.m-pd-gallery{display:flex;flex-direction:column;gap:14px}
.m-pd-main-img{width:100%;height:440px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface-2)}
.m-pd-main-img img{width:100%;height:100%;object-fit:cover}
.m-pd-thumbs{display:flex;gap:10px}
.m-pd-thumb{width:72px;height:72px;border:2px solid transparent;border-radius:8px;overflow:hidden;cursor:pointer;background:var(--surface-2)}
.m-pd-thumb img{width:100%;height:100%;object-fit:cover}
.m-pd-thumb.active{border-color:var(--brand)}
.m-pd-info h1{font-size:23px;font-weight:800;color:var(--navy);line-height:1.45;margin-bottom:12px}
.m-pd-summary{font-size:13.5px;color:var(--muted);line-height:1.8;margin-bottom:18px}
.m-pd-pricebox{background:linear-gradient(135deg,var(--brand-tint) 0%,#F2F7FB 100%);border:1px solid var(--brand-tint-2);border-radius:10px;padding:20px 22px;margin-bottom:20px;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.m-pd-pricebox .lab{font-size:13px;color:var(--muted)}
.m-pd-price{display:flex;align-items:baseline;gap:4px;color:var(--price)}
.m-pd-price .yen{font-size:17px;font-weight:700}
.m-pd-price .amount{font-size:34px;font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.m-pd-pricebox .svc{font-size:12px;color:var(--brand);font-weight:600}
.m-pd-specs{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 20px}
.m-spec{padding:5px 13px;background:var(--surface-2);border:1px solid var(--line);border-radius:6px;font-size:12.5px;font-weight:600;color:var(--ink-2)}
.m-pd-qty{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.m-qty-box{display:flex;border:1px solid var(--line-2);border-radius:8px;overflow:hidden}
.m-qty-box button{width:40px;height:40px;background:var(--surface-2);border:0;font-size:17px;font-weight:700;color:var(--ink-2);transition:.12s}
.m-qty-box button:hover{background:var(--brand-tint);color:var(--brand)}
.m-qty-box input{width:56px;height:40px;border:0;outline:0;text-align:center;font-size:15px;font-weight:700;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.m-pd-qty .lab{font-size:13.5px;color:var(--muted)}
.m-pd-stock{font-size:12.5px;color:var(--muted)}
.m-pd-stock i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--success);margin-right:5px}
.m-pd-actions{display:flex;gap:14px;flex-wrap:wrap}
.m-btn-buy{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:14px 40px;border-radius:9px;font-size:15.5px;font-weight:800;background:var(--brand);color:#fff;transition:.18s}
.m-btn-buy:hover{background:var(--brand-700);box-shadow:0 8px 20px rgba(42,90,140,.32)}
.m-btn-cart{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:14px 40px;border-radius:9px;font-size:15.5px;font-weight:700;border:2px solid var(--brand);color:var(--brand);background:var(--surface);transition:.18s}
.m-btn-cart:hover{background:var(--brand-tint)}
.m-pd-merchant{margin-top:24px;border-top:1px dashed var(--line-2);padding-top:18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.m-pd-merchant-ava{width:44px;height:44px;border-radius:9px;background:linear-gradient(135deg,var(--brand-tint-2),var(--brand-tint));color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px}
.m-pd-merchant-info{flex:1;min-width:200px}
.m-pd-merchant-info b{display:block;font-size:14px;font-weight:700;color:var(--ink)}
.m-pd-merchant-info span{font-size:12px;color:var(--muted)}
.m-pd-merchant-link{font-size:13px;font-weight:700;color:var(--brand);padding:9px 20px;border:1px solid var(--brand-tint-2);border-radius:8px;transition:.15s}
.m-pd-merchant-link:hover{background:var(--brand-tint)}
.m-pd-detail{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);margin-top:22px;overflow:hidden}
.m-tabs{display:flex;border-bottom:1px solid var(--line);background:var(--surface-2)}
.m-tab{padding:15px 28px;font-size:14px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;transition:.15s}
.m-tab:hover{color:var(--brand)}
.m-tab.active{color:var(--brand);border-bottom-color:var(--brand);background:var(--surface)}
.m-tab-body{padding:30px 34px}
.m-tab-body h4{font-size:15px;font-weight:800;color:var(--navy);margin:22px 0 12px;padding-left:12px;border-left:4px solid var(--brand)}
.m-tab-body h4:first-child{margin-top:0}
.m-tab-body p{font-size:13.5px;color:var(--ink-2);line-height:1.9;margin-bottom:10px}
.m-desc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.m-desc-grid img{border-radius:10px;border:1px solid var(--line)}

/* ================= 相关推荐 ================= */
.m-related{margin-top:34px}

/* ================= 购物车 ================= */
.m-cart{display:grid;grid-template-columns:1fr 330px;gap:20px;align-items:start}
.m-cart-main{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.m-cart-head{display:grid;grid-template-columns:64px 1fr 130px 120px 110px;gap:14px;padding:14px 22px;background:var(--surface-2);font-size:12.5px;font-weight:700;color:var(--muted);border-bottom:1px solid var(--line)}
.m-cart-row{display:grid;grid-template-columns:64px 1fr 130px 120px 110px;gap:14px;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line)}
.m-cart-row:last-child{border-bottom:0}
.m-cart-thumb{width:64px;height:64px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface-2)}
.m-cart-thumb img{width:100%;height:100%;object-fit:cover}
.m-cart-title{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.5;margin-bottom:5px}
.m-cart-title:hover{color:var(--brand)}
.m-cart-merchant{font-size:11.5px;color:var(--faint)}
.m-cart-unit{font-size:13.5px;color:var(--ink-2);font-weight:600}
.m-cart-subtotal{font-size:16px;font-weight:800;color:var(--price)}
.m-cart-remove{font-size:12.5px;color:var(--muted);padding:6px 12px;border-radius:6px;transition:.15s}
.m-cart-remove:hover{color:var(--danger);background:var(--danger-bg)}
.m-cart-empty{padding:70px 24px;text-align:center}
.m-cart-empty svg{width:56px;height:56px;color:var(--line-2);margin:0 auto 16px}
.m-cart-empty h3{font-size:17px;font-weight:700;color:var(--ink-2);margin-bottom:8px}
.m-cart-empty p{font-size:13px;color:var(--muted);margin-bottom:22px}
.m-cart-side{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px;position:sticky;top:150px}
.m-cart-side h3{font-size:15px;font-weight:800;color:var(--navy);margin-bottom:16px}
.m-cart-sumrow{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:10px}
.m-cart-sumrow.total{border-top:1px dashed var(--line-2);margin-top:14px;padding-top:16px;font-size:14px;color:var(--ink);font-weight:600}
.m-cart-sumrow.total .amt{font-size:26px;font-weight:800;color:var(--price);font-variant-numeric:tabular-nums}
.m-cart-go{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:15px 0;margin-top:18px;background:var(--brand);color:#fff;border:0;border-radius:9px;font-size:15.5px;font-weight:800;transition:.18s}
.m-cart-go:hover{background:var(--brand-700)}
.m-cart-go:disabled{background:var(--line-2);color:var(--faint);cursor:not-allowed}
.m-cart-note{font-size:11.5px;color:var(--faint);text-align:center;margin-top:12px;line-height:1.7}

/* ================= 结算页 ================= */
.m-co{display:grid;grid-template-columns:1fr 350px;gap:20px;align-items:start}
.m-co-main{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px}
.m-co-title{font-size:16px;font-weight:800;color:var(--navy);margin-bottom:20px;display:flex;align-items:center;gap:11px}
.m-co-title::before{content:"";width:5px;height:18px;background:var(--brand);border-radius:3px}
.m-co-items{display:flex;flex-direction:column;gap:14px;margin-bottom:26px}
.m-co-item{display:flex;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:9px}
.m-co-item img{width:56px;height:56px;border-radius:7px;border:1px solid var(--line);object-fit:cover;background:var(--surface-2)}
.m-co-item-info{flex:1;min-width:0}
.m-co-item-title{font-size:13px;font-weight:600;color:var(--ink);line-height:1.45;margin-bottom:4px}
.m-co-item-meta{font-size:11.5px;color:var(--faint)}
.m-co-item-sub{font-size:15px;font-weight:800;color:var(--price)}
.m-co-side{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:26px;position:sticky;top:150px}
.m-co-side h3{font-size:15.5px;font-weight:800;color:var(--navy);margin-bottom:18px}
.m-co-sumrow{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:10px}
.m-co-total{border-top:1px dashed var(--line-2);margin-top:14px;padding-top:18px;display:flex;justify-content:space-between;align-items:baseline}
.m-co-total span{font-size:14px;font-weight:600;color:var(--ink)}
.m-co-total b{font-size:28px;font-weight:800;color:var(--price);font-variant-numeric:tabular-nums}
.m-co-submit{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:16px 0;margin-top:20px;background:var(--brand);color:#fff;border:0;border-radius:9px;font-size:16px;font-weight:800;transition:.18s}
.m-co-submit:hover{background:var(--brand-700)}

/* ================= 表单 ================= */
.m-form{display:flex;flex-direction:column;gap:18px}
.m-form-item label{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:700;color:var(--ink-2);margin-bottom:8px}
.m-form-item label .req{color:var(--price)}
.m-input,.m-select,.m-textarea{width:100%;border:1px solid var(--line-2);border-radius:8px;padding:12px 14px;font-size:14px;background:var(--surface);color:var(--ink);outline:0;transition:border-color .15s,box-shadow .15s}
.m-input:focus,.m-select:focus,.m-textarea:focus{border-color:var(--brand);box-shadow:var(--focus-ring)}
.m-input::placeholder,.m-textarea::placeholder{color:var(--faint)}
.m-textarea{min-height:96px;resize:vertical}
.m-form-hint{font-size:12px;color:var(--faint);margin-top:6px}
.m-checkbox{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--ink-2);cursor:pointer}
.m-checkbox input{width:16px;height:16px;accent-color:var(--brand)}

/* ================= 登录注册 ================= */
.m-auth{min-height:calc(100vh - 96px);display:grid;grid-template-columns:1fr 1fr}
.m-auth-aside{background:linear-gradient(140deg,var(--navy) 0%,var(--brand-800) 60%,var(--brand) 100%);color:#fff;padding:64px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.m-auth-aside::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:44px 44px}
.m-auth-aside>*{position:relative;z-index:2}
.m-auth-aside h2{font-size:32px;font-weight:800;margin-bottom:14px;letter-spacing:-.5px}
.m-auth-aside p{font-size:14.5px;color:rgba(255,255,255,.72);line-height:1.9;max-width:420px;margin-bottom:36px}
.m-auth-points{display:flex;flex-direction:column;gap:18px}
.m-auth-point{display:flex;align-items:center;gap:14px;font-size:14px;font-weight:600}
.m-auth-point i{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.m-auth-point i svg{width:17px;height:17px;color:#9CC8EF}
.m-auth-main{display:flex;align-items:center;justify-content:center;padding:56px 40px;background:var(--surface)}
.m-auth-box{width:100%;max-width:400px}
.m-auth-box h1{font-size:26px;font-weight:800;color:var(--navy);margin-bottom:6px}
.m-auth-box .sub{font-size:13.5px;color:var(--muted);margin-bottom:32px}
.m-auth-form{display:flex;flex-direction:column;gap:18px}
.m-auth-switch{text-align:center;font-size:13.5px;color:var(--muted);margin-top:24px}
.m-auth-switch a{color:var(--brand);font-weight:700}
.m-auth-alt{text-align:center;margin-top:20px;font-size:12.5px;color:var(--faint)}

/* ================= 订单列表/详情 ================= */
.m-orders{display:flex;flex-direction:column;gap:16px}
.m-order-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.m-order-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 24px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.m-order-no{font-size:13px;color:var(--muted)}
.m-order-no b{color:var(--ink);font-weight:700;margin-left:6px;font-variant-numeric:tabular-nums}
.m-order-date{font-size:12.5px;color:var(--faint);margin-left:16px}
.m-order-status{font-size:13px;font-weight:700}
.m-order-body{display:flex;align-items:center;gap:20px;padding:20px 24px;flex-wrap:wrap}
.m-order-items{display:flex;gap:12px;flex-wrap:wrap;flex:1}
.m-order-thumb{width:56px;height:56px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface-2)}
.m-order-thumb img{width:100%;height:100%;object-fit:cover}
.m-order-amount{text-align:right}
.m-order-amount .amt{font-size:21px;font-weight:800;color:var(--price);font-variant-numeric:tabular-nums}
.m-order-amount .cnt{font-size:12px;color:var(--faint)}
.m-order-actions{display:flex;gap:10px;align-items:center}
.m-order-detail-grid{display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:start}
.m-od-items{display:flex;flex-direction:column}
.m-od-item{display:flex;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line);align-items:center}
.m-od-item img{width:64px;height:64px;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:var(--surface-2)}
.m-od-item-info{flex:1;min-width:0}
.m-od-item-title{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.5}
.m-od-item-meta{font-size:11.5px;color:var(--faint);margin-top:4px}
.m-od-item-price{font-size:14px;font-weight:800;color:var(--ink-2)}
.m-od-info{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px}
.m-od-info h3{font-size:15px;font-weight:800;color:var(--navy);margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.m-od-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:7px 0}
.m-od-row .k{color:var(--muted);flex-shrink:0}
.m-od-row .v{color:var(--ink-2);text-align:right;word-break:break-all}
.m-od-row.total{border-top:1px dashed var(--line-2);margin-top:10px;padding-top:14px}
.m-od-row.total .v{font-size:19px;font-weight:800;color:var(--price)}

/* ================= 用户中心 ================= */
.m-uc{display:grid;grid-template-columns:240px 1fr;gap:20px;align-items:start}
.m-uc-side{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;position:sticky;top:150px}
.m-uc-profile{padding:26px 20px;text-align:center;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--brand-tint),var(--surface))}
.m-uc-ava{width:60px;height:60px;border-radius:14px;background:linear-gradient(135deg,var(--brand),var(--navy));color:#fff;font-size:23px;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;box-shadow:0 6px 16px rgba(42,90,140,.3)}
.m-uc-name{font-size:15px;font-weight:700;color:var(--ink)}
.m-uc-role{font-size:11.5px;color:var(--brand);margin-top:4px}
.m-uc-nav{padding:12px}
.m-uc-nav a{display:flex;align-items:center;gap:11px;padding:11px 14px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--ink-2);margin-bottom:2px;transition:.13s}
.m-uc-nav a svg{width:16px;height:16px;color:var(--faint)}
.m-uc-nav a:hover{background:var(--brand-tint);color:var(--brand)}
.m-uc-nav a.active{background:var(--brand);color:#fff}
.m-uc-nav a.active svg{color:#fff}
.m-uc-main{min-width:0}
.m-uc-welcome{background:linear-gradient(115deg,var(--navy),var(--brand-800) 70%,var(--brand));border-radius:var(--radius-lg);color:#fff;padding:30px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.m-uc-welcome h2{font-size:20px;font-weight:800;margin-bottom:6px}
.m-uc-welcome p{font-size:12.5px;color:rgba(255,255,255,.65)}
.m-uc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}
.m-uc-stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}
.m-uc-stat b{display:block;font-size:24px;font-weight:800;color:var(--navy);font-variant-numeric:tabular-nums}
.m-uc-stat span{font-size:12px;color:var(--muted)}
.m-uc-stat.hot b{color:var(--price)}
.m-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.m-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 24px;border-bottom:1px solid var(--line)}
.m-panel-head h3{font-size:15.5px;font-weight:800;color:var(--navy);display:flex;align-items:center;gap:10px}
.m-panel-head h3::before{content:"";width:4px;height:16px;background:var(--brand);border-radius:2px}
.m-panel-body{padding:24px}
.m-panel-link{font-size:13px;font-weight:600;color:var(--brand)}

/* ================= 状态徽章 ================= */
.m-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:99px;font-size:12px;font-weight:700}
.m-badge--pending{background:var(--warning-bg);color:var(--warning)}
.m-badge--paid{background:var(--info-bg);color:var(--info)}
.m-badge--shipped{background:#EEF0FB;color:#4C5FD5}
.m-badge--completed{background:var(--success-bg);color:var(--success)}
.m-badge--cancelled{background:var(--danger-bg);color:var(--danger)}
.m-badge--active{background:var(--success-bg);color:var(--success)}
.m-dot{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}

/* ================= 提示条 ================= */
.m-alert{display:flex;align-items:flex-start;gap:11px;padding:13px 16px;border-radius:9px;font-size:13.5px;margin-bottom:18px;line-height:1.6}
.m-alert svg{width:17px;height:17px;flex-shrink:0;margin-top:2px}
.m-alert--error{background:var(--danger-bg);color:#A33424;border:1px solid #F3CFC7}
.m-alert--success{background:var(--success-bg);color:#186F3E;border:1px solid #C4E8D2}
.m-alert--info{background:var(--info-bg);color:var(--brand-700);border:1px solid var(--brand-tint-2)}

/* ================= 按钮 ================= */
.m-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;padding:11px 22px;font-size:14px;font-weight:700;transition:.16s;text-decoration:none}
.m-btn svg{width:15px;height:15px}
.m-btn--primary{background:var(--brand);color:#fff}
.m-btn--primary:hover{background:var(--brand-700)}
.m-btn--outline{background:var(--surface);color:var(--brand);border:1.5px solid var(--brand)}
.m-btn--outline:hover{background:var(--brand-tint)}
.m-btn--ghost{background:var(--surface-2);color:var(--ink-2);border:1px solid var(--line-2)}
.m-btn--ghost:hover{border-color:var(--faint);color:var(--ink)}
.m-btn--danger{background:var(--danger);color:#fff}
.m-btn--danger:hover{background:#B83722}
.m-btn--sm{padding:8px 16px;font-size:12.5px;border-radius:7px}
.m-btn--lg{padding:14px 32px;font-size:15.5px;border-radius:9px}
.m-btn--block{width:100%}

/* ================= 空状态 ================= */
.m-empty{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:64px 24px;text-align:center}
.m-empty svg{width:52px;height:52px;color:var(--line-2);margin:0 auto 14px}
.m-empty h3{font-size:16.5px;font-weight:700;color:var(--ink-2);margin-bottom:8px}
.m-empty p{font-size:13px;color:var(--muted);margin-bottom:22px}

/* ================= 商家页 ================= */
.m-merchant-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.m-merchant-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;transition:box-shadow .2s,transform .2s}
.m-merchant-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.m-merchant-top{display:flex;align-items:center;gap:14px;padding:22px;border-bottom:1px solid var(--line)}
.m-merchant-ava{width:52px;height:52px;border-radius:10px;background:linear-gradient(135deg,var(--brand-tint-2),var(--brand-tint));color:var(--brand);font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.m-merchant-name{font-size:15px;font-weight:700;color:var(--ink);line-height:1.4}
.m-merchant-badges{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
.m-merchant-badge{font-size:10.5px;font-weight:700;padding:2px 9px;border-radius:4px;background:var(--brand-tint);color:var(--brand)}
.m-merchant-badge.gold{background:#F9F1E2;color:var(--gold)}
.m-merchant-body{padding:18px 22px}
.m-merchant-row{display:flex;gap:10px;font-size:12px;color:var(--muted);margin-bottom:9px;line-height:1.6}
.m-merchant-row svg{width:14px;height:14px;color:var(--faint);flex-shrink:0;margin-top:3px}
.m-merchant-foot{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-top:1px solid var(--line);background:var(--surface-2)}
.m-merchant-stat{font-size:12px;color:var(--muted)}
.m-merchant-stat b{color:var(--brand);font-size:14px}
.m-store-hero{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-bottom:20px}
.m-store-ava{width:76px;height:76px;border-radius:14px;background:linear-gradient(135deg,var(--brand),var(--navy));color:#fff;font-weight:800;font-size:26px;display:flex;align-items:center;justify-content:center}
.m-store-info{flex:1;min-width:240px}
.m-store-info h1{font-size:21px;font-weight:800;color:var(--navy);margin-bottom:6px}
.m-store-info p{font-size:12.5px;color:var(--muted);line-height:1.7}
.m-store-stats{display:flex;gap:28px}
.m-store-stat{text-align:center}
.m-store-stat b{display:block;font-size:20px;font-weight:800;color:var(--brand)}
.m-store-stat span{font-size:11.5px;color:var(--muted)}

/* ================= 页头（子页面） ================= */
.m-pagehead{background:linear-gradient(115deg,var(--navy) 0%,var(--brand-800) 70%);color:#fff;padding:40px 0}
.m-pagehead h1{font-size:27px;font-weight:800;letter-spacing:-.3px}
.m-pagehead p{font-size:13.5px;color:rgba(255,255,255,.66);margin-top:8px}
.m-pagehead .m-breadcrumb{margin-bottom:14px}
.m-pagehead .m-breadcrumb a,.m-pagehead .m-breadcrumb span,.m-pagehead .m-breadcrumb .sep{color:rgba(255,255,255,.55)}
.m-pagehead .m-breadcrumb a:hover{color:#fff}

/* ================= 页脚（浅色高端） ================= */
.m-footer{background:var(--surface);border-top:3px solid var(--brand);margin-top:56px}
.m-footer-service{border-bottom:1px solid var(--line)}
.m-footer-service .m-service-inner{border:0}
.m-footer-inner{max-width:var(--max-width);margin:0 auto;padding:44px 24px 36px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:40px}
.m-footer-brand{display:flex;flex-direction:column;gap:14px}
.m-footer-brand .b{display:flex;align-items:center;gap:12px}
.m-footer-brand .mark{width:40px;height:40px;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--navy));color:#fff;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center}
.m-footer-brand .name b{display:block;font-size:16px;font-weight:800;color:var(--navy)}
.m-footer-brand .name span{font-size:10.5px;color:var(--faint);letter-spacing:2px}
.m-footer-brand p{font-size:12.5px;color:var(--muted);line-height:1.8}
.m-footer-col h4{font-size:13.5px;font-weight:800;color:var(--navy);margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid var(--brand-tint-2);display:inline-block}
.m-footer-col a{display:block;font-size:13px;color:var(--muted);padding:4.5px 0;transition:color .15s}
.m-footer-col a:hover{color:var(--brand)}
.m-footer-contact p{display:flex;align-items:flex-start;gap:9px;font-size:12.5px;color:var(--muted);margin-bottom:9px;line-height:1.6}
.m-footer-contact svg{width:14px;height:14px;color:var(--brand);flex-shrink:0;margin-top:3px}
.m-footer-admin{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.m-footer-admin a{display:inline-flex;align-items:center;gap:6px;padding:8px 15px;border-radius:7px;font-size:12px;font-weight:700;border:1px solid var(--line-2);color:var(--ink-2);transition:.15s}
.m-footer-admin a:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-tint)}
.m-footer-admin svg{width:13px;height:13px}
.m-footer-bottom{background:var(--navy);color:rgba(255,255,255,.55)}
.m-footer-bottom-inner{max-width:var(--max-width);margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:12px}
.m-footer-bottom a{color:rgba(255,255,255,.75)}
.m-footer-bottom a:hover{color:#fff}

/* ================= 后台控制台（商城/商家后台共用） ================= */
.cs-layout{display:grid;grid-template-columns:230px 1fr;min-height:100vh;background:var(--bg)}
.cs-side{background:var(--navy);color:rgba(255,255,255,.75);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto}
.cs-brand{padding:22px 20px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:11px}
.cs-brand .mark{width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,var(--brand),#7EC3FF);display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:15px}
.cs-brand b{font-size:14.5px;color:#fff;font-weight:800;display:block;line-height:1.3}
.cs-brand span{font-size:10.5px;color:rgba(255,255,255,.45);letter-spacing:1.5px}
.cs-nav{padding:14px 12px;flex:1}
.cs-nav-label{font-size:11px;color:rgba(255,255,255,.35);letter-spacing:2px;padding:14px 12px 8px}
.cs-nav a{display:flex;align-items:center;gap:11px;padding:11px 14px;border-radius:8px;font-size:13.5px;font-weight:600;color:rgba(255,255,255,.75);margin-bottom:2px;transition:.13s}
.cs-nav a svg{width:16px;height:16px;opacity:.75}
.cs-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.cs-nav a.active{background:var(--brand);color:#fff}
.cs-side-foot{padding:16px 20px;border-top:1px solid rgba(255,255,255,.08);font-size:11.5px;color:rgba(255,255,255,.4);line-height:1.7}
.cs-main{min-width:0;display:flex;flex-direction:column}
.cs-topbar{background:var(--surface);border-bottom:1px solid var(--line);padding:0 28px;height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:50}
.cs-topbar h1{font-size:17px;font-weight:800;color:var(--navy)}
.cs-topbar-right{display:flex;align-items:center;gap:14px;font-size:13px;color:var(--muted)}
.cs-content{padding:26px 28px;flex:1}
.cs-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}
.cs-kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;display:flex;align-items:center;gap:16px}
.cs-kpi-icon{width:46px;height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cs-kpi-icon svg{width:22px;height:22px}
.cs-kpi-icon--blue{background:var(--info-bg);color:var(--brand)}
.cs-kpi-icon--green{background:var(--success-bg);color:var(--success)}
.cs-kpi-icon--amber{background:var(--warning-bg);color:var(--warning)}
.cs-kpi-icon--red{background:var(--danger-bg);color:var(--danger)}
.cs-kpi b{display:block;font-size:23px;font-weight:800;color:var(--navy);font-variant-numeric:tabular-nums}
.cs-kpi span{font-size:12px;color:var(--muted)}
.cs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.cs-filter{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cs-table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;font-size:13px}
.cs-table th{background:var(--surface-2);padding:12px 16px;text-align:left;font-weight:700;color:var(--muted);border-bottom:1px solid var(--line);font-size:12.5px;white-space:nowrap}
.cs-table td{padding:13px 16px;border-bottom:1px solid var(--line);color:var(--ink-2);vertical-align:middle}
.cs-table tr:last-child td{border-bottom:0}
.cs-table tbody tr{transition:background .12s}
.cs-table tbody tr:hover{background:var(--surface-2)}
.cs-thumb{width:44px;height:44px;border:1px solid var(--line);border-radius:7px;object-fit:cover;background:var(--surface-2)}
.cs-status{display:inline-flex;align-items:center;gap:6px;padding:3px 11px;border-radius:99px;font-size:11.5px;font-weight:700}
.cs-status--ok{background:var(--success-bg);color:var(--success)}
.cs-status--pending{background:var(--warning-bg);color:var(--warning)}
.cs-status--off{background:var(--danger-bg);color:var(--danger)}
.cs-status--info{background:var(--info-bg);color:var(--info)}
.cs-actions{display:flex;gap:8px;flex-wrap:wrap}
.cs-link{font-size:12.5px;font-weight:600;color:var(--brand);padding:5px 10px;border-radius:6px;transition:.13s}
.cs-link:hover{background:var(--brand-tint)}
.cs-link--danger{color:var(--danger)}
.cs-link--danger:hover{background:var(--danger-bg)}
.cs-empty{padding:48px 20px;text-align:center;color:var(--muted);font-size:13.5px}
.cs-login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--navy),var(--brand-800) 60%,var(--brand));padding:40px 20px}
.cs-login-card{width:100%;max-width:400px;background:var(--surface);border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.4);padding:42px 40px}
.cs-login-card .mark{width:48px;height:48px;border-radius:11px;background:linear-gradient(135deg,var(--brand),var(--navy));color:#fff;font-weight:800;font-size:20px;display:flex;align-items:center;justify-content:center;margin:0 auto 18px}
.cs-login-card h1{text-align:center;font-size:21px;font-weight:800;color:var(--navy);margin-bottom:4px}
.cs-login-card .sub{text-align:center;font-size:12.5px;color:var(--muted);margin-bottom:28px}

/* ================= 协议页 ================= */
.agreement-page{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);max-width:900px;margin:0 auto;padding:48px 56px}
.agreement-page h1{font-size:24px;font-weight:800;color:var(--navy);text-align:center;margin-bottom:8px}
.agreement-page .meta{text-align:center;font-size:12px;color:var(--faint);margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.agreement-page h2{font-size:16px;font-weight:800;color:var(--navy);margin:30px 0 12px;padding-left:12px;border-left:4px solid var(--brand)}
.agreement-page p,.agreement-page li{font-size:13.5px;color:var(--ink-2);line-height:2;margin-bottom:8px}
.agreement-page ol,.agreement-page ul{padding-left:24px}

/* ================= 工具类 ================= */
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.text-center{text-align:center}
.text-muted{color:var(--muted)}
.text-brand{color:var(--brand)}
.text-price{color:var(--price)}
.flex-between{display:flex;justify-content:space-between;align-items:center}
.nowrap{white-space:nowrap}

/* ================= 响应式 ================= */
@media(max-width:1100px){
  .m-grid{grid-template-columns:repeat(3,1fr)}
  .m-hero-inner{grid-template-columns:1fr;padding:48px 24px 52px}
  .m-hero h1{font-size:36px}
  .m-desc-grid{grid-template-columns:repeat(2,1fr)}
  .m-merchant-grid{grid-template-columns:repeat(2,1fr)}
  .m-uc-stats{grid-template-columns:repeat(2,1fr)}
  .cs-kpis{grid-template-columns:repeat(2,1fr)}
  .m-footer-inner{grid-template-columns:1fr 1fr;gap:32px}
}
@media(max-width:900px){
  .m-header-inner{height:auto;padding:16px 24px;flex-wrap:wrap;gap:16px}
  .m-search{order:3;max-width:none;flex-basis:100%}
  .m-hotwords{display:none}
  .m-catbar-inner{height:auto;flex-wrap:wrap;padding:6px 24px}
  .m-catnav{flex-wrap:wrap}
  .m-catnav a{padding:10px 16px}
  .m-catdrop{display:none}
  .m-auth{grid-template-columns:1fr}
  .m-auth-aside{display:none}
  .m-pd{grid-template-columns:1fr;padding:20px}
  .m-pd-main-img{height:auto}
  .m-pd-main-img img{height:auto}
  .m-cart{grid-template-columns:1fr}
  .m-cart-side{position:static}
  .m-cart-head{display:none}
  .m-cart-row{grid-template-columns:64px 1fr;grid-auto-rows:auto}
  .m-co{grid-template-columns:1fr}
  .m-co-side{position:static}
  .m-uc{grid-template-columns:1fr}
  .m-uc-side{position:static}
  .cs-layout{grid-template-columns:1fr}
  .cs-side{position:static;height:auto}
  .m-order-detail-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  body{font-size:13px}
  .m-topbar-inner{padding:0 16px}
  .m-topbar .welcome{display:none}
  .m-header-inner{padding:14px 16px}
  .m-brand-text b{font-size:16px}
  .m-catbar-inner{padding:4px 16px}
  .m-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .m-card-img{height:150px}
  .m-card-title{font-size:13px;min-height:40px}
  .m-card-price .amount{font-size:19px}
  .m-hero-inner{padding:36px 16px}
  .m-hero h1{font-size:28px}
  .m-hero-lead{font-size:13.5px}
  .m-service-inner{grid-template-columns:repeat(2,1fr)}
  .m-service-item + .m-service-item{border-left:0}
  .m-section{padding:28px 16px 4px}
  .m-section-title{font-size:19px}
  .m-merchant-grid{grid-template-columns:1fr}
  .m-uc-stats{grid-template-columns:1fr 1fr;gap:10px}
  .m-uc-stat b{font-size:19px}
  .m-toolbar{padding:12px 14px}
  .m-search-inline input{width:130px}
  .m-pd-actions{flex-direction:column}
  .m-pd-actions .m-btn-buy,.m-pd-actions .m-btn-cart{width:100%}
  .m-footer-inner{grid-template-columns:1fr;padding:32px 16px}
  .m-footer-bottom-inner{flex-direction:column;text-align:center;padding:14px 16px}
  .cs-content{padding:16px}
  .cs-kpis{grid-template-columns:1fr 1fr;gap:10px}
  .cs-table{font-size:12px}
  .cs-table th,.cs-table td{padding:9px 10px}
  .agreement-page{padding:28px 20px}
}
