/* 供需选品对接平台 · H5 移动端样式（简洁商务风） */
:root{
  --primary:#1565c0;
  --primary-dark:#0d47a1;
  --accent:#e65100;
  --text:#1f2d3d;
  --muted:#72839a;
  --line:#e5eaf1;
  --bg:#f4f6fa;
  --card:#fff;
  --ok:#2e7d32;
  --warn:#b26a00;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.6;padding-bottom:64px}
a{color:var(--primary);text-decoration:none}
img{max-width:100%;display:block}
.topbar{position:sticky;top:0;z-index:20;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 10px rgba(21,101,192,.18)}
.topbar .brand{font-size:17px;font-weight:700;letter-spacing:.5px}
.topbar a{color:#fff;font-size:13px;opacity:.92;margin-left:12px}
.wrap{max-width:640px;margin:0 auto;padding:14px}
.card{background:var(--card);border-radius:10px;padding:15px;margin-bottom:12px;box-shadow:0 2px 10px rgba(31,45,61,.05)}
.card h2{font-size:17px;margin:0 0 12px}
.card h3{font-size:15px;margin:0 0 8px}
.muted{color:var(--muted);font-size:13px}
.row{display:flex;align-items:center;gap:8px}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:10px}
.grid{display:grid;gap:12px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.tag{display:inline-block;font-size:12px;padding:2px 8px;border-radius:20px;background:#e8f1fc;color:var(--primary)}
.tag.warn{background:#fff3e0;color:var(--warn)}
.tag.ok{background:#e8f5e9;color:var(--ok)}
.tag.gray{background:#eef1f5;color:var(--muted)}
.label{color:var(--muted);font-size:13px;min-width:72px}
.value{flex:1;word-break:break-all}
.divider{height:1px;background:var(--line);margin:10px 0}
.btn{display:inline-block;border:0;border-radius:6px;background:var(--primary);color:#fff;padding:9px 16px;font-size:14px;cursor:pointer;text-align:center;line-height:1.4}
.btn:active{opacity:.85}
.btn.block{display:block;width:100%;padding:12px;font-size:16px}
.btn.ghost{background:#fff;color:var(--primary);border:1px solid var(--primary)}
.btn.gray{background:#eef1f5;color:var(--muted)}
.btn.danger{background:#fff;color:#c62828;border:1px solid #f3b6b6}
.btn.small{padding:5px 10px;font-size:12px}
.btn-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
form .field{margin-bottom:13px}
form label{display:block;font-size:13px;color:var(--muted);margin-bottom:5px}
input,select,textarea{width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);font-size:15px;font-family:inherit;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--primary)}
textarea{min-height:96px;resize:vertical}
input[type=checkbox]{width:auto;margin-right:6px}
.checkline{display:flex;align-items:center;font-size:14px;color:var(--text)}
.error{background:#fff1f0;color:#c62828;border-radius:6px;padding:9px 11px;margin-bottom:12px;font-size:13px}
.notice{background:#e8f1fc;color:var(--primary-dark);border-radius:6px;padding:9px 11px;margin-bottom:12px;font-size:13px}
.list-item{padding:13px 0;border-bottom:1px solid var(--line)}
.list-item:last-child{border-bottom:0;padding-bottom:0}
.list-item .title{font-size:16px;font-weight:600;margin-bottom:5px}
.thumb{width:92px;height:72px;object-fit:cover;border-radius:6px;background:#eef1f5;flex-shrink:0}
.thumb-single{width:100%;height:180px;object-fit:cover;border-radius:8px;background:#eef1f5}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.gallery img{width:100%;height:88px;object-fit:cover;border-radius:6px;background:#eef1f5}
.tabs{display:flex;gap:6px;background:#fff;border-radius:8px;padding:5px;margin-bottom:12px}
.tabs a{flex:1;text-align:center;padding:7px 4px;border-radius:6px;color:var(--muted);font-size:14px}
.tabs a.active{background:var(--primary);color:#fff}
.filters{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.filters select,.filters input{width:auto;flex:1;min-width:110px;font-size:13px;padding:8px}
.pager{display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 0 20px;font-size:13px;color:var(--muted)}
.pager a{background:#fff;padding:5px 12px;border-radius:5px;border:1px solid var(--line)}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:56px;background:#fff;border-top:1px solid var(--line);display:flex;z-index:30;box-shadow:0 -2px 10px rgba(0,0,0,.03)}
.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);font-size:11px;gap:2px}
.bottom-nav a.active{color:var(--primary);font-weight:600}
.bottom-nav .ico{font-size:19px;line-height:1}
.center-head{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;border-radius:10px;padding:18px;margin-bottom:12px}
.center-head .name{font-size:19px;font-weight:700}
.center-head .sub{font-size:13px;opacity:.85;margin-top:4px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}
.stat-grid .num{font-size:20px;font-weight:700;color:var(--primary)}
.stat-grid .txt{font-size:11px;color:var(--muted)}
.link-list a{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);color:var(--text)}
.link-list a:last-child{border-bottom:0}
.link-list .arrow{color:#b6c0cc}
.empty{text-align:center;color:var(--muted);padding:36px 10px;font-size:14px}
.upload-box{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.upload-box .pic{position:relative}
.upload-box .pic img{width:76px;height:76px;object-fit:cover;border-radius:6px}
.upload-box .pic span{position:absolute;right:-5px;top:-5px;background:rgba(0,0,0,.6);color:#fff;border-radius:50%;width:19px;height:19px;text-align:center;line-height:19px;font-size:12px;cursor:pointer}
.upload-add{width:76px;height:76px;border:1px dashed #b7c4d4;border-radius:6px;color:var(--muted);display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:12px;cursor:pointer;background:#fafbfd}
.kv{display:flex;padding:5px 0;font-size:14px}
.kv .k{width:82px;color:var(--muted);flex-shrink:0}
.kv .v{flex:1;word-break:break-all}
.fixed-bottom{position:sticky;bottom:56px;background:#fff;padding:10px 0 4px;border-top:1px solid var(--line);margin-top:12px}
@media (min-width:641px){body{padding-top:8px}.wrap{padding:16px}.bottom-nav{max-width:640px;left:50%;transform:translateX(-50%)}}
