﻿/* ============================================================
   钢小算钢材计算器 - 品牌视觉设计系统
   主色：钢小红 #D93625  |  辅色：深蓝灰 #1a2332  |  点缀白 #ffffff
   ============================================================ */

/* ============ CSS 变量（品牌色板） ============ */
:root {
    --tys-orange:       #D93625;   /* 品牌红色 - 主品牌色 */
    --tys-orange-light: #FFF0F0;   /* 浅红底色 */
    --tys-orange-dark:  #C62828;   /* 深红（hover） */
    --tys-red:          #D93625;   /* 标语红色 */
    --tys-navy:         #1a2332;   /* 深蓝灰 - 导航栏/标题 */
    --tys-navy-light:   #243044;   /* 浅一级深蓝 */
    --tys-blue-accent:  #555555;   /* 深灰点缀 */
    --tys-blue-light:   #3a3a3e;   /* 深灰底 */
    --tys-text:         #222222;   /* 正文文字 */
    --tys-text-secondary:#5A6577;  /* 次要文字 */
    --tys-border:       #E2E6ED;   /* 边框颜色 */
    --tys-bg:           #F5F6FA;   /* 页面背景 */
    --tys-card:         #FFFFFF;   /* 卡片背景 */
    --tys-success:      #27AE60;   /* 成功/导出按钮绿 */
    --tys-radius:       12px;      /* 圆角 */
}

/* ============ 全局重置 ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--tys-bg);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--tys-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

/* ============ 顶部导航栏 ============ */
.tys-header {
    background: #eaecf0;
    border-bottom: 1px solid #d5d8dc;
    position: relative;
}

.tys-header::before {
    display: none;
}

/* ============ 钢小算 矢量Logo（红"算"版，浅色导航栏） ============ */
.tys-logo-area {
    display: flex;
    align-items: center;
    gap: 0;
}

.steel-logo {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-weight: 900;
    font-size: 30px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* 3D立体红点 */
.steel-logo-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 10px;
    background: radial-gradient(circle at 35% 30%, #ff6b6b 0%, #D93625 50%, #b71c1c 100%);
    box-shadow:
        inset 0 -2px 3px rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.15),
        0 0 8px rgba(217,54,37,0.4);
    position: relative;
    flex-shrink: 0;
}

.steel-logo-dot::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 3px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}

.steel-logo-gang {
    color: #1a1a1a;
}

.steel-logo-xiao {
    color: #1a1a1a;
    margin-left: 0;
}

.steel-logo-suan {
    color: #D93625;
    margin-left: 0;
    font-size: 34px;
}

.steel-logo-tagline {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    letter-spacing: 2px;
    margin-left: 20px;
    white-space: nowrap;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

.tys-brand-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tys-brand-cn {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.3;
}

.tys-brand-en {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.tys-header-tagline {
    background-color: var(--tys-red);
    color: #fff;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(217,53,37,0.3);
}

/* ============ 卡片样式 ============ */
.tys-card {
    background: var(--tys-card);
    border-radius: var(--tys-radius);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(228,232,239,0.6);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tys-card:hover {
    box-shadow:
        0 2px 6px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.1);
}

/* ============ 章节标题 ============ */
.tys-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tys-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tys-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--tys-orange), var(--tys-orange-dark));
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ============ 钢材类型选择按钮 ============ */
.type-btn {
    border: 2px solid var(--tys-border);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.type-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--tys-orange-light), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.type-btn:hover {
    border-color: var(--tys-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217,54,37,0.15);
}

.type-btn.active {
    border-color: var(--tys-orange);
    background: linear-gradient(180deg, var(--tys-orange-light), #fff);
    box-shadow: 0 2px 10px rgba(217,54,37,0.2);
}

.type-btn .type-icon {
    font-size: 26px;
    margin-bottom: 4px;
    display: block;
    width: 36px;
    height: 36px;
    margin-left: auto;
    margin-right: auto;
}

.type-btn .type-icon svg {
    width: 100%;
    height: 100%;
}

.type-btn .type-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tys-text);
}

.type-btn.active .type-label {
    color: var(--tys-orange-dark);
}

/* ============ 输入框 & 下拉框 ============ */
.tys-input,
.tys-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--tys-border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--tys-text);
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.tys-input:focus,
.tys-select:focus {
    border-color: var(--tys-orange);
    box-shadow: 0 0 0 3px rgba(217,54,37,0.12);
}

.tys-input::placeholder {
    color: #bbb;
}

.tys-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tys-text-secondary);
    margin-bottom: 6px;
}

/* ============ 按钮 ============ */
.tys-btn-primary {
    background: linear-gradient(135deg, var(--tys-orange), var(--tys-orange-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(217,54,37,0.25);
    letter-spacing: 0.5px;
}

.tys-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(217,54,37,0.35);
}

.tys-btn-primary:active {
    transform: translateY(0);
}

.tys-btn-export {
    background: linear-gradient(135deg, var(--tys-success), #1e8449);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(39,174,96,0.25);
    letter-spacing: 0.5px;
}

.tys-btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(39,174,96,0.35);
}

/* ============ 预览面板 ============ */
.preview-panel {
    position: sticky;
    top: 20px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--tys-navy);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tys-orange-light);
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.preview-label {
    color: var(--tys-text-secondary);
    flex-shrink: 0;
}

.preview-value {
    font-weight: 600;
    color: var(--tys-text);
    text-align: right;
}

.preview-value-highlight {
    color: var(--tys-blue-accent);
    font-weight: 700;
}

.preview-divider {
    height: 1px;
    background: var(--tys-border);
    margin: 8px 0;
}

.preview-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--tys-navy);
    padding: 6px 0 2px;
}

.preview-total-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--tys-blue-accent);
}

/* ============ 报价单列表 ============ */
.quote-item {
    background: var(--tys-bg);
    border-radius: 8px;
    padding: 6px 10px;
    position: relative;
    margin-bottom: 6px;
    margin-bottom: 8px;
    border-left: 3px solid var(--tys-orange);
    transition: background 0.15s ease;
}

.quote-item:hover {
    background: var(--tys-orange-light);
}

.quote-item-editing {
    background: #fff7ed !important;
    border-left-color: #d97706 !important;
    box-shadow: 0 0 0 2px rgba(217,119,6,0.25);
}

.quote-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 1px 4px;
    font-size: 14px;
    line-height: 1;
    border-radius: 3px;
}

.quote-btn-del {
    color: #ccc;
}
.quote-btn-del:hover {
    color: var(--tys-red);
    background: #fef2f2;
}

.quote-btn-edit {
    color: #aaa;
    font-size: 12px;
}
.quote-btn-edit:hover {
    color: var(--tys-blue-accent);
    background: #eff6ff;
}

.quote-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1.5px solid var(--tys-border);
    font-weight: 700;
    font-size: 14px;
}

/* ============ 负差滑块 ============ */
.deviation-panel {
    background: linear-gradient(135deg, var(--tys-orange-light), #FFF0F0);
    border: 1px solid rgba(217,54,37,0.2);
    border-radius: 10px;
    padding: 8px 12px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #FFCDD2, var(--tys-orange));
    outline: none;
    cursor: pointer;
    touch-action: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--tys-orange);
    box-shadow: 0 2px 8px rgba(217,54,37,0.3);
    cursor: grab;
    transition: all 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 14px rgba(217,54,37,0.45);
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--tys-orange);
    box-shadow: 0 2px 8px rgba(217,54,37,0.3);
    cursor: grab;
}

input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #FFCDD2, var(--tys-orange));
}

.deviation-value-display {
    font-weight: 800;
    color: var(--tys-orange-dark);
    font-size: 16px;
    min-width: 50px;
    text-align: right;
}

/* ============ 公式参考区 ============ */
.formula-box {
    background: #FAFBFC;
    border: 1px dashed var(--tys-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--tys-text-secondary);
    line-height: 1.8;
}

/* ============ 空状态提示 ============ */
.empty-state {
    text-align: center;
    padding: 24px 16px;
    color: #c0c5d0;
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    margin: 4px 0;
    font-size: 14px;
}

/* ============ 动画 ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tys-card {
    animation: fadeInUp 0.35s ease-out both;
}

.tys-card:nth-child(2) { animation-delay: 0.05s; }
.tys-card:nth-child(3) { animation-delay: 0.1s; }
.tys-card:nth-child(4) { animation-delay: 0.15s; }
.tys-card:nth-child(5) { animation-delay: 0.2s; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217,54,37,0.2); }
    50%      { box-shadow: 0 0 0 8px rgba(217,54,37,0); }
}

.tys-btn-primary:focus {
    animation: pulse-glow 1.5s infinite;
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b0b5bd; }

/* ============ 数字输入框隐藏箭头 ============ */
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================================
   手机端响应式适配（max-width: 768px）— 极简文字格
   ============================================================ */
@media (max-width: 768px) {
    /* 禁止左右晃动，允许纵向滚动 */
    html {
        overflow-x: hidden !important;
        height: 100% !important;
    }
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        min-height: 100% !important;
        width: 100% !important;
        overscroll-behavior-x: none !important;
    }
    #app {
        min-height: 100vh;
        overflow-x: hidden;
    }
    /* 解除 initApp 里 height:100vh + overflow:hidden 的锁定，让移动端自然滚动 */
    #app > div:first-child {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    /* 全局缩小 */
    body { font-size: 13px; }
    .container { padding-left: 6px !important; padding-right: 6px !important; }

    /* 顶部导航：极简 */
    .tys-header .container { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; padding: 6px 8px !important; }
    .steel-logo { font-size: 18px !important; }
    .steel-logo-suan { font-size: 22px !important; }
    .steel-logo-tagline { display: none !important; }

    /* Tab导航：纯文字横滑 */
    .tys-tab-nav .tys-tab-list {
        overflow-x: auto !important; white-space: nowrap !important;
        -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important;
        gap: 2px !important; padding: 2px 2px 4px !important;
        scrollbar-width: none; display: flex !important; width: 100vw !important;
    }
    .tys-tab-nav .tys-tab-list::-webkit-scrollbar { display: none; }
    .tys-tab-item {
        flex-shrink: 0 !important; padding: 7px 10px !important;
        font-size: 12px !important; min-width: auto !important;
    }
    /* 隐藏Tab图标，只留文字 */
    .tys-tab-item .tab-icon, .tys-tab-item svg, .tys-tab-item img { display: none !important; }

    /* 主内容区 */
    .tys-tab-content { padding: 6px 4px !important; flex: none !important; overflow-y: visible !important; min-height: auto !important; }

    /* 卡片 */
    .tys-card { padding: 10px 8px !important; border-radius: 8px !important; box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important; }

    /* 钢材类型按钮：纯文字标签，4列 */
    .type-btn-grid, .steel-type-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 4px !important; }
    .type-btn { padding: 6px 2px !important; }
    .type-btn .type-icon { display: none !important; }
    .type-btn .type-label { font-size: 11px !important; }

    /* 计算器输入区 */
    .calc-inputs, .spec-inputs { grid-template-columns: 1fr 1fr !important; gap: 4px !important; }

    /* 报价表单 */
    .qe-form, .quote-form { grid-template-columns: 1fr !important; }
    .qe-form-row, .form-row { flex-direction: column !important; gap: 4px !important; }
    .qe-form-grid, .qe-info-grid { grid-template-columns: 1fr !important; }

    /* 表格：极致紧凑横滑 */
    table { display: block !important; overflow-x: auto !important; white-space: nowrap !important; -webkit-overflow-scrolling: touch; width: 100% !important; font-size: 11px !important; }
    thead, tbody { display: table; width: 100%; }
    th, td { padding: 5px 3px !important; font-size: 11px !important; }
    .orders-table th, .orders-table td { font-size: 10px !important; padding: 4px 3px !important; }
    .qe-data-table-v2 { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; width: 100% !important; }

    /* 输入框 */
    input, select, textarea { font-size: 14px !important; }
    .tys-input, .tys-select, input[type="text"], input[type="number"], input[type="date"], select {
        min-height: 34px !important; font-size: 13px !important; padding: 5px 6px !important;
    }

    /* 按钮 */
    .tys-btn-primary, .tys-btn-export { min-height: 36px !important; font-size: 13px !important; padding: 8px 12px !important; }
    [onclick*="cycleOrderStatus"] { min-height: 28px !important; min-width: 56px !important; font-size: 10px !important; }

    /* 弹窗 */
    [id$="overlay"] { padding: 6px !important; }
    [id$="overlay"] > div, .modal-content, .overlay-content { max-width: 100% !important; max-height: 95vh !important; border-radius: 10px !important; margin: 0 !important; }

    /* 统计卡片 */
    .stats-cards, .summary-cards { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }

    /* 底部 */
    .footer, .tys-footer { flex-direction: column !important; text-align: center !important; gap: 4px !important; font-size: 11px !important; padding: 8px 6px !important; }

    /* 横滑区 */
    .range-selector, .tab-sub-nav { overflow-x: auto !important; flex-wrap: nowrap !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .range-selector::-webkit-scrollbar, .tab-sub-nav::-webkit-scrollbar { display: none; }

    /* 历史/客户 */
    .history-list, .quote-history-list { padding: 0 2px !important; }
    .customer-search-wrap { width: 100% !important; }

    /* 报价编辑器底部堆叠 */
    .qe-bottom-v2 { flex-direction: column !important; gap: 8px !important; }
    .qe-bottom-left, .qe-bottom-right { width: 100% !important; max-width: 100% !important; }

    /* 禁止点击输入框时自动缩放 */
    input, select, textarea { font-size: 16px !important; }
}

/* ============ 通用按钮过渡 ============ */
button {
    transition: all 0.2s ease;
}
button:hover {
    transform: translateY(-1px);
}
button:active {
    transform: translateY(0);
}

/* ============ 容器 ============ */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============ 手机端适配（已合并到上方 @media (max-width: 768px)） ============ */


@media (min-width: 769px) and (max-width: 1024px) {
    /* 平板适配 */
    .container {
        max-width: 95%;
    }
}

/* ============ 报价单编辑器 ============ */

/* 全屏遮罩 */
.qe-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部工具栏 */
.qe-toolbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 50;
    position: sticky;
    top: 0;
}

.qe-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qe-toolbar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2332;
    letter-spacing: 1px;
}

.qe-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qe-btn-back {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.qe-btn-back:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.qe-btn-word, .qe-btn-excel, .qe-btn-tool, .qe-btn-print {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1.5px solid;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.qe-btn-word  { color: #555555; border-color: #555555; }
.qe-btn-word:hover  { background: #555555; color: #fff; }
.qe-btn-excel { color: #D9984A; border-color: #D9984A; }
.qe-btn-excel:hover { background: #D9984A; color: #fff; }
.qe-btn-tool  { color: #059669; border-color: #059669; }
.qe-btn-tool:hover  { background: #059669; color: #fff; }
.qe-btn-print { color: #6b7280; border-color: #d1d5db; }
.qe-btn-print:hover { background: #6b7280; color: #fff; border-color: #6b7280; }

/* 纸张区域 */
.qe-paper-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    background: #f0f2f5;
}

.qe-paper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 36px 44px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
    border-radius: 6px;
    font-family: '微软雅黑', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* 顶部品牌 */
.qe-tys-logo {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 42pt;
    font-weight: 900;
    color: #D93625;
    margin: 0;
    letter-spacing: -2px;
    line-height: 1;
}

.qe-company-cn {
    font-size: 18pt;
    font-weight: 800;
    color: #374151;
    letter-spacing: 3px;
    margin: 0;
}

.qe-company-en {
    font-size: 9pt;
    color: #64748b;
    margin: 2px 0 0 0;
    letter-spacing: 1px;
}

.qe-tagline-badge {
    background: #D9984A;
    color: #fff;
    font-size: 9pt;
    padding: 4px 14px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* 品牌分隔线 */
.qe-brand-line {
    height: 3px;
    background: linear-gradient(to right, #555555 0%, #555555 45%, #D9984A 45%, #D9984A 100%);
    margin: 8px 0 18px 0;
    border-radius: 2px;
}

/* 报价单标题 */
.qe-title {
    text-align: center;
    font-size: 30pt;
    font-weight: 900;
    color: #374151;
    letter-spacing: 20px;
    margin: 24px 0 2px 0;
}

.qe-title-en {
    text-align: center;
    font-size: 11pt;
    color: #94a3b8;
    letter-spacing: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* 双栏信息区 */
.qe-info-grid {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.qe-info-card {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.qe-info-header {
    padding: 10px 16px;
    font-size: 12pt;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.qe-info-header-blue {
    background-color: #555555;
}

.qe-info-header-orange {
    background: linear-gradient(135deg, #D93625, #C62828);
}

.qe-info-header-dark {
    background-color: #555555;
}

.qe-info-row {
    padding: 10px 14px;
    font-size: 11pt;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    gap: 8px;
}

.qe-info-row-alt {
    background-color: #f9fafb;
}

.qe-info-label {
    color: #475569;
    font-weight: 600;
    min-width: 70px;
    flex-shrink: 0;
    font-size: 11pt;
}

.qe-info-input {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 3px 6px;
    font-size: 11pt;
    color: #374151;
    flex: 1;
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.qe-info-input:focus {
    border-bottom-color: #D93625;
}

/* 数据表格 */
.qe-data-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 3px solid #555555;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12pt;
}

.qe-data-table thead tr {
    background-color: #f1f5f9;
}

.qe-data-table th {
    border-bottom: 2px solid #cbd5e1;
    padding: 9px 12px;
    text-align: center;
    font-size: 11pt;
    color: #334155;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qe-data-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 7px 8px;
    font-size: 12pt;
    color: #111827;
    vertical-align: middle;
    word-break: break-all;
}

.qe-td-center {
    text-align: center;
    color: #9ca3af !important;
    font-weight: 500;
}

.qe-td-right {
    text-align: right !important;
}

.qe-input {
    border: none;
    border-bottom: 1px solid #d1d5db;
    padding: 2px 4px;
    font-size: 12pt;
    color: #111827;
    font-weight: 600;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.2s;
    word-break: break-all;
}

.qe-input:focus {
    border-bottom-color: #D93625;
}

.qe-input-sm {
    border: none;
    border-bottom: 1px solid #d1d5db;
    padding: 2px 4px;
    font-size: 11pt;
    color: #475569;
    background: transparent;
    outline: none;
    width: 100%;
    text-align: center;
    font-family: inherit;
    transition: border-color 0.2s;
}

.qe-input-sm:focus {
    border-bottom-color: #D93625;
}

.qe-input-num {
    border: none;
    border-bottom: 1px solid #d1d5db;
    padding: 2px 4px;
    font-size: 10pt;
    font-size: 12pt;
    color: #111827;
    background: transparent;
    outline: none;
    width: 100%;
    text-align: right;
    font-family: inherit;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

/* 数量输入框加宽 */
.qe-input-num[data-field="quantity"] { font-size: 10pt; width: 120px !important; min-width: 80px; }
/* 单价输入框缩短 */
.qe-input-num[data-field="unitPrice"] { font-size: 10pt; width: 60px !important; min-width: 40px; }

.qe-input-num:focus {
    border-bottom-color: #D93625;
}

.qe-input-num::-webkit-outer-spin-button,
.qe-input-num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qe-amount {
    text-align: left !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    font-size: 12.5pt !important;
    white-space: nowrap !important;
}

/* 规格输入框 - 缩小字号适应长规格 */
.qe-spec-input {
    font-size: 11pt !important;
}

/* 产品类别+规格型号 合并单元格弹性布局 - 一行不换行 */
.qe-type-spec-wrap { padding: 8px 6px !important; vertical-align: middle !important; }
.qe-ts-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}
.qe-type-inline {
    font-size: 10pt !important;
    min-width: 0;
    flex: 0 0 auto;
    width: 110px;
}
.qe-spec-inline {
    font-size: 10pt !important;
    min-width: 0;
    flex: 1 1 auto;
}

/* 合计行 - 深蓝底，更有质感 */

/* V2表格内输入框通用：允许换行、自动高度扩展 */
.qe-data-table-v2 input[type="text"],
.qe-data-table-v2 input[type="number"] {
    min-height: 28px;
    line-height: 1.4;
}

/* 合计行 - 深蓝底，更有质感 */
.qe-total-row {
    background-color: #555555 !important;
}

.qe-total-label {
    color: #e2e8f0 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    padding: 13px 20px !important;
    border: none !important;
    text-align: right !important;
}

.qe-total-amount {
    color: #fcd34d !important;
    font-size: 16pt !important;
    font-weight: 800 !important;
    text-align: left !important;
    border: none !important;
    padding: 13px 22px !important;
}

/* 费用子行 - 更精致的灰底 */
.qe-subtotal-row {
    background-color: #f8fafc !important;
}

.qe-subtotal-row + .qe-subtotal-row {
    border-top: 1px dashed #cbd5e1 !important;
}

.qe-subtotal-label {
    color: #64748b !important;
    font-size: 12pt;
    font-weight: 600;
    padding: 10px 20px !important;
    border: none !important;
    text-align: right !important;
}

.qe-subtotal-amount {
    color: #334155 !important;
    font-size: 13pt;
    font-weight: 700;
    text-align: left !important;
    border: none !important;
    padding: 10px 22px !important;
}

/* 运费金额蓝色 */
.qe-freight-amount {
    color: #2563eb !important;
}

/* 附加费金额紫色 */
.qe-extra-amount {
    color: #7c3aed !important;
}

/* 总计行 - 醒目双线 */
.qe-grand-total-row {
    background-color: #FFF5F5 !important;
    border-top: 3px solid #D93625 !important;
    box-shadow: inset 0 1px 0 0 #FECACA;
}

.qe-grand-total-label {
    color: #7F1D1D !important;
    font-size: 14pt;
    font-weight: 800;
    padding: 14px 20px !important;
    border: none !important;
    text-align: right !important;
}

.qe-grand-total-amount {
    color: #D93625 !important;
    font-size: 19pt !important;
    font-weight: 900 !important;
    text-align: left !important;
    border: none !important;
    padding: 14px 22px !important;
}

/* 交易方式 + 合计 */
.qe-bottom-section {
    display: flex;
    gap: 12px;
    margin: 14px 0;
    align-items: flex-start;
}

.qe-trading-method {
    flex: 1;
    font-size: 10pt;
    color: #6b7280;
    padding-top: 10px;
}

.qe-grand-total-box {
    border: 2px solid #D93625;
    background-color: #FFF5F5;
    padding: 14px 26px;
    text-align: right;
    font-size: 16pt;
    font-weight: 800;
    color: #7F1D1D;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(217,54,37,0.15);
}

.qe-grand-total-box span {
    color: #D93625;
    font-size: 16pt;
}

/* 备注 */
.qe-note-section {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.qe-note-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 11pt;
    color: #374151;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    min-height: 50px;
}

.qe-note-textarea:focus {
    border-color: #D93625;
}

/* 供应商信息 */
.qe-supplier-card {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 18px;
}

.qe-supplier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.qe-supplier-row {
    padding: 7px 14px;
    font-size: 9pt;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
    align-items: center;
}

.qe-supplier-row .qe-info-label {
    min-width: 50px;
    font-size: 9pt;
}

/* 版权 */
.qe-copyright {
    text-align: center;
    font-size: 8pt;
    color: #9ca3af;
    margin: 8px 0 0 0;
    letter-spacing: 0.5px;
}

/* ==================== 报价单 V2 新布局样式 ==================== */

/* 顶部三栏品牌区 */
.qe-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.qe-hd-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qe-logo-circle {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #D93625, #C62828);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -1px;
    flex-shrink: 0;
}
.qe-hd-company { }
.qe-hd-center { text-align: center; flex: 1; }
.qe-title-v2 {
    font-size: 28pt;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 18px;
    margin: 0;
    line-height: 1.2;
}
.qe-title-line {
    display: none;
}
.qe-hd-right {
    text-align: right;
    padding-right: 4px;
}
.qe-slogan {
    font-size: 13pt;
    font-weight: 700;
    color: #555555;
    margin: 0;
    letter-spacing: 2px;
}
.qe-slogan-sub {
    font-size: 9pt;
    color: #D93625;
    margin: 2px 0 0 0;
    letter-spacing: 0.5px;
}

/* 信息条栏 */
.qe-infobar {
    display: flex;
    gap: 24px;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.qe-infobar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11pt;
}
.qe-infobar-label {
    color: #6b7280;
    white-space: nowrap;
}
.qe-infobar-value {
    color: #111827;
    font-weight: 600;
}
.qe-infobar-input {
    border: none;
    border-bottom: 1px solid #d1d5db;
    background: transparent;
    font-size: 11pt;
    color: #111827;
    font-weight: 600;
    outline: none;
    padding: 1px 4px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.qe-infobar-input:focus {
    border-bottom-color: #D93625;
}

/* V2 双栏信息卡片 */
.qe-info-grid-v2 {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.qe-info-card-v2 {
    flex: 1;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s;
}
.qe-info-card-v2:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.03);
}
.qe-info-header-v2 {
    padding: 7px 16px;
    font-size: 13pt;
    font-weight: 700;
    color: #fff;
    position: relative;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.qe-info-header-blue {
    background: linear-gradient(135deg, #555555, #555555);
}
.qe-info-header-blue::after {
    display: none;
}
.qe-info-header-orange {
    background: linear-gradient(135deg, #D9984A, #C5853A);
}
.qe-info-header-orange::after {
    display: none;
}
.qe-info-body-v2 {
    padding: 2px 0;
}
.qe-field-row {
    display: flex;
    align-items: center;
    padding: 5px 16px;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 11pt;
}
.qe-field-alt {
    background-color: #fafbfc;
}
.qe-flabel {
    color: #475569;
    font-weight: 600;
    min-width: 72px;
    flex-shrink: 0;
    font-size: 11pt;
}
.qe-finput {
    flex: 1;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 3px 6px;
    font-size: 11pt;
    color: #374151;
    background: transparent;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.qe-finput:focus {
    border-bottom-color: #D93625;
}
.qe-fselect {
    flex: 1;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 3px 6px;
    font-size: 11pt;
    color: #374151;
    background: transparent;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}
.qe-fselect:focus {
    border-bottom-color: #D93625;
}
.qe-fvalue {
    color: #374151;
    font-size: 11pt;
}

/* 明细表标题 */
.qe-table-section-title {
    font-size: 13pt;
    font-weight: 700;
    color: #555555;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qe-table-bar {
    width: 4px;
    height: 16px;
    background: #D93625;
    border-radius: 2px;
}

/* V2 数据表格 */
.qe-data-table-v2 {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #d1d5db;
    font-size: 11.5pt;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border-radius: 6px;
    overflow: hidden;
}
.qe-data-table-v2 thead tr {
    background-color: #555555;
}
.qe-data-table-v2 th {
    padding: 11px 10px;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    font-size: 10.5pt;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.qe-data-table-v2 td {
    padding: 9px 8px 7px 8px;
    vertical-align: middle;
    line-height: 1.2;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11.5pt;
    color: #111827;
    vertical-align: middle;
}
.qe-data-table-v2 th:first-child,
.qe-data-table-v2 td:first-child { padding-left: 16px; }
.qe-subtotal-cell {
    font-weight: 600;
    color: #059669 !important;
    text-align: right !important;
}

/* 底部双栏布局 */
.qe-bottom-v2 {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}
.qe-bottom-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qe-desc-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.qe-desc-title {
    padding: 8px 16px;
    font-size: 11pt;
    font-weight: 600;
    color: #555555;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}
.qe-desc-textarea {
    width: 100%;
    border: none;
    padding: 10px 16px;
    font-size: 10.5pt;
    color: #374151;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    min-height: 56px;
    line-height: 1.6;
}
.qe-payment-box {
    padding: 8px 16px;
    font-size: 10.5pt;
    color: #475569;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.qe-pay-input {
    border: none;
    border-bottom: 1px solid #86efac;
    background: transparent;
    font-size: 10.5pt;
    color: #166534;
    font-weight: 600;
    outline: none;
    padding: 1px 4px;
    font-family: inherit;
}
.qe-pay-input:focus {
    border-bottom-color: #22c55e;
}

/* 汇总卡片内费用输入框 - 低调风格 */
.qe-sum-input {
    border: none;
    border-bottom: 1px solid #d1d5db;
    background: transparent;
    font-size: 11pt;
    color: #374151;
    font-weight: 600;
    outline: none;
    padding: 1px 4px;
    font-family: inherit;
}
.qe-sum-input:focus {
    border-bottom-color: #D93625;
}

/* 右侧汇总卡片 */
.qe-summary-card {
    width: 300px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.qe-summary-title {
    padding: 10px 16px;
    font-size: 12pt;
    font-weight: 700;
    color: #555555;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}
.qe-summary-rows {
    padding: 6px 0;
}
.qe-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 11pt;
}
.qe-sum-row:last-child {
    border-bottom: none;
}

/* 可删除行 - 为垃圾桶图标提供定位上下文 */
.qe-deletable-row {
    position: relative !important;
    padding-left: 18px !important;
}

.qe-discount-row .qe-sum-value {
    color: #dc2626 !important;
}
.qe-sum-label {
    color: #64748b;
    font-weight: 500;
}
.qe-sum-value {
    color: #111827;
    font-weight: 700;
    font-size: 12pt;
}
.qe-grand-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #555555;
    color: #fff;
    white-space: nowrap;
    gap: 8px;
}
.qe-gf-label {
    font-size: 13pt;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.2;
}
.qe-gf-amount {
    font-size: 19pt;
    font-weight: 900;
    color: #fcd34d;
    white-space: nowrap;
    min-width: 0;
    text-align: right;
    line-height: 1.2;
}

/* 底部公司信息 */
.qe-footer-line {
    text-align: center;
    font-size: 9pt;
    color: #94a3b8;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    letter-spacing: 0.5px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .qe-toolbar {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
    }
    .qe-toolbar-right {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .qe-paper-wrap {
        padding: 10px 6px;
    }
    .qe-paper {
        padding: 12px 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* V2 布局移动端适配 */
    .qe-header-v2 { flex-direction: column; gap: 6px; text-align: center; }
    .qe-hd-left { justify-content: center; }
    .qe-hd-center { order: -1; } /* 标题移到最上面 */
    .qe-hd-right { text-align: center; padding-right: 0; font-size: 10px; }

    /* 报价单内部元素收紧 */
    .qe-info-card-v2 { padding: 8px 6px !important; }
    .qe-field-row { padding: 3px 6px !important; }
    .qe-flabel { min-width: 56px !important; font-size: 11px !important; }
    .qe-finput { min-width: 100px !important; font-size: 11px !important; }
    .qe-data-table-v2 th, .qe-data-table-v2 td { padding: 4px 2px !important; font-size: 10px !important; }
    .qe-type-inline { width: 60px !important; min-width: 60px !important; max-width: 60px !important; }
    .qe-title-v2 { font-size: 16px !important; }
    .qe-summary-card { padding: 10px 8px !important; }
    .qe-summary-table td { padding: 3px 2px !important; font-size: 10px !important; }
    .qe-title-v2 { font-size: 20pt; letter-spacing: 8px; }
    .qe-logo-circle { width: 40px; height: 40px; font-size: 13px; border-radius: 8px; }
    .qe-slogan { font-size: 11pt; letter-spacing: 1px; }
    .qe-slogan-sub { font-size: 8pt; }

    .qe-infobar { flex-wrap: wrap; gap: 10px 14px; padding: 8px 12px; font-size: 9pt; }
    .qe-infobar-label { font-size: 9pt; min-width: 52px; }
    .qe-infobar-value, .qe-infobar-input { font-size: 9pt !important; }
    .qe-infobar-input { width: 90px !important; }

    .qe-info-grid-v2 { flex-direction: column; gap: 10px; }
    .qe-flabel { min-width: 62px; font-size: 10pt; }
    .qe-finput { font-size: 10pt; }
    .qe-fselect, .qe-fvalue { font-size: 10pt; }

    .qe-table-section-title { font-size: 11pt; margin: 14px 0 8px 0; }
    .qe-data-table-v2 { font-size: 9pt; }
    .qe-data-table-v2 th { padding: 8px 4px; font-size: 9pt; }
    .qe-data-table-v2 td { padding: 6px 3px; font-size: 9pt; }

    .qe-type-inline { width: 60px !important; font-size: 9pt !important; }
    .qe-spec-inline { font-size: 9pt !important; }

    .qe-bottom-v2 { flex-direction: column; gap: 12px; }
    .qe-summary-card { width: 100%; }
    .qe-sum-row { padding: 7px 14px; font-size: 10pt; }
    .qe-grand-final { padding: 11px 14px; }
    .qe-gf-amount { font-size: 15pt; }
    .qe-desc-textarea { font-size: 9.5pt; padding: 8px 10px; }

    /* 旧布局兼容 */
    .qe-info-grid {
        flex-direction: column;
        gap: 8px;
    }
    .qe-supplier-grid {
        grid-template-columns: 1fr;
    }
    .qe-bottom-section {
        flex-direction: column;
    }
    .qe-tys-logo {
        font-size: 24pt;
    }
    .qe-company-cn {
        font-size: 12pt;
    }
    .qe-title {
        font-size: 18pt;
        letter-spacing: 6px;
    }
    .qe-data-table {
        font-size: 9pt;
    }
    .qe-data-table th,
    .qe-data-table td {
        padding: 6px 6px;
    }
}

/* ============ Tab 导航栏 ============ */

.tys-tab-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
}

.tys-tab-list {
    display: flex;
    gap: 0;
}

.tys-tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Tab 之间分隔线 */
.tys-tab-item + .tys-tab-item {
    border-left: 1px solid #e5e7eb;
}

.tys-tab-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.25s ease;
}

.tys-tab-icon {
    font-size: 17px;
    line-height: 1;
}

.tys-tab-text {
    line-height: 1;
}

.tys-tab-item:hover {
    color: #D93625;
    background: rgba(217,54,37,0.04);
}

.tys-tab-item.active {
    color: #D93625;
    border-bottom-color: #D93625;
}

.tys-tab-item.active::after {
    background: #D93625;
}

/* Tab 内容区 */
.tys-tab-content {
    display: none;
}

.tys-tab-content.active {
    display: block;
    flex: 1 1 0%;
    overflow-y: auto;
    min-height: 0;
}

/* ============ 可搜索下拉框 ============ */

.searchable-select {
    position: relative;
}

.searchable-select-input {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    padding-right: 32px;
    border: 1.5px solid var(--tys-border);
    border-radius: var(--tys-radius);
    font-size: 14px;
    color: var(--tys-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.searchable-select-input:focus {
    border-color: var(--tys-orange);
    box-shadow: 0 0 0 3px rgba(230, 148, 26, 0.12);
}

.searchable-select-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid var(--tys-border);
    border-top: none;
    border-radius: 0 0 var(--tys-radius) var(--tys-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    display: none;
}

.searchable-select-dropdown.active {
    display: block;
}

.searchable-select-option {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--tys-text);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

.searchable-select-option:last-child {
    border-bottom: none;
}

.searchable-select-option:hover {
    background: var(--tys-orange-light);
    color: var(--tys-orange-dark);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .searchable-select-input {
        height: 44px !important;
        font-size: 16px !important;
    }
    
    .searchable-select-dropdown {
        max-height: 200px;
    }
}

/* ============ 客户模糊搜索下拉 ============ */
.customer-search-wrap { position: relative; }

.customer-search-dropdown {
    position: fixed;
    z-index: 9999;
}

.customer-search-item:hover {
    background: var(--tys-orange-light);
}

/* 客户管理表格 */
.customer-table th,
.customer-table td {
    font-family: inherit;
}

