:root {
  --dy7-blue: #2463e8;
  --dy7-orange: #f04422;
  --dy7-ink: #0d1729;
  --dy7-text: #53627a;
  --dy7-muted: #8998ad;
  --dy7-line: #d9e4f2;
  --dy7-soft: #edf4ff;
}

.main-card {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.main-card > .main-title {
  display: none !important;
}

.main-content-box {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dy-category-panel {
  overflow: hidden;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--dy7-line);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(24, 62, 108, .07);
}

.dy-category-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 18px;
  padding: 21px 26px;
}

.dy-category-row + .dy-category-row {
  border-top: 1px solid #e2e9f2;
}

.dy-row-title {
  color: #526178;
  font-size: 15px;
  font-weight: 650;
}

.dy-primary-groups,
.dy-secondary-groups {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dy-primary-groups button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  color: #405069;
  background: #f7f9fc;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  font-weight: 700;
  transition: .18s ease;
}

.dy-primary-groups button i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--dy7-blue);
  background: #e8f1ff;
  border-radius: 9px;
  font-style: normal;
  font-weight: 850;
}

.dy-primary-groups button i.defense { color: #ed462e; background: #fff0ed; }
.dy-primary-groups button i.dedicated { color: #744ed0; background: #f1edff; }
.dy-primary-groups button i.multi { color: #e78514; background: #fff4e5; }

.dy-primary-groups button.active {
  color: #fff;
  background: linear-gradient(135deg, #3478ef, #1e58d2);
  border-color: var(--dy7-blue);
  box-shadow: 0 9px 21px rgba(36, 99, 232, .22);
}

.dy-primary-groups button.active i {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.dy-secondary-row {
  grid-template-columns: 112px 1fr auto;
}

.dy-secondary-groups button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #3e4e66;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 11px;
}

.dy-secondary-groups button i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #fff;
  background: var(--dy7-orange);
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.dy-secondary-groups button.active {
  color: #1455ca;
  background: var(--dy7-soft);
  border-color: #7da9f8;
  box-shadow: 0 0 0 4px rgba(36, 99, 232, .09);
}

.dy-search {
  display: flex;
  width: 310px;
  gap: 8px;
}

.dy-search .el-input {
  min-width: 0;
}

.second-desc {
  min-height: 54px !important;
  margin-bottom: 18px !important;
  padding: 0 18px !important;
  color: #1450ad !important;
  background: #e7f0ff !important;
  border: 1px solid #bad2fb !important;
  border-radius: 13px !important;
  line-height: 54px !important;
}

.goods-list-div {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 13px !important;
}

.shopping-item {
  display: grid !important;
  min-height: 112px !important;
  grid-template-columns: 1fr !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid var(--dy7-line) !important;
  border-radius: 17px !important;
  box-shadow: 0 6px 19px rgba(24, 62, 108, .055) !important;
  transition: .18s ease !important;
}

.shopping-item:hover {
  transform: translateY(-2px);
  border-color: #9bbcf8 !important;
  box-shadow: 0 14px 30px rgba(24, 62, 108, .1) !important;
}

.shopping-item > .goods-description {
  display: none !important;
}

.shopping-item .goods-content {
  display: grid !important;
  min-height: 112px;
  grid-template-columns: minmax(210px, 1fr) minmax(430px, 2.1fr) minmax(220px, .8fr) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 18px 22px !important;
}

.shopping-item .goods-tag,
.shopping-item .goods-active {
  position: absolute !important;
  top: 8px;
  right: 8px;
}

.shopping-item .goods-name {
  display: flex !important;
  min-width: 0;
  align-items: center !important;
  gap: 12px;
  margin: 0 !important;
}

.dy-product-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 44px;
  color: var(--dy7-blue);
  background: #e8f1ff;
  border-radius: 12px;
  font-weight: 850;
}

.dy-product-badge.defense { color: #ed462e; background: #fff0ed; }
.dy-product-badge.dedicated { color: #744ed0; background: #f1edff; }
.dy-product-badge.multi { color: #e78514; background: #fff4e5; }

.shopping-item .goods-name-text {
  overflow: hidden;
  color: var(--dy7-ink) !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dy-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dy-spec-grid > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.dy-spec-grid > div > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.dy-spec-grid small {
  color: var(--dy7-muted);
  font-size: 9px;
  line-height: 1.3;
}

.dy-spec-grid b {
  overflow: hidden;
  margin-top: 3px;
  color: var(--dy7-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dy-spec-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 38px;
  color: var(--dy7-blue);
  background: var(--dy7-soft);
  border-radius: 11px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.dy-spec-icon.cpu::before { content: "芯"; }
.dy-spec-icon.memory::before { content: "存"; }
.dy-spec-icon.disk::before { content: "盘"; }
.dy-spec-icon.speed::before { content: "速"; }

.shopping-item .price-box {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  margin: 0 !important;
}

.shopping-item .item-price {
  color: var(--dy7-orange) !important;
  font-size: 29px !important;
  font-weight: 800 !important;
}

.shopping-item .buy-btn {
  min-width: 118px;
}

@media (max-width: 1180px) {
  .dy-secondary-row { grid-template-columns: 112px 1fr; }
  .dy-search { grid-column: 2; width: 100%; margin-top: 5px; }
  .shopping-item .goods-content { grid-template-columns: 1fr !important; }
  .shopping-item .price-box { justify-content: space-between !important; }
}

@media (max-width: 768px) {
  .dy-category-row,
  .dy-secondary-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .dy-row-title { font-weight: 750; }
  .dy-primary-groups,
  .dy-secondary-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dy-primary-groups button,
  .dy-secondary-groups button {
    width: 100%;
    padding: 0 10px;
  }

  .dy-search { grid-column: 1; }
  .shopping-item .goods-content { padding: 17px !important; }
  .dy-spec-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shopping-item .item-price { font-size: 24px !important; }
  .shopping-item .buy-btn { min-width: 100px; }
}
