/* ============================================================
 * 网程PAY - SDK 下载页样式（/doc?page=sdk）
 * ============================================================ */

/* ========== SDK 卡片网格 ========== */
.sdk-grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
	gap:16px;
	margin-top:14px;
}
.sdk-card{
	display:flex;
	align-items:flex-start;
	padding:18px;
	background:#fff;
	border:1px solid #e8e8e8;
	border-radius:8px;
	transition:all .2s;
}
.sdk-card:hover{
	border-color:#1890ff;
	box-shadow:0 2px 8px rgba(24,144,255,.15);
	transform:translateY(-2px);
}
.sdk-icon{
	flex-shrink:0;
	width:56px;height:56px;
	border-radius:10px;
	display:flex;align-items:center;justify-content:center;
	margin-right:14px;
}
.sdk-body{flex:1;min-width:0;}
.sdk-name{
	font-size:16px;font-weight:600;color:#333;
	margin-bottom:6px;
}
.sdk-desc{
	font-size:12px;color:#888;
	line-height:1.6;
	margin-bottom:10px;
	min-height:38px;
}
.sdk-btn{
	display:inline-block;
	padding:6px 14px;
	background:#1890ff;color:#fff;
	border-radius:4px;
	font-size:13px;
	text-decoration:none;
	white-space:nowrap;
	transition:background .2s;
}
.sdk-btn:hover{background:#40a9ff;}
.sdk-btn-sm{padding:4px 10px;font-size:12px;}
.sdk-btn-disabled{
	background:#d9d9d9;
	color:#999;
	cursor:not-allowed;
	pointer-events:none;
}
.sdk-btn-disabled:hover{background:#d9d9d9;}

/* ========== 分栏标题 ========== */
.sdk-section-title{
	font-size:18px;
	font-weight:600;
	color:#333;
	margin:8px 0 4px;
	padding-left:10px;
	border-left:3px solid #1890ff;
}

/* ========== AI 对接 ========== */
.ai-wrap{
	margin-top:14px;
	padding:20px;
	background:#f7faff;
	border:1px solid #d6e4ff;
	border-radius:8px;
}
.ai-step{
	display:flex;
	align-items:flex-start;
	margin-bottom:18px;
}
.ai-step:last-child{margin-bottom:0;}
.ai-step-num{
	flex-shrink:0;
	width:30px;height:30px;
	background:#1890ff;color:#fff;
	border-radius:50%;
	display:flex;align-items:center;justify-content:center;
	font-weight:600;font-size:14px;
	margin-right:14px;
}
.ai-step-body{flex:1;}
.ai-step-title{
	font-size:15px;font-weight:600;color:#333;
	margin-bottom:4px;
}
.ai-step-desc{
	font-size:13px;color:#666;
	line-height:1.7;
}
.ai-step-desc a{color:#1890ff;text-decoration:none;}
.ai-step-desc a:hover{text-decoration:underline;}
.ai-prompt{margin-top:10px;}
.ai-prompt pre{
	font-size:13px;line-height:1.7;
	white-space:pre-wrap;word-break:break-all;
}
.ai-tip{
	margin-top:14px;
	padding:10px 14px;
	background:#fffbe6;
	border:1px solid #ffe58f;
	border-radius:4px;
	font-size:13px;color:#8a6d3b;
	line-height:1.7;
}

/* ========== 下载确认弹窗（居中显示） ========== */
.wcpay-confirm-mask{
	position:fixed; inset:0;
	background:rgba(0,0,0,.45);
	display:none;
	align-items:center; justify-content:center;
	z-index:99999;
	animation:wcpayFadeIn .18s ease-out;
}
.wcpay-confirm-mask.wcpay-confirm-show{ display:flex; }
@keyframes wcpayFadeIn{ from{opacity:0;} to{opacity:1;} }

.wcpay-confirm-box{
	background:#fff;
	border-radius:8px;
	width:380px; max-width:90vw;
	box-shadow:0 6px 24px rgba(0,0,0,.2);
	overflow:hidden;
	animation:wcpayZoomIn .2s ease-out;
}
@keyframes wcpayZoomIn{ from{transform:scale(.85);opacity:0;} to{transform:scale(1);opacity:1;} }

.wcpay-confirm-title{
	padding:14px 20px;
	font-size:15px; font-weight:600; color:#333;
	border-bottom:1px solid #f0f0f0;
}
.wcpay-confirm-body{
	padding:24px 20px;
	display:flex; align-items:flex-start;
	font-size:14px; color:#555; line-height:1.6;
}
.wcpay-confirm-icon{
	flex-shrink:0;
	width:24px; height:24px;
	margin-right:12px;
	background:#faad14; color:#fff;
	border-radius:50%;
	display:flex; align-items:center; justify-content:center;
	font-weight:700; font-size:16px;
}
.wcpay-confirm-btns{
	padding:12px 20px;
	border-top:1px solid #f0f0f0;
	text-align:right;
	background:#fafafa;
}
.wcpay-confirm-btns button{
	padding:6px 18px;
	font-size:13px;
	border-radius:4px;
	border:1px solid #d9d9d9;
	background:#fff; color:#333;
	cursor:pointer;
	margin-left:10px;
	transition:all .2s;
}
.wcpay-confirm-btns button:hover{ border-color:#40a9ff; color:#40a9ff; }
.wcpay-confirm-btns .wcpay-btn-ok{
	background:#1890ff; color:#fff; border-color:#1890ff;
}
.wcpay-confirm-btns .wcpay-btn-ok:hover{ background:#40a9ff; border-color:#40a9ff; color:#fff; }

/* ========== 响应式 ========== */
@media (max-width:640px){
	.sdk-grid{grid-template-columns:1fr;}
	.sdk-icon{width:48px;height:48px;}
	.sdk-icon svg{width:28px;height:28px;}
}
