:root {
  --brand: #ff880f;
  --brand-strong: #f47300;
  --brand-deep: #b85200;
  --brand-soft: #fff3e7;
  --brand-pale: #fffaf5;
  --ink: #27282d;
  --ink-soft: #4e5058;
  --muted: #7b7e87;
  --line: #e9e9ec;
  --line-strong: #dedee3;
  --soft: #f7f7f8;
  --white: #fff;
  --success: #1f9d68;
  --danger: #d94747;
  --shadow: 0 24px 80px rgba(33, 35, 43, .09);
  --shadow-soft: 0 14px 44px rgba(33, 35, 43, .065);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

.ads-info-card {
  width: min(760px, 100%);
}

.ads-report-preview {
  margin: 26px 0 18px;
  padding: 18px;
  border: 1px solid #ece2d9;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 115, 0, .08), rgba(255, 255, 255, .82) 34%),
    #fff;
}

.ads-preview-head {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.ads-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ads-preview-grid article {
  min-height: 118px;
  padding: 16px;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(34, 35, 43, .05);
}

.ads-preview-grid span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #b65300;
  background: #fff4e8;
  font-size: 12px;
  font-weight: 900;
}

.ads-preview-grid strong {
  display: block;
  margin: 11px 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.ads-preview-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ads-info-note {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #ffd7ad;
  border-radius: 14px;
  color: #8a4b08;
  background: #fff9f0;
  font-size: 13px;
  line-height: 1.7;
}

.ads-info-card .modal-actions,
.account-card .modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-card {
  width: min(520px, 100%);
}

.account-row {
  margin: 22px 0 20px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: #fafafa;
}

.account-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.account-row strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.invite-panel {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid #ffe0c2;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0, rgba(255, 136, 15, .15), transparent 34%),
    #fffaf5;
}

.invite-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.invite-panel-head span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.invite-panel-head strong {
  min-width: 58px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #a65108;
  background: #fff0df;
  font-size: 14px;
  text-align: center;
}

.invite-panel p {
  margin: 12px 0 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.invite-link-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.invite-link-box input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #ead8c8;
  border-radius: 12px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 12px;
}

.invite-link-box button {
  height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-strong);
  font-weight: 850;
  cursor: pointer;
}

.invite-panel small {
  display: block;
  margin-top: 11px;
  color: #9b7a60;
  font-size: 12px;
  line-height: 1.55;
}

.danger-button {
  background: linear-gradient(135deg, #222431, #11131d);
  box-shadow: 0 16px 34px rgba(17, 19, 29, .18);
}

.danger-button:hover {
  box-shadow: 0 20px 42px rgba(17, 19, 29, .22);
}

@media (max-width: 680px) {
  .ads-preview-grid,
  .ads-info-card .modal-actions,
  .account-card .modal-actions {
    grid-template-columns: 1fr;
  }

  .ads-report-preview {
    padding: 14px;
  }

  .invite-link-box {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(233, 233, 236, .82);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  width: 112px;
  height: 78px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.brand img {
  width: 112px;
  height: auto;
  object-fit: contain;
}
.top-actions { display: flex; align-items: center; gap: 22px; }
.flow-link { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.flow-link:hover { color: var(--ink); }
.invite-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.login-button {
  min-width: 76px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-weight: 750;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.login-button:hover { border-color: #d2d3d8; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34, 35, 40, .06); }

.hero {
  position: relative;
  min-height: 690px;
  padding: 92px 20px 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 151, 46, .17), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fffdf9 70%, #fff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(44, 46, 53, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 46, 53, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 68%);
  pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-glow-one { width: 380px; height: 380px; left: -245px; top: 70px; background: rgba(255, 140, 24, .075); }
.hero-glow-two { width: 430px; height: 430px; right: -280px; bottom: -110px; background: rgba(255, 196, 132, .11); }
.hero-inner { position: relative; z-index: 1; width: min(900px, 100%); text-align: center; }
.hero-badge {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffd9b5;
  border-radius: 999px;
  color: #9e4e0e;
  background: rgba(255, 249, 242, .92);
  box-shadow: 0 8px 30px rgba(255, 126, 14, .07);
  font-size: 13px;
  font-weight: 750;
}
.hero-badge strong { color: var(--brand-strong); font-size: 20px; line-height: 1; }
.hero-badge i { width: 1px; height: 14px; background: #f1c9a4; }
.hero-badge em { color: #7b6a5d; font-style: normal; font-weight: 650; }
.hero h1 {
  margin: 28px 0 19px;
  color: #26272c;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: -.048em;
  font-weight: 850;
}
.hero-copy {
  width: min(710px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}
.asin-form {
  width: min(800px, 100%);
  margin: 40px auto 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid rgba(224, 224, 228, .98);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 25px 72px rgba(55, 44, 33, .10), 0 2px 7px rgba(55, 44, 33, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.asin-form:focus-within {
  border-color: rgba(255, 136, 15, .7);
  box-shadow: 0 25px 72px rgba(55, 44, 33, .10), 0 0 0 4px rgba(255, 136, 15, .10);
}
.asin-field { min-width: 0; display: flex; align-items: center; }
.field-icon { width: 54px; display: grid; place-items: center; color: #9b9da4; }
.field-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.asin-field input {
  width: 100%;
  height: 56px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.asin-field input::placeholder { color: #a6a8af; text-transform: none; letter-spacing: 0; }
.primary-button, .secondary-button {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #ff9a32);
  box-shadow: 0 11px 26px rgba(244, 115, 0, .24);
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(244, 115, 0, .30); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: not-allowed; opacity: .56; transform: none; box-shadow: none; }
.secondary-button { color: var(--ink); background: #f2f2f4; }
.secondary-button:hover { background: #e8e8eb; }
.full-button { width: 100%; }
.hero-ads-button {
  width: min(100%, 340px);
  min-height: 62px;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
}
.form-error { min-height: 21px; margin: 9px 0 0; color: var(--danger); font-size: 13px; }
.hero-assurance {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #686b73;
  font-size: 13px;
}
.hero-assurance span { display: inline-flex; align-items: center; gap: 6px; }
.hero-assurance i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #a65512; background: var(--brand-soft); font-style: normal; font-size: 10px; font-weight: 900; }
.safe-note {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #92949c;
  font-size: 12px;
}
.safe-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 58px;
  scroll-margin-top: 90px;
}
.section-heading { text-align: center; }
.section-heading > span, .result-kicker, .modal-kicker, .price-kicker {
  color: #ad5713;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}
.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.038em;
}
.compact-heading p {
  width: min(650px, 100%);
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.service-shell {
  margin-top: 50px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1.28fr .72fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fafafa;
  box-shadow: var(--shadow-soft);
}
.service-copy {
  padding: 30px;
  display: grid;
  gap: 8px;
  border-radius: 22px;
  background: #fff;
}
.service-item {
  padding: 20px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}
.service-item + .service-item { border-top: 1px solid var(--line); }
.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a95513;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}
.service-item h3 { margin: 1px 0 8px; font-size: 19px; }
.service-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.included-note {
  margin-top: 5px;
  padding: 14px 16px;
  border: 1px solid #ffe0c2;
  border-radius: 13px;
  color: #915018;
  background: #fff9f3;
  font-size: 13px;
  line-height: 1.6;
}
.included-note span::before { content: "✓"; margin-right: 8px; font-weight: 900; }
.price-card {
  padding: 31px 28px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(150deg, #2c2d33 0%, #1f2025 100%);
  box-shadow: 0 20px 55px rgba(25, 26, 31, .14);
}
.price-card .price-kicker { color: #ffc58f; }
.price-row {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.price-row > div:not(.price-divider) { display: grid; gap: 8px; }
.price-row small { color: #b9bbc2; font-size: 12px; }
.price-row strong { color: #fff; font-size: 46px; line-height: .95; letter-spacing: -.04em; }
.price-row strong.service-label {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}
.price-row sup { margin-right: 2px; color: #ffc18a; font-size: 18px; vertical-align: 14px; }
.price-row em { margin-left: 4px; color: #c8cad0; font-size: 13px; font-style: normal; letter-spacing: 0; }
.price-divider { width: 1px; height: 62px; background: rgba(255, 255, 255, .14); }
.price-card ul { margin: 29px 0 0; padding: 21px 0 0; display: grid; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); list-style: none; }
.price-card li { position: relative; padding-left: 18px; color: #d4d5d9; font-size: 13px; line-height: 1.55; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.sample-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 58px;
  scroll-margin-top: 92px;
}
.sample-report-shell {
  margin-top: 44px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
  box-shadow: var(--shadow-soft);
}
.sample-report-main,
.sample-image-diagnosis {
  border: 1px solid #f0f0f2;
  border-radius: 24px;
  background: #fff;
}
.sample-report-main {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: 22px;
}
.sample-report-preview {
  width: 100%;
  display: block;
  grid-row: 1 / span 2;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(34, 35, 43, .1);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sample-report-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 0, .38);
  box-shadow: 0 22px 48px rgba(255, 111, 0, .14), 0 18px 40px rgba(34, 35, 43, .1);
}
.sample-report-top {
  display: grid;
  gap: 9px;
}
.sample-report-top span {
  color: #a85a17;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}
.sample-report-top strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
}
.sample-report-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.sample-report-card {
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffaf5;
}
.sample-report-card b {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a85614;
  background: #fff0df;
  font-size: 12px;
}
.sample-report-card strong {
  color: var(--ink);
  font-size: 16px;
}
.sample-report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.sample-image-diagnosis {
  padding: 24px;
}
.sample-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sample-image-head span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}
.sample-image-head em {
  padding: 7px 10px;
  border-radius: 999px;
  color: #8a4b08;
  background: #fff0df;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.sample-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sample-image-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34, 35, 43, .06);
}
.masked-product-card {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 13px;
  background: #f7f8fa;
  cursor: zoom-in;
}
.masked-product-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  transition: transform .22s ease;
}
.masked-product-card:hover img {
  transform: scale(1.025);
}
.masked-product-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #62656d;
  background: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 800;
}
.masked-product-card::after {
  content: "点击放大";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 111, 0, .92);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.masked-product-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.sample-image-grid strong {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 17px;
}
.sample-image-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}
.flow-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 116px;
}
.flow-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-item { padding: 31px 24px; }
.flow-item + .flow-item { border-left: 1px solid var(--line); }
.flow-number {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ad5713;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}
.flow-item h3 { margin: 0 0 9px; font-size: 18px; }
.flow-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.result-section { padding: 30px 20px 116px; scroll-margin-top: 96px; }
.result-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}
.result-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.result-topline h2 { margin: 10px 0 0; font-size: 32px; letter-spacing: -.025em; }
.result-topline h2 strong { color: var(--brand-strong); }
.result-tags { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.demo-mark, .paid-mark { padding: 7px 10px; border-radius: 8px; font-size: 12px; }
.demo-mark { color: #8c8f98; background: #f4f4f6; }
.paid-mark { color: #8f4b12; background: var(--brand-soft); font-weight: 750; }
.result-summary { margin-top: 30px; display: grid; grid-template-columns: .9fr 1.35fr; gap: 22px; }
.score-card, .metric-card, .priority-panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.score-card {
  min-height: 100%;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(145deg, #fff9f2, #fff 62%);
}
.score-ring {
  --score: 78;
  flex: 0 0 auto;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--score) * 1%), #f1f1f3 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.score-ring > div { position: relative; z-index: 1; display: grid; text-align: center; }
.score-ring strong { font-size: 42px; line-height: 1; }
.score-ring span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.score-copy { min-width: 0; }
.status-pill { min-height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; color: #a45512; background: var(--brand-soft); font-size: 12px; font-weight: 800; }
.score-copy p { margin: 14px 0 0; color: var(--ink-soft); line-height: 1.8; font-size: 14px; }
.metric-list { display: grid; gap: 12px; }
.metric-card { padding: 19px 20px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.metric-head span { font-size: 14px; font-weight: 750; }
.metric-head strong { font-size: 22px; }
.metric-bar { height: 6px; margin: 13px 0 10px; overflow: hidden; border-radius: 99px; background: #f0f0f2; }
.metric-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb15c, var(--brand-strong)); transition: width .6s ease; }
.metric-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.priority-panel { margin-top: 22px; padding: 26px 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; background: #fafafa; }
.priority-panel span { color: #a85a17; font-size: 12px; font-weight: 800; }
.priority-panel h3 { margin: 10px 0 0; font-size: 22px; line-height: 1.45; }
.priority-panel ol { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.priority-panel li { padding-left: 5px; line-height: 1.85; font-size: 14px; }
.result-actions { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.result-actions p { margin: 0; max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.result-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.result-actions .primary-button,
.result-actions .secondary-button {
  min-width: 190px;
}
.download-report-button {
  border-color: #ffd5ab;
  color: #b85200;
  background: #fff8f1;
}
.download-report-button:disabled,
.download-report-button.is-waiting {
  border-color: #e7e8ec;
  color: #8c9099;
  background: #f5f5f6;
  box-shadow: none;
  cursor: wait;
}

.trust-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 92px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip div { display: grid; gap: 7px; text-align: center; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip strong { font-size: 14px; }
.trust-strip span { color: var(--muted); font-size: 13px; }

.footer {
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #8a8d95;
  background: #fafafa;
  font-size: 12px;
}
.footer > div { display: flex; gap: 16px; }
.footer p { margin: 0; text-align: right; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28, 29, 34, .50); backdrop-filter: blur(10px); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(17, 18, 22, .22);
  animation: modalIn .24s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #777a82;
  background: #f4f4f5;
  font-size: 22px;
  line-height: 1;
}
.modal-close:hover { background: #ececef; }
.modal-card h2 { margin: 11px 0 12px; font-size: 34px; line-height: 1.24; letter-spacing: -.025em; }
.modal-card h2 > strong { color: var(--brand-strong); }
.modal-copy { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.78; }
.report-preview-modal {
  padding: 22px;
}
.report-preview-card {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(14, 18, 30, .28);
  animation: modalIn .24s ease both;
}
.report-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 48px 14px 4px;
}
.report-preview-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}
.report-preview-card img {
  width: 100%;
  max-height: calc(100vh - 142px);
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.download-guide-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 14px 0 4px;
  padding: 0 14px;
  border-radius: 12px;
  color: #ad5713;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 850;
}
.auth-step { display: none; text-align: center; }
.auth-step.active { display: block; }
.mini-journey {
  margin: 0 44px 26px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.mini-journey span { color: #adb0b7; font-size: 11px; font-weight: 700; }
.mini-journey span.active { color: var(--brand-deep); }
.mini-journey span.done { color: var(--success); }
.mini-journey i { height: 1px; background: #e3e3e6; }
.qr-wrap {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 25px auto 14px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.scan-line {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 22px;
  height: 2px;
  background: rgba(255, 124, 16, .75);
  box-shadow: 0 0 12px rgba(255, 124, 16, .5);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: .28; } 50% { transform: translateY(145px); opacity: 1; } }
.prototype-tip { margin: 0 0 18px; color: #a0a2aa; font-size: 14px; }
.stack-form { margin-top: 24px; display: grid; gap: 16px; text-align: left; }
.stack-form label > span { display: block; margin-bottom: 8px; color: #555861; font-size: 13px; font-weight: 750; }
.stack-form input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #dedee2;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
}
.stack-form input:focus { border-color: rgba(255, 124, 16, .8); box-shadow: 0 0 0 3px rgba(255, 136, 15, .10); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-row button { min-width: 112px; padding: 0 14px; border-radius: 12px; color: #a95a18; background: var(--brand-soft); font-size: 13px; font-weight: 800; }
.code-row button:disabled { color: #aaa; background: #f2f2f3; cursor: not-allowed; }
.agree-row { margin: 17px 0 0; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: left; }
.agree-row input { margin-top: 2px; accent-color: var(--brand-strong); }
.modal-error { text-align: left; margin-bottom: 6px; }

.payment-card { width: min(900px, 100%); }
.payment-card .mini-journey { margin-right: 42px; }
.order-summary {
  margin: 23px 0 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
}
.order-summary > div { display: grid; gap: 7px; }
.order-summary > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.order-summary span { color: var(--muted); font-size: 13px; }
.order-summary strong { overflow: hidden; color: var(--ink); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.order-summary .order-price { display: flex; align-items: center; gap: 9px; color: var(--brand-strong); font-size: 26px; }
.order-summary del { color: #a4a6ad; font-size: 12px; font-weight: 500; }
.payment-body {
  margin-top: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 22px;
  border: 1px solid #ffe0c3;
  border-radius: 18px;
  background: #fffaf5;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.payment-method-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.payment-method-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}
.wechat-method span { background: #16b763; }
.alipay-method span { background: #1677ff; }
.payment-method-card img {
  width: 100%;
  height: 226px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.payment-copy { display: grid; gap: 11px; }
.payment-copy strong { margin-bottom: 3px; font-size: 19px; }
.payment-copy span { position: relative; padding-left: 20px; color: #6f6257; font-size: 15px; line-height: 1.58; }
.payment-copy span::before { content: "✓"; position: absolute; left: 0; color: #a85614; font-weight: 900; }
.payment-tip { margin: 16px 0 12px; text-align: center; }
.text-button { width: 100%; margin-top: 13px; padding: 7px; color: var(--muted); background: transparent; font-size: 12px; }
.text-button:hover { color: var(--ink); }

.loading-card { text-align: center; }
.loading-orbit { position: relative; width: 74px; height: 74px; margin: 0 auto 22px; border: 1px solid #ffe0c3; border-radius: 50%; }
.loading-orbit::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--brand-soft); }
.loading-orbit span { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--brand-strong); animation: spin 1.1s linear infinite; }
.loading-orbit i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 7px rgba(255, 136, 15, .13); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card h2 strong { color: var(--brand-strong); }
.progress-track { height: 7px; margin: 28px 0 18px; overflow: hidden; border-radius: 99px; background: #f0f0f2; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-strong)); transition: width .35s ease; }
.analysis-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.analysis-steps span { color: #aaa; font-size: 11px; }
.analysis-steps span.active { color: #a95a18; font-weight: 800; }
.decision-card { width: min(540px, 100%); }
.paid-included { margin: 20px 0 4px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; border-radius: 12px; color: #8f4d17; background: var(--brand-soft); font-size: 13px; }
.paid-included i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-style: normal; font-size: 11px; font-weight: 900; }
.decision-points { margin: 20px 0 26px; display: grid; gap: 12px; }
.decision-points span { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.decision-points i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #a95a18; background: var(--brand-soft); font-style: normal; font-size: 12px; font-weight: 900; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 10px; }
.upload-card { width: min(520px, 100%); }
.drop-zone {
  margin-top: 24px;
  min-height: 190px;
  padding: 26px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1.5px dashed #d8d9dd;
  border-radius: 18px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand); background: #fff8f1; }
.drop-zone input { display: none; }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-strong); background: var(--brand-soft); }
.upload-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { margin-top: 6px; font-size: 15px; }
.drop-zone > span:last-child { color: var(--muted); font-size: 12px; }
.file-card { margin: 14px 0 0; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; }
.file-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #a95a18; background: var(--brand-soft); font-weight: 900; }
.file-card div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.file-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-card span { color: var(--muted); font-size: 11px; }
.file-card button { color: var(--muted); background: transparent; font-size: 12px; }
.success-card { text-align: center; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #2db47c, #198d60); box-shadow: 0 14px 34px rgba(31, 157, 104, .22); font-size: 30px; font-weight: 900; }
.success-meta { margin: 22px 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: #f7f7f8; font-size: 13px; }
.success-meta span { color: var(--muted); }
.success-meta strong { color: var(--brand-strong); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: rgba(38, 39, 44, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .service-shell { grid-template-columns: 1fr; }
  .price-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: center; }
  .price-row { margin-top: 14px; }
  .price-card ul { margin: 0; padding: 0 0 0 26px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .12); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .flow-item:nth-child(4) { border-top: 1px solid var(--line); }
  .result-summary { grid-template-columns: 1fr; }
  .priority-panel { grid-template-columns: 1fr; gap: 22px; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-action-buttons { width: 100%; flex-direction: column; align-items: stretch; }
  .result-actions .primary-button,
  .result-actions .secondary-button { width: 100%; }
  .sample-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar-inner { width: min(100% - 24px, 1180px); height: 74px; }
  .brand { width: 92px; height: 66px; }
  .brand img { width: 92px; }
  .flow-link { display: none; }
  .top-actions { gap: 10px; }
  .login-button { min-width: 64px; height: 36px; padding: 0 14px; }
  .hero { min-height: 660px; padding: 68px 14px 66px; }
  .hero h1 { margin-top: 23px; font-size: 42px; }
  .hero-copy { font-size: 15px; line-height: 1.75; }
  .hero-badge { gap: 7px; padding: 0 12px; font-size: 12px; }
  .hero-badge strong { font-size: 18px; }
  .asin-form { margin-top: 32px; grid-template-columns: 1fr; padding: 7px; border-radius: 18px; }
  .asin-field { border-bottom: 1px solid #efeff1; }
  .field-icon { width: 46px; }
  .asin-field input { height: 52px; font-size: 15px; }
  .asin-form .primary-button { width: 100%; }
  .hero-assurance { gap: 8px 14px; font-size: 12px; }
  .service-section { width: min(100% - 28px, 1120px); padding: 82px 0 42px; }
  .section-heading h2 { font-size: 34px; }
  .service-shell { margin-top: 36px; padding: 7px; border-radius: 24px; }
  .service-copy { padding: 18px; border-radius: 19px; }
  .service-item { gap: 13px; }
  .service-item h3 { font-size: 17px; }
  .price-card { padding: 25px 20px; grid-template-columns: 1fr; gap: 23px; }
  .price-card ul { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .price-row strong { font-size: 42px; }
  .sample-section { width: min(100% - 28px, 1180px); padding: 58px 0 44px; }
  .sample-report-shell { margin-top: 32px; grid-template-columns: 1fr; }
  .sample-report-main { grid-template-columns: 1fr; }
  .sample-report-preview { grid-row: auto; }
  .sample-report-main, .sample-image-diagnosis { padding: 18px; border-radius: 20px; }
  .sample-report-top strong { font-size: 22px; }
  .sample-image-head { align-items: flex-start; flex-direction: column; }
  .sample-image-grid { grid-template-columns: 1fr; }
  .masked-product-card { height: 190px; }
  .flow-section { width: min(100% - 28px, 1180px); padding: 72px 0 86px; }
  .flow-grid { margin-top: 38px; grid-template-columns: 1fr; }
  .flow-item + .flow-item, .flow-item:nth-child(3), .flow-item:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .flow-item { padding: 25px 16px; }
  .result-section { padding: 18px 14px 84px; }
  .result-shell { padding: 24px 18px; border-radius: 22px; }
  .result-topline { align-items: flex-start; flex-direction: column; }
  .result-tags { justify-content: flex-start; }
  .score-card { align-items: flex-start; flex-direction: column; }
  .score-ring { width: 122px; height: 122px; }
  .priority-panel { padding: 22px 18px; }
  .trust-strip { width: min(100% - 28px, 1180px); margin-bottom: 66px; grid-template-columns: 1fr; }
  .trust-strip div { padding: 17px 0; }
  .trust-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer { align-items: flex-start; flex-direction: column; }
  .footer > div { flex-direction: column; gap: 5px; }
  .footer p { text-align: left; line-height: 1.6; }
  .modal { padding: 12px; align-items: flex-end; }
  .modal-card { width: 100%; max-height: calc(100vh - 24px); padding: 30px 22px 24px; border-radius: 24px 24px 18px 18px; }
  .modal-card h2 { font-size: 25px; }
  .mini-journey { margin-right: 38px; }
  .payment-body { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .payment-methods { width: 100%; grid-template-columns: 1fr; }
  .payment-method-card img { height: 240px; }
  .payment-copy { width: 100%; }
  .order-summary { grid-template-columns: 1fr; gap: 12px; }
  .order-summary > div + div { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .modal-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.report-scope {
  margin-top: 22px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.report-scope-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.report-scope-head strong {
  color: var(--ink);
  font-size: 18px;
}
.report-scope-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.report-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.report-scope-item {
  min-width: 0;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  border-radius: 12px;
  background: #fafafa;
}
.report-scope-item > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a85614;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}
.report-scope-item > div {
  min-width: 0;
}
.report-scope-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
.report-scope-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

@media (max-width: 680px) {
  .report-scope-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .report-scope-grid { grid-template-columns: 1fr; }
}

/* 桌面端仅压缩支付弹窗间距，让新增说明与支付按钮同时完整可见。 */
@media (min-width: 681px) {
  .payment-card {
    width: min(900px, 100%);
    padding: 30px 34px 28px;
  }
  .payment-card .mini-journey { margin-bottom: 18px; }
  .payment-card h2 { margin: 8px 0 6px; }
  .payment-card .order-summary { margin-top: 16px; }
  .payment-card .report-scope {
    margin-top: 12px;
    padding: 12px 14px 13px;
  }
  .payment-card .report-scope-head { margin-bottom: 9px; }
  .payment-card .report-scope-item { padding: 8px 10px; }
  .payment-card .payment-body {
    margin-top: 14px;
    padding: 14px;
    grid-template-columns: 1.25fr .75fr;
  }
  .payment-card .payment-tip { margin: 10px 0 8px; }
  .payment-card .primary-button { min-height: 52px; }
  .payment-card .text-button { margin-top: 8px; }
}

/* 本次调整：ASIN 诊断 ¥2，广告优化 ¥5。 */
.order-summary .order-price-note {
  margin-top: -2px;
  color: #8a7a6e;
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.45;
}

/* 微信扫码登录 / 注册改为标准的全屏页面形态。 */

.verify-phone-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 248, 241, .72);
}
.verify-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 122, 0, .16);
  color: var(--ink);
  font-size: 16px;
}
.verify-line span {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .03em;
}
.verify-phone-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}
.verify-phone-box input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}
.verify-phone-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, .12);
}
.verify-phone-box small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.query-card { width: min(560px, 100%); }
.query-result { display: grid; gap: 12px; margin-top: 16px; }
.query-order-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.query-order-card strong { color: var(--ink); }
.query-order-card span { color: var(--muted); }
#authModal.auth-page {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow-y: auto;
  background: #f6f7f9;
}
#authModal.auth-page.open { display: block; }
#authModal.auth-page .modal-backdrop { display: none; }
.auth-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 151, 55, .10), transparent 25%),
    #f6f7f9;
}
.auth-page-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(229, 230, 234, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}
.auth-page-brand { display: inline-flex; align-items: center; }
.auth-page-brand img { width: 166px; height: 58px; object-fit: contain; }
.auth-page-back {
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid #e1e2e6;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.auth-page-back:hover { border-color: #cfd0d5; color: var(--ink); transform: translateY(-1px); }
.auth-page-main {
  width: 100%;
  flex: 1;
  padding: 58px 20px 72px;
  display: grid;
  place-items: start center;
}
.auth-page-card {
  width: min(520px, 100%);
  padding: 38px 42px 40px;
  border: 1px solid #e8e8eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(33, 35, 43, .10);
}
.auth-page-card .auth-step { text-align: center; }
.auth-page-card h2 {
  margin: 11px 0 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.auth-page-card .modal-copy { max-width: 410px; margin-inline: auto; }
.auth-journey {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 7px;
}
.auth-journey span { color: #aaadb5; font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.auth-journey span.done { color: var(--success); }
.auth-journey span.active { color: var(--brand-deep); }
.auth-journey i { height: 1px; background: #e2e3e7; }
.auth-order-hint {
  margin: 20px 0 0;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #ececef;
  border-radius: 13px;
  background: #fafafa;
  text-align: left;
}
.auth-order-hint span { color: var(--muted); font-size: 11px; }
.auth-order-hint strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-order-hint em {
  color: #a85513;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.auth-page-card .qr-wrap { margin-top: 22px; }
.auth-page-card .prototype-tip { margin-bottom: 15px; }
.auth-page-card .stack-form { margin-top: 25px; }

@media (max-width: 640px) {
  .auth-page-header { min-height: 66px; padding: 0 16px; }
  .auth-page-brand img { width: 134px; height: 48px; }
  .auth-page-back { min-height: 34px; padding: 0 13px; font-size: 12px; }
  .auth-page-main { padding: 26px 12px 40px; place-items: start center; }
  .auth-page-card { padding: 27px 19px 24px; border-radius: 20px; }
  .auth-page-card h2 { font-size: 25px; }
  .auth-journey { margin-bottom: 22px; gap: 5px; }
  .auth-journey span { font-size: 9.5px; }
  .auth-order-hint {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
  }
  .auth-order-hint span { grid-column: 1 / -1; }
  .auth-order-hint em { font-size: 10px; }
  .report-preview-modal { padding: 10px; align-items: center; }
  .report-preview-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 12px;
    border-radius: 18px;
  }
  .report-preview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 2px 44px 10px 2px;
  }
  .report-preview-head h2 { font-size: 18px; }
  .report-preview-card img {
    max-height: calc(100vh - 104px);
    border-radius: 12px;
  }
}

/* Admin dashboard */
.admin-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 136, 15, .10), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, #f6f7f9 38%, #f4f5f7 100%);
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  padding: 0 max(22px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(230, 231, 235, .82);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}
.admin-brand img {
  width: 118px;
  height: 48px;
  object-fit: contain;
}
.admin-brand span {
  padding-left: 12px;
  border-left: 1px solid #e5e6eb;
  font-size: 17px;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.admin-nav a,
.admin-nav .text-nav {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
}
.admin-main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 72px;
}
.admin-login {
  width: min(560px, 100%);
  margin: 80px auto 0;
  padding: 38px;
  border: 1px solid #e7e8ec;
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 90px rgba(24, 28, 36, .11);
}
.admin-login h1 {
  margin: 12px 0 10px;
  font-size: 36px;
  letter-spacing: -.04em;
}
.admin-login p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}
.admin-login form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.admin-login input,
.admin-filters input,
.admin-filters select,
.admin-actions select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e1e3e8;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.admin-login input:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.admin-actions select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 136, 15, .12);
}
.admin-hero {
  margin-bottom: 22px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e7e8ec;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 250, 245, .92)),
    #fff;
  box-shadow: 0 22px 70px rgba(25, 29, 38, .08);
}
.admin-hero h1 {
  margin: 8px 0 8px;
  font-size: 38px;
  letter-spacing: -.04em;
}
.admin-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.admin-stat-card {
  min-height: 132px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  border: 1px solid #e8e9ed;
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 45px rgba(30, 34, 42, .06);
}
.admin-stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-stat-card strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.035em;
}
.admin-stat-card small {
  color: #90939b;
  font-size: 12px;
}
.admin-stat-card.highlight {
  border-color: rgba(255, 136, 15, .24);
  background: linear-gradient(135deg, #fff, #fff3e7);
}
.admin-stat-card.highlight strong,
.admin-stat-card.highlight b {
  color: var(--brand-strong);
}
.admin-control-row {
  margin-bottom: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #e8e9ed;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
}
.admin-daily-panel {
  margin-bottom: 16px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  border: 1px solid #e8e9ed;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
}
.admin-daily-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.admin-daily-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.daily-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.daily-summary-card {
  min-height: 92px;
  padding: 14px 15px;
  display: grid;
  gap: 6px;
  justify-items: start;
  border: 1px solid #ebecef;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 25px rgba(29, 33, 41, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.daily-summary-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 136, 15, .34);
  box-shadow: 0 16px 36px rgba(255, 136, 15, .11);
}
.daily-summary-card span {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}
.daily-summary-card strong {
  font-size: 24px;
  letter-spacing: -.03em;
}
.daily-summary-card small {
  color: var(--muted);
  font-size: 12px;
}
.admin-control-row h2 {
  margin: 0 0 5px;
  font-size: 22px;
}
.admin-control-row p {
  margin: 0;
  color: var(--muted);
}
.admin-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-search-box {
  flex: 1 1 520px;
  display: flex;
  gap: 8px;
}
.admin-filters input {
  min-width: 220px;
  flex: 1 1 220px;
}
.admin-search-box .primary-button,
.admin-search-box .secondary-button {
  min-height: 48px;
  padding-inline: 18px;
  white-space: nowrap;
}
.admin-orders {
  display: grid;
  gap: 16px;
}
.admin-order-group {
  display: grid;
  gap: 12px;
}
.admin-order-group + .admin-order-group {
  margin-top: 10px;
}
.admin-order-group-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e7e8ec;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
}
.admin-order-group-head span {
  display: inline-flex;
  min-height: 24px;
  padding: 0 9px;
  align-items: center;
  border-radius: 999px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 900;
}
.admin-order-group.ads .admin-order-group-head span {
  color: #1e58b8;
  background: #edf4ff;
}
.admin-order-group-head h3 {
  margin: 8px 0 0;
  font-size: 24px;
  letter-spacing: -.03em;
}
.admin-order-group-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.admin-order-group-list {
  display: grid;
  gap: 14px;
}
.admin-order {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #e7e8ec;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 55px rgba(27, 31, 39, .075);
}
.admin-order::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--brand);
}
.admin-order.ads::before {
  background: #2f7cff;
}
.admin-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.admin-order-title {
  min-width: 0;
}
.admin-order-title h3 {
  margin: 10px 0 6px;
  font-size: 23px;
  letter-spacing: -.02em;
}
.admin-order-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-order-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #a95412;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}
.admin-service-badge.ads {
  color: #1e58b8;
  background: #edf4ff;
}
.report-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.report-status-badge.unsent {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffccc7;
}
.report-status-badge.sent {
  color: #04724d;
  background: #ecfdf3;
  border: 1px solid #b7ebc6;
}
.admin-order-price {
  min-width: 118px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff8f1;
  text-align: right;
}
.admin-order-price span {
  display: block;
  color: #986034;
  font-size: 12px;
  font-weight: 800;
}
.admin-order-price strong {
  color: var(--brand-strong);
  font-size: 26px;
  line-height: 1.2;
}
.admin-detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.admin-detail-grid p {
  margin: 0;
  padding: 13px 14px;
  display: grid;
  gap: 6px;
  border: 1px solid #ecedf1;
  border-radius: 15px;
  background: #fafafa;
}
.admin-detail-grid p.wide {
  grid-column: span 4;
}
.admin-detail-grid b {
  color: #7c808a;
  font-size: 12px;
}
.admin-detail-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}
.admin-files {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-files > div {
  padding: 16px;
  border: 1px solid #ecedf1;
  border-radius: 17px;
  background: #fff;
}
.admin-files strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}
.admin-files ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.admin-files li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}
.admin-files li small {
  display: block;
  color: #9a9da6;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.admin-files .muted-item {
  color: #a4a7af;
}
.admin-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(160px, 190px) auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
}
.admin-upload {
  min-height: 48px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #f0b779;
  border-radius: 14px;
  color: #9b5515;
  background: #fff8f1;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.admin-upload input {
  display: none;
}
.admin-upload-card {
  width: min(560px, 100%);
}
.admin-upload-target {
  margin: 18px 0 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #ececf0;
  border-radius: 14px;
  background: #fafafa;
}
.admin-upload-target span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-upload-target strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.admin-modal-file {
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #f0b779;
  border-radius: 16px;
  color: #9b5515;
  background: #fff8f1;
  font-weight: 900;
  cursor: pointer;
}
.admin-modal-file input {
  display: none;
}
.empty-state {
  margin: 0;
  padding: 34px;
  border: 1px dashed #dfe1e6;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

@media (max-width: 980px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-detail-grid p.wide { grid-column: span 2; }
  .admin-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .admin-topbar { min-height: 66px; padding: 0 14px; }
  .admin-brand img { width: 92px; }
  .admin-brand span { display: none; }
  .admin-main { width: min(100% - 24px, 1240px); padding-top: 18px; }
  .admin-login { margin-top: 28px; padding: 26px 20px; border-radius: 22px; }
  .admin-login form { grid-template-columns: 1fr; }
  .admin-hero,
  .admin-daily-panel,
  .admin-control-row,
  .admin-order-group-head,
  .admin-order-head {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-order-group-head p { white-space: normal; }
  .admin-daily-panel { grid-template-columns: 1fr; }
  .admin-hero { padding: 22px; border-radius: 22px; }
  .admin-hero h1 { font-size: 30px; }
  .admin-stats,
  .admin-detail-grid,
  .admin-files,
  .admin-actions {
    grid-template-columns: 1fr;
  }
  .admin-detail-grid p.wide { grid-column: auto; }
  .admin-order-price { text-align: left; }
  .admin-filters { width: 100%; }
  .admin-filters select { flex: 1; min-width: 140px; }
  .admin-search-box { flex-basis: 100%; }
  .admin-search-box input { min-width: 0; }
}
