/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 套餐列表新增样式 */
.goods-item-mini {
    font-size: 12px;
    margin-bottom: 4px;
    padding: 2px 4px;
    background: #f8f9fa;
    border-radius: 3px;
    border-left: 3px solid #007bff;
}

.goods-item-mini strong {
    color: #333;
    font-size: 13px;
}

.goods-item-mini small {
    color: #666;
    font-size: 11px;
}

.goods-more {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 2px;
    font-style: italic;
}

.text-muted {
    color: #999 !important;
    font-style: italic;
}

.time-column,
.time-column-create,
.time-column-update {
    white-space: nowrap;
    font-size: 12px;
    overflow: visible;
    position: relative;
    text-align: left; /* 时间列统一左对齐，便于阅读 */
    padding-left: 12px; /* 添加左侧内边距，避免紧贴边框 */
}

.btn-info {
    background-color: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* 套餐详情模态框样式 */
.package-details {
    padding: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.detail-item span {
    color: #666;
    font-size: 14px;
}

.goods-details {
    margin-top: 20px;
}

.goods-detail-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.goods-detail-item h5 {
    color: #007bff;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.goods-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 左右布局 */
.layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 80px; /* 头部高度 */
    left: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
}

/* 主内容区域 */
/* 主内容区域样式已在上面定义 */

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: white;
    margin: 0;
}

/* 侧边栏导航样式 */
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
}

/* 导航组样式 */
.nav-group {
    margin-bottom: 5px;
}

.nav-group-btn {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-group-btn:hover {
    background: #f8f9fa;
    color: #3498db;
}

.nav-group-btn.active {
    background: #e3f2fd;
    color: #3498db;
    border-left-color: #3498db;
    font-weight: 500;
}

.nav-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-group-btn.collapsed .nav-arrow {
    transform: rotate(-90deg);
}

/* 二级菜单样式 */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    border-radius: 0 0 6px 6px;
    margin-top: -6px;
}

.nav-submenu.active {
    max-height: 200px;
    padding: 8px 0;
}

.nav-subbtn {
    width: 100%;
    text-align: left;
    padding: 8px 15px 8px 30px;
    border: none;
    background: transparent;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    border-radius: 4px;
    margin: 2px 10px;
    width: calc(100% - 20px);
}

.nav-subbtn:hover {
    background: #ecf0f1;
    color: #3498db;
}

.nav-subbtn.active {
    background: #3498db;
    color: white;
    font-weight: 500;
}

.sidebar .nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.sidebar .nav-btn:hover {
    background: #f8f9fa;
    color: #3498db;
}

.sidebar .nav-btn.active {
    background: #e3f2fd;
    color: #3498db;
    border-left-color: #3498db;
    font-weight: 500;
}

/* 通用导航按钮样式（用于其他地方的导航按钮） */
.nav-btn:not(.sidebar .nav-btn) {
    padding: 10px 20px;
    border: none;
    background: #ecf0f1;
    color: #7f8c8d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:not(.sidebar .nav-btn):hover {
    background: #d5dbdb;
}

.nav-btn:not(.sidebar .nav-btn).active {
    background: #3498db;
    color: white;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    margin-left: 250px; /* 与侧边栏宽度一致 */
    margin-top: 80px; /* 头部高度 */
    padding: 20px;
    background: #f5f5f5;
    min-height: calc(100vh - 80px);
}

.main-content .section {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.main-content .section.active {
    display: block;
}

.main-content .section h2 {
    color: #2c3e50;
    margin: 0;
    padding: 15px 20px 20px 20px;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    font-size: 24px;
    font-weight: 600;
}

/* 表格操作按钮区域 */
.table-actions {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    /* 确保操作按钮区域在表格上方 */
    position: relative;
    z-index: 10;
}

/* 表格头部区域 - 现在只用于样式，不再包含操作按钮 */
.table-header {
    display: none; /* 隐藏原来的table-header */
}

/* Section内容区域 */
.main-content .section > *:not(h2) {
    padding: 0 20px 15px 20px;
}

/* 按钮容器样式（已废弃，使用.button-actions替代） */

.main-content .section > .search-bar {
    margin: 20px 20px 0 20px;
    padding: 15px;
}

.main-content .section > .pagination {
    margin: 20px 20px 0 20px;
}

/* 按钮样式 */
.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 80px;
    height: 36px !important;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    background: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #229954;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    background: white;
    border-radius: 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: #f8f9fa;
}

/* 确保表头hover效果不影响粘性定位 */
.table-scroll-container thead tr:hover {
    background-color: #f8f9fa;
}

/* 时间列样式 */
.time-column,
.time-column-create,
.time-column-update {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    width: fit-content;
    overflow: visible;
    position: relative;
    padding: 0 0 0 12px; /* 左侧内边距，避免紧贴边框 */
    text-align: left; /* 时间列统一左对齐，便于阅读 */
}

/* 文件名列样式 */
.filename-column {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.search-bar > * {
    height: 36px !important;
    box-sizing: border-box;
    margin: 0;
}

.search-input {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    height: 36px !important;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
    margin: 0;
}

.datetime-input {
    min-width: 180px !important;
    max-width: 220px !important;
    font-size: 12px !important;
    font-family: inherit;
}

.datetime-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 2px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center;
    background-size: 16px 16px;
    color: #666;
}

.search-select {
    min-width: 120px;
    max-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    height: 36px !important;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 滑动开关样式 */
.toggle-switch {
    display: inline-block;
    position: relative;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label {
    background-color: #27ae60;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 图片预览样式 */
.image-preview {
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-preview:hover {
    transform: scale(1.05);
}

.image-preview-container {
    display: inline-block;
    margin-top: 10px;
}

/* 可复制文本单元格样式 */
.text-cell {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.text-cell:hover {
    background-color: #e3f2fd;
}

.text-cell:active {
    background-color: #bbdefb;
}

.image-preview-container img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid #ddd;
}

.image-preview-container img:hover {
    transform: scale(1.05);
    border-color: #4285f4;
}

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal-close:hover {
    color: #bbb;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #3498db;
    background: #e3f2fd;
}

.upload-info {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.file-input {
    display: none;
}

.upload-progress {
    margin-top: 10px;
}

.upload-progress-bar {
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-bar::before {
    content: '';
    display: block;
    height: 100%;
    background: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    text-align: right;
}

/* 消息样式 */
.message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 消息容器的外层包裹元素 - 不占据文档流空间 */
[id$="-message"] {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050; /* 高于 modal (1000)，确保消息在弹出框之上 */
    pointer-events: none; /* 让点击事件穿透，不阻挡页面交互 */
}

[id$="-message"] * {
    pointer-events: auto; /* 消息内容本身可以点击（关闭按钮） */
}

/* 消息容器样式 - 类似分页效果 */
.message-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    max-width: 400px;
    position: relative; /* 改为 relative，因为外层已经是 fixed */
    margin: 20px; /* 保持与边缘的距离 */
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-container.success {
    background: rgba(39, 174, 96, 0.95);
    color: white;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.message-container.error {
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.message-container.warning {
    background: rgba(243, 156, 18, 0.95);
    color: white;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.message-container.info {
    background: rgba(52, 152, 219, 0.95);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.message-icon {
    font-size: 16px;
    font-weight: bold;
}

.message-text {
    font-size: 14px;
}

.message-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    margin-left: 10px;
}

.message-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 加载样式 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    background: white;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* 表格蒙版效果 */
.table-overlay {
    position: relative;
    min-height: 400px; /* 设置最小高度，确保位置稳定 */
    transition: filter 0.3s ease; /* 添加过渡效果 */
    background: white;
    border-radius: 4px;
}

/* 加载时的模糊蒙版效果 */
.table-overlay.loading-blur {
    filter: blur(2px);
    pointer-events: none; /* 禁用交互 */
}

.table-overlay .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 5;
    display: none; /* 默认隐藏 */
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none; /* 允许点击穿透到下层内容 */
}

.table-overlay.loading .loading-overlay {
    display: flex;
}

/* 确保加载状态下表头仍然可见 */
.table-overlay.loading .table-scroll-container thead,
.table-overlay.loading .table-scroll-container .sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.table-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ecf0f1;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.table-overlay .loading-text {
    color: #7f8c8d;
    font-size: 14px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 新的分页wrapper样式 */
.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.total-count {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.page-btn {
    padding: 5px 12px;
    border: 1px solid #d9d9d9;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: #1890ff;
    color: #1890ff;
}

.page-btn.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
    font-weight: 500;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #d9d9d9;
    cursor: not-allowed;
    border-color: #d9d9d9;
}

.pagination-ellipsis {
    color: #999;
    padding: 0 8px;
    font-size: 14px;
    line-height: 32px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.pagination-size-selector {
    padding: 5px 30px 5px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    height: 32px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

.pagination-size-selector:hover {
    border-color: #1890ff;
}

.pagination-size-selector:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    color: #666;
}

.pagination-jump-input {
    width: 50px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    font-size: 14px;
    text-align: center;
}

.pagination-jump-input:hover {
    border-color: #1890ff;
}

.pagination-jump-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.pagination-jump .btn {
    height: 32px;
    padding: 4px 15px;
}

.ellipsis {
    color: #666;
    margin: 0 4px;
    font-weight: bold;
    padding: 0 4px;
}

.page-size-selector {
    display: flex;
    align-items: center;
}

.page-size-select {
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 90px;
    height: 32px;
}

.page-size-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.jump-to-page {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.jump-to-page span {
    font-size: 14px;
    color: #666;
}

.jump-input {
    width: 50px;
    height: 32px;
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.jump-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.jump-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    height: 32px;
}

.jump-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

/* 表格加载指示器样式 */
.table-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    color: #6c757d;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag.enabled {
    background: #d4edda;
    color: #155724;
}

.tag.disabled {
    background: #f8d7da;
    color: #721c24;
}

.tag.normal {
    background: #e9ecef;
    color: #495057;
}

.tag.default {
    background: #fff3cd;
    color: #856404;
}

/* 新增标签样式 */
.tag.vip {
    background: #ffc107;
    color: #212529;
}

.tag.vip-premium {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
}

.tag.pending {
    background: #ffc107;
    color: #212529;
}

.tag.refunded {
    background: #6c757d;
    color: white;
}

/* 空间类型标签样式 */
.tag.room-type {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* 装饰风格标签样式 */
.tag.decoration-style {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* 权益模式标签样式 */
.tag.permanent {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.tag.limited {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 套餐类型标签样式 */
.tag.retention {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 备注输入容器样式 */
.remark-input-container {
    position: relative;
}

.remark-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.remark-preview-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 12px;
}

.remark-preview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.remark-preview-content .tag {
    margin: 0;
}

.remark-preview-content .text-content {
    color: #6c757d;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    
    .layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .sidebar nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }
    
    .sidebar .nav-btn {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 0;
        padding: 10px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input,
    .search-select {
        max-width: none;
    }
} 

/* 表格优化样式 */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* 确保容器不超出父元素 */
}

/* 表格容器滚动优化 */
.table-overlay {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 优化表格字体大小 */
table {
    font-size: 13px;
    min-width: 1200px; /* 确保表格有最小宽度 */
}



/* 长文本列优化 - 已废弃，请使用 LongTextUtil */
.long-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 金额列样式 */
.amount-column {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    min-width: 80px;
}

/* 用户ID列样式 */
.user-id-column {
    min-width: 120px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 状态列样式 */
.status-column {
    min-width: 80px;
    text-align: left;
}

/* 时间列样式优化 */
.time-column,
.time-column-create,
.time-column-update {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    width: fit-content;
    overflow: visible;
    position: relative;
    padding: 0 0 0 12px; /* 左侧内边距，避免紧贴边框 */
    text-align: left; /* 时间列统一左对齐，便于阅读 */
}

/* 确保时间列内的 time-display 不会溢出 */
.time-column .time-display {
    display: inline-block;
    box-sizing: border-box;
} 

/* 表格滚动容器 */

/* 表格最小宽度 */
.table-scroll-container table {
    min-width: 1200px;
    margin: 0;
    width: 100%;
    border-collapse: collapse;
    /* 确保表格在滚动容器中正确显示 */
    table-layout: fixed;
    /* 确保表格有正确的定位上下文 */
    position: relative;
}

/* 表格行高固定 */
.table-scroll-container tbody tr {
    height: 50px;
    /* 确保行不会与表头重叠 */
    position: relative;
}

.table-scroll-container tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    /* 确保单元格有正确的边框 */
    border-right: 1px solid #f0f0f0;
}

/* 表头固定 - 修复版本 */
.table-scroll-container thead,
.table-scroll-container .sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f8f9fa;
    /* 确保表头有足够的对比度 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-scroll-container thead th,
.table-scroll-container .sticky-th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 100;
    height: 50px;
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    /* 确保表头单元格有足够的对比度 */
    border-right: 1px solid #e9ecef;
}

/* 确保粘性定位在滚动容器中正常工作 */
.table-scroll-container {
    /* 创建新的堆叠上下文 */
    transform: translateZ(0);
    /* 确保sticky定位正常工作 */
    contain: layout style paint;
    /* 确保滚动容器有正确的定位上下文 */
    isolation: isolate;
    /* 确保滚动容器不会影响操作按钮区域的定位 */
    position: relative;
    z-index: 1;
}

/* 确保表格容器支持sticky定位 */
.table-scroll-container {
    overflow-x: auto;
    overflow-y: auto;
    height: 800px;
    min-height: 600px;
    max-height: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    position: relative;
}

/* 优化表格列宽 */
.table-scroll-container th:nth-child(1), /* 用户ID */
.table-scroll-container td:nth-child(1) {
    min-width: 120px;
    max-width: 150px;
}

.table-scroll-container th:nth-child(2), /* 订单号/退款单号 */
.table-scroll-container td:nth-child(2) {
    min-width: 150px;
    max-width: 180px;
}

.table-scroll-container th:nth-child(3), /* 商品名称/原订单号 */
.table-scroll-container td:nth-child(3) {
    min-width: 120px;
    max-width: 150px;
}

.table-scroll-container th:nth-child(4), /* 金额列 */
.table-scroll-container td:nth-child(4) {
    min-width: 80px;
    max-width: 100px;
}

.table-scroll-container th:nth-child(5), /* 金额列 */
.table-scroll-container td:nth-child(5) {
    min-width: 80px;
    max-width: 100px;
}

.table-scroll-container th:nth-child(6), /* 状态列 */
.table-scroll-container td:nth-child(6) {
    min-width: 80px;
    max-width: 100px;
}

/* 时间列优化 */
.table-scroll-container .time-column,
.table-scroll-container .time-column-create,
.table-scroll-container .time-column-update {
    width: fit-content;
    overflow: visible;
    position: relative;
    padding: 0 0 0 12px; /* 左侧内边距，避免紧贴边框 */
}

/* 套餐管理表格专用列宽设置 */
#goods .table-scroll-container th:nth-child(1), /* 渠道编码 */
#goods .table-scroll-container td:nth-child(1) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(2), /* 商品编号 */
#goods .table-scroll-container td:nth-child(2) {
    min-width: 180px;
    max-width: 220px;
    word-break: break-all;
}

#goods .table-scroll-container th:nth-child(3), /* 商品名称 */
#goods .table-scroll-container td:nth-child(3) {
    min-width: 150px;
    max-width: 200px;
}

#goods .table-scroll-container th:nth-child(4), /* 商品类型 */
#goods .table-scroll-container td:nth-child(4) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(5), /* 场景类型 */
#goods .table-scroll-container td:nth-child(5) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(6), /* 交易类型 */
#goods .table-scroll-container td:nth-child(6) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(7), /* 零售价格 */
#goods .table-scroll-container td:nth-child(7) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(8), /* 后续扣款金额 */
#goods .table-scroll-container td:nth-child(8) {
    min-width: 100px;
    max-width: 120px;
}

#goods .table-scroll-container th:nth-child(9), /* 权益数量 */
#goods .table-scroll-container td:nth-child(9) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(8), /* 创建时间 */
#goods .table-scroll-container td:nth-child(8) {
    min-width: 130px;
    max-width: 150px;
}

#goods .table-scroll-container th:nth-child(9), /* 更新时间 */
#goods .table-scroll-container td:nth-child(9) {
    min-width: 130px;
    max-width: 150px;
}

#goods .table-scroll-container th:nth-child(10), /* 商品标题 */
#goods .table-scroll-container td:nth-child(10) {
    min-width: 150px;
    max-width: 200px;
}

#goods .table-scroll-container th:nth-child(11), /* 权益数量 */
#goods .table-scroll-container td:nth-child(11) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(12), /* 首次支付权益 */
#goods .table-scroll-container td:nth-child(12) {
    min-width: 100px;
    max-width: 120px;
}

#goods .table-scroll-container th:nth-child(13), /* 有效期天数 */
#goods .table-scroll-container td:nth-child(13) {
    min-width: 90px;
    max-width: 110px;
}

#goods .table-scroll-container th:nth-child(14), /* 是否试用 */
#goods .table-scroll-container td:nth-child(14) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(15), /* 套餐类型 */
#goods .table-scroll-container td:nth-child(15) {
    min-width: 80px;
    max-width: 100px;
}

#goods .table-scroll-container th:nth-child(16), /* 可见范围 */
#goods .table-scroll-container td:nth-child(16) {
    min-width: 100px;
    max-width: 120px;
}

#goods .table-scroll-container th:nth-child(17), /* 权益描述 */
#goods .table-scroll-container td:nth-child(17) {
    min-width: 120px;
    max-width: 180px;
}

#goods .table-scroll-container th:nth-child(18), /* 套餐说明 */
#goods .table-scroll-container td:nth-child(18) {
    min-width: 120px;
    max-width: 180px;
}

#goods .table-scroll-container th:nth-child(19), /* 其它说明 */
#goods .table-scroll-container td:nth-child(19) {
    min-width: 120px;
    max-width: 180px;
}

#goods .table-scroll-container th:nth-child(20), /* 操作 */
#goods .table-scroll-container td:nth-child(20) {
    min-width: 80px;
    max-width: 100px;
} 

/* 按钮操作区域（已废弃，使用.header-actions替代） */

/* 主要操作按钮样式 */
.btn-primary {
    background: #3498db;
    color: white;
    font-weight: 500;
    min-width: 90px;
    height: 28px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* ==================== 设计配置管理样式 ==================== */

/* 配置标签页样式 */
.config-tabs {
    display: flex;
    height: 50px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.config-tab {
    flex: 1;
    height: 50px;
    line-height: 50px; /* 行高等于高度，确保文字垂直居中 */
    padding: 0 20px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-sizing: border-box; /* 确保padding不影响总高度 */
}

.config-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.config-tab.active {
    background: #3498db;
    color: white;
}

/* 配置内容区域 */
.config-content {
    display: none;
}

.config-content.active {
    display: block;
}

/* 设计配置标题样式 */
.config-content h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* 设计配置操作按钮区域样式 */
.config-content .table-actions {
    margin-bottom: 20px;
}

/* 配置网格布局 */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 配置卡片样式 */
.config-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.config-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 禁用状态的配置卡片 */
.config-card.disabled {
    opacity: 0.7;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.config-card.disabled:hover {
    opacity: 0.8;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.config-card.disabled .config-card-header h4 {
    color: #6c757d;
}

.config-card.disabled .config-description {
    color: #adb5bd;
}

.config-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.config-card-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.config-code {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.config-card-body {
    margin-bottom: 15px;
}

.config-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 40px;
}

.config-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.config-status.enabled {
    background: #d4edda;
    color: #155724;
}

.config-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.config-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.config-card-actions .btn {
    flex: 1;
    min-width: 60px;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-view {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-view:hover {
    background: #138496;
    border-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
}

/* 筛选器容器样式 - 紧凑版 */
.filters-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    flex: 1;
}

.filter-item.compact {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.filter-item label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.filter-item input,
.filter-item select {
    height: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.filter-item.compact input,
.filter-item.compact select {
    width: 100%;
    height: 32px;
    padding: 6px 10px;
    font-size: 13px;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.filter-item.compact input::placeholder {
    color: #999;
    font-size: 12px;
}

/* 按钮容器样式 */
.filter-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.filter-actions button {
    height: 32px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
}

.filter-item button {
    margin-right: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-item {
        min-width: 100%;
    }
}

.btn-edit {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
    border-color: #138496;
}

.btn-toggle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-toggle:hover {
    background: #218838;
    border-color: #218838;
}

.btn-delete {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    border-color: #c82333;
}

/* 配置模态框样式 */
#configModal .modal-content {
    max-width: 500px;
}

#configModal .form-group {
    margin-bottom: 20px;
}

#configModal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

#configModal input,
#configModal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#configModal input:focus,
#configModal textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#configModal textarea {
    resize: vertical;
    min-height: 80px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .config-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .config-card {
        padding: 15px;
    }
    
    .config-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .config-card-actions {
        flex-direction: column;
    }
    
    .config-card-actions .btn {
        width: 100%;
    }
    
    .config-tabs {
        flex-direction: column;
    }
    
    .config-tab {
        border-radius: 0;
    }
    
    /* 移动端表格优化 */
    .table-scroll-container {
        height: auto;
        min-height: 400px;
        max-height: 600px;
    }
    
    .table-scroll-container table {
        min-width: 800px;
    }
    
    .table-scroll-container thead th,
    .table-scroll-container .sticky-th {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .table-scroll-container tbody td {
        font-size: 12px;
        padding: 8px 4px;
    }
} 



/* 确认对话框样式 */
.confirm-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.confirm-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 12px;
    padding: 0;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: confirmModalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes confirmModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.confirm-header {
    padding: 20px 24px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.confirm-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.confirm-body {
    padding: 32px 24px 24px 24px;
    text-align: center;
}

.confirm-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirm-icon svg {
    display: block;
}

.confirm-body p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.confirm-actions {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-actions .btn {
    min-width: 90px;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.confirm-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirm-actions .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.confirm-actions .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.confirm-actions .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.confirm-actions .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 删除确认对话框的特殊样式 */
.confirm-modal.delete-confirm .confirm-header {
    background-color: #fff5f5;
    border-bottom-color: #fed7d7;
}

.confirm-modal.delete-confirm .confirm-header h3 {
    color: #e53e3e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .confirm-modal-content {
        width: 90vw;
        margin: 20px;
    }
    
    .confirm-actions {
        flex-direction: column;
    }
    
    .confirm-actions .btn {
        width: 100%;
    }
    
    .confirm-body {
        padding: 24px 20px 20px 20px;
    }
    
    .confirm-header {
        padding: 16px 20px;
    }
}

/* Token使用记录特殊样式 */
.amount-column.positive {
    color: #27ae60;
    font-weight: 600;
}

.amount-column.negative {
    color: #e74c3c;
    font-weight: 600;
}

.id-column {
    font-family: monospace;
    font-size: 0.9em;
}

.remark-column {
    max-width: 200px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* =========================== Token使用记录页面样式 =========================== */

/* 搜索区域样式 */
.token-search-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-row:last-child {
    margin-bottom: 0;
}

.search-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* 表格包装器 */
.token-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Token表格容器 */
.token-table-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    position: relative;
}

/* Token表格基础样式 */
.token-table-container table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
    background: white;
}

/* Token表头样式 */
.token-table-container thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
}

.token-table-container thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    white-space: nowrap;
    font-size: 13px;
}

.token-table-container thead th:last-child {
    border-right: none;
}

/* Token表格行样式 */
.token-table-container tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.token-table-container tbody tr:hover {
    background-color: #f8f9fa;
}

.token-table-container tbody tr:last-child {
    border-bottom: none;
}

/* Token表格单元格样式 */
.token-table-container tbody td {
    padding: 10px 8px;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 13px;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-table-container tbody td:last-child {
    border-right: none;
}

/* Token表格列宽设置 */
.token-table-container th:nth-child(1), 
.token-table-container td:nth-child(1) { 
    width: 90px; 
    min-width: 90px; 
}

.token-table-container th:nth-child(2), 
.token-table-container td:nth-child(2) { 
    width: 130px; 
    min-width: 130px; 
}

.token-table-container th:nth-child(3), 
.token-table-container td:nth-child(3) { 
    width: 120px; 
    min-width: 120px; 
}

.token-table-container th:nth-child(4), 
.token-table-container td:nth-child(4) { 
    width: 80px; 
    min-width: 80px; 
    text-align: center;
}

.token-table-container th:nth-child(5), 
.token-table-container td:nth-child(5) { 
    width: 140px; 
    min-width: 140px; 
}

.token-table-container th:nth-child(6), 
.token-table-container td:nth-child(6) { 
    width: 140px; 
    min-width: 140px; 
}

.token-table-container th:nth-child(7), 
.token-table-container td:nth-child(7) { 
    width: 80px; 
    min-width: 80px; 
    text-align: center;
}

.token-table-container th:nth-child(8), 
.token-table-container td:nth-child(8) { 
    width: 150px; 
    min-width: 150px; 
}

.token-table-container th:nth-child(9), 
.token-table-container td:nth-child(9) { 
    width: 110px; 
    min-width: 110px; 
    text-align: right;
    font-weight: 500;
}

/* Token数量样式 */
.token-amount {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #495057;
}

/* 分页样式优化 */
#token-usage-pagination {
    margin-top: 20px;
    text-align: center;
    padding: 15px 0;
}

/* 响应式优化 */
@media (max-width: 1200px) {
    .token-table-container {
        font-size: 12px;
    }
    
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-buttons {
        margin-left: 0;
        justify-content: center;
    }
}

/* 渠道编码列样式 */
.channel-code-column {
    font-family: monospace;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* 长文本列样式 - 已废弃，请使用 LongTextUtil */
.long-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* Tooltip样式 */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px 12px;
    position: fixed;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 确保tooltip不会被表格容器裁剪 */
.table-scroll-container {
    position: relative;
}

/* Token数量样式 */
.token-amount {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #495057;
}

/* 表格固定列宽样式 */


/* 表格文本截断样式 */
.table td.truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* 为所有需要截断的表格单元格添加样式 */
#generation-table td:nth-child(5),
#generation-table td:nth-child(6),
#generation-table td:nth-child(10),
#generation-table td:nth-child(13),
#order-table td:nth-child(1),
#order-table td:nth-child(3),
#order-table td:nth-child(4),
#order-table td:nth-child(5),
#refund-table td:nth-child(1),
#refund-table td:nth-child(2),
#refund-table td:nth-child(3),
#refund-table td:nth-child(4),
#refund-table td:nth-child(5),
#refund-table td:nth-child(8),
#agreement-table td:nth-child(1),
#agreement-table td:nth-child(2),
#agreement-table td:nth-child(3),
#agreement-table td:nth-child(4),
#agreement-table td:nth-child(5),
#agreement-table td:nth-child(6),
#channel-table td:nth-child(2),
#channel-table td:nth-child(4),
#timeout-table td:nth-child(2),
#timeout-table td:nth-child(5),
#design-config-table td:nth-child(2),
#design-config-table td:nth-child(3),
#example-image-table td:nth-child(2),
#example-image-table td:nth-child(3),
#example-image-table td:nth-child(6),
#package-background-table td:nth-child(2),
#package-background-table td:nth-child(3),
#package-background-table td:nth-child(6),
#page-config-table td:nth-child(2),
#page-config-table td:nth-child(3),
#package-table td:nth-child(1),
#package-table td:nth-child(2),
#package-table td:nth-child(3),
#package-table td:nth-child(11),
#package-table td:nth-child(12) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.table-scroll-container .tooltip .tooltip-text {
    z-index: 1001;
}

/* 时间范围验证样式 */
.datetime-input.error {
    border-color: #ff4757 !important;
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.3);
}

.datetime-input.success {
    border-color: #2ed573 !important;
    box-shadow: 0 0 5px rgba(46, 213, 115, 0.3);
}

/* 时间输入框过渡效果 */
.datetime-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
} 

/* 设计配置管理新样式 */
.config-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
}

.config-type-badge.room_type {
    background-color: #3498db;
}

.config-type-badge.decoration_style {
    background-color: #e67e22;
}

.config-type-badge.color_scheme {
    background-color: #9b59b6;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
}

.status-badge.enabled {
    background-color: #27ae60;
}

.status-badge.disabled {
    background-color: #e74c3c;
}

.status-badge.status-active {
    background-color: #27ae60;
    color: white;
}

.status-badge.status-inactive {
    background-color: #e74c3c;
    color: white;
}

/* VIP等级徽章样式 */
.vip-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
}

.vip-badge.vip-level-0 {
    background-color: #95a5a6; /* 灰色 - 普通 */
}

.vip-badge.vip-level-1 {
    background-color: #f39c12; /* 橙色 - VIP */
}

.vip-badge.vip-level-2 {
    background-color: #9b59b6; /* 紫色 - 终身VIP */
}

.pagination-info {
    color: #666;
    font-size: 0.9em;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #999;
}

.btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.btn.active:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* 响应式设计 - 分页组件 */
@media (max-width: 768px) {
    .pagination {
        gap: 8px;
    }
    
    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    
    .pagination-buttons .btn {
        min-width: 35px;
        padding: 6px 8px;
        font-size: 0.85em;
    }
    
    .pagination-ellipsis {
        padding: 0 4px;
        font-size: 0.85em;
    }
}

/* 套餐管理特定样式 */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

.form-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* 合并字段内联布局优化 */
.form-group .inline-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-group .inline-flex input,
.form-group .inline-flex select {
    flex: 1;
}

.form-group .inline-flex input[type="number"] {
    min-width: 0;
}

.form-group .inline-flex select {
    min-width: 100px;
}

/* 权益配置布局样式 */
.benefit-config-group {
    margin-bottom: 20px;
}

.benefit-labels-row {
    margin-bottom: 8px;
}

.benefit-labels-row .form-group {
    margin-bottom: 0;
}

.benefit-labels-row .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.benefit-inputs-row .form-group {
    margin-bottom: 0;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .form-group .inline-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-group .inline-flex input,
    .form-group .inline-flex select {
        width: 100%;
    }
    
    .benefit-config-group {
        margin-bottom: 15px;
    }
    
    .benefit-labels-row {
        margin-bottom: 6px;
    }
}

.package-goods-container {
    margin-top: 0;
}

.package-goods-header {
    margin-bottom: 20px;
}

.package-goods-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.package-goods-item {
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
}

/* 商品配置头部 */
.goods-item-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goods-item-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.package-goods-item .remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.package-goods-item .remove-btn:hover {
    background: #c82333;
}

/* 商品配置内容区域 */
.goods-config-content {
    padding: 20px;
}

/* 一行布局样式 */
.goods-inline-config {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.goods-select-group {
    flex: 1;
    min-width: 250px;
}

.trade-type-group, .pay-type-group {
    flex: 0 0 auto;
    min-width: 140px;
}

.goods-inline-config .form-group {
    margin-bottom: 0;
}

.goods-inline-config .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.info-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    color: #007bff;
    font-weight: 500;
    min-height: 20px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .goods-inline-config {
        flex-direction: column;
        gap: 12px;
    }
    
    .goods-select-group,
    .trade-type-group,
    .pay-type-group {
        min-width: 100%;
    }
}

/* 商品信息显示区域 */
.goods-info-display {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    margin: 0;
}

.info-item span {
    color: #007bff;
    font-weight: 500;
    font-size: 13px;
}

/* 保留原有样式兼容 */
.goods-select-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.goods-select-row .form-group {
    flex: 1;
}

.goods-detail-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.goods-detail-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* Google Play管理样式 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #4caf50;
    color: white;
}

.badge-danger {
    background-color: #f44336;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
    color: #666;
}

/* 导航菜单组样式 */
.nav-group {
    margin: 5px 0;
}

.nav-group-btn {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.nav-group-btn.collapsed .nav-arrow {
    transform: rotate(-90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    margin-top: 5px;
}

.nav-submenu.active {
    max-height: 500px;
}

.nav-subbtn {
    width: 100%;
    padding: 12px 20px;
    margin: 2px 0;
    border: none;
    background: transparent;
    color: #666;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    padding-left: 30px;
}

.nav-subbtn:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

.nav-subbtn.active {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    font-weight: 500;
}

/* 动态输入组样式 */
.dynamic-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.dynamic-input-group input[type="text"],
.dynamic-input-group input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dynamic-input-group input[type="text"]:focus,
.dynamic-input-group input[type="number"]:focus {
    outline: none;
    border-color: #4a90e2;
}

.dynamic-input-group .btn-small {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}

/* 空数据行样式 */
.no-data-row {
    background: #f9f9f9;
    border: none !important;
}

.no-data-cell {
    text-align: center;
    padding: 60px 20px !important;
    color: #999;
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.no-data-text {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

/* Toast 通知动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast {
    cursor: pointer;
}

.toast:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

/* ==================== 订单详情样式 ==================== */
.order-detail {
    font-size: 14px;
    line-height: 1.6;
}

.order-detail h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

.detail-section {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 14px 16px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 14px;
    color: #4a90e2;
    margin: 0 0 10px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.detail-section h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #4a90e2;
    margin-right: 8px;
    border-radius: 2px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
}

.detail-item {
    display: flex;
    align-items: baseline;
    padding: 6px 10px;
    background: white;
    border-radius: 4px;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
    flex-shrink: 0;
    font-size: 12px;
}

.detail-item span {
    color: #333;
    word-break: break-word;
    flex: 1;
}

.detail-item .copyable {
    cursor: pointer;
    color: #4a90e2;
    transition: all 0.2s;
}

.detail-item .copyable:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* 状态标签样式优化 */
.detail-item .status-success,
.detail-item .status-active,
.detail-item .status-granted {
    color: #28a745;
    font-weight: 600;
}

.detail-item .status-pending,
.detail-item .status-processing {
    color: #ffc107;
    font-weight: 600;
}

.detail-item .status-failed,
.detail-item .status-revoked {
    color: #dc3545;
    font-weight: 600;
}

.detail-item .status-canceled,
.detail-item .status-expired {
    color: #6c757d;
    font-weight: 600;
}

.detail-item .status-grace,
.detail-item .status-hold,
.detail-item .status-paused {
    color: #fd7e14;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 1400px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item label {
        min-width: 90px;
    }
}

/* ==================== 通用列宽类（统一管理表格列宽）==================== */

/* 基础宽度类 - 按宽度分级 */
.col-narrow {
    min-width: 80px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-small {
    min-width: 100px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-medium {
    min-width: 120px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-large {
    min-width: 180px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-xlarge {
    min-width: 250px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-auto {
    width: auto;
    min-width: fit-content;
}

/* 特殊列类型 - 按功能分类 */
.col-id {
    min-width: 120px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 0.95em;
}

.col-time {
    min-width: 130px;
    max-width: 160px;
    white-space: nowrap;
}

.col-amount {
    min-width: 80px;
    max-width: 120px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.col-status {
    min-width: 70px;
    max-width: 100px;
    text-align: center;
}

.col-action {
    min-width: 100px;
    max-width: 150px;
    text-align: center;
    white-space: nowrap;
}

.col-code {
    min-width: 100px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 0.9em;
}

.col-description {
    min-width: 200px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.col-apikey {
    min-width: 180px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.col-prompt {
    min-width: 300px;
    max-width: 450px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* 列宽修饰类 - 可组合使用 */
.col-breakall {
    word-break: break-all;
    white-space: normal;
}

.col-nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-center {
    text-align: center;
}

.col-right {
    text-align: right;
}

.col-left {
    text-align: left;
}

/* 方舟模型配置表格专用列宽 */
#ark-model-table th:nth-child(1),
#ark-model-table td:nth-child(1) {
    min-width: 180px;
    max-width: 250px;
}

#ark-model-table th:nth-child(2),
#ark-model-table td:nth-child(2) {
    min-width: 120px;
    max-width: 150px;
}

#ark-model-table th:nth-child(3),
#ark-model-table td:nth-child(3) {
    min-width: 300px;
    max-width: 450px;
}

#ark-model-table th:nth-child(4),
#ark-model-table td:nth-child(4) {
    min-width: 120px;
    max-width: 150px;
    text-align: center;
}

#ark-model-table th:nth-child(5),
#ark-model-table td:nth-child(5) {
    min-width: 80px;
    max-width: 100px;
    text-align: center;
}

#ark-model-table th:nth-child(6),
#ark-model-table td:nth-child(6) {
    min-width: 130px;
    max-width: 160px;
}

#ark-model-table th:nth-child(7),
#ark-model-table td:nth-child(7) {
    min-width: 130px;
    max-width: 160px;
}

#ark-model-table th:nth-child(8),
#ark-model-table td:nth-child(8) {
    min-width: 150px;
    max-width: 180px;
    text-align: center;
} 