/* 全局重置和基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: #333;
  line-height: 1.7;
  background-color: rgb(255, 255, 255);
  font-size: 120%;
}

/* 页面头部样式 */
.page-header {
  padding: 20px 40px;
  background-color: #fff;
}

.main-title {
  font-size: 36px;
  font-weight: 400;
  color: #000000e6;
  padding-left: 200px;
}

.menu-section {
  position: relative;
  margin-left: 250px;
}

.menu-title {
  font-size: 29px;
  font-weight: 600;
  color: #0052d9;
}

.menu-divider {
  border: none;
  background-color: #ededed;
  height: 2px;
  width: 100%;
  margin: 0;
}

.menu-indicator {
  display: block;
  width: 120px;
  height: 2px;
  background: #0052d9;
  position: absolute;
  bottom: -2px;
  left: 0;
}

/* 进度条样式 */
.progress-container {
  max-width: 1440px;
  margin: 24px 0 24px 15%;
}

.progress-steps {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  position: relative;
  counter-reset: step-counter;
  width: 70%;
}

.step {
  text-align: center;
  position: relative;
  padding-top: 30px;
  color: #999;
  font-size: 14px;
  counter-increment: step-counter;
  flex: 1;
}

.step::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #ccc;
  color: white;
  border-radius: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 12px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 11px);
  right: calc(50% - 11px);
  height: 2px;
  background: #ccc;
  z-index: 0;
}

.step.active::before {
  background: #003cff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

.step.active {
  color: #000000;
}

/* 通知区域样式 */
.notices-section {
  max-width: 1440px;
  margin: 24px 0 24px 16.5%;
  /* 左边缘距离左侧15%，右侧自动 */
  padding: 0 24px;
}

.notice-item {
  display: block;
  margin: 8px 0;
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

/* 标签样式 */
.tag {
  padding: 2px 8px;
  font-weight: 500;
  margin-right: 8px;
}

.tag-red,
.tag-orange {
  background-color: #f7c797;
  color: #ff5e00;
}

.tag-blue {
  background-color: #92caff;
  color: #003cff;
}

/* 链接样式 */
.notice-item a {
  color: #003cff;
  text-decoration: underline;
}

.text-gray {
  color: #666;
}

/* 主要配置区域 */
.configuration-section {
  max-width: 1440px;
  margin: 0 0 0 15%;
  /* 左边缘距离左侧15%，右侧自动 */
  padding: 24px;
  margin-bottom: 163px;
  /* 160px统计栏高度 + 3px间距 */
}

/* 配置区块样式 */
.config-block,
.config-block_1 {
  background-color: #fff;
  border-radius: 0;
  padding: 29px;
}

.config-block {
  margin-top: -30px;
}

.config-block_1 {
  margin-top: -110px;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 500;
  color: #000000e6;
  margin-bottom: 29px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background-color: #003cff;
  margin-right: 8px;
}

.config-item {
  margin-bottom: 40px;
}

.item-title {
  font-size: 19px;
  font-weight: 500;
  color: #000000e6;
  margin-bottom: 19px;
}

/* 计费模式样式 */
.category-container {
  display: flex;
  gap: 18px;
  margin-bottom: 19px;
  padding-left: 175px;
  margin-top: -60px;
}

/* 手机端计费模式自定义下拉框（默认隐藏） */
#billing-mode-custom-select {
  display: none;
}

.category-item {
  flex: 1;
  min-width: 336px;
  height: 113px;
  background: #feffff;
  border: 0.6px solid #dcdcdc;
  display: flex;
  align-items: center;
  padding: 0 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.category-item:hover {
  border-color: #0052d9;
}

.category-item.active {
  border-color: #0052d9;
  background-color: #f0f7ff;
}

.category-icon {
  margin-right: 19px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon .fas {
  font-size: 29px;
  font-weight: 900;
}

.category-icon.blue {
  color: #0052d9;
  background-color: #e6f0ff;
}

.category-icon.gray {
  color: #666666;
  background-color: #f5f5f5;
}

.category-icon.green {
  color: #00a854;
  background-color: #e6f7ee;
}

.category-content {
  flex: 1;
}

.category-title {
  font-weight: 600;
  font-size: 16px;
  color: #000000;
  margin-bottom: 4px;
}

.category-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.4;
}

.discount-tag {
  background-color: #ff5e00;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  font-weight: 500;
}

.category-item .discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* 无可用地域提示 */
.no-region-tip {
  width: 100%;
  padding: 16px;
  text-align: left;
  color: #999;
  font-size: 14px;
  line-height: 1.6;
  background-color: #f9f9f9;
  border: 1px dashed #e5e5e5;
  border-radius: 4px;
  white-space: normal;
  word-break: break-word;
  display: block;
}

/* 地域按钮样式 */
.region-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 24px;
  max-width: calc(100% - 190px);
}

.button-region,
.button-region_1 {
  min-width: auto;
  max-width: none;
  height: 40px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid #dcdcdc;
  transition: all 0.3s ease;
  margin-left: 0px;
  position: relative;
  padding: 0 16px;
  box-sizing: border-box;
}

.button-region {
  left: 170px;
  top: -40px;
}

.button-region_1 {
  left: 0;
  top: -162px;
}

.button-region.active,
.button-region_1.active {
  background: #0052d9;
  border-color: #0052d9;
}

.region-font {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #666666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.button-region.active .region-font,
.button-region_1.active .region-font {
  color: #ffffff;
}

/* 自定义tooltip悬浮框样式 */
.button-region[data-tooltip]::after,
.button-region_1[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.button-region[data-tooltip]::before,
.button-region_1[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2d3748;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.button-region[data-tooltip]:hover::after,
.button-region[data-tooltip]:hover::before,
.button-region_1[data-tooltip]:hover::after,
.button-region_1[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* 配置描述文本 */
.config-description,
.config-description_1,
.config-description_2,
.config-description_3,
.config-description_4,
.config-description_5,
.config-description_6 {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.config-description_1 {
  padding-left: 170px;
  margin-top: -50px;
}

.config-description_2 {
  padding-left: 170px;
  margin-top: -70px;
}

.config-description_3 {
  padding-left: 400px;
  position: relative;
  top: -30px;
}

.config-description_4 {
  margin-left: -170px;
  position: absolute;
  top: 15px;
}

.config-description_5,
.config-description_6 {
  display: block;
  line-height: 1.5;
}

.config-description_6 {
  margin-left: 0;
}
/* 下划线文本样式 */
.text-underline {
  text-decoration: none;
  position: relative;
  margin-left: 170px;
  padding-bottom: 4px;
  margin-right: 16px;
  display: inline-block;
  color: #0052d9;
  font-size: 18px;
  left: 0px;
  top: -46px;
}

.text-underline::after {
  content: "";
  background-color: #0052d9;
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
}

/* 选择器样式 */
.selector-container,
.selector-container_1 {
  position: relative;
  width: 300px;
}

.selector-container {
  margin: 19px 0 19px 170px;
  top: -60px;
}

.selector-container_1 {
  left: 170px;
  top: -190px;
}

.selector-trigger {
  height: 40px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

.selector-options {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  z-index: 100;
  background-color: #fff;
  width: 100%;
}

.selector-options.show {
  max-height: 300px;
  overflow-y: auto;
}

.selector-option {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.selector-option:last-child {
  border-bottom: none;
}

.selector-option:hover {
  background-color: #f0f0f0;
}

.selector-option.selected {
  background-color: #0052d9;
  color: #ffffff;
}

/* 实例配置样式 */
.instance-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  margin-left: 10px;
}

.filter-container {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.cpu-selector,
.memory-selector {
  width: 180px;
}

.search-container {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.search-filter {
  width: 280px;
  height: 40px;
  background: #feffff;
  border: 1px solid #ddd;
  padding: 0 12px;
  font-size: 14px;
  margin-left: 600px;
  position: relative;
  top: 43px;
}

.reset-filters {
  color: #0052d9;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  position: relative;
  top: 43px;
}

.reset-filters:hover {
  text-decoration: underline;
}

.product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 24px;
  max-width: calc(100% - 190px);
  position: relative;
  left: 170px;
}

.selected-instance {
  background-color: #f5f7ff;
  border: 1px solid #0052d9;
  padding: 10px 14px;
  position: relative;
  top: -125px;
}

.selected-text {
  color: #0052d9;
  font-weight: 500;
  margin-bottom: 4px;
}

.instance-description {
  font-size: 14px;
  color: #666;
}

.instance-description a {
  color: #0052d9;
  text-decoration: underline;
}

/* 商品描述提示样式 */
.product-description-notice {
  position: relative;
  top: -155px;
  padding: 10px 12px;
  background-color: #e6f4ff; 
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 8px; 
  line-height: 1.6;
  margin-bottom: -27px;
  top: -120px;
}

.product-description-notice i {
  color: #0052d9;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.product-description-notice a {
  color: #0052d9;
  text-decoration: underline;
}

/* 表格样式 */
.table-container {
  overflow-x: auto;
  margin: 24px 0;
  margin-top: -113px;
}

.idc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.idc-table thead {
  background-color: #0052d9;
  color: #ffffff;
}

.idc-table th {
  padding: 8px 12px;
  font-weight: 400;
  font-size: 13px;
  border-bottom: 1px solid #e5e5e5;
}

.idc-table td {
  padding: 8px 12px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #e5e5e5;
}

.idc-table tbody tr {
  transition: background-color 0.2s ease;
}

.idc-table tbody tr:hover {
  background-color: #fafafa;
}

.idc-radio {
  width: 15px;
  height: 15px;
  accent-color: #0052d9;
  cursor: pointer;
}

.idc-table .select-col {
  text-align: center;
}

/* 分页样式 */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: #475569;
}

.pagination {
  display: flex;
  gap: 6px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:disabled {
  background-color: #0052d9;
  color: #ffffff;
  border-color: #0052d9;
  cursor: default;
}

.page-btn:not(:disabled):hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background-color: #f0f7ff;
}

/* 镜像选择样式 */
.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.image-card {
  width: 144px;
  height: 96px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.image-card:hover {
  border-color: #0052d9;
}

.image-card.active {
  border-color: #1890ff;
  background-color: rgba(24, 144, 255, 0.1);
}

.image-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.image-name {
  font-size: 14px;
  text-align: center;
}

.image-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 12px;
  color: #ff7d00;
}

.expand-card {
  width: 144px;
  height: 96px;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s ease;
}

.expand-card:hover {
  border-color: #0052d9;
  color: #0052d9;
}

.version-select {
  margin-top: 10px;
  padding: 8px;
  width: 300px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* 统计信息底部 - 腾讯云风格重构 */
.statistics {
  background-color: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 20px 40px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.statistics-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* 已选配置信息 */
.selected-config-section {
  display: flex;
  flex-direction: column;
  margin-right: 40px;
  margin-bottom: 10px;
}

.selected-config-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.selected-config-value {
  font-size: 16px;
  color: #000;
  font-weight: 500;
}

/* 备案提示 */
.record-tip {
  font-size: 12px;
  color: #888;
  margin-right: 40px;
  margin-bottom: 10px;
}

/* 配置选项区域 */
.config-options-section {
  display: flex;
  gap: 40px;
  margin-bottom: 10px;
}

.option-group {
  display: flex;
  align-items: center;
}

.option-label {
  font-size: 14px;
  font-weight: 500;
}

/* 购买时长抽屉式选择器 */
.purchase-duration-drawer {
  position: relative;
  z-index: 1001;
}

.duration-trigger {
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 14px;
  width: 150px;
  height: 35px;
}

.duration-trigger:hover {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.duration-trigger #selectedDuration {
  color: #0052d9;
  font-weight: 500;
  font-style: normal;
}

.drawer-arrow {
  color: #999;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.duration-trigger.active .drawer-arrow {
  transform: rotate(180deg);
}

.duration-panel {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 150px;
  margin-bottom: 4px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.duration-panel.show {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
}

.duration-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.duration-option:hover {
  background-color: #f0f5ff;
}

.duration-option.selected {
  background-color: #e6f0ff;
  border-left: 3px solid #0052d9;
}

.duration-option:last-child {
  border-bottom: none;
}

.duration-option:hover {
  background-color: #f5f7ff;
}

.duration-option.active {
  background-color: #e6f0ff;
  color: #0052d9;
}

.duration-option .cycle {
  font-weight: 500;
}

.duration-option .price {
  color: #ff5e00;
  font-weight: 600;
}

.duration-option .discount-tag {
  background-color: #ff5e00;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 19px 24px;
  }

  .main-title {
    font-size: 29px;
  }

  /* 在移动设备上重置15%左边距，使用更适合小屏幕的布局 */
  .progress-container,
  .notices-section,
  .configuration-section,
  .statistics-content {
    margin-left: 15% !important;
    margin-right: 15% !important;
  }

  .progress-steps {
    width: 95%;
  }

  .step {
    font-size: 14px;
  }

  .category-container {
    flex-direction: column;
  }

  .category-item {
    min-width: 100%;
  }

  .instance-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-container {
    flex-direction: column;
  }

  .search-container {
    flex-direction: column;
  }

  .search-filter {
    width: 100%;
  }

  .product-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    left: 0;
    gap: 8px;
  }

  .image-container {
    justify-content: center;
  }

  .table-container {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
}

.filter-title {
  font-size: 17px;
  color: #475569;
  margin-left: 200px;
  margin-top: -30px;
}

.quantity-container {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 0;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: none;
  background-color: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background-color: #eee;
}

.quantity-input {
  width: 40px;
  height: 30px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  outline: none;
}

.add-to-cart-btn {
  background-color: #0052d9;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 0;
  cursor: pointer;
  font-size: 16px;
  margin: 0;
  display: block;
  transition: background-color 0.3s ease;
  width: 220px;
  height: 45px;
  font-weight: 500;
}

/* 网络和主机配置页面样式 */
.step2-content {
  margin-top: 20px;
}

/* 网络配置样式 */
.network-config,
.host-config,
.disk-config {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.config-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #000000e6;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.config-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.config-label {
  width: 160px;
  font-size: 15px;
  font-weight: 400;
  color: #333;
  margin-right: 20px;
}

.config-options {
  flex: 1;
  min-width: 300px;
}

/* 单选按钮组样式 */
.radio-group {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #0052d9;
}

/* 重置浏览器默认样式 */
input[type="text"],
input[type="number"],
input[type="password"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 150px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  font-size: 14px;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background-color: #fff;
  transition: all 0.3s;
  outline: none;
}

/* 输入框默认状态 */
input[type="text"]:not(:focus),
input[type="number"]:not(:focus),
input[type="password"]:not(:focus) {
  border-color: #d9d9d9;
  box-shadow: none;
}

/* 输入框聚焦状态 */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 输入框悬停状态 */
input[type="text"]:hover,
input[type="number"]:hover,
input[type="password"]:hover {
  border-color: #1890ff;
}

/* 输入框禁用状态 */
input[type="text"]:disabled,
input[type="number"]:disabled,
input[type="password"]:disabled {
  background-color: #f5f5f5;
  border-color: #e8e8e8;
  color: #999;
  cursor: not-allowed;
}

/* 数字输入框隐藏上下箭头 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* 输入容器样式 */
.input-container {
  position: relative;
  margin-bottom: 15px;
}

.input-container input {
  width: 100%;
}

/* 显示/隐藏密码按钮 */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #0052d9;
}

/* 带宽输入框容器 */
.bandwidth-input {
  margin-top: 15px;
  margin-left: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 基础磁盘大小输入框容器 */
.disk-size {
  margin-top: 15px;
  margin-left: 170px;
}

/* 带宽输入框 */
.bandwidth-input-field {
  width: 200px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.bandwidth-input-field:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.bandwidth-input-field:hover {
  border-color: #40a9ff;
}

/* 带宽固定值样式 */
.bandwidth-input-field.is-bandwidth-fixed {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
}

.bandwidth-input-field.is-bandwidth-fixed:hover {
  border-color: #d9d9d9;
}

/* 主机名输入框容器 */
.hostname-input-container {
  margin-top: -55px;
  margin-left: 170px;
  position: relative;
}

/* 主机名输入框 */
.hostname-input-field {
  width: 100%;
  max-width: 300px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.hostname-input-field:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.hostname-input-field:hover {
  border-color: #40a9ff;
}

/* 密码输入框容器 */
.password-first-container {
  margin-top: -55px;
  margin-left: 170px;
  width: 300px;
  position: relative;
}

.password-confirm-container {
  margin-top: 15px;
  margin-left: 170px;
  width: 300px;
  position: relative;
}

/* 密码输入框 */
.password-first-field,
.password-confirm-field {
  width: 100%;
  max-width: 300px;
  height: 35px;
  padding: 0 12px;
  padding-right: 40px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.password-first-field:focus,
.password-confirm-field:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.password-first-field:hover,
.password-confirm-field:hover {
  border-color: #40a9ff;
}
/* 系统盘大小输入框容器 */
.system-disk-size {
  margin-top: -35px;
  margin-left: 170px;
}

/* 数据盘大小输入框容器 */
.data-disk-size {
  margin-top: 15px;
  margin-left: 170px;
}

/* 系统盘大小输入框 */
.system-disk-size-field,
.data-disk-size-field {
  width: 100%;
  max-width: 50px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.system-disk-size-field:focus,
.data-disk-size-field:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.system-disk-size-field:hover,
.data-disk-size-field:hover {
  border-color: #40a9ff;
}

/* step2页面特定输入框样式 */
.step2-content input[type="text"],
.step2-content input[type="number"],
.step2-content input[type="password"] {
  width: 320px;
  height: 42px;
  font-size: 15px;
}

/* 单选按钮自定义样式 */
.radio-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 175px;
  margin-right: 24px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.radio-label input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #d9d9d9;
  margin-right: 8px;
  background-color: #fff;
  transition: all 0.3s;
  outline: none;
}

.radio-label input[type="radio"]:checked {
  border-color: #0052d9;
  background-color: #0052d9;
}

.radio-label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #fff;
  top: 5px;
  left: 5px;
}

.radio-label input[type="radio"]:hover {
  border-color: #1890ff;
}

.radio-label input[type="radio"]:disabled {
  background-color: #f5f5f5;
  border-color: #e8e8e8;
  cursor: not-allowed;
}
/* 下拉选择器样式 */
.config-select {
  width: 300px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.config-select:focus {
  outline: none;
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 密码容器样式 */
.password-container {
  position: relative;
  width: 300px;
}

.toggle-password,
.show-password-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  font-size: 14px;
}

.show-password-btn {
  right: 8px;
  padding: 0;
}

.toggle-password:hover,
.show-password-btn:hover {
  color: #0052d9;
}

.toggle-password i {
  display: inline-block;
  width: 16px;
  text-align: center;
}

/* 硬盘配置表格样式 */
.disk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.disk-table th,
.disk-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.disk-table th {
  background-color: #fafafa;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.disk-table td {
  font-size: 14px;
  color: #666;
}

/* 添加数据盘按钮 */
.add-disk-btn {
  background: none;
  border: 1px dashed #d9d9d9;
  color: #0052d9;
  padding: 8px 16px;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.add-disk-btn:hover {
  border-color: #0052d9;
  background-color: rgba(0, 82, 217, 0.05);
}

/* 删除数据盘按钮 */
.remove-disk-btn {
  background: none;
  border: none;
  color: #ff4d4f;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s;
}

.remove-disk-btn:hover {
  color: #ff7875;
}

/* 统计信息底部 */
.statistics-bottom {
  padding-top: 140px;
  margin-bottom: 20px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .statistics-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .config-options-section {
    flex-wrap: wrap;
    gap: 20px;
  }

  .action-button-section {
    width: 100%;
    text-align: right;
  }
}

@media (max-width: 768px) {
  /* 页面头部 */
  .page-header {
    padding: 19px 24px;
  }

  .main-title {
    font-size: 24px;
    padding-left: 20px;
  }

  .menu-section {
    margin-left: 20px;
  }

  .menu-title {
    font-size: 22px;
  }

  /* 进度条 */
  .progress-container {
    margin: 16px 20px;
    width: auto;
  }

  .progress-steps {
    width: 100%;
  }

  .step {
    font-size: 12px;
    padding-top: 25px;
  }

  /* 通知区域 */
  .notices-section {
    margin: 16px 20px;
    padding: 0;
  }

  /* 主要配置区域 */
  .configuration-section {
    margin: 0 20px 270px;
    padding: 16px;
    width: auto;
  }

  /* 配置区块 */
  .config-block,
  .config-block_1 {
    padding: 12px;
    margin-top: -15px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* 隐藏实例配置区域的冗余标题 */
  .config-block_1 .item-title {
    display: none;
  }

  /* 隐藏br标签 */
  .config-block_1 br {
    display: none;
  }

  /* 隐藏PC端计费模式卡片 */
  .billing-mode-desktop {
    display: none !important;
  }

  /* 显示手机端计费模式自定义下拉框 */
  #billing-mode-custom-select {
    display: block;
    margin-bottom: 16px;
  }

  /* 计费模式下拉框图标样式（使用FontAwesome） */
  #billing-mode-custom-select .custom-select-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: #1890ff;
    margin-right: 8px;
  }

  /* 其他类别容器 */
  .category-container {
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
    margin-top: 0;
  }

  .category-item {
    min-width: 100%;
    height: auto;
    padding: 16px;
  }

  /* 筛选器容器 */
  .filter-container {
    margin-top: 8px;
    margin-bottom: 12px;
  }

  /* 商品按钮区域 */
  .product-buttons {
    margin-bottom: 12px;
  }

  /* 地域按钮容器 */
  .region-buttons {
    max-width: 100%;
    margin-top: 10px;
  }

  /* 无可用地域提示 - 手机端 */
  .no-region-tip {
    max-width: 100%;
    min-width: 100%;
  }

  /* 地域按钮 */
  .button-region,
  .button-region_1 {
    left: 0;
    top: 0;
    margin-left: 0;
  }

  /* 文本描述 */
  .config-description_1,
  .config-description_2,
  .config-description_3,
  .config-description_4,
  .config-description_5,
  .config-description_6 {
    padding-left: 0;
    margin-top: 8px;
    position: static;
    white-space: normal;
  }

  /* 下划线文本 */
  .text-underline {
    margin-left: 0;
    top: 0;
    font-size: 16px;
  }

  /* 选择器容器 */
  .selector-container,
  .selector-container_1 {
    width: 100%;
    margin: 6px 0;
    top: 0;
    left: 0;
  }

  /* 搜索容器 */
  .search-container {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    top: -40px;
    left: 15px;
  }

  .search-filter {
    width: 100%;
    margin-left: 0;
    top: 0;
  }

  .reset-filters {
    top: 0;
  }

  /* 实例配置 */
  .selected-instance {
    top: 0;
  }

  /* 表格容器 */
  .table-container {
    margin: 16px -16px;
    width: calc(100% + 32px);
    margin-top: 16px;
    margin-bottom: 30px;
  }

  /* 镜像选择 */
  .image-container {
    justify-content: center;
  }

  .image-card,
  .expand-card {
    width: 120px;
    height: 80px;
  }

  /* 版本选择 */
  .version-select {
    width: 100%;
  }

  /* 统计信息底部 */
  .statistics {
    padding: 15px 20px;
  }

  .selected-config-section,
  .record-tip,
  .config-options-section {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .option-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
  }

  /* 商品描述提示 - 移动端 */
  .product-description-notice {
    top: 0;
    margin-bottom: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .product-description-notice i {
    font-size: 13px;
  }

  .duration-trigger {
    width: 120px;
    min-width: 120px;
  }

  .quantity-container {
    display: flex !important;
  }

  .action-button-section {
    text-align: left;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  /* 网络和主机配置页面 */
  .config-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .config-label {
    width: 100%;
    margin-bottom: 8px;
  }

  .config-options {
    min-width: 100%;
  }

  /* 输入框 */
  input[type="text"],
  input[type="number"],
  input[type="password"] {
    width: 100%;
  }

  /* 单选按钮组 */
  .radio-group {
    flex-direction: column;
  }

  /* 密码容器 */
  .password-container {
    width: 100%;
  }

  /* 带宽输入 */
  .bandwidth-input {
    width: 100%;
  }

  /* 主机名输入 */
  .hostname-input-container {
    width: 100%;
  }

  /* 磁盘大小 */
  .disk-size {
    width: 100%;
  }

  /* 数据盘配置 */
  .data-disk-config {
    width: 100%;
  }
}

/* ========================================
   FxCart 加载指示器样式
   ======================================== */
.fxcart-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0052d9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  margin-top: 16px;
  font-size: 16px;
  color: #666;
}

/* ========================================
   FxCart 消息提示样式
   ======================================== */
.fxcart-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10001;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fxcart-message.show {
  transform: translateX(-50%) translateY(0);
}

.fxcart-message-info {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #1890ff;
}

.fxcart-message-success {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.fxcart-message-error {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

.fxcart-message-warning {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  color: #faad14;
}

/* ========================================
   操作系统图标样式
   ======================================== */
.os-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ========================================
   表格行选中样式
   ======================================== */
.idc-table tbody tr:has(input:checked) {
  background-color: #e6f0ff;
}

.idc-table tbody tr.selected {
  background-color: #e6f0ff;
}

/* ========================================
   空状态样式
   ======================================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-text {
  font-size: 14px;
}

/* ========================================
   第二页 - 网络和主机配置样式
   ======================================== */
.ip-quantity-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-left: 120px;
}

.ip-quantity-input label {
  font-size: 14px;
  color: #666;
}

.ip-quantity-field {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 第二页带宽选择器特殊样式 */
#bandwidth-type-selector {
  width: 300px;
  margin: 19px 0 19px 170px !important;
  top: -60px !important;
  position: relative;
  z-index: 100;
}

#bandwidth-type-selector .selector-options {
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 101;
}

/* 第二页带宽输入样式覆盖 */
#step2 
.bandwidth-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0 170px;
  flex-wrap: wrap;
  position: absolute;
  top: 860px;
}

#step2 .bandwidth-input-field {
  width: 200px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  font-size: 14px;
  flex-shrink: 0;
}

.bandwidth-unit {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.bandwidth-range,
.disk-range {
  font-size: 12px;
  white-space: nowrap;
  color: #999;
  flex-shrink: 0;
}

/* 主机名输入框在step2中的样式已在上面统一定义 */

/* 密码提示文字在上面已统一定义 */

.data-disk-config {
  margin-top: 15px;
  padding: 15px;
  background: #f9f9f9;
}

.disk-type {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.data-disk-size {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-disk-size-field {
  width: 100px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* ========================================
   步骤3 - 确认配置信息页面样式
   ======================================== */

/* 配置汇总区域 */
.summary-section {
  margin-bottom: 20px;
}

/* 配置卡片 */
.summary-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  margin-bottom: 20px;
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.summary-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 卡片头部 */
.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f7f8fa;
  border-bottom: 1px solid #e5e5e5;
}

.summary-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-card-title i {
  color: #0052d9;
  font-size: 18px;
}

/* 修改链接 */
.edit-link {
  color: #0052d9;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.edit-link:hover {
  color: #003da6;
  text-decoration: underline;
}

.edit-link i {
  font-size: 12px;
}

/* 卡片主体 */
.summary-card-body {
  padding: 20px;
}

/* 配置项 */
.summary-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.summary-label {
  width: 120px;
  color: #666;
  font-size: 14px;
  flex-shrink: 0;
}

.summary-value {
  flex: 1;
  color: #000;
  font-size: 14px;
  font-weight: 500;
}

/* 价格信息区域 */
.price-section {
  margin-bottom: 20px;
}

.price-table {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
  border-radius: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.price-label {
  font-size: 14px;
  color: #666;
}

.price-value {
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.price-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 10px 0;
}

/* 总价行 */
.total-row {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #0052d9;
}

.total-row .price-label {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.total-row .price-value {
  font-size: 24px;
  font-weight: 700;
  color: #ff5e00;
}

/* 服务协议区域 */
.agreement-section {
  margin-bottom: 20px;
}

.agreement-list {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
  border-radius: 0;
  margin-bottom: 50px;
}

.agreement-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  cursor: pointer;
  user-select: none;
}

.agreement-item:last-child {
  margin-bottom: 0;
}

.agreement-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #0052d9;
  flex-shrink: 0;
}

.agreement-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.agreement-text a {
  color: #0052d9;
  text-decoration: none;
}

.agreement-text a:hover {
  text-decoration: underline;
}

/* 操作按钮样式 */
.step-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
}

.next-step-btn,
.prev-step-btn {
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.next-step-btn {
  background-color: #0052d9;
  color: white;
}

.next-step-btn:hover {
  background-color: #003da6;
  box-shadow: 0 2px 8px rgba(0, 82, 217, 0.3);
}

.prev-step-btn {
  background-color: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.prev-step-btn:hover {
  color: #0052d9;
  border-color: #0052d9;
  background-color: #f0f7ff;
}

.add-to-cart-btn {
  background-color: #ff5e00;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.add-to-cart-btn:hover {
  background-color: #e55400;
  box-shadow: 0 2px 8px rgba(255, 94, 0, 0.3);
}

.add-to-cart-btn:disabled,
.next-step-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* 响应式设计 - 步骤3 */
@media (max-width: 768px) {
  .summary-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .summary-label {
    width: 100px;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .step-buttons {
    flex-direction: column;
    width: 100%;
  }

  .next-step-btn,
  .prev-step-btn,
  .add-to-cart-btn {
    width: 100%;
    justify-content: center;
  }

  .total-row .price-value {
    font-size: 20px;
  }
}

/* ========================================
   价格明细展示样式
   ======================================== */
.price-detail-section {
  margin: 8px 0;
}

.price-detail-header {
  display: flex;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.price-detail-header:hover {
  background-color: #f5f5f5;
}

.price-detail-header .price-label {
  flex: 1;
  color: #666;
  font-size: 14px;
}

.price-detail-header .price-value {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
}

.price-detail-header .toggle-icon {
  color: #999;
  font-size: 12px;
  transition: transform 0.3s;
}

.price-detail-header.expanded .toggle-icon {
  transform: rotate(180deg);
}

.price-detail-list {
  background-color: #f9f9f9;
  border-left: 3px solid #0052d9;
  margin: 8px 0 8px 16px;
  padding: 12px 16px;
}

.price-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px dashed #e8e8e8;
}

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

.price-detail-item .detail-name {
  flex: 1;
}

.price-detail-item .detail-value {
  color: #999;
  margin: 0 12px;
  font-size: 12px;
}

.price-detail-item .detail-price {
  color: #333;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.price-detail-item .detail-price.free {
  color: #52c41a;
}

.price-detail-item .detail-calc {
  color: #999;
  font-size: 12px;
  margin-left: 8px;
}

/* ========================================
   高级配置规则 - 禁用状态样式
   ======================================== */
.link-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  position: relative;
}

.link-disabled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
}

/* 按钮禁用状态 */
.filter-btn.link-disabled,
.network-type-btn.link-disabled,
.category-item.link-disabled {
  background-color: #f5f5f5 !important;
  color: #bbb !important;
  border-color: #e0e0e0 !important;
}

/* 下拉选项禁用状态 */
select option.link-disabled,
select option:disabled {
  color: #bbb;
  background-color: #f5f5f5;
}

/* 单选按钮禁用状态 */
.btn.link-disabled,
label.link-disabled {
  background-color: #f5f5f5 !important;
  color: #bbb !important;
  border-color: #e0e0e0 !important;
}

/* 选择器选项禁用状态 */
.selector-option.link-disabled {
  color: #bbb;
  background-color: #f9f9f9;
  cursor: not-allowed;
}

.selector-option.link-disabled:hover {
  background-color: #f9f9f9;
  color: #bbb;
}

/* 输入框禁用状态 */
input.link-disabled,
input:disabled {
  background-color: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
}

/* 表格行禁用状态 */
tr.link-disabled {
  opacity: 0.5;
  background-color: #f9f9f9 !important;
  cursor: not-allowed;
  pointer-events: none;
}

tr.link-disabled td {
  color: #bbb;
}

tr.link-disabled:hover {
  background-color: #f9f9f9 !important;
}

tr.link-disabled input[type="radio"] {
  cursor: not-allowed;
}

/* ========================================
   手机端布局优化 - 步骤2页面
   ======================================== */

@media (max-width: 576px) {
  /* 配置区域基础 */
  .configuration-section {
    margin: 0 12px 300px;
    padding: 12px;
  }

  .config-block {
    padding: 16px;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .item-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* ===== 网络配置部分 ===== */

  /* 网络类型/公网IP选项 - 垂直布局 */
  #network-type-container,
  #public-ip-container,
  #data-disk-container {
    flex-direction: column;
    gap: 10px;
  }

  #network-type-container .category-item,
  #public-ip-container .category-item,
  #data-disk-container .category-item {
    width: 100% !important;
    min-width: 0;
  }

  /* IP数量输入 */
  .ip-quantity-input {
    margin-top: 12px;
    margin-left: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ip-quantity-field {
    width: 80px !important;
  }

  /* 带宽设置 - 上下布局 */
  #bandwidth-type-selector {
    width: 100% !important;
    margin: 0 !important;
    top: 0 !important;
    position: relative;
  }

  #bandwidth-type-selector .selector-trigger {
    width: 100%;
  }

  #step2 .bandwidth-input {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    top: 15px;
    left: 0;
    margin: 0 !important;
  }

  .bandwidth-input-field {
    width: 80px !important;
  }

  /* ===== 主机配置部分 ===== */

  /* 主机名输入 */
  .hostname-input-container {
    margin-left: 0 !important;
    margin-top: 0 !important;
    width: 100%;
  }

  .hostname-input-field {
    width: 100% !important;
    max-width: none !important;
  }

  .config-description_6 {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
  }

  /* 密码输入 */
  .password-container {
    width: 100% !important;
  }

  .password-first-container,
  .password-confirm-container {
    margin-left: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    margin-bottom: 12px;
  }

  .password-first-field,
  .password-confirm-field {
    width: 100% !important;
    max-width: none !important;
  }

  .config-description_5 {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 8px;
  }

  /* ===== 硬盘配置部分 ===== */

  /* 磁盘信息 - 上下布局 */
  .disk-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* 系统盘大小 */
  .system-disk-size {
    margin-left: 0 !important;
    margin-top: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .system-disk-size-field {
    width: 80px !important;
    max-width: none !important;
  }

  /* 数据盘配置区域 */
  .data-disk-config {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
  }

  /* 磁盘类型选择 - 垂直布局 */
  .disk-type {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .radio-label {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
  }

  .radio-label:has(input:checked) {
    border-color: #0052d9;
    background: #f0f5ff;
  }

  /* 数据盘大小 */
  .data-disk-size {
    margin-left: 0 !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .data-disk-size-field {
    width: 80px !important;
    max-width: none !important;
  }

  .disk-range {
    font-size: 12px;
    color: #666;
  }

  /* ===== 选择器容器 ===== */
  .selector-container {
    width: 100%;
    max-width: none;
  }

  .selector-trigger {
    width: 100%;
  }

  /* ===== 底部统计区域 ===== */
  .statistics {
    padding: 12px 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .statistics-container {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  /* 已选配置 */
  .selected-config-section {
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .selected-config-label {
    font-size: 12px;
  }

  .selected-config-value {
    font-size: 13px;
    word-break: break-all;
  }

  /* 备案提示 */
  .record-tip {
    font-size: 11px;
    margin-right: 0;
    margin-bottom: 8px;
  }

  /* 配置选项区域 - 时长和数量横向排列 */
  .config-options-section {
    width: 100%;
    display: flex;
    flex-direction: row !important;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .option-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 1;
  }

  .option-label {
    font-size: 13px;
    white-space: nowrap;
  }

  /* 时长选择器 */
  .purchase-duration-drawer {
    width: auto;
  }

  .duration-trigger {
    width: 90px !important;
    min-width: 80px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .duration-panel {
    width: 140px;
  }

  /* 数量选择器 */
  .quantity-container {
    display: flex;
    align-items: center;
  }

  .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .quantity-input {
    width: 40px;
    height: 32px;
    font-size: 14px;
  }

  /* 操作按钮 - 统一布局 */
  .action-button-section {
    width: 100%;
  }

  .step-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  /* 所有步骤按钮统一样式 */
  .next-step-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
  }

  .prev-step-btn {
    flex: 0 0 auto;
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .add-to-cart-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
  }

  /* 页面内容底部留出足够空间 */
  #step1,
  #step2,
  #step3 {
    padding-bottom: 20px;
  }

  /* ===== 商品按钮样式 - 手机端 ===== */
  .product-buttons {
    left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }

  .button-region_1 {
    flex: 0 0 auto;
    max-width: calc(50% - 4px);
    padding: 0 12px;
    font-size: 13px;
  }

  .button-region_1 .region-font {
    font-size: 13px;
  }

  /* ===== 表格卡片式布局样式 - 手机端 ===== */
  .table-container {
    margin-top: 16px;
    overflow-x: visible;
  }

  .idc-table {
    border: none;
    border-radius: 0;
  }

  .idc-table thead { 
    display: none;
  }

  .idc-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .idc-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid #e5e5e5;
    /*border-radius: 6px;*/
    background: #fff; 
    position: relative;
  }  

  .idc-table tbody tr:hover {
    background-color: #f8fafc;
  }

  .idc-table tbody tr.selected,
  .idc-table tbody tr:has(input:checked) {
    border-color: #0052d9;
    background-color: #f0f5ff;
  }

  .idc-table td {
    border: none;
    padding: 3px 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
  }

  /* 暂无数据行 - 居中显示 */
  .idc-table td[colspan] {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 20px 12px !important;
    color: #999;
    font-size: 14px;
  }

  /* 产品名 - 占据全宽 */
  .idc-table td:first-child {
    width: 100%;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 13px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
  }

  /* 可用区、CPU、内存、价格 - 横向排列 */
  .idc-table td:nth-child(2),
  .idc-table td:nth-child(3),
  .idc-table td:nth-child(4),
  .idc-table td:nth-child(5) {
    width: auto;
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  /* 价格颜色 */
  .idc-table td:nth-child(5) {
    color: #0052d9;
    font-weight: 500;
  }

  /* 选择按钮 - 右上角 */
  .idc-table td:last-child {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0;
    width: auto;
  }

  .idc-radio {
    width: 16px;
    height: 16px;
  }

  /* 分页样式 */
  .pagination-container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .page-btn {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* ========================================
   操作系统选择（手机端下拉框）
   ======================================== */

/* 手机端下拉框默认隐藏 */
.os-mobile-selects {
  display: none;
}

/* 手机端（≤768px）样式 */
@media (max-width: 768px) {
  /* 隐藏PC端元素 */
  .os-desktop-view {
    display: none !important;
  }

  /* 显示手机端下拉框容器 */
  .os-mobile-selects {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  /* 自定义系统类型下拉 */
  .custom-select-wrapper {
    position: relative;
    width: 100%;
  }

  .custom-select-trigger {
    width: 100%;
    height: 46px;
    padding: 12px 14px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .custom-select-trigger:hover {
    border-color: #1890ff;
  }

  .custom-select-trigger.active {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  }

  .custom-select-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
  }

  .custom-select-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .custom-select-text {
    font-size: 15px;
    color: #333;
  }

  .custom-select-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
  }

  .custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
  }

  /* 下拉面板 */
  .custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 180px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    display: none;
  }

  .custom-select-dropdown.active {
    display: block;
  }

  /* 下拉选项 */
  .custom-select-option {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .custom-select-option:hover {
    background-color: #f5f5f5;
  }

  .custom-select-option.selected {
    background-color: #e6f4ff;
    color: #1890ff;
  }

  .custom-select-option img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .custom-select-option span {
    font-size: 15px;
  }

  /* 版本下拉框 */
  .os-version-select-mobile {
    width: 100%;
    height: 46px;
    padding: 12px 40px 12px 14px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    border: 1px solid #e5e5e5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .os-type-select-mobile:focus,
  .os-version-select-mobile:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  }

  .os-type-select-mobile:active,
  .os-version-select-mobile:active {
    background-color: #f5f5f5;
  }

  /* 下拉框选项样式 */
  .os-type-select-mobile option,
  .os-version-select-mobile option {
    padding: 12px;
    font-size: 15px;
  }
}

/* 小屏手机适配（< 375px） */
@media (max-width: 374px) {
  .os-type-select-mobile,
  .os-version-select-mobile {
    height: 44px;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
  }
}

