/* 用户账户弹窗（已解锁岗位 / 卡券包）— 独立样式，对齐 design-foundations §6.8 */

#uam-unlocked-jobs-modal,
#uam-coupon-wallet-modal {
    z-index: 70;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.uam-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
}

.uam-overlay.uam-open {
    display: flex;
}

.uam-panel {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 36rem;
    max-height: 80vh;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

.uam-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.uam-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.uam-header {
    flex-shrink: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 24px 16px;
    padding-right: 48px;
}

.uam-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.uam-subtitle {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.uam-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 24px;
}

.uam-loading,
.uam-error {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
}

.uam-loading {
    color: #94a3b8;
}

.uam-error {
    color: #dc2626;
}

.uam-empty {
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 40px 16px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.uam-empty-hint {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.uam-gap {
    height: 12px;
}

/* 已解锁岗位列表项 */
.uam-job-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s;
}

.uam-job-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.uam-job-main {
    min-width: 0;
    flex: 1;
}

.uam-job-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uam-job-meta {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.uam-job-meta-sub {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.uam-btn-view {
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: rgba(30, 58, 138, 0.1);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e3a8a;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.uam-btn-view:hover {
    background: #1e3a8a;
    color: #ffffff;
}

/* 卡券卡片 */
.uam-coupon-card {
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(to right, #eff6ff, #ffffff);
}

.uam-coupon-inner {
    display: flex;
    align-items: stretch;
}

.uam-coupon-amount {
    display: flex;
    width: 96px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed #bfdbfe;
    background: rgba(239, 246, 255, 0.8);
    padding: 16px 8px;
    color: #1e3a8a;
}

.uam-coupon-yen {
    font-size: 0.75rem;
    font-weight: 500;
}

.uam-coupon-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.uam-coupon-info {
    min-width: 0;
    flex: 1;
    padding: 12px 16px;
}

.uam-coupon-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.uam-coupon-type {
    border-radius: 4px;
    background: rgba(30, 58, 138, 0.1);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e3a8a;
}

.uam-coupon-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.uam-coupon-expires {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.uam-coupon-countdown {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #b45309;
}

.uam-coupon-note {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.uam-coupon-card--share .uam-coupon-inner {
    align-items: center;
}

.uam-coupon-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding: 12px 12px 12px 0;
}

.uam-btn-share {
    border: none;
    border-radius: 8px;
    background: #1e3a8a;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.15s;
}

.uam-btn-share:hover {
    opacity: 0.92;
}

.uam-btn-share:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.uam-panel--narrow {
    max-width: 24rem;
}

.uam-share-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uam-share-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.uam-share-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.uam-share-input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
}

.uam-share-error {
    margin: 0;
    font-size: 0.8125rem;
    color: #dc2626;
}

.uam-share-error.hidden {
    display: none;
}

.uam-share-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.uam-share-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.uam-share-btn--ghost {
    background: #f1f5f9;
    color: #475569;
}

.uam-share-btn--ghost:hover {
    background: #e2e8f0;
}

.uam-share-btn--primary {
    background: #1e3a8a;
    color: #ffffff;
}

.uam-share-btn--primary:hover {
    opacity: 0.92;
}

.uam-share-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
