/* ============================================
   巡光科技·SaaS管理平台 - 全站样式 v2.0
   默认外观：经典蓝（现代渐变风格）
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #2c3345;
    background: #f3f5fa;
}
a { color: #1a66d9; text-decoration: none; transition: color .15s ease; }
a:hover { color: #0f4fa8; }
ul { list-style: none; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #c9d2e0; border-radius: 3px; }

/* ---------- 主题色（默认外观：经典蓝） ---------- */
.theme-blue  { --primary: #2f6bff; --primary-deep: #1a4fd0; --primary-grad: linear-gradient(135deg, #3d7bff, #1a4fd0);
               --sidebar: linear-gradient(180deg, #1e2a3f 0%, #16202f 100%); --sidebar-active: rgba(61,123,255,.9); }
.theme-dark  { --primary: #556677; --primary-deep: #3c4a5a; --primary-grad: linear-gradient(135deg, #62738a, #3c4a5a);
               --sidebar: linear-gradient(180deg, #20262e, #171c23); --sidebar-active: rgba(98,115,138,.9); }
.theme-green { --primary: #12a06d; --primary-deep: #0c7f55; --primary-grad: linear-gradient(135deg, #16b87c, #0c7f55);
               --sidebar: linear-gradient(180deg, #1d3529, #152820); --sidebar-active: rgba(22,184,124,.85); }
.theme-red   { --primary: #d84a3b; --primary-deep: #b23527; --primary-grad: linear-gradient(135deg, #e85b4b, #b23527);
               --sidebar: linear-gradient(180deg, #3a2727, #291b1b); --sidebar-active: rgba(232,91,75,.85); }

/* ---------- 后台布局 ---------- */
.layout-admin { min-height: 100vh; }
.layout-admin .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 220px;
    background: var(--sidebar, linear-gradient(180deg, #1e2a3f, #16202f));
    color: #9daec5; z-index: 10; overflow-y: auto; transition: width .2s ease, transform .25s ease;
}
.layout-admin .sidebar::-webkit-scrollbar { width: 4px; }
.layout-admin .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); }
.layout-admin .sidebar .logo {
    min-height: 64px; display: flex; align-items: center; padding: 10px 20px; color: #fff;
    font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; letter-spacing: .5px;
}
.layout-admin .sidebar .role-tag {
    margin: 0 14px 10px; padding: 4px 12px; font-size: 12px; color: #8fa5c2;
    background: rgba(255,255,255,.07); border-radius: 20px; display: inline-block; white-space: nowrap;
}
.layout-admin .sidebar nav { padding: 4px 10px 20px; }
.layout-admin .sidebar nav a {
    display: flex; align-items: center; margin-bottom: 4px; padding: 10px 14px;
    color: #9daec5; font-size: 14px; border-radius: 8px; transition: all .18s ease;
}
.layout-admin .sidebar nav a::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.25); margin-right: 12px; flex-shrink: 0; transition: all .18s ease;
}
.layout-admin .sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.layout-admin .sidebar nav a.active {
    color: #fff; font-weight: bold;
    background: var(--sidebar-active, rgba(61,123,255,.9));
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.layout-admin .sidebar nav a.active::before { background: #fff; }
.layout-admin .main { margin-left: 220px; min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s ease; }
.layout-admin .topbar {
    height: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
    box-shadow: 0 1px 4px rgba(16,42,83,.06); position: sticky; top: 0; z-index: 9;
}
.layout-admin .topbar-title { font-size: 16px; font-weight: bold; color: #1f2a3d; }
.layout-admin .topbar-right { display: flex; align-items: center; gap: 14px; }
.layout-admin .topbar-right .welcome { color: #66738c; font-size: 13px; }
.layout-admin .content { flex: 1; padding: 22px 26px; }
.layout-admin .footer { padding: 14px 24px; color: #98a3b8; font-size: 12px; text-align: center; }

/* ---------- 通用组件 ---------- */
.card {
    background: #fff; border-radius: 12px; padding: 22px;
    box-shadow: 0 2px 10px rgba(16,42,83,.05); margin-bottom: 20px;
    transition: box-shadow .2s ease;
}
.card:hover { box-shadow: 0 4px 16px rgba(16,42,83,.08); }
.card-title {
    font-size: 15px; font-weight: bold; margin-bottom: 16px; color: #1f2a3d;
    padding-left: 12px; border-left: 4px solid var(--primary, #2f6bff); border-radius: 2px;
}

table.table { width: 100%; border-collapse: collapse; }
table.table th, table.table td {
    padding: 11px 12px; border-bottom: 1px solid #eef1f6; text-align: left;
    font-size: 13px; word-break: break-all;
}
table.table th { background: #f7f9fd; color: #5a6a85; font-weight: bold; white-space: nowrap; border-radius: 4px; }
table.table tr:hover td { background: #f8faff; }
.table-empty { text-align: center; color: #9aa6bc; padding: 36px 0 !important; }

.btn {
    display: inline-block; padding: 7px 18px; border: 1px solid transparent;
    border-radius: 7px; background: var(--primary-grad, linear-gradient(135deg, #3d7bff, #1a4fd0));
    color: #fff; font-size: 13px; cursor: pointer; line-height: 1.5; vertical-align: middle;
    transition: all .18s ease; box-shadow: 0 2px 6px rgba(47,107,255,.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(47,107,255,.35); color: #fff; opacity: 1; }
.btn-sm { padding: 4px 12px; font-size: 12px; border-radius: 6px; }
.btn-plain { background: #fff; color: #556; border-color: #dfe4ee; box-shadow: none; }
.btn-plain:hover { color: var(--primary, #2f6bff); border-color: var(--primary, #2f6bff); transform: none; box-shadow: none; }
.btn-green { background: linear-gradient(135deg, #16b87c, #0c7f55); box-shadow: 0 2px 6px rgba(18,160,109,.25); }
.btn-green:hover { box-shadow: 0 4px 10px rgba(18,160,109,.35); }
.btn-red { background: linear-gradient(135deg, #e85b4b, #b23527); box-shadow: 0 2px 6px rgba(216,74,59,.25); }
.btn-red:hover { box-shadow: 0 4px 10px rgba(216,74,59,.35); }
.btn-orange { background: linear-gradient(135deg, #f0a03a, #d97e14); box-shadow: 0 2px 6px rgba(232,132,44,.25); }
.btn:disabled { background: #b8bec6; cursor: not-allowed; box-shadow: none; transform: none; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.badge-green { background: #e3f8ee; color: #0c7f55; }
.badge-red { background: #fdeae8; color: #c0392b; }
.badge-blue { background: #e8effe; color: #2f6bff; }
.badge-orange { background: #fdf1e0; color: #d97e14; }
.badge-gray { background: #f0f2f6; color: #8a93a6; }

/* 表单 */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; color: #55627a; font-weight: bold; font-size: 13px; }
.form-row .tip { color: #9aa6bc; font-size: 12px; margin-top: 4px; }
input[type=text], input[type=password], input[type=number], input[type=url],
select, textarea {
    width: 100%; max-width: 420px; padding: 8px 12px; border: 1px solid #dfe4ee;
    border-radius: 7px; font-size: 13px; background: #fbfcfe; outline: none;
    font-family: inherit; transition: all .18s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary, #2f6bff); background: #fff;
    box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
textarea { min-height: 90px; resize: vertical; }
input[type=file] { font-size: 13px; }
.radio-line { margin-bottom: 6px; }
.radio-line input { width: auto; margin-right: 5px; accent-color: var(--primary, #2f6bff); }

/* 搜索栏 */
.search-bar { margin-bottom: 16px; }
.search-bar input, .search-bar select { display: inline-block; width: auto; margin-right: 8px; }

/* 提示 */
.alert { padding: 11px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #e3f8ee; color: #0c7f55; border: 1px solid #bfead7; }
.alert-error { background: #fdeae8; color: #c0392b; border: 1px solid #f5cbc6; }

/* 操作结果浮层提示（保存后页面停留在原滚动位置，顶部提示看不见，用浮层兜住结果） */
.xg-toast {
    position: fixed; left: 50%; top: 74px; transform: translateX(-50%);
    z-index: 99999; display: flex; align-items: flex-start; gap: 9px;
    max-width: 560px; width: max-content; max-height: 46vh; overflow: auto;
    padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid #e3e9f4;
    box-shadow: 0 10px 32px rgba(16,42,83,.16); font-size: 13px; line-height: 1.7; color: #3c4a63;
    animation: xgToastIn .22s ease;
}
.xg-toast-hide { animation: xgToastOut .38s ease forwards; }
.xg-toast-ico {
    flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; background: #16b87c;
}
.xg-toast-error .xg-toast-ico { background: #e85b4b; }
.xg-toast-error { border-color: #f6cdc7; background: #fff8f7; }
.xg-toast-txt { flex: 1; min-width: 0; word-break: break-word; }
.xg-toast-x {
    flex: 0 0 auto; border: none; background: none; cursor: pointer;
    color: #9aa6bc; font-size: 18px; line-height: 1; padding: 0 2px;
}
.xg-toast-x:hover { color: #c0392b; }
@keyframes xgToastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes xgToastOut { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, -10px); } }
@media (max-width: 600px) {
    .xg-toast { top: 68px; width: calc(100% - 24px); padding: 10px 12px; font-size: 12.5px; }
}

/* 分页 */
.pagination { margin-top: 16px; color: #66738c; font-size: 13px; }
.pagination a, .pagination span {
    display: inline-block; padding: 4px 11px; margin-left: 4px;
    border: 1px solid #dfe4ee; border-radius: 7px; background: #fff; transition: all .15s ease;
}
.pagination a:hover { border-color: var(--primary, #2f6bff); color: var(--primary, #2f6bff); }
.pagination .cur { background: var(--primary-grad, linear-gradient(135deg, #3d7bff, #1a4fd0)); color: #fff; border-color: transparent; }

/* ---------- 控制台 ---------- */
.welcome-banner {
    position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 20px;
    background: var(--primary-grad, linear-gradient(135deg, #3d7bff, #1a4fd0));
    color: #fff; padding: 26px 28px; box-shadow: 0 6px 18px rgba(47,107,255,.3);
}
.welcome-banner::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
    border-radius: 50%; background: rgba(255,255,255,.12);
}
.welcome-banner::before {
    content: ''; position: absolute; right: 60px; bottom: -70px; width: 140px; height: 140px;
    border-radius: 50%; background: rgba(255,255,255,.08);
}
.welcome-banner h2 { font-size: 20px; margin-bottom: 6px; position: relative; z-index: 1; }
.welcome-banner p { font-size: 13px; opacity: .9; position: relative; z-index: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-item {
    background: #fff; border-radius: 12px; padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(16,42,83,.05); border-top: 3px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat-item:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(16,42,83,.1); }
.stat-item .num { font-size: 26px; font-weight: bold; color: #1f2a3d; }
.stat-item .label { color: #8a93a6; font-size: 13px; margin-top: 4px; }
.stat-blue   { border-top-color: #3d7bff; } .stat-blue .num   { color: #2f6bff; }
.stat-green  { border-top-color: #16b87c; } .stat-green .num  { color: #0c7f55; }
.stat-orange { border-top-color: #f0a03a; } .stat-orange .num { color: #d97e14; }
.stat-red    { border-top-color: #e85b4b; } .stat-red .num    { color: #c0392b; }
.stat-cyan   { border-top-color: #18b2c7; } .stat-cyan .num   { color: #0f93a5; }
.stat-purple { border-top-color: #8b6cf0; } .stat-purple .num { color: #6c4fd8; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick-item {
    display: block; text-align: center; padding: 18px 8px; background: #f7f9fd;
    border-radius: 10px; color: #44506a; font-size: 13px; transition: all .18s ease;
}
.quick-item:hover { background: var(--primary, #2f6bff); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(47,107,255,.3); }

/* 订单趋势图（纯CSS柱状图） */
.chart-box { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 10px 6px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-col .bar {
    width: 60%; max-width: 46px; min-height: 4px; border-radius: 6px 6px 0 0;
    background: var(--primary-grad, linear-gradient(135deg, #3d7bff, #1a4fd0));
    opacity: .85; transition: opacity .18s ease; position: relative;
}
.chart-col:hover .bar { opacity: 1; }
.chart-col .val { font-size: 12px; color: #55627a; margin-bottom: 4px; font-weight: bold; }
.chart-col .day { font-size: 12px; color: #9aa6bc; margin-top: 6px; }

/* ---------- 弹窗（模态框） ---------- */
.modal-mask {
    display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(15,25,45,.5); backdrop-filter: blur(2px); z-index: 99990; overflow-y: auto; padding: 24px 16px;
}
.modal-mask.open { display: flex; align-items: center; justify-content: center; }
.modal-box {
    background: #fff; border-radius: 14px; max-width: 580px; width: 100%;
    max-height: calc(100vh - 48px); overflow-y: auto; margin: 0 auto;
    padding: 24px 26px 26px; box-shadow: 0 16px 50px rgba(10,20,40,.25);
    animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 手机端弹窗也保持正中间 */
@media (max-width: 600px) {
    .modal-mask { padding: 16px 12px; align-items: center; }
    .modal-box { max-height: calc(100vh - 32px); }
}

/* ---------- 列表表格独立滚动：标题/表头固定，仅数据行滑动 ---------- */
.tbl-scroll { overflow: auto; max-height: calc(100vh - 235px); border-radius: 10px; }
.tbl-scroll .table, .tbl-scroll table { margin: 0; }
.tbl-scroll th {
    position: sticky; top: 0; z-index: 5;
    background: #f4f7fc;
    box-shadow: inset 0 -1px 0 #e4eaf4;
}
.modal-title {
    font-size: 15px; font-weight: bold; margin-bottom: 18px; color: #1f2a3d;
    padding-left: 12px; border-left: 4px solid var(--primary, #2f6bff); border-radius: 2px;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-close { cursor: pointer; color: #9aa6bc; font-size: 22px; line-height: 1; background: none; border: none; }
.modal-close:hover { color: #c0392b; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.toolbar .toolbar-title { font-size: 15px; font-weight: bold; padding-left: 12px; border-left: 4px solid var(--primary, #2f6bff); border-radius: 2px; }

/* ---------- 侧边栏展开/收起 ---------- */
.sidebar-toggle {
    width: 36px; height: 36px; border: 1px solid #e3e8f2; border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 15px; color: #55627a; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; transition: all .18s ease;
}
.sidebar-toggle:hover { color: var(--primary, #2f6bff); border-color: var(--primary, #2f6bff); background: #f2f6ff; }
body.sidebar-collapsed .sidebar { width: 64px; }
body.sidebar-collapsed .sidebar .logo,
body.sidebar-collapsed .sidebar .role-tag { display: none; }
body.sidebar-collapsed .sidebar nav a {
    padding: 11px 0; justify-content: center; font-size: 13px;
}
body.sidebar-collapsed .sidebar nav a::before { display: none; }
body.sidebar-collapsed .sidebar nav a .menu-txt { display: none; }
body.sidebar-collapsed .sidebar nav a::after {
    content: attr(data-short); font-weight: bold; color: inherit;
}
body.sidebar-collapsed .main { margin-left: 64px; }

/* 手机端：抽屉式侧边栏（默认隐藏，点 ☰ 弹出） */
.sidebar-mask { display: none; }
@media (max-width: 900px) {
    .layout-admin .sidebar {
        width: 240px; transform: translateX(-100%); z-index: 99980;
        box-shadow: 4px 0 20px rgba(0,0,0,.25);
    }
    .layout-admin .main { margin-left: 0; }
    .layout-admin .content { padding: 14px; }
    .layout-admin .topbar { padding: 0 14px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    /* 手机端：卡片不再作为滚动容器（overflow 容器会劫持触摸滚动，
       滑到底后继续滑动会把内容滚出视口导致整卡空白） */
    .card { overflow: visible; }
    /* 表格横向滚动只由外层 .tbl-scroll 一层负责（footer 脚本自动包裹），
       表格保持原生布局；不允许出现第二层滚动容器，否则滑动会在两层间跳变卡顿 */
    .tbl-scroll { max-height: none; overflow-x: auto; overflow-y: hidden; }
    table.table { min-width: 640px; }
    table.table th, table.table td { white-space: nowrap; word-break: keep-all; }
    .card .table-empty { min-width: 0; }
    .table-empty { white-space: normal; }
    /* 卡片内搜索栏在手机端恢复自动换行（不再强制 600px 宽横向滑） */
    .search-bar { min-width: 0; flex-wrap: wrap; }
    /* 报表页趋势图（30天列）在手机端改为图表内横向滑动，避免撑破整页宽度 */
    .chart-box { overflow-x: auto; overflow-y: hidden; }
    .chart-box .chart-col { flex: 0 0 auto; min-width: 38px; }
    /* 页面兜底：任何超宽内容不允许把 body 撑出横向滚动 */
    .layout-admin .content { max-width: 100%; overflow-x: clip; }
    /* 桌面端的"收起窄条"状态在手机端一律还原为完整抽屉内容 */
    body.sidebar-collapsed .sidebar { width: 240px; }
    body.sidebar-collapsed .sidebar .logo,
    body.sidebar-collapsed .sidebar .role-tag { display: flex; }
    body.sidebar-collapsed .sidebar nav a {
        padding: 10px 14px; justify-content: flex-start;
    }
    body.sidebar-collapsed .sidebar nav a::after { content: none; }
    body.sidebar-collapsed .sidebar nav a .menu-txt { display: inline; }
    body.sidebar-collapsed .main { margin-left: 0; }
    /* 抽屉弹出规则放最后：优先级最高，任何状态下点 ☰ 都必须弹出完整菜单 */
    body.sidebar-open .sidebar { transform: none !important; }
    body.sidebar-open .sidebar-mask {
        display: block; position: fixed; left: 0; top: 0; right: 0; bottom: 0;
        background: rgba(15,25,45,.45); z-index: 99970;
    }
}

/* ---------- 登录页 ---------- */
.page-login {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e9effc 0%, #f3f5fa 55%, #e6f3fa 100%);
}
.login-box {
    width: 390px; background: #fff; border-radius: 16px; padding: 38px 34px 30px;
    box-shadow: 0 12px 40px rgba(16,42,83,.12); animation: modalIn .3s ease;
}
.login-box .login-head { text-align: center; margin-bottom: 28px; }
.login-box .login-head h1 { font-size: 20px; color: #1f2a3d; }
.login-box .login-head p { color: #8a93a6; font-size: 13px; margin-top: 6px; }
.login-box .form-row input { max-width: 100%; background: #fff; }
.login-box .btn { width: 100%; padding: 10px; font-size: 15px; }
.login-foot { text-align: center; color: #a5aec0; font-size: 12px; margin-top: 18px; }

/* ---------- 自助下单端 ---------- */
.shop-page { background: #f5f7fb; min-height: 100vh; }
.shop-header { background: #fff; box-shadow: 0 1px 4px rgba(16,42,83,.06); position: sticky; top: 0; z-index: 20; }
.shop-header .inner {
    max-width: 1100px; margin: 0 auto; padding: 0 16px; height: 58px;
    display: flex; align-items: center; justify-content: space-between;
}
.shop-header .shop-name { font-size: 18px; font-weight: bold; color: #1f2a3d; }
.shop-nav { display: flex; gap: 4px; }
.shop-nav a { padding: 6px 15px; border-radius: 20px; color: #55627a; font-size: 14px; transition: all .18s ease; }
.shop-nav a.on, .shop-nav a:hover { background: var(--primary-grad, linear-gradient(135deg, #3d7bff, #1a4fd0)); color: #fff; }
.shop-container { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }

/* 底部悬浮毛玻璃导航栏 */
.shop-page { padding-bottom: 100px; }
.shop-tabbar {
    position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
    z-index: 60; display: flex; gap: 4px; padding: 8px 12px;
    background: rgba(255, 255, 255, .58);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 28px;
    box-shadow: 0 10px 34px rgba(16, 42, 83, .18), 0 2px 8px rgba(16, 42, 83, .08);
}
.shop-tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 66px; padding: 7px 12px; border-radius: 20px;
    color: #55627a; font-size: 12px; text-decoration: none; transition: all .2s ease;
}
.shop-tabbar a i { font-style: normal; font-size: 19px; line-height: 1; filter: grayscale(.35) opacity(.85); transition: inherit; }
.shop-tabbar a.on, .shop-tabbar a:hover {
    background: var(--primary-grad, linear-gradient(135deg, #3d7bff, #1a4fd0));
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 107, 255, .38);
}
.shop-tabbar a.on i, .shop-tabbar a:hover i { filter: none; }
@media (max-width: 640px) {
    .shop-tabbar { bottom: 10px; padding: 6px 8px; }
    .shop-tabbar a { min-width: 58px; padding: 6px 10px; font-size: 11px; }
    .shop-tabbar a i { font-size: 17px; }
    .shop-page { padding-bottom: 92px; }
}

/* 前台商品分类筛选条 */
.shop-catbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.shop-catbar a {
    padding: 7px 16px; border-radius: 999px; background: #fff; color: #55627a;
    font-size: 13px; border: 1px solid #e3e8f2; transition: all .16s ease; text-decoration: none;
}
.shop-catbar a:hover { border-color: var(--primary, #2f6bff); color: var(--primary, #2f6bff); }
.shop-catbar a.on {
    background: var(--primary-grad, linear-gradient(135deg, #3d7bff, #1a4fd0));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(47, 107, 255, .3);
}
.goods-card .cat-tag {
    display: inline-block; font-size: 11px; color: var(--primary, #2f6bff);
    background: rgba(47, 107, 255, .08); border-radius: 5px; padding: 2px 8px; margin-bottom: 6px;
}

/* 轮播图 */
.banner { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 22px; box-shadow: 0 4px 14px rgba(16,42,83,.1); }
.banner .slides { position: relative; height: 260px; }
.banner .slide {
    position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; font-weight: bold; letter-spacing: 2px;
    background: linear-gradient(120deg, #24384f, #2f6bff);
}
.banner .slide:first-child { display: flex; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; }
.banner .dots i {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,.55); margin: 0 4px; cursor: pointer; transition: all .18s ease;
}
.banner .dots i.on { background: #fff; width: 18px; border-radius: 5px; }

/* 商品卡片 */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goods-card {
    background: #fff; border-radius: 12px; padding: 20px;
    box-shadow: 0 2px 10px rgba(16,42,83,.05); transition: all .18s ease;
}
.goods-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16,42,83,.12); }
.goods-card h3 { font-size: 16px; margin-bottom: 8px; color: #1f2a3d; }
.goods-card .desc { color: #8a93a6; font-size: 13px; min-height: 40px; }
.goods-card .price { color: #e85b4b; font-size: 22px; font-weight: bold; margin: 10px 0; }
.goods-card .price small { font-size: 13px; font-weight: normal; }
.shop-sec-title { font-size: 17px; font-weight: bold; margin: 24px 0 14px; color: #1f2a3d; padding-left: 12px; border-left: 4px solid var(--primary, #2f6bff); border-radius: 2px; }
.shop-footer { text-align: center; color: #9aa6bc; font-size: 12px; padding: 24px 0 30px; }

/* 下单面板 */
.order-panel { background: #fff; border-radius: 12px; padding: 26px; max-width: 640px; margin: 0 auto; box-shadow: 0 2px 10px rgba(16,42,83,.05); }
.pay-ways { display: flex; gap: 12px; margin: 12px 0 20px; }
.pay-ways label {
    flex: 1; border: 1px solid #dfe4ee; border-radius: 9px; padding: 12px;
    text-align: center; cursor: pointer; font-size: 14px; transition: all .18s ease;
}
.pay-ways label.on { border-color: var(--primary, #2f6bff); color: var(--primary, #2f6bff); background: #f2f6ff; }
.pay-ways input { display: none; }

@media (max-width: 900px) {
    .goods-grid { grid-template-columns: 1fr; }
}

/* ---------- 登录页Logo ---------- */
.login-logo { display:block; margin:0 auto 8px; width:88px; max-width:55%; border-radius:12px; }
.portal-logo { display:block; margin:0 auto 8px; width:76px; max-width:50%; border-radius:10px; }

/* ---------- 去除移动端点击蓝色/灰色高亮 ---------- */
* { -webkit-tap-highlight-color: rgba(0,0,0,0) !important; tap-highlight-color: transparent !important; }
a, button, input, select, textarea, label, [onclick] { -webkit-tap-highlight-color: transparent !important; outline: none !important; }
a:focus, button:focus, [onclick]:focus { outline: none !important; }
