/* 库存锁定页面样式 */

/* 页面容器 */
.inventory-lock-page-container {
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
    box-sizing: border-box;
}

/* 统计卡片区域 */
.lock-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.lock-stat-card {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.lock-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lock-stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lock-stat-card-title {
    font-size: 14px;
    color: #86909c;
    font-weight: 500;
}

.lock-stat-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-stat-card-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.lock-stat-card-icon.locked {
    background: linear-gradient(135deg, #f54949 0%, #ff6b6b 100%);
}

.lock-stat-card-icon.products {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.lock-stat-card-icon.locations {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.lock-stat-card-icon.records {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.lock-stat-card-value {
    font-size: 28px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 8px;
}

.lock-stat-card-value .unit {
    font-size: 14px;
    color: #86909c;
    font-weight: 400;
    margin-left: 4px;
}

.lock-stat-card-change {
    font-size: 13px;
    color: #86909c;
}

.lock-stat-card-change .trend {
    margin-left: 8px;
    font-weight: 500;
}

.lock-stat-card-change .trend.up {
    color: #f54949;
}

.lock-stat-card-change .trend.down {
    color: #2d9e45;
}

/* 图表区域 */
.lock-charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.lock-chart-card {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lock-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lock-chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
}

.lock-chart-subtitle {
    font-size: 13px;
    color: #86909c;
    margin-top: 4px;
}

.lock-chart-filter {
    display: flex;
    gap: 8px;
}

.lock-chart-filter-btn {
    padding: 6px 12px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    background: #ffffff;
    color: #4d5156;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lock-chart-filter-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
}

.lock-chart-filter-btn.active {
    border-color: #1976d2;
    background: #1976d2;
    color: #ffffff;
}

.lock-chart-content {
    height: 280px;
    position: relative;
}

/* Tab 标签页 */
.lock-tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e6eb;
    margin-bottom: 16px;
}

.lock-tabs {
    display: flex;
    gap: 16px;
}

.lock-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    color: #4d5156;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.lock-tab:hover {
    color: #1976d2;
}

.lock-tab.active {
    color: #1976d2;
}

.lock-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1976d2;
}

/* Tab区域刷新按钮 */
.lock-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #4d5156;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.lock-refresh-btn:hover {
    background-color: #f5f5f5;
    border-color: #1976d2;
    color: #1976d2;
}

.lock-refresh-btn:hover svg {
    fill: #1976d2;
}

.lock-refresh-btn svg {
    transition: all 0.2s ease;
}

.lock-tab .badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #f0f0f0;
    color: #4d5156;
    border-radius: 10px;
    font-size: 12px;
}

.lock-tab.active .badge {
    background: #e6f7ff;
    color: #1976d2;
}

/* Tab 内容 */
.lock-tab-content {
    display: none;
}

.lock-tab-content.active {
    display: block;
}

/* 搜索区域 */
.lock-search-area {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.lock-search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.lock-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.lock-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    white-space: nowrap;
}

.lock-search-input,
.lock-search-select {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lock-search-input:focus,
.lock-search-select:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.lock-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
}

.lock-search-combined .lock-search-type {
    width: 110px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
    background-color: #f7f8fa;
    border: none;
    border-right: 1px solid #e5e6eb;
    border-radius: 0;
    cursor: pointer;
}

.lock-search-combined .lock-search-value {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    border: none;
    border-radius: 0;
}

/* 货主选择器 */
.lock-search-field .owner-select-container {
    width: 100%;
    position: relative;
}

.lock-search-field .owner-select-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    padding-right: 35px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
}

.lock-search-field .owner-select-input:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.lock-search-field .dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #86909c;
    pointer-events: none;
}

.lock-search-field .owner-clear-btn {
    display: none;
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lock-search-field .owner-clear-btn:hover {
    background: #bfbfbf;
}

.lock-search-field .owner-clear-btn .clear-icon {
    width: 10px;
    height: 10px;
    fill: #fff;
}

@media (max-width: 768px) {
    .lock-search-field {
        min-width: 100%;
        max-width: 100%;
    }
    
    .lock-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lock-search-combined .lock-search-type {
        width: 100px;
    }
}

/* 操作按钮区域 */
.lock-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}

.lock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    margin-left: 8px;
}

.lock-btn-primary {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
}

.lock-btn-primary:hover {
    background-color: #1565c0;
}

.lock-btn-success {
    background-color: #2d9e45;
    color: white;
    border-color: #2d9e45;
}

.lock-btn-success:hover {
    background-color: #237a32;
}

.lock-btn-secondary {
    background-color: white;
    color: #4d5156;
    border-color: #d9d9d9;
}

.lock-btn-secondary:hover {
    background-color: #f5f5f5;
}

/* 表格区域 */
.lock-table-container {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    flex: none; /* 不再使用flex自动调整 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e6eb;
    display: flex;
    flex-direction: column;
    height: 500px; /* 固定高度 */
    position: relative; /* 确保正确的定位上下文 */
    z-index: 1; /* 确保正确的层叠上下文 */
}

.lock-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lock-table-container table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    flex: 1;
}

.lock-table-container thead {
    display: table;
    width: 100%;
    table-layout: fixed;
    flex: none;
}

.lock-table-container thead tr {
    display: table-row;
}

.lock-table-container tbody {
    display: block;
    width: 100%;
    height: 380px; /* 调整高度，为分页区域留出足够空间 */
    overflow-y: auto;
    flex: 1;
}

/* 隐形滚动条样式 - Webkit浏览器 */
.lock-table-container tbody::-webkit-scrollbar {
    width: 6px;
}

.lock-table-container tbody::-webkit-scrollbar-track {
    background: transparent;
}

.lock-table-container tbody::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

.lock-table-container tbody:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.lock-table-container tbody::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Firefox隐形滚动条 */
.lock-table-container tbody {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.lock-table-container tbody:hover {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.lock-table-container tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.lock-data-table th {
    background-color: #f7f8fa;
    color: #1d2129;
    font-weight: 600;
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
    box-sizing: border-box;
    width: auto;
}

.lock-data-table td {
    color: #4d5156;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    width: auto;
}

/* 为锁定列表指定列宽（11列）*/
#productsTab .lock-table-container th:nth-child(1),
#productsTab .lock-table-container td:nth-child(1) {
    width: 9%;
}

#productsTab .lock-table-container th:nth-child(2),
#productsTab .lock-table-container td:nth-child(2) {
    width: 11%;
}

#productsTab .lock-table-container th:nth-child(3),
#productsTab .lock-table-container td:nth-child(3) {
    width: 9%;
}

#productsTab .lock-table-container th:nth-child(4),
#productsTab .lock-table-container td:nth-child(4) {
    width: 11%;
}

#productsTab .lock-table-container th:nth-child(5),
#productsTab .lock-table-container td:nth-child(5) {
    width: 10%;
}

#productsTab .lock-table-container th:nth-child(6),
#productsTab .lock-table-container td:nth-child(6) {
    width: 13%;
}

#productsTab .lock-table-container th:nth-child(7),
#productsTab .lock-table-container td:nth-child(7) {
    width: 8%;
}

#productsTab .lock-table-container th:nth-child(8),
#productsTab .lock-table-container td:nth-child(8) {
    width: 9%;
}

#productsTab .lock-table-container th:nth-child(9),
#productsTab .lock-table-container td:nth-child(9) {
    width: 8%;
}

#productsTab .lock-table-container th:nth-child(10),
#productsTab .lock-table-container td:nth-child(10) {
    width: 11%;
}

#productsTab .lock-table-container th:nth-child(11),
#productsTab .lock-table-container td:nth-child(11) {
    width: 9%;
}

/* 为锁定记录列表指定列宽（13列）*/
#recordsTab .lock-table-container th:nth-child(1),
#recordsTab .lock-table-container td:nth-child(1) {
    width: 11%;
}

#recordsTab .lock-table-container th:nth-child(2),
#recordsTab .lock-table-container td:nth-child(2) {
    width: 8%;
}

#recordsTab .lock-table-container th:nth-child(3),
#recordsTab .lock-table-container td:nth-child(3) {
    width: 8%;
}

#recordsTab .lock-table-container th:nth-child(4),
#recordsTab .lock-table-container td:nth-child(4) {
    width: 10%;
}

#recordsTab .lock-table-container th:nth-child(5),
#recordsTab .lock-table-container td:nth-child(5) {
    width: 8%;
}

#recordsTab .lock-table-container th:nth-child(6),
#recordsTab .lock-table-container td:nth-child(6) {
    width: 10%;
}

#recordsTab .lock-table-container th:nth-child(7),
#recordsTab .lock-table-container td:nth-child(7) {
    width: 9%;
}

#recordsTab .lock-table-container th:nth-child(8),
#recordsTab .lock-table-container td:nth-child(8) {
    width: 12%;
}

#recordsTab .lock-table-container th:nth-child(9),
#recordsTab .lock-table-container td:nth-child(9) {
    width: 7%;
}

#recordsTab .lock-table-container th:nth-child(10),
#recordsTab .lock-table-container td:nth-child(10) {
    width: 8%;
}

#recordsTab .lock-table-container th:nth-child(11),
#recordsTab .lock-table-container td:nth-child(11) {
    width: 7%;
}

#recordsTab .lock-table-container th:nth-child(12),
#recordsTab .lock-table-container td:nth-child(12) {
    width: 7%;
}

#recordsTab .lock-table-container th:nth-child(13),
#recordsTab .lock-table-container td:nth-child(13) {
    width: 8%;
}

/* 锁定列表特定列居中显示 */
#productsTab .lock-data-table td:nth-child(7),
#productsTab .lock-data-table td:nth-child(8),
#productsTab .lock-data-table td:nth-child(9) {
    text-align: center;
}

#productsTab .lock-data-table th:nth-child(7),
#productsTab .lock-data-table th:nth-child(8),
#productsTab .lock-data-table th:nth-child(9) {
    text-align: center;
}

/* 锁定记录列表特定列居中显示 */
#recordsTab .lock-data-table td:nth-child(2),
#recordsTab .lock-data-table td:nth-child(9),
#recordsTab .lock-data-table td:nth-child(10),
#recordsTab .lock-data-table td:nth-child(11) {
    text-align: center;
}

#recordsTab .lock-data-table th:nth-child(2),
#recordsTab .lock-data-table th:nth-child(9),
#recordsTab .lock-data-table th:nth-child(10),
#recordsTab .lock-data-table th:nth-child(11) {
    text-align: center;
}

.lock-data-table tbody tr:hover {
    background-color: #f7f8fa;
}

.lock-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 状态标签 */
.lock-status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.lock-status-tag.locked {
    background-color: #fdeef0;
    color: #d54941;
}

.lock-status-tag.unlocked {
    background-color: #eef9f0;
    color: #2d9e45;
}

/* 操作按钮 */
.lock-action-btn {
    margin-right: 8px;
    color: #1976d2;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}

.lock-action-btn:hover {
    text-decoration: underline;
}

.lock-action-btn.danger {
    color: #d54941;
}

.lock-action-btn.success {
    color: #2d9e45;
}

/* 分页区域 */
.lock-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-top: 1px solid #e5e6eb;
    background: #ffffff;
    flex-shrink: 0; /* 防止分页区域被压缩 */
    position: relative;
    z-index: 2; /* 确保分页区域在最上层 */
}

.lock-pagination-info {
    font-size: 14px;
    color: #4d5156;
}

.lock-pagination-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lock-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    background-color: #ffffff;
    color: #4d5156;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lock-pagination-btn:hover:not(:disabled) {
    border-color: #1976d2;
    color: #1976d2;
}

.lock-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lock-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4d5156;
}

.lock-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .lock-charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lock-stats-cards {
        grid-template-columns: 1fr;
    }

    .lock-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .lock-search-field {
        width: 100%;
    }
}

/* 解锁弹窗样式 */
.unlock-modal {
    max-width: 600px;
}

.lock-unlock-product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.lock-unlock-product-info span {
    flex: 1;
    min-width: 150px;
}

.lock-unlock-actions {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.lock-btn-link {
    background: none;
    border: none;
    color: #0052d9;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lock-btn-link:hover {
    background-color: #f0f0f0;
    text-decoration: underline;
}

.lock-unlock-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px;
}

.lock-unlock-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 3px;
    transition: all 0.2s ease;
}

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

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

/* 自定义复选框样式 - TDesign风格 */
.lock-unlock-checkbox {
    display: inline-block;
    position: relative;
    padding-left: 24px;
    margin-right: 12px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.lock-unlock-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lock-unlock-checkbox:hover input ~ .checkmark {
    border-color: #0052d9;
}

.lock-unlock-checkbox input:checked ~ .checkmark {
    background-color: #0052d9;
    border-color: #0052d9;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.lock-unlock-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.lock-unlock-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lock-unlock-item-content {
    flex: 1;
}

.lock-unlock-item-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.lock-unlock-time {
    font-weight: 500;
    color: #333333;
    font-size: 14px;
}

.lock-unlock-quantity {
    color: #0052d9;
    font-weight: 600;
    font-size: 14px;
}

.lock-unlock-item-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #666666;
}

.lock-unlock-item-detail span {
    flex: 1;
    min-width: 100px;
}

.lock-unlock-summary {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.lock-unlock-summary strong {
    color: #0052d9;
}

@media (max-width: 768px) {
    .lock-unlock-product-info span {
        min-width: 100%;
    }

    .lock-unlock-item-main {
        flex-direction: column;
        gap: 4px;
    }

    .lock-unlock-item-detail {
        flex-direction: column;
        gap: 4px;
    }

    .lock-unlock-item-detail span {
        min-width: 100%;
    }

    .lock-unlock-summary {
        flex-direction: column;
        gap: 8px;
    }
}

/* 详情弹窗样式 */
.lock-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.lock-detail-content {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: lockDetailFadeIn 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

@keyframes lockDetailFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lock-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.lock-detail-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.lock-detail-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 20px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lock-detail-close:hover {
    background-color: #f0f0f0;
    color: #333333;
}

.lock-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.lock-detail-section {
    margin-bottom: 24px;
}

.lock-detail-section:last-child {
    margin-bottom: 0;
}

.lock-detail-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.lock-detail-count {
    font-size: 14px;
    font-weight: 400;
    color: #999999;
}

.lock-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lock-detail-info-item {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
}

.lock-detail-label {
    min-width: 90px;
    font-size: 14px;
    color: #666666;
    margin-right: 8px;
}

.lock-detail-value {
    font-size: 14px;
    color: #333333;
    word-break: break-all;
}

.lock-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lock-detail-stat-item {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.lock-detail-stat-label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.lock-detail-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #0052d9;
}

.lock-detail-history {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.lock-detail-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.lock-detail-history-table th {
    background-color: #f5f5f5;
    color: #333333;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.lock-detail-history-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
}

.lock-detail-history-table tbody tr:last-child td {
    border-bottom: none;
}

.lock-detail-history-table tbody tr:hover {
    background-color: #f5f5f5;
}

.lock-detail-empty {
    text-align: center;
    color: #999999;
    padding: 40px 20px;
    font-size: 14px;
}

/* 按钮样式 - TDesign风格 */
.lock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 32px;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
    border: 1px solid transparent;
    outline: none;
    user-select: none;
}

.lock-btn-primary {
    background-color: #0052d9;
    color: #ffffff;
}

.lock-btn-primary:hover {
    background-color: #0048c2;
    border-color: #0048c2;
}

.lock-btn-primary:active {
    background-color: #003fab;
    border-color: #003fab;
}

.lock-btn-secondary {
    background-color: #ffffff;
    color: #0052d9;
    border: 1px solid #e0e0e0;
}

.lock-btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #dcdcdc;
}

.lock-btn-secondary:active {
    background-color: #e0e0e0;
    border-color: #dcdcdc;
}

.lock-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 1200px) {
    .lock-charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lock-stats-cards {
        grid-template-columns: 1fr;
    }

    .lock-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .lock-search-field {
        width: 100%;
    }
    
    .lock-detail-content {
        width: 95%;
        max-height: 95vh;
    }

    .lock-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .lock-detail-stats {
        grid-template-columns: 1fr;
    }
    
    .lock-detail-header {
        padding: 12px 16px;
    }
    
    .lock-detail-header h3 {
        font-size: 16px;
    }
    
    .lock-detail-body {
        padding: 16px;
    }
    
    .lock-detail-section {
        margin-bottom: 16px;
    }
    
    .lock-detail-section h4 {
        font-size: 14px;
    }
    
    .lock-detail-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .lock-btn {
        width: 100%;
    }
}
