/* ==========================================================================
   1. 现代化主题变量 (CSS Variables)
   ========================================================================== */
:root {
    --primary: #0067e5;
    --primary-hover: #0052cc;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --bg-body: #f4f7fb;
    --bg-surface: #ffffff;
    --bg-hover: #f8fafc;

    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --border: #ddd;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;   /* 补充缺失的变量，login-wrap 等用到 */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --ring: 0 0 0 3px rgba(0, 103, 229, 0.15);

    /* 表单 label 列宽，集中管理 */
    --form-label-width: 16.66666667%; /* col-sm-2 */
}

/* ==========================================================================
   2. 基础重置 (CSS Reset)
   优先级高于 global.css 的旧样式
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0; padding: 0;
    font-size: 14px; /* 覆盖 global.css 的 12px */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
}

/* 覆盖 global.css 的 a:hover underline */
a { color: var(--primary); text-decoration: none !important; transition: color 0.2s; cursor: pointer; }
a:hover { color: var(--primary-hover); text-decoration: none !important; }

ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
dialog { border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0; }
dialog::backdrop { background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); }

p { margin: 0 0 8px 0; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   3. 通用工具类与清除浮动
   ========================================================================== */
.hidden, .hide { display: none !important; }
.show { display: block !important; }

.clearfix::before, .clearfix::after { content: " "; display: table; }
.clearfix::after { clear: both; }
.clear { clear: both; }

.pull-left, .fl { float: left !important; }
.pull-right, .fr { float: right !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt { margin-top: 10px; } .mb { margin-bottom: 10px; }
.color_red { color: var(--danger); }
.color_green { color: var(--success); }

/* ==========================================================================
   4. 页面大框架布局 (Layout)
   ========================================================================== */
body > .wrapper { padding: 20px 0; }

.container, .page-center {
    min-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.container::before, .container::after,
.page-center::before, .page-center::after { content: " "; display: table; }
.container::after, .page-center::after { clear: both; }

/* 侧边栏与主内容区 */
.sidebar {
    float: left;
    width: 250px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    min-height: 500px;
}

.main {
    float: left;
    width: calc(100% - 270px);
    margin-left: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px 32px;
    min-height: 800px;
}

.bread-crumb {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.bread-crumb h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    display: inline-block;
}
.bread-crumb small {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 12px;
    font-weight: normal;
}

/* ==========================================================================
   5. 核心网格系统 (Bootstrap 3 Float 兼容网格)
   ========================================================================== */
.row { margin-left: -15px; margin-right: -15px; }
.row::before, .row::after { content: " "; display: table; }
.row::after { clear: both; }

/* form-group 本身也要清除浮动，防止子列撑不开高度 */
.form-group {
    margin-bottom: 20px;
    /* 清除浮动，让自身高度包裹浮动的 col 子元素 */
    overflow: hidden; /* 比 clearfix 伪元素更稳定 */
}

/* 所有列：统一基础属性 */
[class*="col-sm-"] {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

/* 768px 以上激活浮动网格 */
@media (min-width: 768px) {
    [class*="col-sm-"] { float: left; }

    .col-sm-12 { width: 100%; }
    .col-sm-11 { width: 91%; }
    .col-sm-10 { width: 81%; }
    .col-sm-9  { width: 75%; }
    .col-sm-8  { width: 66%; }
    .col-sm-7  { width: 58%; }
    .col-sm-6  { width: 50%; }
    .col-sm-5  { width: 41%; }
    .col-sm-4  { width: 33%; }
    .col-sm-3  { width: 25%; }
    .col-sm-2  { width: 16%; }
    .col-sm-1  { width: 8%; }

    /* ★ 核心修复：form-horizontal 里的 label 右对齐并垂直居中于 input 高度 */
    .form-horizontal .control-label {
        text-align: right;
        /* 38px 是 form-control 的 height，(38 - 14*1.5)/2 ≈ 8.5px → 取 8px */
        padding-top: 8px;
        padding-bottom: 0;
        margin-bottom: 0;
        font-weight: 600;
        color: var(--text-main);
        /* label 本身也是浮动列，不再需要额外处理 */
    }
}

/* 移动端：列全宽堆叠 */
@media (max-width: 767px) {
    [class*="col-sm-"] {
        display: block;
        width: 100%;
        float: none;
    }
    .form-horizontal .control-label {
        text-align: left;
        padding-top: 0;
        margin-bottom: 6px;
        font-weight: 600;
    }
}

/* ==========================================================================
   6. 头部与下拉菜单 (Header & Dropdown)
   ========================================================================== */
/* 限制 header 仅作用于直接子元素 */
body > .header { background: #fff; height: 70px; box-shadow: var(--shadow-sm); position: relative; z-index: 100; }
body > .header .head-box { position: relative; height: 70px; padding: 0 20px; }
body > .header .logo { float: left; margin-top: 15px; height: 40px;}
body > .header .logo img { height: 40px; display: block; }
body > .header .logoTxt { float: left; line-height: 70px; font-size: 20px; color: #5fafe4; margin-left: 10px; font-weight: 600;}
body > .header .top-nav { float: left; padding-left: 30px; height: 70px; }
body > .header .head-user { float: right; padding-top: 15px; position: relative; }
body > .header .head-user ul { margin: 0; padding: 0; }
body > .header .head-user li { float: left; margin-left: 20px; position: relative; cursor: pointer; height: 40px; line-height: 40px; }

.head-avatar img {
    width: 36px; height: 36px; border-radius: 50%;
    margin-right: 8px; vertical-align: middle; border: 2px solid var(--border);
}
.head-avatar p {
    display: inline-block; vertical-align: middle;
    margin: 0; font-weight: 600; color: var(--text-main);
}

/* 下拉菜单（默认隐藏） */
.user-box, .welfare-box {
    position: absolute; top: 50px; right: 0; width: 140px;
    display: none; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    z-index: 1000; padding: 5px 0;
}
.user-box.show, .welfare-box.show { display: block; }
.user-box dd, .welfare-box dd { margin: 0; }
.user-box .link a {
    display: block; padding: 10px 20px;
    color: var(--text-main); font-size: 14px; line-height: 1.5;
}
.user-box .link a:hover { background: var(--bg-hover); color: var(--primary); }

/* ==========================================================================
   7. 侧边栏菜单 (Sidebar)
   ========================================================================== */
.sidebar li { display: block; width: 100%; position: relative; }
.sidebar li .min-link {
    display: block; padding: 12px 20px 12px 24px;
    color: var(--text-main); font-size: 15px;
    text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.sidebar li .min-link:hover { background-color: var(--bg-hover); color: var(--primary); }
.sidebar li.active > .min-link {
    background-color: #f0f7ff; color: var(--primary);
    font-weight: bold; border-right: 4px solid var(--primary);
}
.sidebar li .min-link i,
.sidebar li .min-link span.icon { margin-right: 12px; font-size: 18px; vertical-align: middle; }
.sidebar li .min-link span.icon {
    display: inline-block; width: 16px; height: 16px;
    background-repeat: no-repeat; margin-top: -2px;
}
.sidebar li span.icon.home     { background-position: 0 0; }
.sidebar li span.icon.works    { background-position: 0 -60px; }
.sidebar li span.icon.income   { background-position: 0 -100px; }
.sidebar li span.icon.activity { background-position: 0 -120px; }
.sidebar li span.icon.passport { background-position: 0 -140px; }

/* 折叠箭头 */
.sidebar li .caret {
    display: inline-block; width: 0; height: 0; margin-left: 5px;
    vertical-align: middle; border-top: 5px solid;
    border-right: 4px solid transparent; border-left: 4px solid transparent;
    float: right; margin-top: 8px; color: var(--text-light);
}

/* 子菜单 */
.sidebar .sub-link {
    display: none; margin: 0; padding: 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.sidebar .sub-link.collapse.in { display: block; }
.sidebar .sub-link li { height: auto; }
.sidebar .sub-link li a {
    display: block; padding: 10px 20px 10px 50px;
    color: var(--text-muted); font-size: 13px;
}
.sidebar .sub-link li a:hover { color: var(--primary); }
.sidebar .sub-link li.active a { color: var(--primary); font-weight: bold; }

/* ==========================================================================
   8. 表单组件 (Forms)  ← 主要修复区域
   ========================================================================== */

/* 表单容器宽度限制 */
.form-container.middle { max-width: 860px; }
.form-container.small  { max-width: 600px; }

/* ★ form-control 基础样式
   注意：宽度用 100% 是正确的，由父级 col 控制实际宽度
   有内联 style="width:200px" 的 input 会自动覆盖这里的 width，正常工作 */
.form-control, .input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-main);
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
    line-height: 1.5;
    vertical-align: middle;
    /* 覆盖 global.css 的 font-family */
    font-family: inherit;
}

textarea.form-control, textarea.input {
    height: auto;
    min-height: 90px;
    resize: vertical;
    line-height: 1.6;
}

.form-control:focus, .input:focus {
    border-color: var(--primary);
    box-shadow: var(--ring);
    background-color: #fff;
}

.form-control[disabled], .form-control[readonly],
.input[disabled], .input[readonly] {
    background-color: #f9fafb;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.85;
}

/* ★ inline：用于日期选择器等需要并排的控件 */
.form-control.inline, .input.inline {
    display: inline-block;
    width: auto;
    min-width: 130px;
    vertical-align: middle;
}

/* input type=date 特殊处理，某些浏览器默认高度不对 */
input[type="date"].form-control {
    line-height: normal;
    padding: 4px 10px;
}

/* ★ 表单内联提示文字 */
.form-group .tip,
.form-group .tip-inline,
.form-tip {
    display: block;
    clear: both;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}
.form-group .tip-inline {
    display: inline-block;
    margin-left: 10px;
    margin-top: 0;
    clear: none;
    vertical-align: middle;
}

/* ★ label 全局默认（非 control-label） */
label {
    font-weight: normal;
    cursor: pointer;
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 6px;
    color: var(--text-main);
    vertical-align: middle;
    line-height: 1.5;
}

/* radio / checkbox */
input[type="radio"],
input[type="checkbox"] {
    margin: 0 5px 0 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    vertical-align: middle;
    accent-color: var(--primary);
}

/* ★ 日期行：让 "至" 字和有效期 radio 垂直对齐 */
.form-group .date-range-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}
.form-group .date-range-row label {
    margin-bottom: 0;
}

/* 文件上传 input */
input[type="file"] {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

/* select */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    appearance: none;
    -webkit-appearance: none;
}

/* ==========================================================================
   9. 按钮组件 (Buttons)
   ========================================================================== */
.btn {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 7px 18px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
    outline: none;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none !important;
    font-family: inherit;
}
.btn:focus { box-shadow: var(--ring); }
.btn.round { border-radius: 50px; padding-left: 24px; padding-right: 24px; }

.btn-primary { background-color: var(--primary); color: #fff !important; border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-hover); color: #fff !important; }
.btn-default { background-color: #fff; color: var(--text-main); border-color: var(--border); }
.btn-default:hover { background-color: var(--bg-hover); border-color: #9ca3af; }
.btn-success { background-color: var(--success); color: #fff !important; border-color: var(--success); }
.btn-success:hover { background-color: #0ea271; color: #fff !important; }
.btn-danger  { background-color: var(--danger);  color: #fff !important; border-color: var(--danger); }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-lg { padding: 10px 24px; font-size: 16px; }

/* ==========================================================================
   10. 导航、表格与分页
   ========================================================================== */
.main-nav { margin-bottom: 24px; }
.nav { padding: 0; margin: 0; list-style: none; }
.nav::before, .nav::after { content: " "; display: table; }
.nav::after { clear: both; }
.nav > li { float: left; display: block; }
.nav > li > a { display: block; padding: 10px 15px; color: var(--text-muted); font-size: 15px; }

.nav-tabs { border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.nav-tabs > li { margin-bottom: -1px; }
.nav-tabs > li > a {
    border: 1px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 500;
}
.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
    color: var(--primary);
    background-color: #fff;
    border-color: var(--border) var(--border) transparent;
}

.nav-pills { margin-bottom: 20px; }
.nav-pills > li > a {
    border-radius: 30px; padding: 6px 16px;
    margin: 2px 10px 2px 0;
    background: var(--bg-body); color: var(--text-muted); font-size: 14px;
}
.nav-pills > li.active > a { background-color: var(--primary); color: #fff; }

/* 表格 */
.table-responsive {
    width: 100%; overflow-x: auto; margin-bottom: 24px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.table {
    width: 100%; max-width: 100%;
    background-color: transparent;
    border-collapse: collapse; border-spacing: 0;
}
.table th, .table td {
    padding: 14px 16px; vertical-align: middle;
    border-bottom: 1px solid var(--border);
}
.table th {
    text-align: center;
}
.table th.text-left, .table td.text-left { text-align: left; }
.table th.text-right, .table td.text-right { text-align: right; }
.table thead th {
    background-color: #f8fafc; font-weight: 600;
    color: var(--text-main); border-bottom: 2px solid var(--border);
}
.table tbody tr { transition: background-color 0.2s; }
.table tbody tr:hover { background-color: #f4f8ff; }

/* 分页 */
.pagination { margin: 20px 0; float: left; }
.pagination::before, .pagination::after { content: " "; display: table; }
.pagination::after { clear: both; }
.pagination a, .pagination span {
    float: left; padding: 6px 14px; margin-right: 5px;
    color: var(--text-main); background-color: #fff;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all 0.2s; min-width: 34px; text-align: center;
}
.pagination a:hover {
    background-color: var(--bg-body);
    border-color: var(--primary); color: var(--primary);
    text-decoration: none !important;
}
.pagination span.current {
    background-color: var(--primary); color: #fff;
    border-color: var(--primary); font-weight: bold;
}

/* ==========================================================================
   11. 特殊定制模块 (Custom Components)
   ========================================================================== */

/* 页面提示块 */
.hd-tip, .ft-tip, .faq-tip {
    padding: 16px 20px;
    background-color: #eff6ff;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hd-tip p, .ft-tip p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.hd-tip p:last-child, .ft-tip p:last-child { margin-bottom: 0; }
.ft-tip .title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 10px; }

/* 信息详情展示组 */
.show-item-group { margin-bottom: 15px; overflow: hidden; }
.show-item-group .control-label {
    float: left; width: var(--form-label-width);
    text-align: right; font-weight: 600;
    color: var(--text-muted); padding-right: 15px; padding-top: 5px;
}
.show-item-group .control-content {
    float: left; width: 83.333333%;
    padding-left: 15px; color: var(--text-main); padding-top: 5px;
}

/* MCN等级购买卡片 */
.mcn-level-wrap {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; padding-bottom: 10px;
}
.version-item {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); width: 280px; margin-right: 20px;
    cursor: pointer; transition: 0.3s; flex-shrink: 0;
}
.version-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md); border-color: var(--primary);
}
.version-item.sel {
    border: 2px solid var(--primary);
    background: #f0f7ff; box-shadow: var(--shadow-md);
}
.version-item .card-body {
    padding: 24px; border-bottom: 1px dashed var(--border);
}
.version-item .name { font-size: 22px; font-weight: 600; color: var(--text-main); }
.version-item .name svg { vertical-align: middle; margin-right: 5px; }
.version-item .price {
    color: var(--danger); font-size: 28px;
    font-weight: bold; margin-top: 16px;
}
.version-item .price .unit { font-size: 14px; font-weight: normal; color: var(--text-muted); }
.version-item .rights-container {
    padding: 20px; background: #fcfcfc;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.rights-container .right-tips { font-weight: 600; margin-bottom: 12px; color: var(--text-main); }
.rights-container ul li { margin-bottom: 8px; color: var(--text-muted); font-size: 14px; }

/* 迷你音频播放器 */
.miniaudio-player-container {
    background: var(--bg-body); padding: 16px;
    border-radius: var(--radius-md); width: 340px;
    border: 1px solid var(--border);
}
.player-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.audio-player-btn {
    background: var(--primary); color: #fff;
    padding: 6px 14px; border-radius: var(--radius-sm);
    font-size: 13px; border: none; cursor: pointer;
}
.audio-time { font-family: monospace; color: var(--text-muted); font-size: 13px; }
.progress-bar {
    width: 100%; height: 6px; background: #e2e8f0;
    border-radius: 3px; overflow: hidden; margin-top: 4px;
}
.progress-bar-fill {
    height: 100%; background: var(--primary);
    width: 0%; transition: width 0.1s linear;
}

/* 二维码悬浮面板 */
.showBoxPanel {
    display: none; position: fixed; top: 20vh; left: 50%;
    transform: translateX(-50%); width: 480px; z-index: 9999;
    background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); overflow: hidden;
    border: 1px solid var(--border);
}
.showBoxPanel .titlePan {
    background: var(--primary); color: #fff;
    padding: 12px 20px; font-size: 16px; font-weight: 600;
}
.showBoxPanel .titlePan .closePan {
    font-size: 13px; font-weight: normal;
    cursor: pointer; float: right; margin-top: 3px;
}
.showBoxPanel .qrTitle {
    background: #fffbeb; padding: 10px 20px;
    color: var(--warning); font-weight: 600; font-size: 14px;
}
.showBoxPanel .qrImg { padding: 24px 0 10px; text-align: center; }
.showBoxPanel .qrTips {
    padding: 0 24px 20px; font-size: 14px;
    color: var(--text-muted); line-height: 1.6; text-align: center;
}
.showBoxPanel .signLink {
    background: var(--bg-body); padding: 10px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    margin: 10px 0; color: var(--primary);
    word-break: break-all; text-align: left; font-family: monospace;
}
.boxButton { background: var(--primary); color: #fff; border: none; padding: 7px 20px; border-radius: 4px; cursor: pointer; }

/* 登录页 */
.page-login {
    background: linear-gradient(135deg, #a2cbef 0%, #d5e8f9 100%);
    min-height: 100vh;
}
.login-wrap {
    background-size: cover; background-position: center;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 1200px; height: 560px; margin: 60px auto; position: relative;
}
.login.shadow {
    position: absolute; right: 10%; top: 50%;
    transform: translateY(-50%); background: rgba(255,255,255,0.9);
    padding: 40px 35px; border-radius: var(--radius-md);
    width: 380px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.login .form-group { margin-bottom: 24px; overflow: hidden; }
.login .input {
    height: 48px; font-size: 15px; border-radius: var(--radius-sm);
    padding: 0 16px; border: 1px solid var(--border);
    width: 100%; box-sizing: border-box; outline: none;
    transition: border-color 0.2s;
}
.login .input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.login .btn-primary {
    height: 48px; font-size: 16px; font-weight: 600;
    border-radius: var(--radius-sm); width: 100%; border: none;
}

/* 文章与消息页 */
.detail .detail-title { font-size: 26px; font-weight: bold; text-align: center; margin-bottom: 15px; }
.detail .detail-info { text-align: center; color: var(--text-light); margin-bottom: 30px; }
.detail .detail-content { font-size: 15px; line-height: 1.8; color: var(--text-main); }
.data-list li { list-style: disc inside; line-height: 2; color: var(--text-muted); margin-left: 20px; }
.userinfo-box { background: var(--bg-body); padding: 15px !important; }
.message-box { padding: 10px; }
.message-box .message-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; }
.message-box .message-content { line-height: 1.8; color: var(--text-main); }
.msg-title { color: var(--warning); cursor: pointer; font-weight: bold; }
.msg-title-readed { color: var(--text-main); font-weight: normal; }

/* 杂项 */
.kefu-weixin-wrap {
    text-align: center; margin-top: 30px;
    padding-top: 20px; border-top: 1px dashed var(--border);
}
.kefu-weixin-qrcode-img {
    max-width: 200px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); padding: 5px;
}
.list-empty { margin: 80px auto; text-align: center; }
.icon-msg { width: 218px; height: 129px; margin: 0 auto; background-repeat: no-repeat; }

/* ==========================================================================
   4. 弹窗对话框 (Dialogs & Panels)
   ========================================================================== */
/* ==========================================================================
   自定义弹窗体系 (替代原生 dialog，完美兼容 $.tips)
   ========================================================================== */
/* 1. 弹窗遮罩层（全屏居中） */
.custom-dialog-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9900; /* 关键：确保低于 $.tips 的 z-index (通常是 9999+) */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    backdrop-filter: blur(2px);
}

/* 2. 控制弹窗显示的开关类 */
.custom-dialog-overlay.open {
    display: flex !important;
}

/* 3. 弹窗主内容区 */
.custom-dialog-overlay .commonDialog {
    background: #fff;
    width: 100%;
    max-width: 680px;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalShow 0.2s ease-out;
    position: relative;
}

/* 弹窗弹出动画 */
@keyframes modalShow {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. 内部结构样式 (保持与你原来一模一样) */
.commonDialog .dialogTitle {
    background: #f8fafc; padding: 15px 20px; font-size: 16px; font-weight: bold;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.commonDialog .quitDialog { float: right; font-weight: normal; color: var(--text-muted, #666); cursor: pointer; }
.commonDialog .quitDialog:hover { color: var(--danger, #ef4444); }
.commonDialog .dialogMain { padding: 25px 20px; }
.commonDialog .dialogMain dl { display: block; margin-bottom: 15px; clear: both; }
.commonDialog .dialogMain dl::after { content: ""; display: table; clear: both; }
.commonDialog .dialogMain dt { float: left; width: 80px; font-weight: bold; color: var(--text-muted, #666); }
.commonDialog .dialogMain dd { float: left; width: calc(100% - 80px); margin: 0; }
.commonDialog .dialogButton { padding: 15px; text-align: center; background: #f8fafc; border-top: 1px solid var(--border, #e5e7eb); }
.commonDialog .yesButton { background: var(--primary, #0067e5); color: #fff; border: none; padding: 8px 30px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.commonDialog .tipsTxt { font-size: 12px; color: var(--text-muted, #666); margin-top: 5px; line-height: 1.6; }

/* ==========================================================================
   Footer - 底部美化
   ========================================================================== */
.footer {
    padding: 40px 0 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 2;
    text-align: center;
    clear: both; /* 确保在浮动布局下方 */
    background-color: var(--bg-body);
}

.footer .page-center {
    display: block; /* 覆盖 container 的 table-cell 布局 */
    width: 100%;
    margin: 0 auto;
}

.footer .footer-link {
    margin-bottom: 8px;
}

/* 链接样式：平时灰色，悬停变主色 */
.footer a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    margin: 0 8px;
    text-decoration: none;
    white-space: nowrap;
}

.footer a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* 备案号特殊样式 */
.footer a[href*="beian.miit.gov.cn"] {
    margin-left: 15px;
    opacity: 0.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer {
        padding: 20px 15px;
    }
    .footer a {
        display: inline-block;
        margin: 4px 10px;
    }
}