/* 用户端样式（与管理端 admin.css 零共享、零引用） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6fa; color: #1f2d3d; }
a { color: #2b6cb0; text-decoration: none; }

.topbar { background: #fff; border-bottom: 1px solid #e8ecf2; padding: 0 24px; height: 56px;
  display: flex; align-items: center; gap: 24px; position: sticky; top: 0; z-index: 10; }
.topbar .logo { font-weight: 700; font-size: 16px; color: #2456e6; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 6px 14px; border-radius: 6px; color: #4a5568; font-size: 14px; }
.topbar nav a.on { background: #eef3ff; color: #2456e6; font-weight: 600; }
.topbar .who { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.balance-chip { background: #fff7e8; color: #b7791f; border: 1px solid #f6d9a0; padding: 3px 10px; border-radius: 12px; font-weight: 600; }

.wrap { max-width: 1080px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #e8ecf2; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.card h3 { font-size: 15px; margin-bottom: 12px; color: #2d3748; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: #f8faff; border: 1px solid #e3ebff; border-radius: 8px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; color: #2456e6; }
.stat span { font-size: 12px; color: #718096; }

.type-card { border: 1px solid #e3ebff; border-radius: 10px; padding: 14px; cursor: pointer; transition: .15s; background: #fff; }
.type-card:hover { border-color: #2456e6; box-shadow: 0 2px 10px rgba(36,86,230,.10); }
.type-card b { font-size: 15px; }
.type-card .price { color: #b7791f; font-weight: 600; margin-top: 6px; font-size: 13px; }
.type-card .desc { color: #718096; font-size: 12px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #eef1f6; text-align: left; }
th { color: #718096; font-weight: 500; background: #fafbfd; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.st-queued { background: #fef3c7; color: #92400e; }
.st-running { background: #dbeafe; color: #1e40af; }
.st-success { background: #d1fae5; color: #065f46; }
.st-failed { background: #fee2e2; color: #991b1b; }
.st-rejected { background: #fce7f3; color: #9d174d; }
.st-canceled { background: #e5e7eb; color: #374151; }
.st-paid { background: #d1fae5; color: #065f46; }
.st-pending { background: #fef3c7; color: #92400e; }

.btn { display: inline-block; border: none; border-radius: 6px; padding: 8px 18px; cursor: pointer; font-size: 14px; background: #2456e6; color: #fff; }
.btn:hover { background: #1d47c0; }
.btn.plain { background: #fff; color: #4a5568; border: 1px solid #d9e0ea; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.danger { background: #e53e3e; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.auth-box { max-width: 420px; margin: 60px auto; }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #4a5568; margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; border: 1px solid #d9e0ea; border-radius: 6px; padding: 9px 12px; font-size: 14px; outline: none; }
.form-item input:focus, .form-item textarea:focus { border-color: #2456e6; }
.row { display: flex; gap: 10px; align-items: center; }
.captcha-img { height: 40px; cursor: pointer; border-radius: 6px; }
.tabs { display: flex; border-bottom: 1px solid #e8ecf2; margin-bottom: 16px; }
.tabs div { padding: 10px 18px; cursor: pointer; font-size: 14px; color: #718096; }
.tabs div.on { color: #2456e6; border-bottom: 2px solid #2456e6; font-weight: 600; }
.err { color: #e53e3e; font-size: 13px; margin: 8px 0; }
.tip { color: #718096; font-size: 12px; margin-top: 6px; }
.notice-item { padding: 8px 0; border-bottom: 1px dashed #eef1f6; font-size: 13px; }
.notice-item b { color: #2d3748; }
.empty { text-align: center; color: #a0aec0; padding: 28px 0; font-size: 13px; }
.modal-mask { position: fixed; inset: 0; background: rgba(20,25,40,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 12px; width: 520px; max-height: 86vh; overflow: auto; padding: 22px 24px; }
.modal h3 { margin-bottom: 14px; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: #718096; }
.pkg { border: 1px solid #e3ebff; border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; }
.pkg:hover, .pkg.on { border-color: #2456e6; background: #f7faff; }
.pkg b { font-size: 16px; }
.pkg .cny { font-size: 22px; color: #2456e6; font-weight: 700; margin: 8px 0; }
