#cloudList {
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: #171725;
}
.main-card-title {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.title-text {
  font-size: 28px;
}
.add-btn {
  width: 0.6rem;
  height: 0.24rem;
  border: 1px solid var(--color-primary);
  opacity: 1;
  border-radius: 3px;
  color: var(--color-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.08rem;
  font-size: 0.14rem;
  font-weight: bold;
  font-family: PingFang SC;
}
.main-card-menu {
  width: 100%;
  border-bottom: 1px solid #e6e7eb;
  display: flex;
  flex-direction: row;
  margin-top: 0.4rem;
}
.main-card-menu .active {
  border-bottom: 1px solid var(--color-primary);
}
.card-menu-item {
  font-size: 15;
  color: #1e2736;
  padding-bottom: 13px;
  cursor: pointer;
}
.card-menu-item:not(:first-child) {
  margin-left: 0.4rem;
}
.main-card-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}
.main-card-search .right-search {
  flex: 1;
  display: flex;
  justify-content: end;
  align-items: center;
  column-gap: 0.2rem;
}
.main-card-search .right-search .el-select,
.main-card-search .right-search .el-input {
  width: 2.2rem;
}
.center-option-label {
  display: flex;
  align-items: center;
}
.center-option-label img {
  margin-right: 0.1rem;
}
.search-btn {
  min-width: 0.8rem;
  height: 0.4rem;
  background: var(--color-primary);
  opacity: 1;
  border-radius: 3px;
  font-size: 0.16rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0.15rem;
  box-sizing: border-box;
}
.main-card-table {
  margin-top: 0.4rem;
}
tbody tr:hover {
  cursor: pointer;
}
.column-id {
  cursor: pointer;
}
.column-id:hover {
  border-bottom: 1px solid black;
}
.area {
  height: 20px;
  display: flex;
  align-items: center;
}
.area-img {
  height: 18px;
}
.area-country {
  margin-left: 8px;
}
.area-city {
  margin-left: 8px;
}
.cloud-name {
  display: flex;
  flex-direction: column;
}
.cloud-name .packge-name {
  color: #171725;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cloud-name .name {
  font-size: 13px;
  font-weight: 500;
  color: #8692b0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.power-status {
  display: flex;
  align-items: center;
}
.power-status img {
  width: 0.24rem;
}
.power-status .status-text {
  color: #1e2736;
  margin-left: 7px;
}
.os {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.os-img {
  width: 28px;
}
.os-text {
  margin-left: 0.08rem;
}
.status {
  width: 56px;
  height: 26px;
  border-radius: 4px;
  background: pink;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.operation .dot {
  color: var(--color-primary);
  font-size: 24px;
  cursor: pointer;
}
.el-input__suffix {
  display: flex;
  align-items: center;
}
.input-search {
  padding-right: 0.1rem;
  cursor: pointer;
}
.el-popover {
  min-width: 0.5rem !important;
}
.list-show-ip .cell {
  display: flex;
  align-items: center;
}
.list-show-ip .com-ip-box {
  display: flex;
  max-width: calc(100% - 0.3rem);
}
.list-show-ip .com-ip-box > span {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0.05rem;
  line-height: 1;
}

/* ==================== 视图切换按钮样式 ==================== */
.view-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 0.4rem;
}

.switch-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f5f7fa;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  color: #606266;
}

.switch-item:hover {
  background: #e6e8eb;
}

.switch-item.active {
  background: var(--color-primary);
  color: #fff;
}

.switch-item i {
  font-size: 16px;
}

/* ==================== PC端卡片列表样式 ==================== */
.pc-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0.2rem 0;
  margin-top: 0.4rem;
}

.pc-card-list .product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.pc-card-list .product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.pc-card-list .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.pc-card-list .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pc-card-list .product-name {
  font-size: 16px;
  font-weight: 600;
  color: #171725;
  line-height: 1.4;
}

.pc-card-list .host-name {
  font-size: 13px;
  color: #8692b0;
  word-break: break-all;
}

.pc-card-list .status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.pc-card-list .card-id {
  font-size: 12px;
  color: #999;
  font-family: 'Courier New', monospace;
  padding: 4px 8px;
  background: #f5f7fa;
  border-radius: 4px;
}

.pc-card-list .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-card-list .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.pc-card-list .label {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}

.pc-card-list .value {
  font-size: 13px;
  color: #333;
  text-align: right;
  flex: 1;
  font-weight: 400;
}

.pc-card-list .ip-value {
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
}

.pc-card-list .ip-value .el-icon-document-copy {
  margin-left: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.pc-card-list .ip-value .el-icon-document-copy:hover {
  opacity: 1;
}

.pc-card-list .ip-count {
  font-size: 12px;
  color: var(--color-primary);
  margin-left: 4px;
  font-weight: 600;
}

.pc-card-list .due-soon {
  color: #ff4d4f;
  font-weight: 600;
}

/* ==================== 移动端卡片列表样式 ==================== */
.mobile-card-list {
  display: none;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-card .card-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.product-card .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  color: #171725;
}

.product-card .host-name {
  font-size: 12px;
  color: #8692b0;
  word-break: break-all;
}

.product-card .status-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 4px;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card .label {
  font-size: 12px;
  color: #999;
}

.product-card .value {
  font-size: 12px;
  color: #333;
  text-align: right;
}

.product-card .ip-value {
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
}

.product-card .due-soon {
  color: #ff4d4f;
}

/* ==================== 移动端适配 (Tencent Cloud Mobile Console Style) ==================== */
@media (max-width: 768px) {
  /* 强行拦截并规范化外层容器，彻底消灭横向滚动条并完美对称留边 */
  body, html, .product {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .template,
  .template > .el-container,
  .template > .el-container > .el-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 强力覆盖 element-comment.css 中 PC 端的 0.24rem margin，消灭右侧溢出裁剪痛点 */
  .el-main {
    padding: 76px 12px 100px 12px !important; /* 顶部留出 60px 导航栏 + 16px 留白 */
    margin: 0 !important; /* 彻底清除 PC 端偏移 margin */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: #f5f7fa !important;
    overflow-x: hidden !important;
  }

  /* 头部标题腾讯云 console 风格 */
  .main-card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 16px !important;
    padding: 0 4px !important;
  }

  .title-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
  }

  .main-card-table {
    margin-top: 16px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }

  /* 标签切换栏优化 — 滚动自适应且精致 */
  .product-tab-list {
    margin-bottom: 16px !important;
    background: #ffffff !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  }

  .product-tab-list .el-tabs__nav-wrap::after {
    display: none !important;
  }

  .product-tab-list .el-tabs__header {
    margin: 0 !important;
  }

  .product-tab-list .el-tabs__item {
    font-size: 13px !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
  }

  .product-tab-list .el-tabs__item.is-active {
    color: #0052d9 !important;
    font-weight: 700 !important;
  }

  .product-tab-list .el-tabs__active-bar {
    background-color: #0052d9 !important;
    height: 2px !important;
  }

  /* 筛选与搜索表单卡片化纵向流式重构 */
  .main-card-search {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 批量续费组件容器 */
  .main-card-search > div:first-child {
    width: 100% !important;
    margin: 0 !important;
  }

  /* 按钮尺寸及腾讯蓝高响应风格重塑 */
  .el-dropdown .el-button,
  .batch-renew-btn {
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    background: #e1f0ff !important;
    color: #0052d9 !important;
    border: 1px solid #b3d7ff !important;
    transition: all 0.2s ease !important;
    display: block !important;
  }

  .el-dropdown .el-button:active,
  .el-dropdown .el-button:hover {
    background: #c3e2ff !important;
    border-color: #0052d9 !important;
  }

  /* 右侧搜索区域纵向整洁排列 */
  .main-card-search .right-search {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    margin: 0 !important;
  }

  /* 状态选择框和输入框全宽 */
  .main-card-search .right-search .el-select,
  .main-card-search .right-search .el-input {
    width: 100% !important;
    max-width: none !important;
  }

  .main-card-search .right-search .el-input__inner,
  .main-card-search .right-search .el-select .el-input__inner {
    height: 38px !important;
    line-height: 38px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    border: 1px solid #dcdfe6 !important;
    padding-left: 12px !important;
  }

  /* 搜索按钮 */
  .search-btn {
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    background: #0052d9 !important;
    color: #ffffff !important;
    border: 1px solid #0052d9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .search-btn:active {
    background: #0045bb !important;
    border-color: #0045bb !important;
  }

  /* 隐藏 PC 表格与视图切换 */
  .pc-table,
  .pc-card-list,
  .view-switch {
    display: none !important;
  }

  /* 移动端卡片列表展示 */
  .mobile-card-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* 腾讯云扁平尊贵卡片设计 */
  .mobile-card-list .product-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01) !important;
    padding: 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    position: relative !important;
  }

  .mobile-card-list .product-card:active {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }

  /* 卡片头部 */
  .mobile-card-list .card-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  .mobile-card-list .product-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
    padding-right: 60px !important; /* 避免和右侧状态标签重合 */
  }

  .mobile-card-list .product-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
  }

  .mobile-card-list .host-name {
    font-size: 12px !important;
    color: #64748b !important;
    word-break: break-all !important;
  }

  /* 右上角绝对定位挂载状态标签 */
  .mobile-card-list .status-badge {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
  }

  /* 卡片主体 */
  .mobile-card-list .card-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* 元数据行 */
  .mobile-card-list .info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .mobile-card-list .label {
    color: #64748b !important;
    font-weight: 400 !important;
  }

  .mobile-card-list .value {
    color: #1e293b !important;
    font-weight: 600 !important;
    text-align: right !important;
    font-family: system-ui, -apple-system, sans-serif !important;
  }

  /* 突出展示服务编号 & IP 地址 */
  .mobile-card-list .info-row:nth-child(1) .value {
    font-family: 'Courier New', monospace !important;
    background: #f1f5f9 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    color: #475569 !important;
  }

  .mobile-card-list .ip-value {
    font-family: 'Courier New', monospace !important;
    color: #0052d9 !important;
    font-weight: 700 !important;
    background: #eef2ff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
  }

  .mobile-card-list .due-soon {
    color: #ef4444 !important;
    font-weight: 700 !important;
  }

  /* 分页器精简美化 */
  .page {
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center !important;
  }

  .el-pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .el-pagination .el-select .el-input {
    width: 76px !important;
    margin: 0 !important;
  }

  .el-pagination .el-input__inner {
    height: 28px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
  }

  .el-pagination button,
  .el-pagination .el-pager li {
    min-width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 12px !important;
    color: #475569 !important;
  }

  .el-pagination .el-pager li.active {
    background: #0052d9 !important;
    color: #ffffff !important;
    border-color: #0052d9 !important;
    font-weight: 700 !important;
  }

  .el-pagination__jump,
  .el-pagination__total {
    font-size: 11px !important;
    color: #64748b !important;
    height: 28px !important;
    line-height: 28px !important;
  }
}
