/* 天狐 CMS · 序列号中心 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
    margin: 0;
    font: 14px/1.65 "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #2b3445;
    background: #0d1526;
    background-image:
        radial-gradient(1200px 600px at 12% 0%, #16345e 0%, rgba(22, 52, 94, 0) 60%),
        radial-gradient(900px 500px at 88% 100%, #132a4a 0%, rgba(19, 42, 74, 0) 60%),
        linear-gradient(160deg, #0d1526 0%, #10203a 55%, #0b1220 100%);
    background-attachment: fixed;
}

/* ---------- 登录 ---------- */

.auth-body {
    display: flex; align-items: center; justify-content: center;
    padding: 24px; min-height: 100vh;
}

.auth-card {
    width: 430px; max-width: 100%;
    background: #fff; border-radius: 14px;
    padding: 38px 34px 28px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, .42);
    position: relative; overflow: hidden;
}
.auth-card:before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #1b64bd, #3d92e8 55%, #63b3f5);
}

.brand { font-size: 13px; letter-spacing: 3px; color: #8a94a6; }
.brand b { color: #1b64bd; font-weight: 700; }

h1 { margin: 10px 0 0; font-size: 22px; font-weight: 700; color: #16202f; }
.desc { margin: 8px 0 0; font-size: 13.5px; color: #6b7789; }

.field { margin-top: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: 12.5px; color: #8a94a6; letter-spacing: 1px; }
.field label em { font-style: normal; color: #aab3c2; letter-spacing: 0; }

.field input, .field textarea, .search input {
    width: 100%; padding: 0 14px; height: 44px;
    font-size: 14.5px; color: #1f2a3a; font-family: inherit;
    border: 1.5px solid #dbe1ea; border-radius: 9px; background: #fbfcfe;
    outline: none; transition: border-color .18s, background .18s, box-shadow .18s;
}
.field textarea { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.7; font-size: 14px; }
.field input:focus, .field textarea:focus, .search input:focus {
    border-color: #2b7fe0; background: #fff; box-shadow: 0 0 0 4px rgba(43, 127, 224, .13);
}
.field ::placeholder { color: #aab3c2; }

.hint { margin-top: 7px; font-size: 12.5px; color: #9aa4b4; }

.btn {
    display: inline-block; height: 44px; line-height: 44px; padding: 0 22px;
    margin-top: 20px; border: 0; border-radius: 9px; cursor: pointer;
    font-size: 14.5px; font-weight: 600; color: #fff; letter-spacing: 1px;
    text-align: center; text-decoration: none;
    background: linear-gradient(135deg, #2b7fe0, #1b64bd);
    box-shadow: 0 8px 20px rgba(43, 127, 224, .30);
    transition: filter .15s, transform .12s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

.btn.ghost {
    background: #fff; color: #2b7fe0; border: 1.5px solid #cfe0f5;
    box-shadow: none;
}
.btn.sm { height: 40px; line-height: 40px; padding: 0 16px; margin-top: 0; font-size: 13.5px; }

.tip { min-height: 21px; margin-top: 14px; font-size: 13px; text-align: center; }
.tip.err { color: #d23b3b; }

.auth-card .foot {
    margin-top: 22px; padding-top: 15px; border-top: 1px dashed #e6eaf0;
    font-size: 12.5px; color: #9aa4b4; text-align: center; line-height: 1.8;
}
.auth-card .foot em { font-style: normal; color: #6b7789; }

/* ---------- 控制台 ---------- */

.topbar {
    height: 58px; padding: 0 26px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}
.topbar .logo { color: #fff; font-size: 14px; letter-spacing: 2px; }
.topbar .logo b { color: #63b3f5; }
.topbar .logo span { color: rgba(255, 255, 255, .45); font-size: 12.5px; letter-spacing: 1px; }

.topbar .nav a {
    display: inline-block; margin-left: 6px; padding: 6px 14px;
    border-radius: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .62);
    text-decoration: none; transition: .16s;
}
.topbar .nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.topbar .nav a.on { background: rgba(99, 179, 245, .16); color: #b8dcff; }
.topbar .nav a em {
    font-style: normal; font-size: 11.5px; opacity: .7; margin-left: 4px;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 28px 20px 60px; }

.card {
    background: #fff; border-radius: 13px;
    padding: 28px 28px 26px; margin-bottom: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.card-title { font-size: 16px; font-weight: 700; color: #16202f; margin-bottom: 4px; }

.alert {
    border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
    font-size: 13.5px;
}
.alert.err { background: #fdf0f0; color: #c33; border: 1px solid #f4d4d4; }
.alert.ok  { background: #edf8f1; color: #12804a; border: 1px solid #cfead9; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 150px; }

/* 结果卡 */

.ok-card { border-top: 3px solid #2b7fe0; }

.ok-head { display: flex; align-items: center; justify-content: space-between; }
.ok-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: #edf6ff; color: #1b64bd; font-size: 12.5px; font-weight: 600;
}
.ok-meta { font-size: 12.5px; color: #9aa4b4; }

.serial-box {
    margin-top: 18px; padding: 18px 20px; border-radius: 11px;
    background: #f4f8fd; border: 1px dashed #cfe0f5;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.serial {
    font-family: Consolas, "Courier New", monospace;
    font-size: 20px; font-weight: 700; letter-spacing: 1.5px; color: #1b4f8f;
    word-break: break-all;
}
.copy {
    flex: none; height: 32px; padding: 0 14px; border-radius: 7px;
    border: 1px solid #cfe0f5; background: #fff; color: #2b7fe0;
    font-size: 12.5px; cursor: pointer; transition: .15s;
}
.copy:hover { background: #2b7fe0; color: #fff; border-color: #2b7fe0; }
.copy.sm { height: 28px; font-size: 12px; }

.grid {
    margin-top: 18px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: #eef2f7; border-radius: 10px; overflow: hidden;
}
.grid .item { background: #fff; padding: 13px 16px; }
.grid .item label { display: block; font-size: 12px; color: #9aa4b4; margin-bottom: 3px; }
.grid .item value { font-size: 13.5px; color: #2b3445; font-weight: 600; word-break: break-all; }

.cipher { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e6eaf0; }
.cipher label { display: block; font-size: 12px; color: #9aa4b4; margin-bottom: 6px; }
.cipher-val {
    font-family: Consolas, "Courier New", monospace;
    font-size: 11.5px; color: #6b7789; line-height: 1.7;
    word-break: break-all; margin-bottom: 8px;
}

.actions { margin-top: 20px; display: flex; gap: 10px; }
.actions .btn { margin-top: 0; }

/* 表格 */

.search { display: flex; gap: 10px; margin: 16px 0; }
.search input { flex: 1; height: 40px; }
.search .btn { margin-top: 0; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
    text-align: left; font-weight: 600; color: #8a94a6; font-size: 12px;
    padding: 10px 10px; border-bottom: 1px solid #eef2f7; white-space: nowrap;
}
.tbl td { padding: 12px 10px; border-bottom: 1px solid #f4f7fa; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .dim { color: #aab3c2; }
.tbl .mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }
.tbl .op { text-align: right; white-space: nowrap; }

.serial-link { color: #2b7fe0; text-decoration: none; border-bottom: 1px dashed #b9d5f2; cursor: pointer; }
.serial-link:hover { color: #1b64bd; }

.mini {
    height: 27px; padding: 0 10px; margin-left: 5px; border-radius: 6px;
    border: 1px solid #e2e8f1; background: #fff; color: #5c6b80;
    font-size: 12px; cursor: pointer; transition: .15s;
}
.mini:hover { border-color: #cfe0f5; color: #2b7fe0; background: #f7fbff; }
.mini.danger:hover { border-color: #f4d4d4; color: #d23b3b; background: #fdf5f5; }

.st { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.st-ok   { background: #edf8f1; color: #12804a; }
.st-warn { background: #fff7e8; color: #b7791f; }
.st-exp  { background: #fdeeee; color: #c33; }

.empty { padding: 40px 0; text-align: center; color: #aab3c2; font-size: 13.5px; }

.foot-note { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .35); margin-top: 6px; }

@media (max-width: 720px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .serial { font-size: 16px; }
    .tbl { font-size: 12px; }
    .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
    .topbar { padding: 0 14px; }
    .topbar .logo span { display: none; }
}
