/* 爆枪英雄 — 与国王的勇士5 一致的外壳布局 */

.save-editor-body .login-card {
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.save-editor-body .save-page {
    width: 100%;
    max-width: 860px;
    overflow: hidden;
}

.save-editor-body .detail-page.bq-detail-page {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3rem);
    min-height: calc(100vh - 3rem);
    max-height: calc(100vh - 3rem);
}

.save-editor-body .login-header,
.save-editor-body .save-header {
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.save-editor-body .login-header-icon,
.save-editor-body .save-header-icon,
.save-editor-body .detail-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.save-editor-body .login-header-icon.editor-game-icon-wrap,
.save-editor-body .save-header-icon.editor-game-icon-wrap {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
}

.save-editor-body .editor-game-icon-img {
    border-radius: var(--radius-sm, 8px);
}

.save-editor-body .login-header-icon .icon,
.save-editor-body .save-header-icon .icon,
.save-editor-body .detail-header-icon .icon {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.save-editor-body .login-header-text h1,
.save-editor-body .save-header-left h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.save-editor-body .login-header-text p,
.save-editor-body .save-header-left p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.save-editor-body .save-header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.save-editor-body .login-body,
.save-editor-body .save-body {
    padding: 1.5rem 1.75rem;
}

.save-editor-body .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.15s;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    padding: 0;
}

.save-editor-body .back-btn:hover {
    color: var(--primary);
}

.save-editor-body .back-btn .icon {
    width: 14px;
    height: 14px;
}

.save-editor-body .page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
    border: none;
    background: transparent;
    font-family: inherit;
    padding: 0;
}

.save-editor-body .page-back:hover {
    color: #fff;
}

.save-editor-body .page-back .icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.save-editor-body .detail-header {
    padding: 1.1rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex-shrink: 0;
}

.save-editor-body .detail-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.save-editor-body .detail-header-left h1 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.save-editor-body .detail-header-left p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1px;
}

.save-editor-body .detail-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.save-editor-body .save-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
}

.save-editor-body .save-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.save-editor-body .save-table thead th {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.78rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.save-editor-body .save-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    vertical-align: middle;
}

.save-editor-body .save-table tbody tr:last-child td {
    border-bottom: none;
}

.save-editor-body .save-table tbody tr:hover td {
    background: var(--bg-input);
}

.save-editor-body .slot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-bg, var(--primary-glow));
    color: var(--primary);
    border-radius: var(--radius-sm, 6px);
    font-size: 0.78rem;
    font-weight: 700;
}

.save-editor-body .btn-read {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}

.save-editor-body .btn-read:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px var(--primary-glow);
}

.save-editor-body .btn-read:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.save-editor-body .empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.save-editor-body .empty-state .icon {
    width: 40px;
    height: 40px;
    stroke: var(--text-dim);
    display: block;
    margin: 0 auto 0.75rem;
}

.save-editor-body .empty-state p {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.save-editor-body .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bqSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.save-editor-body .captcha-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    padding: 6px 0;
}

.save-editor-body .icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.save-editor-body .icon-sm {
    width: 16px;
    height: 16px;
}

.save-editor-body .btn-sm {
    padding: 0.35rem 0.875rem;
    font-size: 0.78rem;
}

.save-editor-body .btn-full {
    width: 100%;
}

.save-editor-body .btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.save-editor-body .quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}

.save-editor-body .quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes bqSpin {
    to { transform: rotate(360deg); }
}
