:root{
    --bg:#f3f6fb;
    --card:#ffffff;
    --primary:#2563eb;
    --primary-hover:#1d4ed8;
    --text:#1f2937;
    --muted:#6b7280;
    --line:#e5e7eb;
    --shadow:0 12px 30px rgba(15, 23, 42, .08);
}
*{margin:0;padding:0;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto}
body{background:linear-gradient(180deg,#f8fbff 0%,var(--bg) 100%);color:var(--text);max-width:1200px;margin:0 auto;padding:24px}

.back-home-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff5a8c, #ff3366);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
    transition: all 0.3s ease;
}
.back-home-btn:hover {
    background: linear-gradient(90deg, #ff477e, #ff1a53);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 51, 102, 0.3);
    color: #fff;
}

header{text-align:center;margin:18px 0 28px}
header h1{font-size:32px;letter-spacing:.4px;color:#0f172a}
header p{color:var(--muted);margin-top:10px}
.container{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:900px){.container{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid #edf1f7;border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.card h2{font-size:20px;margin-bottom:16px;color:#0f172a}
form{display:flex;flex-direction:column;gap:12px}
input,select,textarea{
    padding:11px 12px;border:1px solid var(--line);border-radius:10px;font-size:14px;outline:none;transition:.2s border-color,.2s box-shadow
}
input:focus,select:focus,textarea:focus{
    border-color:#93c5fd;box-shadow:0 0 0 3px rgba(37,99,235,.12)
}
button{
    padding:11px;background:var(--primary);color:white;border:none;border-radius:10px;cursor:pointer;font-weight:600;transition:.2s transform,.2s background
}
button:hover{background:var(--primary-hover);transform:translateY(-1px)}
.hot-list{margin-top:12px;max-height:420px;overflow-y:auto;padding-right:4px}
.recent-list{margin-top:12px;max-height:800px;overflow-y:auto;padding-right:4px}
.hot-item,.recent-item{padding:11px 0;border-bottom:1px dashed #e6ebf3}
.hot-item:last-child,.recent-item:last-child{border-bottom:none}
.hot-item .num{
    display:inline-flex;align-items:center;justify-content:center;background:var(--primary);color:white;width:24px;height:24px;border-radius:50%;font-size:12px;margin-right:8px
}
.hot-item .title,.recent-item .name{font-weight:600}
.hot-item .count,.recent-item .time{color:#9aa3b2;font-size:12px;margin-left:8px}
.tab{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.tab button{background:#eef2ff;color:#334155;font-weight:500;padding:8px 12px}
.tab button.active{background:var(--primary);color:white}
.admin-btn{
    position:fixed;top:18px;right:18px;padding:8px 14px;background:#111827;color:white;border:none;border-radius:10px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.18)
}
.tips{position:fixed;top:20px;left:50%;transform:translateX(-50%);background:var(--primary);color:white;padding:8px 16px;border-radius:8px;display:none;z-index:99}
.recent-item .type{
    display:inline-block;background:#eff6ff;color:#1d4ed8;padding:3px 10px;border-radius:999px;font-size:12px;margin-right:8px
}
.recent-item .pan{color:var(--primary);font-size:12px;margin-left:8px}
.recent-item-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.offer-btn{
    background:#059669;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:6px 10px;
    font-size:12px;
    cursor:pointer;
    white-space:nowrap;
}
.offer-btn:hover{background:#047857}
.offer-btn[disabled]{background:#94a3b8;cursor:not-allowed}
.provided-tag{display:inline-block;background:#dcfce7;color:#166534;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;margin-right:6px}
.view-btn{
    background:#166534;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:6px 10px;
    font-size:12px;
    cursor:pointer;
    white-space:nowrap;
}
.view-btn:hover{background:#0f4623}
.recent-remark{
    margin-top:10px;padding:9px 11px;background:#f8fafc;border:1px solid #eef2f6;border-radius:10px;
    font-size:13px;color:#334155;line-height:1.5;word-break:break-word
}
.recent-remark-label{display:block;font-size:11px;color:#94a3b8;margin-bottom:4px;font-weight:600}
.recent-remark-text{white-space:pre-wrap}
.recent-remark-text.recent-remark-text--collapsed{
    white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
    overflow-wrap:anywhere
}
.recent-remark-toggle{
    margin-top:6px;font-size:12px;color:var(--primary);background:none;border:none;padding:0;cursor:pointer;
    text-decoration:underline;font-weight:600
}
.recent-remark-toggle:hover{color:var(--primary-hover)}
.modal-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;z-index:200}
.modal{width:min(92vw,460px);background:#fff;border-radius:14px;padding:18px;box-shadow:0 20px 40px rgba(15,23,42,.2)}
.modal h3{font-size:18px;margin-bottom:10px;color:#0f172a}
.modal p{font-size:13px;color:#64748b;margin-bottom:10px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.btn-ghost{background:#e5e7eb;color:#1f2937}
.btn-ghost:hover{background:#d1d5db}
.modal-link{
    display:inline-block;
    max-width:100%;
    margin-top:6px;
    word-break:break-all;
    color:#2563eb;
    text-decoration:underline;
}
.toast{
    position:fixed;right:20px;bottom:20px;background:#111827;color:#fff;padding:10px 14px;border-radius:10px;
    box-shadow:0 10px 24px rgba(0,0,0,.2);display:none;z-index:220;font-size:14px;
    max-width:min(92vw,420px);white-space:pre-line;line-height:1.45
}
.offer-hint{
    font-size:12px;color:#475569;line-height:1.55;margin:10px 0 12px;
    padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px
}
.offer-hint strong{color:#0f172a;font-weight:600}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:16px;flex-wrap:wrap}
.page-btn{padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);cursor:pointer;font-size:14px}
.page-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.page-btn:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed}