:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e1eb;
  --blue: #4da3f5;
  --blue-dark: #247fd8;
  --card: rgba(255, 255, 255, 0.82);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #edf6ff; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(210, 230, 255, 0.72), transparent 34rem),
    radial-gradient(circle at 88% 74%, rgba(213, 250, 240, 0.7), transparent 34rem),
    linear-gradient(145deg, #f7faff 0%, #eef7ff 48%, #f5fffb 100%);
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell { min-height: 100vh; position: relative; padding: 72px 22px 56px; }

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: linear-gradient(rgba(93, 135, 177, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(93, 135, 177, .04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.locale-pill {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  padding: 7px 16px;
  border: 1px solid rgba(140, 154, 173, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(30, 70, 110, .06);
  color: #344054;
  font-size: 13px;
}

.hero { position: relative; z-index: 1; text-align: center; margin: 22px auto 30px; }
.hero h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -1.8px; font-weight: 800; }
.hero p { margin: 10px 0 12px; color: #6c7789; font-size: 15px; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #5fb7ff, #5f78ee);
  box-shadow: 0 10px 26px rgba(65, 129, 230, .27);
}

.after-sales-link {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  color: #fff;
  background: #152238;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: transform .2s ease, box-shadow .2s ease;
}
.after-sales-link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 24, 40, .18); }

.content-wrap { width: min(760px, 100%); margin: 0 auto; position: relative; z-index: 1; }
.content-wrap.has-guide {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(320px, 400px);
  align-items: start;
  gap: 18px;
  width: min(1178px, 100%);
}
.content-wrap.has-guide > .glass-card:not(.guide-card) { grid-column: 1; grid-row: 1; }
.content-wrap.has-guide .guide-card { grid-column: 2; grid-row: 1; position: sticky; top: 18px; margin-top: 0; }
.content-wrap.has-guide .security-note { grid-column: 1 / -1; }

.glass-card {
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(57, 84, 119, .12), inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.section-head.compact { margin: 0 0 20px; }
.section-head h2, .batch-card h2 { margin: 0; font-size: 26px; letter-spacing: -.6px; }
.section-head p, .card-description { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.step-dot {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #287dce;
  background: #e7f3ff;
  font-weight: 750;
}

.form-stack, .activation-form { display: flex; flex-direction: column; align-items: stretch; }
label { display: block; margin: 0 0 8px; color: #4b5565; font-size: 14px; }
label > span:first-child { color: #ed6570; }

input:not([type="checkbox"]), textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: #273244;
  background: rgba(255, 255, 255, .72);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:not([type="checkbox"]) { height: 44px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { border-color: #68aff0; background: #fff; box-shadow: 0 0 0 3px rgba(80, 160, 235, .14); }
input::placeholder, textarea::placeholder { color: #a6afbd; }

.primary-button, .secondary-button {
  width: fit-content;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.primary-button { color: #fff; background: linear-gradient(135deg, #5eb6fc, #4b96ea); box-shadow: 0 8px 20px rgba(63, 145, 226, .2); }
.safe-submit-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .62; }
.primary-button span { color: inherit; margin-right: 7px; }
.secondary-button { border: 1px solid #d5deea; color: #536174; background: rgba(255, 255, 255, .85); }

.notice, .service-banner { margin-top: 18px; padding: 11px 14px; border: 1px solid; border-radius: 8px; font-size: 14px; line-height: 1.55; }
.notice.error, .service-banner.abnormal { color: #a73540; border-color: #f2c5ca; background: #fff2f3; }
.notice.success { color: #227354; border-color: #bde7d6; background: #effbf6; }
.notice.info, .service-banner.unknown { color: #3d648b; border-color: #c7def2; background: #eef7ff; }
.service-banner.unstable { color: #8a6519; border-color: #efdaa8; background: #fff9e9; }

.result-flow { margin-top: 26px; padding-top: 25px; border-top: 1px dashed #cfdae6; }
.result-summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.result-summary h3 { margin: 4px 0; font-size: 21px; }
.result-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { color: #4189cc; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 750; }
.status-badge { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-badge.ready { color: #187757; background: #dff7ed; }
.status-badge.done { color: #2861a3; background: #e4efff; }
.status-badge.pending { color: #8a6519; background: #fff2ca; }

.activation-form { margin-top: 28px; padding-top: 27px; border-top: 1px dashed #cfdae6; }
.field-help { margin: 7px 0 0; color: #7b8797; font-size: 12px; line-height: 1.6; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; cursor: pointer; }
.check-row input { width: 16px; height: 16px; }
.check-row span { color: #5d6b7d; }

.completion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.completion-grid div { padding: 14px; border: 1px solid #dce7f1; border-radius: 10px; background: rgba(245, 250, 255, .8); }
.completion-grid span { display: block; margin-bottom: 5px; color: #7a8798; font-size: 12px; }
.completion-grid strong { font-size: 14px; word-break: break-all; }

.security-note { display: flex; gap: 12px; margin: 17px 4px 0; color: #718096; font-size: 12px; line-height: 1.6; }
.security-note strong { color: #556477; }
.security-note p { margin: 2px 0 0; }
.security-note > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #4f9ee4; background: #e1f1ff; }

.guide-card { margin-top: 18px; padding-top: 30px; padding-bottom: 28px; }
.guide-card h2 { margin: 0; font-size: 23px; letter-spacing: -.4px; }
.guide-intro { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-step { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid #e7edf3; }
.guide-step:last-child { border-bottom: 0; }
.guide-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: #122039; font-size: 13px; font-weight: 800; }
.guide-step h3 { margin: 0; font-size: 16px; line-height: 1.45; }
.guide-step p { margin: 3px 0 0; color: #657287; font-size: 13px; line-height: 1.65; }
.guide-action { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; padding: 0 14px; border-radius: 8px; color: #fff; background: #2563eb; text-decoration: none; font-size: 13px; font-weight: 700; }
.guide-action:hover { filter: brightness(.95); }
.claude-guide .guide-number { background: #ad3010; }
.claude-guide .guide-action { background: #c53d12; }
.guide-thumb-wrap { margin-top: 4px; padding-top: 16px; border-top: 1px solid #e7edf3; }
.guide-thumb-tip { margin: 0 0 9px; color: #c24118; font-size: 13px; font-weight: 700; }
.guide-thumb-wrap a { display: block; overflow: hidden; border: 1px solid #dce3eb; border-radius: 10px; background: #f8fafc; }
.guide-thumb { display: block; width: 100%; height: clamp(145px, 26vw, 220px); object-fit: cover; object-position: center; cursor: zoom-in; transition: transform .2s ease; }
.guide-thumb:hover { transform: scale(1.01); }

.batch-shell { padding-top: 68px; }
.batch-hero { margin-bottom: 20px; }
.batch-hero h1 { font-size: clamp(34px, 4vw, 46px); }
.back-link { display: inline-block; margin-bottom: 18px; color: #4c83b7; text-decoration: none; font-size: 13px; }
.batch-wrap { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; }
.batch-card { padding: clamp(30px, 4vw, 50px); }
.batch-card > label { margin-top: 22px; }
.input-count { margin-top: 10px; color: #69778a; font-size: 13px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.results-table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid #dce5ee; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e5ebf1; text-align: left; }
th { color: #526175; background: #f6f9fc; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.mini-status { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #8a4b51; background: #fff0f1; }
.mini-status.ok { color: #247455; background: #e6f8f0; }

@media (max-width: 720px) {
  .site-shell { padding: 62px 14px 34px; }
  .locale-pill { top: 14px; right: 14px; }
  .hero { margin-top: 16px; }
  .hero p { padding: 0 10px; line-height: 1.6; }
  .glass-card { padding: 25px 20px; border-radius: 18px; }
  .section-head h2, .batch-card h2 { font-size: 22px; }
  .result-summary { align-items: flex-start; }
  .completion-grid { grid-template-columns: 1fr; }
  .guide-card { padding: 25px 20px; }
  .guide-step { grid-template-columns: 34px 1fr; gap: 10px; }
  .guide-number { width: 34px; height: 34px; }
  .button-row .primary-button, .button-row .secondary-button { flex: 1 1 130px; }
}

@media (max-width: 1100px) {
  .content-wrap.has-guide { display: block; width: min(760px, 100%); }
  .content-wrap.has-guide > .glass-card:not(.guide-card) { grid-column: auto; grid-row: auto; }
  .content-wrap.has-guide .guide-card { grid-column: auto; grid-row: auto; position: static; margin-top: 18px; }
}
