/* 潮煌金 · 管理后台 —— 暖金轻奢浅色风 */
* { margin: 0; padding: 0; box-sizing: border-box; }
[v-cloak] { display: none; }
html, body { height: 100%; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f6f3ea;
    color: #2b2416;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 登录 ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(201, 169, 78, .18) 0%, transparent 60%),
        linear-gradient(165deg, #faf6ec 0%, #f3eddb 55%, #ece3c9 100%);
}
.login-card {
    width: 100%; max-width: 380px;
    background: #fffdf8;
    border-radius: 18px; padding: 38px 34px 30px;
    border: 1px solid #ece2c8;
    box-shadow: 0 20px 60px rgba(160, 130, 60, .18);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand img { height: 56px; margin-bottom: 10px; }
.login-brand h1 { font-size: 19px; color: #3a2f16; letter-spacing: 2px; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 12px; color: #8a7c5d; letter-spacing: 2px; margin-bottom: 7px; }
.login-card input {
    width: 100%; height: 46px; border: 1px solid #e2d9c4; border-radius: 10px;
    padding: 0 14px; font-size: 15px; outline: none; background: #fffdf8; color: #2b2416;
    transition: border-color .15s, box-shadow .15s;
}
.login-card input:focus { border-color: #c9a94e; box-shadow: 0 0 0 3px rgba(201, 169, 78, .15); }
.login-err { margin-top: 14px; text-align: center; font-size: 13px; color: #c0392b; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
    width: 220px; flex: none;
    background: #fffdf8;
    border-right: 1px solid #ece2c8;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.side-brand {
    padding: 22px 18px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid #f0e9d8;
    color: #3a2f16; font-size: 16px; letter-spacing: 2px; font-weight: 700;
}
.side-brand img { height: 34px; }
.side-brand small { display: block; font-size: 10px; color: #a2946f; letter-spacing: 3px; font-weight: 400; margin-top: 2px; }
.side-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px; cursor: pointer;
    color: #6b5f43; font-size: 14px; letter-spacing: 1px;
    transition: background .15s, color .15s;
}
.side-nav a:hover { background: rgba(201, 169, 78, .1); color: #6b5c38; }
.side-nav a.active {
    background: linear-gradient(135deg, #f6e6b5, #ecd188);
    color: #3a2c0d; font-weight: 600;
    box-shadow: inset 0 0 0 1px #d9c07a;
}
.nav-ico { font-size: 15px; width: 18px; text-align: center; }
.side-foot { padding: 14px; border-top: 1px solid #f0e9d8; }
.side-user { font-size: 12px; color: #a2946f; margin-bottom: 10px; letter-spacing: 1px; }

.main { flex: 1; padding: 26px 28px 40px; min-width: 0; }
.page-head { margin-bottom: 18px; }
.page-head h2 { font-size: 21px; color: #2b2416; letter-spacing: 1px; }
.page-head p { font-size: 12px; color: #a2946f; margin-top: 5px; }
.page-head p .feed-bad { color: #c0392b; font-weight: 600; }

/* ---------- 面板与表格 ---------- */
.panel {
    background: #fffdf8; border-radius: 14px; margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(160, 130, 60, .06), 0 8px 24px rgba(160, 130, 60, .07);
    border: 1px solid #ece2c8; overflow: hidden;
}
.panel-title {
    padding: 15px 20px; font-size: 15px; font-weight: 700; color: #3a2f16; letter-spacing: 1px;
    border-bottom: 1px solid #f0e9d8;
    background: linear-gradient(90deg, rgba(201, 169, 78, .09), transparent 60%);
}
.panel-title em { font-style: normal; font-size: 12px; color: #a2946f; font-weight: 400; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.tbl.plain { min-width: 0; }
.tbl th {
    text-align: left; padding: 11px 14px; white-space: nowrap;
    font-size: 12px; color: #8a7c5d; letter-spacing: 1px; font-weight: 600;
    background: #faf6ec; border-bottom: 1px solid #f0e9d8;
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid #f4efe2; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #fdfaf2; }
.strong { font-weight: 600; color: #3a2f16; }
.num-txt { font-variant-numeric: tabular-nums; }
.panel-foot { padding: 14px 20px; display: flex; justify-content: flex-end; border-top: 1px solid #f0e9d8; background: #fcfaf4; }

/* ---------- 控件 ---------- */
.ipt {
    height: 34px; border: 1px solid #e2d9c4; border-radius: 8px;
    padding: 0 10px; font-size: 13px; outline: none; background: #fff;
    color: #2b2416; width: 100%; min-width: 70px;
    transition: border-color .15s, box-shadow .15s;
}
.ipt:focus { border-color: #c9a94e; box-shadow: 0 0 0 3px rgba(201, 169, 78, .13); }
.ipt.num { text-align: right; font-variant-numeric: tabular-nums; max-width: 90px; }
.ipt:disabled { background: #f4f1e8; color: #b0a486; }

.btn-gold {
    height: 40px; padding: 0 26px; border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #f0d78c, #c9a94e);
    color: #241c09; font-size: 14px; font-weight: 600; letter-spacing: 2px;
    box-shadow: 0 6px 16px rgba(201, 169, 78, .3);
    transition: transform .12s, box-shadow .12s, opacity .12s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 169, 78, .4); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-ghost {
    height: 34px; padding: 0 16px; border-radius: 8px; cursor: pointer;
    border: 1px solid #d9cba3; background: transparent;
    color: #8a7c5d; font-size: 12px; letter-spacing: 1px;
    transition: background .15s, color .15s;
}
.btn-ghost:hover { background: rgba(201, 169, 78, .1); color: #3a2f16; }
.btn-mini {
    height: 28px; padding: 0 12px; border-radius: 7px; cursor: pointer; font-size: 12px;
    border: 1px solid #d9cba3; background: #fffdf6; color: #7c6836;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.btn-mini:hover { background: #f7efdb; border-color: #c9a94e; }

.preview { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.preview .pv-buy { color: #b8860b; font-size: 16px; }
.preview .pv-sell { color: #2b2416; font-size: 16px; }

.tag {
    display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px;
    color: #7c6836; background: rgba(201, 169, 78, .1); border: 1px solid rgba(201, 169, 78, .25);
    white-space: nowrap;
}

/* 热线电话列表 */
.hl-list { padding: 6px 0; }
.hl-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #f4efe2; }
.hl-row:last-child { border-bottom: none; }
.hl-order {
    width: 24px; height: 24px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #7c6836;
    background: rgba(201, 169, 78, .12); border: 1px solid rgba(201, 169, 78, .3);
}
.hl-row .ipt { max-width: 260px; }
.btn-mini.danger { color: #c0392b; border-color: #e6b0a7; background: #fdf3f1; }
.btn-mini.danger:hover { background: #f9e2de; border-color: #c0392b; }
.btn-ghost.add { color: #7c6836; border-color: #d9cba3; }
.hl-empty { padding: 26px; text-align: center; color: #a2946f; font-size: 13px; }
.panel-foot { gap: 12px; }

/* 操作记录筛选 */
.filter-bar {
    display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
    padding: 14px 20px; border-bottom: 1px solid #f0e9d8; background: #fcfaf4;
}
.filter-bar .f-item label { display: block; font-size: 11px; color: #8a7c5d; margin-bottom: 5px; letter-spacing: 1px; }
.filter-bar .ipt { width: 150px; min-width: 0; height: 36px; }
.btn-gold.btn-sm { height: 36px; padding: 0 20px; font-size: 13px; }
.log-detail { word-break: break-all; line-height: 1.7; color: #4a4030; }
.tag-admin { color: #a2792a; border-color: rgba(184, 145, 58, .4); background: rgba(201, 169, 78, .14); font-weight: 600; }

/* 我的账号 */
.me-panel { max-width: 480px; }
.me-form { padding: 20px; }
.me-form .ipt { max-width: 320px; }
.me-form .btn-gold { margin-top: 6px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
    position: absolute; inset: 0; border-radius: 999px; cursor: pointer;
    background: #ddd3ba; transition: background .18s;
}
.switch i::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .18s;
}
.switch input:checked + i { background: linear-gradient(135deg, #f0d78c, #c9a94e); }
.switch input:checked + i::after { transform: translateX(18px); }

/* ---------- 弹窗 ---------- */
.mask {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(58, 47, 22, .35); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
    width: 100%; max-width: 420px;
    background: #fffdf8; border-radius: 16px; overflow: hidden;
    border: 1px solid #ece2c8;
    box-shadow: 0 30px 80px rgba(58, 47, 22, .25);
}
.modal-head {
    padding: 16px 22px; font-size: 15px; font-weight: 600; color: #3a2f16;
    border-bottom: 1px solid #f0e9d8; background: linear-gradient(90deg, rgba(201, 169, 78, .09), transparent);
}
.modal-sub { font-weight: 400; font-size: 12px; color: #a2946f; margin-left: 6px; }
.modal-body { padding: 20px 22px 6px; }
.modal-foot { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-foot .btn-ghost { color: #8a7c5d; border-color: #e2d9c4; }
.modal-foot .btn-ghost:hover { background: #f4efe2; color: #3a2f16; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; top: 26px; left: 50%; transform: translateX(-50%); z-index: 90;
    padding: 11px 24px; border-radius: 10px; font-size: 13px; letter-spacing: 1px;
    background: #3a2f16; color: #f6e2a0;
    box-shadow: 0 10px 30px rgba(58, 47, 22, .3);
}
.toast-enter-active, .toast-leave-active { transition: opacity .2s, transform .2s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateX(-50%) translateY(-8px); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .shell { flex-direction: column; }
    .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; }
    .side-brand { border-bottom: none; padding: 12px 14px; }
    .side-nav { flex-direction: row; padding: 8px; flex: 1; }
    .side-nav a { padding: 9px 13px; font-size: 13px; }
    .side-foot { border-top: none; padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
    .side-user { margin-bottom: 0; }
    .main { padding: 18px 14px 30px; }
    .modal-body { padding: 16px 18px 4px; }
}
