@keyframes heroGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbDriftOne {
  0% {
    transform: translate3d(0, 0, 0) rotate(12deg);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(18px, -22px, 0) rotate(24deg);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
    opacity: 0.45;
  }
}

.goods-main {
  padding: 0.8rem 1rem 1rem;
  background: linear-gradient(150deg, #f6f8ff 0%, #ffffff 45%, #f2f5ff 100%);
  border-radius: 0.32rem;
  box-shadow: 0 24px 60px rgba(20, 36, 70, 0.08);
  box-sizing: border-box;
}

.goods-hero {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.32rem;
  background: linear-gradient(120deg, #1626ff 0%, #7a9dff 55%, #a8c8ff 100%);
  background-size: 200% 200%;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.6rem;
  box-shadow: 0 22px 45px rgba(40, 74, 162, 0.25);
  animation: heroGlow 18s ease infinite;
}

.goods-hero::after {
  content: "";
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  right: -1.8rem;
  top: -2rem;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 70%);
  animation: orbDriftOne 16s ease-in-out infinite;
}

.goods-hero .hero-intro {
  position: relative;
  z-index: 1;
  max-width: 60%;
}

.goods-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.22rem;
  font-size: 0.12rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.goods-hero .hero-title {
  margin: 0.24rem 0 0.16rem;
  font-size: 0.42rem;
  font-weight: 600;
  line-height: 1.2;
}

.goods-hero .hero-desc {
  font-size: 0.16rem;
  opacity: 0.9;
  line-height: 1.6;
}

.goods-hero .hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 2.2rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.goods-hero .hero-stat {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.18rem;
  padding: 0.22rem 0.28rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.goods-hero .stat-label {
  font-size: 0.13rem;
  opacity: 0.85;
}

.goods-hero .stat-value {
  font-size: 0.24rem;
  font-weight: 600;
  letter-spacing: 0.01rem;
}

.goods-progress {
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0.28rem;
  box-shadow: 0 16px 40px rgba(43, 60, 117, 0.08);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.goods-progress .progress-item {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  flex: 1;
  color: #1b2559;
  transition: transform 0.4s ease;
}

.goods-progress .progress-item.is-active .progress-index,
.goods-progress .progress-item.is-completed .progress-index {
  background: linear-gradient(135deg, #1626ff 0%, #7a9dff 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 63, 201, 0.35);
  border-color: transparent;
}

.goods-progress .progress-item.is-completed .progress-index {
  background: linear-gradient(135deg, #0f8bff 0%, #67d6ff 100%);
  box-shadow: 0 10px 24px rgba(34, 171, 255, 0.35);
}

.goods-progress .progress-item.is-active {
  transform: translateY(-2px);
}

.goods-progress .progress-index {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: rgba(102, 122, 198, 0.12);
  border: 2px solid rgba(102, 122, 198, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #525c7a;
}

.goods-progress .progress-connector {
  width: 0.26rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(85, 110, 238, 0.15), rgba(85, 110, 238, 0.35));
  border-radius: 999px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.goods-progress .progress-connector.is-active {
  background: linear-gradient(90deg, rgba(68, 102, 255, 0.6), rgba(119, 175, 255, 0.95));
  box-shadow: 0 0 14px rgba(80, 129, 255, 0.35);
}

.goods-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.28rem;
  box-shadow: 0 18px 42px rgba(32, 46, 101, 0.08);
  backdrop-filter: blur(18px);
  margin-bottom: 0.6rem;
  align-items: center;
}

.goods-toolbar .toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.goods-toolbar .toolbar-title {
  margin: 0;
  font-size: 0.26rem;
  font-weight: 600;
  color: #1a2451;
}

.goods-toolbar .toolbar-subtitle {
  margin: 0;
  color: #7a8199;
  font-size: 0.13rem;
}

.goods-toolbar .toolbar-right {
  display: flex;
  gap: 0.24rem;
  align-items: center;
}

.goods-toolbar .toolbar-metric {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  padding: 0.16rem 0.24rem;
  border-radius: 0.2rem;
  background: rgba(16, 40, 255, 0.08);
  border: 1px solid rgba(16, 40, 255, 0.18);
  min-width: 1.6rem;
}

.goods-toolbar .metric-label {
  font-size: 0.12rem;
  color: #5a6387;
}

.goods-toolbar .metric-value {
  font-size: 0.18rem;
  font-weight: 600;
  color: #1028ff;
}

.goods-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.8rem;
  gap: 0.5rem;
  align-items: flex-start;
}

.config-shell {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.28rem;
  border: 1px solid rgba(135, 146, 191, 0.14);
  box-shadow: 0 18px 45px rgba(32, 46, 101, 0.08);
  padding: 0.36rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-height: 6rem;
  box-sizing: border-box;
}

.config-switcher .goods-item-name {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.14rem 0.26rem;
  border-radius: 0.18rem;
  border: 1px solid rgba(16, 40, 255, 0.4);
  color: #1028ff;
  font-weight: 600;
  background: rgba(16, 40, 255, 0.08);
  transition: all 0.3s ease;
}

.config-switcher .goods-item-name:hover {
  background: rgba(16, 40, 255, 0.14);
}

.config-content {
  flex: 1;
  background: rgba(246, 249, 255, 0.7);
  border-radius: 0.24rem;
  border: 1px solid rgba(135, 146, 191, 0.12);
  padding: 0.28rem;
  overflow: hidden;
}

.config-content .content {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.goods-side {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.goods-summary-card {
  padding: 0.32rem 0.3rem;
  border-radius: 0.26rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(233, 240, 255, 0.92) 100%);
  border: 1px solid rgba(135, 146, 191, 0.16);
  box-shadow: 0 18px 42px rgba(32, 46, 101, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.goods-summary-card.secondary {
  background: linear-gradient(180deg, rgba(16, 40, 255, 0.08) 0%, rgba(16, 40, 255, 0.04) 100%);
  border-color: rgba(16, 40, 255, 0.18);
}

.goods-summary-card .summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.12rem;
}

.goods-summary-card .summary-title {
  font-size: 0.18rem;
  font-weight: 600;
  color: #1a2451;
}

.goods-summary-card .summary-badge {
  padding: 0.04rem 0.12rem;
  border-radius: 0.14rem;
  background: rgba(16, 40, 255, 0.12);
  color: #1028ff;
  font-size: 0.12rem;
  font-weight: 600;
}

.goods-summary-card .summary-body {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.goods-summary-card .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.14rem;
  color: #5a6387;
}

.goods-summary-card .summary-value {
  font-weight: 600;
  color: #1028ff;
}

.goods-summary-card .summary-footer {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.goods-summary-card .summary-btn {
  width: 100%;
  height: 0.46rem;
  border-radius: 0.18rem;
  background: linear-gradient(135deg, #1626ff 0%, #7a9dff 100%);
  border: none;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(25, 62, 188, 0.22);
}

.goods-summary-card .summary-btn.plain {
  background: rgba(16, 40, 255, 0.12);
  color: #1028ff;
  box-shadow: none;
}

.goods-summary-card .summary-tip {
  margin: 0;
  font-size: 0.12rem;
  color: #6c7287;
}

.goods-summary-card .summary-list {
  margin: 0;
  padding-left: 0.18rem;
  color: #4d5875;
  font-size: 0.13rem;
  line-height: 1.7;
}

.goods-change-box {
  max-width: 100%;
}

.goods-change-box .goods-item-box {
  max-height: 5rem;
  overflow-y: auto;
  padding: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.goods-change-box .goods-group-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.goods-change-box .goods-group-name {
  font-weight: 700;
  font-size: 0.18rem;
  color: #1a2451;
}

.goods-change-box .goods-group-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.14rem;
}

.goods-change-box .option-name {
  cursor: pointer;
  font-size: 0.14rem;
  color: #4d5875;
  padding: 0.1rem 0.12rem;
  border-radius: 0.14rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.goods-change-box .option-name:hover {
  color: #1028ff;
  border-color: rgba(16, 40, 255, 0.28);
  background: rgba(16, 40, 255, 0.08);
}

@media screen and (max-width: 1360px) {
  .goods-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .goods-toolbar .toolbar-right {
    justify-content: flex-start;
  }

  .goods-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .goods-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .goods-summary-card {
    flex: 1;
  }
}

@media screen and (max-width: 960px) {
  .goods-main {
    padding: 0.6rem 0.4rem 0.8rem;
  }

  .goods-hero {
    flex-direction: column;
    gap: 0.32rem;
  }
}

@media screen and (max-width: 768px) {
  .goods-toolbar .toolbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .goods-change-box .goods-group-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
