/* ========== 爪木选品平台 - 设计系统 (深蓝+白) ========== */

:root {
    --xp-navy: #1e3a5f;
    --xp-navy-dark: #152C4D;
    --xp-navy-light: rgba(30, 58, 95, 0.08);
    --xp-blue: #2563eb;
    --xp-blue-dark: #1d4ed8;
    --xp-bg: #F5F6FA;
    --xp-text: #1A1A1A;
    --xp-text-sec: #6B7280;
    --xp-text-muted: #9CA3AF;
    --xp-border: #E5E7EB;
    --xp-border-light: #F0F0F0;
    --xp-radius: 12px;
    --xp-radius-lg: 16px;
    --xp-radius-full: 9999px;
    --xp-shadow: 0 1px 3px rgba(0,0,0,0.04);
    --xp-shadow-md: 0 4px 12px rgba(30,58,95,0.1);
    --xp-transition: 0.25s ease;
}

[v-cloak] {
    display: none !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    margin:0;
    padding:0;
    height:100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--xp-bg);
    color: var(--xp-text);
    -webkit-font-smoothing: antialiased;
    min-height:100vh;
}

.platform-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* Header — replaced by inline styles in _header.html */

/* Cards */
.card {
    background: #fff;
    border-radius: var(--xp-radius);
    border: 1px solid var(--xp-border);
    box-shadow: var(--xp-shadow);
    transition: all var(--xp-transition);
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--xp-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--xp-navy);
}
.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--xp-transition);
    outline: none;
    white-space: nowrap;
    text-decoration: none !important;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}
.btn-md {
    height: 40px;
    padding: 0 16px;
}
.btn-lg {
    height: 48px;
    padding: 0 32px;
    font-size: 16px;
}
.btn-gold {
    background: var(--xp-blue);
    color: #fff;
    border-color: var(--xp-blue);
}
.btn-gold:hover {
    background: var(--xp-blue-dark);
    border-color: var(--xp-blue-dark);
}
.btn-primary {
    background: var(--xp-navy);
    color: #fff;
    border-color: var(--xp-navy);
}
.btn-primary:hover {
    background: var(--xp-navy-dark);
}
.btn-outline {
    background: rgba(255,255,255,0.8);
    color: var(--xp-text);
    border-color: var(--xp-border);
}
.btn-outline:hover {
    background: #fff;
    border-color: #d1d5db;
}
.btn-ghost {
    background: transparent;
    color: var(--xp-text-sec);
    border-color: transparent;
}
.btn-ghost:hover {
    background: #f3f4f6;
    color: var(--xp-text);
}

/* Buttons: gold-sm & outline-sm */
.btn-gold-sm {
    height: 36px;
    padding: 0 16px;
    background: var(--xp-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-gold-sm:hover {
    background: var(--xp-blue-dark);
}
.btn-outline-sm {
    height: 36px;
    padding: 0 16px;
    background: transparent;
    color: var(--xp-text);
    border: 1px solid var(--xp-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-outline-sm:hover {
    background: var(--xp-bg);
    border-color: var(--xp-blue);
    color: var(--xp-blue);
}
.btn-link-gold {
    background: none;
    border: none;
    color: var(--xp-blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    text-decoration: none;
}
.btn-link-gold:hover {
    color: var(--xp-blue-dark);
}
.btn-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8A8A8A;
    transition: all 0.2s;
}
.btn-icon-circle:hover {
    background: var(--xp-navy);
    color: #fff;
}

/* Table */
.table-wrap {
    background: #fff;
    border-radius: var(--xp-radius);
    border: 1px solid var(--xp-border);
    overflow: hidden;
}
.table-scroll {
    overflow-x: auto;
}
table.xp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.xp-table th {
    background: #F0F0ED;
    color: var(--xp-text);
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--xp-border-light);
    white-space: nowrap;
}
.xp-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--xp-border-light);
    vertical-align: middle;
}
.xp-table tr:last-child td {
    border-bottom: none;
}
.xp-table tbody tr:hover {
    background: rgba(245,246,250,0.5);
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--xp-radius-full);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}
.tag-success {
    background: #ecfdf5;
    color: #059669;
}
.tag-warning {
    background: #fffbeb;
    color: #d97706;
}
.tag-info {
    background: #eff6ff;
    color: #2563eb;
}
.tag-error {
    background: #fef2f2;
    color: #dc2626;
}
.tag-gold {
    background: rgba(37,99,235,0.12);
    color: var(--xp-blue);
}

/* Status Tags */
.tag-status {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.4;
}
.tag-green {
    background: #059669;
    color: #fff;
}
.tag-orange {
    background: #d97706;
    color: #fff;
}
.tag-red {
    background: #dc2626;
    color: #fff;
}
.tag-blue {
    background: #2563eb;
    color: #fff;
}
.tag-gray {
    background: #F0EFEC;
    color: #4A4A4A;
}

/* Type Badges */
.tag-type-company {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    background: var(--xp-navy-light);
    color: var(--xp-navy);
}
.tag-type-individual {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(37,99,235,0.12);
    color: var(--xp-blue);
}
.tag-type-natural {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(245,246,250,0.8);
    color: var(--xp-text-sec);
}

/* Forms */
.form-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--xp-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--xp-text);
    background: #fff;
    outline: none;
    transition: border-color var(--xp-transition);
}
.form-input:focus {
    border-color: var(--xp-blue);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.form-select {
    height: 36px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--xp-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--xp-text);
    background: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.form-select:focus {
    border-color: var(--xp-blue);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* Pagination */
.page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--xp-border);
    border-radius: 6px;
    background: #fff;
    color: var(--xp-text);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--xp-transition);
}
.page-btn:hover {
    border-color: var(--xp-blue);
    color: var(--xp-blue);
}
.page-btn.active {
    background: var(--xp-navy);
    color: #fff;
    border-color: var(--xp-navy);
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Stats Card */
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--xp-radius);
    border: 1px solid var(--xp-border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--xp-transition);
}
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(30,58,95,0.08);
    border-color: var(--xp-blue);
    transform: translateY(-2px);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--xp-navy);
}
.stat-label {
    font-size: 14px;
    color: var(--xp-text-sec);
    margin-top: 2px;
}

/* Search / Filter */
.filter-card {
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: var(--xp-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px,1fr));
    gap: 12px;
    align-items: center;
}
.search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    background: var(--xp-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    color: var(--xp-text);
    box-sizing: border-box;
    transition: all 0.2s;
}
.search-input:focus {
    background: #fff;
    border-color: var(--xp-blue);
}
.search-select {
    height: 36px;
    padding: 0 28px 0 12px;
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: 8px;
    font-size: 13px;
    color: #4A4A4A;
    outline: none;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%238A8A8A%22 stroke-width=%222%22%3E%3Cpolyline points=%226 9 12 15 18 9%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.search-select:focus {
    border-color: var(--xp-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8A8A8A;
    pointer-events: none;
}

/* Headers */
.page-title-lg {
    font-size: 28px;
    font-weight: 800;
    color: var(--xp-navy);
    margin: 0;
    letter-spacing: -0.3px;
}
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--xp-navy);
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--xp-navy);
    margin: 0;
}
.section-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--xp-text-sec);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 4px 0 0;
}
.section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--xp-blue);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 4px;
}
.th-gold {
    font-weight: 700;
    color: var(--xp-navy);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 20px 16px;
    text-align: left;
}

/* Tables with hover */
.table-hover {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--xp-border);
    overflow: hidden;
}

/* Empty state */
.empty-cell {
    text-align: center;
    padding: 60px;
    color: #9CA3AF;
    font-style: italic;
}

/* Utilities */
.flex-center {
    display: flex;
    align-items: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.flex-1 {
    flex: 1;
}
.shrink-0 {
    flex-shrink: 0;
}
.gap-4 {
    gap: 4px;
}
.gap-6 {
    gap: 6px;
}
.gap-8 {
    gap: 8px;
}
.gap-10 {
    gap: 10px;
}
.gap-12 {
    gap: 12px;
}
.gap-16 {
    gap: 16px;
}
.gap-20 {
    gap: 20px;
}
.gap-24 {
    gap: 24px;
}
.gap-32 {
    gap: 32px;
}
.gap-40 {
    gap: 40px;
}
.gap-48 {
    gap: 48px;
}
.p-12 {
    padding: 12px;
}
.p-16 {
    padding: 16px;
}
.p-20 {
    padding: 20px;
}
.p-24 {
    padding: 24px;
}
.p-32 {
    padding: 32px;
}
.m-0 {
    margin: 0;
}
.mb-16 {
    margin-bottom: 16px;
}
.mb-20 {
    margin-bottom: 20px;
}
.mb-24 {
    margin-bottom: 24px;
}
.text-dark {
    color: var(--xp-navy);
}
.text-sec {
    color: var(--xp-text-sec);
}
.text-muted {
    color: var(--xp-text-muted);
}
.text-gold {
    color: var(--xp-blue);
}
.text-red {
    color: #ef4445;
}
.text-white {
    color: #fff;
}
.fs-11 {
    font-size: 11px;
}
.fs-12 {
    font-size: 12px;
}
.fs-13 {
    font-size: 13px;
}
.fs-14 {
    font-size: 14px;
}
.fs-16 {
    font-size: 16px;
}
.fs-20 {
    font-size: 20px;
}
.fs-24 {
    font-size: 24px;
}
.fw-5 {
    font-weight: 500;
}
.fw-6 {
    font-weight: 600;
}
.fw-7 {
    font-weight: 700;
}
.br-8 {
    border-radius: 8px;
}
.br-12 {
    border-radius: 12px;
}
.br-16 {
    border-radius: 16px;
}
.br-50 {
    border-radius: 50%;
}
.br-full {
    border-radius: 9999px;
}
.bdr {
    border: 1px solid var(--xp-border);
}
.w-full {
    width: 100%;
}
.h-full {
    height: 100%;
}
.obj-cover {
    object-fit: cover;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}
.text-center {
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 页面骨架 === */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tool-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.baseline-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.scroll-y {
    overflow-y: auto;
    min-height: 0;
}
.pos-rel {
    position: relative;
}
.w-260 {
    width: 260px;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.mb-32 {
    margin-bottom: 32px;
}
.fw-9 {
    font-weight: 900;
}
.card-pad-lg {
    padding: 24px 24px 32px;
}
.pl-24 {
    padding-left: 24px;
}
.pr-24 {
    padding-right: 24px;
}
.mono {
    font-family: monospace;
}
.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === 文本 === */
.title-num {
    font-size: 14px;
    font-weight: 900;
    color: var(--xp-navy);
}
.stat-big {
    font-size: 22px;
    font-weight: 900;
    color: var(--xp-navy);
}
.desc-sec {
    font-size: 13px;
    color: var(--xp-text-sec);
    margin-top: 4px;
}
.sub-sec {
    font-size: 12px;
    color: var(--xp-text-sec);
    margin-top: 2px;
}
.sub-muted {
    font-size: 11px;
    color: var(--xp-text-muted);
    margin-top: 2px;
}
.link-blue {
    font-size: 12px;
    font-weight: 600;
    color: var(--xp-blue);
    text-decoration: none;
    transition: color 0.2s;
}
.link-blue:hover {
    color: var(--xp-blue-dark);
}

/* === 按钮 === */
.btn-primary-sm {
    height: 34px;
    padding: 0 16px;
    background: var(--xp-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-primary-sm:hover {
    background: var(--xp-blue-dark);
}
.btn-ghost-sm {
    height: 34px;
    padding: 0 12px;
    background: transparent;
    color: var(--xp-text-sec);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.btn-ghost-sm:hover {
    background: var(--xp-bg);
    color: var(--xp-blue);
}
.btn-outline-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--xp-border);
    background: #fff;
    color: var(--xp-text-sec);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.btn-outline-icon:hover {
    border-color: var(--xp-blue);
    color: var(--xp-blue);
}

/* === 表单 === */
.entity-select {
    height: 36px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--xp-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--xp-navy);
    background: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    font-weight: 600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.entity-select:focus {
    border-color: var(--xp-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* === 徽章 === */
.badge-base {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(30, 58, 95, 0.08);
    color: var(--xp-navy);
    border: 1px solid rgba(30, 58, 95, 0.12);
}
.badge-comm {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    color: var(--xp-blue);
    border: 1px solid rgba(37, 99, 235, 0.12);
}
.badge-orange {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

/* === 图片 === */
.img-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--xp-border);
    flex-shrink: 0;
}
.img-xs {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--xp-border);
    flex-shrink: 0;
}

/* === 表格 === */
.xp-th {
    font-weight: 600;
    color: var(--xp-text-sec);
    font-size: 11px;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}
.xp-th.text-right {
    text-align: right;
}
.td-sec {
    padding: 14px 16px;
    font-size: 12px;
    color: var(--xp-text-sec);
}
.td-main {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--xp-text);
}
.td-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--xp-text);
}
.td-code {
    font-size: 10px;
    color: var(--xp-text-muted);
    font-family: monospace;
    margin-top: 2px;
}
.order-no {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--xp-text);
}
.order-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--xp-text);
    max-width: 140px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.row-link {
    border-bottom: 1px solid var(--xp-border-light);
    transition: background 0.15s;
}
.row-link:hover {
    background: var(--xp-bg);
}
.row-even {
    background: #fafafa;
}
.tag-xs {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 9999px;
}

/* === 搜索 === */
.search-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
}
.search-box {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--xp-text);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.search-box:focus {
    border-color: var(--xp-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.entity-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: 8px;
    width: fit-content;
}
.entity-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--xp-navy);
    white-space: nowrap;
}

/* === Header === */
.xp-header {
    background: var(--xp-navy);
    color: #fff;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.15);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.header-logo-icon {
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}
.header-brand {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-item {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.nav-item.active {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
    font-weight: 600;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-search {
    position: relative;
}
.header-search-input {
    width: 180px;
    height: 34px;
    padding: 0 12px 0 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: all 0.2s;
}
.header-search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    width: 220px;
}
.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}
.header-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}
.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.header-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--xp-navy);
}
.header-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.8);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}
.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.user-role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}
.logout-btn {
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    transition: color 0.2s;
}
.logout-btn:hover {
    color: #fff;
}
.login-btn {
    height: 34px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === Footer === */
.xp-footer {
    background: var(--xp-navy);
    color: #fff;
    padding: 48px 24px 24px;
    flex-shrink: 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo {
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}
.footer-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.footer-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0;
    max-width: 320px;
}
.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #fff;
}
.footer-link-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}
.footer-copyright {
    margin: 0;
}
.footer-beian {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* === 分页 === */
.pagination-bar {
    padding: 16px 24px;
    border-top: 1px solid var(--xp-border);
}
.page-ellipsis {
    padding: 0 4px;
    color: #9CA3AF;
}

/* =========================================================== 页面作用域样式（来源：各页面原 <style> 块） =========================================================== */

/* ====== page-dashboard ====== */
.page-dashboard .stat-card-dash {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--xp-border);
    overflow: hidden;
    padding: 20px;
    transition: all 0.2s;
}
.page-dashboard .stat-card-dash:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.06);
}
.page-dashboard .stat-card-dark {
    background: var(--xp-navy);
    border-color: transparent;
}
.page-dashboard .stat-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.page-dashboard .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--xp-navy);
    font-variant-numeric: tabular-nums;
}
.page-dashboard .stat-value-dark {
    color: #fff;
}
.page-dashboard .stat-unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--xp-text-sec);
    margin-left: 2px;
}
.page-dashboard .stat-unit-dark {
    color: rgba(255, 255, 255, 0.6);
}
.page-dashboard .stat-label {
    font-size: 13px;
    color: var(--xp-text-sec);
    margin-bottom: 6px;
}
.page-dashboard .stat-label-dark {
    color: rgba(255, 255, 255, 0.6);
}
.page-dashboard .stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-top: 4px;
}
.page-dashboard .stat-trend-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.page-dashboard .stat-trend {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 8px;
}
.page-dashboard .stat-sub {
    font-size: 12px;
    color: var(--xp-text-muted);
    margin-left: 4px;
}
.page-dashboard .stat-sub-dark {
    color: rgba(255, 255, 255, 0.4);
}
.page-dashboard .dash-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--xp-border);
    overflow: hidden;
}
.page-dashboard .dash-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--xp-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-dashboard .dash-card-header .title {
    font-size: 15px;
    font-weight: 700;
    color: var(--xp-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-dashboard .dash-card-header .title .bar {
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--xp-blue);
}
.page-dashboard .dash-card-body {
    padding: 20px;
}
.page-dashboard .eco-body {
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: nowrap;
}
.page-dashboard .eco-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.page-dashboard .eco-node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    transition: transform 0.2s;
}
.page-dashboard .eco-node-icon:hover {
    transform: scale(1.08);
}
.page-dashboard .eco-arrow {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: -18px;
}
.page-dashboard .prod-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.15s;
}
.page-dashboard .prod-item:hover {
    background: var(--xp-bg);
}
.page-dashboard .price-sub {
    font-size: 10px;
    font-weight: 600;
    margin-top: 1px;
}
.page-dashboard .order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.page-dashboard .order-table th {
    font-weight: 600;
    color: var(--xp-text-sec);
    font-size: 11px;
    padding: 12px 16px;
    text-align: left;
    background: #fafafa;
    border-bottom: 1px solid var(--xp-border-light);
}
.page-dashboard .order-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--xp-border-light);
    vertical-align: middle;
}
.page-dashboard .order-table tr:last-child td {
    border-bottom: none;
}
.page-dashboard .order-table tbody tr:hover {
    background: var(--xp-bg);
}
.page-dashboard .dash-empty {
    text-align: center;
    padding: 40px;
    color: var(--xp-text-muted);
    font-style: italic;
}

/* ====== page-products ====== */
.page-products .btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--xp-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.page-products .btn-icon:hover {
    background: var(--xp-bg);
    color: var(--xp-navy);
}
.page-products .p-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--xp-text);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-products .p-cat {
    display: inline-flex;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    background: var(--xp-bg);
    color: var(--xp-text-muted);
    margin-top: 3px;
}
.page-products .p-guide-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--xp-navy);
}
.page-products .p-base-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--xp-blue);
}
.page-products .btn-select {
    height: 30px;
    padding: 0 14px;
    background: var(--xp-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}
.page-products .btn-select:hover {
    background: var(--xp-blue-dark);
}

/* ====== page-sellers ====== */
.page-sellers .ent-shop-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

/* ====== page-buyers ====== */
.page-buyers .td-time {
    padding: 14px 16px;
    font-size: 11px;
    color: var(--xp-text-sec);
}

/* ====== page-procurement ====== */
.page-procurement .proc-stat-card {
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.15s;
}
.page-procurement .proc-stat-card:hover {
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}
.page-procurement .proc-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.page-procurement .stat-title {
    font-size: 12px;
    color: var(--xp-text-sec);
    margin-bottom: 4px;
}

/* ====== page-settlement ====== */
.page-settlement .sett-stat-card {
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.page-settlement .sett-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.page-settlement .sett-title {
    font-size: 13px;
    color: var(--xp-text-sec);
    margin-bottom: 6px;
}
.page-settlement .sett-title-dark {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}
.page-settlement .amt-out {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
}
.page-settlement .amt-fee {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
}
.page-settlement .amt-in {
    font-size: 14px;
    font-weight: 900;
    color: #dc2626;
}

/* ====== page-analysis ====== */
.page-analysis .chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--xp-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.page-analysis .chart-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--xp-border-light);
    margin-bottom: 20px;
}
.page-analysis .chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--xp-navy);
    margin: 0;
}
.page-analysis .chart-box {
    height: 300px;
}

/* ====== page-compliance ====== */
.page-compliance .page-title-xl {
    font-size: 26px;
    font-weight: 800;
    color: var(--xp-navy);
    margin: 0;
    letter-spacing: -0.5px;
}
.page-compliance .compliance-head-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.page-compliance .compliance-head-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--xp-navy);
    margin: 0;
}
.page-compliance .compliance-card {
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.15s;
}
.page-compliance .compliance-card:hover {
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}
.page-compliance .compliance-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--xp-blue);
}
.page-compliance .compliance-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--xp-navy);
    margin: 0 0 4px;
}
.page-compliance .compliance-card-desc {
    font-size: 13px;
    color: var(--xp-text-sec);
    margin: 0;
}
.page-compliance .rule-head {
    padding: 14px 24px;
    border-bottom: 1px solid var(--xp-border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-compliance .rule-item {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--xp-border-light);
    transition: background 0.15s;
}
.page-compliance .rule-item:hover {
    background: var(--xp-bg);
}
.page-compliance .rule-item:last-child {
    border-bottom: none;
}
.page-compliance .rule-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--xp-text);
    margin-bottom: 2px;
}
.page-compliance .link-plain {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--xp-blue);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.page-compliance .link-plain:hover {
    color: var(--xp-blue-dark);
}
.page-compliance .declaration-box {
    background: var(--xp-bg);
    border-radius: 12px;
    padding: 24px;
    font-size: 13px;
    color: var(--xp-text-sec);
    line-height: 1.8;
}
.page-compliance .declaration-title {
    font-weight: 700;
    color: var(--xp-navy);
    margin-bottom: 12px;
    font-size: 14px;
}

