/* Global Reset & Body */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: "Roboto", Arial, sans-serif;
	background: #f4f6f8;
	color: #222;
	line-height: 1.4;
}

/* Header */
.header {
	background: linear-gradient(90deg, #004080, #0073e6);
	color: #fff;
	padding: 1rem;
	text-align: center;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.logo {
	font-size: 1.6rem;
	font-weight: 700;
}
.order-info .countdown {
	color: #ffd700;
	font-weight: bold;
	margin-top: 0.3rem;
}

/* Main Container */
.container {
	max-width: 480px;
	margin: 1rem auto;
	padding: 0 1rem;
}
.title {
	text-align: center;
	font-size: 1.6rem;
	color: #004080;
	margin: 1rem 0 0.5rem;
}
.subtitle {
	text-align: center;
	color: #444;
	margin-bottom: 1.5rem;
	font-size: 1rem;
}

/* Cards */
.card {
	background: #fff;
	border-radius: 14px;
	padding: 1.2rem;
	margin-bottom: 1.2rem;
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.card h2 {
	font-size: 1.3rem;
	color: #004080;
	margin-bottom: 0.8rem;
}

/* Row Elements */
.row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f9fafc;
	padding: 0.8rem;
	margin-bottom: 0.6rem;
	border-radius: 10px;
	border: 1px solid #d1d9e6;
}
.row .icon {
	width: 32px;
	height: 32px;
	margin-right: 0.6rem;
	border-radius: 8px; /* 圆角矩形 */
	/* 或者想要完全圆形： */
	/* border-radius: 50%; */
}
.row .text {
	flex: 1;
}
.label {
	display: block;
	font-size: 0.85rem;
	color: #666;
}
.value {
	font-size: 1rem;
	font-weight: 600;
	color: #111;
}
.copy-btn {
	background: #ffcc00;
	color: #004080;
	border: none;
	padding: 0.45rem 0.8rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.85rem;
	transition: all 0.3s ease;
}
.copy-btn:hover {
	background: #e6b800;
}

/* Input & Buttons */
.card input[type="text"],
.card select {
	width: 100%;
	padding: 0.9rem;
	border: 1px solid #d1d9e6;
	border-radius: 10px;
	font-size: 1rem;
	margin-bottom: 1rem;
	transition: border-color 0.3s ease;
}
.card input:focus,
.card select:focus {
	border-color: #0073e6;
	outline: none;
}
.card .submit-btn {
	width: 100%;
	background: #004080;
	color: #fff;
	font-weight: 600;
	border: none;
	padding: 0.9rem;
	border-radius: 10px;
	cursor: pointer;
	font-size: 1rem;
	transition: all 0.3s ease;
}
.card .submit-btn:hover {
	background: #003366;
}

/* Carousel */
.confirm-payment {
	background-color: #fff7e6;
}
.carousel {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fdf6e3;
	padding: 0.6rem 0;
}
.carousel-inner {
	display: flex;
	width: 100%;
	transition: transform 0.4s ease;
}
.slide {
	min-width: 100%;
	display: none;
	justify-content: center;
	align-items: center;
}
.slide.active {
	display: flex;
}
.slide img {
	width: 100%;
	height: auto;
	max-height: 280px;
	object-fit: contain;
	border-radius: 8px;
}
.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.2);
	color: #fff;
	border: none;
	padding: 6px 10px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2rem;
	z-index: 10;
	transition: all 0.2s ease;
}
.arrow:hover {
	background: rgba(0,0,0,0.5);
}
.arrow.left { left: 8px; }
.arrow.right { right: 8px; }

/* Footer */
.secure-footer {
	text-align: center;
	font-size: 0.85rem;
	color: #444;
	margin-top: 1rem;
	padding: 0.7rem;
	background: #f1f3f5;
	border-radius: 10px;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	align-items: center;
	justify-content: center;
}
.modal-content {
	background: #fff;
	padding: 1.5rem;
	border-radius: 12px;
	width: 90%;
	max-width: 400px;
	text-align: center;
	position: relative;
}
.modal h2, .modal h3 {
	color: #004080;
	margin-bottom: 0.8rem;
}
.modal p {
	font-size: 0.95rem;
	color: #333;
	margin-bottom: 1rem;
}
.modal select,
.modal input[type="text"] {
	width: 100%;
	padding: 0.8rem;
	border-radius: 10px;
	border: 1px solid #d1d9e6;
	margin-bottom: 1rem;
}

/* 银行选项列表 */
.bank-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

/* 银行选项默认样式（未选中） */
.bank-option {
	display: flex;
	align-items: center;
	background: #f9f9f9;
	border-radius: 12px;
	padding: 12px 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	border: 1px solid #d1d9e6; /* 未选中边框 */
}

/* 悬停效果 */
.bank-option:hover {
	background: #f1f1f1;
	transform: translateY(-2px);
	border-color: #a0c4ff; /* 悬停边框高亮 */
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 选中样式 */
.bank-option.active {
	border: 2px solid #4CAF50; /* 选中边框加粗并变色 */
	background: #e8f7ed;
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* 银行图标 */
.bank-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	margin-right: 12px;
	object-fit: cover;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 银行名称 */
.bank-name {
	font-size: 16px;
	font-weight: 500;
	color: #333;
}

/* Modal Buttons */
.modal button,
.modal .modal-btn {
	background: #ffcc00;
	color: #004080;
	border: none;
	padding: 0.8rem;
	border-radius: 10px;
	cursor: pointer;
	font-size: 1rem;
	width: 100%;
	transition: all 0.3s ease;
}
.modal button:hover,
.modal .modal-btn:hover {
	background: #e6b800;
}

/* Alert Modal */
.alert-modal .modal-content {
	text-align: center;
}
.alert-close-btn {
	background: #004080;
	color: #fff;
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
}
.alert-close-btn:hover {
	background: #003366;
}

/* Responsive */
@media (max-width: 480px) {
	.container { padding: 0 0.8rem; }
	.title { font-size: 1.4rem; }
	.card { padding: 1rem; }
	.copy-btn, .submit-btn, .modal button, .alert-close-btn { font-size: 0.9rem; padding: 0.7rem; }
	.slide img { max-height: 200px; }
}

/* 超时消息图标+文字 */
.alert-message.timeout {
	display: inline-flex;
	align-items: center;
	color: #0073e6;       /* 柔和蓝色文字 */
	font-weight: 600;
	font-size: 1.1rem;
	gap: 16px;
	position: relative;
}

/* 圆形钟表图标容器 */
.alert-message.timeout::before {
	content: '';
	display: inline-block;
	width: 50px;
	height: 50px;
	border: 4px solid #0073e6;     /* 蓝色边框 */
	border-radius: 50%;
	position: relative;
	box-sizing: border-box;
	animation: pulse-timeout 1s infinite ease-in-out;
}

/* 指针 */
.alert-message.timeout::after {
	content: '';
	position: absolute;
	width: 3px;
	height: 22px;                     /* 指针长度 */
	background: #0073e6;
	left: 25px;                       /* 圆心 = 半径 */
	top: 25px;
	transform-origin: bottom center;  /* 底端为旋转中心 */
	transform: translate(-50%, -100%) rotate(0deg);
	animation: rotate-hand 1s linear infinite;
}

/* 呼吸动画 */
@keyframes pulse-timeout {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.2); }
	100% { transform: scale(1); }
}

/* 指针旋转 */
@keyframes rotate-hand {
	0%   { transform: translate(-50%, -100%) rotate(0deg); }
	100% { transform: translate(-50%, -100%) rotate(360deg); }
}

/* 支付成功消息图标+文字 */
.alert-message.success {
	display: inline-flex;
	align-items: center;
	color: #28a745;       /* 成功绿色文字 */
	font-weight: 600;
	font-size: 1.1rem;
	gap: 16px;
	position: relative;
}

/* 支付成功消息图标+文字 */
.alert-message.success {
	display: inline-flex;
	align-items: center;
	color: #28a745;
	font-weight: 600;
	font-size: 1.1rem;
	gap: 16px;
	position: relative;
}

/* 圆圈 */
.alert-message.success::before {
	content: '';
	display: inline-block;
	width: 50px;
	height: 50px;
	border: 4px solid #28a745;
	border-radius: 50%;
	position: relative;
	box-sizing: border-box;
	animation: pulse-success 1s infinite ease-in-out;
}

/* 对勾 */
.alert-message.success::after {
	content: '';
	position: absolute;
	width: 12px;      /* 对勾水平长度 */
	height: 24px;     /* 对勾垂直长度 */
	border-bottom: 4px solid #28a745;
	border-right: 4px solid #28a745;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(45deg); /* 正确勾角度 */
	transform-origin: center;
	animation: draw-check 0.4s ease-out forwards;
}

/* 呼吸动画圆圈 */
@keyframes pulse-success {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

/* 对勾绘制动画 */
@keyframes draw-check {
	0% { width: 0; height: 0; opacity: 0; }
	50% { width: 12px; height: 0; opacity: 1; }
	100% { width: 12px; height: 24px; opacity: 1; }
}
