/* ============================================
   dpfrp 公共样式 - 马卡龙风格
   所有页面通用的基础样式、组件、主题变量
   ============================================ */

/* ===== 1. 主题变量 (马卡龙风格) ===== */
:root {
    --coral: #ff6b6b;
    --coral-light: #ffe0e0;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --green: #10b981;
    --green-light: #d1fae5;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;
    --orange: #f59e0b;
    --orange-light: #fef3c7;
    --pink: #ec4899;
    --pink-light: #fce7f3;
    --cyan: #06b6d4;
    --cyan-light: #cffafe;
    --red: #ef4444;
    --red-light: #fee2e2;
    --amber: #f59e0b;
    --amber-light: #fef3c7;

    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --bg-light: #f9fafb;
    --bg-page: #f5f7fa;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ===== 2. 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== 3. Mesh-gradient 背景光斑动画 ===== */
.bg-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.mesh-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: meshFloat 20s ease-in-out infinite;
}
.mesh-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at 30% 30%, #fde68a 0%, #fca5a5 50%, transparent 70%);
    top: -250px;
    right: -150px;
    animation-duration: 18s;
    animation-name: meshFloat1;
}
.mesh-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 70% 70%, #a5f3fc 0%, #c4b5fd 50%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-duration: 22s;
    animation-delay: -7s;
    animation-name: meshFloat2;
}
.mesh-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 50% 50%, #fed7aa 0%, #fbcfe8 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
    animation-delay: -12s;
    animation-name: meshFloat3;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}
@keyframes meshFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 40px); }
}
@keyframes meshFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -40px); }
}
@keyframes meshFloat3 {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-40%, -60%); }
}

/* ===== 4. 页面容器 ===== */
.page-wrap,
.container,
.admin-container,
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面标题 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title .icon { font-size: 22px; }
.page-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ===== 5. 统计卡片 ===== */
.stats-row,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 统计信息区 */
.stat-info,
.stat-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.stat-value,
.stat-val {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat-sub {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stat-sub .dot-up { color: var(--green); }
.stat-sub .dot-down { color: var(--red); }

/* 统计图标 */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-icon.coral,
.stat-icon.red { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.stat-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.stat-icon.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.stat-icon.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.stat-icon.orange,
.stat-icon.amber { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.stat-icon.pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.stat-icon.cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); }

/* 带顶部彩条的卡片变体 */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}
.stat-card.blue::before { background: linear-gradient(180deg, #3b82f6, #60a5fa); }
.stat-card.purple::before { background: linear-gradient(180deg, #8b5cf6, #a78bfa); }
.stat-card.green::before { background: linear-gradient(180deg, #10b981, #34d399); }
.stat-card.cyan::before { background: linear-gradient(180deg, #06b6d4, #22d3ee); }
.stat-card.orange::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.stat-card.pink::before { background: linear-gradient(180deg, #ec4899, #f472b6); }
.stat-card.coral::before,
.stat-card.red::before { background: linear-gradient(180deg, #ef4444, #f87171); }

/* ===== 6. 面板容器 ===== */
.panel,
.card,
.main-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.panel-header,
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}
.panel-title,
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-title .panel-icon { font-size: 18px; }
.panel-more,
.card-more {
    font-size: 12px;
    color: #6366f1;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.panel-more:hover,
.card-more:hover { color: #4f46e5; }

/* ===== 7. 工具栏 ===== */
.toolbar,
.panel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-group,
.search-bar,
.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}
.search-group select,
.search-bar select,
.search-box select,
.search-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: #fff;
    cursor: pointer;
    height: 36px;
    color: var(--text-primary);
}
.search-group select:focus,
.search-bar select:focus,
.search-box select:focus,
.search-select:focus {
    border-color: var(--coral);
}
.search-group input,
.search-bar input,
.search-box input,
.search-input {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    width: 200px;
    height: 36px;
}
.search-group input:focus,
.search-bar input:focus,
.search-box input:focus,
.search-input:focus {
    border-color: var(--coral);
}

.search-btn {
    padding: 6px 16px;
    background: var(--coral);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    height: 36px;
}
.search-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.refresh-btn {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    height: 36px;
}
.refresh-btn:hover { background: #e5e7eb; }

.new-btn,
.btn-new {
    padding: 8px 18px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}
.new-btn:hover,
.btn-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* ===== 8. 标签/选项卡 ===== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    flex: 1;
}
.tab-item {
    padding: 8px 18px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}
.tab-item:hover { color: var(--coral); }
.tab-item.active {
    color: var(--coral);
    border-bottom-color: var(--coral);
    font-weight: 600;
}
.tab-item .badge,
.tab-item .count-badge {
    display: inline-block;
    background: var(--orange-light);
    color: #b45309;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

/* ===== 9. 数据表格 ===== */
.table-wrap {
    background: #fff;
    overflow-x: auto;
    min-height: 200px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.data-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--bg-light); }
.data-table tr:last-child td { border-bottom: none; }

/* 表格常用文字样式 */
.mono,
.time-col,
.time {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}
.username { font-weight: 600; color: var(--text-primary); }
.amount {
    font-family: Consolas, Monaco, monospace;
    font-weight: 500;
}
.amount.rmb { color: var(--green); }
.amount.points { color: var(--blue); }
.amount.frozen { color: var(--text-tertiary); }

/* ===== 10. 状态标签 / 分类标签 / 徽章 ===== */
.status-tag,
.cat-tag,
.badge,
.tag,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.status-tag.active,
.status-tag.success,
.tag-green,
.status-online {
    background: var(--green-light);
    color: #15803d;
}
.status-tag.banned,
.status-tag.danger,
.tag-red,
.status-offline {
    background: var(--red-light);
    color: #b91c1c;
}
.tag-blue,
.status-tag.info {
    background: var(--blue-light);
    color: #1d4ed8;
}
.tag-orange,
.status-tag.warning {
    background: var(--orange-light);
    color: #b45309;
}
.tag-purple {
    background: var(--purple-light);
    color: #6d28d9;
}
.tag-gray,
.status-tag.secondary {
    background: #f1f5f9;
    color: #475569;
}

/* 带圆点的状态徽章 */
.status-badge::before,
.status-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-online::before,
.status-tag.success::before,
.status-tag.active::before { background: var(--green); }
.status-offline::before,
.status-tag.secondary::before { background: #94a3b8; }
.status-tag.danger::before { background: var(--red); }
.status-tag.warning::before { background: var(--orange); }
.status-tag.info::before { background: var(--blue); }

/* ===== 11. 操作按钮 ===== */
.action-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-sm:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-primary,
.btn-edit {
    background: var(--coral);
    color: #fff;
}
.btn-primary:hover,
.btn-edit:hover { background: #ff5252; }

.btn-warn {
    background: var(--orange);
    color: #fff;
}
.btn-warn:hover { background: #d97706; }

.btn-danger,
.btn-delete {
    background: var(--red);
    color: #fff;
}
.btn-danger:hover,
.btn-delete:hover { background: #dc2626; }

.btn-ghost,
.btn-view {
    background: #f3f4f6;
    color: #4b5563;
}
.btn-ghost:hover,
.btn-view:hover { background: #e5e7eb; }

/* 按钮变体 - 描边风格 */
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    color: var(--coral);
    border-color: var(--coral);
}

/* ===== 12. 空状态 ===== */
.empty,
.empty-state {
    text-align: center !important;
    padding: 60px 20px !important;
    color: var(--text-tertiary) !important;
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.empty-desc,
.empty-text {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ===== 13. 分页 ===== */
.page-bottom,
.pagination-wrap,
.table-pagination {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}
.page-info,
.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}
.page-info b {
    color: var(--text-primary);
    font-weight: 600;
}
.page-buttons,
.pagination,
.pagination-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--coral);
    color: var(--coral);
}
.page-btn.active {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
    font-weight: 600;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}
.page-jump input {
    width: 48px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    outline: none;
}
.page-jump input:focus { border-color: var(--coral); }
.page-jump button {
    height: 32px;
    padding: 0 12px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.page-jump button:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.page-ellipsis {
    padding: 0 6px;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ===== 14. 表单 ===== */
.form-item {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-label .required {
    color: var(--red);
    margin-left: 2px;
}

/* ===== 15. 弹窗 / 抽屉 ===== */
.modal,
.drawer {
    position: fixed;
    z-index: 1000;
}
.modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}
.drawer {
    top: 0;
    right: 0;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    overflow-y: auto;
}

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ===== 16. 入场动画 ===== */
.fade-up,
.appdh,
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--idx, 0) * 0.06s);
}
.fade-up.visible,
.appdh.visible,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 旋转动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 脉冲动画 */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== 17. 响应式 ===== */
@media (max-width: 1400px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
    .stats-row,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .stats-row,
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-icon { width: 36px; height: 36px; font-size: 18px; }
    .stat-value, .stat-val { font-size: 20px; }
    .toolbar,
    .panel-toolbar { flex-direction: column; align-items: stretch; }
    .tabs { overflow-x: auto; }
    .search-bar,
    .search-group,
    .search-box { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .page-wrap,
    .container,
    .admin-container,
    .page-container {
        padding: 12px;
    }
    .stats-row,
    .stats-grid { grid-template-columns: 1fr; }
    .page-bottom,
    .pagination-wrap,
    .table-pagination {
        flex-direction: column;
        align-items: stretch;
    }
    .page-buttons,
    .pagination,
    .pagination-controls { justify-content: center; flex-wrap: wrap; }
}

/* ===== 18. 后台 iframe 布局适配 (layui childrenBody) ===== */
.childrenBody {
    background: var(--bg-page);
    padding: 12px;
    min-height: 100%;
    box-sizing: border-box;
}
.childrenBody .page-wrap,
.childrenBody .admin-container,
.childrenBody .page-container {
    padding: 0;
    max-width: none;
}

/* 后台页面 body 有 childrenBody 时，mesh 背景铺满 */
.childrenBody::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 10%, rgba(253, 230, 138, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(165, 243, 252, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(221, 214, 254, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== layui 弹窗 - 圆角皮肤 (无标题栏) ===== */
.layui-layer.layui-layer-radius {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
}
.layui-layer.layui-layer-radius .layui-layer-content {
    border-radius: 20px !important;
    overflow: hidden !important;
}
.layui-layer.layui-layer-radius iframe {
    border-radius: 20px !important;
}

/* ============================================
   删除确认弹窗 (dc-skin)
   ============================================ */
.dc-skin .layui-layer-content {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 22px !important;
}
.dc-mask {
    position: relative;
    padding: 18px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 50%, #fff1f2 100%);
    border-radius: 22px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.dc-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ----- 顶部红色渐变 Hero ----- */
.dc-hero {
    position: relative;
    padding: 26px 24px 22px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 35%, #fb7185 70%, #fb923c 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.dc-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.dc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}
.dc-orb-1 {
    width: 140px;
    height: 140px;
    background: #fecaca;
    top: -50px;
    right: -30px;
    opacity: 0.55;
}
.dc-orb-2 {
    width: 110px;
    height: 110px;
    background: #fed7aa;
    bottom: -40px;
    left: 20%;
    opacity: 0.45;
}
.dc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 0;
}
.dc-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* ----- 警告图标 + 双圈脉冲 ----- */
.dc-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.dc-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    animation: dc-ring 2.2s ease-out infinite;
}
.dc-icon-ring-2 {
    animation-delay: 1.1s;
}
@keyframes dc-ring {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}
.dc-icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    animation: dc-wobble 2.4s ease-in-out infinite;
}
@keyframes dc-wobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-8deg) scale(1.05); }
    20% { transform: rotate(8deg) scale(1.05); }
    30% { transform: rotate(0deg) scale(1); }
}
.dc-title {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.dc-sub {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.92;
    font-weight: 400;
}

/* ----- 主体 ----- */
.dc-body {
    padding: 20px 22px 4px;
}
.dc-tunnel {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
    border: 1.5px dashed #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}
.dc-tunnel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 12px;
}
.dc-k {
    color: #9ca3af;
    font-weight: 500;
    font-size: 12px;
}
.dc-v {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.dc-v-name {
    color: #ef4444;
    font-weight: 700;
}
.dc-v-id {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: #6b7280;
    background: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
}
.dc-warn-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dc-warn-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.dc-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #fb7185);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ----- 底部按钮 ----- */
.dc-footer {
    padding: 14px 22px 20px;
    display: flex;
    gap: 10px;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
}
.dc-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    user-select: none;
}
.dc-btn:active {
    transform: translateY(1px);
}
.dc-btn-ghost {
    background: #fff;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.dc-btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}
.dc-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #fb7185 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
    flex: 1.5;
}
.dc-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(239, 68, 68, 0.45);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f43f5e 100%);
}
.dc-btn-danger.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}
.dc-btn-danger.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: dc-spin 0.8s linear infinite;
    margin-left: 6px;
}
@keyframes dc-spin {
    to { transform: rotate(360deg); }
}
.dc-btn-icon {
    font-size: 14px;
}

/* ============================================
   下线确认弹窗 (oc-skin) - 琥珀色主题
   ============================================ */
.oc-skin .layui-layer-content {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 22px !important;
}
.oc-mask {
    position: relative;
    padding: 18px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fef3c7 100%);
    border-radius: 22px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.oc-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.oc-hero {
    position: relative;
    padding: 26px 24px 22px;
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 50%, #f97316 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.oc-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.oc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}
.oc-orb-1 {
    width: 140px;
    height: 140px;
    background: #fde68a;
    top: -50px;
    right: -30px;
    opacity: 0.55;
}
.oc-orb-2 {
    width: 110px;
    height: 110px;
    background: #fed7aa;
    bottom: -40px;
    left: 20%;
    opacity: 0.45;
}
.oc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 0;
}
.oc-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}
.oc-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.oc-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    animation: oc-ring 2.2s ease-out infinite;
}
.oc-icon-ring-2 {
    animation-delay: 1.1s;
}
@keyframes oc-ring {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}
.oc-icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    animation: oc-pulse 1.6s ease-in-out infinite;
}
@keyframes oc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.oc-title {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.oc-sub {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.92;
    font-weight: 400;
}
.oc-body {
    padding: 20px 22px 4px;
}
.oc-tunnel {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px dashed #fde68a;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}
.oc-tunnel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 12px;
}
.oc-k {
    color: #9ca3af;
    font-weight: 500;
    font-size: 12px;
}
.oc-v {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.oc-v-name {
    color: #d97706;
    font-weight: 700;
}
.oc-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.oc-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.oc-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.oc-footer {
    padding: 14px 22px 20px;
    display: flex;
    gap: 10px;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
}
.oc-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    user-select: none;
}
.oc-btn:active {
    transform: translateY(1px);
}
.oc-btn-ghost {
    background: #fff;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.oc-btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}
.oc-btn-warn {
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 50%, #f97316 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
    flex: 1.5;
}
.oc-btn-warn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #ea580c 100%);
}
.oc-btn-warn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}
.oc-btn-warn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: oc-spin 0.8s linear infinite;
    margin-left: 6px;
}
@keyframes oc-spin {
    to { transform: rotate(360deg); }
}
.oc-btn-icon {
    font-size: 14px;
}

/* ============================================
   统一尾页
   ============================================ */
.dp-footer {
    position: relative;
    margin-top: 32px;
    background: linear-gradient(135deg, #1f2937 0%, #312e81 50%, #4c1d95 100%);
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    z-index: 1;
}
.dp-footer::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent);
    border-radius: 50%;
    pointer-events: none;
}
.dp-footer::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.dp-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 24px;
}

/* 顶部：品牌 + 链接 */
.dp-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2.6fr;
    gap: 40px;
    margin-bottom: 28px;
}

/* 品牌区域 */
.dp-footer-brand {
    display: flex;
    flex-direction: column;
}
.dp-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.dp-footer-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
    letter-spacing: -0.5px;
}
.dp-footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.dp-footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    max-width: 360px;
}
.dp-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dp-footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}
.dp-footer-contact-icon {
    font-size: 14px;
}

/* 链接列 */
.dp-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.dp-footer-col {
    display: flex;
    flex-direction: column;
}
.dp-footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}
.dp-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    border-radius: 2px;
}
.dp-footer-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 5px 0;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}
.dp-footer-link:hover {
    color: #fff;
    transform: translateX(3px);
}

/* 分隔线 */
.dp-footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin-bottom: 18px;
}

/* 底部：版权 + 备案 */
.dp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.dp-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}
.dp-footer-legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.dp-footer-legal a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.dp-footer-legal a:hover {
    color: #fff;
}

/* 响应式 */
@media (max-width: 860px) {
    .dp-footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .dp-footer-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .dp-footer-bottom {
        justify-content: center;
        text-align: center;
    }
}
@media (max-width: 540px) {
    .dp-footer-inner {
        padding: 28px 18px 18px;
    }
    .dp-footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .dp-footer-logo-text { font-size: 16px; }
    .dp-footer-logo-icon { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
    .dp-footer-desc { font-size: 12px; }
    .dp-footer-legal { justify-content: center; gap: 12px; }
}
