/* 星途 Stellroute HTZL Web — 全局样式 v2（国内优选版） */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f4f6fa; color: #1f2733; }
.topbar { background: linear-gradient(135deg, #101828 0%, #1b2a4a 100%); color: #fff; padding: 13px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; box-shadow: 0 2px 10px rgba(16,24,40,.25); position: sticky; top: 0; z-index: 50; }
.topbar b { font-size: 17px; letter-spacing: .5px; }
.topbar a { color: #9fb3d9; text-decoration: none; font-size: 13px; padding: 4px 6px; border-radius: 5px; }
.topbar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar a.on { color: #fff; font-weight: bold; background: rgba(27,79,216,.45); }
.wrap { max-width: 1200px; margin: 18px auto; padding: 0 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs button { border: 1px solid #d0d7e2; background: #fff; padding: 7px 15px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all .15s; }
.tabs button:hover { border-color: #1b4fd8; color: #1b4fd8; }
.tabs button.on { background: linear-gradient(135deg,#1b4fd8,#3b6ef0); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(27,79,216,.3); }
.panel { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(16,24,40,.05); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.card { background: linear-gradient(160deg,#f8faff,#eef3fd); border: 1px solid #e3e8f0; border-radius: 10px; padding: 14px; text-align: center; }
.card .n { font-size: 26px; font-weight: bold; background: linear-gradient(135deg,#1b4fd8,#6a3bf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card .t { font-size: 12px; color: #667085; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid #edf0f5; padding: 8px; text-align: left; vertical-align: top; }
th { background: #f8faff; color: #475467; font-weight: 600; position: sticky; top: 0; }
tr:hover td { background: #fbfcff; }
input, select, textarea { border: 1px solid #c9d2e0; border-radius: 7px; padding: 8px 10px; font-size: 13px; font-family: inherit; transition: border .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #1b4fd8; box-shadow: 0 0 0 3px rgba(27,79,216,.12); }
button.act { background: linear-gradient(135deg,#1b4fd8,#3b6ef0); color: #fff; border: none; padding: 8px 16px; border-radius: 7px; cursor: pointer; font-size: 13px; box-shadow: 0 2px 6px rgba(27,79,216,.25); }
button.act:hover { filter: brightness(1.1); }
button.warn { background: #c0392b; color:#fff; border:none; padding: 8px 14px; border-radius: 7px; cursor: pointer; font-size: 13px; }
button.ghost { background: #eef2f9; color: #1f2733; border:1px solid #d9e0ea; padding: 8px 14px; border-radius: 7px; cursor: pointer; font-size: 13px; }
button.ghost:hover { background: #e2e9f5; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 11px; }
.b-hot { background: linear-gradient(135deg,#fff3e0,#ffe4c2); color: #b26a00; font-weight: 600; }
.b-ok { background: #e7f6ec; color: #1e7e42; }
.b-no { background: #fdeaea; color: #c0392b; }
.b-mid { background: #eef2f9; color: #475467; }
.b-block { background: repeating-linear-gradient(45deg,#fdeaea,#fdeaea 6px,#fbd5d5 6px,#fbd5d5 12px); color: #c0392b; font-weight: 600; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.muted { color: #98a2b3; font-size: 12px; }
/* ---- 淘宝风橱窗 ---- */
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.scard { background: #fff; border: 1px solid #e8ecf3; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .18s; }
.scard:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16,24,40,.12); border-color: #c9d6f2; }
.scard img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.scard .body { padding: 10px 12px 12px; }
.scard .title { font-size: 13.5px; line-height: 1.45; height: 39px; overflow: hidden; margin-bottom: 6px; }
.scard .price { color: #e64545; font-size: 19px; font-weight: bold; }
.scard .price small { font-size: 12px; font-weight: normal; }
.scard .sub { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #98a2b3; }
/* ---- 详情弹层 ---- */
.modal-mask { position: fixed; inset: 0; background: rgba(16,24,40,.55); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 14px; width: min(860px, 94vw); max-height: 90vh; overflow-y: auto; display: flex; gap: 18px; padding: 20px; position: relative; }
.modal .mimg { width: 340px; flex-shrink: 0; }
.modal .mimg img { width: 100%; border-radius: 10px; }
.modal .minfo { flex: 1; }
.modal .mclose { position: absolute; right: 14px; top: 10px; font-size: 22px; cursor: pointer; color: #98a2b3; border: none; background: none; }
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 12px 0; font-size: 13px; }
.plist dt { color: #98a2b3; }
.plist dd { color: #1f2733; }
/* ---- 聊天 ---- */
.chatbox { border: 1px solid #e3e8f0; border-radius: 10px; height: 380px; overflow-y: auto; padding: 14px; background: #fbfcff; }
.msg { margin-bottom: 10px; max-width: 78%; }
.msg .who { font-size: 11px; color: #98a2b3; margin-bottom: 2px; }
.msg .b { padding: 9px 13px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; }
.msg.buyer { margin-left: auto; }
.msg.buyer .b { background: linear-gradient(135deg,#1b4fd8,#3b6ef0); color: #fff; }
.msg.merchant .b { background: #fff; border: 1px solid #d9e0ea; }
.msg .tr { font-size: 12px; color: #667085; margin-top: 3px; font-style: italic; }
h3 { font-size: 15px; margin-bottom: 10px; }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid #e3e8f0; }
.score { font-weight: bold; font-size: 15px; }
.score.s-hot { color: #e67e22; }
.score.s-nor { color: #1b4fd8; }
.score.s-blk { color: #c0392b; }

/* ===== owner 2026-10-18 改造：卡片对齐/hover · 顶栏折叠 · 套装预览/缩略图动效 ===== */
.scard{display:flex;flex-direction:column}
.scard .body{flex:1;display:flex;flex-direction:column}
.scard .sub{margin-top:auto;padding-top:6px}
.scard:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(16,24,40,.12)}
.scard img{transition:transform .25s}
.scard:hover img{transform:scale(1.04)}
.savebadge{color:#067647;background:#dcfae6;border-radius:8px;padding:2px 8px;font-weight:600}
.kitlay{display:flex;gap:18px;align-items:flex-start}
.kitleft{width:280px;flex-shrink:0}
.kitthumbs img{transition:transform .15s ease,box-shadow .15s ease;border:1px solid #e4e7ec}
.kitthumbs img:hover{transform:scale(1.1)}
.kitthumbs img.on{border-color:#175cd3;box-shadow:0 0 0 2px #175cd3}
#stnToggle{display:none;padding:8px 14px;border:1px solid #d0d5dd;border-radius:20px;background:#fff;cursor:pointer;font-size:13.5px;margin-bottom:6px}
@media (max-width:640px){
 #stnToggle{display:inline-block}
 #tabs{max-height:0;overflow:hidden;transition:max-height .25s ease;flex-direction:column;align-items:stretch;gap:6px}
 #tabs.open{max-height:680px}
 #tabs .stab{width:100%;text-align:left}
 .kitlay{flex-direction:column}
 .kitleft{width:100%}
 .modal .mimg{width:100%}
 .modal{max-height:92vh;overflow:auto}
}
