.fubei-platform-page {
    --fubei-line: var(--glass-border, #dfe3eb);
    --fubei-surface: var(--bg-secondary, #fff);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 24px;
}

.fubei-platform-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    margin: 0;
}

.fubei-platform-heading h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -.2px;
    font-weight: 650;
    color: var(--text-primary, #242638);
}

.fubei-platform-form.el-form--inline .el-form-item {
    margin-right: 12px;
    margin-bottom: 8px;
}

.fubei-platform-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fubei-platform-stat {
    padding: 14px 16px;
    border: 1px solid var(--fubei-line);
    border-radius: 12px;
    background: var(--fubei-surface);
}

.fubei-platform-stat span {
    display: block;
    color: var(--text-tertiary, #858898);
    font-size: 13px;
}

.fubei-platform-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 650;
    color: var(--text-primary, #242638);
}

.fubei-platform-tabs,
.fubei-platform-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fubei-platform-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fubei-platform-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-tertiary, #858898);
    cursor: help;
}

.fubei-platform-tip svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
}

.fubei-platform-tip:hover {
    color: var(--text-primary, #242638);
}

.fubei-platform-tip-popper {
    max-width: 360px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.fubei-platform-table-wrap {
    border: 1px solid var(--fubei-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--fubei-surface);
}

.fubei-platform-table-wrap .el-table {
    --el-table-border-color: var(--fubei-line);
    --el-table-header-bg-color: color-mix(in srgb, var(--text-tertiary, #858898) 5%, var(--fubei-surface));
    --el-table-bg-color: var(--fubei-surface);
    --el-table-tr-bg-color: var(--fubei-surface);
    --el-table-row-hover-bg-color: color-mix(in srgb, var(--color-primary, #7161d7) 3%, var(--fubei-surface));
}

.fubei-platform-table-wrap .el-table::before,
.fubei-platform-table-wrap .el-table::after {
    display: none;
}

.fubei-platform-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fubei-platform-action {
    cursor: pointer;
    user-select: none;
}

.fubei-platform-edit {
    max-height: 68vh;
    overflow: auto;
    padding-right: 8px;
}

.fubei-platform-edit-title {
    margin: 8px 0 12px;
    font-size: 15px;
}

.fubei-platform-edit-suffix {
    margin-left: 8px;
}

.fubei-platform-edit-tip {
    margin: 4px 0 0;
    color: var(--text-tertiary, #858898);
    font-size: 12px;
    line-height: 1.4;
}

.fubei-platform-action:hover {
    opacity: 0.86;
}

.fubei-platform-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 70vh;
    overflow: auto;
}

.fubei-platform-detail-state {
    padding: 24px 0;
    color: var(--text-tertiary, #858898);
}

.fubei-platform-detail-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 650;
}

.fubei-platform-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px 18px;
}

.fubei-platform-field {
    display: flex;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
}

.fubei-platform-field span {
    flex: 0 0 84px;
    color: var(--text-tertiary, #858898);
}

.fubei-platform-field strong {
    min-width: 0;
    font-weight: 550;
    word-break: break-all;
}

.fubei-platform-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fubei-platform-photos a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 128px;
    color: var(--text-secondary, #5d6070);
    text-decoration: none;
}

.fubei-platform-photos img {
    width: 128px;
    height: 84px;
    object-fit: cover;
    border: 1px solid var(--fubei-line, #e6e8ef);
    border-radius: 8px;
    background: #f6f7fb;
}

.fubei-platform-photos em {
    font-style: normal;
    font-size: 12px;
}

@media (max-width: 840px) {
    .fubei-platform-stats {
        grid-template-columns: 1fr;
    }

    .fubei-platform-form.el-form--inline .el-form-item {
        display: flex;
        margin-right: 0;
    }
}
