:root {
  --blue: #2f86ff;
  --blue2: #1677ff;
  --ink: #2a2f36;
  --muted: #8a93a3;
  --page: #f3f5f8;
  --line: #eef1f5;
  --ok: #16a34a;
  --wait: #f59e0b;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
button, input { font-family: inherit; }

.hero {
  position: relative;
  height: 164px;
  overflow: hidden;
  background: #e8f2ff;
}
.hero-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 164px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 28px;
}
.hero-slide.is-report { background: linear-gradient(135deg, #eaf3ff 0%, #d4e6ff 100%); }
.hero-slide.is-risk { background: linear-gradient(135deg, #fff1ef 0%, #ffe1da 100%); }
.hero-slide.is-fix { background: linear-gradient(135deg, #e9f8ef 0%, #d3f0e0 100%); }
.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}
.hero-copy em {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-slide.is-report .hero-copy em { background: #dbebff; color: #1d6fe8; }
.hero-slide.is-risk .hero-copy em { background: #ffe3de; color: #d11f2c; }
.hero-slide.is-fix .hero-copy em { background: #d7f4e4; color: #0f9a68; }
.hero-copy strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  color: #1f2937;
}
.hero-copy p {
  margin: 0;
  color: #5a6578;
  font-size: 12px;
  line-height: 1.65;
}
.hero-copy p b {
  color: #e11d2c;
  font-weight: 700;
}
.hero-slide.is-fix .hero-copy p b {
  color: #0f9a68;
}
.hero-ico {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  flex: none;
}
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(42, 47, 54, .18);
}
.hero-dots button.is-on {
  width: 16px;
  background: #2a2f36;
}
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}

.shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px;
  position: relative;
  z-index: 2;
}
.shortcut {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 6px 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(47, 84, 150, .08);
  color: inherit;
  cursor: default;
}
.shortcut img {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto 8px;
}
.shortcut span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.shortcut small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
}
.notice, .news {
  margin: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}
.notice h3 {
  margin: 0 0 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice h3 img {
  width: 22px;
  height: 22px;
}
.notice p { margin: 0; color: #667085; font-size: 12px; line-height: 1.75; }
.notice p + p { margin-top: 8px; }
.notice em,
.faq-body em {
  color: #e11d2c;
  font-style: normal;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
.notice .official { color: #8a93a3; font-size: 11px; word-break: break-all; }

.news-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}
.news-head span {
  width: 4px;
  height: 16px;
  background: var(--blue);
  border-radius: 4px;
  margin-right: 8px;
  display: inline-block;
}

.comparison {
  margin: 12px 12px 16px;
  overflow: hidden;
  border-radius: 16px;
  line-height: 0;
  background: #fff;
}
.comparison img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.faq-item {
  width: 100%;
  display: block;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 14px;
  color: inherit;
}
.faq-item:last-child { border-bottom: 0; }
.faq-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding-right: 18px;
  position: relative;
}
.faq-main::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 1px;
  color: #c5cad3;
  font-size: 18px;
  line-height: 1.2;
  transform-origin: center;
}
.faq-item.is-open .faq-main::after {
  transform: rotate(90deg);
}
.tag-imp {
  flex: none;
  margin-top: 2px;
  font-size: 10px;
  font-style: normal;
  color: #fff;
  background: #ff4d4f;
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1.4;
}
.tag-new { background: #16a34a; }
.tag-tip { background: var(--blue); }
.faq-item b {
  flex: 1;
  font-weight: 500;
  line-height: 1.45;
}
.faq-body {
  display: none;
  margin: 8px 0 2px;
}
.faq-item.is-open .faq-body { display: block; }
.faq-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.faq-body p:last-child { margin-bottom: 0; }

.home-scroll {
  padding-bottom: 0;
}

.search-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 10px 12px 8px;
  background: var(--page);
  z-index: 20;
}
.search-dock::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  background: linear-gradient(to bottom, transparent, var(--page));
  pointer-events: none;
}
.search-dock .sheet {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 -8px 28px rgba(47, 84, 150, .14);
}

.sheet {
  margin: -58px 12px 12px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(47, 84, 150, .08);
}

.auth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.auth-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.auth-head strong img {
  width: 24px;
  height: 24px;
}
.auth-head span { font-size: 12px; color: var(--muted); }
.auth-head em { color: var(--blue); font-style: normal; font-weight: 700; }

.search-row {
  display: flex;
  gap: 8px;
}
.search-field {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: #f5f6f8;
  padding: 0 12px 0 36px;
  font-size: 16px;
  line-height: 22px;
  color: var(--ink);
  background-image: url("../img/ico-search.svg");
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 16px;
}
.search-field:focus {
  border-color: var(--blue);
  background-color: #fff;
}
.search-trigger {
  display: flex;
  align-items: center;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  color: #9aa3b2;
  cursor: pointer;
}
.search-trigger.has-value {
  color: var(--ink);
}
.search-go {
  flex: none;
  width: 76px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
}
.ghost-link {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: var(--blue);
  font-size: 12px;
  background: none;
  border: 0;
  padding: 0;
}
.status { margin: 8px 0 0; color: var(--blue); font-size: 12px; }
.results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 32vh;
  overflow: auto;
}
.result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  background: #f7f9fc;
  text-align: left;
}
.result img {
  width: 40px;
  height: 40px;
  flex: none;
}
.result strong { display: block; font-size: 15px; }
.result p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.result span { margin-left: auto; color: var(--blue); font-size: 13px; white-space: nowrap; }

.firm, .order, .pick {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin: 12px;
}
.firm-top, .order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.firm-top span, .type-pill {
  font-size: 12px;
  color: var(--blue);
  background: #eef5ff;
  border-radius: 999px;
  padding: 3px 8px;
}
.firm-top em, .wait, .ok {
  font-style: normal;
  font-size: 12px;
  border: 1px solid #f6d38a;
  color: #d97706;
  border-radius: 6px;
  padding: 2px 8px;
}
.ok { border-color: #86efac; color: var(--ok); }
.firm h2, .order h2 { margin: 10px 0 8px; font-size: 18px; }
.firm p, .order p { margin: 6px 0 0; color: #667085; font-size: 13px; }

.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-top: 0;
}
.pick + .pick { margin-top: 10px; }
.pick img {
  width: 44px;
  height: 44px;
  flex: none;
}
.pick strong { display: block; font-size: 16px; }
.pick p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.pick::after { content: "›"; margin-left: auto; color: #c5cad3; font-size: 22px; }

.ribbon {
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 22px auto 12px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 8px 0 0 #93c5fd, -8px 0 0 #93c5fd;
}
.risks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 0 12px;
  background: #fff;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  overflow: hidden;
}
.risks article { padding: 0 0 12px; }
.risks b {
  display: block;
  background: #2f86ff;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 8px 4px;
  margin-bottom: 8px;
}
.risks p { margin: 0 8px; color: #4b5563; font-size: 11px; line-height: 1.55; }

.compare {
  margin: 8px 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  min-height: 210px;
}
.compare .good {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  padding: 18px 14px;
}
.compare .bad {
  background: #eef2f7;
  color: #64748b;
  padding: 18px 14px;
}
.compare h3 { margin: 0 0 12px; text-align: center; font-size: 16px; }
.compare p { margin: 0 0 10px; font-size: 12px; line-height: 1.55; }

.process {
  margin: 16px 12px 20px;
  padding: 18px 12px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  text-align: center;
}
.process h3 { margin: 0 0 10px; font-size: 16px; }
.process img {
  display: block;
  width: 70%;
  max-width: 220px;
  margin: 0 auto 12px;
}
.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}
.steps div { font-size: 12px; }
.steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.steps i {
  flex: 1;
  height: 0;
  border-top: 2px dotted rgba(255,255,255,.7);
  margin: 0 6px 18px;
}

.bottom-cta {
  position: sticky;
  bottom: calc(64px + env(safe-area-inset-bottom));
  margin: 12px;
  z-index: 15;
}
.primary {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 23px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  color: #fff;
  font-size: 16px;
}

.order .price { color: #ef4444; font-size: 18px; font-weight: 700; margin-top: 12px; }
.done {
  text-align: center;
  padding: 36px 16px 12px;
}
.done img {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-top: 1px solid #eef1f5;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
}
.tabbar a {
  text-align: center;
  color: #9aa3b2;
  text-decoration: none;
  font-size: 11px;
  min-height: 44px;
  padding-top: 4px;
}
.tabbar a.is-on { color: var(--blue); }
.tabbar a img {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 3px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 180px;
  transform: translateX(-50%);
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}
.toast.show { opacity: 1; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; line-height: 1.7; }
.page-pad { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 12px 0;
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(47,84,150,.08);
}
.chip img { width: 22px; height: 22px; }

.search-page { padding-bottom: 72px; }
.search-page .sheet { margin: 12px; }
.search-page .results { max-height: none; }
.sub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
}
.sub-head a { color: var(--blue); text-decoration: none; font-size: 14px; }
.sub-head strong { font-size: 16px; }
.result-card {
  width: 100%;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(36, 73, 119, .06);
  text-align: left;
}
.result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.result-card-head strong {
  min-width: 0;
  color: #213351;
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.result-pick {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
}
.result-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}
.result-card dt { color: #9aa3b2; font-size: 12px; }
.result-card dd {
  margin: 4px 0 0;
  color: #213351;
  font-size: 14px;
  font-weight: 700;
}
.result-card p {
  margin: 0;
  color: #4b5568;
  font-size: 13px;
}

.search-mask {
  position: fixed;
  top: var(--vv-top, 0px);
  left: var(--vv-left, 0px);
  width: var(--vv-width, 100%);
  height: var(--vv-height, 100dvh);
  right: auto;
  bottom: auto;
  z-index: 40;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #fff;
}
.search-mask[hidden] { display: none; }
.search-sheet {
  width: min(430px, 100%);
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  background: #fff;
}
body.is-keyboard .search-sheet {
  max-height: 100%;
  border-radius: 0;
  padding-bottom: 8px;
}
.search-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: -10px -16px 10px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--line);
}
.search-sheet-head strong { font-size: 17px; color: #213351; }
.search-sheet-head button {
  min-width: 44px;
  min-height: 44px;
  margin: -10px -8px -10px 0;
  padding: 10px 8px;
  border: 0;
  background: none;
  color: #8a93a3;
  font-size: 15px;
}
.search-sheet .results {
  flex: 1;
  max-height: none;
  min-height: 80px;
  overflow: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.result-card {
  display: block;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.result-card.is-on {
  box-shadow: inset 0 0 0 1px var(--blue);
}
.result-card-head span {
  flex: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
.search-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.search-confirm p {
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-confirm b { color: var(--ink); }
.search-confirm button {
  flex: none;
  height: 44px;
  min-width: 72px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.search-confirm button:disabled { opacity: .4; }

@media (max-height: 680px) {
  .hero,
  .hero-slide {
    height: 148px;
  }
  .hero-slide {
    padding: 14px 18px 24px;
  }
  .hero-ico {
    width: 64px;
    height: 64px;
  }
  .hero-copy strong {
    margin: 6px 0 4px;
    font-size: 17px;
  }
}

@media (min-width: 431px) {
  .tabbar,
  .search-dock {
    border-right: 1px solid rgba(172, 187, 210, .45);
    border-left: 1px solid rgba(172, 187, 210, .45);
  }
}
