    /* 通用工具类 */
    .text-center { text-align: center; }
    .text-right  { text-align: right; }
    .text-left   { text-align: left; }
    .cursor-pointer { cursor: pointer; }
    .mr-5  { margin-right: 5px; }
    .mb-15 { margin-bottom: 15px; }

    /* 基础样式 */
    body {
        font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background-color: #f5f7fa;
        margin: 0;
        padding: 0;
        color: #333;
        line-height: 1.6;
    }
    
    /* Font Awesome 图标统一样式 */
    .fas {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
    }
    .far {
        font-family: 'Font Awesome 6 Free';
        font-weight: 400;
    }
    .fab {
        font-family: 'Font Awesome 6 Brands';
        font-weight: 400;
    }
    
    /* 数据卡片图标样式 */
    .stat-icon i,
    .stats-icon i {
        font-size: 24px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 功能卡片图标样式 - 使用深色确保在白色背景上可见 */
    .feature-icon i,
    .quick-access-icon i {
        font-size: 24px;
        color: #00B5A4;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 按钮图标样式 */
    .btn i {
        margin-right: 5px;
        font-size: 14px;
    }
    
    /* 表格操作图标样式 */
    .action-icon i {
        font-size: 16px;
        cursor: pointer;
        margin: 0 5px;
    }
    
    /* 表单图标样式 */
    .form-icon i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
    }
    
    /* 容器样式 - 统一宽度和内边距，由JavaScript和top_header_styles.php统一管理 */
    .container {
        max-width: 100%;
        width: calc(100% - 180px);
        margin: 0 0 0 180px;
        padding: 20px;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }
    
    /* 侧边栏隐藏时容器自适应 */
    .sidebar.open ~ .container {
        margin-left: 0;
        width: 100%;
    }
    
    /* 消息提示全局样式 - 右上角固定定位，不受弹窗 overflow/transform 影响 */
    .success-message,
    .error-message {
        position: fixed;
        top: 20px;
        right: -420px;
        min-width: 150px;
        max-width: 400px;
        width: fit-content;
        padding: 16px 24px;
        font-size: 14px;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        z-index: 10001;
        cursor: pointer;
        word-wrap: break-word;
        white-space: pre-wrap;
        transform: translateY(-20px);
        opacity: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }

    .success-message.show,
    .error-message.show {
        right: 20px;
        transform: translateY(0);
        opacity: 1;
    }

    .success-message.hide,
    .error-message.hide {
        right: -420px;
        transform: translateY(-20px);
        opacity: 0;
    }

    .success-message {
        background-color: #00B5A4;
        color: white;
        border-left: 4px solid #00796B;
    }

    .error-message {
        background-color: #f44336;
        color: white;
        border-left: 4px solid #C62828;
    }

    .message-container.success-message,
    .message-container.error-message {
        position: static;
        box-shadow: none;
        right: auto;
        transform: none;
        opacity: 1;
    }
    
    /* 响应式容器布局 */
    @media (max-width: 1440px) {
        .container {
            width: calc(100% - 180px);
        }
    }
    
    @media (max-width: 1200px) {
        .container {
            width: calc(100% - 180px);
        }
    }
    
    @media (max-width: 992px) {
        .container {
            width: calc(100% - 180px);
            margin-left: 180px;
            padding: 15px;
        }
        
        .sidebar.open ~ .container {
            margin-left: 0;
            width: 100%;
        }
    }
    
    @media (max-width: 768px) {
        .container {
            width: 100%;
            margin-left: 0;
            padding: 10px;
        }
    }
    
    /* 1920×1080像素屏幕专用样式 */
    @media (min-width: 1900px) {
        .container {
            width: calc(100% - 180px);
            padding: 30px;
        }
        
        /* 表格容器调整 */
        .table-container {
            padding: 0;
        }
        
        /* 表格调整 - 确保在大屏幕上内容合理分布 */
        table {
            width: 100%;
            min-width: 1000px;
            border-spacing: 0;
        }
        
        /* 表格单元格优化 */
        th, td {
            padding: 8px;
            text-align: left;
        }
        
        /* 表格标题行优化 - 保持与统一样式一致 */
        thead th {
            height: 50px;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        /* 表格内容行优化 */
        tbody tr {
            transition: background-color 0.2s ease;
        }
        
        /* 按钮间距优化 */
        .btn-group {
            display: flex;
            gap: 12px;
        }
        
        /* 操作按钮区域优化 */
        .action-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        /* 搜索和筛选区域优化 */
        .search-filter-container {
            display: flex;
            gap: 16px;
            align-items: center;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }
        
        /* 响应式工具类 */
        .hidden-xxl {
            display: none;
        }
        
        /* 大屏幕专用间距类 */
        .space-xxl {
            margin-bottom: 32px;
        }
        
        /* 内容区域内边距优化 */
        .table-header,
        .table-content {
            padding: 24px 32px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 24px;
        }
        
        /* 表格标题行内边距调整 */
        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            padding: 15px 32px;
        }
        
        /* 功能卡片布局优化 */
        .feature-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 24px;
        }
        
        /* 表单分组布局优化 */
        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .form-row .form-group {
            flex: 1;
            min-width: 200px;
        }
        
        /* 弹窗内容优化 */
        .modal-content-box {
            max-width: 760px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 32px;
        }
        
        /* 模态框标题样式 */
        .modal-header {
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid #e9ecef;
        }
        
        /* 确认对话框样式优化 */
        .confirm-dialog {
            max-width: 480px;
            padding: 32px;
        }
        
        /* 消息提示样式 */
        .success-message,
        .error-message {
            position: fixed;
            top: 20px;
            right: 20px;
            min-width: 150px;
            max-width: 90%;
            width: fit-content;
            padding: 16px 24px;
            font-size: 14px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 10000;
            transition: all 0.3s ease;
            cursor: pointer;
            word-wrap: break-word;
            white-space: pre-wrap;
        }
        
        .success-message {
            background-color: #00B5A4;
            color: white;
            border-left: 4px solid #00796B;
        }
        
        .error-message {
            background-color: #f44336;
            color: white;
            border-left: 4px solid #C62828;
        }
        
        .message-container.success-message,
        .message-container.error-message {
            position: static;
            box-shadow: none;
        }
        
        /* 临时消息容器 - 响应式支持 */
        .temporary-message-container {
            position: fixed;
            top: 20px;
            right: 20px;
            left: 20px;
            z-index: 9999;
            max-width: 280px;
            width: calc(100% - 40px);
            margin-left: auto;
        }
        
        .temporary-message {
            padding: 14px 18px;
            margin-bottom: 10px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.25);
            animation: slideInRight 0.3s ease-out;
            word-wrap: break-word;
            box-sizing: border-box;
        }
        
        .temporary-message.success {
            background-color: #00B5A4;
        }
        
        .temporary-message.error {
            background-color: #f44336;
        }
        
        .temporary-message.info {
            background-color: #04cbcf;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeOut {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(-20px);
            }
        }
        
        /* 数据统计卡片优化 */
        .stat-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 24px;
            margin-bottom: 32px;
        }
        
        .stat-card {
            padding: 24px;
            border-radius: 8px;
            background-color: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        /* 打印样式优化 */
        @media print {
            .container {
                max-width: 100%;
                margin-left: 0;
            }
            
            .sidebar {
                display: none;
            }
        }
        
        /* 优化卡片布局 - 大屏幕可以显示更多列 */
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
        
    /* 表单元素宽度优化 */
        .form-group input,
        .form-group select,
        .form-group textarea {
            max-width: 100%;
        }
        
        /* 双列布局优化 */
        .two-column-layout {
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        
        /* 三列布局优化 */
        .three-column-layout {
            grid-template-columns: 1fr 1fr 1fr;
            gap: 30px;
        }
        
        /* 标题字体大小调整 */
        h1 {
            font-size: 2.2em;
        }
        
        h2 {
            font-size: 1.8em;
        }
        
        h3 {
            font-size: 1.5em;
        }
    }
    
    /* 页面主体容器样式 */
    .page-content {
        display: flex;
        gap: 20px;
        padding: 0;
        min-height: 100vh;
        position: relative;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* 主内容区域样式 */
    .main-content {
        flex: 1;
        padding: 0;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* 容器样式 - 确保内容不会被用户菜单遮挡，由JavaScript和top_header_styles.php统一管理 */
    .container {
        position: relative;
        padding-top: 10px;
        width: calc(100% - 180px);
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        transition: width 0.3s ease, margin-left 0.3s ease;
    }
    
    /* 确保所有直接子元素也不会溢出 */
    .container > * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 头部样式 */
    .header {
        margin-bottom: 10px;
        padding-top: 10px; /* 减小为用户菜单留出的空间 */
    }
    
    /* 表单容器样式 - 统一表单区域的样式 */
    .form-container {
        background-color: #fff;
        padding: 24px;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
    }
    
    /* 表格容器样式 */
    .table-container {
        background-color: #fff;
        padding: 0;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        overflow-x: auto;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 #f1f1f1;
    }

    /* 滚动条样式美化（WebKit浏览器） */
    .table-container::-webkit-scrollbar {
        height: 8px;
    }

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

    .table-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }
    
    /* 统一表格样式 */
    table {
        width: 100%;
        min-width: 600px;
        border-collapse: collapse;
        border-spacing: 0;
        background-color: white;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
    }
    
    /* 侧边栏折叠状态下的表格样式调整 */
    .sidebar.collapsed ~ .container table,
    .container.collapsed-sidebar table {
        min-width: 500px;
    }
    
    /* 侧边栏折叠状态下的表格列宽调整 */
    .sidebar.collapsed ~ .container .packaging-type-table thead th:nth-child(4),
    .sidebar.collapsed ~ .container .packaging-type-table tbody td:nth-child(4),
    .container.collapsed-sidebar .packaging-type-table thead th:nth-child(4),
    .container.collapsed-sidebar .packaging-type-table tbody td:nth-child(4) {
        width: 450px;
        min-width: 450px;
    }
    
    .sidebar.collapsed ~ .container .packaging-type-table thead th:nth-child(8),
    .sidebar.collapsed ~ .container .packaging-type-table tbody td:nth-child(8),
    .container.collapsed-sidebar .packaging-type-table thead th:nth-child(8),
    .container.collapsed-sidebar .packaging-type-table tbody td:nth-child(8) {
        width: 130px;
        min-width: 130px;
    }
    
    .sidebar.collapsed ~ .container .packaging-type-table thead th:nth-child(9),
    .sidebar.collapsed ~ .container .packaging-type-table tbody td:nth-child(9),
    .container.collapsed-sidebar .packaging-type-table thead th:nth-child(9),
    .container.collapsed-sidebar .packaging-type-table tbody td:nth-child(9) {
        width: 180px;
        min-width: 180px;
    }
    
    .sidebar.collapsed ~ .container .material-table thead th:nth-child(4),
    .sidebar.collapsed ~ .container .material-table tbody td:nth-child(4),
    .container.collapsed-sidebar .material-table thead th:nth-child(4),
    .container.collapsed-sidebar .material-table tbody td:nth-child(4) {
        width: 450px;
        min-width: 450px;
    }
    
    .sidebar.collapsed ~ .container .material-table thead th:nth-child(8),
    .sidebar.collapsed ~ .container .material-table tbody td:nth-child(8),
    .container.collapsed-sidebar .material-table thead th:nth-child(8),
    .container.collapsed-sidebar .material-table tbody td:nth-child(8) {
        width: 130px;
        min-width: 130px;
    }
    
    /* 侧边栏折叠状态下的卡片和容器样式调整 */
    .sidebar.collapsed ~ .container .form-container,
    .container.collapsed-sidebar .form-container,
    .sidebar.collapsed ~ .container .table-container,
    .container.collapsed-sidebar .table-container,
    .sidebar.collapsed ~ .container .header,
    .container.collapsed-sidebar .header {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 侧边栏折叠状态下的按钮样式调整 */
    .sidebar.collapsed ~ .container .btn,
    .container.collapsed-sidebar .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 70px;
    }
    
    /* 侧边栏折叠状态下的文本样式调整 */
    .sidebar.collapsed ~ .container .header h1,
    .container.collapsed-sidebar .header h1 {
        font-size: 1.3em;
    }
    
    /* 侧边栏折叠状态下的表格内容调整 */
    .sidebar.collapsed ~ .container table th,
    .sidebar.collapsed ~ .container table td,
    .container.collapsed-sidebar table th,
    .container.collapsed-sidebar table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* 侧边栏折叠状态下的表头高度调整 */
    .sidebar.collapsed ~ .container table thead th,
    .container.collapsed-sidebar table thead th {
        height: 45px;
        font-size: 14px;
    }
    
    /* 侧边栏折叠状态下的分页组件样式调整 - 防止页码拉伸 */
    .sidebar.collapsed ~ .container .pagination-container,
    .container.collapsed-sidebar .pagination-container {
        width: 100%;
        box-sizing: border-box;
    }
    
    .sidebar.collapsed ~ .container .pagination,
    .container.collapsed-sidebar .pagination {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .sidebar.collapsed ~ .container .btn.btn-pagination,
    .container.collapsed-sidebar .btn.btn-pagination {
        padding: 6px 12px !important;
        min-width: auto !important;
        width: auto !important;
        font-size: 14px !important;
    }
    
    .sidebar.collapsed ~ .container .pagination-numbers,
    .container.collapsed-sidebar .pagination-numbers {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar.collapsed ~ .container .pagination-info,
    .container.collapsed-sidebar .pagination-info {
        white-space: nowrap;
        font-size: 14px;
    }
    
    /* 确保分页组件在任何情况下都不会被拉伸 */
    .pagination-container {
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
        text-align: center;
        padding: 12px 0;
        background-color: white;
    }

    .pagination {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .btn.btn-pagination {
        padding: 6px 12px !important;
        min-width: auto !important;
        width: auto !important;
        flex-shrink: 0;
        background-color: white;
        color: #333;
        border: 1px solid #ddd;
        box-shadow: none;
        text-decoration: none;
        border-radius: 4px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn.btn-pagination:hover {
        background-color: #f5f5f5;
        color: #333;
        border-color: #ccc;
    }

    .btn.btn-pagination-active {
        background-color: #E8F7F6;
        color: #333;
        border-color: #00B5A4;
    }

    .btn.btn-pagination-active:hover {
        background-color: #B2DFDB;
        color: #333;
        border-color: #00B5A4;
    }

    .pagination-numbers {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-ellipsis {
        color: #666;
        padding: 0 8px;
    }

    .pagination-info {
        margin-left: 15px;
        color: #666;
        font-size: 14px;
        white-space: nowrap;
    }

    .pagination-jump {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-left: 10px;
        font-size: 14px;
        color: #666;
    }

    .pagination-jump input {
        width: 50px;
        height: 30px;
        text-align: center;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 2px 4px;
        font-size: 14px;
    }

    .pagination-jump input:focus {
        outline: none;
        border-color: #00B5A4;
        box-shadow: 0 0 0 2px rgba(0, 181, 164, 0.2);
    }

    @media (max-width: 768px) {
        .pagination {
            gap: 4px;
        }
        .btn.btn-pagination {
            font-size: 12px !important;
            padding: 4px 8px !important;
        }
        .pagination-info {
            width: 100%;
            text-align: center;
            margin-left: 0;
            margin-top: 4px;
        }
        .pagination-jump {
            width: 100%;
            justify-content: center;
            margin-left: 0;
            margin-top: 4px;
        }
    }
    
    th, td {
        border: 1px solid #e0e0e0;
        vertical-align: middle;
        padding: 10px 12px;
        font-size: 15px;
        color: #333;
        font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    
    thead {
        background-color: #f8f9fa;
    }
    
    /* 统一表头样式 - 应用于所有页面的表格表头 */
    thead th {
        height: 50px;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
        padding: 0 12px;
    }
    
    tbody tr {
        border-bottom: 1px solid #e0e0e0;
        transition: background-color 0.2s ease;
    }
    
    tbody tr:hover {
        background-color: #E8F7F6;
        transition: background-color 0.2s ease, transform 0.1s ease;
    }
    
    tbody tr:last-child td {
        border-bottom: none;
    }
    
    /* 复选框样式 - 表格中使用的多选框单元格样式，使用更具体的选择器确保样式优先级 */
    table th.checkbox-cell,
    table td.checkbox-cell {
        width: 40px !important;
        text-align: center !important;
        padding: 10px 4px !important;
    }
    
    /* 统一复选框大小和颜色 */
    .checkbox-cell input[type="checkbox"],
    .checkbox-col input[type="checkbox"],
    input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #00B5A4;
    }
    
    /* ID列统一样式 - 应用于所有表格的第二列，使用更具体的选择器确保样式优先级 */
    table thead th:nth-child(2),
    table tbody td:nth-child(2) {
        width: 60px !important;
        text-align: center !important;
        padding: 10px 4px !important;
        white-space: nowrap;
    }
    
    /* 表格内图标样式 */
    table i {
        font-size: 14px;
        color: #666;
        transition: color 0.2s ease;
    }
    
    table i:hover {
        color: #00B5A4;
    }
    
    /* 表格内下拉菜单样式 */
    table select {
        width: 100%;
        padding: 6px 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        background-color: white;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    table select:hover {
        border-color: #00B5A4;
    }
    
    table select:focus {
        outline: none;
        border-color: #00B5A4;
        box-shadow: 0 0 0 2px rgba(0, 181, 164, 0.2);
    }
    
    /* 表格内链接样式 */
    table a {
        color: #00B5A4;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    table a:hover {
        color: #009688;
        text-decoration: underline;
    }
    
    /* 表格内图片样式 */
    table img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }
    
    /* 表格内徽章样式 */
    table .badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
        text-align: center;
    }
    
    /* 表格空状态样式 */
    .empty-message {
        text-align: center;
        padding: 40px;
        color: #666;
        font-style: italic;
        font-size: 15px;
    }

    /* 辅料单价页面特定样式 - 响应式优化 */
    .packaging-type-table thead th:nth-child(3),
    .packaging-type-table tbody td:nth-child(3) {
        width: 100px;
        min-width: 100px;
        text-align: center;
    }
    
    .packaging-type-table thead th:nth-child(4),
    .packaging-type-table tbody td:nth-child(4) {
        width: 250px;
        min-width: 250px;
    }
    
    .packaging-type-table thead th:nth-child(5),
    .packaging-type-table tbody td:nth-child(5) {
        width: 50px;
        min-width: 50px;
        text-align: center;
    }
    
    .packaging-type-table thead th:nth-child(6),
    .packaging-type-table tbody td:nth-child(6) {
        width: 100px;
        min-width: 100px;
        text-align: center;
    }
    
    .packaging-type-table thead th:nth-child(7),
    .packaging-type-table tbody td:nth-child(7) {
        width: 100px;
        min-width: 100px;
        text-align: center;
    }
    
    .packaging-type-table thead th:nth-child(8),
    .packaging-type-table tbody td:nth-child(8) {
        width: 200px;
        min-width: 200px;
    }
    
    .packaging-type-table thead th:nth-child(9),
    .packaging-type-table tbody td:nth-child(9) {
        width: 100px;
        min-width: 100px;
        text-align: center;
    }
    
    /* 材料单价页面各列宽度设置 - 响应式优化 */
    .material-table thead th:nth-child(3),
    .material-table tbody td:nth-child(3) {
        width: 100px;
        min-width: 100px;
        text-align: center;
    }
    
    .material-table thead th:nth-child(4),
    .material-table tbody td:nth-child(4) {
        width: 250px;
        min-width: 250px;
    }
    
    .material-table thead th:nth-child(5),
    .material-table tbody td:nth-child(5) {
        width: 150px;
        min-width: 150px;
        text-align: center;
    }
    
    .material-table thead th:nth-child(6),
    .material-table tbody td:nth-child(6) {
        width: 50px;
        min-width: 50px;
        text-align: center;
    }
    
    .material-table thead th:nth-child(7),
    .material-table tbody td:nth-child(7) {
        width: 100px;
        min-width: 100px;
        text-align: center;
    }
    
    .material-table thead th:nth-child(8),
    .material-table tbody td:nth-child(8) {
        width: 200px;
        min-width: 200px;
    }
    
    .material-table thead th:nth-child(9),
    .material-table tbody td:nth-child(9) {
        width: 100px;
        min-width: 100px;
        text-align: center;
    }
    
    /* 响应式列宽调整 */
    @media (max-width: 1200px) {
        .packaging-type-table thead th:nth-child(4),
        .packaging-type-table tbody td:nth-child(4) {
            width: 200px;
            min-width: 200px;
        }
        
        .packaging-type-table thead th:nth-child(8),
        .packaging-type-table tbody td:nth-child(8) {
            width: 150px;
            min-width: 150px;
        }
        
        .material-table thead th:nth-child(4),
        .material-table tbody td:nth-child(4) {
            width: 200px;
            min-width: 200px;
        }
        
        .material-table thead th:nth-child(8),
        .material-table tbody td:nth-child(8) {
            width: 150px;
            min-width: 150px;
        }
    }
    
    @media (max-width: 768px) {
        .packaging-type-table thead th:nth-child(4),
        .packaging-type-table tbody td:nth-child(4),
        .packaging-type-table thead th:nth-child(8),
        .packaging-type-table tbody td:nth-child(8),
        .material-table thead th:nth-child(4),
        .material-table tbody td:nth-child(4),
        .material-table thead th:nth-child(8),
        .material-table tbody td:nth-child(8) {
            width: 120px;
            min-width: 120px;
        }
    }
    
    /* 头部样式 */
    .header {
        background-color: #fff;
        padding: 16px 24px;
        border-radius: 4px;
        margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header h1 {
        margin: 0;
        color: #333;
        font-size: 1.5em;
    }
    
    /* 按钮样式 - 统一管理 */
    .btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #00B5A4;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        outline: none;
        min-width: 80px;
        text-align: center;
        position: relative;
        overflow: hidden;
        touch-action: manipulation;
    }
    
    .btn:hover {
        background-color: #009688;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    }
    
    .btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .btn:focus {
        box-shadow: 
            0 0 0 3px rgba(0, 181, 164, 0.4),
            0 0 0 1px rgba(0, 181, 164, 0.8);
        outline: 2px solid transparent;
        outline-offset: 2px;
    }
    
    .btn:focus-visible {
        box-shadow: 
            0 0 0 3px rgba(0, 181, 164, 0.4),
            0 0 0 1px rgba(0, 181, 164, 0.8);
    }
    
    .btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.4s ease, height 0.4s ease;
        opacity: 0;
    }
    
    .btn:active::after {
        width: 300px;
        height: 300px;
        opacity: 1;
        transition: width 0.4s ease, height 0.4s ease;
    }
    
    .btn-danger {
        background-color: #dc3545;
    }
    
    .btn-danger:hover {
        background-color: #c82333;
    }
    
    .btn-danger:focus {
        box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
    }
    
    .btn-warning {
        background-color: #ffc107;
        color: #212529;
    }
    
    .btn-warning:hover {
        background-color: #e0a800;
    }
    
    .btn-warning:focus {
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    }
    
    .btn-primary {
        background-color: #00B5A4;
    }
    
    .btn-primary:hover {
        background-color: #009688;
    }
    
    .btn-primary:focus {
        box-shadow: 0 0 0 2px rgba(0, 181, 164, 0.3);
    }
    
    .btn-secondary {
        background-color: #6B7280;
        border: 1px solid #6B7280;
    }
    
    .btn-secondary:hover {
        background-color: #4B5563;
        border-color: #4B5563;
    }
    
    .btn-secondary:focus {
        box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.3);
    }
    
    /* 取消按钮样式 - 使用中性但不是灰色的颜色 */
    .btn-cancel {
        background-color: #e74c3c; /* 使用红色系的变体，更容易与确认按钮区分 */
    }
    
    .btn-cancel:hover {
        background-color: #c0392b;
    }
    
    .btn-cancel:focus {
        box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.3);
    }
    
    .btn-info {
        background-color: #00BCD4;
    }
    
    .btn-info:hover {
        background-color: #0097A7;
    }
    
    .btn-info:focus {
        box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.3);
    }
    
    /* 搜索按钮特定样式 */
    .search-btn {
        padding: 10px 20px;
        background-color: #00B5A4;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 90px;
    }
    
    .search-btn:hover {
        background-color: #009688;
    }
    
    /* 清除搜索按钮特定样式 */
    .clear-search-btn {
        padding: 10px 20px;
        background-color: #9b59b6; /* 改为紫色系，用于特殊功能按钮 */
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-width: 90px;
    }
    
    .clear-search-btn:hover {
        background-color: #8e44ad;
    }
    
    /* 动作按钮组 */
    .action-buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: none;
        height: 100%;
        min-height: 40px;
        width: 100%;
        padding: 4px 0;
    }
    
    .action-buttons .btn {
        height: 28px;
        padding: 0 8px;
        border: 1px solid #ddd;
        background: #fff !important;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        color: #666;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        white-space: nowrap;
        box-shadow: none;
        font-weight: normal;
        min-width: auto;
    }
    
    .action-buttons .btn:hover:not(:disabled) {
        background: #f5f5f5 !important;
        border-color: #ccc;
        transform: none;
    }
    
    .action-buttons .btn:active:not(:disabled) {
        background: #00B5A4 !important;
        color: white;
        border-color: #00B5A4;
        transform: none;
    }
    
    /* 图标与文字间距 */
    .action-buttons .btn .mr-1 {
        margin-right: 4px;
    }
    
    /* 移除表格操作列中按钮的多余线框 */
    table td.action-buttons {
        border: none;
        padding: 8px 4px !important;
    }
    
    /* 角色标签样式 - 账号管理页面专用 */
    .role-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .role-normal {
        background-color: #e0e0e0;
        color: #666;
    }
    
    .role-advanced {
        background-color: #bbdefb;
        color: #1976d2;
    }
    
    .role-admin {
        background-color: #ffcdd2;
        color: #c62828;
    }
    
    /* 表格响应式调整 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    /* 确保所有表格在小屏幕上可以水平滚动 */
    table {
        width: 100%;
        min-width: 800px; /* 确保表格有足够的最小宽度 */
    }
    
    /* 响应式表格单元格优化 */
    @media (max-width: 1200px) {
        table {
            min-width: 700px;
        }
    }
    
    @media (max-width: 768px) {
        table {
            min-width: 600px;
        }
        
        /* 优化小屏幕上的表格单元格内边距 */
        th, td {
            padding: 6px 4px;
            font-size: 13px;
        }
    }
    
    @media (max-width: 480px) {
        table {
            min-width: 500px;
        }
        
        th, td {
            padding: 4px 3px;
            font-size: 12px;
        }
    }
    
    /* 响应式按钮样式 */
    @media (max-width: 768px) {
        .btn {
            padding: 8px 16px;
            font-size: 13px;
            min-width: 70px;
        }
        
        .action-buttons {
            gap: 4px;
        }
        
        .action-buttons .btn {
            height: 24px;
            padding: 0 6px;
            font-size: 12px;
        }
    }
    
    /* 响应式头部样式 */
    @media (max-width: 768px) {
        .header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 16px;
        }
        
        .header h1 {
            font-size: 1.3em;
        }
    }
    
    /* 响应式表单样式 */
    @media (max-width: 768px) {
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea,
        .form-control {
            padding: 8px 10px;
            font-size: 13px;
        }
        
        .form-actions {
            flex-direction: column;
            align-items: stretch;
        }
    }
    
    /* 响应式功能卡片样式 */
    @media (max-width: 768px) {
        .feature-cards {
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }
        
        .feature-card {
            padding: 10px;
        }
        
        .feature-card i {
            font-size: 20px;
        }
        
        .feature-card span {
            font-size: 13px;
        }
    }
    
    .empty-message {
        text-align: center;
        padding: 40px;
        color: #666;
        font-style: italic;
    }
    
    /* 表单样式 - 统一管理 */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #555;
        font-weight: 500;
        font-size: 13px;
    }
    
    /* 统一输入框、选择框和文本区域样式 */
    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 14px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        background-color: white;
        outline: none;
    }
    
    .form-group textarea {
        resize: vertical;
        min-height: 100px;
        line-height: 1.5;
    }
    
    /* 统一的 select 下拉箭头样式 */
    .form-group select,
    select.form-control {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 32px;
        cursor: pointer;
    }
    
    /* 统一的聚焦效果 */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus,
    .form-control:focus {
        border-color: #00B5A4;
        box-shadow: 0 0 0 2px rgba(0, 181, 164, 0.2);
    }
    
    .form-group input:disabled,
    .form-group select:disabled,
    .form-group textarea:disabled,
    .form-control:disabled {
        background-color: #f0f0f0;
        color: #999;
        cursor: not-allowed;
        border-color: #e0e0e0;
        opacity: 0.7;
    }
    
    /* 禁用状态优化 - 禁用输入框的边框样式 */
    .form-group input:disabled,
    .form-group select:disabled {
        border-style: dashed;
    }
    
    /* 表单验证状态样式 */
    .form-group input.is-error,
    .form-group select.is-error,
    .form-group textarea.is-error,
    .form-control.is-error {
        border-color: #dc3545;
        background-color: #fff8f8;
    }
    
    .form-group input.is-error:focus,
    .form-group select.is-error:focus,
    .form-group textarea.is-error:focus,
    .form-control.is-error:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
    }
    
    .form-group input.is-success,
    .form-group select.is-success,
    .form-group textarea.is-success,
    .form-control.is-success {
        border-color: #28a745;
        background-color: #f8fff8;
    }
    
    .form-group input.is-success:focus,
    .form-group select.is-success:focus,
    .form-group textarea.is-success:focus,
    .form-control.is-success:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
    }
    
    /* 表单验证提示文字 */
    .form-group .error-message,
    .form-group .success-message {
        font-size: 12px;
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .form-group .error-message {
        color: #dc3545;
    }
    
    .form-group .success-message {
        color: #28a745;
    }
    
    /* 搜索输入框特定样式 */
    .search-input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        transition: all 0.3s ease;
        box-sizing: border-box;
        background-color: white;
    }
    
    .search-input:focus {
        outline: none;
        border-color: #00B5A4;
        box-shadow: 0 0 0 2px rgba(0, 181, 164, 0.2);
        background-color: white;
    }
    
    .search-input::placeholder {
        color: #adb5bd;
    }
    
    .form-actions {
        margin-top: 30px;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }
    
    /* 表格头部样式 */
    .table-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 52px;
        margin-bottom: 16px;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 16px;
        background-color: #fafbfc;
    }
    
    .table-header h2 {
        margin: 0;
        color: #333;
        font-size: 18px;
        font-weight: 600;
    }
    
    /* 功能切换卡片样式 */
    .feature-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .feature-card {
        background-color: #fff;
        border-radius: 8px;
        padding: 12px 15px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 80px;
    }
    
    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .feature-card.active {
        background-color: #00B5A4;
        color: white;
    }
    
    .feature-card i {
        font-size: 24px;
        display: inline-block;
    }
    
    .feature-card span {
        font-size: 14px;
        font-weight: bold;
        display: inline-block;
    }
    
    /* 产品图片样式 */
    .product-image {
        width: 30px;
        height: 30px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        transition: transform 0.3s;
    }
    
    /* 产品信息卡片样式 */
    .product-info-card {
        display: flex;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 20px;
    }
    
    /* 产品图片容器样式 */
    .product-image-container {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-right: 20px;
    }
    
    /* 产品详情区域样式 */
    .product-details {
        flex: 1;
        min-width: 0; /* 确保内容不会溢出容器 */
        padding: 10px 0;
        min-height: 80px;
    }
    
    /* 产品名称样式 */
    .product-details h4 {
        word-break: break-word; /* 确保长名称能够换行 */
        margin: 0 0 10px 0;
        color: #333;
        font-size: 18px;
        font-weight: 600;
    }
    
    /* 响应式设计 - 确保在小屏幕上图片和文字布局正确 */
    @media (max-width: 768px) {
        .product-info-card {
            padding: 15px;
            gap: 15px;
        }
        
        .product-image-container {
            width: 80px;
            height: 80px;
            margin-right: 15px;
        }
        
        .product-image-container img,
        .product-image-container > div {
            width: 80px !important;
            height: 80px !important;
        }
        
        .product-details {
            min-height: auto;
            padding: 5px 0;
        }
        
        .product-details h4 {
            font-size: 16px;
            margin-bottom: 8px;
        }
    }
    
    /* 超小屏幕优化 */
    @media (max-width: 480px) {
        .product-info-card {
            padding: 12px;
            gap: 12px;
            align-items: center;
        }
        
        .product-image-container {
            width: 70px;
            height: 70px;
            margin-right: 12px;
        }
        
        .product-image-container img,
        .product-image-container > div {
            width: 70px !important;
            height: 70px !important;
        }
        
        .product-details h4 {
            font-size: 15px;
            margin-bottom: 5px;
        }
    }
    
    .product-image:hover {
        transform: scale(1.05);
    }
    
    .current-image {
        margin-top: 10px;
        max-width: 150px;
        max-height: 150px;
        border-radius: 4px;
    }
    
    .image-info {
        margin-top: 5px;
        font-size: 12px;
        color: #666;
    }
    
    /* 模态框样式 */
    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        overflow: auto;
        padding-top: 60px;
        transition: opacity 0.3s ease;
    }
    
    .modal-content-box {
        background-color: #fff;
        margin: 5% auto;
        padding: 24px;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: 90%;
        max-width: 800px;
        position: relative;
        animation: modalFadeIn 0.3s ease;
    }
    
    /* 模态框动画 */
    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .close-modal {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    
    .close-modal:hover,
    .close-modal:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }
    
    .modal-header {
        padding-bottom: 10px;
        margin-bottom: 20px;
        border-bottom: 2px solid #f2f2f2;
    }
    
    .modal-header h2 {
        margin: 0;
        color: #333;
    }
    
    /* 统一图片预览弹窗样式 */
    .image-preview-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .image-preview-overlay.active {
        display: flex;
        animation: imagePreviewFadeIn 0.25s ease;
    }

    @keyframes imagePreviewFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .image-preview-container {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        cursor: default;
        animation: imagePreviewScaleIn 0.3s ease;
    }

    @keyframes imagePreviewScaleIn {
        from {
            opacity: 0;
            transform: scale(0.92);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .image-preview-img {
        display: block;
        max-width: 90vw;
        max-height: 85vh;
        width: auto;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        object-fit: contain;
    }
    
    /* 响应式设计 - 平板端 */
    @media (max-width: 1024px) {
        .container {
            margin-left: 180px;
            padding: 15px;
        }
        
        .table-container {
            overflow-x: auto;
            padding: 15px;
        }
        
        .form-container {
            padding: 25px;
        }
        
        .product-image {
            max-width: 60px;
            max-height: 60px;
        }
    }
    
    /* 响应式设计 - 移动端 */
    @media (max-width: 768px) {
        .container {
            margin-left: 0;
            padding: 10px;
        }
        
        .header {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }
        
        .header h1 {
            font-size: 1.8em;
        }
        
        .btn {
            padding: 8px 16px;
            font-size: 13px;
        }
        
        .action-buttons {
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
        
        .action-buttons .btn {
            width: 100%;
            text-align: center;
        }
        
        .modal-content-box {
            margin: 10% auto;
            padding: 20px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        /* 调整功能卡片在中等屏幕上的显示 */
        .feature-cards {
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }
        
        .feature-card {
            padding: 12px 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 80px;
        }
        
        .feature-card i {
            font-size: 24px;
        }
        
        .feature-card span {
            font-size: 13px;
        }
        
        .form-container {
            padding: 20px;
        }
        
        h2 {
            font-size: 1.5em;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group input,
        .form-group textarea {
            padding: 8px;
        }
        
        .form-actions {
            flex-direction: column;
        }
        
        .form-actions .btn {
            width: 100%;
        }
        
        .current-image {
            max-width: 120px;
            max-height: 120px;
        }
    }
    
    @media (max-width: 480px) {
        body {
            font-size: 14px;
        }
        
        .container {
            padding: 10px;
        }
        
        .header h1 {
            font-size: 1.5em;
        }
        
        .form-container {
            padding: 15px;
        }
    }
    
    /* 登录页面特有样式 */
    .login-container {
        background-color: #fff;
        padding: 40px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 350px;
        margin: 0 auto;
    }
    
    @media (max-width: 768px) {
        .login-container {
            width: 100%;
            max-width: 400px;
            padding: 30px 20px;
            margin-top: 20px;
            box-sizing: border-box;
        }
    }
    
    @media (max-width: 480px) {
        .login-container {
            padding: 25px 15px;
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
        }
    }
    
    /* 触摸设备优化 */
    @media (hover: none) and (pointer: coarse) {
        .btn {
            touch-action: manipulation;
            transition: background-color 0.2s;
        }
        .btn:active {
            transform: scale(0.98);
        }
        .feature-card {
            touch-action: manipulation;
        }
    }
    
    /* 运动偏好支持 - 尊重用户的减少动画偏好 */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
        
        .btn::after {
            display: none;
        }
        
        .success-message,
        .error-message {
            transition: none;
        }
        
        .nav-item.active::after,
        .dropdown-toggle.active::after {
            animation: none;
        }
    }
    
    /* 加载骨架屏样式 */
    .skeleton {
        background: linear-gradient(
            90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%
        );
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 4px;
    }
    
    @keyframes skeleton-loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    
    .skeleton-text {
        height: 14px;
        margin-bottom: 8px;
    }
    
    .skeleton-text:last-child {
        width: 60%;
    }
    
    .skeleton-title {
        height: 20px;
        width: 40%;
        margin-bottom: 16px;
    }
    
    .skeleton-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .skeleton-button {
        height: 36px;
        width: 100px;
    }
    
    .skeleton-card {
        padding: 16px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .skeleton-table-row td {
        padding: 12px 8px;
    }
    
    /* 禁用骨架屏动画（当用户偏好减少动画时） */
    @media (prefers-reduced-motion: reduce) {
        .skeleton {
            animation: none;
            background: #f0f0f0;
        }
    }

    /* 容器基础样式 - 添加过渡效果 */
    .container {
        transition: margin-left 0.3s ease;
        margin-left: 180px; /* 与侧边栏宽度一致 */
    }
    
    /* 主内容区域样式 - 确保在侧边栏折叠时正确显示 */
    .page-content {
        transition: width 0.3s ease;
        width: 100%;
    }
    
    /* 顶部区域样式已迁移到 top_header_styles.php，由 top_header_styles.php 统一管理 */

    /* 左侧内容样式 */
    .header-title {
        flex: 1;
    }
    
    /* 右侧用户区域、图标、下拉菜单等样式已迁移到 top_header_styles.php */

    /* 回到顶部按钮样式 */
    .scroll-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        background: #ffffff;
        color: #666666;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .scroll-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .scroll-to-top:hover {
        background: #f8f9fa;
        color: #333333;
        border-color: #cccccc;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .scroll-to-top:active {
        transform: translateY(0);
        background: #f0f0f0;
    }
    
    .scroll-to-top i {
        transition: transform 0.2s ease;
    }
    
    /* 响应式设计 - 小屏幕调整 */
    @media (max-width: 768px) {
        .scroll-to-top {
            width: 32px;
            height: 32px;
            bottom: 15px;
            right: 15px;
            font-size: 12px;
        }
    }
    
    /* 向下滚动按钮样式 */
    .scroll-to-next {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        background: #ffffff;
        color: #666666;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        z-index: 9998;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .scroll-to-next.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .scroll-to-next:hover {
        background: #f8f9fa;
        color: #333333;
        border-color: #cccccc;
        transform: translateY(2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .scroll-to-next:active {
        transform: translateY(0);
        background: #f0f0f0;
    }
    
    .scroll-to-next i {
        transition: transform 0.2s ease;
    }
    
    /* 响应式设计 - 小屏幕调整 */
    @media (max-width: 768px) {
        .scroll-to-next {
            width: 32px;
            height: 32px;
            bottom: 15px;
            right: 15px;
            font-size: 12px;
        }
    }
    
    /* 顶部固定卡片的响应式设计已迁移到 top_header_styles.php */

