@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

:root {
    /* 参考图风格：浅色背景 + 圆角卡片 + 蓝紫主色（无阴影） */
    --bg: #f5f7ff;
    --panel: #ffffff;
    --panel-2: #f6f7fb;
    --border: #eef0f7;
    --text: #1f2a37;
    --muted: #6b7280;
    --muted-2: #6b7280;

    --primary: #3b5bfd;
    --primary-hover: #2f4ef6;
    --danger: #ff4d4f;
    --danger-hover: #ff7875;
    --success: #22c55e;
    --success-hover: #16a34a;

    --hover: rgba(59, 91, 253, 0.08);

    --radius: 12px;
    --radius-sm: 10px;

    /* 侧边栏做透明时，用与页面背景同色的透明层，避免出现“左右底色不一致” */
    --sidebar-bg: rgba(245, 247, 255, 0.72);
    --sidebar-border: rgba(238, 240, 247, 0.75);
    --sidebar-text: #111827;
    --sidebar-text-active: var(--primary);
    --sidebar-hover: rgba(59, 91, 253, 0.08);
    --sidebar-active-bg: rgba(59, 91, 253, 0.10);
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(180deg, rgba(235, 242, 255, 0.95) 0%, rgba(245, 247, 255, 0.95) 100%);
    backdrop-filter: blur(8px);
    box-shadow: none;
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: none;
}

.header .container {
    max-width: none;
    padding: 0 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-brand .logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(1px 2px 0 rgba(30, 27, 75, 0.10))
        drop-shadow(3px 5px 2px rgba(30, 27, 75, 0.12))
        drop-shadow(0 8px 14px rgba(59, 91, 253, 0.14));
}

.logo-brand .logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    text-shadow:
        0 1px 0 #ffffff,
        0 2px 0 #d9e0f7,
        0 3px 2px rgba(59, 91, 253, 0.16),
        0 6px 8px rgba(59, 91, 253, 0.10);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 15px;
    color: var(--muted);
}

a.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-header {
    padding: 0 16px;
    min-height: 36px;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    height: auto;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 64px;
    color: var(--text);
    overflow-y: auto;
    box-shadow: none;
    border-right: none;
    z-index: 900;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 6px 12px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    border-left: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu a i {
    width: 18px;
    text-align: center;
    color: rgba(31, 42, 55, 0.6);
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    color: var(--primary);
}

.sidebar-menu a span {
    flex: 1;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    border-left: none;
}

.sidebar-menu a.active {
    background-color: var(--sidebar-active-bg);
    font-weight: 600;
}

/* 主要内容区域 */
.main-content {
    margin-left: 220px;
    padding: 84px 20px 24px;
    min-height: 100vh;
}

.page-title {
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: none;
    padding-bottom: 0;
    font-size: 18px;
    font-weight: 600;
}

/* 卡片样式 */
.card {
    background-color: var(--panel);
    border-radius: var(--radius);
    box-shadow: none;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background-color: transparent;
}

.card-title {
    margin: 0;
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.card-body {
    padding: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: var(--muted);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #fff;
    color: #333;
}

.form-control-lg {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 15px;
}

.search-with-reset {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.search-with-reset .form-control {
    flex: 1;
    min-width: 0;
}

.search-with-reset .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    padding: 0 16px;
}

.form-control:hover {
    border-color: var(--primary-hover);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

/* 按钮样式（统一高度、圆角，与表格内操作按钮一致） */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    min-height: 36px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1.4;
    box-sizing: border-box;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: none;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-primary:active {
    opacity: 0.92;
}

.btn-success {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background-color: var(--success-hover);
    border-color: var(--success-hover);
}

.btn-success:active {
    opacity: 0.92;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
}

.btn-danger:active {
    opacity: 0.92;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border-color: #d9d9d9;
}

.btn-secondary:hover {
    background-color: #fafafa;
    border-color: var(--primary-hover);
    color: var(--primary-hover);
}

.btn-secondary:active {
    opacity: 0.92;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid var(--border);
    background-color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}

.table th, .table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid var(--border);
    vertical-align: middle;
}

.table th {
    background-color: var(--panel-2);
    font-weight: 500;
    color: var(--muted-2);
    white-space: nowrap;
}

.table tr:nth-child(even) {
    background-color: #fafafa;
}

.table tr:hover {
    background-color: var(--hover);
}

/* 链接样式 */
.table a {
    color: var(--primary);
    text-decoration: none;
}

.table a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 表格内按钮是 a 标签，避免被链接颜色覆盖导致文字看不清 */
.table a.btn,
.table a.btn:hover {
    text-decoration: none;
}

.table a.btn-primary,
.table a.btn-primary:hover,
.table a.btn-success,
.table a.btn-success:hover,
.table a.btn-danger,
.table a.btn-danger:hover {
    color: #fff;
}

.table a.btn-secondary,
.table a.btn-secondary:hover {
    color: #333;
}

/* 表格内操作按钮：统一尺寸+立体效果 */
.action-btn {
    margin: 0 4px;
    min-width: 76px;
    padding: 0 14px;
    border-radius: 8px;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 50%, rgba(0,0,0,0.05));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.30),
        0 2px 4px rgba(31,45,61,0.14),
        0 4px 12px rgba(31,45,61,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.action-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 4px 8px rgba(31,45,61,0.18),
        0 8px 20px rgba(31,45,61,0.12);
}
.action-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

/* 搜索区域 */
.search-area {
    background-color: var(--panel);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: none;
    border: 1px solid var(--border);
}

.search-area form [style*="display: flex"],
.search-area > div[style*="display: flex"] {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .search-area form [style*="display: flex"],
    .search-area > div[style*="display: flex"] {
        flex-wrap: wrap;
    }
}

/* 统计卡片 */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: var(--panel);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 20px;
    margin: 0 10px 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 500;
    margin: 10px 0;
    color: var(--text);
}

.stat-card .stat-title {
    font-size: 14px;
    color: var(--muted);
}

.stat-card.primary {
    border-top: none;
}

.stat-card.success {
    border-top: none;
}

.stat-card.danger {
    border-top: none;
}

.stat-card.warning {
    border-top: none;
}

/* 分页样式 */
.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
}

.pagination-info {
    font-size: 13px;
    color: var(--muted);
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.pagination a {
    color: #666;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #d9d9d9;
    margin: 0 4px;
    font-size: 14px;
    border-radius: 2px;
    background-color: #fff;
}

.pagination a.active {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 10px;
}

.pagination a:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #fff;
}

.pagination a.disabled {
    color: #d9d9d9;
    pointer-events: none;
    border-color: #f5f5f5;
    background-color: #fff;
}

/* 提示框样式 */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
}

.alert-success {
    color: #52c41a;
    background-color: #f6ffed;
    border-color: #b7eb8f;
}

.alert-danger {
    color: #ff4d4f;
    background-color: #fff1f0;
    border-color: #ffa39e;
}

.quotation-count-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.relation-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.relation-mask {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.relation-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.relation-dialog.product-picker-dialog {
    width: min(1180px, calc(100vw - 24px));
}

.relation-dialog.compact-dialog {
    width: min(460px, calc(100vw - 32px));
}

.relation-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.product-picker-table {
    table-layout: auto;
    width: 100%;
}

.product-picker-table th,
.product-picker-table td {
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
    line-height: 1.45;
}

.product-picker-table .col-check {
    width: 64px;
    white-space: nowrap;
}

.product-picker-table .col-img {
    width: 56px;
    white-space: nowrap;
}

.product-picker-table .col-price {
    width: 120px;
    white-space: nowrap;
}

.picker-check-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    cursor: pointer;
}

.picker-check-label input[type="checkbox"],
.product-picker-table .picker-product-check {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.product-picker-table .picker-product-price {
    min-width: 96px;
    text-align: right;
}

.product-price-editable {
    background: #fffef5;
    border-color: #f0d78c;
    font-weight: 600;
}

.product-price-editable:focus {
    border-color: var(--primary);
    background: #fff;
}

.relation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.relation-header h3 {
    margin: 0;
    font-size: 18px;
}

.relation-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
}

.relation-body {
    padding: 16px 18px;
    overflow: auto;
    max-height: calc(100vh - 130px);
}

.relation-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.relation-actions .action-btn {
    margin: 0;
}

/* 系统设置标签页（标准 Tab） */
.settings-card {
    overflow: hidden;
}

.settings-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 8px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    flex-wrap: wrap;
}

.settings-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    margin-bottom: -1px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.settings-tab:hover {
    color: var(--primary);
}

.settings-tab.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

.settings-tab-panel {
    display: none;
}

.settings-tab-panel.active {
    display: block;
}

/* 状态彩色标签（深色实心，无描边） */
.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    border: none;
    color: #fff;
}

.status-tag-following {
    background: #f59e0b;
}

.status-tag-key_follow {
    background: #dc2626;
}

.status-tag-won {
    background: #16a34a;
}

.status-tag-abandoned {
    background: #6b7280;
}

.status-tag-unpaid {
    background: #64748b;
}

.status-tag-prepaid {
    background: #3b82f6;
}

.status-tag-paid {
    background: #0d9488;
}

/* 右侧抽屉 */
.app-drawer {
    position: fixed;
    inset: 0;
    z-index: 2200;
    visibility: hidden;
    pointer-events: none;
}

.app-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.app-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    transition: opacity .25s ease;
}

.app-drawer.is-open .app-drawer-mask {
    opacity: 1;
}

.app-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s ease;
}

.app-drawer.is-open .app-drawer-panel {
    transform: translateX(0);
}

.app-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.app-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.app-drawer-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.app-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 18px;
    background: #f7f8fc;
}

.app-drawer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.app-drawer-meta {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.app-drawer-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.app-drawer-meta-row:last-child {
    margin-bottom: 0;
}

.app-drawer-meta-row strong {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.app-drawer-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.app-drawer-logs {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.app-drawer-logs-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.app-drawer-logs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
}

.app-drawer-logs-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.app-drawer-logs-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.app-drawer-logs-time {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.app-drawer-logs-content {
    display: block;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.app-drawer-logs-remark {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.45;
    word-break: break-word;
}

.app-drawer-logs-empty {
    font-size: 13px;
    color: var(--muted);
    padding: 4px 0;
}

.preset-candidate-list,
.preset-current-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
}

.preset-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.preset-product-info {
    min-width: 0;
    flex: 1;
}

.preset-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.preset-product-meta {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
    word-break: break-word;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
}

.image-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
}

.image-modal-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(780px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.image-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.image-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.image-modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
}

.image-modal-body {
    padding: 16px;
    text-align: center;
    background: #f8fafc;
}

.image-modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.view-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    text-decoration: none;
    line-height: 1;
}

.view-image-btn:hover {
    color: var(--primary-hover);
}

/* 后台水印 / 纹理（系统设置可配置） */
.app-texture {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='220' viewBox='0 0 380 220'%3E%3Cg fill='none' stroke='%236f84ff' stroke-opacity='.11' stroke-width='1.6'%3E%3Crect x='18' y='18' width='44' height='44' rx='8'/%3E%3Crect x='84' y='28' width='26' height='26' rx='6'/%3E%3Cpath d='M128 42h66'/%3E%3Cpath d='M128 56h46'/%3E%3Crect x='262' y='34' width='34' height='34' rx='7'/%3E%3Ccircle cx='316' cy='52' r='10'/%3E%3Cpath d='M276 98h72'/%3E%3Cpath d='M34 104h92'/%3E%3Crect x='42' y='132' width='52' height='34' rx='7'/%3E%3Crect x='108' y='128' width='26' height='26' rx='6'/%3E%3Cpath d='M146 144h58'/%3E%3Cpath d='M146 158h38'/%3E%3Ccircle cx='292' cy='146' r='12'/%3E%3Cpath d='M304 146h30'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 380px 220px;
    opacity: 0.5;
}

.app-watermark {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-repeat: repeat;
    background-size: 520px 260px;
    mix-blend-mode: multiply;
}

/* 确保内容在水印上层（不修改 header/sidebar 原有 fixed 布局） */
.main-content {
    position: relative;
    z-index: 2;
}

/* 登录页面：顶部两栏（左文案+插画，右登录框） */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    align-content: flex-start;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 62% 38%, rgba(59, 91, 253, 0.12) 0%, rgba(59, 91, 253, 0.0) 60%),
        radial-gradient(900px 420px at 12% 20%, rgba(99, 102, 241, 0.10) 0%, rgba(99, 102, 241, 0.0) 55%),
        linear-gradient(135deg, #eef2ff 0%, #f5f7ff 45%, #e8edff 100%);
    padding: 28px clamp(20px, 5vw, 72px) 56px;
    box-sizing: border-box;
    gap: clamp(24px, 4vw, 56px);
}

.login-page--top {
    align-content: flex-start;
}

.login-brand {
    flex: 1 1 520px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    align-self: flex-start;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0;
    transform: translateX(-22px);
    animation: loginSlideInLeft 560ms cubic-bezier(.2,.9,.2,1) 60ms forwards;
}

.login-brand-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    line-height: 1.15;
}

.login-brand-name {
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.02em;
    text-shadow:
        0 1px 0 #ffffff,
        0 2px 0 #e2e8f0,
        0 4px 3px rgba(17, 24, 39, 0.16),
        0 8px 16px rgba(17, 24, 39, 0.12);
}

.login-brand-subtitle {
    margin-top: 10px;
    font-size: clamp(24px, 3.1vw, 38px);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.login-brand-desc {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 520px;
    text-shadow:
        0 1px 0 #ffffff,
        0 2px 0 #b9c8f0,
        0 3px 2px rgba(29, 78, 216, 0.25),
        0 6px 10px rgba(29, 78, 216, 0.18);
    animation: loginBrandSway 5s ease-in-out infinite;
}

@keyframes loginBrandSway {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

.login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 10px 0 14px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
}

.login-footer a {
    color: #8a93a6;
    text-decoration: none;
}

.login-footer a:hover {
    color: #1d4ed8;
}

.login-art-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.login-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-repeat: repeat;
    background-size: 520px 260px;
    mix-blend-mode: multiply;
}

.login-art-bg img {
    position: absolute;
    right: clamp(740px, 52vw, 1020px);
    top: 54%;
    transform: translateY(-50%);
    width: min(560px, 56vw);
    height: auto;
    opacity: 0.98;
    filter:
        drop-shadow(5px 9px 0 rgba(49, 46, 129, 0.16))
        drop-shadow(12px 20px 0 rgba(49, 46, 129, 0.11))
        drop-shadow(20px 33px 0 rgba(49, 46, 129, 0.06))
        drop-shadow(0 28px 48px rgba(30, 27, 75, 0.32))
        saturate(1.05);
    animation: loginArtFloat 6s ease-in-out infinite;
}

@keyframes loginArtFloat {
    0%, 100% { transform: translateY(-50%) translateY(0); }
    50%      { transform: translateY(-50%) translateY(-16px); }
}

.login-card-area {
    flex: 0 1 460px;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 16px;
    padding: 124px 0 0;
    box-sizing: border-box;
    align-items: flex-start;
    z-index: 3;
    transform: translateX(-120px);
    opacity: 0;
    animation: loginSlideInRight 560ms cubic-bezier(.2,.9,.2,1) 120ms forwards;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 56px 56px 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fd 100%);
    border-radius: var(--radius);
    border: 1px solid #e4e8f2;
    box-shadow:
        0 1px 2px rgba(31, 45, 61, 0.05),
        0 8px 20px rgba(59, 91, 253, 0.08),
        0 24px 56px rgba(31, 45, 61, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    transition: box-shadow 0.3s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
    pointer-events: none;
}

.login-card:hover {
    box-shadow:
        0 2px 4px rgba(31, 45, 61, 0.06),
        0 14px 30px rgba(59, 91, 253, 0.11),
        0 36px 80px rgba(31, 45, 61, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

@keyframes loginSlideInLeft {
    from { opacity: 0; transform: translateX(-22px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes loginSlideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.login-card .btn-login-submit {
    position: relative;
}

.login-card.is-loading .btn-login-submit {
    pointer-events: none;
    opacity: 0.92;
}

.login-card.is-loading .btn-login-submit::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: rgba(255, 255, 255, 1);
    border-radius: 999px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    animation: loginSpin 750ms linear infinite;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .login-brand,
    .login-card-area {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .login-card.is-loading .btn-login-submit::after {
        animation: none;
    }
}

.login-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.login-card-sub {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 36px;
}

.login-card > .alert {
    margin-bottom: 28px;
}

.login-card .form-group {
    margin-bottom: 26px;
}

.login-card .form-label {
    margin-bottom: 10px;
    font-size: 14px;
}

.login-card .form-control {
    padding: 12px 14px;
    min-height: 48px;
    font-size: 15px;
    border-radius: 8px;
}

.login-card .btn-login-submit {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    margin-top: 20px;
}

.login-remember {
    margin: 4px 0 0;
}

.login-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    user-select: none;
}

.login-remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}



@media (max-width: 900px) {
    .login-page {
        padding: 24px 18px 36px;
        gap: 18px;
    }

    .login-card {
        padding: 44px 32px 48px;
    }

    .login-card-area {
        flex: 1 1 460px;
        justify-content: flex-start;
        padding-top: 0;
    }

    .login-brand {
        padding-top: 6px;
    }

    .login-art-bg img {
        right: 50%;
        top: 38%;
        transform: translate(50%, -50%);
        width: min(520px, 92vw);
        opacity: 0.55;
    }
}

/* 下拉菜单样式 */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.763 4.5 2.8 3.45 6 6.75l3.2-3.3L10.237 4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* 文本域样式 */
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* 报价单样式 */
.quotation-header {
    text-align: center;
    margin-bottom: 20px;
}

.quotation-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

.quotation-title:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #3f4d5a;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.quotation-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.quotation-info-item {
    flex: 1;
    min-width: 0;
    margin-bottom: 10px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.quotation-info-item p {
    white-space: normal;
}

.quotation-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
}

.quotation-table th,
.quotation-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.quotation-table th {
    background-color: #3f4d5a;
    color: #fff;
}

.quotation-table td img {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.quotation-doc .markup-col,
.quotation-doc .markup-summary {
    display: none;
}

.quotation-doc.show-markup .markup-col {
    display: table-cell;
}

.quotation-doc.show-markup .markup-summary {
    display: block;
}

.quotation-table .markup-col {
    background: #fffef5;
}

.quotation-table th.markup-col {
    background: #92400e;
    color: #fff;
}

.quotation-total .markup-summary-highlight {
    color: #b45309;
}

.quotation-footer {
    margin-top: 20px;
}

.quotation-total {
    text-align: right;
    margin-bottom: 10px;
}

.quotation-notes {
    margin-top: 20px;
}

.quotation-notes h4 {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 报价单产品行内布局 */
.product-inline-row {
    display: grid;
    grid-template-columns: 100px 1.3fr 1fr 1fr 110px 130px 1.2fr;
    gap: 10px;
    align-items: end;
}

.product-inline-col-sm {
    min-width: 90px;
}

.product-inline-image-col .form-label {
    margin-bottom: 6px;
}

.product-inline-image {
    width: 70px;
    height: 70px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    background: #fff;
    overflow: hidden;
}

.product-inline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1400px) {
    .product-inline-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .product-inline-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 报价单单价上调（仅编辑页，不出现在最终报价单） */
.price-adjust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.price-adjust-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-right: 2px;
}

.price-adjust-mode {
    width: 110px;
}

.price-adjust-percent {
    width: 110px;
}

.price-adjust-unit {
    font-size: 14px;
    color: var(--muted);
}

.price-adjust-tip {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.product-list-table .product-base-price {
    background: #f8fafc;
    color: #4b5563;
}

.product-list-table .product-markup-percent,
.product-list-table .product-markup-editable {
    background: #fffef5;
    border-color: #f0d78c;
    font-weight: 600;
}

/* 报价单产品列表 */
.product-list-wrap {
    overflow-x: auto;
}

.product-list-table td,
.product-list-table th {
    vertical-align: middle;
    white-space: nowrap;
}

.product-thumb {
    width: 52px;
    height: 52px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    overflow: hidden;
    background: #fff;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-product-btn {
    border: none;
    background: transparent;
    color: #ff4d4f;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.product-summary {
    margin-top: 10px;
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
    color: #555;
}

.product-summary #summaryMarkupTotal {
    color: #d97706;
}

.product-summary strong {
    color: #1f1f1f;
}

/* 通用响应式优化：平板与手机 */
@media (max-width: 1024px) {
    .header .container {
        padding: 0 12px;
    }

    .main-content {
        padding: 76px 12px 16px;
    }

    .card-header,
    .card-body,
    .search-area {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* 平板竖屏/窄窗：宽表格允许横向滚动，避免撑破布局 */
    .card-body {
        overflow-x: auto;
    }

    .action-btn {
        margin: 2px;
        min-width: 76px;
    }
}

/* iPad/平板（769-1200px）：侧边栏收窄，内容区更宽裕 */
@media (min-width: 769px) and (max-width: 1200px) {
    .sidebar {
        width: 180px;
    }

    .main-content {
        margin-left: 180px;
    }
}

/* iPad 全系/窄屏（<=1200px）：列表卡片化，避免横向滚动 */
@media (max-width: 1200px) {
    .search-area > div[style*="display: flex"],
    .search-area form [style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* 列表卡片化（避免横向滚动）；非卡片化表格（如产品编辑表）保留横向滚动 */
    .card-body {
        overflow-x: auto;
    }

    .card-body:has(.table.mobile-list-table) {
        overflow-x: hidden;
    }

    .table.mobile-list-table {
        width: 100%;
        min-width: 0;
        border: none;
        background: transparent;
    }

    .table.mobile-list-table thead {
        display: none;
    }

    .table.mobile-list-table tbody tr {
        display: block;
        margin-bottom: 12px;
        background: #fff !important;
        border: 1px solid #e9edf5;
        border-radius: 12px;
        padding: 10px 12px 6px;
        position: relative;
    }

    .table.mobile-list-table tbody tr .mobile-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 2px 0 10px;
        border-bottom: 1px solid #eef1f6;
        margin-bottom: 2px;
    }

    .table.mobile-list-table .mobile-card-title {
        font-size: 16px;
        font-weight: 700;
        color: #1f2937;
        line-height: 1.3;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table.mobile-list-table .mobile-card-status {
        font-size: 13px;
        color: #6b7280;
        white-space: nowrap;
    }

    .table.mobile-list-table tbody td.mobile-card-hidden {
        display: none !important;
    }

    /* 手机端卡片不显示 ID 字段 */
    .table.mobile-list-table tbody td[data-label="ID"] {
        display: none !important;
    }

    .table.mobile-list-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        border: none;
        border-bottom: 1px solid #eef1f6;
        text-align: right;
        padding: 11px 0;
        white-space: normal;
    }

    .table.mobile-list-table tbody td::before {
        content: attr(data-label);
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
        text-align: left;
        flex: 0 0 98px;
    }

    .table.mobile-list-table tbody td:last-child {
        border-bottom: none;
    }

    .table.mobile-list-table td[data-label="操作"] {
        display: block;
        padding-top: 12px;
        text-align: left;
    }

    .table.mobile-list-table td[data-label="操作"]::before {
        display: block;
        margin-bottom: 10px;
    }

    .table.mobile-list-table td[data-label="操作"] .action-btn,
    .table.mobile-list-table td[data-label="操作"] a.action-btn {
        width: auto;
        min-width: 68px;
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
        margin: 0;
        flex: 0 0 auto;
    }

    .table.mobile-list-table td[data-label="操作"] .action-btn + .action-btn,
    .table.mobile-list-table td[data-label="操作"] a.action-btn + a.action-btn {
        margin-left: 6px;
    }

    .table.mobile-list-table td[data-label="操作"] .relation-actions {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .table.mobile-list-table td[data-label="操作"] .relation-actions .action-btn {
        width: auto;
        margin: 0;
    }

    /* 弹窗宽度更适配手机 */
    .relation-dialog,
    .image-modal-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 20px);
    }

    .relation-header,
    .relation-body,
    .image-modal-header,
    .image-modal-body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-summary {
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: wrap;
        font-size: 13px;
    }

    /* 这些表格保持原始表格形态，不做卡片化 */
    .product-list-table.mobile-list-table thead {
        display: table-header-group;
    }

    .product-list-table.mobile-list-table tbody tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .product-list-table.mobile-list-table tbody td {
        display: table-cell;
        border: 1px solid var(--border);
        text-align: center;
        padding: 8px 6px;
    }

    .product-list-table.mobile-list-table tbody td::before {
        content: none;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .header {
        padding: 8px 0;
    }

    .logo-brand .logo-img {
        width: 28px;
        height: 28px;
    }

    .logo-brand .logo-text {
        font-size: 16px;
    }

    .user-info span {
        margin-right: 8px;
        font-size: 12px;
    }

    .btn-header {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    /* 手机端：底部 Tab 导航（更像移动 App） */
    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 64px;
        min-height: 64px;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        border-right: none;
        border-top: 1px solid var(--sidebar-border);
        overflow-x: hidden;
        overflow-y: hidden;
        white-space: nowrap;
        z-index: 1002;
        background: rgba(245, 247, 255, 0.96);
        backdrop-filter: blur(6px);
    }

    .sidebar-menu {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
        min-width: 100%;
        width: 100%;
        padding: 0;
    }

    .sidebar-menu li {
        margin: 0 2px;
        width: calc(20% - 4px);
        flex: 0 0 calc(20% - 4px);
    }

    .sidebar-menu a {
        min-width: 0;
        width: 100%;
        padding: 6px 8px;
        gap: 2px;
        font-size: 11px;
        border-radius: 10px;
        line-height: 1.1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .sidebar-menu a i {
        display: inline-block;
        font-size: 14px;
        line-height: 1;
        margin: 0;
    }

    .sidebar-menu a span {
        display: inline;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-content {
        margin-left: 0;
        padding-top: 66px;
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-control {
        font-size: 14px;
        padding: 8px 10px;
    }

    .btn {
        min-height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }

    /* 搜索区/操作区改为纵向堆叠 */
    .search-area > div[style*="display: flex"] {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }

    .search-area form[style*="flex: 1"] {
        width: 100%;
        margin-right: 0 !important;
    }

    .search-area form [style*="display: flex"] {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }

    .search-area .btn {
        width: 100%;
    }


}

/* 自动消失提示（替代原生 alert） */
.app-toast-host {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: min(92vw, 420px);
}

.app-toast {
    pointer-events: auto;
    min-width: 220px;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
    cursor: pointer;
    word-break: break-word;
}

.app-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.app-toast.is-hide {
    opacity: 0;
    transform: translateY(-8px);
}

.app-toast-success {
    background: #16a34a;
}

.app-toast-error {
    background: #ef4444;
}

.app-toast-info {
    background: #3b5bfd;
}

@media (max-width: 480px) {
    .logo-brand .logo-text {
        font-size: 14px;
    }

    .user-info span {
        display: none;
    }

    .main-content {
        padding-top: 104px;
    }

    .card-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .card-title {
        font-size: 14px;
    }
}

/* 状态徽章统一样式（营业/订单/打款）：统一尺寸+立体效果 */
.biz-badge,
.status-badge,
.payment-badge {
    display: inline-block;
    padding: 3px 12px;
    min-width: 62px;
    text-align: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -2px 3px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(31, 45, 61, 0.10),
        0 4px 10px rgba(31, 45, 61, 0.06);
}

/* 营业状态徽章 */
.biz-operating { background: linear-gradient(180deg, #e9f8ed, #cde8d6); color: #155724; }
.biz-preparing { background: linear-gradient(180deg, #fff9dd, #ffeec3); color: #856404; }

/* 订单状态徽章 */
.status-following { background: linear-gradient(180deg, #fff9dd, #ffeec3); color: #856404; }
.status-key_follow { background: linear-gradient(180deg, #f05247, #d63031); color: #ffffff; }
.status-won { background: linear-gradient(180deg, #e9f8ed, #cde8d6); color: #155724; }
.status-abandoned { background: linear-gradient(180deg, #eceef1, #d8dce1); color: #383d41; }

/* 打款状态徽章 */
.payment-unpaid { background: linear-gradient(180deg, #fbe3e5, #f3c8cd); color: #721c24; }
.payment-prepaid { background: linear-gradient(180deg, #fff9dd, #ffeec3); color: #856404; }
.payment-paid { background: linear-gradient(180deg, #e9f8ed, #cde8d6); color: #155724; }
