/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --primary-dark: #096dd9;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-primary: #262626;
    --text-secondary: #595959;
    --text-tertiary: #8c8c8c;
    --bg-primary: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #d9d9d9;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 70px;
    min-height: 100vh;
}

/* ==================== 头部 ==================== */
.app-header {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    padding: 24px 20px;
    text-align: center;
    color: white;
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ==================== 搜索区域 ==================== */
.search-section {
    background: var(--bg-white);
    margin: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.tab-content {
    display: none;
    padding: 16px;
}

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

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:active {
    background: var(--primary-dark);
}

/* 筛选 */
.filter-row {
    margin-bottom: 12px;
}

.filter-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: white;
    outline: none;
}

/* ==================== 列表样式 ==================== */
.country-list, .car-list {
    max-height: 400px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

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

.list-item:active {
    background: #f5f5f5;
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e6f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.list-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-subtitle {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.list-item-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.badge-authorized {
    background: #f6ffed;
    color: var(--success-color);
}

.badge-unauthorized {
    background: #f6ffed;
    color: #52c41a;
}

.badge-self-auth {
    background: #fff7e6;
    color: #fa8c16;
}

.badge-gm-auth {
    background: #fffbe6;
    color: #d4a017;
}

.badge-forbidden {
    background: #fff2f0;
    color: #ff4d4f;
}

.badge-contacting {
    background: #fffbe6;
    color: var(--warning-color);
}

.badge-continent {
    background: #e6f7ff;
    color: var(--primary-color);
}

.list-item-arrow {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-left: 8px;
}

/* 车型卡片 */
.car-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.car-card:active {
    box-shadow: var(--shadow-hover);
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.car-card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.car-card-code {
    font-size: 0.8125rem;
    color: var(--primary-color);
    background: #e6f7ff;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 8px;
}

.car-card-type {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.car-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.car-card-tag {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.car-card-prices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.car-card-price {
    font-size: 0.875rem;
}

.car-card-price .label {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.car-card-price .value {
    color: var(--error-color);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ==================== 统计区域 ==================== */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    margin: 12px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ==================== 弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
}

.modal-body {
    padding: 16px 20px;
    max-height: calc(85vh - 60px);
    overflow-y: auto;
}

/* ==================== 国家详情 ==================== */
.country-info {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 16px;
}

.country-info.unauthorized {
    background: #fff2f0;
    border-color: #ffccc7;
}

.country-info.contacting {
    background: #fffbe6;
    border-color: #ffe58f;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 80px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-value {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 16px 0 12px;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

/* 车型表格 */
.cars-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cars-table {
    table-layout: fixed;
    width: 100%;
    min-width: 556px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.cars-table th,
.cars-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* 复选框列 */
.cars-table th:first-child,
.cars-table td:first-child {
    width: 36px;
    min-width: 36px;
    text-align: center;
}

/* 推广命名允许换行 */
.cars-table th:nth-child(2),
.cars-table td:nth-child(2) {
    width: 120px;
    min-width: 120px;
    white-space: normal;
    word-break: break-all;
    vertical-align: top;
}

/* 推广命名主标题最多2行 */
.cars-table td:nth-child(2) > div:first-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 3.0em;
}

/* 版本/型号副标题最多2行 */
.cars-table td:nth-child(2) > div:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 3.0em;
    margin-top: 2px;
}

/* 授权状态列 */
.cars-table th:nth-child(3),
.cars-table td:nth-child(3) {
    width: 76px;
    min-width: 76px;
    text-align: center;
}

/* 车型代码 */
.cars-table th:nth-child(4),
.cars-table td:nth-child(4) {
    width: 58px;
    min-width: 58px;
}

/* 发动机代码 */
.cars-table th:nth-child(5),
.cars-table td:nth-child(5) {
    width: 82px;
    min-width: 82px;
    white-space: normal;
    word-break: break-all;
}

/* 发动机代码内容最多3行 */
.engine-code-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 4.2em;
}

/* 库存 */
.cars-table th:nth-child(6),
.cars-table td:nth-child(6) {
    width: 40px;
    min-width: 40px;
    text-align: center;
}

/* FOB(RMB) */
.cars-table th:nth-child(7),
.cars-table td:nth-child(7) {
    width: 72px;
    min-width: 72px;
}

/* FOB(USD) */
.cars-table th:nth-child(8),
.cars-table td:nth-child(8) {
    width: 72px;
    min-width: 72px;
}

.cars-table th {
    background: #fafafa;
    font-weight: 500;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    font-size: 0.7rem;
    padding: 4px 3px;
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
}

.cars-table tr:active {
    background: #f5f5f5;
}

.price-rmb {
    color: var(--error-color);
    font-weight: 500;
}

.price-usd {
    color: var(--success-color);
    font-weight: 500;
}

/* 价格增幅相关样式 */
.adjusted-price {
    font-weight: 600;
    font-size: 0.9375rem;
}

.price-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 0.75rem;
    color: #8c8c8c;
    text-decoration: line-through;
}

.adjustment-badge {
    display: inline-block;
    padding: 1px 6px;
    background: #fff7e6;
    color: #fa8c16;
    font-size: 0.6875rem;
    border-radius: 4px;
    font-weight: 500;
}

.price-adjustment-row .adjustment-value {
    color: #fa8c16;
    font-weight: 600;
    background: #fff7e6;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.875rem;
}

/* ==================== 国家车型筛选 ==================== */
.country-filter-section {
    padding: 12px;
    background: #f8fafc;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.country-filter-section .filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: white;
    min-width: 80px;
    max-width: 110px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-btn {
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-btn:active {
    background: var(--primary-dark);
}

/* ==================== 车型详情 ==================== */
.car-detail {
    padding: 8px 0;
}

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

.detail-section-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    width: 100px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-value {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.price-item {
    background: #fafafa;
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
}

.price-item.full-width {
    grid-column: 1 / -1;
}

.price-item-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.price-item-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--error-color);
}

.price-item-value.usd {
    color: var(--success-color);
}

/* ==================== 加载更多 ==================== */
.load-more {
    text-align: center;
    padding: 16px;
}

.load-more button {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    display: flex;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 0.6875rem;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

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

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 0.9375rem;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .app-header {
        padding: 20px 16px;
    }
    
    .search-section {
        margin: 8px;
    }
    
    .stats-section {
        margin: 8px;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bfbfbf;
}

/* ==================== 库存表格样式 ==================== */
.inventory-table-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.inventory-table th,
.inventory-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.inventory-table th {
    background: #fafafa;
    font-weight: 500;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    font-size: 0.75rem;
}

.inventory-table tr:last-child td {
    border-bottom: none;
}

.inventory-table tr:nth-child(even) {
    background: #fafafa;
}

/* ==================== 导出功能样式 ==================== */

/* 车型卡片中的操作栏 */
.car-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.car-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.car-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.car-detail-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* 导出操作栏 */
.export-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    margin: 0 12px 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 70px;
    z-index: 50;
}

.modal-export-actions {
    position: sticky;
    bottom: -16px;
    margin: 8px -20px -16px;
    padding: 12px 20px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.export-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.export-add-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.3s;
}

.export-add-btn:active {
    background: var(--primary-dark);
}

/* 悬浮导出按钮 */
.export-fab {
    position: fixed;
    right: 16px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
    cursor: pointer;
    z-index: 200;
    transition: transform 0.2s;
}

.export-fab:active {
    transform: scale(0.95);
}

.export-fab-icon {
    font-size: 1.5rem;
}

.export-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4d4f;
    color: white;
    font-size: 0.6875rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 600;
}

/* 导出列表弹窗 */
.export-list-content {
    max-height: 90vh;
}

.export-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

.remove-selected-btn {
    padding: 6px 12px;
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    cursor: pointer;
}

.export-list-container {
    max-height: calc(90vh - 220px);
    overflow-y: auto;
}

.export-list-item {
    padding: 14px 12px;
    background: #fafafa;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.export-item-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.export-item-checkbox {
    flex-shrink: 0;
    padding-top: 2px;
}

.export-item-checkbox input {
    width: 18px;
    height: 18px;
}

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

.export-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-all;
}

.export-item-code {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.export-item-remove {
    background: none;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 4px;
    flex-shrink: 0;
}

.export-item-remove:active {
    opacity: 1;
}

.export-item-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding-left: 28px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 40px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 0.875rem;
    -moz-appearance: textfield;
}

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

.addon-select {
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8125rem;
    background: white;
    min-width: 70px;
}

.markup-group {
    flex: 1;
    min-width: 140px;
}

.markup-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.markup-type-select {
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8125rem;
    background: white;
    min-width: 90px;
}

.markup-value-input {
    width: 70px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8125rem;
}

.export-list-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.export-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

/* 导出设置弹窗 */
.export-settings-content {
    max-height: 90vh;
}

.export-settings-section {
    margin-bottom: 16px;
}

.export-settings-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.export-settings-title .required {
    color: #ff4d4f;
}

.export-select,
.export-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: white;
    outline: none;
}

.export-select:focus,
.export-input:focus {
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-label {
    font-size: 0.9375rem;
    color: var(--text-primary);
    padding: 8px 0;
}

.export-settings-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.btn-primary {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-secondary {
    padding: 10px 24px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    cursor: pointer;
}

/* 导出进度弹窗 */
.progress-content {
    max-width: 280px;
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 32px 24px;
}

.progress-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.progress-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e6f7ff;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.progress-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s;
    width: 0%;
}

.progress-percent {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
