/* ================= 发卡网平台 - 全局样式 ================= */
:root {
    --bg: #f5f6fa;
    --card: #ffffff;
    --text: #1f2430;
    --muted: #7a8296;
    --line: #e9ebf2;
    --brand: #5b5bd6;
    --brand-soft: #eef0ff;
    --brand-deep: #4646c6;
    --ok: #12b76a;
    --warn: #f79009;
    --danger: #f04438;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(24, 28, 50, .07);
    --shadow-sm: 0 2px 8px rgba(24, 28, 50, .05);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { opacity: .85; }

main { min-height: calc(100vh - 300px); }

img { max-width: 100%; vertical-align: middle; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.container-narrow { max-width: 560px; margin: 0 auto; padding: 0 18px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: .2px; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #8b7cf6); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; }
.brand img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #555e70; font-size: 14.5px; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav .spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s ease; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: var(--brand-deep); color: #fff; opacity: 1; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.btn-light:hover { background: #fafaff; color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); border-color: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-outline { background: transparent; color: var(--text); border-color: #d9dce7; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #d92d20; }
.btn-success { background: var(--ok); }
.btn-success:hover { background: #039855; }
.btn-warn { background: var(--warn); }
.btn-warn:hover { background: #dc6803; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 6px; }

/* ---------- 卡片 / 布局 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.section { margin: 26px 0 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: .2px; }
.section-sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

/* ---------- 首页（新版见 home.css） ---------- */

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.shop-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: all .18s ease; color: var(--text); }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dedbff; opacity: 1; }
.shop-card-top { display: flex; align-items: center; gap: 12px; }
.shop-avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #eef0ff, #f3e8ff); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex: 0 0 44px; overflow: hidden; }
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-name { font-weight: 700; font-size: 15.5px; }
.shop-meta { color: var(--muted); font-size: 12.5px; }
.shop-intro { color: #667085; font-size: 13px; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.shop-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- 店铺页 ---------- */
.shop-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.shop-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-head .shop-avatar { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 16px; font-size: 22px; }
.shop-head h1 { font-size: 22px; margin: 0; letter-spacing: -.2px; }
.shop-head .muted { font-size: 13px; }
.shop-actions { margin-left: auto; display: flex; gap: 8px; }
.notice { background: #fffbeb; border: 1px solid #fef0c7; color: #93370d; border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: 13.5px; white-space: pre-wrap; }
.notice-title { font-weight: 700; margin-right: 8px; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: #4b5563; font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.tab .count { color: var(--muted); font-size: 12px; }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab.active .count { color: rgba(255, 255, 255, .8); }

.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.goods-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px;
    cursor: pointer; transition: all .16s ease; position: relative; display: flex; flex-direction: column; gap: 8px;
}
.goods-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #dcd9ff; }
.goods-card.soldout { opacity: .62; cursor: not-allowed; }
.goods-title { font-weight: 650; font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.goods-sub { color: var(--muted); font-size: 12.5px; }
.goods-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { color: #e5484d; font-weight: 800; font-size: 20px; line-height: 1; }
.price small { font-size: 12px; font-weight: 600; margin-right: 2px; }
.price-old { color: #b0b7c6; text-decoration: line-through; font-size: 12px; margin-left: 6px; font-weight: 500; }
.stock-tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #ecfdf3; color: #067647; font-weight: 600; }
.stock-tag.low { background: #fffaeb; color: #b54708; }
.stock-tag.out { background: #f2f4f7; color: #667085; }
.goods-cover { height: 120px; border-radius: 10px; background: #f3f4f8 center/cover no-repeat; margin-bottom: 10px; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .icon { font-size: 38px; margin-bottom: 8px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(16, 20, 34, .48); z-index: 120;
    display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: 18px; width: 100%; max-width: 440px; padding: 24px;
    box-shadow: 0 24px 60px rgba(16, 20, 34, .25); max-height: 92vh; overflow: auto;
    animation: pop .16s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { margin: 0 0 4px; font-size: 17px; }
.modal .modal-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.modal-close { position: absolute; right: 18px; top: 16px; border: 0; background: transparent; font-size: 20px; color: #98a2b3; cursor: pointer; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #344054; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
    width: 100%; padding: 10px 13px; border: 1px solid #dcdfe8; border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 91, 214, .12); }
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 180px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13.5px; }

/* ---------- 提示 ---------- */
.alert { padding: 11px 15px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.alert-error { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.alert-warn { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.alert-info { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }

/* ---------- 表格 ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 12px 14px; background: #fafbfe; color: #667085; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid #f2f4f8; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfcff; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 徽章 ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f2f4f7; color: #475467; }
.badge-green { background: #ecfdf3; color: #067647; }
.badge-red { background: #fef3f2; color: #b42318; }
.badge-yellow { background: #fffaeb; color: #b54708; }
.badge-blue { background: #eff8ff; color: #175cd3; }
.badge-purple { background: var(--brand-soft); color: #4646c6; }

/* ---------- 收银台 ---------- */
.pay-card { max-width: 620px; margin: 36px auto; }
.pay-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pay-amount { font-size: 34px; font-weight: 800; color: #e5484d; letter-spacing: -.5px; }
.pay-amount small { font-size: 16px; }
.pay-methods { display: grid; gas: 10px; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer; transition: all .15s; }
.pay-method:hover { border-color: #c9c5ff; background: #fcfbff; }
.pay-method input { accent-color: var(--brand); width: 16px; height: 16px; }
.pay-method .name { font-weight: 600; }
.pay-method .desc { color: var(--muted); font-size: 12px; }
.countdown { font-size: 13px; color: var(--warn); font-weight: 600; }

/* ---------- 订单 / 卡密 ---------- */
.card-secret { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-all; position: relative; }
.copy-btn { position: absolute; right: 12px; top: 12px; }
.kv { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); width: 96px; flex: 0 0 96px; }
.kv .v { color: var(--text); word-break: break-all; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--line); font-size: 13px; color: #475467; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* ---------- 登录/注册 ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 18px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* ---------- 后台框架 ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #f6f7fb; }
.admin-side { width: 220px; flex: 0 0 220px; background: #141826; color: #c9cfdd; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { color: #fff; font-weight: 800; font-size: 16px; padding: 8px 12px 18px; display: flex; align-items: center; gap: 8px; }
.admin-brand .dot { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), #8b7cf6); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.admin-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; color: #aab2c5; font-size: 13.5px; margin-bottom: 2px; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; opacity: 1; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-nav .group { font-size: 11px; color: #5f6b84; padding: 14px 12px 6px; letter-spacing: .6px; text-transform: uppercase; }
.admin-main { flex: 1; min-width: 0; padding: 22px 26px 60px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-top h1 { font-size: 20px; margin: 0; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat .label { color: var(--muted); font-size: 12.5px; }
.stat .value { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: -.3px; }
.stat .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- 商户中心（复用后台框架，浅色侧栏） ---------- */
.merchant-shell { display: flex; min-height: 100vh; background: #f6f7fb; }
.merchant-side { width: 212px; flex: 0 0 212px; background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.merchant-side .admin-nav a { color: #4b5563; }
.merchant-side .admin-nav a:hover { background: #f5f5ff; color: var(--brand); }
.merchant-side .admin-nav a.active { background: var(--brand-soft); color: var(--brand-deep); }
.merchant-main { flex: 1; min-width: 0; padding: 22px 26px 60px; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0 0; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: #475467; padding: 0 10px; }
.pager .active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 60px; padding: 34px 0 40px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: #667085; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .admin-side, .merchant-side { position: fixed; left: -240px; z-index: 90; transition: left .2s; height: 100vh; box-shadow: var(--shadow); }
    .admin-side.open, .merchant-side.open { left: 0; }
    .admin-main, .merchant-main { padding: 16px 14px 50px; }
    .nav-links { display: none; }
    .shop-actions { margin-left: 0; width: 100%; }
    .goods-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .goods-title { font-size: 13.5px; min-height: 40px; }
    .price { font-size: 17px; }
    .table th, .table td { padding: 9px 10px; font-size: 12.5px; }
}
.mobile-toggle { display: none; }
@media (max-width: 860px) { .mobile-toggle { display: inline-flex; } }

/* ================= 参考站风格：顶部导航 / 页脚 ================= */
body.has-u-header { padding-top: 60px; overflow-x: hidden; }

.u-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    display: flex; align-items: center; justify-content: center;
    height: 60px; padding: 9px 60px; box-sizing: border-box;
    background: #fff; color: #222;
}
.u-header.shadow { box-shadow: 0 4px 8px rgba(0, 0, 0, .06); }
.u-header-inner { display: flex; align-items: center; width: 1192px; max-width: 100%; }
.u-logo { display: flex; align-items: center; box-sizing: content-box; width: 150px; padding-right: 24px; flex: 0 0 auto; }
.u-logo img { height: 38px; display: block; }
.u-menu { flex: 1; display: flex; align-items: center; height: 60px; padding-left: 20px; }
.u-menu a { position: relative; display: inline-flex; align-items: center; height: 60px; padding: 0 12px; color: #1d1d1f; font-size: 14px; }
.u-menu a:hover { color: #3370ff; opacity: 1; }
.u-menu a.active { color: #1d1d1f; }
.u-actions { display: flex; align-items: center; gap: 10px; }
.u-btn-merchant {
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 15px; border-radius: 4px;
    background: #3370ff; color: #fff; font-size: 14px;
}
.u-btn-merchant:hover { background: #2b62e6; color: #fff; opacity: 1; }
.u-btn-merchant svg { width: 15px; height: 15px; }

.u-footer { margin-top: 80px; background: #000; color: #fff; }
.u-footer-inner { width: 1192px; max-width: 100%; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.u-footer-main { display: flex; justify-content: space-between; gap: 40px; padding: 61px 0 11px; flex-wrap: wrap; }
.u-footer-title { margin-bottom: 24px; color: #fff; font-size: 18px; }
.u-footer-list { list-style: none; margin: 0; padding: 0; }
.u-footer-list li { height: 22px; margin-bottom: 12px; font-size: 14px; line-height: 22px; opacity: .6; }
.u-footer-list a { color: #fff; }
.u-footer-line { width: 100%; height: 1px; background: #fff; opacity: .15; }
.u-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.u-footer-copy { display: flex; align-items: center; gap: 12px; color: #8a8f98; font-size: 12px; line-height: 12px; flex-wrap: wrap; }
.u-footer-copy a { color: #8a8f98; }
.u-footer-copy img { width: 12px; height: 12px; }

/* 移动端页头适配 */
@media (max-width: 860px) {
    .u-header { padding: 9px 12px; }
    .u-logo { width: auto; padding-right: 8px; }
    .u-logo img { height: 30px; }
    .u-menu { padding-left: 0; overflow-x: auto; scrollbar-width: none; }
    .u-menu::-webkit-scrollbar { display: none; }
    .u-menu a { padding: 0 8px; font-size: 13px; white-space: nowrap; }
    .u-btn-merchant { padding: 0 10px; font-size: 13px; }
    .u-btn-merchant svg { display: none; }
    .u-footer-inner { padding: 0 20px; }
    .u-footer-main { gap: 22px; padding-top: 40px; }
}


/* 购买弹窗内的支付方式（紧凑版） */
.pay-methods.compact { gap: 8px; }
.pay-methods.compact .pay-method { padding: 10px 13px; border-radius: 10px; }
.pay-methods.compact .name { font-size: 13.5px; }
.pay-methods.compact .desc { font-size: 11.5px; line-height: 1.5; }

/* 店铺页：分类介绍 */
.cat-desc {
    margin: 2px 0 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid #7c8cf8;
    border-radius: 12px;
    color: #667085;
    font-size: 13.5px;
    line-height: 1.8;
    white-space: pre-line;
}

/* ================= 店铺页：分类大卡片 ================= */
.cat-cards { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0 4px; }
.cat-card {
    position: relative; width: 200px; min-height: 88px; padding: 15px 18px;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    background: #fff; border: 1px solid #e3e9f4; border-radius: 14px;
    box-shadow: 0 3px 10px rgba(30, 60, 120, .06);
    text-align: left; cursor: pointer; font-family: inherit;
    transition: all .18s ease;
}
.cat-card:hover { background: #f7faff; border-color: #cfd9ee; }
.cat-card.active {
    background: linear-gradient(135deg, #3f79ff, #6b8cff);
    border-color: transparent; box-shadow: 0 10px 24px rgba(63, 121, 255, .28);
}
.cc-name { font-size: 15px; font-weight: 700; line-height: 1.35; color: #1d1d1f; }
.cc-count { font-size: 12.5px; color: #8a93a3; }
.cat-card.active .cc-name { color: #fff; }
.cat-card.active .cc-count { color: rgba(255, 255, 255, .85); }
.cc-check {
    position: absolute; right: 12px; bottom: 12px; width: 22px; height: 22px;
    border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff;
    font-size: 12px; display: none; align-items: center; justify-content: center;
}
.cat-card.active .cc-check { display: flex; }

/* ================= 公告弹窗 ================= */
.ann-modal {
    position: fixed; inset: 0; z-index: 220; display: none;
    align-items: center; justify-content: center; padding: 18px;
    background: rgba(12, 18, 30, .55);
}
.ann-modal.show { display: flex; }
.ann-box {
    width: 100%; max-width: 430px; max-height: 88vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: annpop .18s ease;
}
@keyframes annpop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ann-head {
    position: relative; overflow: hidden; padding: 28px 44px 22px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #2f6bff, #5b8cff);
}
.ann-head::before { content: ""; position: absolute; left: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ann-head::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.ann-title { position: relative; z-index: 1; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: .5px; }
.ann-sub { position: relative; z-index: 1; margin-top: 8px; font-size: 13px; opacity: .92; }
.ann-close {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 28px; height: 28px;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .18); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.ann-body { padding: 20px 24px; overflow-y: auto; background: #fff; color: #333; font-size: 13.5px; line-height: 1.95; }
.ann-foot { padding: 0 24px 22px; text-align: center; }
.ann-btn {
    min-width: 120px; height: 40px; padding: 0 26px; border: 0; border-radius: 20px;
    background: #eaf1ff; color: #2f6bff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.ann-btn:hover { background: #dfe9ff; }

@media (max-width: 860px) {
    .cat-card { width: calc(50% - 6px); min-height: 78px; padding: 12px 14px; }
    .cc-name { font-size: 14px; }
    .ann-box { max-width: 100%; }
    .ann-title { font-size: 19px; }
}

/* 店铺页：区块小标题 */
.shop-sec-title {
    margin: 22px 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #98a2b3;
    letter-spacing: 1px;
}
.cat-cards { padding-top: 0; }



/* 店铺页：商品列表到底提示 */
.list-end {
    padding: 22px 0 4px;
    text-align: center;
    color: #b3bac8;
    font-size: 13px;
    letter-spacing: 2px;
}

/* 管理员代登录店铺后台提示条 */
.imp-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: -2px 0 16px; padding: 9px 16px; border-radius: 10px;
    background: #111827; color: #fff; font-size: 13px;
}
.imp-bar a { color: #9ec1ff; font-weight: 600; text-decoration: none; }
.imp-bar a:hover { color: #cfe0ff; }
