/* ==================== 基础布局 ==================== */
body {
    background: #f5f7fa;
    padding-top: 0;
    overflow-x: hidden;
}

/* 登录后页面主体偏移 */
body.admin-logged-in {
    margin-left: 260px;
    padding-top: 60px;
}

/* ==================== 顶部导航栏 ==================== */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
    margin: 0;
    min-height: 60px;
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.topbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.topbar-brand:hover {
    color: #fff !important;
    text-decoration: none;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}

.logout-btn i {
    font-size: 16px;
}

/* ==================== 侧边栏 ==================== */
.admin-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 260px;
    height: calc(100vh - 60px);
    background: #fff;
    border-right: 1px solid #e8e8e8;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 1020;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2D1B69;
}

.sidebar-brand i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin: 2px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    gap: 12px;
}

.sidebar-link:hover {
    background: #f8f9ff;
    color: #2D1B69;
    text-decoration: none;
}

.sidebar-link i:first-child {
    width: 24px;
    text-align: center;
    font-size: 16px;
    color: #667eea;
}

.sidebar-text {
    flex: 1;
    font-size: 14px;
}

.sidebar-item.active > .sidebar-link {
    background: linear-gradient(90deg, #f0f2ff 0%, #f8f9ff 100%);
    color: #2D1B69;
    border-left: 3px solid #2D1B69;
}

.sidebar-item.active > .sidebar-link i:first-child {
    color: #2D1B69;
}

/* 子菜单 */
.has-submenu > .sidebar-link {
    cursor: pointer;
}

.submenu-arrow {
    font-size: 14px;
    transition: transform 0.3s;
    color: #999;
}

.has-submenu.open > .sidebar-link .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    background: #fafbfd;
    display: none;
}

.has-submenu.open > .submenu {
    display: block;
}

.submenu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 56px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    gap: 8px;
}

.submenu li a:hover {
    color: #2D1B69;
    background: #f0f2ff;
}

.submenu li a i {
    font-size: 14px;
    color: #764ba2;
}

.submenu .divider {
    height: 1px;
    margin: 8px 20px;
    background: #e8e8e8;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* ==================== 侧边栏遮罩层 ==================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1015;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ==================== 侧边栏折叠状态 ==================== */
body.sidebar-collapsed {
    margin-left: 70px;
    padding-top: 60px;
}

body.sidebar-collapsed .admin-sidebar {
    width: 70px;
}

body.sidebar-collapsed .sidebar-header,
body.sidebar-collapsed .sidebar-footer {
    display: none;
}

body.sidebar-collapsed .sidebar-text,
body.sidebar-collapsed .submenu-arrow {
    display: none;
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 15px 0;
}

body.sidebar-collapsed .sidebar-link i:first-child {
    width: auto;
    font-size: 20px;
}

body.sidebar-collapsed .submenu {
    display: none !important;
}

body.sidebar-collapsed .sidebar-item.active > .sidebar-link {
    border-left: none;
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    color: #fff;
}

body.sidebar-collapsed .sidebar-item.active > .sidebar-link i:first-child {
    color: #fff;
}

/* ==================== 主内容区容器 ==================== */
.container {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s;
    border: none;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card .panel-heading {
    border: none;
    padding: 24px;
}

.stat-card .panel-heading .row {
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.blue { background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%); color: #fff; }
.stat-icon.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: #fff; }
.stat-icon.orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: #fff; }
.stat-icon.red { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); color: #fff; }

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.stat-card .panel-footer {
    border: none;
    background: #fafbfd;
    padding: 14px 24px;
    transition: all 0.3s;
}

.stat-card:hover .panel-footer {
    background: #f0f2ff;
}

.stat-card .panel-footer a {
    color: #667eea;
    font-weight: 500;
}

.stat-card .panel-footer a:hover {
    color: #764ba2;
    text-decoration: none;
}

.stat-card .panel-footer i {
    transition: transform 0.3s;
}

.stat-card:hover .panel-footer i {
    transform: translateX(4px);
}

.info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.info-card .panel-heading {
    background: #fff;
    border: none;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f5;
}

.info-card .panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card .panel-title i {
    color: #667eea;
}

.info-card .list-group {
    margin: 0;
    padding: 16px 0;
}

.info-card .list-group-item {
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    color: #555;
    background: transparent;
}

.info-card .list-group-item:hover {
    background: #fafbfd;
}

.info-card .list-group-item b {
    color: #667eea;
    font-weight: 500;
}

/* ==================== 系统公告样式 - 美化版 ==================== */
.notice-wrap {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(45, 27, 105, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(45, 27, 105, 0.06);
    transition: all 0.3s ease;
}

.notice-wrap:hover {
    box-shadow: 0 8px 30px rgba(45, 27, 105, 0.12);
    transform: translateY(-2px);
}

.notice-head {
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 50%, #2D1B69 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.notice-head::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.notice-head-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.notice-head-icon i {
    font-size: 20px;
    color: #fff;
}

.notice-head-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.notice-body {
    padding: 0;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

/* 自定义滚动条 */
.notice-body::-webkit-scrollbar {
    width: 6px;
}

.notice-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.notice-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2D1B69 0%, #1B2469 100%);
    border-radius: 3px;
}

.notice-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1B2469 0%, #2D1B69 100%);
}

/* 公告列表项 */
.notice-body li {
    list-style: none;
    padding: 16px 20px 16px 48px;
    position: relative;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    background: #fff;
}

.notice-body li:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
    padding-left: 52px;
}

.notice-body li:last-child {
    border-bottom: none;
}

/* 公告序号标记 */
.notice-body li::before {
    content: attr(data-index);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45, 27, 105, 0.3);
}

.notice-body li:hover::before {
    transform: translateY(-50%) scale(1.1);
}

/* 公告段落 - 用于换行显示 */
.notice-body p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.notice-body p:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
}

.notice-body p:last-child {
    border-bottom: none;
}

/* 移除p标签前面的标记 */
.notice-body p::before {
    display: none;
}

/* 公告内容样式 */
.notice-body strong,
.notice-body b {
    color: #2D1B69;
    font-weight: 600;
}

.notice-body a {
    color: #2D1B69;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(45, 27, 105, 0.05);
    transition: all 0.2s ease;
}

.notice-body a:hover {
    background: rgba(45, 27, 105, 0.1);
    color: #1B2469;
}

/* 加载状态 */
.notice-load {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    gap: 12px;
}

.notice-load i {
    font-size: 32px;
    animation: spin 1s linear infinite;
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notice-load span {
    font-size: 14px;
    font-weight: 500;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 空状态 */
.notice-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.notice-none i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notice-none span {
    font-size: 14px;
    font-weight: 500;
}

/* 错误状态 */
.notice-err {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #ef4444;
    text-align: center;
    gap: 12px;
}

.notice-err i {
    font-size: 40px;
    opacity: 0.8;
}

.notice-err span {
    font-size: 14px;
    font-weight: 500;
}

/* 公告时间标签 */
.notice-body .notice-time {
    display: inline-block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
    padding: 4px 10px;
    background: #f9fafb;
    border-radius: 20px;
    font-weight: 500;
}

/* 公告标签 */
.notice-body .notice-tag {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-body .notice-tag.important {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notice-body .notice-tag.update {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notice-body .notice-tag.notice {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

.table-responsive-wrapper .table {
    min-width: 800px;
    margin-bottom: 0;
}

/* ==================== 面板样式 ==================== */
.panel {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.panel-primary {
    border-color: #eee;
}

.panel-primary > .panel-heading {
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    border: none;
    padding: 18px 24px;
}

.panel-primary > .panel-heading .panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.panel-primary > .panel-heading i {
    margin-right: 8px;
}

.panel-body {
    padding: 24px;
}

.panel-footer {
    background: #fafbfd;
    border: none;
    border-top: 1px solid #f0f0f5;
    padding: 16px 24px;
    color: #888;
    font-size: 13px;
    line-height: 1.8;
}

/* ==================== 表单样式 ==================== */
.form-horizontal .form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #e0e0e5;
    border-radius: 8px;
    padding: 10px 14px;
    height: auto;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.control-label {
    color: #444;
    font-weight: 500;
    padding-top: 12px;
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.input-group-addon {
    border-color: #e0e0e5;
    background: #fafbfd;
    color: #666;
    border-radius: 0 8px 8px 0;
}

.form-inline .form-group {
    margin-right: 10px;
    margin-bottom: 10px;
}

.form-inline .btn {
    margin-right: 5px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1a0f3d 0%, #0f1a3d 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0f8a80 0%, #33d472 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d42d41 0%, #e0523c 100%);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e084eb 0%, #e74d60 100%);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #1a0f3d 0%, #0f1a3d 100%);
    color: #fff;
}

.btn-default {
    background: #fff;
    border: 1px solid #e0e0e5;
    color: #555;
}

.btn-default:hover,
.btn-default:focus {
    background: #fafbfd;
    border-color: #d0d0d5;
    color: #333;
}

.btn-white {
    background: #fff;
    border: 1px solid #e0e0e5;
    color: #555;
}

.btn-white:hover {
    background: #fafbfd;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* ==================== 表格样式 ==================== */
.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: #fafbfd;
    color: #444;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
    padding: 14px 16px;
}

.table > tbody > tr > td {
    padding: 12px 16px;
    color: #555;
    font-size: 14px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f5;
}

.table-hover > tbody > tr:hover {
    background: #f8f9ff;
}

.table > tbody > tr > td a {
    color: #667eea;
}

.table > tbody > tr > td a:hover {
    color: #764ba2;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #fafbfd;
}

.table-bordered {
    border: 1px solid #eee;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: 1px solid #f0f0f5;
}

.table-responsive {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

/* ==================== 模态框样式 ==================== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    color: #fff;
    padding: 20px 24px;
    border: none;
}

.modal-header .modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border: none;
    background: #fafbfd;
}

/* ==================== 警告提示样式 ==================== */
.alert {
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(17,153,142,0.1) 0%, rgba(56,239,125,0.1) 100%);
    color: #11998e;
}

.alert-info {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    color: #667eea;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(240,147,251,0.1) 0%, rgba(245,87,108,0.1) 100%);
    color: #e74c3c;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(235,51,73,0.1) 0%, rgba(244,92,67,0.1) 100%);
    color: #e74c3c;
}

/* ==================== 标签页样式 ==================== */
.nav-tabs {
    border-bottom: 2px solid #f0f0f5;
}

.nav-tabs > li > a {
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    transition: all 0.3s;
}

.nav-tabs > li > a:hover {
    background: transparent;
    color: #667eea;
    border-color: transparent;
    border-bottom-color: #667eea;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border: none;
    border-bottom: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.tab-content {
    padding: 20px 0;
}

/* ==================== 列表组样式 ==================== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f5;
    padding: 14px 20px;
    transition: all 0.3s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: #f8f9ff;
}

/* ==================== 徽章样式 ==================== */
.badge {
    background: linear-gradient(135deg, #2D1B69 0%, #1B2469 100%);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 12px;
}

/* ==================== 其他样式 ==================== */
label {
    font-weight: 500;
    color: #444;
}

hr {
    border: none;
    border-top: 1px solid #f0f0f5;
    margin: 20px 0;
}

code {
    background: #f0f2f5;
    color: #667eea;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
}

pre {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
}

.checkbox-inline, .radio-inline {
    margin-right: 20px;
    padding-top: 0;
}

.help-block {
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

.btn-group .btn {
    border-radius: 8px;
}

.btn-group .btn + .btn {
    margin-left: 5px;
}

.well {
    background: #fafbfd;
    border: 1px solid #f0f0f5;
    border-radius: 12px;
    box-shadow: none;
    padding: 20px;
}

.well h5, .well h6 {
    color: #444;
    margin-top: 0;
}

#searchToolbar {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

#searchToolbar .form-control {
    border-radius: 8px;
}

#searchToolbar .btn {
    border-radius: 8px;
}

#searchToolbar label {
    margin-right: 8px;
}

/* ==================== 响应式布局 - 大屏幕 ==================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}

/* ==================== 响应式布局 - 平板 ==================== */
@media (max-width: 991px) {
    body.admin-logged-in {
        margin-left: 240px;
        padding-top: 60px;
    }
    
    body.sidebar-collapsed {
        margin-left: 70px;
        padding-top: 60px;
    }
    
    .admin-sidebar {
        width: 240px;
    }
    
    .container {
        padding-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .stat-num {
        font-size: 28px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .panel-body {
        padding: 20px;
    }
    
    .modal-dialog {
        margin: 20px auto;
    }
    
    .form-horizontal .control-label {
        padding-top: 8px;
        margin-bottom: 8px;
    }
}

/* ==================== 响应式布局 - 手机横屏 ==================== */
@media (max-width: 767px) {
    body.admin-logged-in {
        margin-left: 0;
        padding-top: 60px;
    }
    
    body.sidebar-collapsed {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    /* 移动端禁用折叠状态 */
    body.sidebar-collapsed .admin-sidebar {
        width: 280px;
    }
    
    body.sidebar-collapsed .sidebar-header,
    body.sidebar-collapsed .sidebar-footer,
    body.sidebar-collapsed .sidebar-text,
    body.sidebar-collapsed .submenu-arrow {
        display: block;
    }
    
    body.sidebar-collapsed .sidebar-link {
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    body.sidebar-collapsed .sidebar-link i:first-child {
        width: 24px;
        font-size: 16px;
    }
    
    .container {
        padding-top: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .topbar-container {
        padding: 0 15px;
    }
    
    .topbar-brand {
        font-size: 16px;
    }
    
    .logout-text {
        display: none;
    }
    
    .logout-btn {
        padding: 8px 12px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .stat-card .panel-heading {
        padding: 16px;
    }
    
    .stat-num {
        font-size: 24px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .panel {
        border-radius: 10px;
    }
    
    .panel-primary > .panel-heading {
        padding: 16px 20px;
    }
    
    .panel-primary > .panel-heading .panel-title {
        font-size: 15px;
    }
    
    .panel-body {
        padding: 16px;
    }
    
    .panel-footer {
        padding: 14px 16px;
    }
    
    .table > thead > tr > th {
        padding: 12px;
        font-size: 12px;
    }
    
    .table > tbody > tr > td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-horizontal .form-group {
        margin-bottom: 16px;
    }
    
    .control-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-xs {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    #searchToolbar {
        padding: 14px 16px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header .modal-title {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 14px 16px;
    }
    
    .notice-wrap {
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .notice-head {
        padding: 16px 20px;
    }
    
    .notice-head-icon {
        width: 40px;
        height: 40px;
    }
    
    .notice-body {
        min-height: 180px;
        max-height: 380px;
    }
    
    .notice-body li {
        padding: 14px 18px 14px 46px;
    }
    
    .notice-body li::before {
        left: 18px;
    }
    
    .notice-body p {
        padding: 12px 18px;
    }
    
    .notice-body p::before {
        display: none;
    }
    
    .notice-load,
    .notice-none,
    .notice-err {
        padding: 50px 20px;
    }
    
    .nav-tabs > li > a {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 16px 0;
    }
}

/* ==================== 响应式布局 - 手机竖屏 ==================== */
@media (max-width: 480px) {
    .admin-topbar {
        height: 55px;
    }
    
    .admin-sidebar {
        top: 55px;
        height: calc(100vh - 55px);
    }
    
    body.admin-logged-in,
    body.sidebar-collapsed {
        padding-top: 55px;
    }
    
    .sidebar-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .topbar-brand {
        font-size: 15px;
    }
    
    .container {
        padding-top: 12px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .stat-card {
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .stat-card .panel-heading {
        padding: 14px;
    }
    
    .stat-card .panel-heading .row {
        flex-wrap: nowrap;
    }
    
    .stat-num {
        font-size: 22px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-card .panel-footer {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .panel {
        border-radius: 10px;
    }
    
    .panel-primary > .panel-heading {
        padding: 14px 16px;
    }
    
    .panel-primary > .panel-heading .panel-title {
        font-size: 14px;
    }
    
    .panel-body {
        padding: 14px;
    }
    
    .panel-footer {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .form-control {
        height: 42px;
        font-size: 14px;
        padding: 10px 14px;
        border-radius: 10px;
    }
    
    select.form-control {
        height: 42px;
    }
    
    .form-horizontal .form-group {
        margin-bottom: 14px;
    }
    
    .control-label {
        font-size: 13px;
        padding-top: 0;
        margin-bottom: 6px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .btn-sm {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn-xs {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    #searchToolbar {
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    #searchToolbar .form-inline .form-group {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    #searchToolbar .form-control {
        width: 100%;
    }
    
    #searchToolbar .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .table > thead > tr > th {
        padding: 10px;
        font-size: 11px;
    }
    
    .table > tbody > tr > td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .info-card {
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .info-card .panel-heading {
        padding: 14px 16px;
    }
    
    .info-card .panel-title {
        font-size: 14px;
    }
    
    .info-card .list-group-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .notice-wrap {
        border-radius: 10px;
    }
    
    .notice-head {
        padding: 12px 14px;
    }
    
    .notice-wrap {
        border-radius: 16px;
        margin-bottom: 15px;
    }
    
    .notice-head {
        padding: 14px 16px;
    }
    
    .notice-head-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .notice-head-icon i {
        font-size: 16px;
    }
    
    .notice-head-title {
        font-size: 14px;
    }
    
    .notice-body {
        min-height: 150px;
        max-height: 350px;
    }
    
    .notice-body li {
        padding: 12px 16px 12px 44px;
        font-size: 13px;
    }
    
    .notice-body li:hover {
        padding-left: 48px;
    }
    
    .notice-body li::before {
        left: 16px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .notice-body p {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .notice-body p::before {
        display: none;
    }
    
    .notice-load,
    .notice-none,
    .notice-err {
        padding: 40px 16px;
    }
    
    .notice-load i {
        font-size: 28px;
    }
    
    .notice-none i,
    .notice-err i {
        font-size: 36px;
    }
    
    .modal-dialog {
        margin: 8px;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-header .modal-title {
        font-size: 14px;
    }
    
    .modal-header .close {
        font-size: 20px;
        margin-top: -2px;
    }
    
    .modal-body {
        padding: 14px;
    }
    
    .modal-body .form-group {
        margin-bottom: 12px;
    }
    
    .modal-body label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .modal-footer {
        padding: 12px 14px;
    }
    
    .modal-footer .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .alert {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .nav-tabs > li > a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 14px 0;
    }
    
    .well {
        padding: 14px;
        border-radius: 10px;
    }
    
    .pagination {
        margin: 10px 0;
    }
    
    .pagination > li > a,
    .pagination > li > span {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .table-responsive-wrapper {
        border: 1px solid #eee;
        border-radius: 8px;
    }
    
    .table-responsive-wrapper .table {
        min-width: 600px;
    }
}

/* ==================== 超小屏幕适配 ==================== */
@media (max-width: 360px) {
    .topbar-brand {
        font-size: 14px;
    }
    
    .stat-num {
        font-size: 20px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    body {
        margin-left: 0 !important;
        padding-top: 0;
        background: #fff;
    }
    
    .admin-topbar,
    .admin-sidebar,
    .sidebar-overlay,
    .btn,
    .modal-footer {
        display: none !important;
    }
    
    .container {
        padding-top: 0;
    }
    
    .panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .table {
        font-size: 12px;
    }
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
