/* 管理后台全局样式 */

* { margin:0; padding:0; box-sizing:border-box; }
body { font:14px/1.6 'Microsoft YaHei','PingFang SC',sans-serif; background:#f0f2f5; color:#333; }
a { text-decoration:none; color:#333; }
.clear { clear:both; }

.mainBox { min-height:400px; }

/* ===== 布局 - 顶部导航（保持原有深色风格） ===== */
#dcWrap { padding-top:64px; }
#dcHead { background:#1a1a2e; height:64px; position:fixed; top:0; left:0; width:100%; z-index:1000; border-radius:0; }
#head { padding:0 24px; height:64px; display:flex; justify-content:space-between; align-items:center; box-sizing:border-box; }
.logo a { color:#fff; font-size:25px; font-weight:400; letter-spacing:6px; }
.nav { display:flex; }
.nav > ul { list-style:none; display:flex; align-items:center; }
.nav ul li a { color:#ccc; padding:8px 16px; font-size:14px; border-radius:8px; transition:all 0.2s ease; }
.nav ul li a:hover { color:#fff; background:rgba(255,255,255,0.1); }
.nav .navRight li a { color:#ccc; }
.nav .navRight li a:hover { color:#fff; }

/* ===== 布局 - 侧边栏（保持原有深色风格） ===== */
#dcLeft { position:fixed; left:0; top:64px; bottom:0; width:180px; background:linear-gradient(to bottom, #1a1a2e 0%, #363636 100%); border-right:none; overflow-y:auto; transition:all 0.3s ease; border-radius:0; }

#menu { padding:12px 0; }
#menu ul { list-style:none; border-bottom:none; padding:4px 12px; margin:0; }
#menu ul li a { display:flex; align-items:center; padding:11px 16px; font-size:14px; color:#ccc; border-radius:10px; margin:3px 0; transition:all 0.2s ease; }
#menu ul li a:hover { background:rgba(255,255,255,0.1); color:#fff; }
#menu ul li.cur a { background:rgba(255,255,255,0.15); color:#fff; font-weight:600; }
#menu ul li a em { font-style:normal; font-size:14px; }

/* ===== 布局 - 侧边栏图标样式 ===== */
#menu ul li a .fa,
#menu ul li a .fas,
#menu ul li a .far,
#menu ul li a .fab,
.menu-group-header a.group-toggle .fa,
.menu-group-header a.group-toggle .fas,
.menu-group-header a.group-toggle .far,
.menu-group-header a.group-toggle .fab {
    width:22px; text-align:center; margin-right:12px; font-size:15px;
    color:#888; flex-shrink:0; transition:all 0.2s ease;
}
#menu ul li a:hover .fa,
#menu ul li a:hover .fas,
#menu ul li a:hover .far,
#menu ul li a:hover .fab,
.menu-group-header a.group-toggle:hover .fa,
.menu-group-header a.group-toggle:hover .fas,
.menu-group-header a.group-toggle:hover .far,
.menu-group-header a.group-toggle:hover .fab { color:#fff; }
#menu ul li.cur a .fa,
#menu ul li.cur a .fas,
#menu ul li.cur a .far,
#menu ul li.cur a .fab { color:#fff; }

/* ===== 布局 - 主内容区 ===== */
#dcMain { margin-left:180px; padding:24px; min-height:calc(100vh - 64px); background:#f5f7fa; position:relative; }
#dcMain::before {
    content:'';
    position:fixed;
    left:180px;
    top:64px;
    width:12px;
    height:12px;
    background:radial-gradient(circle at 100% 100%, transparent 12px, #1a1a2e 13px);
    z-index:1001;
}
#urHere { background:#fff; padding:12px 20px; border-radius:10px; margin-bottom:20px; font-size:13px; color:#909399; box-shadow:0 1px 3px rgba(0,0,0,0.04); border:1px solid #ebeef5; }
#urHere strong { color:#303133; }

/* ===== 布局 - 页脚 ===== */
#dcFooter { margin-left:180px; padding:20px 24px; text-align:center; color:#c0c4cc; font-size:12px; background:#f5f7fa; }
#footer .line { border-top:1px solid #ebeef5; margin-bottom:12px; }

/* ===== Element UI 变量定义（仅用于内部页面） ===== */
:root {
    --el-color-primary: #409eff;
    --el-color-success: #67c23a;
    --el-color-warning: #e6a23c;
    --el-color-danger: #f56c6c;
    --el-color-info: #909399;
    --el-bg-color: #f5f7fa;
    --el-border-color: #e4e7ed;
    --el-text-color-primary: #303133;
    --el-text-color-regular: #606266;
    --el-text-color-secondary: #909399;
    --el-border-radius: 4px;
    --el-shadow-light: 0 2px 12px 0 rgba(0,0,0,0.1);
    --el-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 0 6px rgba(0,0,0,0.04);
}

/* ===== Element UI 按钮样式 ===== */
.btn, input[type="submit"], button[type="submit"] {
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    padding:9px 20px;
    background:var(--el-color-primary); color:#fff;
    border:none; border-radius:var(--el-border-radius);
    cursor:pointer; font-size:14px; text-decoration:none; line-height:1;
    transition:all 0.2s;
    font-weight:500;
    margin-right: 8px;
}
.btn:hover, input[type="submit"]:hover, button[type="submit"]:hover { background:#66b1ff; }
.btn:active, input[type="submit"]:active, button[type="submit"]:active { background:#3a8ee6; }

.btn-sm {
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    padding:9px 20px;
    border-radius:var(--el-border-radius);
    font-size:14px; cursor:pointer; border:none; line-height:1;
    transition:all 0.2s;
    font-weight:500;
}

.btn-xs {
    display:inline-flex; align-items:center; justify-content:center; gap:4px;
    padding:5px 10px;
    border-radius:3px;
    font-size:12px; cursor:pointer; border:none; line-height:1;
    transition:all 0.2s;
}

.btn-primary, .btn-edit { background:var(--el-color-primary); color:#fff; }
.btn-primary:hover, .btn-edit:hover { background:#66b1ff; }
.btn-success, .btn-green, .btn-add { background:var(--el-color-success); color:#fff; }
.btn-success:hover, .btn-green:hover, .btn-add:hover { background:#85ce61; }
.btn-danger, .btn-delete { background:var(--el-color-danger); color:#fff; }
.btn-danger:hover, .btn-delete:hover { background:#f78989; }
.btn-warning, .btn-warn { background:var(--el-color-warning); color:#fff; }
.btn-warning:hover, .btn-warn:hover { background:#ebb563; }
.btn-default { background:#fff; color:var(--el-text-color-regular); border:1px solid var(--el-border-color); }
.btn-default:hover { background:#f5f7fa; color:var(--el-color-primary); border-color:var(--el-color-primary); }
.btn-info { background:var(--el-color-info); color:#fff; }
.btn-info:hover { background:#a6a9ad; }
.btn-gray { background:#c0c4cc; color:#fff; }
.btn-gray:hover { background:#d0d3d9; }

/* 按钮禁用状态 */
.btn:disabled, .btn-sm:disabled, .btn-xs:disabled {
    opacity:0.6;
    cursor:not-allowed;
}

/* ===== Element UI 表单样式 ===== */
input[type="text"], input[type="password"], input[type="number"], select, textarea {
    border:1px solid var(--el-border-color);
    border-radius:var(--el-border-radius);
    font-size:14px;
    color:var(--el-text-color-regular);
    background:#fff;
    transition:border-color 0.2s;
    outline:none;
    font-family:inherit;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    border-color:var(--el-color-primary);
}
input[type="text"]:hover, input[type="password"]:hover, input[type="number"]:hover, select:hover, textarea:hover {
    border-color:var(--el-text-color-secondary);
}

/* 弹窗内表单（会员/标签/账号管理等） */
#xgtModalContent .form-row input[type="text"],
#xgtModalContent .form-row input[type="password"],
#xgtModalContent .form-row input[type="email"],
#xgtModalContent .form-row select {
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#xgtModalContent .form-row input[type="text"]:focus,
#xgtModalContent .form-row input[type="password"]:focus,
#xgtModalContent .form-row input[type="email"]:focus,
#xgtModalContent .form-row select:focus {
    border-color: var(--el-color-primary);
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.12);
}

/* ===== Element UI 表格样式 ===== */
.table-box, .el-table-wrapper {
    background:#fff;
    border-radius:var(--el-border-radius);
    border:1px solid var(--el-border-color);
    overflow:hidden;
}
.table-box th, .el-table th {
    padding:12px 16px;
    text-align:left;
    background:#f5f7fa;
    color:var(--el-text-color-primary);
    font-weight:600;
    font-size:14px;
    border-bottom:1px solid var(--el-border-color);
    border-right:1px solid var(--el-border-color);
}
.table-box th:last-child, .el-table th:last-child { border-right:none; }
.table-box td, .el-table td {
    padding:12px 16px;
    text-align:left;
    border-bottom:1px solid #ebeef5;
    border-right:1px solid #ebeef5;
    font-size:14px;
    color:var(--el-text-color-regular);
    transition:background 0.2s;
}
.table-box td:last-child, .el-table td:last-child { border-right:none; }
.table-box tr:hover td, .el-table tr:hover td { background:#f5f7fa; }

/* ===== Element UI 标签/徽章 ===== */
.el-tag, .badge, .status-badge {
    display:inline-flex;
    align-items:center;
    padding:0 10px;
    height:24px;
    border-radius:4px;
    font-size:12px;
    font-weight:500;
    line-height:1;
    border:1px solid transparent;
}
.el-tag--success, .badge-success, .status-online { background:#f0f9eb; color:#67c23a; border-color:#e1f3d8; }
.el-tag--warning, .badge-warning, .status-waiting { background:#fdf6ec; color:#e6a23c; border-color:#faecd8; }
.el-tag--danger, .badge-danger, .status-danger { background:#fef0f0; color:#f56c6c; border-color:#fde2e2; }
.el-tag--info, .badge-info, .status-offline { background:#f4f4f5; color:#909399; border-color:#e9e9eb; }
.el-tag--primary { background:#ecf5ff; color:#409eff; border-color:#d9ecff; }

/* ===== Element UI 分页 ===== */
.pagination, .el-pagination {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    margin-top:20px;
    padding:16px 0;
}
.pagination a, .el-pagination a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:32px;
    height:32px;
    padding:0 8px;
    border:1px solid var(--el-border-color);
    border-radius:var(--el-border-radius);
    color:var(--el-text-color-regular);
    font-size:13px;
    background:#fff;
    transition:all 0.2s;
}
.pagination a:hover, .el-pagination a:hover {
    border-color:var(--el-color-primary);
    color:var(--el-color-primary);
}
.pagination a.active, .el-pagination a.active, .pagination span.active {
    background:var(--el-color-primary);
    color:#fff;
    border-color:var(--el-color-primary);
}

/* ===== Element UI 消息提示 ===== */
.msg, .el-message {
    padding:12px 16px;
    border-radius:var(--el-border-radius);
    font-size:14px;
    display:none;
}
.msg.success, .el-message--success {
    background:#f0f9eb;
    border:1px solid #e1f3d8;
    color:#67c23a;
    display:block;
}
.msg.error, .el-message--error {
    background:#fef0f0;
    border:1px solid #fde2e2;
    color:#f56c6c;
    display:block;
}
.msg.warning, .el-message--warning {
    background:#fdf6ec;
    border:1px solid #faecd8;
    color:#e6a23c;
    display:block;
}

/* ===== 铃铛图标 ===== */
.nav-bell { position:relative; display:flex; align-items:center; z-index:1200; }
.nav-bell a { display:flex; align-items:center; justify-content:center; padding:8px 14px; }
.nav-bell-trigger { cursor:pointer; user-select:none; }
.bell-wrap { position:relative; display:inline-block; width:18px; height:18px; }
.bell-icon { display:block; width:18px; height:18px; }
.bell-badge {
    position:absolute; top:-8px; right:-10px; min-width:16px; height:16px; padding:0 4px;
    background:#ff4d4f; color:#fff; font-size:11px; border-radius:8px;
    display:flex; align-items:center; justify-content:center; box-sizing:border-box; z-index:2;
}
.nav-bell a:hover .bell-icon { animation:bell-shake 0.5s ease-in-out; }
@keyframes bell-shake {
    0%,100% { transform:rotate(0); }
    25% { transform:rotate(15deg); }
    75% { transform:rotate(-15deg); }
}

/* ===== 铃铛消息聚合下拉 ===== */
.admin-notice-panel,
.admin-notice-panel * {
    box-sizing: border-box;
}
.admin-notice-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: 520px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    border: 1px solid #ebeef5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nav-bell.open .admin-notice-panel,
.nav-bell:hover .admin-notice-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.admin-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafafa;
}
.admin-notice-head-title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-notice-refresh {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #409eff;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
}
.admin-notice-refresh:hover { color: #66b1ff; }
.admin-notice-body {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 400px;
    padding: 10px 14px 12px;
    -webkit-overflow-scrolling: touch;
}
.admin-notice-loading,
.admin-notice-empty {
    text-align: center;
    padding: 36px 18px;
    color: #909399;
    font-size: 13px;
}
.admin-notice-empty svg { display: block; margin: 0 auto 10px; }
.admin-notice-group {
    width: 100%;
    padding: 6px 0 10px;
    overflow: hidden;
}
.admin-notice-group-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 6px;
    font-size: 12px;
    min-width: 0;
}
.admin-notice-group-title {
    flex: 1;
    min-width: 0;
    color: #606266;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-notice-group-count {
    font-weight: 500;
    color: #909399;
    font-size: 12px;
}
.admin-notice-group-more {
    flex-shrink: 0;
    color: #409eff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    margin-left: auto;
}
.admin-notice-group-more:hover { color: #66b1ff; }

/* 列表强制单列（覆盖 .nav ul 的 flex 横向布局） */
.nav .admin-notice-panel .admin-notice-list,
.admin-notice-panel .admin-notice-list {
    display: block !important;
    list-style: none;
    margin: 0;
    padding: 0 6px;
    width: 100%;
    overflow: hidden;
}
.nav .admin-notice-panel .admin-notice-list > li,
.admin-notice-panel .admin-notice-list > .admin-notice-item {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    float: none;
    flex: none;
}
.admin-notice-list {
    list-style: none;
    margin: 0;
    padding: 0 6px;
    width: 100%;
    overflow: hidden;
}
.admin-notice-item {
    width: 100%;
    overflow: hidden;
}
.admin-notice-item a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 12px;
    margin: 0 0 4px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    overflow: hidden;
}
.admin-notice-item a:hover { background: #f5f7fa; }
.admin-notice-item-main {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.admin-notice-item-title {
    font-size: 13px;
    color: #303133;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-all;
    white-space: normal;
}
.admin-notice-item-desc {
    margin-top: 2px;
    font-size: 12px;
    color: #909399;
    line-height: 1.45;
    word-break: break-all;
    white-space: normal;
}
.admin-notice-item-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: none;
}
.admin-notice-item-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-notice-item-time {
    font-size: 11px;
    color: #c0c4cc;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0;
}
.admin-notice-item-empty a {
    color: #909399;
    font-size: 12px;
    text-align: left;
    line-height: 1.45;
    white-space: normal;
}
.admin-notice-foot {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    border-top: 1px solid #f0f2f5;
    background: #fafafa;
    overflow: hidden;
}
.admin-notice-foot a {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 12px 14px;
    font-size: 12px;
    color: #606266;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-notice-foot a:hover { background: #f0f2f5; color: #409eff; }
.admin-notice-foot a + a { border-left: 1px solid #f0f2f5; }

/* 下拉面板链接不受顶栏 nav 白色 hover 影响 */
.nav ul li .admin-notice-panel a {
    color: inherit;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.nav ul li .admin-notice-panel a:hover {
    color: inherit;
    background: transparent;
}
.admin-notice-group-more {
    color: #409eff !important;
}
.nav ul li .admin-notice-panel .admin-notice-group-more:hover {
    color: #66b1ff !important;
    background: transparent;
}
.nav ul li .admin-notice-panel .admin-notice-item a:hover {
    background: #f5f7fa;
}
.nav ul li .admin-notice-panel .admin-notice-item a:hover .admin-notice-item-title {
    color: #303133;
}
.nav ul li .admin-notice-panel .admin-notice-item a:hover .admin-notice-item-desc {
    color: #909399;
}
.nav ul li .admin-notice-panel .admin-notice-item a:hover .admin-notice-item-time {
    color: #c0c4cc;
}
.nav ul li .admin-notice-panel .admin-notice-foot a {
    color: #606266;
    padding: 12px 14px;
    border-radius: 0;
}
.nav ul li .admin-notice-panel .admin-notice-foot a:hover {
    background: #f0f2f5;
    color: #409eff;
}
.nav ul li .admin-notice-panel .admin-notice-item-empty a {
    color: #909399;
}
.nav ul li .admin-notice-panel .admin-notice-item-empty a:hover {
    color: #409eff;
    background: #f5f7fa;
}

/* ===== 左侧导航分组折叠菜单 ===== */
.menu-group { padding:0; margin:4px 0; }
.menu-group-header { padding:0 12px; }
.menu-group-header a.group-toggle {
    display:flex; align-items:center; padding:11px 16px; font-size:14px; color:#ccc;
    border-radius:10px; margin:3px 0; cursor:pointer; transition:all 0.2s ease;
    user-select:none;
}
.menu-group-header a.group-toggle:hover { background:rgba(255,255,255,0.1); color:#fff; }
.menu-group-header a.group-toggle em { font-style:normal; font-size:14px; flex:1; }
.menu-group-header .toggle-icon {
    width:auto !important; margin-right:0 !important; font-size:12px !important;
    transition:transform 0.25s ease; color:#666 !important;
}
.menu-group-header a.group-toggle:hover .toggle-icon { color:#999 !important; }
.menu-group-header.expanded .toggle-icon { transform:rotate(180deg); }

.menu-sub-items {
    list-style:none; margin:0; padding:0 12px 0 46px; overflow:hidden;
    max-height:0; opacity:0; transition:max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}
.menu-sub-items.open {
    max-height:none; opacity:1; padding-bottom:6px;
}
.menu-sub-items li { margin:0; padding:0; border-bottom:none; }
.menu-sub-items li a {
    display:flex; align-items:center; justify-content:center; padding:8px 16px; font-size:13px; color:#aaa;
    border-radius:8px; margin:2px 0; transition:all 0.2s ease;
}
.menu-sub-items li a:hover { background:rgba(255,255,255,0.08); color:#fff; }
.menu-sub-items li.cur a { background:rgba(255,255,255,0.12); color:#fff; font-weight:500; }
.menu-sub-items li a em { font-style:normal; font-size:13px; }

/* ===== Element UI 空状态 ===== */
.empty-state, .el-empty {
    text-align:center;
    padding:60px 20px;
    color:var(--el-text-color-secondary);
}
.empty-state .icon, .el-empty__image {
    font-size:64px;
    margin-bottom:16px;
    color:#dcdfe6;
}
.empty-state p, .el-empty__description {
    font-size:14px;
    color:var(--el-text-color-secondary);
}

/* ===== 响应式 ===== */
@media (max-width:768px) {
    #dcLeft { width:60px; }
    #dcMain, #dcFooter { margin-left:60px; }
    #menu ul { padding:4px 6px; }
    #menu ul li a { justify-content:center; padding:11px 0; }
    #menu ul li a .fa,
    #menu ul li a .fas,
    #menu ul li a .far,
    #menu ul li a .fab,
    .menu-group-header a.group-toggle .fa,
    .menu-group-header a.group-toggle .fas,
    .menu-group-header a.group-toggle .far,
    .menu-group-header a.group-toggle .fab { margin-right:0; font-size:18px; }
    #menu ul li a em { display:none; }
    .menu-group-header { padding:0 6px; }
    .menu-group-header a.group-toggle { justify-content:center; padding:11px 0; }
    .menu-group-header a.group-toggle em { display:none; }
    .menu-group-header .toggle-icon { display:none; }
    .menu-sub-items { padding:0 4px; }
    .menu-sub-items li a { justify-content:center; padding:8px 0; }
    .menu-sub-items li a em { display:none; }
}

/* 内容页内嵌表单（覆盖 user.css 弹窗隐藏规则） */
.content-box .form-box,
.sys-page .form-box {
    display: block;
}
