.gradient-blue {
	background: linear-gradient(135deg, #2878FF 0%, #4A90E2 100%);
}
.card-hover {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px -5px rgba(40, 120, 255, 0.15);
}

/* 统一选择项的边框样式 */
.selectable-option {
	border-width: 2px !important;
	border-style: solid !important;
	transition: all 0.2s ease;
	position: relative; /* 确保标记相对于选项定位 */
	overflow: visible; /* 允许标记超出元素范围显示 */
}

.selectable-option:not(.selected) {
	border-color: #E5E7EB !important;
}

.selectable-option.selected {
	border-color: #2878FF !important;
	background-color: rgba(40, 120, 255, 0.05) !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; /* 确保显示在其他内容上方 */
}

/* 套餐选项卡的样式 */
.package-tab {
	position: relative;
	transition: all 0.3s ease;
	padding: 1rem 1.5rem;
	margin-bottom: -1px;
	cursor: pointer; /* 添加指针样式表明可点击 */
}

.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(120px, 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);
}

/* 当前选择的IP数量显示样式 */
.current-ip-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;
}

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

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

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

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;
}

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;
}

/* 地区选择二级联动样式 */
.region-selector {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.region-group {
	flex: 1;
}

.region-options {
	padding-top: 20px;
	padding-right: 5px;
	overflow: hidden;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.option-140 {
	height: 160px;
}

.option-auto {
	height: auto;
}

.region-options .province.hidden {
	display: none;
}

.city-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
	opacity: 0.6;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.city-options.active {
	opacity: 1;
	pointer-events: auto;
}

.region-group-title {
	color: var(--color-gray-700);
	margin-bottom: 3px;
	display: block;
}

/* 退款政策链接样式 */
.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;
}

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

/* 城市数量选择器样式 */
.city-quantity-selector {
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	z-index: 20;
	display: none;
	min-width: 80px;
}

.city-option:hover .city-quantity-selector {
	display: flex;
}

/* 城市数量标记 */
.city-count-badge {
	position: absolute;
	bottom: 2px;
	right: 2px;
	background-color: rgba(40, 120, 255, 0.1);
	color: #2878FF;
	font-size: 10px;
	padding: 1px 4px;
	border-radius: 3px;
}

/* 城市最大可售数量 */
.city-max-count {
	font-size: 11px;
	color: #6B7280;
	margin-top: 3px;
}

/* 产品特点展示样式 */
.feature-card {
	transition: all 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px -5px rgba(40, 120, 255, 0.1);
}

.feature-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	margin-bottom: 1rem;
}

/* 模态框样式 */
.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background-color: white;
	border-radius: 12px;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
	transform: translateY(0);
}

.modal-header {
	padding: 1.5rem;
	border-bottom: 1px solid #E5E7EB;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1F2937;
}

.modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #6B7280;
	cursor: pointer;
	transition: color 0.2s ease;
}

.modal-close:hover {
	color: #1F2937;
}

.modal-body {
	padding: 1.5rem;
}

.modal-footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid #E5E7EB;
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
}

.city-detail-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid #F3F4F6;
}

.city-detail-item:last-child {
	border-bottom: none;
}

.city-detail-name {
	font-weight: 500;
}

.city-detail-count {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.city-detail-input {
	width: 70px;
	text-align: center;
	border: 1px solid #E5E7EB;
	border-radius: 4px;
	padding: 0.25rem;
}

/* 仅针对特定类生效的样式 */
.city-detail-input::-webkit-inner-spin-button,
.city-detail-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.region-detail-total {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px dashed #E5E7EB;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
}

/* 省份分组容器样式 */
.province-group-container {
	margin-bottom: 1.5rem;
}

.province-group-header {
	/* font-semibold text-lg mb-3 pb-1 border-b border-gray-200 flex items-center; */
	color: #2878FF;
}

.province-group-header i {
	margin-right: 0.5rem;
}

/* 可点击的价格值样式 */
.clickable-price-value {
	cursor: pointer;
	color: #2878FF;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.clickable-price-value:hover {
	color: #1E5ECC;
}

/* 城市禁售状态样式 */
.city-option.disabled {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.city-option.disabled::after {
	content: "售罄";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

/* 删除按钮样式 */
.delete-city-btn {
	color: #F43F5E;
	background: none;
	border: none;
	cursor: pointer;
	margin-left: 0.5rem;
	opacity: 0.7;
	transition: all 0.2s ease;
}

.delete-city-btn:hover {
	opacity: 1;
	transform: scale(1.1);
}

.city-detail-controls {
	display: flex;
	align-items: center;
}

/* 删除按钮呼吸动画 */
.editing-breathing-bg {
	animation: breathing 2s ease-in-out infinite normal;
}

@keyframes breathing {
	0% {
		opacity: 0.7;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0.7;
	}
}

/* 套餐选项卡的样式 - 统一设计 */
.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;
}