/* 货品档案页面样式 */

/* 货品档案页面容器 - 确保样式不会影响其他页面 */
.goods-archive-container {
    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;
}





/* 主要内容区域 */
.goods-archive-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

/* 搜索区域 - 使用与出库单策略一致的样式 */
.goods-archive-search-area {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.goods-archive-search-form {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.goods-archive-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.goods-archive-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    white-space: nowrap;
    line-height: 1.2;
    min-width: 80px;
}

/* 组合搜索框样式 */
.goods-archive-search-item .search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    width: 100%;
    min-width: 200px;
}

.goods-archive-search-item .search-type {
    width: 100px;
    height: 36px;
    border: none;
    border-right: 1px solid #d9d9d9;
    border-radius: 0;
    padding: 0 12px;
    cursor: pointer;
    margin: 0;
    background-color: #ffffff;
}

.goods-archive-search-item .search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
}

.goods-archive-search-item .search-type:focus,
.goods-archive-search-item .search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.goods-archive-search-input:not(.search-value),
.goods-archive-search-select:not(.search-type) {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    vertical-align: middle;
}

.goods-archive-search-input:focus,
.goods-archive-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.goods-archive-search-input:hover,
.goods-archive-search-select:hover {
    border-color: #c9cdd4;
}

/* 货主选择容器 */
.goods-archive-owner-select-container {
    position: relative;
    width: 100%;
    display: flex;
}

.goods-archive-owner-select-container .goods-archive-search-input {
    width: 100%;
    padding-right: 60px;
}

/* 下拉箭头 */
.goods-archive-dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #86909c;
    pointer-events: none;
}

/* 清空按钮 */
.goods-archive-owner-clear-btn {
    display: none;
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    z-index: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-archive-owner-clear-btn svg {
    width: 16px;
    height: 16px;
    color: #999;
    display: block;
}

.goods-archive-owner-clear-btn:hover {
    opacity: 0.7;
}

/* 日期范围容器样式 */
.date-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-separator {
    color: #4b5563;
    font-size: 14px;
    white-space: nowrap;
}

.date-input {
    flex: 1;
    min-width: 120px;
}



/* 列表区域 */
.goods-archive-table-container {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex: 1; /* 使用flex布局，自适应高度 */
    min-height: 400px; /* 最小高度400px */

    overflow-y: auto; /* 只在垂直方向上显示滚动条 */
}

.goods-archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.goods-archive-table th,
.goods-archive-table td {
    padding: 16px 20px;
    text-align: left;
    border: none; /* 移除所有边框 */
}

.goods-archive-table th {
    border-bottom: 1px solid #e5e7eb; /* 只保留表头底部边框 */
    background: #f9fafb;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    /* 移除 text-transform: uppercase; 不强制转换为大写 */
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.goods-archive-table td {
    color: #4b5563;
    font-size: 14px;
}

.goods-archive-table tbody tr:hover {
    background-color: #f8fafc;
}

.goods-archive-table td {
    padding: 8px 16px;
    font-size: 13px;
}



/* 操作按钮 */
.goods-archive-action-btn {
    padding: 4px 8px;
    margin-right: 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.goods-archive-action-detail {
    background-color: #dbeafe;
    color: #1e40af;
}

.goods-archive-action-detail:hover {
    background-color: #bfdbfe;
}

.goods-archive-action-config {
    background-color: #e0e7ff;
    color: #3730a3;
}

.goods-archive-action-config:hover {
    background-color: #c7d2fe;
}

.goods-archive-action-log {
    background-color: #dcfce7;
    color: #14532d;
}

.goods-archive-action-log:hover {
    background-color: #bbf7d0;
}

/* 分页区域 */
.goods-archive-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.goods-archive-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.goods-archive-pagination-controls {
    display: flex;
    gap: 8px;
}

.goods-archive-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goods-archive-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.goods-archive-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.goods-archive-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.goods-archive-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 空数据状态 */
.goods-archive-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #6b7280;
}

.goods-archive-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.goods-archive-empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.goods-archive-empty-desc {
    font-size: 14px;
    color: #9ca3af;
}

/* TDesign风格日期范围选择器样式 */
.tdesign-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tdesign-date-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 140px;
}

.tdesign-date-input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 40px;
}

.tdesign-date-input:hover {
    border-color: #c0c4cc;
}

.tdesign-date-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
    outline: none;
}

.tdesign-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c4cc;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.tdesign-date-input:focus + .tdesign-date-icon {
    color: #0052d9;
}

.tdesign-date-separator {
    color: #606266;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: auto;
    flex-shrink: 0;
}

/* 日期选择器面板样式 */
.tdesign-date-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 280px;
    margin-top: 4px;
}

.tdesign-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tdesign-date-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tdesign-date-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #606266;
    transition: all 0.2s ease;
}

.tdesign-date-nav-btn:hover {
    background: #f5f7fa;
    color: #0052d9;
}

.tdesign-date-title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    min-width: 120px;
    text-align: center;
}

.tdesign-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.tdesign-date-weekday {
    text-align: center;
    font-size: 12px;
    color: #909399;
    font-weight: 500;
    padding: 4px;
}

.tdesign-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.tdesign-date-day {
    text-align: center;
    font-size: 12px;
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tdesign-date-day:hover {
    background: #f5f7fa;
    color: #0052d9;
}

.tdesign-date-day.selected {
    background: #0052d9;
    color: white;
}

.tdesign-date-day.today {
    border-color: #0052d9;
}

.tdesign-date-day.disabled {
    color: #c0c4cc;
    cursor: not-allowed;
}

.tdesign-date-day.disabled:hover {
    background: transparent;
    color: #c0c4cc;
}

/* 隐形滚动条样式 - 针对WebKit浏览器(Chrome, Safari) */
.goods-archive-table-container::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度 */
    background: transparent; /* 背景透明 */
}

.goods-archive-table-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* 滚动条颜色，半透明 */
    border-radius: 3px; /* 圆角 */
    border: none;
}

.goods-archive-table-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3); /* 鼠标悬停时颜色变深 */
}

.goods-archive-table-container::-webkit-scrollbar-track {
    background: transparent; /* 滚动轨道透明 */
    border: none;
}

/* TDesign 警告提示组件样式 */
.gc-alert {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.gc-alert--warning {
    background-color: rgba(250, 173, 20, 0.08);
    border: 1px solid rgba(250, 173, 20, 0.3);
}

.gc-alert__icon {
    margin-right: 12px;
    color: #faad14;
    flex-shrink: 0;
}

.gc-alert__content {
    flex: 1;
}

.gc-alert__title {
    font-size: 14px;
    font-weight: 500;
    color: #595959;
    margin-bottom: 4px;
}

.gc-alert__description {
    font-size: 14px;
    color: #8c8c8c;
}

/* TDesign 卡片组件样式 */
.gc-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e7e7e7;
    margin-bottom: 16px;
    overflow: hidden;
}

.gc-card__header {
    padding: 16px 24px;
    border-bottom: 1px solid #e7e7e7;
    background: #fafafa;
}

.gc-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.gc-card__body {
    padding: 24px;
}

/* 基本信息与图片合并布局特殊样式 */
.goods-config-form-container .gc-card:first-child .gc-card__body {
    padding: 32px 24px;
}

.goods-config-form-container .gc-card:first-child .gc-row {
    align-items: stretch;
}

.goods-config-form-container .gc-card:first-child .gc-col.gc-col-4 {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e7e7e7;
    padding-right: 24px;
}

.goods-config-form-container .gc-card:first-child .gc-col.gc-col-8 {
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 基本信息内容区域样式 */
.goods-basic-info-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 图片上传区域样式调整 */
.goods-config-form-container .gc-card:first-child .goods-config-image-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.goods-config-form-container .gc-card:first-child .gc-upload {
    width: 180px;
    height: 180px;
    margin-bottom: 16px;
    border: 2px dashed #d9d9d9;
    background-color: #fafafa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.goods-config-form-container .gc-card:first-child .gc-upload:hover {
    border-color: #0052d9;
    background-color: #f0f7ff;
}

.goods-config-form-container .gc-card:first-child .gc-upload__card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #8c8c8c;
    transition: all 0.2s;
    border-radius: 4px;
    overflow: hidden;
}

.goods-config-form-container .gc-card:first-child .gc-upload__card-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.goods-config-form-container .gc-card:first-child .gc-upload__tip {
    text-align: center;
    font-size: 12px;
    color: #8c8c8c;
}

/* 预览和删除按钮样式修复 */
.gc-upload__card-mask .gc-button {
    min-width: 60px;
    height: 28px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gc-upload__card-mask .gc-button--text {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0052d9;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gc-upload__card-mask .gc-button--text:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #2676e3;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gc-upload__card-mask .gc-button--danger {
    background-color: rgba(255, 77, 79, 0.9);
    color: white;
    border: 1px solid rgba(255, 77, 79, 0.7);
}

.gc-upload__card-mask .gc-button--danger:hover {
    background-color: rgba(255, 77, 79, 0.95);
    color: white;
    border-color: rgba(255, 77, 79, 0.8);
    box-shadow: 0 2px 4px rgba(255, 77, 79, 0.2);
}

.gc-upload__card-mask .gc-button .gc-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* 表单组件样式 */
.gc-form-item {
    margin-bottom: 24px;
}

.gc-form-item:last-child {
    margin-bottom: 0;
}

.gc-form-item--inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gc-form-item--inline .gc-form-item__label {
    margin-bottom: 0;
    min-width: 120px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 12px;
}

.gc-form-item--inline .gc-form-item__controls {
    flex: 1;
    display: flex;
    align-items: center;
}

/* 确保不同控件垂直对齐 */
.gc-form-item--inline .gc-select,
.gc-form-item--inline .gc-input {
    margin-top: 0;
    margin-bottom: 0;
}

.gc-form-item--inline .gc-radio-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gc-form-item--inline .gc-input-number {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gc-form-item__label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #595959;
    margin-bottom: 8px;
}

.gc-form-item__label span {
    font-weight: 500;
}

.gc-form-item__controls {
    position: relative;
}

/* 输入框组件样式 */
.gc-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: #262626;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.gc-input:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.2);
}

.gc-input[readonly] {
    background-color: #f5f5f5;
    color: #a6a6a6;
    cursor: not-allowed;
}

.gc-input-group {
    display: flex;
    align-items: stretch;
}

.gc-input-group .gc-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.gc-input-group__addon {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 1px solid #e7e7e7;
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #fafafa;
    color: #8c8c8c;
}

/* 数字输入框样式 */
.gc-input-number {
    position: relative;
    display: inline-block;
    width: 100%;
}

.gc-input-number .gc-input {
    padding-right: 32px;
}

.gc-input-number__suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 14px;
}

/* 下拉选择框样式 */
.gc-select {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    color: #262626;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    transition: all 0.2s;
    box-sizing: border-box;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%238c8c8c" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.gc-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.2);
}

/* 保质期基数输入框和单位选择框组合样式 */
.gc-shelf-life-combo {
    display: flex;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.gc-shelf-life-combo:hover {
    border-color: #a3a6ad;
}

.gc-shelf-life-combo:focus-within {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.2);
}

.gc-shelf-life-input {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
}

.gc-shelf-life-input:focus {
    outline: none;
    box-shadow: none;
}

.gc-shelf-life-unit {
    flex: 0 0 80px;
    border: none;
    border-radius: 0;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
    background-color: #fafafa;
    border-left: 1px solid #e7e7e7;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%238c8c8c" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.gc-shelf-life-unit:focus {
    outline: none;
    box-shadow: none;
}

/* 单选按钮组样式 */
.gc-radio-group {
    display: flex;
    gap: 24px;
}

/* 空状态样式 */
.gc-empty-state {
    padding: 20px;
    text-align: center;
    color: #8c8c8c;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px dashed #e7e7e7;
}

.gc-empty-state p {
    margin: 0;
    font-size: 14px;
}

.gc-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.gc-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gc-radio__button {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #d9d9d9;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 8px;
    transition: all 0.2s;
    position: relative;
}

.gc-radio input[type="radio"]:checked + .gc-radio__button {
    border-color: #0052d9;
}

.gc-radio input[type="radio"]:checked + .gc-radio__button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0052d9;
}

.gc-radio__label {
    font-size: 14px;
    color: #262626;
}

/* 按钮组件样式 */
.gc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
}

.gc-button:active {
    transform: translateY(1px);
}

.gc-button--default {
    color: #595959;
    background-color: #fff;
    border-color: #d9d9d9;
}

.gc-button--default:hover {
    color: #262626;
    background-color: #fff;
    border-color: #40a9ff;
}

.gc-button--theme {
    color: #fff;
    background-color: #0052d9;
    border-color: #0052d9;
}

.gc-button--theme:hover {
    color: #fff;
    background-color: #2676e3;
    border-color: #2676e3;
}

.gc-button--text {
    border: none;
    background: transparent;
    padding: 4px 8px;
}

.gc-button--text:hover {
    background: rgba(0, 82, 217, 0.1);
}

.gc-button--small {
    padding: 4px 8px;
    font-size: 12px;
}

.gc-button--danger {
    color: #f5222d;
}

.gc-button--danger:hover {
    color: #cf1322;
}

.gc-button--ghost {
    background: transparent;
    color: #8c8c8c;
    border-color: #d9d9d9;
}

.gc-button--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #595959;
}

.gc-button--icon {
    padding: 4px;
}

.gc-button--dashed {
    border-style: dashed;
}

.gc-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* 上传组件样式 */
.gc-upload {
    display: inline-block;
}

.gc-upload--card {
    position: relative;
    cursor: pointer;
    width: 150px;
    height: 150px;
}

.gc-upload__card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    background-color: #fafafa;
    color: #8c8c8c;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.gc-upload__card-content:hover {
    border-color: #0052d9;
}

.gc-upload__add-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.gc-upload__text {
    font-size: 14px;
}

.gc-upload__card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-upload__card-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gc-upload__card-content:hover .gc-upload__card-mask {
    opacity: 1;
}

/* 货品配置图片预览样式 */
.config-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gc-upload__tip {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 8px;
}

/* 响应式布局 */
.gc-row {
    display: flex;
    flex-wrap: wrap;
}

.gc-row--start {
    justify-content: flex-start;
}

.gc-col {
    flex: 1;
    max-width: 100%;
    position: relative;
}

.gc-col-6 {
    width: 50%;
}

.gc-col-4 {
    width: 33.333%;
}

.gc-col-8 {
    width: 66.667%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .goods-config-form-container .gc-card:first-child .gc-row {
        flex-direction: column;
    }
    
    .goods-config-form-container .gc-card:first-child .gc-col.gc-col-4,
    .goods-config-form-container .gc-card:first-child .gc-col.gc-col-8 {
        width: 100%;
        border-right: none;
        padding-right: 0;
        padding-left: 0;
    }
    
    .goods-config-form-container .gc-card:first-child .gc-col.gc-col-4 {
        margin-bottom: 24px;
        border-bottom: 1px solid #e7e7e7;
        padding-bottom: 24px;
    }
}

/* 货品配置弹窗样式 */
.goods-config-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goods-config-modal-overlay.show {
    opacity: 1;
}

.goods-config-modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.goods-config-modal.show {
    transform: translateY(0);
    opacity: 1;
}

.goods-config-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e7e7e7;
}

.goods-config-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.goods-config-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.goods-config-modal-close:hover {
    background-color: #f5f5f5;
    color: #262626;
}

.goods-config-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.goods-config-form-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.goods-config-image-uploader {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 条码管理样式 */
.goods-config-barcodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.goods-config-barcode-item {
    width: 100%;
}

/* 图片预览弹窗样式 */
.goods-image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.goods-image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goods-image-preview-modal.show .goods-image-preview-overlay {
    opacity: 1;
}

.goods-image-preview-container {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.goods-image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.goods-image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.goods-image-preview-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}



/* 货品详情图片样式 */
.goods-detail-image-item {
    flex: 2;
}

.goods-detail-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.goods-detail-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.goods-detail-no-image {
    width: 120px;
    height: 120px;
    background-color: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

.goods-config-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e7e7e7;
    background-color: #fafafa;
}

/* 配置成功提示组件 */
.goods-config-success-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.goods-config-success-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #52c41a;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.toast-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #595959;
    line-height: 1.5;
}

.toast-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.toast-details span {
    font-size: 12px;
    color: #8c8c8c;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background-color: #f5f5f5;
    color: #595959;
}

/* 货品详情弹窗样式 */
.goods-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goods-detail-modal-overlay.show {
    opacity: 1;
}

.goods-detail-modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.goods-detail-modal.show {
    transform: translateY(0);
    opacity: 1;
}

.goods-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.goods-detail-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.goods-detail-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.goods-detail-modal-close:hover {
    background-color: #f5f5f5;
    color: #374151;
}

.goods-detail-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 选项卡导航 */
.goods-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.goods-detail-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.goods-detail-tab-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.goods-detail-tab-btn.active {
    color: #0052d9;
    border-bottom-color: #0052d9;
    background-color: #fff;
}

/* 选项卡内容 */
.goods-detail-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.goods-detail-tab-panel {
    display: none;
    height: 100%;
}

.goods-detail-tab-panel.active {
    display: block;
}

/* 原始信息选项卡 */
.goods-detail-categories {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.goods-detail-category {
    margin-bottom: 24px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.goods-detail-category-header {
    background-color: #f9fafb;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.goods-detail-category-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
}

.goods-detail-category-header h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #0052d9;
    margin-right: 8px;
    border-radius: 2px;
}

.goods-detail-category-content {
    padding: 16px;
}

.goods-detail-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

/* 确保三个信息项能够均匀分布 */
.goods-detail-info-row .goods-detail-info-item:nth-child(3n) {
    margin-right: 0;
}

.goods-detail-info-row:last-child {
    margin-bottom: 0;
}

.goods-detail-info-item {
    min-width: 200px;
    flex: 1;
    max-width: 33.33%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.goods-detail-info-item label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.goods-detail-info-item span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* 关联批次选项卡 */
.goods-detail-batch-table-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.goods-detail-batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.goods-detail-batch-table th,
.goods-detail-batch-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

/* 关联批次表格的剩余天数、库存数量、可用数量、占用数量列居中 */
.goods-detail-batch-table td:nth-child(4),
.goods-detail-batch-table td:nth-child(5),
.goods-detail-batch-table td:nth-child(6),
.goods-detail-batch-table td:nth-child(7) {
    text-align: center;
}

/* 表头中的剩余天数、库存数量、可用数量、占用数量列也居中 */
.goods-detail-batch-table th:nth-child(4),
.goods-detail-batch-table th:nth-child(5),
.goods-detail-batch-table th:nth-child(6),
.goods-detail-batch-table th:nth-child(7) {
    text-align: center;
}

.goods-detail-batch-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    /* 移除 text-transform: uppercase; 不强制转换为大写 */
    letter-spacing: 0.5px;
}

.goods-detail-batch-table tbody tr:hover {
    background-color: #f8fafc;
}

/* 库存分布选项卡 */
.goods-detail-inventory-stats {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.goods-detail-stat-card {
    flex: 1;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.goods-detail-stat-title {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.goods-detail-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
}

.goods-detail-available-value {
    color: #52c41a;
}

.text-center {
    text-align: center;
}

.goods-detail-inventory-table-container {
    padding: 20px;
    height: calc(100% - 140px);
    overflow-y: auto;
}

.goods-detail-inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.goods-detail-inventory-table th,
.goods-detail-inventory-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

/* 库存数量、可用库存、占用库存列居中 */
.goods-detail-inventory-table td:nth-child(3),
.goods-detail-inventory-table td:nth-child(4),
.goods-detail-inventory-table td:nth-child(5) {
    text-align: center;
}

/* 表头中的库存数量、可用库存、占用库存列也居中 */
.goods-detail-inventory-table th:nth-child(3),
.goods-detail-inventory-table th:nth-child(4),
.goods-detail-inventory-table th:nth-child(5) {
    text-align: center;
}

.goods-detail-inventory-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    /* 移除 text-transform: uppercase; 不强制转换为大写 */
    letter-spacing: 0.5px;
}

.goods-detail-inventory-table tbody tr:hover {
    background-color: #f8fafc;
}

/* 状态标签 */
.goods-detail-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.goods-detail-status-active {
    background-color: #e8f5e8;
    color: #52c41a;
}

.goods-detail-status-warning {
    background-color: #fff7e6;
    color: #fa8c16;
}

.goods-detail-status-danger {
    background-color: #fff2f0;
    color: #ff4d4f;
}

/* 弹窗底部 */
.goods-detail-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

.goods-detail-modal-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
    color: #6b7280;
}

.goods-detail-modal-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}