:root {
	--primary: #1677ff;
	--secondary: #25e6d9;
	--bg-light: #f8fafc;
	--border-color: #e2e8f0;
	--text-primary: #1e293b;
	--text-secondary: #64748b;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
	--accent: #00c4ff;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: #F4FAFD;
	color: var(--text-primary);
	line-height: 1.6;
}

.container-custom {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 15px;
}

/* 头部样式 */
.page-header {
	margin-bottom: 30px;
	margin-top: 100px;
}

.page-header h1 {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 5px;
}

.page-header p {
	color: var(--text-secondary);
	font-size: 14px;
	margin: 0;
}

/* 标签切换 */
.tab-switch {
	display: flex;
	background: white;
	border-radius: 50px;
	/* padding: 4px; */
	box-shadow: var(--shadow-sm);
	margin-bottom: 30px;
	max-width: 750px;
	border: 1px solid var(--border-color);
}

.tab-btn {
	flex: 1;
	padding: 10px 20px;
	/* border: none; */
	border-radius: 0 35px 35px 0;
	border: 1px solid #17E4E7;
	/* border-radius: 50px; */
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	color: #12D6EA;
	transition: all 0.3s ease;
}

.tab-btn.active {
	color: white;
	background: linear-gradient(90deg, #09C1EE 0%, #17E4E7 85.86%), #12C2E9;
}

/* 标签内容容器 */
.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* 卡片通用样式 */
.card-section {
	background: white;
	border-radius: 32px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
}

.section-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 16px;
	/* display: flex;
	align-items: center; */
}

.section-title small {
	color: var(--text-secondary);
	font-weight: 400;
	/* margin-left: 8px; */
	font-size: 12px;
}

/* 数据中心选择 */
.dc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
}

.dc-item {
	border: 2px solid #EFF4F7;
	border-radius: 8px;
	padding: 12px 20px;
	display: flex;
	flex-direction: column;
	/* align-items: center; */
	cursor: pointer;
	transition: all 0.3s ease;
	background: #EFF4F7;
	position: relative;
}

.dc-item.active {
	border-color: var(--accent);
	background: #EFF4F7;
	position: relative;
}

.dc-item.active::before {
	position: absolute;
	content: '';
	background-image: url(../image/circleCheck.png);
	background-size: contain;
	background-repeat: no-repeat;
	width: 20px;
	height: 20px;
	right: 0;
	top: -1px;
	z-index: 2;
}

.dc-item .flag {
	width: 24px;
	height: 24px;
	margin-bottom: 5px;
	border-radius: 2px;
}

.dc-item .name {
	font-size: 14px;
	font-weight: 500;
}

.dc-item .city {
	font-size: 12px;
	color: var(--text-secondary);
}

/* 线路选择 */
.line-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.line-btn {
	padding: 8px 20px;
	padding-right: 40px;
	border: 2px solid #EFF4F7;
	border-radius: 8px;
	background: #EFF4F7;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

 .node-soldout {
	width: 55px;
	height: 32px;
	position: absolute;
	right: -16px;
	top: -20px;
	color: #FFF;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	line-height: 27px;
}

.line-btn.active {
	border-color: #12C2E9;
	background: #EFF4F7;
	color: #12C2E9;
	position: relative;
}

.line-btn.active::before {
	position: absolute;
	content: '';
	background-image: url(../image/circleCheck.png);
	background-size: contain;
	background-repeat: no-repeat;
	width: 20px;
	height: 20px;
	right: 0;
	top: -1px;
	z-index: 2;
}

/* 节点选择 */
.node-selector {
	display: flex;
	/* gap: 12px; */
	align-items: center;
	flex-wrap: wrap;
}

.node-btn {
	padding: 8px 16px;
	color: white;
	border: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 10px 0 0 10px;
	background: linear-gradient(90deg, #00AAF3 5.05%, #17E4E7 93.99%), #F5F5F5;
}

.node-ip {
	padding: 7px 25px;
	/* border-radius: 8px; */
	font-size: 14px;
	border: 1px solid rgba(70, 98, 110, 0.10);
	background: #FFF;
	border-left: none;
	border-right: none;
	font-weight: 500;
}

.node-ip1 {
	padding: 7px 20px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid rgba(70, 98, 110, 0.10);
	border-radius: 0 10px 10px 0;
	border-top: 1px solid rgba(70, 98, 110, 0.10);
	border-right: 1px solid rgba(70, 98, 110, 0.10);
	border-bottom: 1px solid rgba(70, 98, 110, 0.10);
	background: #EFF4F7;
}

.node-info {
	font-size: 12px;
	margin-top: 8px;
	color: rgba(0, 0, 0, 0.45);
}

/* 套餐时长选择 */
.duration-tabs {
	display: flex;
	gap: 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.duration-tab {
	padding: 6px 20px;
	border: none;
	border-radius: 30px;
	background: #f1f5f9;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.duration-tab.active {
	color: white;
	background: linear-gradient(90deg, #09C1EE 0%, #17E4E7 85.86%), #25D8DB;
}

.duration-tab .discount {
	position: absolute;
	top: -11px;
	right: -8px;
	background: url(../image/discount.svg);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	color: white;
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 4px;
	text-align: center;
}

.plan-list {
	display: flex;
	align-items: center;
	margin-bottom: 26px;
	gap: 8px;
}

.plan-list .list-name {
	display: flex;
	height: 40px;
	padding: 5px 36px;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	border: 1px solid #D9D9D9;
	background: #FFF;
	color: rgba(0, 0, 0, 0.85);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.plan-list .list-name.active {
	border: 1px solid #0BC5EE;
	color: #0BC5EE;
}

/* 套餐卡片：固定 351×458，每行 2 个（cloud/dedicated 各 buy 页共用） */
.plan-grid {
	display: grid;
	grid-template-columns: repeat(2, 355px);
	gap: 16px;
	margin-bottom: 16px;
	transition: height 0.4s ease;
	padding: 15px;
	overflow: hidden;
	justify-content: space-evenly;
}

.showMore {
	/* 收起时显示 2 行：458×2 + 行间距 16 + 上下 padding 30 */
	height: 948px;
}

.h-auto {
	height: auto;
}

.plan-card {
	width: 360px;
	height: auto;
	box-sizing: border-box;
	/*overflow: hidden;*/
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 30px;
	border: 2px solid #C1E6FB;
	background: #FFF;
	position: relative;
}

.plan-card.active {
	border: 2px solid #0BC5EE;
	box-shadow: 0 4px 20px 0 rgba(0, 195, 255, 0.50);
}

.plan-card .node-soldout {
	right: -16px;
	top: -15px;
}


.plan-title {
	font-size: 24px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 12px;
	color: #1B2552;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.plan-price {
	text-align: center;
	margin-bottom: 8px;
	color: #1B2552;
	font-size: 40px;
	font-weight: 500;

}

.plan-price span {
	color: #1B2552;
	
	font-size: 24px;
	font-weight: 400;
}

.plan-desc {
	font-size: 16px;
	color: #1B2552;
	text-align: center;
	margin-bottom: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-word;
}

.plan-features {
	list-style: none;
	padding: 0;
	margin: 0;
	padding-left: 30px;
}

.plan-features li {
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	color: #334152;

	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	letter-spacing: -0.24px;
	gap: 10px;
}


.expand-more {
	text-align: right;
	cursor: pointer;
	color: rgba(36, 46, 58, 0.45);
	font-size: 18px;
	transform: translateX(-20px);
}

.expand-more img {
	height: 10px;
	transform: translateY(-2px);
}

/* 滑块样式 */
.slider-container {
	margin-bottom: 20px;
}

.slider-header {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 8px;
	font-size: 14px;
}

.slider-header > :last-child:not(:first-child) {
	min-width: 140px;
}

.slider-header > :first-child {
	width: 100px;
}

.slider-label {
	color: var(--text-primary);
	font-weight: 500;
	display: inline-block;
}

.slider-value {
	color: var(--accent);
	font-weight: 600;
	background: rgba(0, 196, 255, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
}

.slider-info {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 4px;
	display: flex;
	justify-content: space-between;
	padding-left: 100px;
}

.custom-slider {
	width: 100%;
	height: 12px;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 10px;
	background: #E3EEF4;
	outline: none;
}

.custom-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	width: 20px;
	height: 40px;
	transform: rotate(90deg);
	border-radius: 20px;
	border: 7px solid #FFF;
	background: #E2F3FB;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.06), 0 0 10px 0 rgba(0, 191, 255, 0.70);
	position: relative;
	z-index: 10;
}

.slider-track {
	height: 12px;
	position: absolute;
	top: 5px;
	left: 0;
	border-radius: 10px 0 0 10px;
	opacity: 0.8;
	background: linear-gradient(90deg, #09C1EE 0%, #17E4E7 85.86%);
	pointer-events: none;
}

.slider-wrapper {
	position: relative;
	width: 600px;
	flex: none;
	margin: 0px 20px;
}

.slider-tooltip {
	position: absolute;
	top: -40px;
	left: 0;
	transform: translateX(-50%);
	background: linear-gradient(90deg, #12C2E9 0%, #17E4E7 100%);
	color: white;
	padding: 4px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 10px rgba(23, 228, 231, 0.4);
	pointer-events: none;
	white-space: nowrap;
	z-index: 11;
	opacity: 1;
}

.slider-tooltip::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	border-width: 6px 6px 0;
	border-style: solid;
	border-color: #15d6e8 transparent transparent transparent;
}

.slider-input {
	width: 68px;
	text-align: center;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 4px;
	margin-left: 8px;
}

.slider-input:focus {
	outline: none !important;
	border: 1px solid #12C2E9 !important;
	box-shadow: 0 0 0 2px rgba(18, 194, 233, 0.20);
}

.addData {
	border-radius: 10px !important;
	background: #EFF4F7 !important;
	border: none !important;
	/* margin-top: 15px; */
	color: #334152 !important;
}

.addData:hover {
	color: #334152 !important;
}

.btn-test {
	border-radius: 10px;
	border: 1px solid #0BC5EE;
	background: #FFF;
	color: #0BC5EE;
	font-size: 14px;
	font-weight: 500;
	padding: 10px 36px;
}

.btn-test:hover {
	border: 1px solid #0BC5EE !important;
	background: #FFF !important;
	color: #0BC5EE !important;
}

/* 计费模式切换 */
.billing-switch {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.billing-btn {
	padding: 6px 16px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: white;
	font-size: 14px;
	cursor: pointer;
}

.billing-btn.active {
	background: var(--accent);
	color: white;
	border-color: var(--accent);
}

/* 购买页双栏布局（替代 col-lg-8/4，避免动态内容导致宽度抖动） */
.buy-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.buy-layout-main {
	flex: 1;
	min-width: 0;
}

.buy-layout-aside {
	flex: 0 0 380px;
	width: 380px;
	max-width: 380px;
}

/* 订单摘要 */
.order-summary {
	background: white;
	border-radius: 32px;
	padding: 24px;
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 95px;
	border: 1px solid var(--border-color);
}

.order-summary .summary-loading {
	position: absolute;
	width: 50px;
	height: 50px;
	right: 11px;
	top: 15px;
}

/* 预留摘要区域高度，避免 AJAX 填充内容时纵向跳动 */
.order-summary-detail {
	min-height: 280px;
}

.summary-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
}

.summary-details {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 24px;
}

.summary-details p {
	margin-bottom: 6px;
}

.coupon-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	font-size: 14px;
}

.coupon-row .discount {
	color: #ff4d4f;
}

.coupon-row .select-coupon {
	display: flex;
	align-items: center;
	color: rgba(36, 46, 58, 0.45);
	cursor: pointer;
	position: relative;
}

.coupon-row .select-coupon img {
	width: 20px;
	height: 20px;
	transition: all 0.3s ease;
}

.coupon-row .select-coupon:hover img {
	transform: rotate(-90deg);
}

/* 卡片容器 */
.coupon-card {
	max-width: 374px;
	padding: 15px;
	position: absolute;
	right: -7px;
	bottom: 30px;
	z-index: 2;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: #FFF;
	box-shadow: 0 4px 32px 0 rgba(22, 29, 31, 0.10);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease-out;
}

.coupon-row .select-coupon:hover .coupon-card {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* 优惠券选项 */
.coupon-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	margin-bottom: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border-radius: 8px;
	background: rgba(239, 244, 247, 0.80);
	width: 300px;
	font-size: 13px;
	font-weight: 400;
}

.coupon-item:last-child {
	margin-bottom: 0;
}

.coupon-item:hover {
	background-color: #eef1f5;
}
.total-row-border{
	padding-top: 16px;
	border-top: 1px solid #EFF4F7;
}
.plan-border{
	border-top: 1px solid #EFF4F7;
	margin-top: 16px;
	margin-bottom: 16px;
}
/* 自定义单选框 + 对钩样式 */
.custom-radio {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 10px;
	transition: all 0.2s ease;
	color: #fff;
	border: 1px solid rgba(255, 21, 0, 0.50);
	background: #F0EAEA;
}

.custom-radio.checked {
	background: url('../image/checkbox-input.png') center/contain no-repeat;
	border-color: transparent;
}

/* 对钩默认隐藏，选中显示 */
.custom-radio::after {
	content: "✔";
	opacity: 0;
	transition: opacity 0.2s ease;
}

.custom-radio.checked::after {
	opacity: 0;
}

/* 优惠券文本 */
.coupon-left {
	display: flex;
	align-items: center;
	color: #242E3A;

}

.coupon-right {
	color: #FF1500;
}

/* 移动端适配 */
@media (max-width: 576px) {
	.coupon-card {
		padding: 12px;
	}

	.coupon-item {
		padding: 12px;
	}

	.coupon-left {
		font-size: 13px;
	}

	.coupon-right {
		font-size: 13px;
	}

	.custom-radio {
		width: 16px;
		height: 16px;
	}
}

.total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	
}

.total-row .total-label {
	font-size: 16px;
	font-weight: 600;
}

.total-row .total-price {
	font-size: 24px;
	font-weight: 700;
	color: #ff4d4f;
}

.total-row .original-price {
	font-size: 12px;
	color: var(--text-secondary);
	text-decoration: line-through;
	text-align: right;
}

.btn-buy {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 30px;
	background: linear-gradient(90deg, #09C1EE 0%, #17E4E7 85.86%);
	color: white;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-buy:hover {
	box-shadow: 0 4px 12px rgba(0, 196, 255, 0.3);
}

/* 配置表单 */
.form-group {
	margin-bottom: 16px;
}

.form-group label {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 6px;
	display: block;
}

.form-control,
.form-select {
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
}

.form-control:focus,
.form-select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(0, 196, 255, 0.1);
	outline: none;
}

.input-group .form-control {
	border-right: none;
}

.input-group .btn {
	border: 1px solid var(--border-color);
	border-left: none;
	background: white;
}

.input-group .btn:hover {
	color: #6c757d !important;
}

/* 搜索栏样式 */
.search-bar {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.search-bar .form-select,
.search-bar .form-control {
	flex: 1;
	min-width: 120px;
}

.search-btn {
	white-space: nowrap;
	padding: 8px 16px;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 6px;
}

.text-secondary {
	margin-top: 8px;
	color: rgba(0, 0, 0, 0.45);
	font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 992px) {
	.buy-layout {
		flex-direction: column-reverse;
	}

	.buy-layout-aside {
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
	}

	.order-summary {
		position: static;
		margin-bottom: 20px;
	}

	.order-summary-detail {
		min-height: 240px;
	}
}

/* 视口不足以容纳 351×2 时改为单列 */
@media (max-width: 768px) {
	.plan-grid {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.plan-card {
		width: min(351px, 100%);
	}
}

@media (max-width: 576px) {
	.page-header h1 {
		font-size: 24px;
	}

	.card-section {
		padding: 16px;
	}

	.dc-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.search-bar {
		flex-direction: column;
	}

	.search-bar .form-select,
	.search-bar .form-control {
		width: 100%;
	}
}

/* 数量加减输入框 */
.num-input-wrap {
	position: relative;
	display: inline-block;
	width: 120px;
	height: 32px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	overflow: hidden;
	vertical-align: top;
}

.num-input-wrap .num-input {
	width: 100%;
	height: 30px;
	padding: 0 28px 0 12px;
	font-size: 14px;
	line-height: 30px;
	border: none;
	outline: none;
	box-sizing: border-box;
	background: #fff;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	/* 隐藏原生 number 箭头 */
	-moz-appearance: textfield;
}

.num-input-wrap .num-input::-webkit-outer-spin-button,
.num-input-wrap .num-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.num-input-wrap .num-input-btn {
	position: absolute;
	right: 0;
	width: 22px;
	height: 15px;
	border-left: 1px solid #ccc;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #666;
	line-height: 1;
	user-select: none;
	background: #f8f8f8;
	transition: background 0.15s;
}

.num-input-wrap .num-input-btn:hover {
	background: #e8e8e8;
}

.num-input-wrap .num-input-add {
	top: 0;
	border-bottom: 1px solid #ccc;
}

.num-input-wrap .num-input-sub {
	bottom: 0;
}

/* 线路/节点空状态：沿用全局 table-empty 结构，仅缩小尺寸 */
.table-empty--sm {
	min-height: 160px;
	padding: 24px 16px;
}

.table-empty--sm .table-empty__img {
	width: 200px;
	padding: 0;
}

.table-empty--sm .table-empty__text {
	font-size: 14px;
	margin-top: 16px;
}

@media (max-width: 576px) {
	.table-empty--sm {
		min-height: 120px;
		padding: 16px 12px;
	}

	.table-empty--sm .table-empty__img {
		width: 140px;
	}

	.table-empty--sm .table-empty__text {
		font-size: 13px;
		margin-top: 12px;
	}
}

