@charset "utf-8";
/**
 * 聚合付科技 - 简约样式表
 * 版权归聚合付科技所有
 */

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #eff4ff;
    --text: #1f2329;
    --text-2: #5b6371;
    --text-3: #8b93a1;
    --line: #e6e8ec;
    --bg: #f6f7f9;
    --white: #fff;
    --ok: #12a150;
    --warn: #d97706;
    --danger: #dc2626;
    --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 600; line-height: 1.4; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }
.mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }

/* ------- 顶栏 ------- */
.pub-head {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.pub-head-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.pub-logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.pub-logo-mark, .brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
}
.pub-nav { display: flex; align-items: center; gap: 20px; }
.pub-nav a { color: var(--text-2); }
.pub-nav a:hover { color: var(--brand); }
.pub-main { min-height: calc(100vh - 200px); }
.pub-foot { border-top: 1px solid var(--line); background: var(--white); margin-top: 40px; }
.pub-foot-inner { display: flex; justify-content: space-between; align-items: center; height: 56px; color: var(--text-3); font-size: 12px; flex-wrap: wrap; gap: 8px; }
.pub-foot-links { display: flex; gap: 16px; }

/* ------- 顶栏（登录后） ------- */
.topbar {
    height: 56px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    position: sticky; top: 0; z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 18px; color: var(--text-2); font-size: 13px; }
.topbar-right .who { color: var(--text); }
.link-quiet { color: var(--text-3); }

/* ------- 布局 ------- */
.layout { display: flex; align-items: stretch; min-height: calc(100vh - 120px); }
.sider {
    width: 190px; flex: 0 0 190px;
    background: var(--white);
    border-right: 1px solid var(--line);
    padding: 12px 10px;
    display: flex; flex-direction: column; gap: 2px;
}
.sider-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 6px;
    color: var(--text-2); font-size: 13px;
    transition: background .15s, color .15s;
}
.sider-item:hover { background: #f2f4f7; color: var(--text); }
.sider-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sider-item .ico { width: 16px; text-align: center; font-size: 12px; opacity: .85; }
.sider-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); }
.sider-foot-t { font-size: 12px; color: var(--text-2); font-weight: 600; }
.sider-foot-c { font-size: 12px; color: var(--text-3); }
.content { flex: 1; padding: 20px 24px 40px; min-width: 0; }
.foot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px; color: var(--text-3); font-size: 12px;
    border-top: 1px solid var(--line); background: var(--white);
    flex-wrap: wrap; gap: 8px;
}

/* ------- 页头 ------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.page-head .sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------- 卡片 ------- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.card-hd {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-hd h3 { margin: 0; font-size: 15px; }
.card-bd { padding: 16px; }
.card-bd.tight { padding: 0; }
.card-ft { padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfc; }

/* ------- 按钮 ------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 6px;
    background: var(--white); color: var(--text);
    font-size: 13px; cursor: pointer; white-space: nowrap;
    transition: all .15s;
}
.btn:hover { border-color: #cfd6e0; background: #fafbfc; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #f2c9c9; }
.btn-danger:hover { background: #fdf2f2; border-color: #e8a9a9; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 5px; }
.btn-lg { height: 42px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }

/* ------- 表单 ------- */
.form-item { margin-bottom: 16px; }
.form-item > label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 13px; }
.form-item .req::after { content: " *"; color: var(--danger); }
.input, .select, .textarea {
    width: 100%; height: 36px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 6px;
    background: var(--white); color: var(--text); font-size: 13px;
    font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.input::placeholder { color: #b6bcc7; }
.hint { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > .form-item { flex: 1; min-width: 200px; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; margin-bottom: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { margin: 0; }

/* ------- 表格 ------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
    text-align: left; font-weight: 600; color: var(--text-2);
    background: #fafbfc; padding: 10px 14px;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: #fafbfc; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

/* ------- 徽章 ------- */
.badge {
    display: inline-block; padding: 1px 8px; border-radius: 20px;
    font-size: 12px; line-height: 18px;
    background: #f1f3f6; color: var(--text-2); border: 1px solid transparent;
}
.badge-ok { background: #ecfaf1; color: var(--ok); }
.badge-warn { background: #fdf6ec; color: var(--warn); }
.badge-danger { background: #fdf2f2; color: var(--danger); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }

/* ------- 提示条 ------- */
.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-info { background: var(--brand-soft); color: var(--brand-dark); }
.alert-warn { background: #fdf6ec; color: #92400e; border-color: #f3e0c4; }
.alert-danger { background: #fdf2f2; color: var(--danger); border-color: #f5d0d0; }
.alert-ok { background: #ecfaf1; color: var(--ok); border-color: #cff0dc; }

/* ------- 数据格 ------- */
.grid { display: grid; gap: 16px; }
.grid-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px;
}
.stat .k { color: var(--text-3); font-size: 12px; margin-bottom: 6px; }
.stat .v { font-size: 24px; font-weight: 600; line-height: 1.2; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.stat .d { color: var(--text-3); font-size: 12px; margin-top: 6px; }

/* ------- 套餐卡 ------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column;
}
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.06); }
.plan .pname { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.plan .price { font-size: 28px; font-weight: 600; color: var(--text); margin: 8px 0 2px; }
.plan .price small { font-size: 13px; font-weight: 400; color: var(--text-3); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; flex: 1; }
.plan li { padding: 4px 0; color: var(--text-2); font-size: 13px; }
.plan li::before { content: "·"; margin-right: 6px; color: var(--brand); font-weight: 700; }

/* ------- 分页 ------- */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 16px; }
.pager a, .pager span {
    min-width: 30px; height: 30px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 5px; font-size: 13px; color: var(--text-2);
    background: var(--white);
}
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .off { color: #c8ccd4; }
.pager .total { border: none; background: transparent; color: var(--text-3); margin-right: auto; }

/* ------- 空状态 ------- */
.empty { padding: 48px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty .big { font-size: 30px; opacity: .35; display: block; margin-bottom: 8px; }

/* ------- 进度条 ------- */
.bar { height: 8px; border-radius: 20px; background: #eef0f4; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 20px; }
.bar.warn > i { background: var(--warn); }
.bar.danger > i { background: var(--danger); }

/* ------- 登录 / 注册 ------- */
.auth-wrap { max-width: 400px; margin: 64px auto; padding: 0 24px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-card h2 { margin-bottom: 4px; }
.auth-card .sub { color: var(--text-3); font-size: 13px; margin-bottom: 22px; }
.auth-foot { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 18px; }
.auth-admin { max-width: 380px; margin: 84px auto; padding: 0 24px; }

/* ------- 落地页 ------- */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: 32px; margin-bottom: 14px; }
.hero .lead { color: var(--text-2); font-size: 15px; max-width: 620px; margin: 0 auto 24px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; }
.section { padding: 36px 0; }
.section h2 { text-align: center; margin-bottom: 8px; }
.section .desc { text-align: center; color: var(--text-3); margin-bottom: 28px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat .ft { font-weight: 600; margin-bottom: 6px; }
.feat .fc { color: var(--text-2); font-size: 13px; }

/* ------- 收银台 ------- */
.pay-box { max-width: 460px; margin: 24px auto; }
.pay-amount { font-size: 32px; font-weight: 600; text-align: center; margin: 8px 0 4px; }
.pay-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 22px; }
.pay-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.pay-type {
    border: 1px solid var(--line); border-radius: 6px; padding: 12px 6px;
    text-align: center; cursor: pointer; font-size: 13px; color: var(--text-2);
    background: var(--white);
}
.pay-type.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ------- Toast ------- */
.toast {
    position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
    background: rgba(31,35,41,.92); color: #fff;
    padding: 10px 18px; border-radius: 6px; font-size: 13px;
    opacity: 0; pointer-events: none; transition: all .22s; z-index: 999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(190,30,30,.94); }

/* ------- 弹层 ------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(20,22,26,.42);
    display: none; align-items: center; justify-content: center; z-index: 800; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 440px; overflow: hidden; }
.modal-hd { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.modal-bd { padding: 18px; }
.modal-ft { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfc; }

/* ------- 简易柱图 ------- */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 10px; }
.chart .col { flex: 1; background: var(--brand-soft); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
.chart .col > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: 3px 3px 0 0; }

/* ------- 登录页切换 / 验证码 ------- */
.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; }
.code-btn { flex: none; min-width: 112px; white-space: nowrap; }

/* ------- 响应式 ------- */
@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .sider { width: 100%; flex: none; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); gap: 6px; }
    .sider-foot { display: none; }
    .sider-item { white-space: nowrap; }
    .content { padding: 16px; }
    .grid-c3, .grid-c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 40px 0 24px; }
    .hero h1 { font-size: 24px; }
    .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .grid-c2, .grid-c3, .grid-c4 { grid-template-columns: 1fr; }
    .pay-types { grid-template-columns: repeat(2, 1fr); }
    .page-head { flex-direction: column; align-items: flex-start; }
}
