:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #fff;
  --surface-soft: #f7faff;
  --line: #dbe4ee;
  --line-strong: #c9d7e6;
  --text: #17283e;
  --muted: #687b91;
  --blue: #2563dc;
  --green: #1ca886;
  --orange: #ff9d3f;
  --danger: #d94a58;
  --warning: #c27b11;
  --success: #148467;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 93% 2%, rgba(88, 216, 190, .13), transparent 28rem),
    radial-gradient(circle at 72% 20%, rgba(70, 130, 230, .1), transparent 34rem),
    linear-gradient(180deg, #fbfdff 0, #f3f7fc 48%, #edf3fb 100%);
}
body::before {
  content: "";
  position: fixed;
  width: 250px;
  height: 250px;
  right: 3vw;
  top: -130px;
  pointer-events: none;
  border: 36px solid rgba(54, 111, 205, .035);
  border-radius: 50%;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: inherit; text-decoration: none; display: grid; justify-items: start; }
.brand-label {
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #3185ec, #1760d1);
  box-shadow: 0 7px 18px rgba(34, 104, 211, .18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.brand strong {
  font-size: 24px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ff7f32, #f6a536 42%, #1fa882 78%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.brand strong span { color: var(--orange); font-size: 16px; vertical-align: top; }
.brand small { margin-top: 6px; color: #4e6178; font-size: 12px; }
.safety-pill { display: inline-flex; align-items: center; gap: 8px; color: #3b5067; font-size: 12px; font-weight: 700; }
.safety-pill > span, .eyebrow > span, .panel-footnote > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(28, 168, 134, .09);
}

main { padding-bottom: 0; }
.tab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.tab {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 15px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .66);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.tab:hover { border-color: #aac0d8; transform: translateY(-1px); }
.tab.is-active { border-color: #f2b66d; background: #fffdf9; box-shadow: 0 12px 30px rgba(72, 95, 124, .07); }
.tab-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #315170;
  background: #e8f1fb;
  font-size: 16px;
  font-weight: 800;
}
.tab.is-active .tab-icon { color: white; background: linear-gradient(135deg, #ff8b3d, #ffb044); box-shadow: 0 8px 20px rgba(255, 151, 58, .24); }
.tab strong, .tab small { display: block; }
.tab strong { font-size: 15px; }
.tab small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.service-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(390px, .88fr); gap: 20px; align-items: start; }
.intro-card, .panel, .result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 22px 54px rgba(48, 76, 111, .08);
}
.intro-card {
  min-height: 464px;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 10% 92%, rgba(44, 190, 166, .11), transparent 17rem),
    radial-gradient(circle at 94% 14%, rgba(60, 120, 221, .11), transparent 22rem),
    rgba(255, 255, 255, .72);
}
.intro-card::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -85px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(82, 130, 190, .13);
  border-radius: 50%;
  pointer-events: none;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #287064; font-size: 11px; font-weight: 800; }
.intro-card h1 { margin: 0; font-size: clamp(36px, 4vw, 50px); line-height: 1.06; letter-spacing: -.045em; }
.intro-card h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff4c53, #f58c33 42%, #286be0 82%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-copy { max-width: 590px; margin: 12px 0 0; color: #53677e; font-size: 13px; line-height: 1.6; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.trust-grid article { padding: 12px 9px; text-align: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.76); }
.feature-icon { width: 34px; height: 34px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 10px; font-size: 16px; font-weight: 800; }
.feature-icon-green { color: var(--green); background: #e3f7f2; }
.feature-icon-blue { color: var(--blue); background: #e8f0ff; }
.feature-icon-orange { color: #dd861f; background: #fff1dd; }
.trust-grid h2 { margin: 0; font-size: 14px; }
.trust-grid p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.flow-note { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.flow-note-heading { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.flow-note-heading span { color: var(--muted); }
.flow-note ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 8px 0 0; }
.flow-note li { color: #52677e; font-size: 11px; line-height: 1.55; }
.flow-note li span { display: block; width: max-content; margin-bottom: 4px; padding: 3px 6px; border-radius: 6px; color: #238373; background: #e8f7f3; font-weight: 800; }

.operation-column { min-width: 0; }
.panel { padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.plan-badge { padding: 6px 9px; border: 1px solid #cddcf0; border-radius: 999px; color: var(--blue); background: #f2f7ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label, .label-row label { color: #23384f; font-weight: 700; font-size: 13px; }
.label-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.label-row > span { color: var(--green); font-size: 10px; font-weight: 700; }
input[type="text"], textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line-strong);
  outline: none;
  border-radius: 11px;
  background: #f8fbff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input[type="text"] { height: 44px; padding: 0 13px; }
textarea { min-height: 108px; resize: vertical; padding: 11px 13px; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
input[type="text"]::placeholder, textarea::placeholder { color: #98a8ba; }
input[type="text"]:focus, textarea:focus { border-color: #4f86de; box-shadow: 0 0 0 3px rgba(53, 111, 208, .1); background: white; }
.field-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.confirmation { display: flex; gap: 9px; align-items: flex-start; color: #566b81; font-size: 11px; line-height: 1.55; cursor: pointer; }
.confirmation input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--blue); }
.primary-button {
  width: 100%; min-height: 44px; display: flex; justify-content: center; align-items: center; gap: 10px;
  border: 0; border-radius: 11px; color: white; background: linear-gradient(135deg, #2f7aeb, #2256cb);
  font-weight: 800; box-shadow: 0 12px 25px rgba(35, 91, 205, .2); transition: transform .16s ease, filter .16s ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-arrow { font-size: 18px; }
.panel-footnote { display: flex; align-items: center; gap: 9px; margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #e6edf5; color: var(--muted); font-size: 10px; }
.panel-footnote > span { width: 6px; height: 6px; box-shadow: none; }

.result-card { margin-top: 16px; padding: clamp(22px, 4vw, 32px); }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 10px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 11px; font-weight: 800; }
.status-chip > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip[data-status="SUCCESS"] { color: var(--success); background: #e8f7f2; }
.status-chip[data-status="FAILED"] { color: var(--danger); background: #fff0f1; }
.status-chip[data-status="REVIEWING"] { color: var(--warning); background: #fff6e5; }
.result-card h2 { margin: 20px 0 7px; font-size: 23px; }
.result-card > p { color: var(--muted); line-height: 1.65; }
.order-number { margin-top: 20px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-soft); }
.order-number > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.order-number > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-number code { overflow-wrap: anywhere; color: #314961; font-size: 12px; }
.copy-button { flex: none; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--text); padding: 6px 9px; font-size: 11px; }
.polling-note { margin-bottom: 0; font-size: 10px; }
.notice { margin-top: 14px; padding: 12px 14px; border: 1px solid #efb8bd; border-radius: 11px; background: #fff2f3; color: #a8323e; font-size: 12px; line-height: 1.55; }
.notice[data-kind="success"] { border-color: #a9d9ca; background: #edf9f5; color: #166d57; }

footer { padding: 3px 0; color: #8a99aa; border-top: 1px solid var(--line); text-align: center; font-size: 10px; line-height: 14px; }
footer p { margin: 0; }
.noscript { position: fixed; bottom: 16px; left: 16px; right: 16px; padding: 14px; border-radius: 12px; color: white; background: #8d3039; text-align: center; }
[hidden] { display: none !important; }

@media (max-width: 920px) {
  .service-layout { grid-template-columns: 1fr; }
  .intro-card { min-height: auto; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 24px, 560px); }
  .site-header { min-height: 142px; align-items: flex-start; padding-top: 28px; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 12px; line-height: 1.55; }
  .safety-pill { margin-top: 7px; font-size: 0; }
  .tab-list { gap: 8px; margin-bottom: 16px; }
  .tab { min-height: 66px; gap: 9px; padding: 10px; }
  .tab-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
  .tab strong { font-size: 13px; }
  .tab small { display: none; }
  .intro-card { padding: 30px 22px; }
  .intro-card h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero-copy { font-size: 13px; }
  .trust-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .trust-grid article { display: grid; grid-template-columns: 38px 1fr; gap: 3px 12px; padding: 14px; text-align: left; }
  .feature-icon { grid-row: 1 / 3; width: 38px; height: 38px; margin: 0; }
  .trust-grid h2 { align-self: end; }
  .trust-grid p { margin: 0; align-self: start; }
  .flow-note ol { grid-template-columns: 1fr; }
  .flow-note li { display: flex; align-items: center; gap: 9px; }
  .flow-note li span { flex: none; margin: 0; }
  .panel { padding: 24px 20px; }
  .label-row { display: grid; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
