@charset "utf-8";
/* ============================================================
   KTV 歌曲版权视频入库平台 —— 全站统一 UI 样式表
   所有页面（前台 / 用户中心 / 管理后台）共用本文件
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
    --brand: #6c5ce7;
    --brand-dark: #5849c4;
    --brand-light: #efeaff;
    --brand-2: #00b8d9;
    --bg: #f4f5fb;
    --card: #ffffff;
    --text: #1e2334;
    --text-2: #4a5169;
    --muted: #8b91a8;
    --border: #e6e8f2;
    --border-2: #d8dcea;
    --ok: #14a44d;
    --ok-bg: #e7f7ed;
    --warn: #d98200;
    --warn-bg: #fff5e5;
    --danger: #e03131;
    --danger-bg: #fdecec;
    --info: #1c7ed6;
    --info-bg: #e8f2fd;
    --vip: #b8860b;
    --vip-bg: #fff8e1;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 10px rgba(24, 30, 60, .06);
    --shadow-lg: 0 12px 40px rgba(24, 30, 60, .16);
    --sidebar-w: 230px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5 { margin: 0 0 12px; font-weight: 600; color: var(--text); }
p { margin: 0 0 10px; }

img { max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #ccd1e0; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-2);
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #8a7bf0 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 6px 18px rgba(108, 92, 231, .38); border-color: transparent; }

.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(108, 92, 231, .08); color: var(--brand); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c92a2a; border-color: #c92a2a; color: #fff; }

.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-success:hover { background: #108a3f; border-color: #108a3f; color: #fff; }

.btn-warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn-warn:hover { background: #b86e00; color: #fff; }

.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 5px; }
.btn-block { display: flex; width: 100%; }

.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   卡片 / 面板
   ============================================================ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.card-title { font-size: 15px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-title::before {
    content: '';
    width: 4px; height: 15px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    border-radius: 2px;
    display: inline-block;
}
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: #fbfbfe; }
.card-body.p-0 { padding: 0; }

/* ============================================================
   徽章
   ============================================================ */
.badge {
    display: inline-block;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    border-radius: 20px;
    white-space: nowrap;
    background: #eef0f7;
    color: var(--text-2);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-vip { background: var(--vip-bg); color: var(--vip); }
.badge-gray { background: #eef0f7; color: var(--muted); }
.badge-dot::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 5px;
    vertical-align: middle;
}

/* ============================================================
   提示条
   ============================================================ */
.alert {
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    margin-bottom: 16px;
    font-size: 13.5px;
}
.alert-success { background: var(--ok-bg); border-color: var(--ok); color: #0b6b31; }
.alert-danger { background: var(--danger-bg); border-color: var(--danger); color: #a52222; }
.alert-warning { background: var(--warn-bg); border-color: var(--warn); color: #8a5300; }
.alert-info { background: var(--info-bg); border-color: var(--info); color: #15538c; }

.hint-box {
    background: #f8f9fe;
    border: 1px dashed var(--border-2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 16px;
}
.hint-box ul { margin: 6px 0 0; padding-left: 20px; }

/* ============================================================
   表单
   ============================================================ */
.form-row { margin-bottom: 18px; }
.form-row:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
}
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control {
    width: 100%;
    padding: 10px 13px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 92, 231, .12); }
.form-control::placeholder { color: #b3b8c9; }
.form-control:disabled, .form-control[readonly] { background: #f6f7fb; color: var(--muted); cursor: not-allowed; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b91a8' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.7; }

.form-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.form-error { margin-top: 6px; font-size: 12.5px; color: var(--danger); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.form-grid .span-2, .form-grid-3 .span-2 { grid-column: span 2; }
.form-grid-3 .span-3 { grid-column: span 3; }

.checkbox-line { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.checkbox-line input[type=checkbox], .checkbox-line input[type=radio] { margin-top: 4px; width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; flex: none; }

.input-group { display: flex; gap: 10px; align-items: center; }
.input-group .form-control { flex: 1; }
.input-group .captcha-img { height: 42px; width: 118px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); cursor: pointer; flex: none; }

.fieldset-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 4px 0 16px;
    padding-left: 10px;
    border-left: 3px solid var(--brand);
}

/* ============================================================
   上传控件
   ============================================================ */
.upload-item { margin-bottom: 18px; }
.upload-drop {
    position: relative;
    border: 1.5px dashed var(--border-2);
    border-radius: var(--radius);
    background: #fbfbfe;
    padding: 20px;
    text-align: center;
    transition: all .18s;
    cursor: pointer;
}
.upload-drop:hover, .upload-drop.dragover { border-color: var(--brand); background: var(--brand-light); }
.upload-drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.upload-drop.uploading { border-color: var(--brand); background: var(--brand-light); }
.upload-drop .up-icon { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.upload-drop .up-main { font-size: 13.5px; color: var(--text-2); }
.upload-drop .up-main strong { color: var(--brand); }
.upload-drop .up-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.upload-drop input[type=file] { display: none; }

.upload-file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.upload-file .uf-name { flex: 1; word-break: break-all; color: var(--text-2); }
.upload-file .uf-size { color: var(--muted); font-size: 12px; flex: none; }
.upload-file .uf-del { color: var(--danger); cursor: pointer; flex: none; font-size: 12px; }

.progress { height: 6px; background: #e9ebf5; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress.is-idle { display: none; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .25s; }
.progress-text { font-size: 12px; color: var(--muted); margin-top: 5px; text-align: right; }

.img-preview {
    margin-top: 10px;
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.img-preview img {
    max-height: 150px;
    max-width: 260px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: block;
    background: #fff;
}
.img-preview .pv-tag {
    position: absolute; left: 0; top: 0;
    background: rgba(20, 164, 77, .92);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-sm) 0 var(--radius-sm) 0;
}

/* PDF 已上传提示（PDF 无法用 <img> 渲染） */.pdf-preview {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--ok);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}
.pdf-preview .pdf-icon { font-size: 26px; flex: none; }
.pdf-preview .pdf-name { font-size: 13px; color: var(--text); word-break: break-all; flex: 1; min-width: 120px; }
.pdf-preview .pdf-tag { font-size: 12px; color: var(--ok); flex: none; }

/* ============================================================
   授权书模板下载区（作品提交页）
   ============================================================ */
.tpl-box {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    margin-top: 4px;
    background: linear-gradient(135deg, #f3f0ff 0%, #e9f6fb 100%);
    border: 1px solid #dcd6fb;
    border-radius: var(--radius);
}
.tpl-box .tpl-icon { font-size: 26px; flex: none; line-height: 1.2; }
.tpl-box .tpl-main { flex: 1; min-width: 0; }
.tpl-box .tpl-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tpl-box .tpl-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 10px; }
.tpl-box .tpl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-box .tpl-link {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tpl-box .tpl-link:hover { background: var(--brand); color: #fff; }
.tpl-box .tpl-link .tpl-ext {
    font-size: 11px;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(108, 92, 231, .12);
    color: inherit;
}
.tpl-box .tpl-link:hover .tpl-ext { background: rgba(255, 255, 255, .22); }
.tpl-box .tpl-remark {
    margin-top: 9px;
    font-size: 12px;
    color: var(--warn);
    background: var(--warn-bg);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    line-height: 1.7;
}
.tpl-box-compact { padding: 12px 14px; }
.tpl-box-compact .tpl-desc { display: none; }

/* ============================================================
   表格
   ============================================================ */
.table-wrap { width: 100%; overflow-x: auto; }
table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
table.table th {
    background: #f8f9fe;
    color: var(--text-2);
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-size: 13px;
}
table.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: middle;
}
table.table tbody tr:hover { background: #fafbff; }
table.table tbody tr:last-child td { border-bottom: none; }
table.table td.num { font-variant-numeric: tabular-nums; }
table.table .cell-title { color: var(--text); font-weight: 500; }
table.table .nowrap { white-space: nowrap; }
table.table .actions { white-space: nowrap; }
table.table .actions .btn { margin-right: 5px; }
table.table .actions .btn:last-child { margin-right: 0; }

/* ============================================================
   布局：应用外壳（用户中心 / 管理后台）
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: none;
    background: linear-gradient(180deg, #232842 0%, #1b1f36 100%);
    color: #c9cde0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar-brand .logo {
    width: 34px; height: 34px;
    flex: none;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    color: #fff;
}
.sidebar-brand .bname { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.25; }
.sidebar-brand .bsub { font-size: 11px; color: #7d84a3; }

.sidebar-nav { padding: 14px 10px; flex: 1; }
.sidebar-nav .nav-group-title {
    font-size: 11px;
    color: #6b7295;
    padding: 12px 10px 6px;
    letter-spacing: .5px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #c9cde0;
    font-size: 13.5px;
    margin-bottom: 3px;
    transition: all .16s;
    position: relative;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, .95), rgba(0, 184, 217, .75));
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(108, 92, 231, .3);
}
.sidebar-nav a .ic { width: 18px; text-align: center; font-size: 15px; flex: none; }
.sidebar-nav a .nav-badge {
    margin-left: auto;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    font-weight: 500;
}
.sidebar-foot {
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 11.5px;
    color: #6b7295;
    line-height: 1.7;
}

.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 62px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left .page-title { font-size: 16px; font-weight: 600; color: var(--text); }
.topbar-left .page-sub { font-size: 12.5px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 14px; flex: none; }
.topbar-user {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--text-2);
}
.topbar-user .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; flex: none;
}
.msg-bell {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    color: var(--text-2);
    background: #f6f7fb;
    transition: all .16s;
}
.msg-bell:hover { background: var(--brand-light); color: var(--brand); }
.msg-bell .dot {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 17px; height: 17px;
    line-height: 17px;
    padding: 0 4px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    border-radius: 9px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 0 0 2px #fff;
}

.content { padding: 22px 24px 40px; flex: 1; }

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.page-head h2 { font-size: 19px; margin: 0 0 4px; }
.page-head .desc { font-size: 13px; color: var(--muted); }

/* ---------- 统计卡片 ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    right: -22px; top: -22px;
    width: 78px; height: 78px;
    border-radius: 50%;
    background: var(--brand-light);
    opacity: .75;
}
.stat-card .st-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; position: relative; z-index: 1; }
.stat-card .st-value { font-size: 27px; font-weight: 700; color: var(--text); line-height: 1.15; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.stat-card .st-foot { font-size: 12px; color: var(--muted); margin-top: 6px; position: relative; z-index: 1; }
.stat-card.c-warn::after { background: var(--warn-bg); }
.stat-card.c-warn .st-value { color: var(--warn); }
.stat-card.c-ok::after { background: var(--ok-bg); }
.stat-card.c-ok .st-value { color: var(--ok); }
.stat-card.c-danger::after { background: var(--danger-bg); }
.stat-card.c-danger .st-value { color: var(--danger); }
.stat-card.c-brand::after { background: var(--brand-light); }
.stat-card.c-brand .st-value { color: var(--brand); }

/* ---------- 账号横幅 ---------- */
.account-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #2b3050 0%, #4a3f8f 55%, #2f7fa8 100%);
    color: #fff;
    margin-bottom: 20px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(43, 48, 80, .25);
}
.account-banner .ab-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-banner .ab-avatar {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; font-weight: 600; flex: none;
    border: 1px solid rgba(255, 255, 255, .25);
}
.account-banner .ab-email { font-size: 16px; font-weight: 600; word-break: break-all; }
.account-banner .ab-meta { display: flex; align-items: center; gap: 9px; margin-top: 5px; font-size: 12.5px; color: rgba(255, 255, 255, .82); flex-wrap: wrap; }
.account-banner .ab-meta .badge { background: rgba(255, 255, 255, .2); color: #fff; }
.account-banner .ab-right { text-align: right; }
.account-banner .ab-price { font-size: 22px; font-weight: 700; }

/* ---------- 空状态 ---------- */
.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.empty .em-icon { font-size: 42px; margin-bottom: 12px; opacity: .55; }
.empty .em-title { font-size: 14.5px; color: var(--text-2); margin-bottom: 6px; }
.empty .em-desc { font-size: 13px; margin-bottom: 16px; }

/* ---------- 列表（消息/最近作品） ---------- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13.5px;
}
.list-plain li:last-child { border-bottom: none; }
.list-plain .li-main { flex: 1; min-width: 0; }
.list-plain .li-title { color: var(--text); font-weight: 500; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-plain .li-sub { font-size: 12.5px; color: var(--muted); }
.list-plain .li-time { font-size: 12px; color: var(--muted); flex: none; }

/* ============================================================
   弹窗 Modal
   ============================================================ */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(18, 22, 40, .55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-mask.open { display: flex; }
.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    animation: modalIn .22s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal.modal-lg { max-width: 760px; }
.modal.modal-sm { max-width: 400px; }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close {
    background: none; border: none;
    font-size: 22px; line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 4px;
    transition: color .16s;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fbfbfe;
    border-radius: 0 0 16px 16px;
    flex-wrap: wrap;
}

/* ---------- 套餐卡片 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
    transition: all .2s;
    position: relative;
    background: #fff;
    cursor: pointer;
}
.plan-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(108, 92, 231, .16); }
.plan-card.selected { border-color: var(--brand); background: var(--brand-light); }
.plan-card .pc-tag {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--vip), #e0a800);
    color: #fff; font-size: 11px; padding: 2px 12px; border-radius: 10px;
    white-space: nowrap;
}
.plan-card .pc-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.plan-card .pc-price { font-size: 28px; font-weight: 700; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-card .pc-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-card .pc-desc { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* ---------- 二维码支付 ---------- */
.qr-box { text-align: center; padding: 10px 0; }
.qr-box .qr-img {
    width: 200px; height: 200px;
    margin: 0 auto 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.qr-box .qr-img img { width: 100%; height: 100%; object-fit: contain; }
.countdown { font-size: 14px; color: var(--warn); font-weight: 600; }
.countdown.expired { color: var(--danger); }

/* ============================================================
   标签页
   ============================================================ */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a, .tabs button {
    padding: 9px 16px;
    font-size: 13.5px;
    color: var(--text-2);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    text-decoration: none;
}
.tabs a:hover, .tabs button:hover { color: var(--brand); }
.tabs a.active, .tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ============================================================
   筛选栏
   ============================================================ */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #fbfbfe;
}
.filter-bar .fb-item { display: flex; flex-direction: column; gap: 5px; }
.filter-bar .fb-item label { font-size: 12px; color: var(--muted); }
.filter-bar .fb-item .form-control { min-width: 140px; padding: 7px 11px; font-size: 13px; }
.filter-bar .fb-actions { display: flex; gap: 8px; padding-bottom: 1px; }

/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    flex-wrap: wrap;
}
.pagination-total { font-size: 12.5px; color: var(--muted); padding: 14px 20px; }
.pagination-links { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--border-2);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-2);
    background: #fff;
    text-decoration: none;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.page-link.disabled { opacity: .5; pointer-events: none; }
.page-dots { color: var(--muted); padding: 0 3px; }

/* ============================================================
   前台公共页面（首页 / 登录 / 注册 / 帮助中心）
   ============================================================ */
.pub-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}
.pub-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pub-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pub-logo .logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
}
.pub-logo .ln { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; }
.pub-logo .ls { font-size: 11px; color: var(--muted); }
.pub-nav { display: flex; align-items: center; gap: 6px; }
.pub-nav a.pn {
    padding: 8px 14px;
    font-size: 14px;
    color: var(--text-2);
    border-radius: var(--radius-sm);
}
.pub-nav a.pn:hover { background: var(--brand-light); color: var(--brand); }
.pub-nav a.pn.active { color: var(--brand); font-weight: 600; }

.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.hero {
    background: linear-gradient(135deg, #262b4a 0%, #4b3f92 50%, #1f6f96 100%);
    color: #fff;
    padding: 78px 0 88px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -120px; top: -120px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, .55), transparent 68%);
}
.hero::before {
    content: '';
    position: absolute;
    left: -100px; bottom: -160px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 184, 217, .35), transparent 68%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero .tagline {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 12.5px;
    margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.25; color: #fff; margin-bottom: 16px; letter-spacing: .5px; }
.hero h1 span { background: linear-gradient(90deg, #a99bff, #63d8f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 15.5px; color: rgba(255, 255, 255, .85); line-height: 1.85; margin-bottom: 28px; }
.hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.section { padding: 62px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 27px; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.section.alt { background: #fff; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(24, 30, 60, .12); }
.feature-card .fc-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-light), #e4f6fb);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.feature-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin: 0; }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card { position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-card .sc-no {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.step-card h4 { font-size: 14.5px; margin-bottom: 7px; }
.step-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.price-card {
    background: #fff; border: 2px solid var(--border); border-radius: 16px;
    padding: 30px 26px; text-align: center; position: relative;
    box-shadow: var(--shadow);
}
.price-card.hot { border-color: var(--brand); box-shadow: 0 14px 36px rgba(108, 92, 231, .18); }
.price-card .hot-tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 12px; padding: 3px 15px; border-radius: 12px;
}
.price-card h3 { font-size: 17px; margin-bottom: 6px; }
.price-card .p-amount { font-size: 38px; font-weight: 700; color: var(--brand); line-height: 1.15; }
.price-card .p-amount small { font-size: 15px; font-weight: 400; color: var(--muted); }
.price-card .p-desc { font-size: 13px; color: var(--muted); margin: 10px 0 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.price-card ul li { font-size: 13.5px; color: var(--text-2); padding: 7px 0 7px 24px; position: relative; }
.price-card ul li::before { content: '✓'; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

.pub-footer {
    background: #1b1f36;
    color: #9aa1bd;
    padding: 34px 0 26px;
    font-size: 13px;
    line-height: 1.9;
}
.pub-footer .pf-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pub-footer .pf-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.pub-footer a { color: #b9bfd8; }
.pub-footer a:hover { color: #fff; }
.pub-footer .pf-disclaimer {
    margin-top: 14px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .05);
    border-left: 3px solid var(--warn);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: #8f96b3;
    line-height: 1.9;
}
.pub-footer .pf-copy { margin-top: 14px; font-size: 12.5px; color: #6b7295; }

/* ============================================================
   友情链接（首页）
   两种样式：卡片（默认 .friend-links）/ 文字链接（.friend-links-text）
   ============================================================ */
.friend-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}
.friend-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 1px 2px rgba(24, 28, 60, .04);
    min-width: 0;
}
.friend-link:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(108, 92, 231, .15);
}
.friend-link .fl-logo {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    background: #f1f2f9;
    color: #8a90b0;
    user-select: none;
}
.friend-link .fl-logo .fl-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.friend-link .fl-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.friend-link .fl-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.friend-link:hover .fl-name { color: var(--brand); }
.friend-link .fl-desc {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 3px;
}
.friend-link .fl-go {
    flex: none;
    font-size: 13px;
    color: #c2c6da;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: all .18s ease;
}
.friend-link:hover .fl-go { opacity: 1; transform: translate(0, 0); color: var(--brand); }

/* ---------- 友链：文字链接样式 ---------- */
.friend-links-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 2.2;
    font-size: 13.5px;
}
.friend-links-text .fl-text {
    display: inline-block;
    padding: 3px 8px;
    margin: 0 1px;
    color: #5b628a;
    text-decoration: none;
    border-radius: 6px;
    transition: all .16s ease;
}
.friend-links-text .fl-text:hover {
    color: var(--brand);
    background: rgba(108, 92, 231, .08);
}
.friend-links-text .fl-text + .fl-text::before {
    content: '·';
    color: #c8cbe0;
    margin-right: 7px;
    margin-left: -8px;
}

@media (max-width: 820px) {
    .friend-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .friend-links { grid-template-columns: 1fr; }
}

/* ---------- 登录 / 注册 ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #232848 0%, #3d3577 48%, #1f6f96 100%);
    position: relative;
    overflow: hidden;
}
.auth-page::after {
    content: '';
    position: absolute; right: -140px; top: -140px;
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, .5), transparent 68%);
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 18, 40, .35);
    padding: 34px 32px 28px;
    position: relative;
    z-index: 1;
}
.auth-card .ac-logo { text-align: center; margin-bottom: 20px; }
.auth-card .ac-logo .logo {
    width: 52px; height: 52px; border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 25px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.auth-card h2 { text-align: center; font-size: 19px; margin-bottom: 5px; }
.auth-card .ac-sub { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-card .ac-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-card .ac-back { text-align: center; margin-top: 14px; font-size: 12.5px; }

/* ---------- 帮助中心 ---------- */
.help-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.help-side { position: sticky; top: 86px; }
.help-cats { list-style: none; margin: 0; padding: 0; }
.help-cats li a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13.5px;
    margin-bottom: 3px;
}
.help-cats li a:hover { background: var(--brand-light); color: var(--brand); }
.help-cats li a.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }

.article-item {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    margin-bottom: 14px;
    transition: all .18s;
    text-decoration: none;
}
.article-item:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(108, 92, 231, .12); }
.article-item h3 { font-size: 15.5px; margin-bottom: 7px; color: var(--text); }
.article-item .ai-sum { font-size: 13px; color: var(--muted); margin-bottom: 9px; line-height: 1.7; }
.article-item .ai-meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }

.article-body { font-size: 14.5px; line-height: 1.95; color: var(--text-2); word-break: break-word; }
.article-body h1, .article-body h2, .article-body h3 { margin: 24px 0 12px; color: var(--text); }
.article-body h2 { font-size: 19px; }
.article-body h3 { font-size: 16.5px; }
.article-body p { margin: 0 0 14px; }
.article-body img { border-radius: var(--radius-sm); margin: 10px 0; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 14px; }
.article-body li { margin-bottom: 6px; }
.article-body pre {
    background: #f6f7fb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    overflow-x: auto;
    font-size: 13px;
}
.article-body code { background: #f0f1f8; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.article-body pre code { background: none; padding: 0; }
.article-body blockquote {
    margin: 0 0 14px;
    padding: 10px 16px;
    border-left: 4px solid var(--brand);
    background: #f8f9fe;
    border-radius: var(--radius-sm);
    color: var(--text-2);
}
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 13.5px; }
.article-body table th, .article-body table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.article-body table th { background: #f8f9fe; }

/* ============================================================
   详情描述列表
   ============================================================ */
.desc-list { display: grid; grid-template-columns: 140px 1fr; gap: 0; }
.desc-list dt {
    padding: 11px 0;
    color: var(--muted);
    font-size: 13.5px;
    border-bottom: 1px dashed var(--border);
}
.desc-list dd {
    padding: 11px 0;
    margin: 0;
    font-size: 13.5px;
    color: var(--text);
    border-bottom: 1px dashed var(--border);
    word-break: break-word;
}
.desc-list dt:last-of-type, .desc-list dd:last-of-type { border-bottom: none; }

/* ---------- 文件预览卡片 ---------- */
.file-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.file-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: all .18s;
}
.file-preview:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(108, 92, 231, .12); }
.file-preview .fp-head {
    padding: 8px 12px;
    background: #f8f9fe;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.file-preview .fp-body {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbff;
    overflow: hidden;
}
.file-preview .fp-body img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.file-preview .fp-body .fp-icon { font-size: 34px; color: var(--muted); }
.file-preview .fp-foot { padding: 8px 12px; border-top: 1px solid var(--border); text-align: center; }
.file-preview .fp-name { font-size: 11.5px; color: var(--muted); padding: 6px 12px; word-break: break-all; }

/* ============================================================
   内联工具
   ============================================================ */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-brand { color: var(--brand); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }

/* ---------- 消息列表项 ---------- */
.msg-item { border-bottom: 1px dashed var(--border); }
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: #fafbff; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }
.w-100 { width: 100%; }
.break-all { word-break: break-all; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ---------- 加载动画 ---------- */
.spinner {
    display: inline-block;
    width: 15px; height: 15px;
    border: 2px solid rgba(108, 92, 231, .25);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
#toast-wrap {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
.toast {
    padding: 11px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 25, 50, .18);
    font-size: 13.5px;
    color: var(--text);
    border-left: 4px solid var(--brand);
    animation: toastIn .25s ease;
    max-width: 90vw;
}
.toast.success { border-color: var(--ok); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
    .feature-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .form-grid-3 .span-3 { grid-column: span 2; }
    .help-layout { grid-template-columns: 1fr; }
    .help-side { position: static; }
}

@media (max-width: 820px) {
    :root { --sidebar-w: 0px; }
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 230px;
        box-shadow: 0 0 40px rgba(0, 0, 0, .35);
    }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .sidebar-toggle { display: flex !important; }
    .hero h1 { font-size: 28px; }
    .feature-grid, .step-grid, .stat-grid { grid-template-columns: 1fr; }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .form-grid .span-2, .form-grid-3 .span-2, .form-grid-3 .span-3 { grid-column: span 1; }
    .plan-grid, .price-grid { grid-template-columns: 1fr; }
    .content { padding: 16px 14px 34px; }
    .topbar { padding: 0 14px; }
    .desc-list { grid-template-columns: 100px 1fr; }
    .pub-nav a.pn { padding: 7px 10px; font-size: 13px; }
    .pub-header-inner { padding: 0 14px; }
    .pub-wrap { padding: 0 14px; }
    .auth-card { padding: 26px 20px 22px; }
    .account-banner .ab-right { text-align: left; }
}

.sidebar-toggle {
    display: none;
    width: 36px; height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #fff;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    color: var(--text-2);
}

.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 40, .5);
    z-index: 99;
}
.backdrop.show { display: block; }

/* 打印（订单详情等） */
@media print {
    .sidebar, .topbar, .pub-header, .pub-footer, .btn, .filter-bar { display: none !important; }
    .main { margin-left: 0; }
    .content { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
