/* ---------- 基础重置 ---------- */
.psucc-hero {
    text-align: center;
    padding: 40px 0 24px;
}

/* ---------- 勾选动画 ---------- */
.psucc-checkmark-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.psucc-checkmark {
    width: 100%;
    height: 100%;
}

.psucc-checkmark-circle {
    stroke: #22c55e;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: psucc-circle-draw 0.6s ease-out forwards;
}

.psucc-checkmark-check {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: psucc-check-draw 0.4s ease-out 0.6s forwards;
}

@keyframes psucc-circle-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes psucc-check-draw {
    to { stroke-dashoffset: 0; }
}

/* ---------- 标题 ---------- */
.psucc-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.psucc-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ---------- 面板 ---------- */
.psucc-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.psucc-panel:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.psucc-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.psucc-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f5ff;
    border-radius: 8px;
}

.psucc-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    flex: 1;
}

.psucc-panel-body {
    padding: 4px 20px;
}

/* ---------- 信息行 ---------- */
.psucc-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
}

.psucc-row + .psucc-row {
    border-top: 1px solid #f9fafb;
}

.psucc-label {
    font-size: 14px;
    color: #6b7280;
    min-width: 72px;
    flex-shrink: 0;
}

.psucc-value {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    flex: 1;
    word-break: break-all;
}

.psucc-order-sn {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #6366f1;
    letter-spacing: 0.5px;
}

.psucc-pay-method {
    color: #22c55e;
}

.psucc-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 8px 0;
}

.psucc-row-total .psucc-label {
    font-weight: 600;
    color: #374151;
}

.psucc-amount {
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
    text-align: right;
}

/* ---------- 余额 ---------- */
.psucc-balance-body {
    text-align: center;
    padding: 24px 20px;
}

.psucc-balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #22c55e;
    line-height: 1.2;
}

.psucc-balance-note {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
}

/* ---------- 凭证 ---------- */
.psucc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.psucc-badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.psucc-credential-row {
    padding: 12px 0;
}

.psucc-credential-row + .psucc-credential-row {
    border-top: 1px solid #f9fafb;
}

.psucc-credential-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.psucc-credential-value-wrapper {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
}

.psucc-credential-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #1a1a2e;
    word-break: break-all;
    user-select: all;
}

/* ---------- 复制按钮 ---------- */
.psucc-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    transition: color 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.psucc-copy-btn:hover {
    color: #667eea;
    background: #f0f5ff;
}

.psucc-copy-btn.psucc-copied {
    color: #22c55e;
}

/* ---------- 操作按钮 ---------- */
.psucc-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-bottom: 20px;
}

.psucc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.psucc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.psucc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.psucc-btn-primary:active {
    transform: translateY(0);
}

.psucc-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.psucc-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* ---------- 响应式 ---------- */
@media (min-width: 480px) {
    .psucc-actions {
        flex-direction: row;
    }
    
    .psucc-btn {
        flex: 1;
    }
}