/* ===== 云控制台风格 产品选购页 ===== */

:root {
  --tc-primary: #0058ff;
  --tc-ink: #1e2736;
  --tc-muted: #8692b0;
  --tc-line: #e6e7eb;
  --tc-bg: #f7f8fa;
}

.el-main.tc-section-main.tc-order-main {
  grid-template-rows: minmax(auto, 1fr) auto;
  align-content: stretch;
}

.main-card-title {
  font-size: 0.28rem;
  line-height: 0.28rem;
}

.tc-buy-box {
  background: #fff;
  border: 1px solid var(--tc-line);
  border-radius: 4px;
  padding: 24px;
  box-sizing: border-box;
}

.tc-buy-subtitle {
  font-size: 13px;
  color: var(--tc-muted);
  margin-bottom: 20px;
}

.tc-buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.tc-buy-grid .no-goods {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 产品入口卡片 */
.tc-buy-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tc-line);
  border-radius: 4px;
  padding: 24px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tc-buy-card:hover {
  box-shadow: 0 6px 16px rgba(2, 17, 43, 0.1);
  transform: translateY(-2px);
}

.tc-buy-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-buy-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-buy-card-icon i {
  font-size: 22px;
  color: #fff;
}

.tc-buy-card-icon-0 {
  background: linear-gradient(135deg, #3f8cff, #0058ff);
}

.tc-buy-card-icon-1 {
  background: linear-gradient(135deg, #2fc6ff, #0f8fff);
}

.tc-buy-card-icon-2 {
  background: linear-gradient(135deg, #8f7bff, #5f4bff);
}

.tc-buy-card-icon-3 {
  background: linear-gradient(135deg, #ffb35c, #ff7a2f);
}

.tc-buy-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--tc-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tc-buy-card-tag {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 18px;
  color: #ff7200;
  background: rgba(255, 114, 0, 0.08);
  border: 1px solid rgba(255, 114, 0, 0.3);
  border-radius: 2px;
  padding: 0 6px;
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
}

.active-item {
  font-size: 12px;
  color: #ff7200;
  line-height: 20px;
}

.tc-buy-card-desc {
  flex: 1;
  min-height: 48px;
  margin: 20px 0 26px;
  color: #4a5870;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tc-buy-card-desc p {
  margin: 0;
}

.tc-buy-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #f0f1f5;
}

.tc-buy-card-foot .el-button {
  min-width: 98px;
}

@media screen and (max-width: 750px) {
  .tc-buy-box {
    padding: 16px;
  }

  .tc-buy-grid {
    grid-template-columns: 1fr;
  }
}
