/* EnovelCms 应用中心 - 全局样式（蓝色精修 · 高级感） */
:root {
    --primary: #1e62d8;
    --primary-hover: #1751bd;
    --primary-active: #1447a6;
    --primary-light: #eaf2ff;
    --primary-soft: #f4f8ff;
    --bg: #eef1f6;
    --card: #ffffff;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: #edf1f7;
    --border-strong: #dbe5f0;
    --success: #0ea77b;
    --success-light: #d9f5ec;
    --danger: #e5484d;
    --danger-light: #fdecec;
    --warning: #d9930a;
    --warning-light: #fdf3df;
    --radius: 16px;
    --radius-sm: 11px;
    --pill: 999px;
    --cover-bg: radial-gradient(120% 120% at 16% 10%, rgba(255,255,255,.8), rgba(255,255,255,0) 58%), linear-gradient(135deg, #e3edfb 0%, #f1f6ff 56%, #e8f1ff 100%);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-hover: 0 14px 34px rgba(30, 98, 216, .14), 0 4px 10px rgba(15, 23, 42, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #eff3f8 100%) fixed;
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    min-width: 1180px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }

.container { width: 1180px; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.main-content { padding-top: 26px; padding-bottom: 12px; margin-bottom: 50px; }

/* ---------- 页面标题区 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { font-size: 23px; font-weight: 700; letter-spacing: -.015em; color: var(--text); line-height: 1.25; }
.page-head .sub { margin-top: 7px; font-size: 13px; color: var(--text-3); line-height: 1.6; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.page-head-num { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }

/* ---------- 顶部导航 ---------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 8px 24px rgba(15, 23, 42, .05);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo {
    width: 36px; height: 36px; border-radius: 11px; display: block;
    box-shadow: 0 4px 12px rgba(30, 98, 216, .28);
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .2px; white-space: nowrap; }
.main-nav { display: flex; gap: 4px; flex: 0 0 auto; }
.main-nav a { white-space: nowrap; }
.main-nav a {
    padding: 8px 16px; border-radius: var(--pill); color: var(--text-2); font-weight: 500;
    transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.header-search { flex: 0 1 360px; display: flex; align-items: center; gap: 8px; }
.header-search-type {
    flex: 0 0 auto; width: 86px; height: 36px; padding: 0 12px; border-radius: var(--pill);
    border: 1px solid var(--border); background: #f5f8fc;
    font-size: 13px; color: var(--text-2); outline: none; cursor: pointer;
}
.header-search input {
    flex: 1 1 auto; width: auto; min-width: 0; height: 36px; padding: 0 16px; border-radius: var(--pill);
    border: 1px solid var(--border-strong); background: #f5f8fc;
    font-size: 13.5px; color: var(--text); outline: none; transition: all .15s;
}
.header-search input::placeholder { color: var(--text-3); }
.header-search input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 98, 216, .12); }
.header-search .btn { flex: 0 0 auto; height: 36px; padding: 0 16px; }
.header-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-menu { position: relative; }
.user-menu-trigger {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px;
    border: 1px solid var(--border); border-radius: var(--pill); background: #fff;
    color: var(--text-2); font-weight: 500; font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.user-menu-trigger:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.user-menu-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-caret { font-size: 11px; color: var(--text-3); }
.user-menu-list {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 172px;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12); padding: 6px; z-index: 200;
    display: none; flex-direction: column;
}
.user-menu.open .user-menu-list { display: flex; }
.user-menu-item {
    display: flex; align-items: center; padding: 9px 12px; border-radius: 8px;
    color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
a.user-menu-item:hover, button.user-menu-item:hover { background: var(--primary-light); color: var(--primary); }
.user-menu-item.active { color: var(--primary); background: var(--primary-light); }
.user-menu-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.user-menu-logout { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit; }
.user-menu-logout:hover { color: #dc2626; background: #fef2f2; }
.chip-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.inline-form { margin: 0; }

/* ---------- 按钮（胶囊） ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--pill); border: 1px solid transparent;
    font-size: 14px; cursor: pointer; font-weight: 500; transition: all .18s;
    text-decoration: none; line-height: 1.4; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(30, 98, 216, .22); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-primary:active { background: var(--primary-active); }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-danger { background: var(--danger-light); color: var(--danger); }
.btn-danger:hover { background: #fbd7d8; color: var(--danger); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 30px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; min-width: 0; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.pay-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pay-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 400; color: var(--text); cursor: pointer; }
.pay-check input { accent-color: var(--primary); }
.form-control, input[type="text"], input[type="tel"], input[type="password"], input[type="email"], input[type="number"],
input[type="datetime-local"], select, textarea {
    width: 100%; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font-size: 14px; background: #fff; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
    font-family: inherit;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 98, 216, .12);
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.code-row { display: flex; gap: 10px; min-width: 0; }
.code-row input { flex: 1 1 auto; min-width: 0; }
.code-row .btn { flex: 0 0 auto; height: 39px; }
.captcha-row .captcha-img { flex: 0 0 auto; height: 39px; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; object-fit: cover; background: #f7f8fa; }
.captcha-row .captcha-img:hover { border-color: var(--primary); }
.form-hint.qr-ok { color: var(--success); }
.form-hint.qr-err { color: var(--danger); }

/* ---------- 卡片 ---------- */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 16.5px; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.card-title-extra { font-size: 12.5px; color: var(--text-3); }

/* ---------- 应用网格 ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: 16px; }
.app-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s, border-color .2s;
    display: flex; flex-direction: row; align-items: center; gap: 13px; padding: 14px;
}
.app-card:hover {
    box-shadow: var(--shadow-hover); transform: translateY(-2px);
    border-color: #c9dcf6;
}
.app-cover {
    position: relative; overflow: hidden; display: flex; flex: none;
}
.app-cover img {
    display: block; background: #fff; border-radius: 12px;
}
.app-cover.icon { background: transparent; padding: 0; }
.app-cover.icon img {
    width: 60px; height: 60px; object-fit: cover; border: 1px solid var(--border-strong);
    box-shadow: 0 4px 12px rgba(30, 98, 216, .12);
}
.app-cover.shot { width: 104px; background: var(--cover-bg); border-radius: 12px; padding: 0; align-self: stretch; }
.app-cover.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border: 1px solid var(--border-strong); }
.app-cover.placeholder { background: linear-gradient(135deg, #dbeafe, #eef4ff); border-radius: 12px; }
.cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cover-char {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .68); border: 1px solid rgba(30, 98, 216, .12);
    color: var(--primary); font-weight: 700; border-radius: 16px;
}
.app-cover .cover-char { width: 58px; height: 58px; font-size: 22px; }
.shot-thumb { cursor: zoom-in; }
.app-body { padding: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.app-name { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-desc { font-size: 12px; line-height: 1.5; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px;
}
.app-price { font-size: 15.5px; font-weight: 700; color: #e8531f; letter-spacing: -.01em; }
.app-price.free { color: var(--success); }
.app-price .old { font-size: 11.5px; color: var(--text-3); text-decoration: line-through; font-weight: 400; margin-left: 6px; }

/* ---------- 列表横排卡片 ---------- */
.app-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 16px; }
.app-row {
    display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.app-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.app-row-cover {
    width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none;
    background: transparent; display: flex; align-items: center; justify-content: center;
}
.app-row-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--border-strong); box-shadow: 0 4px 12px rgba(30, 98, 216, .12); }
.app-row-cover.placeholder { background: linear-gradient(135deg, #dbeafe, #eef4ff); }
.app-row-cover .cover-char { width: 56px; height: 56px; font-size: 21px; border-radius: 14px; }
.app-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.app-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-row-name { font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-price { font-size: 15px; font-weight: 700; color: #e8531f; flex: none; letter-spacing: -.01em; }
.app-row-price.free { color: var(--success); }
.app-row-price .old { font-size: 11.5px; color: var(--text-3); text-decoration: line-through; font-weight: 400; margin-left: 5px; }
.app-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.app-row-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-row-author { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; flex: none; }

/* ---------- 徽章 / 状态 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--pill); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-yellow { background: var(--warning-light); color: var(--warning); }
.badge-gray { background: #f4f7fb; color: var(--text-2); }

/* ---------- 筛选栏 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.filter-bar select, .filter-bar input { width: auto; padding: 8px 13px; }
.filter-search { flex: 1; min-width: 180px; }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.filter-tabs a { padding: 8px 18px; border-radius: var(--pill); color: var(--text-2); background: #fff; border: 1px solid var(--border-strong); }
.filter-tabs a:hover { border-color: var(--primary); color: var(--primary); }
.filter-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 分组标签筛选 ---------- */
.filter-groups {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 22px;
    display: flex; flex-direction: column; gap: 16px;
}
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fg-bar { width: 3px; height: 15px; border-radius: 2px; background: var(--primary); flex: none; }
.fg-title { font-size: 13px; font-weight: 600; color: var(--text); width: 44px; flex: none; }
.fg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fg-tag {
    padding: 7px 16px; border-radius: var(--pill); font-size: 13px; color: var(--text-2);
    background: #fff; border: 1px solid var(--border-strong); transition: all .15s; line-height: 1.4;
}
.fg-tag:hover { border-color: var(--primary); color: var(--primary); }
.fg-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.table th { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; background: #f8fafc; }
.table thead th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.table thead th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.table td { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.table td:first-child { color: var(--text); font-weight: 600; }
.table td.col-php { white-space: normal; min-width: 118px; line-height: 1.5; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--primary-soft); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table code { font-size: 12px; color: var(--text-3); font-weight: 400; }
.text-muted { color: var(--text-3); }

/* ---------- 统计条（合并为一张整卡） ---------- */
.stat-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px;
}
.stat-card { position: relative; background: transparent; border: 0; box-shadow: none; padding: 22px 24px; }
.stat-card + .stat-card::before {
    content: ''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--border);
}
.stat-card .stat-label { font-size: 12.5px; color: var(--text-3); letter-spacing: .01em; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; margin-top: 5px; color: var(--text); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }

/* ---------- 账号信息网格 ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 24px; }
.profile-grid > div { min-width: 0; }
.profile-grid code { font-size: 13px; color: var(--primary); }

/* ---------- 后台/中心双栏布局 ---------- */
.console-layout { display: grid; grid-template-columns: 232px 1fr; gap: 22px; align-items: start; }
.console-sidebar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 12px; position: sticky; top: 86px; }
.console-sidebar .side-title { font-size: 11.5px; color: var(--text-3); padding: 12px 12px 7px; letter-spacing: .4px; }
.console-sidebar a {
    position: relative; display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin: 1px 0; border-radius: var(--radius-sm); color: var(--text-2);
}
.console-sidebar a:hover { background: var(--primary-soft); color: var(--primary); }
.console-sidebar a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.console-sidebar a.active::before {
    content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 3px; background: var(--primary);
}
.console-main { min-width: 0; }

/* ---------- 开发者应用行列表 ---------- */
.dev-app-list { display: flex; flex-direction: column; gap: 14px; }
.dev-app-row {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px 18px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dev-app-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.dev-app-icon {
    width: 46px; height: 46px; border-radius: 13px; flex: none;
    background: var(--cover-bg); display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-weight: 700; font-size: 19px;
}
.dev-app-main { flex: 1 1 auto; min-width: 0; }
.dev-app-name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.dev-app-id { margin-top: 2px; }
.dev-app-id code { font-size: 12px; color: var(--text-3); }
.dev-app-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.dev-app-meta .m-item { display: inline-flex; gap: 5px; align-items: baseline; }
.dev-app-meta .m-label { color: var(--text-3); }
.dev-app-reject { margin-top: 9px; padding: 8px 10px; border-radius: 9px; background: var(--danger-light); color: var(--danger); font-size: 12.5px; }
.dev-app-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.dev-app-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dev-app-actions form { display: inline-flex; }

/* ---------- 设置模块二级导航 ---------- */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.settings-tab {
    padding: 8px 18px; border-radius: var(--pill); font-size: 13.5px;
    color: var(--text-2); background: #fff; border: 1px solid var(--border-strong); transition: all .15s;
}
.settings-tab:hover { border-color: var(--primary); color: var(--primary); }
.settings-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.detail-main { min-width: 0; }
.detail-side { min-width: 0; position: sticky; top: 86px; }
.detail-head {
    display: grid; grid-template-columns: 280px 1fr; gap: 26px;
    margin-bottom: 22px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px;
}
.detail-cover { position: relative; border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 220px; }
.detail-cover img { display: block; }
.detail-cover.shot { align-self: stretch; width: 100%; min-height: 220px; background: #e6f0ff; }
.detail-cover.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; object-position: center; }
.detail-cover.placeholder { background: radial-gradient(120% 120% at 18% 12%, rgba(255,255,255,.75), rgba(255,255,255,0) 55%), linear-gradient(135deg, #dbeafe, #eef4ff); }
.detail-cover .cover-char { width: 72px; height: 72px; font-size: 30px; border-radius: 20px; box-shadow: 0 8px 20px rgba(30, 98, 216, .16); }
.detail-info h1 { font-size: 22px; margin-bottom: 10px; letter-spacing: -.01em; }
.detail-version { font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--primary-soft); border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.detail-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--text-3); font-size: 13px; }
.detail-meta span { white-space: nowrap; }
.detail-price { font-size: 26px; font-weight: 700; color: #e8531f; }
.detail-price.free { color: var(--success); }
.detail-price .old { font-size: 14px; color: var(--text-3); text-decoration: line-through; font-weight: 400; }
.detail-section { margin-bottom: 22px; }
.detail-section h3 { font-size: 15px; margin-bottom: 12px; }
.detail-intro-text { color: var(--text-2); white-space: pre-wrap; line-height: 1.7; }
.changelog-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.changelog-item:last-child { border-bottom: 0; }
.changelog-version { font-weight: 600; color: var(--primary); }
.changelog-time { font-size: 12px; color: var(--text-3); margin-left: 8px; }

/* ---------- 提示 / 闪存 ---------- */
.flash-alert {
    position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 999;
    padding: 12px 22px; border-radius: var(--radius-sm); font-size: 14px; box-shadow: var(--shadow-hover);
    background: #fff; max-width: 90vw;
}
.flash-success { color: var(--success); border: 1px solid #a7e8d2; }
.flash-error { color: var(--danger); border: 1px solid #f5c2c3; }
.empty {
    text-align: center; color: var(--text-3); padding: 44px 24px; font-size: 13.5px;
    background: var(--primary-soft); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
}
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.alert-info { background: var(--primary-light); color: var(--primary); }
.alert-warn { background: var(--warning-light); color: var(--warning); }
.alert-error { background: var(--danger-light); color: var(--danger); }
.alert-success { background: var(--success-light); color: var(--success); }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span.page-link {
    padding: 7px 13px; border-radius: var(--pill); background: #fff; border: 1px solid var(--border-strong);
    color: var(--text-2); font-size: 13px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-3); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: auto; padding: 24px 0; background: #111214; color: #8f959d; font-size: 12.5px; text-align: center; }
.site-footer a { color: #c3c9d0; }
.site-footer a:hover { color: #fff; }
.site-footer .dot { margin: 0 8px; color: #3a3e44; }

/* ---------- 鉴权页 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 60px 0; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-hover); padding: 34px 36px; width: 400px; max-width: 92vw; }
.auth-card h1 { font-size: 20px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-3); }

.hidden { display: none !important; }
.auth-tabs { display: flex; gap: 4px; background: #f2f3f5; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1 1 0; height: 36px; border: 0; background: transparent; border-radius: 9px; color: var(--text-3); font-size: 14px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.auth-tab.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .10); }
.auth-pane { min-width: 0; }

/* ---------- 评论 ---------- */
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: 0; }
.comment-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.comment-user { font-weight: 600; }
.comment-time { font-size: 12px; color: var(--text-3); }
.stars { color: var(--warning); letter-spacing: 2px; }

/* ---------- 首页布局 ---------- */
.home-layout { display: grid; grid-template-columns: 1fr 308px; gap: 24px; align-items: start; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.home-section {
    display: flex;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.home-side-bar {
    flex: none; width: 50px;
    display: flex; align-items: center; justify-content: center;
    writing-mode: vertical-rl;
    color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 3px;
    padding: 18px 0;
}
.section-recommended .home-side-bar { background: linear-gradient(180deg, #17a8b8, #0f8fa0); }
.section-latestThemes .home-side-bar,
.section-latestPlugins .home-side-bar { background: linear-gradient(180deg, #3a83e8, #1e62d8); }
.home-section-body { flex: 1; min-width: 0; padding: 20px 22px; }
.home-section-head { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 18px; }
.home-section-head h2 { display: none; }
.home-section-head h2 {
    display: none;
    font-size: 16.5px; font-weight: 600; color: var(--text);
    align-items: center; gap: 10px;
}
.home-section-head h2::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), #5b9bf5);
}
.home-section-head a {
    font-size: 13px; color: var(--primary); font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px; transition: gap .15s, color .15s;
}
.home-section-head a::after { content: '→'; font-size: 12px; }
.home-section-head a:hover { gap: 7px; color: var(--primary-hover); }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.home-section .app-card { background: var(--card); border-color: var(--border-strong); box-shadow: none; }
.home-section .app-card:hover { box-shadow: var(--shadow); border-color: #c9dcf6; }
.home-side { min-width: 0; display: flex; flex-direction: column; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 14px; margin-bottom: 18px; }
.side-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-item { display: flex; gap: 11px; align-items: center; color: var(--text); padding: 9px 10px; border-radius: var(--radius-sm); transition: background .15s; }
.rank-item:hover { background: var(--primary-soft); }
.rank-item:hover .rank-name { color: var(--primary); }
.rank-no {
    width: 22px; height: 22px; border-radius: 7px; background: #f1f5f9; color: var(--text-2);
    font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none;
}
.rank-item:nth-child(1) .rank-no { background: var(--primary); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: #e2e8f0; color: #334155; }
.rank-item:nth-child(3) .rank-no { background: #f1f5f9; color: var(--text-2); }
.rank-cover {
    width: 50px; height: 50px; border-radius: 10px; overflow: hidden; flex: none;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
}
.rank-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-strong); }
.rank-cover.placeholder { background: linear-gradient(135deg, #dbeafe, #eef4ff); }
.rank-cover .cover-char { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
.rank-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 11.5px; color: var(--text-3); }
.rank-price { color: #e8531f; font-weight: 600; }
.rank-price.free { color: var(--success); }

/* ---------- 后台：首页区块选品配置 ---------- */
.home-sections { display: flex; flex-direction: column; gap: 18px; }
.home-section-config { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; background: var(--primary-soft); }
.hsc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hsc-title { font-weight: 600; font-size: 15px; }
.hsc-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- 截图灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(15, 23, 42, .82); padding: 32px; }
.lightbox.open { display: flex; animation: lbFade .18s ease; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: 0 18px 60px rgba(0, 0, 0, .45); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 站点选择弹窗 ---------- */
.site-picker { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 24px; }
.site-picker.open { display: flex; animation: lbFade .18s ease; }
.site-picker-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.site-picker-card { position: relative; background: var(--card); border-radius: 16px; width: 430px; max-width: 92vw; padding: 24px 22px 20px; box-shadow: var(--shadow-hover); }
.site-picker-card h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.site-picker-sub { font-size: 12.5px; color: var(--text-3); margin: 6px 0 16px; }
.site-picker-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg); color: var(--text-2); font-size: 18px; cursor: pointer; line-height: 1; }
.site-picker-close:hover { background: var(--primary-light); color: var(--primary); }
.site-picker-list { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; }
.site-picker-item { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.site-picker-item:hover { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow); }
.site-picker-item.active { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow); }
.site-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.site-picker-name { font-size: 14px; font-weight: 600; color: var(--text); }
.site-picker-url { font-size: 12px; color: var(--text-3); word-break: break-all; }

.pay-row-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.pay-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-option { padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pay-option:hover { border-color: var(--primary); color: var(--primary); }
.pay-option.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }

.payqr-card { width: 340px; text-align: center; }
.payqr-img { display: flex; justify-content: center; margin: 14px 0 10px; }
.payqr-img img { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.payqr-tip { font-size: 13px; color: var(--text-2); margin: 0 0 6px; }
.payqr-order { font-size: 12px; color: var(--text-3); margin: 0 0 4px; }
.payqr-card .alias-actions { justify-content: center; }

/* ---------- 安装别名弹窗 ---------- */
.alias-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.alias-prefix, .alias-suffix { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.alias-prefix { overflow: hidden; text-overflow: ellipsis; }
.alias-input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text); }
.alias-input:focus { outline: none; border-color: var(--primary); }
.alias-hint { min-height: 18px; margin-top: 8px; color: var(--danger); }
.alias-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* ---------- 协议文档 ---------- */
.terms-doc h3 { font-size: 15px; font-weight: 600; margin: 24px 0 10px; color: var(--text); }
.terms-doc p { color: var(--text-2); margin: 10px 0; }
.terms-doc ol, .terms-doc ul { padding-left: 22px; margin: 8px 0; }
.terms-doc li { color: var(--text-2); margin: 7px 0; }
.terms-doc strong { color: var(--text); }
.terms-updated { color: var(--text-3); font-size: 12.5px; margin-bottom: 16px; }
.terms-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-weight: 500; }

/* ---------- 开发者申请 ---------- */
.payout-radio { display: flex; gap: 14px; }
.payout-option { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-2); font-size: 13.5px; }
.payout-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.doc-thumb { display: inline-block; margin-bottom: 8px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); width: 132px; height: 88px; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.agree-check { display: flex; gap: 9px; align-items: flex-start; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.agree-check input { margin-top: 4px; accent-color: var(--primary); }
.terms-agree { padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); }

/* ---------- 后台资质缩略图 ---------- */
.doc-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-thumb-sm { width: 56px; height: 44px; border-radius: 7px; overflow: hidden; border: 1px solid var(--border); display: inline-block; }
.doc-thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb-none { width: 56px; height: 44px; border-radius: 7px; border: 1px dashed var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); }
