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

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

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.template-list-footer {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    text-align: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 2px;
}

.pagination .page-link {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #1890ff;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.pagination .page-link:hover {
    color: #40a9ff;
    border-color: #40a9ff;
    background-color: #e6f7ff;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #1890ff;
    border-color: #1890ff;
}

.pagination .page-item.disabled .page-link {
    color: #bfbfbf;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #d9d9d9;
}

.pagination .page-link-prev,
.pagination .page-link-next {
    font-size: 12px;
}

.pagination .page-link-number {
    min-width: 32px;
    text-align: center;
}

/* 统一输入框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-secondary:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #d9d9d9;
}

.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;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

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

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 10px;
}

.custom-search-input {
    width: 180px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.3s;
}

.custom-search-input:focus {
    border-color: #1890ff;
}

.custom-search-btn {
    padding: 4px 16px;
    font-size: 12px;
    height: auto;
}

.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-divider {
    color: #ddd;
    margin-right: 10px;
    font-size: 14px;
}

.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-container {
    max-height: 560px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    position: relative;
    min-height: 400px;
}

.custom-list-view {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 560px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 加载容器 */
.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;
}

/* 容器，高度自适应 */
.sidebar-container {
    height: 100%;
    overflow-y: auto;
}

/* 保持兼容性 */
.sidebar-upper {
    height: 100%;
    overflow-y: auto;
}

.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: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background-color: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin: 8px 0;
}

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

.status-items-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.status-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
}

/* 开关按钮样式 */
.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;
}

/* 添加设计模态框 */
.add-design-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;
}

/* 插入文字按钮 */
.design-insert-text-btn {
    background-color: #409EFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
    transition: background-color 0.2s;
}

.design-insert-text-btn:hover:not(:disabled) {
    background-color: #66b1ff;
}

.design-insert-text-btn:disabled {
    background-color: #c0c4cc;
    cursor: not-allowed;
}

/* 设计模态框中的插入文字模态窗 */
.design-insert-text-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10010;
}

.add-design-content {
    background-color: white;
    border-radius: 8px;
    width: 1400px;
    height: 900px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.add-design-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.add-design-header h4 {
    margin: 0;
    font-size: 16px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 保存设计按钮 */
.design-save-btn {
    padding: 6px 16px;
    font-size: 14px;
    color: #ffffff;
    background-color: #52c41a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.design-save-btn:hover:not(:disabled) {
    background-color: #389e0d;
}

.design-save-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

/* 手写模式复选框 */
.handwriting-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.handwriting-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.handwriting-checkbox:hover {
    background-color: #fff1b8;
}

/* 设计模板选择器 */
.design-template-select-container {
    position: relative;
    width: 200px;
}

.design-template-select {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

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

.design-template-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10001;
}

.design-template-list {
    padding: 4px 0;
}

.design-template-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

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

.design-set-select-container {
    position: relative;
    width: 200px;
}

.design-set-select {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

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

.design-set-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10001;
}

.design-set-list {
    padding: 4px 0;
}

.design-set-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

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

.custom-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: #1890ff;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-id-badge:hover {
    background-color: #40a9ff;
}

.add-design-body {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.design-body-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.design-body-right {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 输入面板容器 */
.design-input-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    overflow: hidden;
}

/* 输入面板头部 */
.input-panel-header {
    flex-shrink: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.input-panel-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

/* 输入面板内容区 */
.text-inputs-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 500px;
}

/* 输入面板底部 */
.input-panel-footer {
    flex-shrink: 0;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e8e8e8;
    background-color: #ffffff;
}

/* 表单组 */
.design-form-group {
    margin-bottom: 15px;
}

.design-form-group:last-child {
    margin-bottom: 0;
}

/* 表单标签 */
.design-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666666;
}

/* 文本域 */
.design-textarea {
    width: 100%;
    height: 60px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

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

.design-textarea::placeholder {
    color: #999999;
}

/* 标签行 */
.design-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* 拼音多选下拉菜单容器 */
.design-pinyin-dropdown {
    position: static;
}

/* 下拉菜单切换按钮 */
.design-pinyin-dropdown-toggle {
    padding: 4px 10px;
    font-size: 12px;
    color: #666666;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.design-pinyin-dropdown-toggle:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.design-pinyin-dropdown-toggle .caret {
    font-size: 10px;
    color: #999999;
}

/* 下拉菜单 */
.design-pinyin-dropdown-menu {
    position: fixed;
    margin-top: 4px;
    padding: 8px;
    min-width: 120px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

/* 下拉菜单头部（全选/全不选按钮） */
.design-pinyin-dropdown-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.design-pinyin-select-all,
.design-pinyin-select-none {
    padding: 2px 8px;
    font-size: 11px;
    color: #666666;
    background-color: #f5f5f5;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.design-pinyin-select-all:hover,
.design-pinyin-select-none:hover {
    background-color: #1890ff;
    color: #ffffff;
}

/* 下拉菜单列表 */
.design-pinyin-dropdown-list {
    max-height: 200px;
}

/* 复选框项 */
.design-pinyin-checkbox-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    font-size: 12px;
    color: #333333;
    cursor: pointer;
}

.design-pinyin-checkbox-item:hover {
    background-color: #f5f5f5;
}

.design-pinyin-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.design-pinyin-checkbox-item span {
    user-select: none;
}

/* 输入面板底部 - 补充样式 */
.input-panel-footer {
    display: flex;
    justify-content: flex-end;
}

.add-design-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.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);
}

/* 全局遮罩层样式 */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 10002;
    display: none;
    justify-content: center;
    align-items: center;
}

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

.global-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1890ff;
    border-radius: 50%;
    animation: global-spin 1s linear infinite;
}

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

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

.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;
}

/* 页面容器内的加载提示 */
.page-loading-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -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: flex;
    align-items: center;
    gap: 10px;
    background-color: #1890ff;
}

/* 日期分隔线 */
.date-divider {
    position: relative;
    height: 20px;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e8e8e8;
    z-index: 1;
}

.date-divider .date-text {
    position: relative;
    z-index: 2;
    background-color: #f5f5f5;
    padding: 0 15px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 auto;
}

/* 为日期分组的第一个信息项添加上边框 */
.date-divider + .custom-item {
    border-top: 1px solid #e8e8e8;
}

.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;
}

/* 显示更多按钮 */
.load-more-container {
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.load-more-btn {
    width: 100%;
    height: 20px;
    padding: 0;
    background-color: #f8f9fa;
    color: #007bff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #e2e6ea;
    border-color: #adb5bd;
}

.load-more-btn:active {
    background-color: #dae0e5;
}

/* 上传字体区域 */
.upload-section {
    margin-bottom: 20px;
}

.upload-button-container {
    position: relative;
}

.upload-btn {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

.upload-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 5px;
}

.upload-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.upload-option-btn:last-child {
    border-bottom: none;
}

.upload-option-btn:hover {
    background-color: #f5f5f5;
    color: #1890ff;
}

/* 字体管理页面 - 完全独立的布局样式 */
.font-page-container {
    width: 100%;
}

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

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

.font-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;
}

.font-preview-wrapper {
    height: 100%;
    overflow-y: auto;
}

.font-list-container {
    position: relative;
}

.font-list-view {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.font-list-header {
    margin-bottom: 0;
}

.font-header-item {
    background-color: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.font-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-header-name {
    width: 250px;
    font-size: 14px;
}

.font-header-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.font-header-details span {
    min-width: 120px;
}

.font-header-actions {
    width: 200px;
    text-align: right;
    font-size: 14px;
}

.font-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.font-list-footer {
    margin-top: 15px;
    text-align: center;
}

/* 调整字体列表项的布局，使其与表头对齐 */
.font-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    width: 250px;
}

.font-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: #666;
}

.font-details span {
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.font-actions {
    width: 200px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

/* 字体列表样式 - 字体管理页面专用 */
.font-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: none;
}

.font-item:first-child {
    border-radius: 4px 4px 0 0;
}

.font-item:last-child {
    border-radius: 0 0 4px 4px;
    border-bottom: 1px solid #e0e0e0;
}

.font-item:hover {
    border-color: #1890ff;
    box-shadow: 0 1px 4px rgba(24, 144, 255, 0.15);
    z-index: 1;
}

.font-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    max-width: 250px;
}

.font-details {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    display: flex;
    gap: 15px;
}

.font-actions {
    display: flex;
    gap: 8px;
}

.font-actions .btn {
    font-size: 12px;
    padding: 4px 12px;
    width: auto;
    white-space: nowrap;
}

/* 字体管理页面模态窗样式 */
.font-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.font-modal-content {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.upload-progress-content {
    text-align: center;
    padding: 40px 20px;
}

.font-modal-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 10px;
}

.font-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.font-modal-body {
    margin-bottom: 15px;
}

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

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

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

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

.font-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 字体预览样式 */
.font-preview {
    width: 100%;
    height: 100%;
}

.font-preview h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: #333;
}

.font-preview .font-name {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
}

.font-samples {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sample-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sample-label {
    font-size: 12px;
    color: #999;
}

.sample-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* 元素管理页面样式 */
.element-page-container {
    padding: 20px;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.element-page-content {
    display: flex;
    gap: 20px;
    height: 100%;
}

/* 左栏 */
.element-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 600px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 右栏 */
.element-right-panel {
    width: 400px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 头部行 */
.element-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.element-category-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.element-category-select-container label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.category-select-wrapper {
    position: relative;
    width: 250px;
    flex-shrink: 0;
    overflow: visible;
}

.manage-category-btn-wrapper {
    display: flex;
    align-items: center;
}

.category-select-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

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

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.category-options {
    padding: 4px 0;
}

.category-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.category-option:hover {
    background-color: #e6f7ff;
}

.category-option.selected {
    background-color: #1890ff;
    color: white;
}

.category-option-all {
    border-bottom: 1px solid #e8e8e8;
}

.manage-category-btn {
    padding: 6px 16px;
    font-size: 13px;
}

/* 分隔线 */
.element-divider {
    height: 1px;
    background-color: #e8e8e8;
    margin: 15px 0;
}

/* 元素列表容器 */
.element-list-container {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

/* 元素网格 */
.element-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px;
}

/* 元素项 */
.element-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc((100% - 70px) / 8);
    cursor: pointer;
    min-width: 80px;
}

/* 元素图片容器 */
.element-image-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.element-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 元素操作按钮 */
.element-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s;
}

.element-image-wrapper:hover .element-actions {
    opacity: 1;
}

.element-select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2px;
    background-color: transparent;
}

.element-select-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1890ff;
}

.insert-element-modal-content {
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    z-index: 1001;
}

.insert-element-modal-body {
    padding: 15px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    box-sizing: border-box;
}

.insert-element-list-container {
    margin-top: 15px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background-color: #fff;
}

.template-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
    position: relative;
    z-index: 100;
}

.element-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: background-color 0.2s;
}

.element-edit-btn {
    background-color: #1890ff;
}

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

.element-delete-btn {
    background-color: #f5222d;
}

.element-delete-btn:hover {
    background-color: #ff4d4f;
}

/* 元素名称 */
.element-name {
    margin-top: 6px;
    font-size: 12px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

/* 上传区域 */
.element-upload-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.upload-element-btn,
.submit-upload-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* 上传列表容器 */
.upload-list-container {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

/* 上传列表 */
.upload-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-list-placeholder {
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

/* 上传列表项 */
.upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.upload-item-image {
    width: 25px;
    height: 25px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #e8e8e8;
    flex-shrink: 0;
}

.upload-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-item-name-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    font-size: 12px;
}

.upload-item-category-select {
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    font-size: 12px;
}

.upload-item-delete-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 3px;
    background-color: #f5222d;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.upload-item-delete-btn:hover {
    background-color: #ff4d4f;
}

/* 元素管理模态框 */
.element-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.element-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.element-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.element-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.template-modal-header .close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.template-modal-header .close-modal-btn:hover {
    color: #333;
}

.element-modal-body {
    padding: 20px;
}

.element-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 分类管理模态框 */
.category-add-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.category-add-form {
    display: flex;
    gap: 10px;
}

.category-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.category-add-form .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* 管理分类列表 */
.manage-category-list {
    max-height: 300px;
    overflow-y: auto;
}

.manage-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

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

.manage-category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manage-category-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.manage-category-meta {
    font-size: 12px;
    color: #999;
}

.manage-category-actions {
    display: flex;
    gap: 5px;
}

.manage-category-actions .btn {
    padding: 4px 10px;
    font-size: 12px;
    width: auto;
}

/* 编辑元素表单 */
.edit-element-form-group {
    margin-bottom: 15px;
}

.edit-element-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

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

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

/* 上传进度内容 */
.upload-progress-content {
    text-align: center;
    padding: 40px 20px;
}

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

/* 尺寸管理页面样式 - 参考字体管理页面 */
.size-page-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.size-page-content {
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 100px);
}

.size-form-container {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.size-sidebar {
    width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.size-preview-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.size-preview-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
}

.size-preview-box {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-list-container {
    position: relative;
}

.size-list-header {
    margin-bottom: 0;
}

.size-header-item {
    background-color: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.size-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-header-name {
    width: 150px;
    font-size: 14px;
}

.size-header-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.size-header-details span {
    min-width: 80px;
}

.size-header-actions {
    width: 200px;
    text-align: right;
    font-size: 14px;
}

.size-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.size-list-footer {
    margin-top: 15px;
    text-align: center;
}

.size-list-view {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.size-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 6px 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: none;
}

.size-item:first-child {
    border-radius: 4px 4px 0 0;
    border-top: 1px solid #e0e0e0;
}

.size-item:last-child {
    border-radius: 0 0 4px 4px;
    border-bottom: 1px solid #e0e0e0;
}

.size-item:hover {
    border-color: #1890ff;
    box-shadow: 0 1px 4px rgba(24, 144, 255, 0.15);
    z-index: 1;
}

.size-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    width: 150px;
}

.size-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.size-details span {
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.size-actions {
    width: 200px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.size-actions .btn {
    font-size: 12px;
    padding: 4px 12px;
    width: auto;
    white-space: nowrap;
}

/* 尺寸管理页面模态窗样式 */
.size-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.size-modal-content {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.size-modal-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 10px;
}

.size-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.size-modal-body {
    padding: 10px 0;
}

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

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

.size-form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.size-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 纸质管理页面样式 - 参考尺寸管理页面 */
.paper-page-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.paper-page-content {
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 100px);
}

.paper-form-container {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.paper-list-container {
    position: relative;
}

.paper-list-header {
    margin-bottom: 0;
}

.paper-header-item {
    background-color: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.paper-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paper-header-name {
    width: 150px;
    font-size: 14px;
}

.paper-header-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.paper-header-details span {
    min-width: 80px;
}

.paper-header-actions {
    width: 200px;
    text-align: right;
    font-size: 14px;
}

.paper-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.paper-list-footer {
    margin-top: 15px;
    text-align: center;
}

.paper-list-view {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.paper-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 6px 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: none;
}

.paper-item:first-child {
    border-radius: 4px 4px 0 0;
    border-top: 1px solid #e0e0e0;
}

.paper-item:last-child {
    border-radius: 0 0 4px 4px;
    border-bottom: 1px solid #e0e0e0;
}

.paper-item:hover {
    border-color: #1890ff;
    box-shadow: 0 1px 4px rgba(24, 144, 255, 0.15);
    z-index: 1;
}

.paper-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paper-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    width: 150px;
}

.paper-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.paper-details span {
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-actions {
    width: 200px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.paper-actions .btn {
    font-size: 12px;
    padding: 4px 12px;
    width: auto;
    white-space: nowrap;
}

/* 纸质管理页面模态窗样式 */
.paper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.paper-modal-content {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.paper-modal-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 10px;
}

.paper-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.paper-modal-body {
    padding: 10px 0;
}

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

.paper-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.paper-form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.paper-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 用户管理页面样式 - 参考尺寸管理页面 */
.user-page-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.user-page-content {
    min-height: calc(100vh - 100px);
}

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

.user-list-container {
    position: relative;
}

.user-list-header {
    margin-bottom: 0;
}

.user-header-item {
    background-color: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.user-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-header-name {
    width: 100px;
    font-size: 14px;
}

.user-header-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.user-header-details span {
    min-width: 80px;
}

.user-header-actions {
    width: 150px;
    text-align: right;
    font-size: 14px;
}

.user-list-footer {
    margin-top: 15px;
    text-align: center;
}

.user-list-view {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 6px 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.user-item:first-child {
    border-radius: 4px 4px 0 0;
    border-top: 1px solid #e0e0e0;
}

.user-item:last-child {
    border-radius: 0 0 4px 4px;
    border-bottom: 1px solid #e0e0e0;
}

.user-item:hover {
    border-color: #1890ff;
    box-shadow: 0 1px 4px rgba(24, 144, 255, 0.15);
    z-index: 1;
}

.user-list-view .user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-list-view .user-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    min-width: 100px;
}

.user-list-view .user-details {
    display: flex;
    gap: 30px;
    font-size: 13px;
    color: #666;
}

.user-list-view .user-details span {
    min-width: 80px;
}

.user-list-view .user-actions {
    width: 150px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.user-actions .btn {
    font-size: 12px;
    padding: 4px 12px;
    width: auto;
    white-space: nowrap;
}

.user-placeholder {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 14px;
}

/* 用户管理页面模态窗样式 */
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.user-modal-content {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.user-modal-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 10px;
}

.user-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.user-modal-body {
    padding: 10px 0;
}

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

.user-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.user-form-group input,
.user-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.user-form-group input:focus,
.user-form-group select:focus {
    outline: none;
    border-color: #1890ff;
}

.user-form-group input:disabled {
    background-color: #f5f5f5;
    color: #999;
}

.user-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.user-permission-modal-content {
    max-width: 500px;
}

.permission-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.permission-warning p {
    margin: 0;
    color: #d48806;
    font-size: 14px;
}

.permission-section {
    margin-bottom: 20px;
}

.permission-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 5px;
}

.permission-item {
    padding: 8px 0;
}

.permission-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.permission-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* 订制信息页右栏样式 */
.custom-page:not(.font-page) .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;
}

.custom-page:not(.font-page) .sidebar-upper {
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.custom-page:not(.font-page) .detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-page:not(.font-page) .detail-body {
    flex: 1;
    overflow-y: auto;
    max-height: 490px; /* 限制最大高度，超过显示滚动条 */
    margin-top: 10px;
}

.custom-page:not(.font-page) .detail-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.custom-page:not(.font-page) .sidebar-lower {
    height: 170px;
    flex-shrink: 0;
    margin-top: 10px;
}

.custom-page:not(.font-page) .sidebar-lower .update-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 模板管理页面样式 */
.template-page-container {
    padding: 20px;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.template-page-content {
    display: flex;
    gap: 20px;
    height: 100%;
}

/* 左栏 - 模板设计器 */
.template-designer-container {
    flex: 1;
    min-width: 500px;
    height: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

/* 第一行工具栏 */
.template-toolbar-first {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow: visible;
}

.template-toolbar-first .btn {
    width: auto;
    flex-shrink: 0;
}

#template-save-btn {
    margin-left: auto;
}

.template-toolbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-toolbar-item label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.template-name-input {
    width: 150px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}

/* 设计模板选择器 */
.design-template-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background-color: white;
}

.template-select-container {
    position: relative;
}

.design-template-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 2000;
}

.design-template-list {
    padding: 5px 0;
}

.design-template-option {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.design-template-option:hover {
    background-color: #e6f7ff;
}

.design-template-option.active {
    background-color: #1890ff;
    color: white;
}

.design-template-option .template-name {
    flex: 1;
}

.design-template-option .template-size {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 文字输入区域 */
.design-text-inputs {
    margin-top: 15px;
}

.design-text-inputs .template-form-group {
    margin-bottom: 12px;
}

/* 尺寸选择器 */
.template-size-select-container {
    position: relative;
    display: inline-block;
}

.template-size-select {
    width: 220px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background-color: white;
}

.template-size-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
    min-width: 100%;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.template-size-list {
    padding: 5px 0;
}

.template-size-option {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.template-size-option:hover {
    background-color: #e6f7ff;
}

.template-size-option.active {
    background-color: #1890ff;
    color: white;
}

/* 纸质选择器 */
.template-paper-select-container {
    position: relative;
    display: inline-block;
}

.template-paper-select {
    width: 160px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background-color: white;
}

.template-paper-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
    min-width: 100%;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.template-paper-list {
    padding: 5px 0;
}

.template-paper-option {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.template-paper-option:hover {
    background-color: #e6f7ff;
}

.template-paper-option.active {
    background-color: #1890ff;
    color: white;
}

/* 分隔线 */
.template-divider {
    height: 1px;
    background-color: #e8e8e8;
    margin: 5px 0;
}

/* 第二行编辑工具 */
.template-toolbar-second {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-card-settings {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.card-width-label {
    margin-right: 4px;
}

.card-width-input {
    width: 60px;
    padding: 2px 6px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.card-width-unit {
    font-size: 12px;
    color: #999;
}

.card-show-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.card-show-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.template-edit-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.template-tool-group {
    display: flex;
    gap: 4px;
}

.btn-default {
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    color: #666;
}

.btn-default:hover {
    background-color: #e8e8e8;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 12px;
}

/* 画布容器 */
.template-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-radius: 4px;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

.template-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.template-canvas {
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
    max-height: 100%;
}

.template-stage {
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-canvas-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 14px;
}

/* 右栏 */
.template-sidebar {
    width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.template-search-header {
    padding: 12px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    gap: 8px;
    align-items: center;
}

.template-search-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.template-search-input:focus {
    border-color: #1890ff;
}

.template-search-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.template-reset-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.template-list-header {
    margin-bottom: 0;
    padding: 0;
}

.template-header-item {
    background-color: #f5f6f7;
    border: 1px solid #e8e8e8;
    border-radius: 4px 4px 0 0;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 12px;
    color: #666;
}

.template-header-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-header-size {
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    padding-right: 10px;
}

.template-header-actions {
    width: 80px;
    text-align: right;
}

.template-list-container {
    position: relative;
    min-height: 200px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    flex: 1;
    overflow-y: auto;
}

.template-list-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.template-list-item:hover {
    background-color: #fafafa;
}

.template-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.template-item-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-item-size {
    width: 100px;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    padding-right: 8px;
}

.template-item-actions {
    width: 70px;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.template-edit-btn,
.template-delete-btn {
    padding: 2px 5px;
    font-size: 11px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.template-edit-btn {
    background-color: #6ab7ff;
    color: white;
}

.template-edit-btn:hover {
    background-color: #409eff;
}

.template-delete-btn {
    background-color: #ff7875;
    color: white;
}

.template-delete-btn:hover {
    background-color: #ff5956;
}

.template-list-placeholder {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.template-list-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 6px 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: none;
    cursor: pointer;
}

.template-list-item:first-child {
    border-top: none;
}

.template-list-item:last-child {
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 0 4px 4px;
}

.template-list-item:hover {
    border-color: #1890ff;
    box-shadow: 0 1px 4px rgba(24, 144, 255, 0.15);
    z-index: 1;
}

.template-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-item-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    width: 150px;
}

.template-item-size {
    flex: 1;
    text-align: right;
    font-size: 14px;
    color: #666;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-list-pagination {
    padding: 10px;
    border-top: 1px solid #e8e8e8;
}

.template-list-pagination .pagination {
    justify-content: center;
}

.template-list-footer {
    padding: 10px;
    border-top: 1px solid #e8e8e8;
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}

.template-list-footer .pagination-container {
    display: flex;
    justify-content: center;
}

.template-list-footer .pagination {
    justify-content: center;
    margin: 0;
}

.template-thumbnail-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    max-height: 80%;
}

.template-thumbnail-preview img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
}

/* 插入文字模态窗样式 */
.template-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;
}

.template-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 100;
}

.template-modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.template-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.template-modal-close:hover {
    color: #333;
}

.template-modal-body {
    padding: 20px;
}

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

.template-form-group:last-child {
    margin-bottom: 0;
}

.template-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.template-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

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

.template-font-select-container {
    position: relative;
}

.template-font-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.template-font-select-small {
    padding: 4px 8px !important;
    font-size: 13px !important;
    width: 150px !important;
}

.template-color-select-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.template-color-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
}

.template-desc-input {
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

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

.template-opacity-input {
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

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

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

.template-color-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.template-color-block {
    width: 24px;
    height: 24px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.template-color-block:hover {
    border-color: #1890ff;
}

.template-orientation-btn {
    width: 28px;
    height: 28px;
    padding: 4px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.template-orientation-btn:hover:not(:disabled) {
    border-color: #1890ff;
    background-color: #e6f7ff;
}

.template-orientation-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.orientation-icon {
    font-size: 14px;
}

.template-break-btn {
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #333;
}

.template-break-btn:hover:not(:disabled) {
    border-color: #1890ff;
    background-color: #e6f7ff;
    color: #1890ff;
}

.template-break-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.pinyin-align-buttons {
    display: inline-flex;
    gap: 2px;
    margin-left: 8px;
}

.pinyin-align-btn {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    color: #666;
    min-width: 28px;
    text-align: center;
}

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

.pinyin-align-btn.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.shortcut-help-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.shortcut-help-btn:hover {
    border-color: #1890ff;
    background-color: #e6f7ff;
    color: #1890ff;
}

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

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.shortcut-keys {
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #333;
    border: 1px solid #d9d9d9;
}

.shortcut-desc {
    font-size: 14px;
    color: #666;
}

.template-color-picker {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

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

.template-font-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.template-font-list {
    padding: 4px 0;
}

.template-font-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.template-font-option:hover {
    background-color: #e6f7ff;
}

.template-font-option.selected {
    background-color: #1890ff;
    color: white;
}

.template-radio-group {
    display: flex;
    gap: 20px;
}

.template-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.template-radio-label input[type="radio"] {
    margin-right: 6px;
}

.template-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
}

/* �鿴���ģ̬����ʽ */
.view-design-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.view-design-content {
    width: 900px;
    height: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.view-design-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fafafa;
}

.view-design-header .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-design-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.view-design-header .btn-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.view-design-header .btn-close:hover {
    background-color: #f0f0f0;
    color: #666;
}

.design-drafts-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.design-drafts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.design-draft-item {
    width: calc(33.333% - 10px);
    max-width: 280px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.design-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.design-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.design-thumbnail:hover {
    transform: scale(1.02);
}

.design-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 8px;
    cursor: pointer;
}

.delete-design-btn {
    padding: 4px 10px;
    background-color: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    opacity: 1;
}

.delete-design-btn:hover {
    background-color: #ff7875;
}

/* 定稿开关样式 */
.finalized-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    opacity: 1;
    padding: 2px 6px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.finalized-switch input {
    display: none;
}

.finalized-switch .slider {
    position: relative;
    width: 32px;
    height: 18px;
    background-color: #ccc;
    border-radius: 9px;
    transition: background-color 0.2s;
    border: 1px solid #999;
}

.finalized-switch input:checked + .slider {
    background-color: #52c41a;
    border-color: #389e0d;
}

.finalized-switch .slider::before {
    position: absolute;
    content: '';
    width: 14px;
    height: 14px;
    left: 2px;
    bottom: 1px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.finalized-switch input:checked + .slider::before {
    transform: translateX(14px);
}

.finalized-label {
    font-size: 11px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.design-info {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.design-size {
    color: #333;
    font-weight: 500;
}

.design-paper {
    color: #666;
}

.design-time {
    color: #999;
}

.empty-text,
.loading-text,
.error-text {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ���ͼ��ͼģ̬�� */
.design-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.design-image-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.design-image-content .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.design-image-content .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.image-zoom-container {
    max-width: 1200px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoomable-image {
    max-width: 1200px;
    max-height: 900px;
    object-fit: contain;
    transition: transform 0.1s;
    transform-origin: center center;
}

.zoom-hint {
    position: absolute;
    bottom: -30px;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* 打印稿件页面样式 */
.print-page {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.print-content {
    flex: 1;
    padding: 15px;
    overflow: hidden;
}

.print-layout {
    display: flex;
    height: 100%;
    gap: 15px;
}

.print-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.print-tabs {
    display: flex;
    gap: 4px;
}

.print-tab-btn {
    padding: 6px 16px;
    border: none;
    background-color: transparent;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.print-tab-btn:hover {
    background-color: #e8e8e8;
}

.print-tab-btn.active[data-tab="pending"] {
    background-color: #1890ff;
    color: white;
}

.print-tab-btn.active[data-tab="printed"] {
    background-color: #52c41a;
    color: white;
}

.btn-generate-pdf {
    padding: 6px 16px;
    font-size: 14px;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    background-color: #52c41a !important;
    border-color: #52c41a !important;
}

.btn-generate-pdf:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.print-list-container {
    flex: 1;
    overflow-y: auto;
}

.print-list {
    padding: 4px;
}

.print-list-header {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #fafafa;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    color: #666;
    gap: 8px;
}

.print-header-finalized {
    min-width: 60px;
    font-size: 13px;
}

.print-header-custom-id {
    min-width: 80px;
    font-size: 13px;
}

.print-header-user {
    flex: 1;
    font-size: 13px;
}

.print-header-count {
    min-width: 50px;
    font-size: 13px;
    text-align: center;
}

.print-header-action {
    min-width: 70px;
    font-size: 13px;
    text-align: center;
}

.print-list-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
    transition: background-color 0.2s;
}

.print-list-item:hover {
    background-color: #fafafa;
}

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

.print-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.print-finalized {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.print-finalized.yes {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.print-finalized.no {
    background-color: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.print-custom-id {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.print-user {
    flex: 1;
    color: #666;
    font-size: 13px;
}

.print-draft-count {
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.print-view-btn {
    padding: 4px 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.print-list-load-more {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.btn-load-more {
    padding: 6px 24px;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background-color: #e8e8e8;
    border-color: #bfbfbf;
}

.print-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.preview-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.preview-header .btn-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.preview-header .btn-close:hover {
    background-color: #f0f0f0;
    color: #666;
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.empty-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 14px;
}

/* 预览区域设计稿网格 */
.preview-design-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-design-item {
    width: calc(50% - 7.5px);
    display: flex;
    flex-direction: column;
}

.preview-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.preview-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.preview-thumbnail:hover {
    transform: scale(1.02);
}

.preview-info {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.preview-size {
    color: #333;
    font-weight: 500;
}

.preview-paper {
    color: #666;
}

.preview-time {
    color: #999;
}

/* 套图管理页面样式 */
.set-page-container {
    padding: 20px;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.set-page-content {
    display: flex;
    gap: 20px;
    height: 100%;
}

/* 左栏 - 套图设计器 */
.set-designer-container {
    flex: 1;
    min-width: 500px;
    height: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 工具栏 */
.set-toolbar {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow: visible;
}

.set-toolbar .btn {
    width: auto;
    flex-shrink: 0;
}

#set-save-btn {
    margin-left: auto;
}

.set-toolbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.set-toolbar-item label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.set-name-input {
    width: 150px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}

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

/* 分隔线 */
.set-divider {
    height: 1px;
    background-color: #e8e8e8;
}

/* 画布容器 */
.set-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-radius: 4px;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

.set-canvas-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.set-stage {
    display: block;
    max-width: 100%;
    max-height: 100%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.set-canvas-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #999;
}

.set-canvas-placeholder .placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
}

.set-canvas-placeholder .placeholder-text {
    font-size: 14px;
}

/* 右栏 - 套图列表 */
.set-sidebar {
    width: 500px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 搜索头部 */
.set-search-header {
    padding: 15px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    gap: 10px;
}

.set-search-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}

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

.set-search-btn,
.set-reset-btn {
    width: auto;
    padding: 6px 16px;
}

/* 列表容器 */
.set-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.set-list-placeholder {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}

/* 套图网格 */
.set-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* 套图卡片 */
.set-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 套图图像区域 */
.set-card-image-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    background-color: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

.set-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 透明覆盖层 */
.set-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.2s;
}

.set-card-image-wrap:hover .set-card-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 操作按钮 */
.set-card-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.set-card-image-wrap:hover .set-card-btn {
    opacity: 1;
}

.set-card-btn:hover {
    background-color: white;
}

.set-card-edit-btn {
    bottom: 8px;
    left: 8px;
}

.set-card-delete-btn {
    bottom: 8px;
    right: 8px;
    color: #ff4d4f;
}

.set-card-delete-btn:hover {
    background-color: #fff1f0;
}

/* 套图名称 */
.set-card-name {
    margin-top: 8px;
    font-size: 13px;
    color: #333;
    text-align: center;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.set-item-size {
    width: 100px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.set-item-actions {
    width: 100px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.set-item-actions .btn {
    width: auto;
    padding: 4px 10px;
    font-size: 12px;
}

/* 列表底部 */
.set-list-footer {
    padding: 15px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

/* 修改设计模态窗样式 - 复用添加设计模态窗样式但使用edit-design前缀 */
.edit-design-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: 10001;
}

.edit-design-content {
    background-color: white;
    border-radius: 8px;
    width: 1400px;
    height: 900px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.edit-design-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.edit-design-body {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.edit-design-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

/* 修改设计模态窗中的画布容器 */
.edit-design-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-radius: 4px;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

.edit-design-stage-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.edit-design-stage {
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-design-canvas-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 修改设计器中的层显示复选框 */
.edit-design-layer-checkboxes {
    display: flex;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 10px;
}

.edit-design-layer-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.edit-design-layer-checkbox-label input {
    cursor: pointer;
}

/* 修改设计器工具栏 */
.edit-design-toolbar {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 10px;
}

.edit-design-toolbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-design-toolbar-item label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* 尺寸选择器 */
.edit-design-size-select-container {
    position: relative;
    display: inline-block;
}

.edit-design-size-select {
    width: 200px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background-color: white;
}

.edit-design-size-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
    min-width: 100%;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10002;
}

.edit-design-size-list {
    padding: 5px 0;
}

.edit-design-size-option {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.edit-design-size-option:hover {
    background-color: #e6f7ff;
}

.edit-design-size-option.active {
    background-color: #1890ff;
    color: white;
}

/* 纸质选择器 */
.edit-design-paper-select-container {
    position: relative;
    display: inline-block;
}

.edit-design-paper-select {
    width: 160px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background-color: white;
}

.edit-design-paper-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
    min-width: 100%;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10002;
}

.edit-design-paper-list {
    padding: 5px 0;
}

.edit-design-paper-option {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.edit-design-paper-option:hover {
    background-color: #e6f7ff;
}

.edit-design-paper-option.active {
    background-color: #1890ff;
    color: white;
}

/* 字体选择器 */
.edit-design-font-select-container {
    position: relative;
    display: inline-block;
}

.edit-design-font-select {
    width: 150px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background-color: white;
}

.edit-design-font-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: auto;
    min-width: 100%;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10002;
}

.edit-design-font-list {
    padding: 5px 0;
}

.edit-design-font-option {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.edit-design-font-option:hover {
    background-color: #e6f7ff;
}

.edit-design-font-option.selected {
    background-color: #1890ff;
    color: white;
}

/* 颜色选择器 */
.edit-design-color-select-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-design-text-color-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
}

.edit-design-text-color-block {
    width: 24px;
    height: 24px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.edit-design-text-color-block:hover {
    border-color: #1890ff;
}

.edit-design-text-color-picker {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* 编辑工具按钮 */
.edit-design-text-orientation-btn {
    width: 28px;
    height: 28px;
    padding: 4px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.edit-design-text-orientation-btn:hover:not(:disabled) {
    border-color: #1890ff;
    background-color: #e6f7ff;
}

.edit-design-text-orientation-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.edit-design-text-break-btn {
    padding: 4px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #333;
}

.edit-design-text-break-btn:hover:not(:disabled) {
    border-color: #1890ff;
    background-color: #e6f7ff;
    color: #1890ff;
}

.edit-design-text-break-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 拼音对齐按钮 */
.edit-design-pinyin-align-buttons {
    display: inline-flex;
    gap: 2px;
    margin-left: 8px;
}

#edit-design-pinyin-align-left,
#edit-design-pinyin-align-center,
#edit-design-pinyin-align-right {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    color: #666;
    min-width: 28px;
    text-align: center;
}

#edit-design-pinyin-align-left:hover,
#edit-design-pinyin-align-center:hover,
#edit-design-pinyin-align-right:hover {
    border-color: #1890ff;
    color: #1890ff;
}

#edit-design-pinyin-align-left.active,
#edit-design-pinyin-align-center.active,
#edit-design-pinyin-align-right.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

/* 修改设计模态窗的右栏 */
.edit-design-body-right {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 修改设计模态窗的输入面板 */
#edit-design-input-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    overflow: hidden;
}

#edit-design-text-inputs-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 500px;
}

/* 修改设计模态窗的文字输入组 */
#edit-design-text-inputs-container .design-text-group {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

#edit-design-text-inputs-container .design-text-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#edit-design-text-inputs-container .design-text-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#edit-design-text-inputs-container .design-text-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

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

#edit-design-text-inputs-container .design-text-preview {
    margin-top: 8px;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
    min-height: 40px;
}

#edit-design-text-inputs-container .design-text-preview-content {
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
}

/* 修改设计模态窗的更新按钮 */
#edit-design-update-text-btn {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#edit-design-update-text-btn:hover {
    background-color: #40a9ff;
}

/* 修改设计模态窗的插入文字按钮 */
#edit-design-insert-text-btn {
    background-color: #409EFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
    transition: background-color 0.2s;
}

#edit-design-insert-text-btn:hover:not(:disabled) {
    background-color: #66b1ff;
}

#edit-design-insert-text-btn:disabled {
    background-color: #c0c4cc;
    cursor: not-allowed;
}

/* 修改设计模态窗的插入元素按钮 */
#edit-design-insert-element-btn {
    background-color: #909399;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
    transition: background-color 0.2s;
}

#edit-design-insert-element-btn:hover:not(:disabled) {
    background-color: #a6a9ad;
}

#edit-design-insert-element-btn:disabled {
    background-color: #c0c4cc;
    cursor: not-allowed;
}

/* 修改设计模态窗的保存按钮 */
#edit-design-save-btn {
    padding: 6px 16px;
    font-size: 14px;
    color: #ffffff;
    background-color: #52c41a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

#edit-design-save-btn:hover:not(:disabled) {
    background-color: #389e0d;
}

#edit-design-save-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

/* 修改设计模态窗的取消按钮 */
#edit-design-cancel-btn {
    padding: 6px 16px;
    font-size: 14px;
    color: #666666;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

#edit-design-cancel-btn:hover {
    color: #1890ff;
    border-color: #1890ff;
}

/* 修改设计模态窗内的插入文字/元素模态窗 */
#edit-design-insert-text-modal,
#edit-design-insert-element-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
}

/* 修改设计模态窗内的插入文字模态窗内容 */
#edit-design-insert-text-modal .template-modal-content {
    width: 450px;
}

/* 修改设计器工具栏分隔线 */
.edit-design-toolbar-divider {
    height: 20px;
    width: 1px;
    background-color: #e8e8e8;
    margin: 0 5px;
}

/* 修改设计器中的文字输入框样式（用于插入文字模态窗） */
#edit-design-insert-text-content,
#edit-design-insert-text-desc {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#edit-design-insert-text-content:focus,
#edit-design-insert-text-desc:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

#edit-design-insert-text-opacity {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

/* 修改设计模态窗内的字体选择下拉框 */
#edit-design-insert-text-font-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10004;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

#edit-design-insert-text-font-list {
    padding: 4px 0;
}

#edit-design-insert-text-font-list .font-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

#edit-design-insert-text-font-list .font-item:hover {
    background-color: #e6f7ff;
}

#edit-design-insert-text-font-list .font-item.selected {
    background-color: #1890ff;
    color: white;
}

/* 修改设计模态窗内的单选按钮组 */
#edit-design-insert-text-modal .template-radio-group {
    display: flex;
    gap: 20px;
}

#edit-design-insert-text-modal .template-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

#edit-design-insert-text-modal .template-radio-label input[type="radio"] {
    margin-right: 6px;
}

/* 设计稿列表中的修改按钮 */
.edit-design-btn {
    padding: 4px 10px;
    background-color: #52c41a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    opacity: 1;
    margin-right: 6px;
}

.edit-design-btn:hover {
    background-color: #389e0d;
}

/* 修改设计器中的卡片宽度输入框 */
#edit-design-card-width-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

#edit-design-card-width-input:focus {
    outline: none;
    border-color: #1890ff;
}

/* 修改设计器中的卡片显示复选框 */
#edit-design-card-show-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
