/* 头像框 */
.admin-container .card {
    margin-bottom: 16px;
}

.admin-container .card:last-child {
    margin-bottom: 0;
}

.admin-container .card > h2:first-child {
    margin-top: 0;
}
.af-frame-gold {
    --af-color: #f59e0b;
    --af-glow: rgba(245, 158, 11, .55);
}

.af-frame-neon {
    --af-color: #22d3ee;
    --af-glow: rgba(34, 211, 238, .55);
}

.af-frame-fire {
    --af-color: #ef4444;
    --af-glow: rgba(239, 68, 68, .55);
}

.af-frame-ice {
    --af-color: #93c5fd;
    --af-glow: rgba(147, 197, 253, .6);
}

.af-frame-leaf {
    --af-color: #34d399;
    --af-glow: rgba(52, 211, 153, .55);
}

.af-frame-purple {
    --af-color: #a78bfa;
    --af-glow: rgba(167, 139, 250, .55);
}

.mn-row-avatar {
    position: relative;
}

.af-rel {
    position: relative;
}

.af-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: none;
    line-height: 0;
}

.af-frame {
    position: absolute;
    inset: -3px;
    border: 2px solid var(--af-color, #f59e0b);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--af-glow, rgba(245, 158, 11, .5));
    pointer-events: none;
}

.af-swatch,
.af-owned-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--af-color, #f59e0b);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--af-glow, rgba(245, 158, 11, .5));
    vertical-align: middle;
}

.af-profile-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border: 1px solid var(--af-color, #f59e0b);
    border-radius: var(--mn-radius-sm, 4px);
    color: var(--af-color, #f59e0b);
    font-size: 11px;
    line-height: 18px;
    vertical-align: middle;
}

.af-page {
    max-width: 1000px;
    padding: 20px;
}

.af-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.af-intro {
    margin: 0 0 14px;
    color: var(--mn-text-muted, #6b7280);
    font-size: 13px;
}

.af-alert {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: var(--mn-radius, 8px);
    font-size: 13px;
}

.af-alert.ok {
    background: rgba(22, 163, 74, .1);
    color: #15803d;
}

.af-alert.error {
    background: rgba(220, 38, 38, .1);
    color: #b91c1c;
}

.af-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.af-card {
    padding: 18px 14px;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--mn-radius-lg, 10px);
    background: var(--mn-bg-elevated, #fff);
    text-align: center;
}

.af-card-name {
    margin: 10px 0 4px;
    font-size: 15px;
}

.af-card-price {
    margin-bottom: 10px;
    color: var(--mn-text-muted, #6b7280);
    font-size: 12px;
}

.af-wearing {
    display: inline-block;
    color: #15803d;
    font-size: 12px;
}

.af-empty,
.af-muted {
    color: var(--mn-text-muted, #6b7280);
    font-size: 13px;
}

.af-off-form {
    margin-top: 16px;
}

.af-linkbtn {
    padding: 2px 8px;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--mn-radius-sm, 4px);
    background: transparent;
    color: var(--mn-text, #1f2328);
    font-size: 12px;
    cursor: pointer;
}

/* 个人主页管理卡片 */
.af-profile-panel .af-owned-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--mn-border, #e5e7eb);
    font-size: 12px;
}

.af-profile-panel .af-owned-row:last-of-type {
    border-bottom: 0;
}

.af-owned-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.af-profile-panel form {
    margin: 0;
}

.af-off-form {
    margin-top: 8px;
}

.af-store-link {
    margin-top: 12px;
}

/* 后台 */
.af-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    font-size: 13px;
}

.af-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.af-form input,
.af-form select {
    padding: 7px 9px;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--mn-radius, 8px);
    background: var(--mn-bg, #fff);
    color: var(--mn-text, #1f2328);
}

.af-form .af-check {
    flex-direction: row;
    align-items: center;
}

.af-table-wrap {
    overflow-x: auto;
}

.af-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--mn-bg-elevated, #fff);
}

.af-table th,
.af-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--mn-border, #e5e7eb);
    text-align: left;
}

.af-table th {
    color: var(--mn-text-muted, #6b7280);
    font-weight: 600;
    white-space: nowrap;
}

.af-danger {
    padding: 2px 8px;
    border: 1px solid rgba(220, 38, 38, .4);
    border-radius: var(--mn-radius-sm, 4px);
    background: transparent;
    color: #dc2626;
    font-size: 12px;
    cursor: pointer;
}
