/* ========================================
   app.css - 全局合并样式
   合并自: enhanced.css + mobile-enhanced.css
            + sidebar-optimized.css + customer-service.css
   合并后: 4个CSS请求 → 1个CSS请求
   ======================================== */

/* ============================================================
   Part 1: 全局增强样式 (原 enhanced.css)
   ============================================================ */

/* ===== CSS变量 ===== */
:root {
    --primary-color: #4a9eff;
    --primary-hover: #7ec8ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-primary: #1e2d3d;
    --text-secondary: #4a5568;
    --text-tertiary: #9bb0c7;
    --border-color: #e8edf3;
    --background-color: #f0f4f8;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 卡片容器增强 ===== */
.card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ===== 面板增强样式 ===== */
.panel {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
}

.panel:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.panel-heading {
    background: linear-gradient(135deg, #4a9eff 0%, #7ec8ff 100%);
    border: none;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.panel-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.panel-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.panel-title i {
    margin-right: 8px;
    font-size: 22px;
}

.panel-body {
    padding: 32px;
    background: #fff;
}

/* ===== 按钮增强样式 ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #096dd9 100%);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1890ff 100%);
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* ===== 表单增强样式 ===== */
.form-control {
    border: 2px solid #e8e8e8;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    outline: none;
    background: #fff;
}

.form-control::placeholder {
    color: var(--text-tertiary);
    font-style: normal;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* ===== 表格增强样式 ===== */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #fff;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 16px 12px;
    border: none;
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #40a9ff 100%);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f9ff 100%);
    transform: scale(1.01);
}

.table tbody td {
    padding: 16px 12px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* ===== 状态标签增强 ===== */
.label {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.label-success {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
}

.label-warning {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    color: #fff;
}

.label-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
}

.label-info {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: #fff;
}

/* ===== 分页增强样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 24px 0;
}

.pagination > li > a,
.pagination > li > span {
    padding: 8px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    background: #fff;
    font-weight: 500;
}

.pagination > li > a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f9ff;
    transform: translateY(-1px);
}

.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, var(--primary-color) 0%, #40a9ff 100%);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* ===== 筛选器增强样式 ===== */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    border: 1px solid #f0f0f0;
}

.filter-group .nav-pills > li > a {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid #e8e8e8;
    background: #fff;
    color: var(--text-secondary);
}

.filter-group .nav-pills > li > a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f9ff;
    transform: translateY(-1px);
}

.filter-group .nav-pills > li.active > a {
    background: linear-gradient(135deg, var(--primary-color) 0%, #40a9ff 100%);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* ===== 加载动画增强 ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== 响应式增强 ===== */
@media (max-width: 768px) {
    .card-container {
        padding: 16px;
    }

    .panel-body {
        padding: 20px;
    }

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

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, #40a9ff 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #40a9ff 0%, var(--primary-color) 100%);
}

/* ===== 工具提示增强 ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 成功/错误消息增强 ===== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-success {
    background: linear-gradient(135deg, #f6ffed 0%, #f0f9ff 100%);
    color: #52c41a;
    border-left: 4px solid #52c41a;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%);
    color: #faad14;
    border-left: 4px solid #faad14;
}

.alert-danger {
    background: linear-gradient(135deg, #fff2f0 0%, #fff1f0 100%);
    color: #ff4d4f;
    border-left: 4px solid #ff4d4f;
}

.alert-info {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    color: #1890ff;
    border-left: 4px solid #1890ff;
}


/* ============================================================
   Part 2: 移动端增强样式 (原 mobile-enhanced.css)
   ============================================================ */

/* ===== 移动端基础优化 ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    .container {
        padding: 0 10px;
    }

    .panel {
        margin: 0 5px 20px 5px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }

    .panel-heading {
        padding: 16px 20px;
        border-radius: 8px 8px 0 0;
    }

    .panel-title {
        font-size: 18px;
        font-weight: 600;
    }

    .panel-body {
        padding: 20px;
    }

    /* 侧边栏移动端优化 */
    .sidenav {
        width: 280px;
        left: -280px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1050;
    }

    .sidenav .list-group-item {
        padding: 12px 20px;
        font-size: 15px;
    }

    .sidenav .list-group-item a {
        display: flex;
        align-items: center;
        padding: 8px 0;
    }

    .sidenav .list-group-item i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }

    .user-brief-info {
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .user-brief-info .avatar {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
    }

    .user-brief-info .user-name {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .user-brief-info .user-group {
        font-size: 12px;
        color: #8c8c8c;
    }
}

/* ===== 移动端卡片优化 ===== */
@media (max-width: 768px) {
    .card-container {
        padding: 16px 10px;
        background: #f5f5f5;
    }

    .card-category h3 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .main-type-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .main-type-btn {
        height: 48px;
        font-size: 14px;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .main-type-btn .icon {
        font-size: 16px;
        margin-right: 8px;
    }
}

/* ===== 移动端表单优化 ===== */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .form-control {
        height: 48px;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        border: 2px solid #e8e8e8;
    }

    .form-control:focus {
        border-color: #1890ff;
        box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    }

    .btn-primary {
        height: 48px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        width: 100%;
        margin-top: 20px;
    }

    #batch-cards {
        min-height: 200px;
        font-size: 13px;
        padding: 12px;
        border-radius: 8px;
    }

    .batch-rules {
        margin-top: 12px;
        padding: 12px;
        border-radius: 8px;
    }

    .batch-rules ol {
        padding-left: 16px;
    }

    .batch-rules ul {
        padding-left: 12px;
    }
}

/* ===== 移动端表格优化 ===== */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 8px;
        margin: 0 -10px;
    }

    .table {
        font-size: 12px;
        border-radius: 8px;
    }

    .table thead th {
        padding: 12px 8px;
        font-size: 12px;
        font-weight: 600;
    }

    .table tbody td {
        padding: 12px 8px;
        font-size: 12px;
        line-height: 1.4;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 60px;
        border-radius: 12px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .action-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 50px;
        border-radius: 4px;
    }
}

/* ===== 移动端分页优化 ===== */
@media (max-width: 768px) {
    .pagination-wrapper {
        padding: 16px;
        background: #f8f9fa;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
        border-radius: 6px;
    }

    .pagination li:nth-child(n+6):nth-child(-n+8) {
        display: none;
    }
}

/* ===== 移动端筛选器优化 ===== */
@media (max-width: 768px) {
    .filter-bar {
        padding: 16px;
        margin: 0 5px 16px 5px;
        border-radius: 8px;
    }

    .filter-group {
        margin-bottom: 12px;
    }

    .filter-label {
        font-size: 13px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .filter-group .nav-pills {
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-group .nav-pills > li {
        margin: 0;
    }

    .filter-group .nav-pills > li > a {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 16px;
        min-width: 60px;
        text-align: center;
    }

    #cardTypeSelect {
        height: 40px;
        font-size: 14px;
        border-radius: 6px;
    }
}

/* ===== 移动端信息页面优化 ===== */
@media (max-width: 768px) {
    .info-container {
        padding: 20px 16px;
        margin: 0 5px;
        border-radius: 12px;
    }

    .info-tabs {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 24px;
    }

    .info-tabs .tab-item {
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 4px;
        text-align: center;
        font-size: 14px;
    }

    .info-content h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .info-content h5 {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .info-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .info-content ul li {
        font-size: 14px;
        margin-bottom: 8px;
        padding-left: 20px;
    }

    .qrcode-container {
        flex-direction: column;
        gap: 20px;
    }

    .qrcode-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 20px;
    }

    .qrcode-item img {
        max-width: 180px;
    }

    .qrcode-title {
        font-size: 14px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-item {
        padding: 16px;
    }

    .feature-item h6 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .feature-item p {
        font-size: 13px;
        margin: 0;
    }
}

/* ===== 移动端导航优化 ===== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 18px;
        font-weight: 600;
    }

    .navbar-nav {
        margin: 0;
    }

    .navbar-nav > li > a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border: none;
    }

    .dropdown-menu > li > a {
        padding: 10px 16px;
        font-size: 14px;
    }

    .dropdown-menu > li > a i {
        margin-right: 8px;
        width: 16px;
        text-align: center;
    }
}

/* ===== 移动端客服优化 ===== */
@media (max-width: 768px) {
    .customer-service-container {
        bottom: 20px;
        right: 10px;
    }

    .customer-service-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-bottom: 8px;
        box-shadow: 0 4px 16px rgba(0, 183, 238, 0.3);
    }

    .customer-service-btn span {
        font-size: 12px;
    }

    .service-panel {
        width: 200px;
        right: 70px;
        top: -10px;
        padding: 12px;
    }

    .service-phone-number {
        font-size: 16px;
    }

    .service-time {
        font-size: 11px;
    }

    .go-top {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .go-top i {
        font-size: 18px;
    }
}

/* ===== 移动端加载状态优化 ===== */
@media (max-width: 768px) {
    .loading-placeholder {
        height: 16px;
        margin-bottom: 12px;
    }

    .loading-text {
        padding: 20px;
        font-size: 14px;
    }

    .error-text {
        padding: 20px;
        font-size: 14px;
    }
}

/* ===== 移动端滚动优化 ===== */
@media (max-width: 768px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .sidenav {
        -webkit-overflow-scrolling: touch;
    }

    .info-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== 移动端触摸优化 ===== */
@media (max-width: 768px) {
    .btn,
    .action-btn,
    .tab-item {
        min-height: 44px;
        min-width: 44px;
    }

    .form-control {
        min-height: 44px;
    }

    .pagination li a,
    .pagination li span {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===== 移动端动画优化 ===== */
@media (max-width: 768px) {
    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* ===== 移动端字体优化 ===== */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .table,
    .form-control,
    .btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== 移动端安全区域优化 ===== */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .container {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }

        .panel {
            margin-left: max(5px, env(safe-area-inset-left));
            margin-right: max(5px, env(safe-area-inset-right));
        }

        .customer-service-container {
            bottom: max(20px, env(safe-area-inset-bottom));
            right: max(10px, env(safe-area-inset-right));
        }
    }
}


/* ============================================================
   Part 3: 侧边栏优化样式 (原 sidebar-optimized.css)
   ============================================================ */

/* ===== 侧边栏基础样式优化 ===== */
.sidenav {
    background-color: #fff;
    padding: 15px 0;
    border-radius: 4px;
    margin-right: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-left: 0;
}

/* ===== 用户信息区域优化 ===== */
.sidenav .user-brief-info {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.sidenav .user-brief-info .avatar {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
}

.sidenav .user-brief-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidenav .user-brief-info .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.sidenav .user-brief-info .user-group {
    font-size: 11px;
    color: #8c8c8c;
}

/* ===== 导航菜单优化 ===== */
.sidenav .list-group {
    margin-bottom: 0;
}

.sidenav .list-group-heading {
    padding: 8px 15px;
    font-weight: 600;
    color: #919191;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.sidenav .list-group-item {
    border-radius: 0;
    border: none;
    padding: 0;
    margin-bottom: 2px;
    position: relative;
}

.sidenav .list-group-item:last-child,
.sidenav .list-group-item:first-child {
    border-radius: 0;
}

.sidenav .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.sidenav .list-group-item:hover::before {
    background-color: rgba(70, 195, 123, 0.3);
}

.sidenav .list-group-item:hover {
    background-color: rgba(245, 245, 245, 0.38);
}

.sidenav .list-group-item > a {
    display: block;
    color: #616161;
    padding: 8px 15px 8px 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-left: 0;
    position: relative;
    z-index: 1;
}

.sidenav .list-group-item > a:hover {
    color: #46c37b;
    text-decoration: none;
}

.sidenav .list-group-item.active::before {
    background-color: #46c37b;
}

.sidenav .list-group-item.active {
    background-color: rgba(70, 195, 123, 0.1);
}

.sidenav .list-group-item.active > a {
    color: #46c37b;
    font-weight: 500;
    padding-left: 20px;
    margin-left: 0;
}

.sidenav .list-group-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 12px;
}

/* ===== 移动端侧边栏优化 ===== */
@media (max-width: 991px) {
    .sidenav {
        position: fixed;
        top: 66px;
        z-index: 1029;
        height: calc(100vh - 66px);
        padding: 20px 0;
        min-width: 220px;
        overflow-y: auto;
        overflow-x: hidden;
        width: 220px;
        left: -220px;
        background-color: #fff;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        margin: 0;
    }

    .sidebar-toggle {
        display: block;
        position: fixed;
        right: 20px;
        bottom: 70px;
        border-radius: 50%;
        font-size: 18px;
        padding: 8px;
        line-height: 30px;
        height: 45px;
        width: 45px;
        text-align: center;
        z-index: 999999;
        background: #46c37b;
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar-toggle:hover {
        background-color: #3db172 !important;
        transform: scale(1.05);
    }
}

body.sidebar-open .sidenav {
    left: 0;
    width: 220px;
    box-shadow: 0 6px 27px rgba(0, 0, 0, 0.1);
}

body.sidebar-open .sidebar-toggle i:before {
    content: "\f00d";
}

/* ===== 内容区域优化 ===== */
.col-md-10 {
    padding-left: 5px;
}

@media (max-width: 991px) {
    .col-md-10 {
        padding-left: 15px;
    }
}

/* ===== 响应式优化 ===== */
@media (max-width: 768px) {
    .sidenav {
        width: 280px;
        left: -280px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1050;
    }

    .sidenav .list-group-item {
        padding: 12px 20px;
        font-size: 15px;
    }

    .sidenav .list-group-item a {
        display: flex;
        align-items: center;
        padding: 8px 0;
    }

    .sidenav .list-group-item i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }

    body.sidebar-open .sidenav {
        left: 0;
        width: 280px;
    }
}

/* ===== 页面特定优化 ===== */
#content-container .row > .col-md-2 {
    padding-right: 5px;
}

#content-container .row > .col-md-10 {
    padding-left: 5px;
}


/* ============================================================
   Part 4: 客服按钮样式 (原 customer-service.css)
   ============================================================ */

.customer-service-container {
    position: fixed;
    bottom: 150px;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.customer-service-btn {
    width: 90px;
    height: 40px;
    background-color: #00b7ee;
    border-radius: 4px 0 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    position: relative;
}

.customer-service-btn:hover {
    background-color: #0096c7;
}

.customer-service-btn span {
    font-size: 14px;
    font-weight: bold;
}

.customer-service-avatar {
    position: absolute;
    top: -80px;
    right: 10px;
    z-index: 9998;
}

.customer-service-avatar img {
    max-width: 70px;
    height: auto;
}

.service-panel {
    display: none;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 250px;
    padding: 15px;
    position: absolute;
    right: 95px;
    top: -20px;
    animation-duration: 0.3s;
    animation-fill-mode: both;
    z-index: 9997;
}

.service-item {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.service-phone {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    margin-top: 10px;
}

.service-phone-label {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.service-phone-number {
    font-size: 18px;
    font-weight: bold;
    color: #ff6600;
    text-decoration: none;
    margin-bottom: 2px;
}

a.service-phone-number:hover {
    color: #ff8800;
    text-decoration: none;
}

.service-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 4px 0 0 4px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.service-icon i {
    font-size: 20px;
    color: #777;
    transition: color 0.3s;
}

.service-icon:hover {
    background-color: #f5f5f5;
}

.service-icon:hover i {
    color: #00b7ee;
}

.go-top {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.go-top i {
    font-size: 20px;
    color: #777;
    transition: color 0.3s;
}

.go-top:hover {
    background-color: #f5f5f5;
}

.go-top:hover i {
    color: #00b7ee;
}

.customer-service-btn:hover .service-panel,
.service-icon:hover .service-panel {
    display: block;
    animation-name: fadeInLeft;
}

/* 微信公众号二维码样式 */
.qrcode-container {
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.qrcode-container img {
    width: 100%;
    max-width: 200px;
    display: block;
    border: 1px solid #eee;
    margin: 0 auto;
}

.qrcode-title {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: #333;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===== 站点品牌 Logo + 标题 + 网址 ===== */
.navbar-white .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand .brand-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #4a9eff;
}

.navbar-brand .brand-url {
    font-size: 12px;
    color: #9bb0c7;
    font-weight: 400;
}

@media (max-width: 768px) {
    .navbar-brand .brand-logo {
        height: 32px;
    }

    .navbar-brand .brand-name {
        font-size: 16px;
    }

    .navbar-brand .brand-url {
        font-size: 11px;
    }
}

/* 去除头像下拉按钮的 hover 蓝色背景和阴影 */
.navbar-white .navbar-nav > li.dropdown > a.dropdown-toggle:hover,
.navbar-white .navbar-nav > li.dropdown > a.dropdown-toggle:focus {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ===== 顶部导航栏样式 ===== */
@media (min-width: 768px) {
    .navbar-white .navbar-nav > li > a {
        height: 66px;
        line-height: 66px;
        padding: 0 18px;
        color: #4a5568;
        font-size: 15px;
        font-weight: 500;
        position: relative;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        border-radius: 8px;
        margin: 0 2px;
    }
    .navbar-white .navbar-nav > li > a:hover,
    .navbar-white .navbar-nav > li > a:focus {
        color: #4a9eff;
        background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(74, 158, 255, 0.15);
    }
    .navbar-white .navbar-nav > .active > a,
    .navbar-white .navbar-nav > .active > a:hover,
    .navbar-white .navbar-nav > .active > a:focus {
        color: #4a9eff;
        font-weight: 600;
    }
    .navbar-white .navbar-nav > .active > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: linear-gradient(135deg, #4a9eff, #7ec8ff);
        border-radius: 2px;
    }
    .navbar-white .navbar-nav > li > a i {
        margin-right: 6px;
        font-size: 15px;
        color: #4a9eff;
        transition: all 0.3s ease;
        display: inline-block;
    }
    .navbar-white .navbar-nav > li > a:hover i {
        color: #4a9eff;
        transform: scale(1.15) rotate(-3deg);
    }
    .navbar-white .navbar-nav > .active > a i,
    .navbar-white .navbar-nav > .active > a:hover i {
        color: #10b981;
        transform: scale(1.1);
    }
    .navbar-white .navbar-nav .avatar-img {
        display: inline-flex;
        align-items: center;
        height: 100%;
        vertical-align: middle;
        background-color: transparent !important;
        width: auto;
        border-radius: 0;
    }
    .navbar-white .navbar-nav .avatar-img img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
    }
}
