/* ========== Apple-inspired Design System ========== */
:root {
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-blue-light: #e8f4fd;
    --apple-green: #34c759;
    --apple-green-light: #e5f5ea;
    --apple-orange: #ff9500;
    --apple-orange-light: #fff4e5;
    --apple-red: #ff3b30;
    --apple-red-light: #ffe5e3;
    --apple-gray: #f5f5f7;
    --apple-gray-2: #e8e8ed;
    --apple-gray-3: #d2d2d7;
    --apple-gray-4: #86868b;
    --apple-gray-5: #6e6e73;
    --apple-text: #1d1d1f;
    --apple-text-secondary: #86868b;
    --apple-white: #ffffff;
    --apple-black: #000000;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 980px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

    /* 别名变量 - 兼容旧代码中的短名引用 */
    --gray-400: var(--apple-gray-3);
    --gray-500: var(--apple-gray-5);
    --gray-600: var(--apple-gray-5);
    --gray-900: var(--apple-text);
    --danger: var(--apple-red);
    --primary: var(--apple-blue);
    --success: var(--apple-green);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--apple-white);
    color: var(--apple-text);
    line-height: 1.47059;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 导航栏 - Apple风格 ========== */
.navbar {
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--apple-gray-3);
    color: var(--apple-text);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
}

.navbar-brand {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--apple-text);
    letter-spacing: -0.022em;
}

.navbar-brand img {
    height: 38px;
    width: auto;
    display: block;
}

.navbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ========== 按钮 - Apple风格 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.btn-primary {
    background: var(--apple-blue);
    color: #fff;
}
.btn-primary:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
}
.btn-primary:active { transform: scale(0.98); }

.btn-success {
    background: var(--apple-green);
    color: #fff;
}
.btn-success:hover { opacity: 0.9; transform: scale(1.02); }

.btn-danger {
    background: var(--apple-red);
    color: #fff;
}
.btn-danger:hover { opacity: 0.9; transform: scale(1.02); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--apple-gray-3);
    color: var(--apple-text);
}
.btn-outline:hover {
    background: var(--apple-gray);
    border-color: var(--apple-gray-2);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.container-narrow {
    max-width: 800px;
}

/* ========== 管理后台 ========== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.021em;
    color: var(--apple-text);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding: 4px;
    background: var(--apple-gray);
    border-radius: var(--radius-pill);
    width: fit-content;
}

.admin-tab {
    padding: 10px 24px;
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 14px;
    color: var(--apple-gray-5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
}

.admin-tab.active {
    background: var(--apple-white);
    color: var(--apple-text);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.admin-tab:hover { color: var(--apple-text); }

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

/* ========== 产品卡片网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--apple-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1.5px solid transparent;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card.selected {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px var(--apple-blue-light), var(--shadow-md);
}

.product-card .check-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--apple-blue);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,113,227,0.3);
}

.product-card.selected .check-overlay { display: flex; }

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--apple-gray);
    display: block;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--apple-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-gray-4);
    font-size: 48px;
}

.product-info {
    padding: 16px 18px 12px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--apple-text);
    letter-spacing: -0.01em;
}

.product-model {
    font-size: 13px;
    color: var(--apple-gray-4);
    margin-bottom: 6px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--apple-text);
    letter-spacing: -0.02em;
}

.product-actions {
    padding: 0 18px 16px;
    display: flex;
    gap: 8px;
}

/* ========== 表格 ========== */
.table-container {
    background: var(--apple-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    overflow-x: auto;
    border: 1px solid var(--apple-gray-2);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

table.data-table th {
    background: var(--apple-gray);
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-gray-5);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

table.data-table td {
    padding: 14px 20px;
    border-top: 1px solid var(--apple-gray-2);
    font-size: 14px;
    color: var(--apple-text);
}

table.data-table tr:hover { background: var(--apple-gray); }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.status-pending { background: var(--apple-orange-light); color: #9a5b00; }
.status-submitted { background: var(--apple-green-light); color: #0a5c22; }
.status-new { background: var(--apple-blue-light); color: #004a8f; }
.status-confirmed { background: var(--apple-green-light); color: #0a5c22; }
.status-completed { background: #f0eaff; color: #5a2ea6; }

/* ========== 模态框 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--apple-gray-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.021em;
}

.modal-body { padding: 28px; }
.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--apple-gray-2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========== 表单 ========== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--apple-gray-3);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--apple-white);
    color: var(--apple-text);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px var(--apple-blue-light);
}

.form-textarea { min-height: 100px; resize: vertical; }

/* ========== 客户报价页面 ========== */
.quote-header {
    background: var(--apple-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    border: 1px solid var(--apple-gray-2);
    text-align: center;
}

.quote-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.021em;
    color: var(--apple-text);
}

.quote-meta {
    color: var(--apple-gray-4);
    font-size: 15px;
    font-weight: 400;
}

/* 产品行（客户填写页） */
.quote-item {
    background: var(--apple-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    padding: 18px 24px;
    gap: 18px;
    border: 1px solid var(--apple-gray-2);
    transition: all 0.2s;
}

.quote-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--apple-gray-3);
}

.quote-item-image {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--apple-gray);
    flex-shrink: 0;
}

.quote-item-image-placeholder {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    background: var(--apple-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-gray-4);
    font-size: 32px;
    flex-shrink: 0;
}

.quote-item-info { flex: 1; min-width: 0; }

.quote-item-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.quote-item-model {
    font-size: 13px;
    color: var(--apple-gray-4);
    margin-bottom: 4px;
}

.quote-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--apple-text);
}

.qty-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--apple-gray-3);
    background: var(--apple-white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--apple-text);
}

.qty-btn:hover {
    background: var(--apple-gray);
    border-color: var(--apple-gray-2);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--apple-gray-3);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-text);
    background: var(--apple-white);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus { outline: none; border-color: var(--apple-blue); box-shadow: 0 0 0 3px var(--apple-blue-light); }

.quote-item-subtotal {
    min-width: 110px;
    text-align: right;
    flex-shrink: 0;
}

.quote-item-subtotal-label {
    font-size: 12px;
    color: var(--apple-gray-4);
}

.quote-item-subtotal-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--apple-text);
    letter-spacing: -0.02em;
}

/* 客户信息表单 */
.customer-form {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--apple-gray-2);
}

.customer-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.021em;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 底部汇总栏 */
.quote-summary {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 32px;
    margin-bottom: 32px;
    position: sticky;
    bottom: 24px;
    border: 1px solid var(--apple-gray-2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
}

.summary-total {
    border-top: 1px solid var(--apple-gray-2);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--apple-text);
    letter-spacing: -0.021em;
}

/* 保存提示 */
.save-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--apple-text);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.save-indicator.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 订单打印页面 ========== */
.order-doc {
    background: var(--apple-white);
    max-width: 800px;
    margin: 40px auto;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--apple-gray-2);
}

.order-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    border-bottom: 2px solid var(--apple-text);
    padding-bottom: 20px;
}

.order-doc-company {
    font-size: 26px;
    font-weight: 700;
    color: var(--apple-text);
    letter-spacing: -0.021em;
}

.order-doc-subtitle {
    font-size: 13px;
    color: var(--apple-gray-4);
    margin-top: 6px;
    line-height: 1.5;
}

.order-doc-meta {
    text-align: right;
    font-size: 13px;
    color: var(--apple-gray-5);
    line-height: 1.6;
}

.order-doc-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 2px;
    color: var(--apple-text);
}

.order-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.order-doc-table th {
    background: var(--apple-text);
    color: #fff;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.02em;
}

.order-doc-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--apple-gray-2);
    font-size: 14px;
    color: var(--apple-text);
}

.order-doc-table .text-right { text-align: right; }
.order-doc-table .text-center { text-align: center; }

.order-doc-total {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 36px;
}

.order-doc-total-box {
    min-width: 300px;
}

.order-doc-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--apple-gray-5);
}

.order-doc-total-final {
    border-top: 2px solid var(--apple-text);
    margin-top: 10px;
    padding-top: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--apple-text);
    letter-spacing: -0.021em;
}

.order-doc-signature {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    font-size: 14px;
    color: var(--apple-gray-5);
}

.signature-block {
    text-align: center;
}

.signature-line {
    border-bottom: 1px solid var(--apple-gray-3);
    width: 220px;
    height: 48px;
    margin-bottom: 6px;
}

/* ========== 语言下拉菜单 ========== */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--apple-gray-3);
    background: var(--apple-white);
    color: var(--apple-text);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-dropdown-btn:hover {
    background: var(--apple-gray);
    border-color: var(--apple-gray-2);
}

.lang-btn-globe { font-size: 15px; line-height: 1; }
.lang-btn-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

.lang-arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s;
    opacity: 0.5;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--apple-white);
    border: 1px solid var(--apple-gray-2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    max-height: 380px;
    overflow-y: auto;
    min-width: 190px;
    z-index: 200;
    animation: langDropdownIn 0.2s ease;
}

.lang-dropdown.open .lang-dropdown-menu { display: block; }

@keyframes langDropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--apple-text);
    transition: background 0.15s;
    white-space: nowrap;
}

.lang-dropdown-item:hover { background: var(--apple-gray); }

.lang-dropdown-item.active {
    background: var(--apple-blue-light);
    color: var(--apple-blue);
    font-weight: 600;
}

.lang-dropdown-item .lang-flag { font-size: 18px; line-height: 1; }

/* 滚动条美化 */
.lang-dropdown-menu::-webkit-scrollbar { width: 6px; }
.lang-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--apple-gray-3);
    border-radius: 3px;
}

/* ========== 翻译 Loading 遮罩 ========== */
.translate-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.translate-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--apple-gray-2);
    border-top-color: var(--apple-blue);
    border-radius: 50%;
    animation: translate-spin 0.8s linear infinite;
}

.translate-loading-text {
    font-size: 15px;
    color: var(--apple-gray-5);
    font-weight: 500;
}

@keyframes translate-spin {
    to { transform: rotate(360deg); }
}

/* ========== RTL 支持 ========== */
body.rtl { direction: rtl; }
body.rtl .navbar-actions { flex-direction: row-reverse; }
body.rtl .quote-item { flex-direction: row-reverse; }
body.rtl .order-doc-header { flex-direction: row-reverse; }
body.rtl .text-right { text-align: left !important; }

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--apple-gray-4);
}

.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.6; }
.empty-state-text { font-size: 16px; font-weight: 500; }

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 76px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show { transform: translateX(0); }
.toast-success { background: var(--apple-green); color: #fff; }
.toast-error { background: var(--apple-red); color: #fff; }
.toast-info { background: var(--apple-blue); color: #fff; }

/* ========== 打印样式 ========== */
@media print {
    body { background: #fff; color: #000; }
    .navbar, .no-print, .quote-summary, .save-indicator, .toast { display: none !important; }
    .order-doc {
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
    .order-doc-header { page-break-inside: avoid; }
    .order-doc-table { page-break-inside: auto; }
    .order-doc-table tr { page-break-inside: avoid; }
    @page {
        size: A4;
        margin: 15mm;
    }
}

/* ========== 导航链接 ========== */
.nav-link {
    color: var(--apple-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
    opacity: 0.88;
}
.nav-link:hover { opacity: 1; background: var(--apple-gray); }
.nav-link.active { font-weight: 600; opacity: 1; }

/* ========== 主页 - Hero ========== */
.hero {
    background: var(--apple-gray);
    padding: 100px 24px 80px;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--apple-text);
    margin-bottom: 4px;
}
.hero-title-2 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--apple-text);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--apple-blue), #6e8eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 19px;
    line-height: 1.5;
    color: var(--apple-gray-5);
    max-width: 640px;
    margin: 0 auto 36px;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== 主页 - 数据亮点 ========== */
.stats-section {
    padding: 64px 24px;
    background: var(--apple-white);
}
.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--apple-text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-number span {
    color: var(--apple-blue);
}
.stat-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--apple-gray-5);
    font-weight: 500;
}

/* ========== 主页 - 产品品类 ========== */
.categories-section {
    padding: 80px 24px;
    background: var(--apple-gray);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.022em;
    color: var(--apple-text);
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--apple-gray-5);
    font-weight: 400;
}
.category-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.category-card {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: block;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    font-size: 44px;
    margin-bottom: 16px;
}
.category-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.category-desc {
    font-size: 14px;
    color: var(--apple-gray-5);
}

/* ========== 主页 - 关于我们 ========== */
.about-section {
    padding: 80px 24px;
    background: var(--apple-white);
}
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.about-text .section-title {
    text-align: left;
    font-size: 32px;
    margin-bottom: 20px;
}
.about-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--apple-gray-5);
    margin-bottom: 16px;
}
.about-features {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--apple-text);
    font-weight: 500;
}
.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--apple-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.about-contact {
    background: var(--apple-gray);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.qr-section {
    margin-bottom: 20px;
}

.qr-image {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: var(--apple-white);
    display: block;
    margin: 0 auto;
}
.about-contact h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    color: var(--apple-text);
}
.contact-item { margin-bottom: 16px; }
.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-gray-4);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.contact-value {
    font-size: 14px;
    color: var(--apple-text);
    line-height: 1.5;
}

/* ========== Storefront Section ========== */
.storefront-section {
    padding: 80px 24px;
    background: var(--apple-gray);
}
.storefront-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.storefront-card {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.storefront-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.storefront-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 800px;
    margin: 0 auto;
    background: var(--apple-gray-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.storefront-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.storefront-placeholder {
    font-size: 64px;
    color: var(--apple-gray-4);
}
.storefront-info {
    padding: 24px 28px;
}
.storefront-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--apple-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.storefront-address {
    font-size: 14px;
    color: var(--apple-gray-5);
    line-height: 1.5;
}
@media (max-width: 768px) {
    .storefront-grid { grid-template-columns: 1fr; gap: 24px; }
    .storefront-section { padding: 48px 20px; }
}

/* ========== Storefront Admin ========== */
.storefront-admin-wrap {
    max-width: 900px;
    margin: 0 auto;
}
.storefront-admin-header {
    margin-bottom: 32px;
}
.storefront-admin-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--apple-text);
    margin-bottom: 8px;
}
.storefront-admin-tip {
    font-size: 14px;
    color: var(--apple-gray-5);
    line-height: 1.5;
}
.storefront-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.storefront-admin-card {
    background: var(--apple-white);
    border: 1px solid var(--apple-gray-2);
    border-radius: var(--radius-md);
    padding: 24px;
}
.storefront-admin-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 16px;
}
.storefront-upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 280px;
    margin: 0 auto;
    border: 2px dashed var(--apple-gray-3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}
.storefront-upload-box:hover {
    border-color: var(--apple-blue);
    background: var(--apple-blue-light);
}
.storefront-upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.storefront-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--apple-gray-4);
}
.storefront-upload-placeholder span:first-child {
    font-size: 36px;
}
.storefront-upload-placeholder span:nth-child(2) {
    font-size: 14px;
    font-weight: 500;
}
.storefront-upload-placeholder small {
    font-size: 12px;
    color: var(--apple-gray-4);
}
@media (max-width: 768px) {
    .storefront-admin-grid { grid-template-columns: 1fr; }
}

/* ========== Footer ========== */
.footer {
    background: var(--apple-text);
    color: #f5f5f7;
    padding: 40px 24px;
}
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}
.footer-brand img { height: 32px; }
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 13px;
    color: #6e6e73;
}

/* ========== 产品目录页 ========== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.022em;
    color: var(--apple-text);
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 17px;
    color: var(--apple-gray-5);
}

.filter-bar {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--apple-gray-2);
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-gray-4);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-tag {
    padding: 6px 16px;
    border: 1px solid var(--apple-gray-3);
    background: var(--apple-white);
    color: var(--apple-gray-5);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.filter-tag:hover {
    border-color: var(--apple-gray-2);
    background: var(--apple-gray);
}
.filter-tag.active {
    background: var(--apple-text);
    color: #fff;
    border-color: var(--apple-text);
}

.product-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--apple-gray-5);
    font-weight: 500;
}

.product-catalog-card {
    cursor: default;
    border: 1px solid var(--apple-gray-2);
}
.product-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--apple-blue-light);
    color: #004a8f;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bottom-cta {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--apple-gray), #ebedf0);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.bottom-cta-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    color: var(--apple-text);
}
.bottom-cta-text p {
    font-size: 15px;
    color: var(--apple-gray-5);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .container { padding: 20px 16px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .quote-item { flex-wrap: wrap; padding: 14px; }
    .quote-item-subtotal { width: 100%; text-align: left; margin-top: 8px; }
    .customer-form-grid { grid-template-columns: 1fr; }
    .navbar-brand { font-size: 15px; }
    .navbar-brand img { height: 30px; }
    .navbar-actions { gap: 4px; }
    .nav-link { padding: 4px 8px; font-size: 13px; }
    .quote-title { font-size: 28px; }
    .order-doc { padding: 24px; margin: 16px; }
    .order-doc-header { flex-direction: column; gap: 12px; }
    .order-doc-meta { text-align: left; }
    .admin-header h2 { font-size: 24px; }
    /* Homepage responsive */
    .hero { padding: 60px 20px 50px; }
    .hero-title, .hero-title-2 { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-number { font-size: 36px; }
    .categories-section, .about-section { padding: 48px 20px; }
    .category-grid { grid-template-columns: 1fr; }
    .about-container { grid-template-columns: 1fr; gap: 32px; }
    .section-title { font-size: 28px; }
    .footer-content { flex-direction: column; text-align: center; }
    /* Products page responsive */
    .filter-bar { flex-direction: column; gap: 16px; padding: 20px; }
    .page-title { font-size: 28px; }
    .bottom-cta { flex-direction: column; text-align: center; padding: 28px 20px; }
    /* Auth page responsive */
    .auth-card { padding: 28px 20px; }
    .auth-page { padding: 20px; }
    .user-dropdown-btn .user-name { display: none; }
}

/* ========== 认证页面 ========== */
.auth-page {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apple-gray);
    padding: 40px 20px;
}

.auth-card {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    height: 56px;
    width: auto;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.022em;
    color: var(--apple-text);
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--apple-gray-5);
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-error {
    color: var(--apple-red);
    font-size: 14px;
    padding: 10px 14px;
    background: var(--apple-red-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--apple-gray-5);
}

.auth-footer a {
    color: var(--apple-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--apple-gray-4);
    padding: 10px;
    background: var(--apple-gray);
    border-radius: var(--radius-sm);
}

/* ========== 用户下拉菜单 ========== */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--apple-gray-3);
    background: var(--apple-white);
    color: var(--apple-text);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.user-dropdown-btn:hover {
    background: var(--apple-gray);
    border-color: var(--apple-gray-2);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--apple-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--apple-white);
    border: 1px solid var(--apple-gray-2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 180px;
    z-index: 200;
    animation: langDropdownIn 0.2s ease;
}

.user-dropdown.open .user-dropdown-menu { display: block; }

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--apple-text);
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.user-dropdown-item:hover { background: var(--apple-gray); }

.user-dropdown-divider {
    height: 1px;
    background: var(--apple-gray-2);
    margin: 4px 0;
}

/* ========== 购物车图标 ========== */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon {
    font-size: 18px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--apple-red);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ========== 产品卡片操作按钮 ========== */
.product-catalog-card .product-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

.product-catalog-card .product-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
}

/* ========== 3D 分类树侧边栏 ========== */
.product-admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.category-sidebar {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding-right: 4px;
}

.category-sidebar::-webkit-scrollbar { width: 5px; }
.category-sidebar::-webkit-scrollbar-track { background: transparent; }
.category-sidebar::-webkit-scrollbar-thumb { background: var(--apple-gray-3); border-radius: 3px; }

.sidebar-section {
    background: var(--apple-white);
    border: 1px solid var(--apple-gray-2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sidebar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--apple-gray-2);
    background: var(--apple-gray);
}

.sidebar-section-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--apple-text);
    letter-spacing: -0.01em;
}

.category-tree-container {
    padding: 8px;
    min-height: 60px;
}

.keyword-list-container {
    padding: 8px;
    min-height: 40px;
}

/* 3D 树形按钮 */
.tree-node {
    margin-bottom: 4px;
}

.tree-node-children {
    margin-left: 18px;
    padding-left: 12px;
    border-left: 2px solid var(--apple-gray-2);
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.tree-node-children.collapsed {
    max-height: 0;
    opacity: 0;
}

.tree-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    color: var(--apple-text);
    overflow: hidden;
}

/* Level 1 - 品牌 3D 按钮 */
.tree-btn.level-1 {
    background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
    color: #fff;
    box-shadow: 0 3px 0 #0a0a0b, 0 4px 12px rgba(0,0,0,0.25);
    transform: perspective(400px) rotateX(0deg);
    border: 1px solid rgba(255,255,255,0.1);
}

.tree-btn.level-1:hover {
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    box-shadow: 0 5px 0 #003d7a, 0 8px 20px rgba(0,113,227,0.35);
    transform: perspective(400px) rotateX(-3deg) translateY(-1px);
}

.tree-btn.level-1:active {
    box-shadow: 0 1px 0 #0a0a0b;
    transform: perspective(400px) rotateX(0deg) translateY(2px);
}

.tree-btn.level-1.active {
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    box-shadow: 0 3px 0 #003d7a, 0 4px 16px rgba(0,113,227,0.4);
}

/* Level 2 - 系列 3D 按钮 */
.tree-btn.level-2 {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    color: var(--apple-text);
    box-shadow: 0 2px 0 #d2d2d7, 0 3px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--apple-gray-2);
}

.tree-btn.level-2:hover {
    background: linear-gradient(135deg, #e8f4fd 0%, #d0ebfc 100%);
    box-shadow: 0 3px 0 #a8d4f5, 0 5px 12px rgba(0,113,227,0.15);
    color: var(--apple-blue);
    transform: translateY(-1px);
}

.tree-btn.level-2:active {
    box-shadow: 0 1px 0 #d2d2d7;
    transform: translateY(1px);
}

.tree-btn.level-2.active {
    background: linear-gradient(135deg, #e8f4fd 0%, #d0ebfc 100%);
    color: var(--apple-blue);
    box-shadow: 0 2px 0 #a8d4f5, 0 3px 10px rgba(0,113,227,0.2);
    border-color: var(--apple-blue);
}

/* Level 3 - 型号 3D 按钮 */
.tree-btn.level-3 {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%);
    color: var(--apple-gray-5);
    box-shadow: 0 1px 0 #e8e8ed, 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid var(--apple-gray-2);
    font-size: 12px;
    padding: 7px 10px;
}

.tree-btn.level-3:hover {
    background: linear-gradient(135deg, #e5f5ea 0%, #d0f0d8 100%);
    box-shadow: 0 2px 0 #a8d4b8, 0 3px 8px rgba(52,199,89,0.12);
    color: #0a5c22;
    transform: translateY(-1px);
}

.tree-btn.level-3:active {
    box-shadow: 0 0 0 #e8e8ed;
    transform: translateY(1px);
}

.tree-btn.level-3.active {
    background: linear-gradient(135deg, #e5f5ea 0%, #d0f0d8 100%);
    color: #0a5c22;
    box-shadow: 0 2px 0 #a8d4b8, 0 3px 8px rgba(52,199,89,0.15);
    border-color: var(--apple-green);
}

/* 树节点图标和展开箭头 */
.tree-icon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.tree-arrow {
    font-size: 10px;
    flex-shrink: 0;
    transition: transform 0.2s;
    opacity: 0.6;
    width: 14px;
    text-align: center;
}

.tree-arrow.expanded { transform: rotate(90deg); }

.tree-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.tree-btn:hover .tree-actions { opacity: 1; }

.tree-action-btn {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.tree-action-btn:hover { background: rgba(255,255,255,0.3); }

.tree-btn.level-2 .tree-action-btn,
.tree-btn.level-3 .tree-action-btn {
    background: rgba(0,0,0,0.06);
}

.tree-btn.level-2 .tree-action-btn:hover,
.tree-btn.level-3 .tree-action-btn:hover {
    background: rgba(0,0,0,0.12);
}

.tree-add-child {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    margin-left: 18px;
    border: none;
    background: transparent;
    color: var(--apple-gray-4);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.tree-add-child:hover {
    background: var(--apple-blue-light);
    color: var(--apple-blue);
}

/* 关键字标签 */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    margin: 3px;
    background: linear-gradient(135deg, #fff4e5 0%, #ffe8cc 100%);
    border: 1px solid #ffd9a8;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: #9a5b00;
    box-shadow: 0 1px 3px rgba(255,149,0,0.1);
    transition: all 0.2s;
}

.keyword-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255,149,0,0.2);
}

.keyword-tag .kw-delete {
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(154,91,0,0.15);
    color: #9a5b00;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.keyword-tag .kw-delete:hover {
    background: var(--apple-red);
    color: #fff;
}

.keyword-tag .kw-edit {
    cursor: pointer;
    opacity: 0.6;
    font-size: 11px;
}

.keyword-tag .kw-edit:hover { opacity: 1; }

/* 响应式 - 小屏侧边栏折叠 */
@media (max-width: 900px) {
    .product-admin-layout {
        grid-template-columns: 1fr;
    }
    .category-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
}
