/* 产品列表页 - 与 cloudList 统一 */
.product {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1a2233;
}

.product .main-card-title {
  margin-bottom: 4px;
}

.product .title-text {
  font-size: 24px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: -0.02em;
}

.product .main-card-table {
  margin-top: 20px;
  width: 100% !important;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 20px 24px 8px;
  box-sizing: border-box;
}

/* clientatea 统一白卡片：外层 main-card 包一层，内层表格区不再嵌套卡片 */
.product.product-list-unified .main-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  padding: 24px 28px;
  box-sizing: border-box;
}

.product.product-list-unified .main-card-title {
  margin-bottom: 16px;
}

.product.product-list-unified .main-card-table {
  margin-top: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.product.product-list-unified .main-card-search {
  padding: 16px 0;
  border-bottom: 1px solid #e8ecf4;
  margin-bottom: 16px;
}

.product.product-list-unified .main-card-search .right-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product.product-list-unified .main-card-search .right-search .el-select,
.product.product-list-unified .main-card-search .right-search .el-input {
  width: 180px;
}

.product.product-list-unified .product-tab-list .el-tabs__header {
  margin-bottom: 0;
}

.product.product-list-unified .product-tab-list .el-tabs__item {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  height: 44px;
  line-height: 44px;
}

.product.product-list-unified .product-tab-list .el-tabs__item.is-active {
  color: var(--color-primary, #4361ee);
  font-weight: 600;
}

.product.product-list-unified .product-tab-list .el-tabs__active-bar {
  background-color: var(--color-primary, #4361ee);
  height: 3px;
}

.product.product-list-unified .search-btn {
  min-width: 88px;
  height: 38px;
  line-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--color-primary, #4361ee);
  color: #fff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb, 67, 97, 238), 0.25);
}

.product.product-list-unified .table .el-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecf4;
}

.product.product-list-unified .table .el-table th.el-table__cell {
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.product.product-list-unified .table .el-table td.el-table__cell {
  color: #334155;
}

.product.product-list-unified .area {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product.product-list-unified .area .area-img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.product.product-list-unified .page {
  margin-top: 16px;
}

.product .main-card-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 16px;
  border-bottom: 1px solid #f1f5f9;
}

.product .main-card-search .right-search {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product .main-card-search .right-search .el-select,
.product .main-card-search .right-search .el-input {
  width: 180px;
}

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

.product .center-option-label .area-img {
  width: 18px;
  height: 12px;
  margin-right: 8px;
  object-fit: cover;
  border-radius: 2px;
}

.product .area {
  display: flex;
  align-items: center;
  min-height: 20px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product .area .area-img {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
}

.product .area-country {
  margin-left: 6px;
  flex-shrink: 0;
}

.product .cloud-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
  overflow: hidden;
}

.product .cloud-name .packge-name {
  color: #1a2233;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product .cloud-name .name {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product .os {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
}

.product .os-img {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.product .list-show-ip .cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.product .list-show-ip .com-ip-box {
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  overflow: hidden;
}

.product .list-show-ip .com-ip-box > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product .list-show-ip .el-icon-document-copy,
.product .base-color {
  color: var(--color-primary, #4361ee);
  cursor: pointer;
  flex-shrink: 0;
}

.product .table .el-table .cell {
  line-height: 1.4;
}

.product .table .el-table td.el-table__cell .cell {
  overflow: hidden;
}

.product .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 26px;
  padding: 0 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
}

.product .table .el-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecf4;
}

.product .table .el-table th.el-table__cell {
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.product .column-id {
  color: var(--color-primary, #4361ee);
  font-weight: 600;
}

.product .column-id:hover {
  border-bottom-color: var(--color-primary, #4361ee);
}

.product .cloud-name .name {
  color: #94a3b8;
}

.product .search-btn {
  border-radius: 8px;
  font-weight: 600;
  height: 38px;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb, 67, 97, 238), 0.25);
}

/* ---- 移动端卡片列表 ---- */
.product-mobile-toolbar,
.product-mobile-list {
  display: none;
}

@media screen and (max-width: 750px) {
  .product.main-card,
  .product .main-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .product .main-card-title {
    margin-bottom: 8px;
  }

  .product .title-text {
    font-size: 18px;
  }

  .product .main-card-table {
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .product .product-tab-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product .product-tab-list .el-tabs__nav-wrap {
    overflow: visible;
  }

  .product .main-card-search {
    padding: 0 0 12px;
    border-bottom: none;
  }

  .product .product-batch-renew,
  .product .product-desktop-search,
  .product .product-desktop-table {
    display: none !important;
  }

  .product-mobile-toolbar {
    display: block;
  }

  .product .pm-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .product .pm-filters .el-select,
  .product .pm-search-row .el-input {
    width: 100%;
  }

  .product .pm-search-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .product .pm-traffic-btn {
    width: 100%;
  }

  .product .pm-traffic-btn .search-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .product .pm-traffic-btn .tip {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
  }

  .product-mobile-list {
    display: block;
  }

  .product .pm-card {
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .product .pm-card:active {
    transform: scale(0.995);
  }

  .product .pm-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .product .pm-card-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a2233;
    line-height: 1.4;
  }

  .product .pm-product-name {
    word-break: break-all;
  }

  .product .pm-instance-name {
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
  }

  .product .pm-card-status .status {
    padding: 4px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .product .pm-card-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 10px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .product .pm-info-col {
    min-width: 0;
    text-align: center;
  }

  .product .pm-info-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
  }

  .product .pm-info-value {
    font-size: 12px;
    color: #334155;
    line-height: 1.35;
    word-break: break-all;
  }

  .product .pm-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .product .pm-area img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
  }

  .product .pm-ip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .product .pm-ip .el-icon-document-copy {
    color: var(--color-primary, #4361ee);
    font-size: 14px;
    cursor: pointer;
  }

  .product .pm-os {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .product .pm-os .os-img {
    width: 22px;
    height: 22px;
  }

  .product .pm-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
  }

  .product .pm-due {
    text-align: right;
    flex: 1;
    min-width: 0;
    word-break: break-all;
  }

  .product .pm-empty {
    padding: 40px 16px;
    text-align: center;
    color: #94a3b8;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
  }

  .pm-center-dropdown.el-select-dropdown,
  .el-select-dropdown.pm-center-dropdown {
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
  }

  .pm-center-dropdown .el-select-dropdown__item,
  .el-select-dropdown .el-select-dropdown__item {
    height: auto !important;
    min-height: 40px;
    padding: 8px 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  .el-select-dropdown .center-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .el-select-dropdown .center-option-label .area-img {
    width: 20px !important;
    height: 14px !important;
    max-width: 20px !important;
    max-height: 14px !important;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 2px;
  }

  .el-select-dropdown .center-option-label .option-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-all;
  }

  .product .page {
    margin-top: 8px;
  }
}

@media screen and (min-width: 751px) {
  .product-mobile-toolbar,
  .product-mobile-list {
    display: none !important;
  }
}
