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

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  /* PC表格隐藏 */
  .pc-table {
    display: none;
  }

  /* PC端卡片列表隐藏 */
  .pc-card-list {
    display: none;
  }

  /* 视图切换按钮隐藏 */
  .view-switch {
    display: none;
  }

  /* 移动端卡片列表显示 */
  .mobile-card-list {
    display: block;
  }

  /* 标题字体缩小 */
  .title-text {
    font-size: 16px;
  }

  /* 标签选项缩小 - 确保四个选项能在一行显示 */
  .card-menu-item {
    font-size: 10px;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .card-menu-item:not(:first-child) {
    margin-left: 8px;
  }

  .main-card-menu {
    margin-top: 8px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  /* 标签导航容器 */
  .main-card-search {
    margin-top: 6px;
  }

  /* 搜索区域优化 - 批量续费和查询按钮在同一行 */
  .main-card-search {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    align-items: center;
  }

  .main-card-search .right-search {
    width: auto;
    flex: 1;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-start;
  }

  /* 批量续费按钮容器 */
  .main-card-search > div:first-child {
    margin-right: 4px;
  }

  .main-card-search .right-search .el-select,
  .main-card-search .right-search .el-input {
    width: auto;
    max-width: 100px;
    flex: 1;
  }

  .main-card-search .right-search .el-input__inner,
  .main-card-search .right-search .el-select .el-input__inner {
    height: 32px;
    line-height: 32px;
    font-size: 11px;
  }

  /* 批量续费按钮缩小 - 浅蓝色样式 */
  .batch-renew-btn,
  .el-dropdown .el-button {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #1890ff;
  }
  .el-dropdown .el-button--primary {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #1890ff;
  }
  .el-dropdown .el-button--primary:hover,
  .el-dropdown .el-button--primary:focus {
    background: #bae7ff;
    color: #1890ff;
    border: 1px solid #1890ff;
  }

  /* 搜索按钮缩小 - 浅蓝色样式 */
  .search-btn {
    min-width: 50px;
    height: 32px;
    font-size: 11px;
    border-radius: 0;
    padding: 0 10px;
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #1890ff;
  }

  /* 表格字体缩小 */
  .el-table th,
  .el-table td {
    padding: 8px 6px !important;
    font-size: 10px !important;
  }

  .el-table .cell {
    white-space: nowrap !important;
  }

  /* 产品名称缩小 */
  .cloud-name .packge-name {
    font-size: 11px;
  }

  .cloud-name .name {
    font-size: 10px;
  }

  /* 状态标签缩小 */
  .status {
    width: 44px;
    height: 20px;
    font-size: 10px;
    border-radius: 0;
  }

  /* 分页器缩小 */
  .el-pagination {
    font-size: 11px;
  }

  .el-pagination .el-select .el-input {
    width: 80px;
  }

  .el-pagination button,
  .el-pagination span:not([class*="suffix"]) {
    font-size: 11px;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
  }

  /* ID列缩小 */
  .column-id {
    font-size: 10px;
  }

  /* 表格整体间距 */
  .main-card-table {
    margin-top: 16px;
  }

  /* 按钮直角边 */
  .el-button {
    border-radius: 0 !important;
  }
}
