/* Element UI 主题收口：沿用后台蓝白配色与圆角、间距体系 */
:root {
    --el-brand: #2f6bff;
    --el-brand-dark: #1f4fd0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 按钮 */
.el-button {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.el-button:not(.el-button--text):not(.is-circle) {
    min-height: 36px;
    padding: 0 16px;
}

.el-button--mini:not(.el-button--text) {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12.5px;
    border-radius: 6px;
}

.el-button--primary {
    background-color: var(--el-brand);
    border-color: var(--el-brand);
}

.el-button--primary:hover,
.el-button--primary:focus {
    background-color: var(--el-brand-dark);
    border-color: var(--el-brand-dark);
}

.el-button--primary.is-plain {
    color: var(--el-brand);
    background: #f5f8ff;
    border-color: #d3e0ff;
}

.el-button--primary.is-plain:hover,
.el-button--primary.is-plain:focus {
    background: var(--el-brand);
    border-color: var(--el-brand);
    color: #fff;
}

.el-button--text {
    color: var(--el-brand);
    padding-left: 0;
    padding-right: 0;
}

.el-button--text:hover,
.el-button--text:focus {
    color: var(--el-brand-dark);
}

.el-button.is-disabled,
.el-button.is-disabled:hover {
    border-radius: 8px;
}

/* 输入控件：与后台 38px / 8px 圆角一致 */
.el-input__inner,
.el-textarea__inner {
    border-radius: 8px;
    border-color: #e5e7eb;
    color: #1f2430;
    font-size: 14px;
}

.el-input__inner {
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
}

.el-textarea__inner {
    padding: 8px 12px;
}

.el-input__inner:focus,
.el-textarea__inner:focus,
.el-input.is-focus .el-input__inner,
.el-select .el-input.is-focus .el-input__inner {
    border-color: var(--el-brand);
}

/* 旧后台的通用 input 规则优先级更高，这里显式还原 Element 的内边距与高度 */
.dir-main .el-input .el-input__inner,
.login-card .el-input .el-input__inner {
    height: 38px;
    line-height: 38px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
}

.dir-main .el-input .el-input__inner:focus,
.login-card .el-input .el-input__inner:focus {
    border-color: var(--el-brand);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.dir-main .el-textarea .el-textarea__inner {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 88px;
    box-shadow: none;
}

.el-input__inner:hover,
.el-textarea__inner:hover {
    border-color: #c7d3e8;
}

.el-form-item__label {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    padding-bottom: 6px;
}

.el-form-item {
    margin-bottom: 16px;
}

.el-select {
    width: 100%;
}

.el-select-dropdown__item.selected {
    color: var(--el-brand);
}

.el-select .el-input .el-select__caret {
    color: #9aa4b2;
}

/* 卡片 */
.el-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    color: #1f2430;
}

.el-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
}

.el-card__body {
    padding: 20px;
}

/* 表格 */
.el-table {
    color: #1f2430;
    font-size: 13.5px;
}

.el-table th.el-table__cell {
    background: #fafbfc;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 600;
    padding: 11px 0;
}

.el-table td.el-table__cell {
    padding: 11px 0;
    border-bottom-color: #f1f5f9;
}

.el-table::before,
.el-table--group::after,
.el-table--border::after {
    display: none;
}

.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
    background: #fbfdff;
}

.el-table .cell {
    line-height: 1.6;
    padding: 0 14px;
}

/* 标签 */
.el-tag {
    border-radius: 6px;
    font-size: 12px;
    height: 22px;
    line-height: 20px;
    padding: 0 8px;
}

.el-tag--primary {
    background: #eef3ff;
    border-color: #d3e0ff;
    color: var(--el-brand-dark);
}

/* 分页 */
.el-pagination {
    padding: 16px 0 2px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 400;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background: var(--el-brand);
    border-color: var(--el-brand);
    color: #fff;
}

.el-pagination.is-background .el-pager li:not(.disabled):hover {
    color: var(--el-brand);
}

.el-pagination.is-background .el-pager li.disabled {
    color: #c0c4cc;
    background: #fafbfc;
}

/* 弹窗 */
.el-dialog {
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
}

.el-dialog__header {
    padding: 20px 24px 0;
    font-weight: 700;
}

.el-dialog__body {
    padding: 18px 24px 8px;
    color: #1f2430;
}

.el-dialog__footer {
    padding: 8px 24px 20px;
}

.el-message-box {
    border-radius: 12px;
}

.el-message {
    border-radius: 8px;
    min-width: 320px;
}

/* 菜单 */
.el-menu {
    border-bottom: none;
    background: transparent;
}

.el-menu--horizontal > .el-menu-item,
.el-menu--horizontal > .el-submenu .el-submenu__title {
    height: 56px;
    line-height: 56px;
    color: #374151;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.el-menu--horizontal > .el-menu-item.is-active,
.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
    color: var(--el-brand);
    border-bottom-color: var(--el-brand);
}

.el-menu--horizontal > .el-menu-item:hover,
.el-menu--horizontal > .el-submenu .el-submenu__title:hover {
    background: #f5f8ff;
    color: var(--el-brand);
}

.el-menu--vertical .el-menu-item.is-active {
    color: var(--el-brand);
    background: #eef3ff;
}

.el-drawer__header {
    margin-bottom: 0;
    padding: 18px 20px;
    font-weight: 700;
    color: #1f2430;
}

/* 工作台：三项竖向目录菜单 */
.dash-menu.el-menu {
    border-right: 0;
}

.dash-menu .el-menu-item {
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    color: #1f2430;
    border-bottom: 1px solid #f1f5f9;
}

.dash-menu .el-menu-item:last-child {
    border-bottom: 0;
}

.dash-menu .el-menu-item:hover,
.dash-menu .el-menu-item:focus {
    background: #f5f8ff;
    color: var(--el-brand);
}

/* 弹窗内的通用块 */
.el-dialog {
    max-width: calc(100% - 32px);
}

.dialog-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dialog-error {
    margin-top: 6px;
    color: #f56c6c;
    font-size: 12.5px;
}

.dialog-hint {
    margin-top: 6px;
    color: #6b7280;
    font-size: 12.5px;
}

.dialog-hint.is-error {
    color: #f56c6c;
}

.candidate-list {
    max-height: 220px;
    margin-top: 10px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid #dbe6ff;
    border-radius: 10px;
    background: #f5f8ff;
}

.candidate-list .el-button {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    text-align: left;
}

.candidate-list .el-button:last-child {
    margin-bottom: 0;
}

.qr-reader {
    margin-top: 10px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
}

.secret-box {
    padding: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
}

.secret-row {
    margin-top: 10px;
}

.secret-label {
    display: block;
    color: #6b7280;
    font-size: 12.5px;
}

.secret-value {
    display: block;
    margin-top: 2px;
    color: #16a34a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    word-break: break-all;
}

/* 表单页通用宽度与提示 */
.form-page {
    max-width: 760px;
}

.query-hint {
    margin-top: 6px;
    color: var(--el-brand);
    font-size: 12.5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

.kv-list {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 8px 14px;
    margin: 0;
}

.kv-list dt {
    color: #6b7280;
    font-size: 12.5px;
}

.kv-list dd {
    margin: 0;
    color: #1f2430;
    font-size: 13.5px;
    word-break: break-all;
}

.inline-alert {
    margin-top: 8px;
}

/* 表单分组与粘贴区 */
.form-section {
    margin-bottom: 6px;
}

.form-section + .form-section {
    margin-top: 20px;
}

.form-section h2 {
    margin: 0 0 14px;
    color: #1f2430;
    font-size: 15px;
    font-weight: 600;
}

.paste-area {
    padding: 22px 16px;
    border: 1px dashed #b9ccff;
    border-radius: 12px;
    background: #f5f8ff;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
}

.paste-area:hover {
    border-color: var(--el-brand);
    background: #eff4ff;
}

.paste-strong {
    color: var(--el-brand);
}

.result-kv {
    margin-top: 16px;
}

.kv-grid {
    grid-template-columns: 118px 1fr 118px 1fr;
}

.package-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.package-link {
    text-decoration: none;
}

@media (max-width: 900px) {
    .kv-grid {
        grid-template-columns: 118px 1fr;
    }
}

/* 输入联想 */
.suggest-wrap {
    position: relative;
}

.suggest-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.suggest-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
}

.suggest-item:hover {
    background: #f5f8ff;
    color: var(--el-brand);
}

.suggest-name {
    font-weight: 500;
}

.suggest-phone {
    color: #6b7280;
}

.suggest-empty {
    padding: 12px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

.owner-more {
    margin-top: 14px;
}

@media (max-width: 640px) {
    .kv-list {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .kv-list dd {
        margin-bottom: 8px;
    }
}

@media (max-width: 640px) {
    .form-actions .el-button {
        flex: 1;
        margin-left: 0;
    }
}

.el-drawer__body {
    padding: 0;
    overflow-y: auto;
}

/* 顶部导航布局 */
.dir-topbar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dir-brand {
    flex: 0 0 auto;
}

.dir-el-menu {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.dir-el-menu.el-menu--horizontal {
    border-bottom: 0;
}

.dir-account {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dir-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 16px;
    cursor: pointer;
}

.dir-drawer-menu {
    border-right: 0;
}

@media (min-width: 901px) {
    .dir-menu-btn {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .dir-el-menu {
        display: none !important;
    }

    .dir-menu-btn {
        display: inline-flex;
    }

    .dir-account-name {
        display: none;
    }

    .dir-topbar-inner {
        gap: 10px;
    }
}

/* 页面级 Element 卡片与旧面板间距对齐 */
.dir-main .el-card + .el-card {
    margin-top: 18px;
}

.dir-main .page-head + .el-card {
    margin-top: 0;
}

.el-empty {
    padding: 28px 0;
}

.el-empty__description p {
    color: #6b7280;
    font-size: 13px;
}

[v-cloak] {
    display: none !important;
}

/* 表单内的按钮不做整行拉伸，保持与后台一致的 36px 次要/主要按钮 */
.dir-main .field-full > .el-button,
.dir-main .form-actions > .el-button {
    align-self: flex-start;
    width: auto;
}

.dir-main .form-actions > .el-button + .el-button {
    margin-left: 10px;
}

/* 权限矩阵：目录名不折行 */
.dir-main .perm-item strong {
    white-space: nowrap;
}

/* 登录按钮整行，和原登录页一致 */
.login-card {
    width: 400px;
    max-width: calc(100% - 32px);
}

.login-submit {
    width: 100%;
    margin-top: 4px;
}

.login-alert {
    margin-bottom: 16px;
}

.dir-account .el-button--text {
    color: #4b5563;
    font-size: 13px;
    padding: 0;
}

.dir-account .el-button--text:hover {
    color: var(--el-brand);
}

.dir-logout-form {
    display: inline-flex;
    margin: 0;
}

/* 面包屑保留原样式，仅统一字号 */
.crumbs {
    font-size: 12.5px;
}

/* 页面内嵌入 Element 时，避免被旧表单通配规则重复加内边距 */
.dir-main .el-input > input,
.dir-main .el-textarea__inner,
.login-body .el-input > input {
    min-height: 0;
    box-shadow: none;
}

.dir-main .el-input__inner:focus,
.dir-main .el-textarea__inner:focus {
    box-shadow: none;
}

/* 手机端表格：容器横向滚动，不撑破页面 */
.el-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.el-table-scroll .el-table {
    min-width: 720px;
}

/* ---------- 业务页：Element 组件与沿用布局对齐 ---------- */
.el-card.stat-card {
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.el-card.stat-card .el-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
}

.el-card.stat-card:hover {
    border-color: var(--el-brand);
    box-shadow: 0 6px 18px rgba(47, 107, 255, 0.12);
}

.el-card.stat-card.is-active {
    border-color: var(--el-brand);
    box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.12);
}

.filter-form {
    margin-bottom: 2px;
}

.filter-form .el-form-item {
    margin-right: 14px;
    margin-bottom: 14px;
}

.filter-form .el-form-item__label {
    color: #6b7280;
    font-size: 12.5px;
}

.card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.el-table .row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.el-table .row-actions .el-button {
    margin-left: 0;
}

.row-form {
    display: inline-flex;
    margin: 0;
}

.el-table .amount-text {
    font-size: 14px;
    white-space: nowrap;
}

.el-table .nowrap-cell .cell {
    white-space: nowrap;
}

.stat-label {
    white-space: nowrap;
}

.pdf-dialog-frame {
    width: 100%;
    height: 68vh;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
}

.el-upload__tip {
    margin-top: 6px;
    color: #6b7280;
    font-size: 12.5px;
}

.el-upload-list {
    max-width: 460px;
}

.el-upload-list__item {
    font-size: 13px;
}

@media (max-width: 720px) {
    .el-card.stat-card .el-card__body {
        padding: 10px 12px;
    }

    .filter-form .el-form-item {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .filter-form .el-form-item__content {
        width: 100%;
    }

    .filter-form .el-input,
    .filter-form .el-select {
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .el-card__body {
        padding: 16px;
    }

    .el-table-scroll .el-table {
        min-width: 1160px;
    }

    .el-pagination {
        justify-content: center;
    }
}

/* ---------- 发票详情：概要条 / 分组信息 / 时间线 / 预览 ---------- */
.detail-summary {
    margin-bottom: 16px;
}

.detail-summary .el-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.summary-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: #1f2430;
}

.summary-id {
    color: #6b7280;
    font-size: 13px;
}

.summary-amount {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--el-brand);
    letter-spacing: -0.5px;
}

.summary-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.summary-meta i {
    margin-right: 4px;
}

.summary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.summary-actions .el-button {
    margin-left: 0;
}

.summary-actions .row-form {
    margin: 0;
}

.detail-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.detail-card {
    margin-bottom: 16px;
}

.detail-sections .detail-card,
.preview-grid .detail-card {
    margin-bottom: 0;
}

.detail-card .el-card__header {
    padding: 14px 20px;
}

.card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2430;
}

.detail-desc .el-descriptions-item__label {
    width: 96px;
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.detail-desc .el-descriptions-item__content {
    color: #1f2430;
    word-break: break-word;
}

.detail-desc .amount-text {
    font-size: 16px;
}

.tax-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.4px;
}

.detail-timeline {
    margin-top: 4px;
    padding-left: 2px;
}

.detail-timeline .timeline-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2430;
}

.detail-timeline .timeline-desc {
    margin-top: 2px;
    font-size: 12.5px;
    color: #6b7280;
}

.preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 16px;
}

.voucher-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 10px;
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 8px;
}

.voucher-box .voucher-detail {
    max-height: 380px;
    cursor: zoom-in;
}

.pdf-inline-frame {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
}

.pdf-full-frame {
    width: 100%;
    height: 80vh;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
}

.voucher-full {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
}

.image-dialog .el-dialog__body {
    padding-top: 10px;
}

.preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-actions .el-button {
    margin-left: 0;
}

.preview-actions.is-center {
    justify-content: center;
}

.detail-empty {
    padding: 32px 16px;
    text-align: center;
    color: #9aa3af;
    font-size: 13px;
    background: #fafbfc;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
}

.upload-hint {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .detail-sections,
    .preview-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .detail-summary .el-card__body {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .summary-amount {
        font-size: 24px;
    }

    .summary-actions {
        width: 100%;
    }

    .summary-actions .el-button,
    .summary-actions .row-form {
        flex: 1 1 calc(50% - 8px);
    }

    .summary-actions .row-form .el-button {
        width: 100%;
    }

    .detail-desc .el-descriptions-item__label {
        width: 84px;
    }

    .pdf-inline-frame {
        height: 320px;
    }

    .pdf-full-frame {
        height: 68vh;
    }
}

/* ---------- APK 搜索结果 ---------- */
.search-summary .el-card__body {
    padding: 18px 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px 24px;
}

.summary-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.summary-label {
    color: #6b7280;
}

.summary-value {
    color: #1f2430;
    font-weight: 500;
    word-break: break-word;
}

.summary-value.keyword {
    color: var(--el-brand);
}

.summary-foot {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    color: #6b7280;
    font-size: 12.5px;
}

.card-hint {
    color: #9aa3af;
    font-size: 12.5px;
}

.card-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-head-actions .el-button {
    margin-left: 0;
}

.stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: #374151;
}

.stat-chips strong {
    color: #1f2430;
}

.sync-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #6b7280;
}

.sync-card .el-alert,
.degrade-alert {
    margin-top: 12px;
}

.sync-failures {
    margin-top: 6px;
}

.failure-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.failure-row:last-child {
    border-bottom: 0;
}

.failure-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.text-danger {
    color: #dc2626;
}

.app-list {
    display: flex;
    flex-direction: column;
}

.app-list .app-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
}

.app-list .app-item:first-child {
    padding-top: 2px;
}

.app-list .app-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.app-list .app-item:hover {
    box-shadow: none;
}

.app-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.app-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2430;
}

.app-list .app-meta {
    font-size: 12.5px;
    color: #6b7280;
    word-break: break-word;
}

.app-list .app-meta.muted {
    color: #9aa3af;
}

.app-anchor {
    font-size: 12.5px;
    font-style: italic;
    color: #9aa3af;
}

.app-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 58%;
}

.app-actions .el-button {
    margin-left: 0;
}

.action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.action-buttons .el-button {
    margin-left: 0;
}

.app-link {
    font-size: 12.5px;
    color: #6b7280;
    word-break: break-all;
}

.app-link a {
    color: var(--el-brand);
    text-decoration: none;
}

.app-tip {
    flex-basis: 100%;
    font-size: 12.5px;
    color: #dc2626;
    text-align: right;
}

.empty-hint {
    max-width: 520px;
    margin: 8px auto 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.page-foot-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: #9aa3af;
}

@media (max-width: 720px) {
    .summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-list .app-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .app-actions {
        justify-content: flex-start;
        max-width: 100%;
    }

    .app-tip {
        text-align: left;
    }

    .failure-row {
        flex-direction: column;
    }

    .card-head-row {
        flex-wrap: wrap;
    }
}

/* ---------- 查询结果页 ---------- */
.result-hero {
    margin-bottom: 16px;
}

.result-hero .el-card__body {
    padding: 20px;
}

.hero-label {
    font-size: 12.5px;
    color: #6b7280;
}

.hero-main {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2430;
}

.hero-meta {
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
}

.hero-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero-kv {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 13.5px;
}

.hero-kv .kv-label {
    color: #6b7280;
    min-width: 64px;
}

.hero-kv .kv-value {
    color: #1f2430;
    font-weight: 500;
    word-break: break-word;
}

.result-card {
    margin-bottom: 16px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    padding: 14px 16px;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    background: #fcfdff;
}

.result-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.result-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
    color: #1f2430;
}

.item-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(47, 107, 255, 0.1);
    color: var(--el-brand);
    font-size: 12px;
    font-weight: 500;
}

.item-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 400;
    color: #6b7280;
}

.result-sim {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 13px;
}

.sim-label {
    color: #6b7280;
    min-width: 64px;
}

.sim-value {
    color: #1f2430;
}

.inline-post-form {
    display: inline-flex;
    margin: 0;
}

.sim-link {
    padding: 0;
    font-size: 13px;
    color: var(--el-brand);
}

.result-collapse {
    margin-top: 8px;
    border-top: 0;
    border-bottom: 0;
}

.result-collapse .el-collapse-item__header {
    height: 40px;
    line-height: 40px;
    font-size: 13px;
    color: var(--el-brand);
    background: transparent;
}

.result-collapse .el-collapse-item__wrap {
    background: transparent;
}

.result-collapse .el-collapse-item__content {
    padding-bottom: 4px;
}

.collapse-title {
    font-weight: 500;
}

.group-title {
    margin: 14px 0 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
}

.group-title:first-child {
    margin-top: 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.result-actions .el-button {
    margin-left: 0;
}

.result-kv .kv-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.result-kv .kv-label {
    min-width: 120px;
    color: #6b7280;
}

.reset-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #4b5563;
}

.code-chip {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: #1f2430;
}

.result-kv .kv-value {
    color: #1f2430;
    font-weight: 500;
    word-break: break-all;
}

@media (max-width: 640px) {
    .result-kv .kv-row {
        flex-direction: column;
        gap: 2px;
    }

    .result-kv .kv-label {
        min-width: 0;
    }
}

/* ---------- 数据看板 ---------- */
.board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.board-card {
    margin-bottom: 0;
}

.board-card.is-wide {
    grid-column: 1 / -1;
}

.board-card .el-card__header {
    padding: 14px 20px;
}

.board-card .board-head {
    margin-bottom: 0;
}

.board-status.is-error {
    color: #dc2626;
}

.board-empty {
    margin: 0;
    color: #9aa3af;
    font-size: 12.5px;
}

.op-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1000px) {
    .board-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .board-card.is-wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .board-card .metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .board-card .metric-row .metric:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ---------- 快递列表 ---------- */
.filter-card {
    margin-bottom: 16px;
}

.filter-card .el-card__body {
    padding: 18px 20px 4px;
}

.filter-form .el-form-item {
    margin-right: 16px;
    margin-bottom: 14px;
}

.filter-form .keyword-input {
    width: 260px;
}

.filter-form .mode-select {
    width: 120px;
}

.filter-form .date-picker {
    width: 170px;
}

.filter-form .range-picker {
    width: 280px;
}

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

.pagination-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.danger-text {
    color: #dc2626 !important;
}

.danger-text:hover {
    color: #b91c1c !important;
}

.tracking-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: #1f2430;
}

.text-empty {
    color: #9aa3af;
}

.desc-wide-label .el-descriptions-item__label {
    width: 150px;
    white-space: normal;
    line-height: 1.5;
}

.pre-line {
    white-space: pre-line;
}

.change-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.change-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.change-arrow {
    color: #9aa3af;
}

.change-input,
.reason-input {
    width: 220px;
}

.change-confirm {
    margin-bottom: 12px;
}

.change-tip {
    margin-bottom: 12px;
}

.form-hint {
    margin-left: 10px;
    font-size: 12.5px;
}

.field-hint {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #9aa3af;
}

.field-hint a {
    color: var(--el-brand);
    text-decoration: none;
}

.readonly-box {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 20px;
    background: #f7f9fc;
    border: 1px solid #eef1f5;
    border-radius: 8px;
}

.el-form .readonly-box {
    max-width: none;
}

.timeline-id {
    margin-left: 8px;
    font-size: 12px;
    color: #b0b7c3;
}

.form-errors {
    margin-bottom: 18px;
}

.form-page .el-form-item {
    margin-bottom: 28px;
}

.form-errors .error-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 720px) {
    .filter-form .el-form-item {
        display: block;
        margin-right: 0;
    }

    .filter-form .el-form-item__content {
        display: block;
    }

    .filter-form .keyword-input,
    .filter-form .mode-select,
    .filter-form .date-picker,
    .filter-form .range-picker {
        width: 100%;
    }

    .pagination-bar {
        justify-content: center;
    }

    .change-input,
    .reason-input {
        width: 100%;
    }

    .form-hint {
        display: block;
        margin: 8px 0 0;
    }
}

@media (max-width: 640px) {
    .result-item {
        padding: 12px;
    }

    .result-hero .el-card__body {
        padding: 16px;
    }

    .hero-main {
        font-size: 18px;
    }

    .result-actions .el-button {
        flex: 1;
    }
}

/* ---------- 免登录开票页 ---------- */
.guest-body {
    background: #f2f6fd;
}

.guest-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.guest-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e8eefb;
}

.guest-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--el-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.guest-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2430;
}

.guest-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.guest-main-narrow {
    max-width: 560px;
}

.guest-panel {
    border-radius: 14px;
    border: 1px solid #e8eefb;
    box-shadow: 0 6px 24px rgba(31, 79, 208, 0.05);
    margin-bottom: 16px;
}

.guest-panel .el-card__body {
    padding: 26px 28px;
}

.guest-panel-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f3f9;
}

.guest-panel-head h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2430;
}

.guest-panel-head p {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: #6b7280;
}

.guest-form .el-form-item {
    margin-bottom: 20px;
}

.guest-select {
    width: 100%;
}

.guest-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.guest-form-actions .el-button,
.guest-form-actions .guest-submit {
    margin-left: 0;
    flex: 1;
}

.guest-submit {
    width: 100%;
}

.guest-footnote {
    margin: 4px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: #9aa3af;
}

.guest-errors {
    margin-bottom: 16px;
}

.guest-errors .error-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.7;
}

.guest-history {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: #f5f8ff;
    border: 1px solid #dbe5fb;
    border-radius: 10px;
}

.guest-history strong {
    font-size: 13.5px;
    color: #1f2430;
}

.guest-history p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #6b7280;
}

.guest-history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.guest-history-actions .el-button {
    margin-left: 0;
}

.parse-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.parse-status {
    font-size: 12.5px;
    color: #047857;
}

.parse-status.is-error {
    color: #b91c1c;
}

.voucher-upload .el-upload__tip {
    margin-top: 4px;
    font-size: 12.5px;
    color: #9aa3af;
}

.voucher-preview-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.voucher-thumb {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    border: 1px solid #e8eefb;
    cursor: zoom-in;
}

.voucher-remove {
    display: block;
    margin-top: 10px;
}

.guest-section-title {
    margin: 18px 4px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.record-card .el-card__body {
    padding: 18px 20px;
}

.record-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.record-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1f2430;
}

.record-title {
    margin-top: 2px;
    font-size: 14px;
    color: #475569;
    word-break: break-word;
}

.record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 12.5px;
    color: #6b7280;
}

.record-remark {
    margin-top: 8px;
    font-size: 12.5px;
    color: #6b7280;
    word-break: break-word;
}

.record-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.record-actions .el-button {
    margin-left: 0;
}

.muted-text {
    font-size: 12.5px;
    color: #9aa3af;
}

.success-meta p {
    margin: 2px 0;
    font-size: 13.5px;
    color: #6b7280;
}

@media (max-width: 720px) {
    .guest-main {
        padding: 16px 14px 36px;
    }

    .guest-topbar {
        padding: 0 16px;
    }

    .guest-panel .el-card__body {
        padding: 20px 16px;
    }

    .guest-form-actions {
        flex-direction: column;
    }

    .guest-history {
        flex-direction: column;
        align-items: stretch;
    }

    .guest-history-actions {
        justify-content: flex-end;
    }
}


/* ---------- 403 / 404 提示页 ---------- */
.err-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f2f6fd;
}

.err-card {
    width: 100%;
    max-width: 440px;
    border-radius: 14px;
    border: 1px solid #e8eefb;
    box-shadow: 0 6px 24px rgba(31, 79, 208, 0.06);
}

.err-code {
    margin-bottom: 6px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
    color: var(--el-brand);
}

.err-body-text p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #6b7280;
}

@media (max-width: 480px) {
    .err-body {
        padding: 16px 12px;
    }
}

/* ---------- 设备目录：Element 结构通用补丁 ---------- */
.hidden-post-form {
    display: none;
}

.desc-group-title {
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--el-text, #303133);
}

.desc-group-title:first-child {
    margin-top: 0;
}

.expand-desc {
    padding: 4px 12px 8px;
}

.qr-hint {
    margin-top: 10px;
}

/* ---------- 设备目录：Element 结构通用补丁 ---------- */
.package-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.package-actions .el-button + .el-button {
    margin-left: 0;
}

.result-desc {
    margin-top: 18px;
}

.suggest-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.app-cell-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.app-cell-title .el-tag + .el-tag {
    margin-left: 0;
}

.app-cell-name {
    font-weight: 600;
    color: #303133;
}

.app-cell-meta {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #909399;
    word-break: break-all;
}

.app-cell-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.app-cell-actions .el-button + .el-button,
.app-cell-actions .el-button + a.el-button,
.app-cell-actions a.el-button + .el-button {
    margin-left: 0;
}

@media (max-width: 640px) {
    .expand-desc {
        padding: 4px 0 8px;
    }
}
