/* 全局样式 */
* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: #f5f5f5;
	color: #333;
	margin: 0;
	padding: 0;
	max-width: 500px;
	margin: 0 auto;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	height: 100vh;
}

/* 容器样式 */
.container-fluid {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #f5f5f5;
	overflow: hidden;
}

/* 商家信息 */
.merchant-info {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.icon-placeholder {
	width: 60px;
	height: 60px;
	background-color: #4CAF50;
	border-radius: 10px;
	color: white;
	font-size: 24px;
}

.merchant-name {
	color: #333;
	margin-bottom: 0.25rem;
}

.merchant-type {
	font-size: 0.875rem;
	margin-bottom: 0;
}

/* 付款金额区域 */
.payment-amount {
	border-radius: 8px 8px 0 0;
	box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.amount-input-container {
	margin-bottom: 1rem;
}

.amount-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #666;
}

.input-group {
	border-bottom: 1px solid #eee;
	padding-bottom: 0.5rem;
}

.currency-symbol {
	background-color: transparent;
	border: none;
	font-size: 1.75rem;
	font-weight: bold;
	color: #333;
	padding-left: 0;
	padding-right: 0.5rem;
	height: auto;
	display: flex;
	align-items: center;
}

.amount-input {
	border: none;
	background-color: transparent;
	font-size: 2.5rem;
	font-weight: bold;
	color: #333;
	padding: 0;
	box-shadow: none;
	height: auto;
	text-align: right;
	cursor: pointer;
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.amount-input:focus {
	box-shadow: none;
	border-color: transparent;
	outline: none;
	background-color: transparent;
}

/* 隐藏数字输入框的增减按钮 */
.amount-input[type="number"]::-webkit-inner-spin-button,
.amount-input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.amount-input[type="number"] {
	-moz-appearance: textfield;
}

/* 实付金额确认区域 */
.confirm-amount {
	background-color: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 6px;
	margin-top: 1rem;
}

.confirm-label {
	color: #666;
	font-size: 0.875rem;
	font-weight: 500;
}

.confirmed-amount {
	color: #333;
}

/* 付款按钮 */
.payment-button-container {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.payment-btn {
	width: 100%;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	padding: 1rem;
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
	transition: all 0.3s;
	cursor: pointer;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.payment-btn:hover,
.payment-btn:active {
	background-color: #3d8b40;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.payment-btn:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.amount-input {
		font-size: 2.25rem;
	}

	.payment-btn {
		font-size: 1rem;
		padding: 0.875rem;
		height: 52px;
	}
}

/* 针对iOS的优化 */
@supports (-webkit-touch-callout: none) {
	.amount-input {
		font-size: 2.25rem;
	}
}