/* 货主物流配置页面样式 */
.slc-card {
    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;
}

/* 搜索区域样式 */
.slc-search-form {
    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);
}

.slc-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.slc-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.slc-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.slc-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.slc-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.slc-search-input:focus,
.slc-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.slc-search-input:hover,
.slc-search-select:hover {
    border-color: #c9cdd4;
}

/* 列表区域样式 */
.slc-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.slc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.slc-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.slc-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.slc-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.slc-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.slc-btn:hover {
    background-color: #e6e6e6;
}

/* 配置按钮样式 - 与刷新按钮一致 */
.slc-config-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.slc-config-btn:hover {
    background-color: #e6e6e6;
}

.slc-config-btn .slc-icon {
    width: 16px;
    height: 16px;
}

/* 共享面单配置按钮样式 */
.slc-share-label-btn {
    background-color: #0052d9;
    color: white;
    border-color: #0052d9;
}

.slc-share-label-btn:hover {
    background-color: #0043b8;
    border-color: #0043b8;
}

/* 表格样式 */
.slc-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.slc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 1000px;
}

.slc-table th,
.slc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.slc-table th {
    background-color: #f5f7fa;
    font-weight: 500;
    color: #303133;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ebeef5;
}

.slc-table tbody tr {
    cursor: pointer;
}

.slc-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* 店铺数量列、发货数量列居中 */
.slc-table th:nth-child(2),
.slc-table td:nth-child(2),
.slc-table th:nth-child(3),
.slc-table td:nth-child(3) {
    text-align: center;
}

/* ==================== 货主物流配置弹窗样式 ==================== */

/* 货主物流配置弹窗 - 更大尺寸 */
.slc-owner-config-modal {
    width: 900px;
    height: 600px;
}

.slc-owner-config-modal .slc-modal-body {
    flex: 1;
    overflow: hidden;
}

/* 店铺面板 */
.slc-shop-panel {
    width: 260px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.slc-shop-panel .slc-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f7f8fa;
    flex-shrink: 0;
}

.slc-shop-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.slc-shop-item {
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.slc-shop-item:hover {
    background: #f2f3f5;
}

.slc-shop-item.slc-active {
    background: #e8f3ff;
    border: 1px solid #0052d9;
}

.slc-shop-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 4px;
}

.slc-shop-info {
    font-size: 12px;
}

.slc-shop-info.slc-authorized {
    color: #00b42a;
}

.slc-shop-info.slc-unauthorized {
    color: #f53f3f;
}

.slc-empty-tip {
    padding: 40px 20px;
    text-align: center;
    color: #86909c;
    font-size: 14px;
}

/* 店铺物流配置面板 - 与平台物流配置面板一致 */
.slc-shop-logistics-panel {
    flex: 1;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slc-shop-logistics-panel .slc-panel-header {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
    flex-shrink: 0;
}

.slc-shop-logistics-panel .slc-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

/* 店铺物流配置内容区域 - 可滚动 */
.slc-shop-logistics-panel .slc-logistics-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* 物流分组标题 */
.slc-logistics-group {
    margin-bottom: 24px;
}

.slc-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

/* 公司项目 */
.slc-company-item {
    margin-bottom: 16px;
}

.slc-company-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 12px;
}

/* 标签样式 */
.slc-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.slc-tag-franchise {
    background: #e8f3ff;
    color: #0052d9;
    border: 1px solid #bedaff;
}

.slc-tag-direct {
    background: #fff7e6;
    color: #ff7d00;
    border: 1px solid #ffe4ba;
}

/* 公司表单 */
.slc-company-form {
    padding-left: 0;
}

/* 公司启用开关 */
.slc-company-switch {
    margin-left: auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 22px;
    cursor: pointer;
}

.slc-company-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slc-company-switch .slc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c9cdd4;
    transition: 0.3s;
    border-radius: 22px;
}

.slc-company-switch .slc-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.slc-company-switch input:checked + .slc-switch-slider {
    background-color: #0052d9;
}

.slc-company-switch input:checked + .slc-switch-slider:before {
    transform: translateX(22px);
}

/* 公司禁用状态 */
.slc-company-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

.slc-company-disabled .slc-form-select,
.slc-company-disabled .slc-form-input {
    background-color: #f2f3f5;
    cursor: not-allowed;
}

/* 公司选项区域 - 默认隐藏 */
.slc-company-options {
    display: none;
    margin-top: 16px;
}

.slc-company-options.slc-show-options {
    display: block;
}

/* 信息卡片容器 - 默认隐藏 */
.slc-info-cards-container {
    display: none;
    gap: 16px;
    margin: 16px 0;
}

.slc-info-cards-container.slc-show-options {
    display: flex;
    flex-wrap: wrap;
}

/* 信息卡片 */
.slc-info-card {
    background: #f7f8fa;
    border-radius: 6px;
    padding: 12px 16px;
    min-width: 200px;
    flex: 1;
}

.slc-info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.slc-info-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slc-info-card-icon.account {
    background: #e8f3ff;
    color: #0052d9;
}

.slc-info-card-icon.address {
    background: #e8ffea;
    color: #00b42a;
}

.slc-info-card-icon svg {
    width: 16px;
    height: 16px;
}

.slc-info-card-title {
    font-size: 13px;
    color: #4e5969;
}

.slc-info-card-content {
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
}

/* 地址详情显示卡片 - 默认隐藏 */
.slc-address-detail-display {
    display: none;
}

.slc-address-detail-display.slc-show-shipping-address {
    display: block;
}

/* 发货地址字段 - 默认隐藏 */
.slc-shipping-address-field {
    display: none;
}

.slc-shipping-address-field.slc-show-options {
    display: block;
}

/* 分隔线 */
.slc-divider {
    height: 1px;
    background: #e5e6eb;
    margin: 16px 0;
}

/* 必填标记 */
.required {
    color: #f53f3f;
    margin-left: 2px;
}

/* 店铺配置表单 */
.slc-shop-config-form {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

.slc-form-section {
    margin-bottom: 24px;
}

.slc-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e6eb;
}

.slc-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.slc-form-field {
    flex: 1;
    min-width: 0;
}

.slc-form-field-full {
    flex: 1 1 100%;
}

.slc-form-label {
    display: block;
    font-size: 13px;
    color: #4e5969;
    margin-bottom: 8px;
}

.slc-form-input,
.slc-form-select,
.slc-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #1d2129;
    background: #fff;
    transition: all 0.2s;
}

.slc-form-input:focus,
.slc-form-select:focus,
.slc-form-textarea:focus {
    border-color: #0052d9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.slc-form-input[readonly] {
    background: #f7f8fa;
    color: #86909c;
    cursor: not-allowed;
}

.slc-form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* 分页样式 */
.slc-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.slc-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.slc-pagination-controls {
    display: flex;
    gap: 8px;
}

.slc-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;
}

.slc-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.slc-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slc-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.slc-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .slc-card {
        padding: 16px;
    }

    .slc-table {
        font-size: 12px;
    }

    .slc-table th,
    .slc-table td {
        padding: 8px;
    }
}

/* ========== 共享面单配置弹窗样式 ========== */

/* 弹窗遮罩 */
.slc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: slcFadeIn 0.3s ease;
}

@keyframes slcFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 弹窗容器 */
.slc-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 1200px;
    max-width: 95vw;
    height: 70vh;
    display: flex;
    flex-direction: column;
    animation: slcSlideDown 0.3s ease;
}

@keyframes slcSlideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.slc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e6eb;
}

.slc-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
}

.slc-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #86909c;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
}

.slc-modal-close:hover {
    background: #f2f3f5;
    color: #1d2129;
}

/* 弹窗内容 */
.slc-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.slc-modal-content {
    display: flex;
    gap: 24px;
    flex: 1;
    overflow: hidden;
}

/* 平台面板 */
.slc-platform-panel {
    width: 240px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slc-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f7f8fa;
    flex-shrink: 0;
}

.slc-platform-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.slc-platform-item {
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.slc-platform-item:hover {
    background: #f2f3f5;
    cursor: pointer;
}

.slc-platform-item.slc-active {
    background: #e8f3ff;
    border: 1px solid #0052d9;
}

.slc-platform-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}

.slc-platform-info {
    font-size: 12px;
    margin-left: 20px;
}

.slc-platform-info.slc-authorized {
    color: #00b42a;
}

.slc-platform-info.slc-unauthorized {
    color: #f53f3f;
}

/* 右侧标题栏取消授权按钮 */
.slc-cancel-auth-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.slc-cancel-auth-header-btn:hover {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.slc-cancel-auth-header-btn .slc-icon {
    width: 14px;
    height: 14px;
}

/* 确认对话框样式 */
.slc-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slc-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 100000;
}

.slc-confirm-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px;
    padding: 24px;
    z-index: 100001;
    animation: slcConfirmFadeIn 0.3s ease-out;
}

@keyframes slcConfirmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slc-confirm-header {
    text-align: center;
    margin-bottom: 16px;
}

.slc-confirm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.slc-confirm-icon.warning {
    background: #fff2f0;
    color: #ff4d4f;
}

.slc-confirm-icon svg {
    width: 24px;
    height: 24px;
}

.slc-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.slc-confirm-body {
    text-align: center;
    margin-bottom: 24px;
}

.slc-confirm-body p {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 8px;
}

.slc-confirm-body strong {
    color: #1f2937;
}

.slc-confirm-tip {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
}

.slc-confirm-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.slc-btn-danger {
    background: #ff4d4f;
    color: #fff;
    border: 1px solid #ff4d4f;
}

.slc-btn-danger:hover {
    background: #ff7875;
    border-color: #ff7875;
}

/* 授权弹窗样式（与店铺授权弹窗一致） */
.slc-auth-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slc-auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 100000;
}

.slc-auth-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100001;
    animation: slcAuthModalFadeIn 0.3s ease-out;
}

@keyframes slcAuthModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slc-auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.slc-auth-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.slc-auth-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slc-auth-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.slc-auth-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.slc-auth-section {
    margin-bottom: 24px;
}

.slc-auth-section:last-child {
    margin-bottom: 0;
}

.slc-auth-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.slc-auth-process {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slc-process-step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slc-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f5ff;
    color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.slc-step-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.slc-auth-url-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.slc-auth-url-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #f5f5f5;
    color: #333;
    word-break: break-all;
}

.slc-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.slc-copy-btn:hover {
    background: #40a9ff;
}

.slc-qrcode-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.slc-qrcode-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    background: #fafafa;
}

.slc-qrcode-icon {
    margin-bottom: 12px;
    opacity: 0.6;
}

.slc-qrcode-text {
    font-size: 14px;
    color: #666;
}

.slc-auth-note {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 12px 16px;
}

.slc-auth-note p {
    margin: 0;
    font-size: 13px;
    color: #d46b08;
    line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 640px) {
    .slc-auth-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .slc-auth-url-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .slc-process-step {
        gap: 12px;
    }
    
    .slc-confirm-content {
        width: 95%;
        margin: 16px;
    }
}

/* 物流面板 */
.slc-logistics-panel {
    flex: 1;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    padding: 0px 20px 0px 0px;
    border-bottom: 1px solid #e5e6eb;
    background: #f7f8fa;
    flex-shrink: 0;
}

.slc-logistics-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

/* ========== 使用共享面单开关样式 ========== */
.slc-shared-label-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9f9fb;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.slc-shared-label-icon {
    width: 40px;
    height: 40px;
    background: #f0e6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slc-shared-label-icon svg {
    width: 24px;
    height: 24px;
    color: #7c3aed;
}

.slc-shared-label-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slc-shared-label-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.slc-shared-label-desc {
    font-size: 13px;
    color: #86909c;
}

.slc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.slc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c9cdd4;
    transition: 0.3s;
    border-radius: 24px;
}

.slc-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slc-switch input:checked + .slc-switch-slider {
    background-color: #7c3aed;
}

.slc-switch input:checked + .slc-switch-slider:before {
    transform: translateX(20px);
}

/* 禁用状态样式 */
.slc-company-item.slc-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.slc-company-item.slc-disabled .slc-form-select,
.slc-company-item.slc-disabled .slc-form-input {
    background-color: #f2f3f5;
    cursor: not-allowed;
}

/* 未授权提示 */
.slc-unauthorized-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
}

.slc-tip-card {
    text-align: center;
    padding: 40px;
}

.slc-tip-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fff7e6 0%, #ffe8cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 125, 0, 0.15);
}

.slc-tip-icon {
    width: 40px;
    height: 40px;
    color: #ff7d00;
}

.slc-tip-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 8px;
}

.slc-tip-text {
    font-size: 14px;
    color: #86909c;
    line-height: 1.6;
    margin-bottom: 24px;
}

.slc-auth-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.slc-auth-guide-btn:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
    transform: translateY(-1px);
}

.slc-auth-guide-btn:active {
    transform: translateY(0);
}

.slc-auth-guide-btn svg {
    width: 16px;
    height: 16px;
}

/* 物流分组 */
.slc-logistics-group {
    margin-bottom: 24px;
}

.slc-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    padding: 12px 0;
    border-bottom: 2px solid #e5e6eb;
    margin-bottom: 16px;
}

/* 物流公司项 */
.slc-company-item {
    padding: 16px;
    background: #f7f8fa;
    border-radius: 4px;
    margin-bottom: 12px;
}

.slc-company-name {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 标签样式 */
.slc-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 2px;
    white-space: nowrap;
}

.slc-tag-franchise {
    background: #e8f3ff;
    color: #0052d9;
}

.slc-tag-direct {
    background: #ffe8cc;
    color: #ff7d00;
}

/* 信息卡片展示区域 - 新样式 */
.slc-info-cards-container {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.slc-info-cards-container.slc-show-options {
    display: grid;
}

/* 信息卡片 */
.slc-info-card {
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.slc-info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* 详细地址卡片默认隐藏 */
.slc-info-card.slc-address-detail-display {
    display: none;
}

.slc-info-card.slc-address-detail-display.slc-show-shipping-address {
    display: block;
}

/* 卡片头部 */
.slc-info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* 卡片图标 */
.slc-info-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slc-info-card-icon.account {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.slc-info-card-icon.address {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.slc-info-card-icon svg {
    width: 16px;
    height: 16px;
}

/* 卡片标题 */
.slc-info-card-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* 卡片内容 */
.slc-info-card-content {
    padding-left: 36px;
}

/* 账号值样式 */
.slc-account-value {
    font-size: 15px;
    color: #166534;
    font-weight: 600;
    font-family: 'SF Mono', 'Courier New', monospace;
    letter-spacing: 0.3px;
}

/* 地址值样式 */
.slc-address-detail-value {
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
    line-height: 1.6;
}

/* 详细地址显示区域 */
.slc-address-detail-display {
    display: none;
}

.slc-address-detail-display.slc-show-shipping-address {
    display: block;
}

/* 发货地址字段默认隐藏 - 使用更高优先级 */
.slc-form-field.slc-shipping-address-field {
    display: none;
}

.slc-form-field.slc-shipping-address-field.slc-show-options {
    display: flex;
    flex-direction: column;
}

/* 服务类型字段默认隐藏 */
.slc-form-field.slc-service-type-field {
    display: none;
}

.slc-form-field.slc-service-type-field.slc-show-options {
    display: flex;
    flex-direction: column;
}

/* 只读输入框样式 */
.slc-readonly-input {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.slc-readonly-input:hover {
    border-color: #d9d9d9;
}

.slc-readonly-input:focus {
    border-color: #d9d9d9;
}

/* 地址区域 */
.slc-address-section {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f0f2f5;
    border-radius: 4px;
    border-left: 3px solid #0052d9;
}

.slc-address-section.slc-show-address {
    display: block;
}

.slc-address-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
}

.slc-address-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.slc-address-field {
    flex: 1;
    min-width: calc(50% - 6px);
}

.slc-company-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slc-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.slc-company-options {
    display: none;
}

.slc-company-options.slc-show-options {
    display: block;
}

.slc-form-field {
    flex: 1;
    min-width: calc(25% - 9px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slc-form-field.slc-form-field-wide {
    flex: 2;
    min-width: calc(50% - 6px);
}

.slc-form-label {
    font-size: 13px;
    color: #4e5969;
    font-weight: 500;
}

.slc-form-label .required {
    color: #f53f3f;
    margin-left: 2px;
}

.slc-form-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.slc-form-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.slc-form-input:hover {
    border-color: #c9cdd4;
}

.slc-form-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.slc-form-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.slc-form-select:hover {
    border-color: #c9cdd4;
}

/* 分隔线 */
.slc-divider {
    height: 1px;
    background: #e5e6eb;
    margin: 0 -16px;
}

/* 获取按钮 */
.slc-fetch-btn {
    background-color: #0052d9;
    color: white;
    border: none;
}

.slc-fetch-btn:hover {
    background-color: #0043b8;
    border-color: #0043b8;
}

.slc-fetch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载动画 */
.slc-icon.slc-loading {
    animation: slcRotate 1s linear infinite;
}

@keyframes slcRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 弹窗底部 */
.slc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e6eb;
    background: #f7f8fa;
}

/* 次要按钮 */
.slc-btn-secondary {
    background-color: white;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.slc-btn-secondary:hover {
    background-color: #f2f3f5;
    border-color: #c9cdd4;
}

/* 主要按钮 */
.slc-btn-primary {
    background-color: #0052d9;
    color: white;
    border: none;
}

.slc-btn-primary:hover {
    background-color: #0043b8;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .slc-modal {
        width: 95vw;
    }

    .slc-modal-content {
        flex-direction: column;
    }

    .slc-platform-panel {
        width: 100%;
        max-height: 200px;
    }

    .slc-company-form {
        flex-direction: column;
    }
}

/* ========== 发货人配置弹窗样式 ========== */

/* 发货人配置弹窗 */
.slc-sender-modal-content {
    width: 700px;
    height: auto;
    max-height: 80vh;
}

/* 工具栏 */
.slc-sender-toolbar {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
}

/* 发货人表格 */
.slc-sender-table-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
}

.slc-sender-table {
    width: 100%;
    min-width: auto;
}

.slc-sender-table th,
.slc-sender-table td {
    text-align: center;
    padding: 12px 16px;
}

.slc-sender-table th {
    background-color: #f7f8fa;
    font-weight: 600;
    color: #1d2129;
}

.slc-sender-table tbody tr:hover {
    background-color: #f2f3f5;
}

/* 操作按钮组 */
.slc-action-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.slc-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: transparent;
}

.slc-action-btn svg {
    width: 16px;
    height: 16px;
}

.slc-edit-btn {
    color: #0052d9;
    background: #e8f3ff;
}

.slc-edit-btn:hover {
    background: #0052d9;
    color: white;
}

.slc-delete-btn {
    color: #f53f3f;
    background: #fff2f0;
}

.slc-delete-btn:hover {
    background: #f53f3f;
    color: white;
}

/* 空数据提示 */
.slc-empty-row {
    text-align: center;
    padding: 40px 20px;
}

.slc-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #86909c;
}

.slc-empty-content p {
    margin: 0;
    font-size: 14px;
}

/* 发货人表单弹窗 */
.slc-sender-form-content {
    width: 450px;
    height: auto;
}

/* 表单容器 */
.slc-form-container {
    padding: 16px 0;
}

.slc-form-item {
    margin-bottom: 20px;
}

.slc-form-item:last-child {
    margin-bottom: 0;
}

/* 表单输入框 */
.slc-form-input {
    width: 100%;
    box-sizing: border-box;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .slc-sender-modal-content,
    .slc-sender-form-content {
        width: 95vw;
        max-width: 95vw;
    }

    .slc-sender-table th,
    .slc-sender-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .slc-action-btns {
        gap: 4px;
    }

    .slc-action-btn {
        width: 28px;
        height: 28px;
    }
}
