* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI",
                 "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: #1f2937;
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 900px) {
    .container {
        max-width: 1040px;
        grid-template-columns: 1.4fr 1fr;
    }
}

/* ---------- 卡片 ---------- */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.brand-name {
    font-weight: 600;
    color: #4b5563;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 28px;
}

.subtitle strong {
    color: #111827;
}

/* ---------- 信息栏 ---------- */
.info-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.info-row + .info-row {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 4px;
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.info-text {
    flex: 1;
    font-size: 14px;
    color: #4b5563;
}

.info-text strong {
    color: #111827;
    font-weight: 600;
}

/* ---------- 主按钮 ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ee4d2d 0%, #f97316 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(238, 77, 45, 0.4);
}

.btn-primary .arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ---------- 环境标签 ---------- */
.footnote {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 16px;
}

.env-live {
    color: #16a34a;
    font-weight: 600;
}

.env-sandbox {
    color: #d97706;
    font-weight: 600;
}

/* ---------- 步骤说明 ---------- */
.steps {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04);
}

.step-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    font-size: 15px;
}

.steps ol {
    padding-left: 20px;
    color: #4b5563;
    font-size: 14px;
}

.steps li {
    padding: 4px 0;
}

.tip {
    margin-top: 16px;
    padding: 12px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.7;
}

/* ---------- 成功页 ---------- */
.status-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.success-title {
    color: #16a34a;
    margin-bottom: 24px;
}

.detail-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-row + .detail-row {
    border-top: 1px solid #e5e7eb;
}

.detail-label {
    color: #6b7280;
    font-size: 13px;
}

.detail-value {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
}

.mono {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
}

.small {
    font-size: 12px;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tips {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
}

.tips p {
    margin-bottom: 8px;
    color: #14532d;
}

.tips ul {
    padding-left: 20px;
    color: #166534;
}

.tips li {
    padding: 2px 0;
}

.close-hint {
    color: #6b7280;
    font-size: 13px;
    margin-top: 20px;
}

/* ---------- 错误页 ---------- */
.error-title {
    color: #dc2626;
    margin-bottom: 24px;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.error-label {
    color: #991b1b;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-message {
    color: #7f1d1d;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.error-tips {
    background: #fff7ed;
    border-left-color: #f97316;
}

.error-tips p {
    color: #7c2d12;
}

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
    body { padding: 20px 12px; }
    .card { padding: 28px 20px; }
    h1 { font-size: 22px; }
    .btn-primary { padding: 12px 28px; font-size: 15px; }
}
