.gradient-blue {
	background: linear-gradient(135deg, #2878FF 0%, #4A90E2 100%);
}

.gradient-green {
	background: linear-gradient(135deg, #36D399 0%, #28A745 100%);
}

.card-hover {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
	transform: translateY(-3px);
	box-shadow: var(--tw-shadow-card-hover);
}

/* 统一选择项的边框样式 */
.selectable-option {
	border-width: 2px !important;
	border-style: solid !important;
	transition: all 0.2s ease;
	position: relative;
	overflow: visible;
	color: #1F2937 !important; /* 确保默认文字颜色 */
}

.selectable-option:not(.selected) {
	border-color: #E5E7EB !important;
	background-color: white !important; /* 未选中时使用白色背景 */
}

.selectable-option.selected {
	border-color: #2878FF !important;
	background-color: rgba(40, 120, 255, 0.05) !important;
	box-shadow: 0 0 0 3px rgba(40, 120, 255, 0.1) !important;
	color: #2878FF !important; /* 选中时使用主题色 */
}

.selectable-option.selected::after {
	content: "✓";
	position: absolute;
	top: -8px;
	right: -8px;
	background-color: #2878FF;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	z-index: 10;
	animation: pulse 0.3s ease;
}

@keyframes pulse {
	0% {
		transform: scale(0.8);
		opacity: 0.8;
	}
	50% {
		transform: scale(1.2);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* 套餐选项卡的样式 */
.package-tab {
	position: relative;
	transition: all 0.3s ease;
	padding: 1rem 1.5rem;
	margin-bottom: -1px;
}

.package-tab.tab-active {
	color: #2878FF; /* 确保选项卡选中时文字颜色变化 */
	font-weight: 600;
	border-bottom-width: 3px;
}

.package-tab:not(.tab-active):hover {
	color: #2878FF;
	background-color: rgba(40, 120, 255, 0.05);
}

.package-tab.tab-active::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #2878FF;
	border-radius: 2px 2px 0 0;
}

/* 数量选择器样式 */
.quantity-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.custom-quantity {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
	margin-top: 0;
	padding: 0;
}

.custom-quantity.active {
	max-height: 200px;
	opacity: 1;
	transition: max-height 0.5s ease-in, opacity 0.5s ease-in, margin 0.5s ease-in;
	margin-top: 1.5rem;
	padding: 1.5rem;
}

/* 带宽自定义选项样式 */
.custom-bandwidth {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
	margin-top: 0;
	padding: 0;
}

.custom-bandwidth.active {
	max-height: 200px;
	opacity: 1;
	transition: max-height 0.5s ease-in, opacity 0.5s ease-in, margin 0.5s ease-in;
	margin-top: 1.5rem;
	padding: 1.5rem;
}

/* 到期时间提示样式 */
.expiry-notice {
	background-color: rgba(40, 120, 255, 0.05);
	border-left: 3px solid #2878FF;
	padding: 1rem;
	margin-top: 1.5rem;
	border-radius: 0 6px 6px 0;
	transition: all 0.2s ease;
}

.expiry-notice:hover {
	background-color: rgba(40, 120, 255, 0.08);
}

/* 当前选择的隧道数量显示样式 */
.current-tunnel-count {
	background-color: rgba(40, 120, 255, 0.05);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* 价格摘要样式 */
.price-summary {
	background-color: white;
	border-radius: 12px;
	padding: 1.5rem;
	width: 100%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.price-summary:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.price-row {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px dashed #E5E7EB;
}

.price-row:last-child {
	border-bottom: none;
}

.price-label {
	color: #6B7280;
	display: flex;
	align-items: center;
}

.price-label i {
	margin-right: 0.5rem;
	opacity: 0.7;
}

.price-value {
	font-weight: 500;
	color: #1F2937;
}

/* 进度条样式 */
.progress-container {
	position: relative;
	height: 6px;
	margin: 1rem 0;
	padding: 0;
}

.progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #E5E7EB;
	border-radius: 3px;
	z-index: 1;
}

.progress-value {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: #2878FF;
	border-radius: 3px;
	transition: width 0.5s ease;
	z-index: 2;
}

/* 输入滑块美化 */
input[type="range"] {
	-webkit-appearance: none;
	height: 6px;
	border-radius: 3px;
	background: transparent;
	outline: none;
	margin: 0;
	position: relative;
	z-index: 3;
	width: 100%;
	padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #2878FF;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border: 2px solid white;
	position: relative;
	z-index: 4;
}

input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.1);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* 平滑滚动 */
html {
	scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
.navbar-scrolled {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	background-color: white;
}

/* 右侧订单卡片粘性定位 */
.order-sidebar {
	position: sticky;
	top: 2rem;
}

/* 退款政策链接样式 */
.refund-policy-link {
	color: #9CA3AF;
	font-size: 0.875rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.refund-policy-link:hover {
	color: #6B7280;
	text-decoration: underline;
}

/* 选择器的额外说明样式 */
.selector-note {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: #6B7280;
	padding-left: 0.25rem;
}

.note-content {
	display: none;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.note-content.active {
	display: inline;
}

/* 价格变动动画 */
.price-change {
	animation: pricePulse 0.5s ease;
}

@keyframes pricePulse {
	0% {
		color: #2878FF;
	}
	50% {
		color: #1E5ECC;
		transform: scale(1.05);
	}
	100% {
		color: #2878FF;
	}
}

/* 移动端优化 */
@media (max-width: 768px) {
	.quantity-options {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.purchase-duration {
		padding: 0.75rem !important;
	}
	
	.purchase-duration .text-xl {
		font-size: 1.1rem;
	}
	
	/* 移动端带宽选择器样式 */
	.mobile-input-group {
		display: flex;
		align-items: center;
		width: 100%;
	}
}

/* 套餐选项卡的样式 - 统一设计 */
.package-tabs-container {
	position: relative;
	margin-bottom: 20px;
	overflow: hidden;
	padding: 10px;
	background: rgba(249, 250, 251, 0.5);
	border-radius: 16px;
}

.package-tab {
	position: relative;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 20px 15px;
	border-radius: 12px;
	margin: 0 8px 12px 0;
	cursor: pointer;
	flex: 1;
	min-width: 200px;
	border: 2px solid transparent !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	background: white;
	text-align: left;
	display: flex; /* 统一使用flex布局 */
	align-items: center; /* 垂直居中 */
	gap: 18px; /* 图标与文字间距保持一致 */
}

.package-tab.tab-active {
	color: #2878FF;
	font-weight: 600;
	background: linear-gradient(145deg, #f0f7ff 0%, #e6f0ff 100%);
	border-color: #2878FF !important;
	/* box-shadow: 0 8px 24px rgba(40, 120, 255, 0.15); */
	transform: translateY(0);
}

.package-tab:not(.tab-active) {
	color: #6B7280;
	background-color: white;
	border-color: #F3F4F6 !important;
}

.package-tab:not(.tab-active):hover {
	color: #2878FF;
	background-color: rgba(40, 120, 255, 0.04);
	transform: translateY(-4px);
	border-color: rgba(40, 120, 255, 0.3) !important;
	/* box-shadow: 0 4px 12px rgba(40, 120, 255, 0.08); */
}

.package-tab.tab-active::after {
	display: none;
}

.package-tab-icon {
	font-size: 32px; /* 确保所有图标都是32px */
	transition: all 0.3s ease;
	min-width: 32px; /* 固定图标宽度，防止布局跳动 */
	display: flex; /* 确保图标居中 */
	align-items: center;
	justify-content: center;
}

.package-tab.tab-active .package-tab-icon {
	color: #2878FF;
	transform: scale(1.1);
}

.package-tab:not(.tab-active) .package-tab-icon {
	color: #9CA3AF; /* 非活跃状态图标颜色 */
}

.package-tab:not(.tab-active):hover .package-tab-icon {
	color: #2878FF; /* 悬停时图标变色 */
}

.package-tab-title {
	font-weight: 600;
	margin-bottom: 0;
	display: flex;
	align-items: center;
	font-size: 16px;
}

.package-tab-desc {
	display: block; /* 显示简介文字 */
	font-size: 12px;
	color: #6B7280;
	margin-top: 4px;
	line-height: 1.4;
}