/* 售后服务页 · 官方感版式 */
:root {
  --as-ink: #0f172a;
  --as-muted: #64748b;
  --as-line: rgba(15, 23, 42, 0.08);
  --as-blue: #1d4ed8;
  --as-blue-2: #2563eb;
  --as-max: 1320px;
  --as-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bce-body--after-sales,
.bce-body--after-sales .bce-main,
.bce-body--after-sales main.bce-main-minimal,
.bce-body--after-sales main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f5f7fb !important;
}

.as-page {
  font-family: var(--as-font);
  color: var(--as-ink);
  background: #f5f7fb;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}

/* 查询区灰底满铺至页脚，不再半截露白 */
.as-body {
  flex: 1 1 auto;
  width: 100%;
  background: #f5f7fb;
  padding: 0 0 96px;
  box-sizing: border-box;
}

/* —— Hero：加高，官方横幅 —— */
.as-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 120px 32px 108px;
  box-sizing: border-box;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% 20%, rgba(96, 165, 250, 0.35), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #1e3a8a 48%, #1e293b 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.as-hero--image {
  min-height: 480px;
  padding-top: 140px;
  padding-bottom: 120px;
  background-color: #dbeafe;
}
.as-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.18) 0%, rgba(11, 18, 32, 0.08) 45%, rgba(11, 18, 32, 0.22) 100%);
}
.as-hero--image .as-hero__veil {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(15, 23, 42, 0.08) 100%);
}
.as-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--as-max), 100%);
  margin: 0 auto;
}
.as-hero__tag {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 650;
  opacity: 0.82;
}
.as-hero--image .as-hero__tag {
  color: #475569;
  opacity: 1;
}
.as-hero__title {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fff;
}
.as-hero--image .as-hero__title {
  color: #0f172a;
}
.as-hero__desc {
  margin: 18px 0 0;
  max-width: 720px;
  line-height: 1.85;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.as-hero--image .as-hero__desc {
  color: #475569;
}
.as-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.as-hero__trust li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
}
.as-hero--image .as-hero__trust li {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
}

/* —— 查询面板 —— */
.as-panel {
  width: min(var(--as-max), calc(100% - 48px));
  margin: -72px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.78fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.as-panel__card,
.as-side-card {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 36px 34px;
}
.as-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.as-panel__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--as-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.as-panel__title {
  margin: 0;
  font-size: 26px;
  font-weight: 750;
}
.as-panel__hint {
  margin: 0 0 28px;
  color: var(--as-muted);
  line-height: 1.75;
  font-size: 14px;
}
.as-panel__hint code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
}

.as-form__label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
  color: #334155;
}
.as-form__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.as-form__input {
  flex: 1 1 320px;
  min-height: 54px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.as-form__input:focus {
  outline: none;
  border-color: var(--as-blue-2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.as-form__btn {
  min-width: 140px;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--as-blue-2), var(--as-blue));
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22);
}
.as-form__btn:hover { filter: brightness(1.04); }
.as-form__btn:disabled { opacity: 0.65; cursor: wait; }

.as-result {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
}
.as-result.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.as-result.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.as-result.is-neutral { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

.as-cert-wrap { margin-top: 28px; }

.as-side-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--as-ink);
}
.as-side-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.85;
  font-size: 14px;
}
.as-side-card + .as-side-card { margin-top: 18px; }

.as-ticket-side {
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.as-ticket-actions__tip {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.75;
  font-size: 14px;
}
.as-ticket-actions__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.as-ticket-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  font-size: 14px;
}
.as-ticket-actions__btn--gold {
  background: linear-gradient(135deg, #b8860b, #d4af37 45%, #8b6914);
  color: #fff;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.22);
}

.as-upgrade-side {
  border: 1px solid #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.as-upgrade-side__tip {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.75;
  font-size: 14px;
}
.as-inquiry-form .as-form__label { margin-top: 14px; }
.as-inquiry-form .as-form__label:first-of-type { margin-top: 0; }
.as-form__input--block {
  width: 100%;
  flex: none;
  min-height: 46px;
  margin-bottom: 2px;
  box-sizing: border-box;
}
.as-form__input[readonly] {
  background: #f8fafc;
  color: #64748b;
}
.as-inquiry-form .as-ticket-actions__btn {
  width: 100%;
  margin-top: 18px;
}
.as-upgrade-side__msg {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}
.as-upgrade-side__msg.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.as-upgrade-side__msg.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Certificate */
.genuine-cert { width: 100%; max-width: 760px; margin: 0 auto; }
.genuine-cert__frame {
  padding: 12px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, #8b6914, #c9a227 12%, #f5e6a8 28%, #fff3bf 50%, #f5e6a8 72%, #b8860b 88%, #8b6914);
  box-shadow:
    0 28px 70px rgba(120, 83, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.genuine-cert__inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 520px;
  background: #fffef8;
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.genuine-cert__guilloche {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.genuine-cert__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(184, 134, 11, 0.035);
  transform: rotate(-16deg);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.genuine-cert__content {
  position: relative;
  z-index: 2;
  padding: 42px 36px 36px;
  text-align: center;
}
.genuine-cert__seal {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}
.genuine-cert__seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px double rgba(184, 134, 11, 0.75);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    0 6px 18px rgba(184, 134, 11, 0.25);
}
.genuine-cert__seal-core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff7d6, #d4af37 55%, #9a7b0a);
  color: #5c4a0f;
  font-size: 26px;
  font-weight: 700;
}
.genuine-cert__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #92700c;
  font-weight: 600;
}
.genuine-cert__title {
  margin: 10px 0 6px;
  font-size: clamp(24px, 3vw, 30px);
  color: #1f2937;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.genuine-cert__subtitle {
  margin: 0 0 22px;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.genuine-cert__divider {
  height: 2px;
  margin: 0 auto 22px;
  max-width: 520px;
  background: linear-gradient(90deg, transparent, #d4af37 20%, #f5e6a8 50%, #d4af37 80%, transparent);
}
.genuine-cert__meta {
  margin: 0 auto 20px;
  max-width: 560px;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  padding: 8px 18px;
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 2;
}
.genuine-cert__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.32);
}
.genuine-cert__row:last-child { border-bottom: 0; }
.genuine-cert__row dt { margin: 0; color: #6b7280; font-size: 13px; font-weight: 500; }
.genuine-cert__row dd { margin: 0; color: #111827; font-size: 15px; font-weight: 600; word-break: break-all; }
.genuine-cert__mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.genuine-cert__statement {
  margin: 0 auto 22px;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.85;
  color: #4b5563;
}
.genuine-cert__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #065f46, #059669);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.22);
}
.genuine-cert__badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
}

@media print {
  body * { visibility: hidden; }
  .genuine-cert, .genuine-cert * { visibility: visible; }
  .genuine-cert {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .as-panel {
    grid-template-columns: 1fr;
    margin-top: -48px;
  }
  .as-body { padding-bottom: 72px; }
  .as-hero {
    min-height: 360px;
    padding: 96px 20px 88px;
  }
  .as-hero--image {
    min-height: 400px;
  }
  .genuine-cert__content { padding: 32px 22px 28px; }
}

/* 手机端精修：仅 ≤768，不影响 PC */
@media (max-width: 768px) {
  .as-page {
    min-height: calc(100vh - 64px);
  }
  .as-hero {
    min-height: 240px;
    padding: 72px 14px 56px;
  }
  .as-hero--image {
    min-height: 260px;
  }
  .as-hero__tag {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .as-hero__title {
    font-size: clamp(20px, 6vw, 26px);
  }
  .as-hero__desc {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
  }
  .as-hero__trust {
    gap: 6px;
    margin-top: 12px;
  }
  .as-hero__trust li {
    padding: 5px 8px;
    font-size: 10px;
  }
  .as-body {
    padding-bottom: 32px;
  }
  .as-panel {
    width: calc(100% - 20px);
    margin-top: -28px;
    gap: 12px;
  }
  .as-panel__card,
  .as-side-card {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .as-panel__title {
    font-size: 17px;
  }
  .as-panel__hint {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .as-form__row {
    flex-direction: column;
  }
  .as-form__input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 40px;
    height: 40px;
    font-size: 16px;
  }
  .as-form__btn {
    width: 100%;
    min-height: 36px;
    height: 36px;
    font-size: 13px;
  }
  .as-side-card h3 {
    font-size: 14px;
  }
  .as-side-card ul {
    font-size: 11px;
    padding-left: 14px;
  }
  .as-ticket-actions__btn {
    min-height: 36px;
    height: 36px;
    font-size: 13px;
  }
  .genuine-cert__content {
    padding: 20px 12px 18px;
  }
  .genuine-cert__title {
    letter-spacing: 0.05em;
    font-size: 15px;
  }
  .genuine-cert__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .as-panel {
    width: calc(100% - 16px);
    margin-top: 0;
    padding-top: 12px;
  }
  .as-body { padding-bottom: 32px; }
  .as-hero {
    min-height: 220px;
    padding: 64px 12px 48px;
  }
  .as-panel__card,
  .as-side-card { padding: 14px 12px; }
}

