/* 测试优惠专享页 */
.offer-page {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 0 20px;
}

.offer-hero {
  background: linear-gradient(135deg, #3d38f5 0%, #5b55ff 45%, #636dff 100%);
  color: #fff;
  border-radius: 20px;
  padding: 36px 40px 32px;
  margin: 32px 0 28px;
  box-shadow: 0 16px 40px rgba(61, 56, 245, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.offer-hero__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.offer-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offer-hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.94;
}

.offer-hero .hl {
  color: #ffd4a8;
  font-weight: 700;
}

.offer-hero__search {
  flex: 0 1 360px;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.offer-hero__search-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.55;
}

.offer-hero__search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1e293b;
  height: 36px;
}

.offer-hero__search input[type="search"]::placeholder {
  color: #94a3b8;
}

.offer-hero__search-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  height: 36px;
  background: #3d38f5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.offer-hero__search-btn:hover {
  background: #312ed4;
}

.offer-empty--hint {
  text-align: left;
  color: #475569;
}

.offer-empty__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.offer-empty__desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
}

.offer-suggest {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-suggest a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.offer-suggest a:hover {
  background: #eef0ff;
  border-color: #c7c9f5;
}

.offer-suggest__ch {
  flex-shrink: 0;
  font-size: 11px;
  color: #3d38f5;
  background: #eef0ff;
  padding: 2px 8px;
  border-radius: 6px;
}

.offer-suggest__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.offer-suggest__go {
  flex-shrink: 0;
  font-size: 12px;
  color: #3d38f5;
  font-weight: 600;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(61, 56, 245, 0.12);
}

.offer-card__media {
  position: relative;
  height: 120px;
  margin: 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
}

.offer-card__media img {
  max-width: 90%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.offer-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 52px;
  height: 52px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ff8a65, #e53935 70%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
}

.offer-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
  gap: 8px;
}

.offer-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
  min-height: 2.9em;
}

.offer-card__price {
  margin: 0;
  font-size: 13px;
  color: #e53935;
  font-weight: 600;
}

.offer-card__price em {
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}

.offer-card__meta {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.offer-card__link {
  font-size: 12px;
  color: #3d38f5;
  text-decoration: none;
}

.offer-card__link:hover {
  text-decoration: underline;
}

.offer-card__foot {
  margin-top: auto;
  padding-top: 4px;
}

.offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #3d38f5, #636dff);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.offer-btn:hover {
  opacity: 0.92;
}

.offer-btn:disabled,
.offer-btn.is-disabled {
  background: #c5cae9;
  cursor: not-allowed;
}

.offer-btn--ghost {
  background: #eef0ff;
  color: #3d38f5;
}

.offer-empty {
  text-align: center;
  padding: 56px 24px;
  color: #94a3b8;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed #dbe3ef;
}

.offer-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.offer-pager-meta {
  font-size: 13px;
  color: #94a3b8;
}

.offer-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer-pager .pagination a,
.offer-pager .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
}

.offer-pager .pagination a:hover {
  background: #f8fafc;
}

.offer-pager .pagination li.active span {
  background: #3d38f5;
  color: #fff;
  border-color: #3d38f5;
}

.offer-pager .pagination li.disabled span {
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .offer-hero {
    padding: 28px 22px;
    margin-top: 20px;
  }
  .offer-hero__search {
    flex: 1 1 100%;
    max-width: none;
  }
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .offer-card__title {
    font-size: 13px;
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}
