/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 统一输入框placeholder样式 */
input::placeholder,
textarea::placeholder {
    color: #999;
    font-size: 14px;
}

/* 统一输入框焦点样式 */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 登录页面样式 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.login-container h1 {
    font-size: 24px;
    color: #1890ff;
    margin-bottom: 30px;
}

.login-form {
    width: 400px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

/* 记住密码选项 */
.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

/* 登录行 */
.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 登录按钮 */
.btn-login {
    width: 100px;
    padding: 8px 0;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
}

/* 登录按钮 */
.btn-login {
    width: 100px;
    padding: 8px 0;
    text-align: center;
}

/* 内联按钮 */
.btn-inline {
    display: inline-block;
    width: auto;
    padding: 6px 12px;
}

.btn:hover {
    background-color: #40a9ff;
    text-decoration: none;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #f5222d;
}

/* 主页面样式 */
.main-body {
    background-color: #f0f2f5;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 顶栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background-color: white;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 20px;
}

.change-password-btn {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    margin-right: 20px;
}

.change-password-btn:hover {
    text-decoration: underline;
}

.logout-btn {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    text-decoration: underline;
}

/* 模态窗口 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background-color: white;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
}

.menu {
    padding: 10px 0;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-title {
    display: block;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background-color: #f5f5f5;
    border-left: 4px solid #1890ff;
    margin-bottom: 2px;
    transition: all 0.3s;
}

.menu-title:hover {
    background-color: #e6f7ff;
}

.sub-menu {
    list-style: none;
    margin-left: 4px;
}

.sub-menu-item {
    padding: 10px 35px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    border-left: 2px solid transparent;
}

.sub-menu-item:hover {
    background-color: #f0f2f5;
    color: #1890ff;
    border-left: 2px solid #1890ff;
}

.sub-menu-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
    border-left: 2px solid #1890ff;
    border-right: 3px solid #1890ff;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f0f2f5;
}

.page-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-content h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px 0;
    color: #1890ff;
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 60px 0;
    color: #f5222d;
}

/* 操作栏 */
.action-bar {
    margin-bottom: 20px;
}

/* 用户表格 */
.user-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.user-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.user-table tr:hover {
    background-color: #f9f9f9;
}

/* 表单操作区 */
.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #1890ff;
    color: white;
    text-decoration: none;
}

.btn-primary:hover {
    text-decoration: none;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.btn-secondary:hover {
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
}

.btn-sm:hover {
    text-decoration: none;
}

/* 危险按钮 */
.btn-danger {
    background-color: #f5222d;
    color: white;
    text-decoration: none;
}

.btn-danger:hover {
    background-color: #ff4d4f;
    text-decoration: none;
}

/* 信息按钮 */
.btn-info {
    background-color: #1890ff;
    color: white;
    text-decoration: none;
}

.btn-info:hover {
    background-color: #40a9ff;
    text-decoration: none;
}

/* 成功按钮 */
.btn-success {
    background-color: #52c41a;
    color: white;
    text-decoration: none;
}

.btn-success:hover {
    background-color: #73d13d;
    text-decoration: none;
}

/* 发送按钮 */
.send-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

/* 店铺选择按钮 */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: 10px;
    align-items: center;
}

.form-actions {
    margin-left: auto;
    margin-top: 0;
    padding-left: 20px;
}

.store-button {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
    font-size: 12px;
}

.store-button:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.store-button.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.store-button input[type="radio"] {
    display: none;
}

/* 内容编辑器 */
.content-editor {
    width: 100%;
    margin-bottom: 20px;
}

.editor-container {
    position: relative;
    height: 150px;
    min-height: 150px;
    max-height: 300px;
}

.editor {
    width: 100%;
    height: 100%;
    min-height: 150px;
    max-height: 300px;
    padding: 10px 80px 40px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.editor:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.editor[contenteditable]:empty:before {
    content: attr(placeholder);
    color: #999;
    pointer-events: none;
}

.editor img {
    max-width: 100%;
    max-height: 200px;
    margin: 5px 0;
    border-radius: 4px;
}

/* 订制信息页面布局 */
.custom-page {
    padding: 20px;
}

.custom-content {
    display: flex;
    gap: 20px;
}

.custom-form-container {
    flex: 1;
    min-width: 0;
}

/* 表单上部分 */


/* 移除下部分样式，因为已经将内容移到上部分 */

/* 表单行 */
.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 客户ID输入框 */
.store-id-input {
    width: 250px;
}

.store-id-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

/* 表单操作区 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* 定制信息列表 */
.custom-list-header {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.custom-list-header > span:first-child {
    margin-right: 10px;
}

.custom-list-header > .custom-count {
    margin-right: 5px;
    font-size: 12px;
    color: #999;
}

.filter-info {
    font-size: 12px;
    color: #1890ff;
    margin-right: auto;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
}

.filter-buttons {
    display: flex;
    gap: 5px;
}

.filter-btn {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.filter-btn[data-filter="require"]:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.filter-btn[data-filter="preview"]:hover {
    border-color: #faad14;
    color: #faad14;
}

.filter-btn.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: white;
}

.filter-btn[data-filter="require"].active {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
    color: white;
}

.filter-btn[data-filter="preview"].active {
    background-color: #faad14;
    border-color: #faad14;
    color: white;
}

.filter-count {
    font-size: 10px;
    margin-left: 3px;
    opacity: 0.8;
}

/* 搜索输入框 */
.filter-search {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.filter-search input {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    width: 150px;
    margin-right: 5px;
}

.filter-search input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 日期选择浮窗 */
.date-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.date-picker-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.date-picker-header h4 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.date-picker-body {
    margin-bottom: 20px;
}

.date-picker-body input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.date-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.custom-count {
    color: #1890ff;
    font-weight: normal;
}

/* 加急信息标题 */
.urgent-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ff4d4f;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 4px 4px 0 0;
}

/* 加急信息条目样式 */
.custom-item.urgent {
    background-color: #fff0f0;
}

.custom-item.urgent:hover {
    background-color: #ffccc7;
    color: #ff4d4f;
}

.custom-item.urgent .custom-item-id,
.custom-item.urgent .custom-item-store,
.custom-item.urgent .custom-item-content,
.custom-item.urgent .custom-item-sender,
.custom-item.urgent .custom-item-time {
    color: #ff4d4f;
}

.custom-item.urgent .btn-view-detail {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
    color: white;
}

.custom-item.urgent .btn-view-detail:hover {
    background-color: #ff7875;
    border-color: #ff7875;
}

/* 取消订制信息条目样式 */
.custom-item.cancel {
    background-color: #f5f5f5;
    opacity: 0.7;
}

.custom-item.cancel:hover {
    background-color: #e8e8e8;
    color: #666;
}

.custom-item.cancel .custom-item-id,
.custom-item.cancel .custom-item-store,
.custom-item.cancel .custom-item-content,
.custom-item.cancel .custom-item-sender,
.custom-item.cancel .custom-item-time {
    color: #666;
}

.custom-item.cancel .btn-view-detail {
    background-color: #999;
    border-color: #999;
    color: white;
}

.custom-item.cancel .btn-view-detail:hover {
    background-color: #666;
    border-color: #666;
}

.divider {
    height: 1px;
    background-color: #e8e8e8;
    margin-bottom: 10px;
}

.custom-list {
    max-height: 560px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

/* 加载容器 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载文本 */
.loading-text {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.custom-item {
    height: 40px;
    display: flex;
    align-items: stretch;
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.3s;
}

.custom-item-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.custom-item-content-wrapper > .custom-item-content {
    flex-shrink: 0;
}

.custom-item-content-wrapper > .custom-item-sender {
    margin-left: auto;
}

/* 左边框图标样式 */
.custom-item-border {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border-radius: 4px;
    margin: 8px 0 8px 10px;
}

.border-require {
    background-color: #ff4d4f;
}

.border-preview {
    background-color: #faad14;
}

.border-done {
    background-color: #52c41a;
}

.border-cancel {
    background-color: #999;
}

.custom-item:hover {
    background-color: #f5f5f5;
}

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

/* 查看详情按钮 */
.btn-view-detail {
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: 70px;
    text-align: center;
}

.btn-view-detail:hover {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.custom-item-id {
    font-weight: 600;
    margin-right: 15px;
    color: #1890ff;
    width: 80px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.custom-item-id:hover {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.custom-item-content {
    width: 570px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    display: flex;
    align-items: center;
}

.image-button {
    display: inline-block;
    padding: 2px 6px;
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    margin: 0 2px;
    transition: all 0.3s;
}

.image-button:hover {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.custom-item-store {
    margin-right: 15px;
    color: #1890ff;
    width: 80px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.custom-item-store:hover {
    color: white;
}

/* 店铺颜色 */
.store-default {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.store-default:hover {
    background-color: #1890ff;
    border-color: #1890ff;
}

/* 深橙色 */
.store-orange {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    color: #fa8c16;
}

.store-orange:hover {
    background-color: #fa8c16;
    border-color: #fa8c16;
}

/* 黑色 */
.store-black {
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    color: #333;
}

.store-black:hover {
    background-color: #333;
    border-color: #333;
}

/* 红色 */
.store-red {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #f5222d;
}

.store-red:hover {
    background-color: #f5222d;
    border-color: #f5222d;
}

/* 紫色 */
.store-blue {
    background-color: #f9f0ff;
    border: 1px solid #d3adf7;
    color: #722ed1;
}

.store-blue:hover {
    background-color: #722ed1;
    border-color: #722ed1;
}

/* 绿色 */
.store-green {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.store-green:hover {
    background-color: #52c41a;
    border-color: #52c41a;
}

.custom-item-sender {
    color: #666;
    font-size: 12px;
    margin-right: 10px;
    white-space: nowrap;
}

.custom-item-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 右侧容器 */
.custom-sidebar {
    width: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 850px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 上容器，高度自适应 */
.sidebar-upper {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 15px;
    max-height: 590px;
}

/* 下容器，固定高度170px，靠下对齐 */
.sidebar-lower {
    height: 220px;
    flex-shrink: 0;
    border-top: 1px solid #e8e8e8;
    padding-top: 15px;
}

.update-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-tabs {
    display: flex;
    margin-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

.tab-button {
    flex: 1;
    padding: 6px;
    background-color: white;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #1890ff;
}

.tab-button.active {
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
}

/* 需求标签样式 */
.tab-button[data-type="require"].active {
    color: #ff4d4f;
    border-bottom: 3px solid #ff4d4f;
    background-color: #fff0f0;
}

/* 预览标签样式 */
.tab-button[data-type="preview"].active {
    color: #faad14;
    border-bottom: 3px solid #faad14;
    background-color: #fffbe6;
}

.update-form .content-editor {
    flex: 1;
    margin-bottom: 0;
}

.update-form .editor-container {
    position: relative;
    height: 100%;
    min-height: 80px;
}

.update-form .editor {
    height: 100%;
    min-height: 80px;
    max-height: 120px;
    padding-right: 80px;
    padding-bottom: 30px;
    overflow-y: auto;
}

.update-form .update-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: auto;
    padding: 4px 12px;
    font-size: 12px;
    z-index: 10;
}

/* 详情占位符 */
.detail-placeholder {
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

/* 详情内容 */
.detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.detail-status {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin: 10px 0;
}

.status-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-right: 20px;
    white-space: nowrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-label {
    font-size: 13px;
    font-weight: 500;
}

/* 开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #1890ff;
}

input.urgent-checked + .slider {
    background-color: #ff4d4f;
}

input.done-checked + .slider {
    background-color: #52c41a;
}

input:focus + .slider {
    box-shadow: 0 0 1px #1890ff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

.detail-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-first-user {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* 店铺信息容器 */
.detail-store-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 店铺信息按钮 */
.detail-store {
    white-space: nowrap;
    flex-shrink: 1;
}

/* 修改按钮 */
.btn-edit-store {
    font-size: 9px;
    padding: 0 6px;
    height: 20px;
    width: 40px;
    text-align: center;
}

/* 修改店铺模态框 */
.edit-store-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.edit-store-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.edit-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-store-header h4 {
    margin: 0;
    font-size: 16px;
}

.edit-store-body {
    margin-bottom: 20px;
}

.edit-store-form-group {
    margin-bottom: 15px;
}

.edit-store-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.edit-store-form-group input,
.edit-store-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.edit-store-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.divider {
    height: 1px;
    background-color: #e8e8e8;
    margin: 10px 0;
}

.detail-id {
    font-weight: 600;
    color: #1890ff;
    font-size: 12px;
    padding: 3px 8px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    width: 80px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-id:hover {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.detail-store {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
}

/* 应用店铺颜色类 */
.detail-store.store-orange {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    color: #fa8c16;
}

.detail-store.store-orange:hover {
    background-color: #fa8c16;
    border-color: #fa8c16;
    color: white;
}

.detail-store.store-black {
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    color: #333;
}

.detail-store.store-black:hover {
    background-color: #333;
    border-color: #333;
    color: white;
}

.detail-store.store-red {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #f5222d;
}

.detail-store.store-red:hover {
    background-color: #f5222d;
    border-color: #f5222d;
    color: white;
}

.detail-store.store-blue {
    background-color: #f9f0ff;
    border: 1px solid #d3adf7;
    color: #722ed1;
}

.detail-store.store-blue:hover {
    background-color: #722ed1;
    border-color: #722ed1;
    color: white;
}

.detail-store.store-green {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.detail-store.store-green:hover {
    background-color: #52c41a;
    border-color: #52c41a;
    color: white;
}

.detail-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
}

.detail-item {
    margin-bottom: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.detail-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    font-size: 12px;
    color: #666;
    background-color: white;
    border-bottom: 1px solid #e8e8e8;
}

.type-tag {
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.type-require {
    background-color: #fff0f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.type-preview {
    background-color: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.user-name {
    font-weight: 500;
}

.update-time {
    color: #999;
    margin-left: auto;
}

/* 修改内容按钮 */
.btn-edit-item {
    font-size: 9px;
    padding: 0 6px;
    height: 20px;
    width: 40px;
    text-align: center;
    margin-right: 10px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit-item:hover {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

/* 修改内容模态框 */
.edit-item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.edit-item-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.edit-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-item-header h4 {
    margin: 0;
    font-size: 16px;
}

.edit-item-body {
    margin-bottom: 20px;
}

.edit-item-form-group {
    margin-bottom: 15px;
}

.edit-item-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.edit-item-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.edit-item-form-group .editor {
    min-height: 150px;
}

.edit-item-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.detail-item-content {
    font-size: 14px;
    line-height: 1.5;
    padding: 10px;
    background-color: white;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}

/* 图片容器 */
.image-container {
    position: relative;
    display: inline-block;
    margin: 5px 0;
}

/* 复制图片按钮 */
.copy-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.copy-image-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.detail-footer {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .custom-content {
        flex-direction: column;
    }
    
    .custom-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .store-id-input {
        width: 100%;
    }
    
    .store-buttons {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* WebSocket连接提示 */
.websocket-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    background-color: #f5222d;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    font-size: 14px;
    animation: fadeInOut 2s ease-in-out;
}





@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* 页面加载提示 */
.page-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 1000;
}

.page-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.page-loading .loading-text {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 180px;
    }
    
    .login-form {
        width: 90%;
        max-width: 400px;
    }
    
    .websocket-alert {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    gap: 10px;
    animation: fadeInOut 2s ease-in-out;
}

.success-toast {
    background-color: #52c41a;
}

.error-toast {
    background-color: #ff4d4f;
}

.loading-toast {
    background-color: #1890ff;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 错误重试样式 */
.error-retry {
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.error-retry .error-message {
    color: #cf1322;
    margin-bottom: 12px;
}

.error-retry .retry-button {
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.error-retry .retry-button:hover {
    background-color: #ff7875;
}

/* 页面锁定遮罩样式 */
.page-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.lock-content {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lock-content .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #1890ff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.lock-content .lock-message {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
