/* Download Gate - 下载闸门 UI 样式 */

/* ========== 遮罩 ========== */
.dg-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ========== L2 留资弹窗 ========== */
.dg-lead-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	max-width: 480px;
	width: 90vw;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	animation: dgModalIn 0.25s ease;
}

@keyframes dgModalIn {
	from { opacity: 0; transform: translateY(20px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.dg-lead-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border: none;
	background: #f0f2f5;
	border-radius: 50%;
	font-size: 20px;
	line-height: 32px;
	cursor: pointer;
	color: #666;
	text-align: center;
	padding: 0;
}
.dg-lead-close:hover { background: #e0e4e8; color: #333; }

.dg-lead-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
}

.dg-lead-subtitle {
	font-size: 14px;
	color: #888;
	margin: 0 0 24px;
	line-height: 1.5;
}

/* 表单 */
.dg-lead-form { margin: 0; }

.dg-field {
	display: block;
	margin-bottom: 16px;
}

.dg-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.dg-required { color: #d32f2f; }

.dg-field input {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #d0d4d8;
	border-radius: 6px;
	font-size: 14px;
	color: #222;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s;
}
.dg-field input:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.12);
}

.dg-field-msg {
	display: block;
	font-size: 12px;
	min-height: 16px;
	margin-top: 2px;
}

.dg-lead-submit {
	display: block;
	width: 100%;
	height: 44px;
	border: none;
	border-radius: 6px;
	background: #0066cc;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
	transition: background 0.2s;
}
.dg-lead-submit:hover { background: #0052a3; }
.dg-lead-submit:disabled { background: #a0c4e8; cursor: not-allowed; }

.dg-lead-note {
	font-size: 13px;
	color: #d32f2f;
	text-align: center;
	margin: 12px 0 0;
}

.dg-gate-extra {
	font-size: 13px;
	color: #555;
	margin: 0 0 20px;
	line-height: 1.5;
}

.dg-gate-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dg-gate-secondary {
	display: block;
	width: 100%;
	height: 44px;
	border: 1px solid #d0d4d8;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.dg-gate-secondary:hover {
	background: #f5f7fa;
}

/* 响应式 */
@media (max-width: 520px) {
	.dg-lead-modal {
		padding: 28px 20px 24px;
		max-width: 95vw;
	}
	.dg-lead-title { font-size: 20px; }
}
