/* 全局样式重置 - 苹果风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 苹果风格颜色变量 */
    --apple-blue: #007AFF;
    --apple-blue-light: #5AC8FA;
    --apple-blue-dark: #0051D5;
    --apple-gray: #8E8E93;
    --apple-gray-light: #F2F2F7;
    --apple-gray-dark: #1C1C1E;
    --apple-green: #34C759;
    --apple-red: #FF3B30;
    --apple-orange: #FF9500;
    --apple-purple: #AF52DE;
    --apple-background: #F2F2F7;
    --apple-surface: #FFFFFF;
    --apple-text-primary: #000000;
    --apple-text-secondary: #3C3C43;
    --apple-text-tertiary: #8E8E93;
    --apple-separator: #C6C6C8;
    --apple-shadow: rgba(0, 0, 0, 0.1);
    --apple-shadow-light: rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    font-size: 17px;
    line-height: 1.47;
    color: var(--apple-text-primary);
    background-color: var(--apple-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 头部样式 - 苹果风格 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--apple-separator);
    color: var(--apple-text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--apple-text-primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: var(--apple-text-secondary);
}

#logout-btn {
    padding: 8px 16px;
    background-color: #ffffff;
    color: var(--apple-red);
    border: 1px solid var(--apple-red);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--apple-shadow-light);
}

#logout-btn:hover {
    background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(215, 0, 21, 0.25);
}

/* 侧边栏样式 - 苹果风格 */
.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: fit-content;
    min-width: 160px;
    height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 0.5px solid var(--apple-separator);
    padding: 24px 0;
    overflow-y: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0 16px;
}

.sidebar li {
    margin-bottom: 4px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--apple-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar a:hover {
    background-color: var(--apple-gray-light);
    color: var(--apple-blue);
}

.sidebar a.active {
    background-color: var(--apple-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.sidebar a.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: var(--apple-blue);
    border-radius: 2px;
}

/* 折叠菜单（父子菜单） */
.sidebar .has-submenu .parent-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--apple-text-primary);
    transition: all 0.2s ease;
}

.sidebar .has-submenu .parent-toggle:hover {
    background-color: var(--apple-gray-light);
}

.sidebar .has-submenu .chevron {
    font-size: 12px;
    color: var(--apple-text-secondary);
    transition: transform 0.2s ease;
}

.sidebar .has-submenu.expanded .chevron {
    transform: rotate(90deg);
}

.sidebar .submenu {
    display: none;
    padding-left: 12px;
    margin: 4px 0 8px 8px;
    border-left: 2px solid var(--apple-gray-light);
}

.sidebar .has-submenu.expanded > .submenu {
    display: block;
}

/* 主内容区域 - 苹果风格 */
.main-content {
    margin-left: 160px;
    margin-top: 64px;
    flex: 1;
    padding: 20px;
    background-color: var(--apple-background);
}

/* 内容区域样式 - 苹果风格 */
.content-section {
    display: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 16px;
    border: 0.5px solid var(--apple-separator);
    box-shadow: 0 2px 8px var(--apple-shadow-light);
    width: 100%;
    max-width: none;
}

.content-section.active {
    display: block;
}

/* 移除所有section标题文字 */
.section-header h2 {
    display: none;
}

/* 统一按钮样式 */
#add-product-btn,
#import-excel-btn {
    padding: 12px 24px;
    background-color: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
    letter-spacing: -0.3px;
    margin-left: 10px;
}

#add-product-btn:hover,
#import-excel-btn:hover {
    background-color: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

/* 统一删除和复制按钮样式 */
.btn-delete,
.delete-btn,
.btn-copy,
.copy-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    height: 32px;
    width: auto;
}

.btn-delete,
.delete-btn {
    background-color: #ff3b30;
    color: white;
}

.btn-delete:hover,
.delete-btn:hover {
    background-color: #d70015;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.3);
}

.btn-copy,
.copy-btn {
    background-color: #007aff;
    color: white;
}

.btn-copy:hover,
.copy-btn:hover {
    background-color: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.3);
}

/* 产品页面整体布局优化 */
#product.content-section {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 视图切换按钮 */
.product-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: fit-content;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 产品卡片容器 */
.product-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* 产品卡片样式 - 苹果风格 */
.product-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--apple-shadow-light);
    border: 0.5px solid var(--apple-separator);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--apple-blue);
    border-radius: 16px 16px 0 0;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--apple-shadow-medium);
    border-color: var(--apple-blue);
}

/* 表格容器样式 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8eaed;
    position: relative;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    font-size: 13px;
}

table th,
table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
    white-space: nowrap;
    vertical-align: middle;
    position: relative;
}

/* 订纸复制列改为单行显示，取消自适应高度 */
table td.paper-copy,
#paper-order-table td.paper-copy {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* 订纸单：将“下纸复制”列宽度固定为 110px */
#paper-order-table th:nth-child(6),
#paper-order-table td:nth-child(6) {
    width: 95px;
    max-width: 95px;
}

/* 表头样式 */
table th {
    background: white;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 表格行样式 */
table tbody tr {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    background: white;
}

table tbody tr:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* 表格行交替颜色 */
table tbody tr:nth-child(even) {
    background: #fafafa;
}

table tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

/* 选中行高亮（参考“添加产品”样式变蓝） */
table tbody tr.selected-row {
    background-color: #e6f7ff !important;
    border-left-color: #1890ff;
}
table tbody tr.selected-row:hover {
    background-color: #e6f7ff !important;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e8eaed;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--apple-separator);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--apple-background);
    color: var(--apple-text-primary);
    -webkit-appearance: none;
    min-width: 0;
}

.search-box input:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    background-color: white;
}

.search-box button {
    padding: 12px 16px;
    background-color: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--apple-shadow-light);
    white-space: nowrap;
}

.search-box button:hover {
    background-color: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 122, 255, 0.4);
}

/* 确保搜索按钮样式与其他按钮区分 */
#search-product-btn {
    background-color: #667eea;
}

#search-product-btn:hover {
    background-color: #5a67d8;
}

/* 批量操作工具栏 */
.bulk-actions-toolbar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 全站按钮统一为“添加订纸”样式（内容区） */
.content-section button,
.search-box button,
.table-container .actions-column button,
.bulk-actions-toolbar button {
    padding: 12px 24px !important;
    background-color: #ffffff !important;
    color: var(--apple-red) !important;
    border: 1px solid var(--apple-red) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(215, 0, 21, 0.15) !important;
    transition: all 0.2s ease !important;
    letter-spacing: -0.3px !important;
}

.content-section button:hover,
.search-box button:hover,
.table-container .actions-column button:hover,
.bulk-actions-toolbar button:hover {
    background-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(215, 0, 21, 0.25) !important;
}

/* 模态框标题栏按钮统一红字白底 */
.modal-header-actions .btn-primary,
.modal-header-actions .btn-secondary {
    background-color: #ffffff !important;
    color: var(--apple-red) !important;
    border: 1px solid var(--apple-red) !important;
}
.modal-header-actions .btn-primary:hover,
.modal-header-actions .btn-secondary:hover {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(215, 0, 21, 0.25) !important;
}

/* 模态框样式 - 苹果风格 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalFadeIn 0.2s ease-out;
}

.modal-content {
    background-color: white;
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h3 {
    font-size: 24px;
    color: white;
    margin: 0;
    font-weight: 600;
}

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

.modal-header-actions .btn-primary,
.modal-header-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.modal-header-actions .btn-primary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header-actions .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-header-actions .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.modal-actions {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background-color: #f8f9fa;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    background: #fafbfc;
}

/* 当选择黄箱时显示瓦纸长、瓦纸宽 */
.type-huangxiang #product-tilePaperLength,
.type-huangxiang #product-tilePaperWidth,
.type-huangxiang label[for="product-tilePaperLength"],
.type-huangxiang label[for="product-tilePaperWidth"],
.type-huangxiang .form-group:has(#product-tilePaperLength),
.type-huangxiang .form-group:has(#product-tilePaperWidth) {
    display: block !important;
}

/* 当选择彩箱时显示瓦纸长、瓦纸宽、面纸长、面纸宽 */
.type-caixiang #product-tilePaperLength,
.type-caixiang #product-tilePaperWidth,
.type-caixiang #product-surfacePaperLength,
.type-caixiang #product-surfacePaperWidth,
.type-caixiang label[for="product-tilePaperLength"],
.type-caixiang label[for="product-tilePaperWidth"],
.type-caixiang label[for="product-surfacePaperLength"],
.type-caixiang label[for="product-surfacePaperWidth"],
.type-caixiang .form-group:has(#product-tilePaperLength),
.type-caixiang .form-group:has(#product-tilePaperWidth),
.type-caixiang .form-group:has(#product-surfacePaperLength),
.type-caixiang .form-group:has(#product-surfacePaperWidth) {
    display: block !important;
}

/* 当选择天地盖类型时显示天地盖分段区域 */
.type-tiandigai .tiandigai-section {
    display: block !important;
}

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

/* 表单增强样式 */
.form-section {
    margin-bottom: 16px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

/* 尺寸预览样式 */
.size-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.size-preview:not(:empty) {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

/* 隐藏所有字段下的提示内容 */
.form-help {
    display: none !important;
}

/* 减少行高，让其略高于字体高度 */
.form-row {
    gap: 10px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 5px !important;
}

.form-group label {
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 10px;
    line-height: 1.2;
}

/* 表单行基础样式 */
.form-row {
    display: flex !important;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* 基本信息部分 - 一行5个字段 */
.form-section h4:nth-of-type(1) + .form-row .form-group {
    flex: 1;
    min-width: calc(20% - 8px); /* 一行5个字段，减去间距 */
    max-width: calc(20% - 8px);
    margin-bottom: 8px;
}

/* 材质信息部分 - 一行5个字段 */
.form-section h4:nth-of-type(2) ~ .form-row .form-group {
    flex: 1;
    min-width: calc(20% - 8px); /* 一行5个字段，减去间距 */
    max-width: calc(20% - 8px);
    margin-bottom: 8px;
}

/* 确保所有隐藏字段不占用空间 */
.form-group[style*="visibility: hidden"],
.form-group.hidden-field,
.surface-paper-field[style*="display: none"],
.form-section:nth-child(3) .form-row .form-group[style*="visibility: hidden"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 报价明细部分 - 一行5个字段 */
.form-section:nth-child(3) .form-row .form-group {
    flex: 1;
    min-width: calc(20% - 8px); /* 一行5个字段，减去间距 */
    max-width: calc(20% - 8px);
    margin-bottom: 8px;
}

/* 确保嵌套的row-field正常显示 */
.column-group .row-field {
    margin-bottom: 8px;
}

.column-group .row-field:last-child {
    margin-bottom: 0;
}

/* 表单组样式 */
.form-group {
    position: relative;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}



/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar a {
        padding: 15px 0;
        text-align: center;
        font-size: 0;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
    }
    
    .search-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .search-box button {
        width: 100%;
        justify-content: center;
    }
    
    /* 响应式表单布局 - 平板设备上统一显示2个字段 */
    .form-section h4:nth-of-type(1) + .form-row .form-group,
    .form-section h4:nth-of-type(2) ~ .form-row .form-group,
    .form-section:nth-child(3) .form-row .form-group {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    /* 手机设备上统一显示1个字段 */
    .form-section h4:nth-of-type(1) + .form-row .form-group,
    .form-section h4:nth-of-type(2) ~ .form-row .form-group,
    .form-section:nth-child(3) .form-row .form-group {
        min-width: 100%;
        max-width: 100%;
    }
}
/* 产品卡片操作区：复制与删除按钮水平排列 */
.product-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.product-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.product-action-btn.copy { background-color: #f0f0f0; }
.product-action-btn.delete { background-color: #ffeaea; color: #b00020; }
/* Hide debug overlay by default */
#debug-overlay {
  display: none !important;
}

/* 强制显示“全/对开”字段（防止被其他规则隐藏） */
.form-group:has(#product-fullHalf) {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  width: auto !important;
}

/* 保持“全/对开”字段在基本信息行的布局宽度 */
.form-section h4:nth-of-type(1) + .form-row .form-group:has(#product-fullHalf) {
  flex: 1;
  min-width: calc(20% - 15px);
  max-width: calc(20% - 15px);
  margin-bottom: 15px;
}
/* 输入锁定功能样式 */
.input-with-lock {
    position: relative;
}
.input-with-lock input[type="number"],
.input-with-lock input[type="text"] {
    padding-right: 28px; /* 为锁图标预留空间 */
}
.lock-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 14px;
    z-index: 2;
}
.lock-toggle.locked {
    color: #d35400; /* 橙色系 */
}
.input-locked {
    background-color: #ffe0b2 !important; /* 浅橙色背景 */
}
