:root {
  --bg: #f5f8fc;
  --paper: #ffffff;
  --ink: #101a33;
  --muted: #65718a;
  --line: #dde8f7;
  --blue: #2563eb;
  --blue-2: #0ea5e9;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(29, 78, 216, 0.08);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 520px, #f7faff 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding-left: 20px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  background: rgba(249, 251, 255, 0.86);
  border-bottom: 1px solid rgba(221, 232, 247, 0.9);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 13px;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}
.brand strong { display: block; font-size: 18px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

nav { display: flex; justify-content: center; align-items: center; gap: 36px; font-size: 15px; font-weight: 700; }
nav { scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { color: #17213a; padding: 26px 0 22px; border-bottom: 3px solid transparent; }
nav a.active, nav a:hover { color: var(--blue); border-color: var(--blue); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #155eef);
  font-weight: 800;
  font-size: 13px;
}
.topbar .nav-cta {
  margin-left: auto;
}

main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 26px 0 72px; }
main > section { margin-top: 28px; }

.hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 38px 0 28px;
}
.hero-upgraded {
  min-height: 660px;
  gap: 42px;
}
.hero-upgraded::after {
  content: "";
  position: absolute;
  right: -9vw;
  top: 42px;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.16), transparent 66%);
}
.hero-upgraded .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}
.hero-upgraded .lead {
  max-width: 660px;
  color: #1f3154;
  font-size: 21px;
}
.hero-upgraded .button {
  min-height: 54px;
  border-radius: 12px;
  padding: 0 26px;
  font-size: 16px;
}
.hero-path-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  max-width: 650px;
}
.hero-path-cards article {
  padding: 14px 16px;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 30px rgba(15,23,42,.05);
}
.hero-path-cards strong,
.hero-path-cards span {
  display: block;
}
.hero-path-cards strong {
  color: #172554;
  margin-bottom: 5px;
}
.hero-path-cards span {
  color: #5b6b86;
  font-size: 13px;
  line-height: 1.55;
}
.hero-showcase-upgraded {
  padding-right: 118px;
}
.hero-report-card {
  position: absolute;
  right: 30px;
  top: 26px;
  z-index: 2;
  width: 142px;
  padding: 16px;
  border: 1px solid #dbe7fb;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 50px rgba(37,99,235,.18);
}
.hero-report-card span,
.hero-report-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.hero-report-card strong {
  display: block;
  margin: 6px 0;
  color: var(--blue);
  font-size: 44px;
  line-height: 1;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -7vw;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 12%, rgba(37, 99, 235, .13), transparent 34%),
    radial-gradient(circle at 86% 26%, rgba(14, 165, 233, .12), transparent 30%),
    linear-gradient(135deg, rgba(248, 251, 255, .92), rgba(239, 246, 255, .58));
  border-radius: 0 0 42px 42px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 560px;
}
.hero-title {
  white-space: nowrap;
  max-width: 560px;
}
.title-line {
  display: block;
  white-space: normal;
  word-break: break-word;
  letter-spacing: 0.01em;
}
.title-line.accent {
  color: var(--blue);
}
h1 .title-line + .title-line {
  margin-top: 2px;
}
.lead {
  margin-top: 24px;
  color: #263753;
  font-size: 20px;
  line-height: 1.9;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #155eef);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}
.button.ghost { color: var(--blue); background: #fff; border: 1px solid #b9cdf8; }
.button.pay { color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); }
.button:disabled { opacity: .52; cursor: not-allowed; transform: none; box-shadow: none; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe7fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #233553;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.hero-trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.social-proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: #52617d; font-size: 14px; }
.avatar-stack { display: inline-flex; }
.avatar-stack i {
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  margin-left: -8px;
  background: linear-gradient(135deg, #dbeafe, #2563eb);
}
.avatar-stack i:first-child { margin-left: 0; background: linear-gradient(135deg, #fee2e2, #fb7185); }
.avatar-stack i:nth-child(2) { background: linear-gradient(135deg, #dcfce7, #22c55e); }
.social-proof strong { color: var(--ink); }

.hero-showcase {
  position: relative;
  min-width: 0;
  min-height: 480px;
  padding: 30px 132px 24px 18px;
}
.resume-window {
  min-height: 460px;
  padding: 30px;
  border: 1px solid #cad9f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.18);
}
.window-dots { display: flex; gap: 7px; margin-bottom: 22px; }
.window-dots span { width: 9px; height: 9px; border-radius: 50%; background: #fecaca; }
.window-dots span:nth-child(2) { background: #fde68a; }
.window-dots span:nth-child(3) { background: #bbf7d0; }
.resume-top { display: grid; grid-template-columns: 94px 1fr; gap: 22px; align-items: center; margin-bottom: 28px; }
.portrait, .phone-photo {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 32%, #f1f5f9 0 16%, transparent 17%),
    radial-gradient(circle at 50% 72%, #e2e8f0 0 26%, transparent 27%),
    linear-gradient(180deg, #e0f2fe, #f8fafc);
  border: 1px solid #dbeafe;
  background-size: cover;
  background-position: center;
}
.portrait { width: 94px; height: 112px; }
.portrait::after,
.phone-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 12px;
  text-align: center;
  opacity: 0.9;
  letter-spacing: 0.02em;
}
.portrait.has-photo::after,
.phone-photo.has-photo::after {
  content: "";
  opacity: 0;
}

.template-classic {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-color: #c5d7f5;
}
.template-modern {
  background: linear-gradient(180deg, #f8fdff, #eef5ff);
  border-color: #a9d0ff;
}
.template-compact {
  background: linear-gradient(180deg, #fbfdff, #f2f6ff);
  border-color: #c5def5;
}

.template-classic .resume-top h2 {
  color: #1e3a8a;
}
.template-modern .resume-top h2 {
  letter-spacing: 0.01em;
}
.template-compact .resume-top h2 {
  font-size: 22px;
}
.resume-top h2 { font-size: 24px; margin-bottom: 6px; }
.resume-top p { color: #233b64; font-weight: 700; margin-bottom: 6px; }
.resume-top small { color: var(--muted); }
.hero-contact {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.hero-contact span { display: block; }
.resume-lines strong { display: block; margin: 20px 0 10px; color: #172554; }
.resume-lines p {
  min-height: 18px;
  margin: 8px 0;
  border-radius: 99px;
  padding: 2px 10px;
  line-height: 1.46;
  background: transparent;
  color: #172554;
  white-space: normal;
  word-break: break-word;
}
.resume-lines p:empty {
  height: 9px;
  padding: 0;
  background: linear-gradient(90deg, #c7d2fe, #eff6ff);
}
.resume-lines p.short { width: 68%; }

.phone-preview {
  position: absolute;
  right: 84px;
  bottom: 12px;
  width: 160px;
  height: 300px;
  padding: 28px 18px 18px;
  border: 6px solid #111827;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.22);
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 56px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #111827;
}
.phone-photo { width: 54px; height: 66px; margin-bottom: 12px; }
.phone-preview strong { display: block; font-size: 15px; margin-bottom: 10px; }
.phone-preview p { height: 7px; border-radius: 99px; background: #dbeafe; margin: 9px 0; }
.phone-preview p:empty {
  height: 7px;
  background: #dbeafe;
  min-height: 0;
  margin: 9px 0;
}
.phone-preview p:not(:empty) {
  min-height: 0;
  height: auto;
  padding: 0;
  background: transparent;
  color: #1f2d52;
  line-height: 1.45;
  word-break: break-word;
}
.send-path {
  position: absolute;
  right: 12px;
  top: 94px;
  display: grid;
  gap: 18px;
  width: 150px;
}
.send-path article {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--soft-shadow);
}
.send-path small { color: var(--muted); font-size: 12px; }
.pdf-icon, .send-icon, .check-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.pdf-icon { background: var(--red); }
.send-icon { background: var(--blue); font-size: 20px; }
.check-icon { background: var(--green); font-size: 20px; }

.capability-strip, .template-strip, .footer-trust {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--soft-shadow);
}
.capability-strip article, .template-strip article, .footer-trust article {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  color: #172554;
  border-right: 1px solid #eef4ff;
}
.capability-strip article:last-child, .template-strip article:last-child, .footer-trust article:last-child { border-right: 0; }
.capability-strip span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 900;
}
.capability-strip strong, .template-strip strong, .footer-trust strong { font-size: 14px; }

.process h2, .analysis-showcase h2, .report-sample h2, .faq h2 { text-align: center; font-size: 28px; margin-bottom: 22px; }
.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}
.section-heading h2 {
  margin-bottom: 10px;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}
.process-upgraded,
.showcase-upgraded,
.report-sample-upgraded,
.faq-upgraded {
  scroll-margin-top: 96px;
}
.path-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.path-flow-grid article {
  position: relative;
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.path-flow-grid article::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(37,99,235,.08);
}
.path-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 900;
  font-size: 13px;
}
.path-badge.green {
  color: #15803d;
  background: #f0fdf4;
}
.path-flow-grid h3 {
  margin: 16px 0 16px;
  color: #0f172a;
  font-size: 24px;
}
.path-flow-grid ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: #334155;
  line-height: 1.75;
  font-weight: 700;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.process-grid article, .workspace, .analysis-showcase > article, .report-sample, .faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--soft-shadow);
}
.process-grid article {
  min-height: 300px;
  padding: 26px;
}
.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.process-grid h3 { font-size: 20px; margin-bottom: 10px; }
.process-grid p { color: var(--muted); line-height: 1.8; }
.upload-visual, .export-visual {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  border: 1px dashed #cbdaf5;
  border-radius: 12px;
  background: #f8fbff;
}
.file, .export-visual span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
}
.file.pdf, .export-visual span { background: var(--red); }
.file.word { background: var(--blue); }
.file.img { background: #38bdf8; font-size: 12px; }
.score-widget {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  margin: 24px auto 0;
  border: 12px solid #bfdbfe;
  border-top-color: var(--blue);
  border-radius: 50%;
}
.score-widget strong { font-size: 42px; color: var(--blue); }
.score-widget span { color: var(--muted); font-size: 12px; }
.export-visual div {
  width: 76px;
  height: 94px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #eff6ff);
}

.workspace {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
  padding: 26px;
}
.workspace.form-open {
  grid-template-columns: minmax(420px, .82fr) minmax(560px, 1.18fr);
  align-items: start;
}
.mode-diagnosis .workspace.form-open {
  grid-template-columns: minmax(340px, .62fr) minmax(680px, 1.38fr);
}
.mode-pdf .workspace.form-open {
  grid-template-columns: minmax(360px, .52fr) minmax(720px, 1.48fr);
}
.workspace.form-open .workspace-intro {
  display: none;
}
.workspace.form-open .diagnosis-form {
  order: 1;
}
.workspace.form-open .result-panel {
  order: 2;
}
#startDiagnosisBtn {
  display: none !important;
}
.diagnosis-step-guide {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.diagnosis-step-guide h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}
.diagnosis-step-guide > p {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.diagnosis-step-guide article {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  transition: .16s ease;
}
.diagnosis-step-guide strong {
  color: #172554;
  font-size: 15px;
}
.diagnosis-step-guide span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.diagnosis-step-guide article.active {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}
.diagnosis-step-guide article.active strong {
  color: #1d4ed8;
}
.diagnosis-step-guide article.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.mode-pdf .diagnosis-step-guide {
  display: none !important;
}
.workspace-intro h2 { text-align: left; margin-bottom: 12px; }
.workspace-intro p { color: var(--muted); line-height: 1.8; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.promise-grid span {
  padding: 10px 12px;
  border: 1px solid #dce9ff;
  border-radius: 8px;
  background: #f8fbff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 13px;
}
.diagnosis-form.hidden { display: none; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.mode-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}
.mode-tab.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.diagnosis-form label { display: grid; gap: 8px; margin-bottom: 12px; color: #334155; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  min-height: 42px;
  color: var(--ink);
}
.contact-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  grid-template-columns: repeat(3, 1fr);
}
.contact-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #334155;
  min-width: 0;
}
.contact-grid input {
  width: 100%;
}
select {
  min-height: 42px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; min-height: 96px; }
.action-row, .pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.intro-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 12px;
}
.intro-mode-row .mode-quick {
  min-width: 132px;
}
.intro-mode-row .mode-quick[data-target="pdf"] {
  background: #fff;
  color: var(--blue);
}
.result-panel h2 { text-align: left; margin-bottom: 10px; }
#statusText { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
#statusText[data-type="loading"] { color: var(--blue); font-weight: 800; }
#statusText[data-type="success"] { color: var(--green); font-weight: 800; }
#statusText[data-type="error"] { color: #b91c1c; font-weight: 800; }
.preview-box {
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
}
.preview-box h3 { margin-bottom: 10px; }
.preview-box p, .preview-box li { line-height: 1.8; color: #39465f; }
.hidden { display: none !important; }
.footer-note, .small-note { color: var(--muted); font-size: 12px; line-height: 1.7; }

.analysis-showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
}
.seo-page {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.seo-page .hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.seo-page .hero-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
}
.seo-page .seo-content {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  padding: 22px;
}
.seo-page h1,
.seo-page h2,
.seo-page h3,
.seo-page p,
.seo-page li {
  overflow-wrap: anywhere;
}
.seo-page .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748a;
  margin: 10px 0 0;
}
.seo-page .trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.seo-page .trust-strip span {
  padding: 7px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}
.seo-page .hero-card {
  display: grid;
  gap: 14px;
}
.seo-page .score-card {
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.seo-page .score-card span,
.seo-page .score-card small {
  color: var(--muted);
}
.seo-page .score-card strong {
  color: var(--blue);
  font-size: 54px;
  line-height: 1;
}
.seo-page .mini-resume {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.seo-page .mini-resume div {
  width: 64px;
  height: 80px;
  float: right;
  margin-left: 14px;
  border-radius: 8px;
  background: url("/avatar-sample.png") center top / cover no-repeat;
  border: 1px solid #d5e2f7;
}
.seo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}
.seo-cta strong,
.seo-cta span {
  display: block;
}
.seo-cta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.seo-page .workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.seo-page .step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}
.seo-page .seo-faq details {
  margin: 10px 0;
}
.seo-links a {
  display: inline-block;
  margin: 0 10px 10px 0;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
}
.analysis-showcase > article { padding: 26px; }
.radar-card h2, .case-panel h2 { text-align: left; }
.radar-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
}
.radar-card h2 { grid-column: 1 / -1; margin-bottom: 0; }
.radar-shape {
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background:
    linear-gradient(60deg, transparent 49%, #dbeafe 50%, transparent 51%),
    linear-gradient(120deg, transparent 49%, #dbeafe 50%, transparent 51%),
    linear-gradient(180deg, transparent 49%, #dbeafe 50%, transparent 51%),
    radial-gradient(circle, rgba(37, 99, 235, .18) 0 36%, transparent 37%),
    conic-gradient(from 10deg, rgba(37,99,235,.22), rgba(14,165,233,.42), rgba(37,99,235,.16), rgba(37,99,235,.22));
  border: 1px solid #bfdbfe;
}
.radar-card li { margin-bottom: 13px; color: var(--muted); }
.radar-card li strong { display: block; color: #172554; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-grid div {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.case-grid p { margin: 18px 0 12px; font-size: 24px; font-weight: 900; }
.showcase-upgraded .radar-card,
.showcase-upgraded .case-panel {
  min-height: 310px;
}
.showcase-upgraded .case-grid p {
  color: var(--blue);
}
.showcase-upgraded .case-grid div {
  background:
    linear-gradient(180deg, #fff, #f8fbff);
}
.case-grid p span { color: var(--green); }
.case-grid small { color: var(--muted); line-height: 1.7; }

.report-sample { padding: 28px; text-align: center; }
.report-sample-upgraded {
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(239,246,255,.74));
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.sample-grid article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}
.sample-grid span { color: var(--muted); font-size: 13px; }
.sample-grid strong { color: var(--blue); font-size: 34px; }
.sample-grid small { color: var(--muted); }

.template-strip { grid-template-columns: repeat(6, 1fr); }
.template-strip-upgraded article {
  padding: 14px 10px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.template-strip-upgraded article:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 36px rgba(37,99,235,.1);
}
.template-strip span, .footer-trust span { color: var(--muted); font-size: 12px; }

.template-picker {
  display: grid;
  gap: 8px;
}
.template-picker label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #f8fbff;
  color: #1e293b;
}
.template-picker input {
  margin: 0;
  width: 14px;
  height: 14px;
}

.faq { padding: 26px; }
.faq-upgraded {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.faq details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.035);
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin-top: 10px; color: var(--muted); line-height: 1.8; }
.footer-trust { grid-template-columns: repeat(3, 1fr); }
.footer-trust-upgraded {
  padding: 22px;
  background:
    linear-gradient(135deg, #10213e, #1d4ed8);
  border-color: transparent;
}
.footer-trust-upgraded article {
  color: #fff;
  border-color: rgba(255,255,255,.16);
}
.footer-trust-upgraded span {
  color: rgba(255,255,255,.76);
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.36);
}
.pay-modal.hidden { display: none; }
.pay-modal-card {
  width: min(440px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}
.pay-modal-card h3 { margin-bottom: 8px; }
.wechat-cashier-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 13px;
  font-weight: 900;
}
.wechat-cashier-note::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
}
#paySummary {
  color: #334155;
  margin-top: 8px;
  font-weight: 800;
}
.pay-status {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fbff;
  color: var(--muted);
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.pay-status[data-type="loading"] {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.pay-status[data-type="success"] {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.pay-status[data-type="error"] {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.pay-status[data-type="warning"] {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
#refreshPayBtn {
  margin-top: 10px;
  width: 100%;
}
#payQrWrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
#payQrImage {
  width: 206px;
  height: 206px;
  object-fit: contain;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #fff;
}
#alipayLink {
  color: #15803d;
  font-weight: 900;
  text-decoration: none;
}
.pay-modal-card #closePay { margin-top: 14px; }

.left-assist {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.left-assist h3 {
  margin: 0 0 12px;
  color: #0f1f3f;
  font-size: 18px;
}
.left-assist ol {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.left-assist li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #e2eaf8;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-weight: 800;
}
.left-assist li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}
.left-assist li.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.left-assist li.active::before { background: #2563eb; }
.left-assist li.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}
.left-assist li.done::before { background: #22c55e; }
.left-assist p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}
.left-assist .assist-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.left-assist .assist-metrics span {
  padding: 12px;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  background: #fff;
}
.left-assist .assist-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}
.left-assist .assist-metrics small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.left-assist .assist-warning {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.hero {
  grid-template-columns: 1.03fr .97fr;
}
.hero-title {
  max-width: 700px;
}
.title-line {
  white-space: nowrap;
  word-break: keep-all;
}
.lead {
  max-width: 640px;
}
.hero-showcase {
  padding: 28px 112px 26px 4px;
}
.hero-actions .button {
  min-height: 54px;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 16px;
}
.hero-actions .button.primary {
  box-shadow: 0 20px 36px rgba(37, 99, 235, .26);
}
.hero-actions .button.ghost {
  min-width: 286px;
  border-color: #b8ccf4;
  box-shadow: 0 16px 30px rgba(15, 23, 42, .06);
}
.resume-window {
  min-height: 430px;
  max-height: 468px;
  overflow: hidden;
}
.resume-top {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.portrait {
  width: 86px;
  height: 104px;
}
.resume-top h2,
.resume-top p,
.hero-contact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-contact {
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 10px;
}
.resume-lines strong {
  margin: 14px 0 8px;
}
.resume-lines p {
  min-height: 0;
  margin: 6px 0;
  padding: 0;
  color: #243657;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phone-preview {
  right: 54px;
  bottom: 4px;
  overflow: hidden;
}
.phone-preview strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-preview p:not(:empty) {
  font-size: 11px;
  line-height: 1.35;
  max-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phone-photo {
  width: 50px;
  height: 62px;
}
.send-path {
  right: 0;
  top: 96px;
}

.mini-resume-card {
  position: relative;
  width: 92px;
  height: 116px;
  padding: 12px 10px 10px 42px;
  border: 1px solid #d5e2f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.mini-resume-card i,
.template-mini i {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 24px;
  height: 30px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 36%, #9fb2dd 0 24%, transparent 25%),
    radial-gradient(circle at 50% 82%, #c6d6f0 0 35%, transparent 36%),
    #e9f0ff;
}
.mini-resume-card b,
.template-mini b,
.mini-resume-card span,
.template-mini em {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #cbdaf5;
}
.mini-resume-card b,
.template-mini b {
  width: 38px;
  margin-bottom: 10px;
  background: #2563eb;
}
.mini-resume-card span,
.template-mini em {
  width: 100%;
  margin-top: 8px;
}
.mini-resume-card .short,
.template-mini .short {
  width: 68%;
}

.file-upload-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.mode-diagnosis .file-upload-row {
  grid-template-columns: 1fr;
}
.mode-diagnosis .pdf-only,
.mode-pdf .diagnosis-only {
  display: none !important;
}
.mode-diagnosis .pdf-only-field,
.mode-pdf .diagnosis-only-field {
  display: none !important;
}
.mode-diagnosis .diagnosis-only-field {
  display: grid;
  padding: 18px;
  border: 1px dashed #b8ccf4;
  border-radius: 14px;
  background: #f8fbff;
}
.upload-card {
  position: relative;
  min-height: 76px;
  align-content: center;
  padding: 14px 16px 14px 56px;
  border: 1px solid #cbdaf5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: #172554;
  cursor: pointer;
  overflow: hidden;
}
.upload-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}
.upload-card::after {
  content: "点击选择";
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.upload-card input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-card::after {
  content: attr(data-status) !important;
}
.upload-card.uploaded {
  border-color: #86efac;
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}
.upload-card.uploaded::before {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}
.template-section {
  display: grid;
  gap: 8px;
  margin-bottom: 14px !important;
  color: #334155;
  font-weight: 700;
}
.template-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.template-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 70px 1fr;
  grid-template-areas:
    "mini title"
    "mini desc"
    "mini tags";
  gap: 4px 12px !important;
  align-items: center !important;
  min-height: 126px !important;
  padding: 14px !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.template-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.template-card.selected {
  border-color: var(--blue) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}
.template-card.selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #fff;
}
.template-mini {
  grid-area: mini;
  position: relative;
  width: 64px;
  height: 86px;
  padding: 12px 8px 8px 34px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}
.template-card > strong {
  grid-area: title;
  color: #172554;
  font-size: 15px;
}
.template-card > small {
  grid-area: desc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.template-tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.template-tags em {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1e3a8a;
  font-size: 11px;
  font-style: normal;
}
.sample-explain {
  max-width: 720px;
  margin: -8px auto 18px;
  color: var(--muted);
  line-height: 1.8;
}
.preview-score-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #cbdaf5;
  border-radius: 12px;
  background: #f8fbff;
}
.preview-score-card strong {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 28px;
}
.preview-score-card span {
  color: #172554;
  font-weight: 800;
}
.preview-insight-grid {
  display: grid;
  gap: 12px;
}
.preview-insight-grid article {
  padding: 14px;
  border: 1px solid #dce9ff;
  border-radius: 12px;
  background: #fff;
}
.preview-insight-grid b {
  display: block;
  margin-bottom: 8px;
  color: #172554;
}
.preview-insight-grid li {
  color: #39465f;
  line-height: 1.7;
}
.left-unlock-btn {
  margin-top: 16px;
}

.checking-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}
.checking-state span {
  width: 54px;
  height: 54px;
  border: 5px solid #dbeafe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: cv-spin 0.9s linear infinite;
}
.checking-state h3 { color: #172554; }
.checking-state p {
  max-width: 380px;
  color: var(--muted);
}
@keyframes cv-spin { to { transform: rotate(360deg); } }

.formal-resume {
  padding: 24px;
  border: 1px solid #d5e2f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}
.formal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8f0ff;
}
.formal-head h3 {
  margin-bottom: 6px;
  color: #172554;
  font-size: 26px;
}
.formal-head p {
  color: #1e3a8a;
  font-weight: 800;
}
.formal-head small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.formal-head img {
  width: 84px;
  height: 104px;
  border: 1px solid #d5e2f7;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
}
.formal-resume section {
  margin-top: 16px;
}
.formal-resume h4,
.report-under-resume h4 {
  margin: 0 0 8px;
  color: #172554;
}
.formal-resume p {
  color: #334155;
  line-height: 1.8;
  white-space: pre-line;
}
.report-under-resume {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dce9ff;
  border-radius: 12px;
  background: #f8fbff;
}
.report-under-resume h3 {
  margin-bottom: 14px;
}
.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.score-row.compact {
  grid-template-columns: repeat(2, 1fr);
}
.score-row span {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #d5e2f7;
  border-radius: 10px;
  background: #fff;
}
.score-row strong {
  color: var(--blue);
  font-size: 28px;
}
.score-row small {
  color: var(--muted);
}
.report-under-resume ul,
.preview-box ul {
  margin-bottom: 14px;
}
.report-under-resume li {
  color: #39465f;
  line-height: 1.8;
}

.template-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.template-card-v2 {
  position: relative;
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px !important;
  align-items: center !important;
  min-height: 148px !important;
  padding: 14px !important;
  border: 1px solid #d5e2f7 !important;
  border-radius: 12px !important;
  background: #fff !important;
  cursor: pointer;
}
.template-card-v2 input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.template-card-v2.selected {
  border-color: var(--blue) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .12);
}
.template-card-v2.selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #fff;
}
.template-thumb {
  position: relative;
  width: 76px;
  height: 106px;
  padding: 10px 8px;
  border: 1px solid #d9e5f8;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.template-thumb i {
  position: absolute;
  right: 8px;
  top: 9px;
  width: 20px;
  height: 25px;
  border-radius: 4px;
  background: url("/avatar-sample.png") center top / cover no-repeat;
  border: 1px solid #d5e2f7;
}
.template-thumb b {
  display: block;
  width: 34px;
  height: 7px;
  margin: 2px 0 10px;
  border-radius: 99px;
  background: #172554;
}
.template-thumb em,
.template-thumb strong {
  display: block;
  height: 5px;
  margin: 6px 0;
  border-radius: 99px;
  background: #c7d2fe;
}
.template-thumb strong {
  width: 40px;
  margin-top: 12px;
  background: #2563eb;
}
.template-thumb .short { width: 50%; }
.template-thumb .thin { width: 68%; background: #e2e8f0; }
.template-thumb.modern {
  border-left: 5px solid #2563eb;
  padding-left: 7px;
}
.template-thumb.compact em {
  margin: 4px 0;
}
.template-meta {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.template-meta strong {
  color: #172554;
  font-size: 16px;
}
.template-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.template-meta em {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1e3a8a;
  font-size: 11px;
  font-style: normal;
}

.formal-resume-v2 {
  padding: 28px;
  border: 1px solid #d5e2f7;
  border-radius: 10px;
  background: #fff;
  color: #17213a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .07);
}
.formal-resume-v2 header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 22px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
}
.formal-resume-v2 h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.1;
}
.formal-resume-v2 header p {
  margin: 0 0 8px;
  color: #1e3a8a;
  font-size: 17px;
  font-weight: 800;
}
.formal-resume-v2 header small {
  color: #475569;
  font-size: 13px;
}
.formal-resume-v2 header img {
  width: 86px;
  height: 108px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.formal-resume-v2 section {
  margin-top: 18px;
}
.formal-resume-v2 h4 {
  margin: 0 0 9px;
  padding-left: 10px;
  border-left: 4px solid var(--blue);
  color: #0f172a;
  font-size: 17px;
}
.formal-resume-v2 p {
  margin: 0;
  color: #334155;
  line-height: 1.85;
  white-space: pre-line;
}
.resume-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.template-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.template-button {
  position: relative;
  display: grid !important;
  gap: 5px !important;
  min-height: 78px !important;
  padding: 14px 16px !important;
  border: 1px solid #d5e2f7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer;
}
.template-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.template-button strong {
  color: #172554;
  font-size: 16px;
}
.template-button small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.template-mobile-tip {
  display: none;
}
.template-button.selected {
  border-color: var(--blue) !important;
  background: #f7fbff !important;
  box-shadow: 0 12px 24px rgba(37,99,235,.11);
}
.template-button.selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #fff;
}
.template-button .template-hover-preview {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  z-index: 80;
  width: 480px;
  padding: 12px;
  border: 1px solid #d5e2f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.template-button:hover .template-hover-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.template-hover-preview > strong {
  display: block;
  color: #172554;
  font-size: 16px;
  margin-bottom: 3px;
}
.template-hover-preview > small {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}
.template-hover-a4 {
  width: 456px;
  height: 645px;
  overflow: hidden;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #fff;
}
.template-hover-a4 .formal-resume-v3 {
  width: 794px;
  min-height: 1123px;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: scale(.574);
  transform-origin: top left;
}

.preview-loading-card {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}
.loading-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 5px solid #dbeafe;
  border-top-color: #2563eb;
  animation: resume-spin .9s linear infinite;
}
.preview-loading-card h3 {
  margin: 0;
  color: #0f172a;
}
.preview-loading-card p {
  max-width: 520px;
  margin: 0;
}
@keyframes resume-spin {
  to { transform: rotate(360deg); }
}

.uploaded-resume-preview {
  padding: 18px;
  border: 1px solid #d5e2f7;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 16px;
}
.uploaded-resume-preview h3 {
  margin-bottom: 12px;
}
.uploaded-resume-preview iframe {
  width: 100%;
  height: min(84vh, 980px);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.uploaded-resume-preview img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.resume-advice-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: #f8fbff;
}
.resume-advice-panel h3 {
  margin-bottom: 10px;
}
.resume-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.resume-score-grid span {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #fff;
}
.resume-score-grid strong {
  color: #2563eb;
  font-size: 24px;
  line-height: 1;
}
.resume-score-grid small {
  color: var(--muted);
  font-size: 12px;
}
.resume-advice-panel p,
.resume-advice-panel li {
  color: #39465f;
  line-height: 1.8;
}
.resume-advice-panel ul {
  margin: 10px 0 0;
}
.uploaded-resume-preview.file-only div {
  padding: 26px;
  border: 1px dashed #cbdaf5;
  border-radius: 10px;
  background: #f8fbff;
}
.uploaded-resume-preview.file-only strong {
  display: block;
  margin-bottom: 8px;
  color: #172554;
}

.resume-a4-preview-shell {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 14px auto 12px;
  overflow: hidden;
  border: 1px solid #d5e2f7;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}
.resume-a4-preview-scale {
  width: 794px;
  min-height: 1123px;
  transform-origin: top left;
}
.resume-a4-preview-shell .formal-resume-v3 {
  width: 794px;
  min-height: 1123px;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.resume-a4-preview-shell .formal-resume-v3 header h3,
.resume-a4-preview-shell .formal-resume-v3 h3 {
  font-size: 42px;
}
.resume-a4-preview-shell .formal-resume-v3 h4 {
  font-size: 22px;
}
.resume-a4-preview-shell .formal-resume-v3 p,
.resume-a4-preview-shell .formal-resume-v3 li,
.resume-a4-preview-shell .formal-resume-v3 small {
  font-size: 18px;
  line-height: 2;
}

.resume-advice-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}
.resume-advice-list li {
  padding: 12px 14px;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #fff;
}
.resume-advice-list strong {
  display: block;
  margin-bottom: 4px;
  color: #172554;
}
.resume-advice-list small {
  display: block;
  color: #5b6b86;
  line-height: 1.7;
}

.formal-resume-v3 {
  padding: 30px;
  border: 1px solid #d5e2f7;
  border-radius: 10px;
  background: #fff;
  color: #17213a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .07);
}
.formal-resume-v3,
.formal-resume-v3 * {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.formal-resume-v3 header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 22px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
}
.formal-resume-v3 header h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 42px;
  line-height: 1.1;
}
.formal-resume-v3 header p {
  margin: 0 0 8px;
  color: #1e3a8a;
  font-size: 21px;
  font-weight: 800;
}
.formal-resume-v3 header small {
  color: #475569;
  font-size: 16px;
}
.formal-resume-v3 .resume-photo,
.formal-resume-v3 .resume-photo-placeholder {
  width: 25mm;
  height: 35mm;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}
.formal-resume-v3 .resume-photo-placeholder {
  border-style: dashed;
}
.formal-resume-v3 section {
  margin-top: 28px;
}
.formal-resume-v3 h4 {
  margin: 0 0 13px;
  padding-left: 12px;
  border-left: 5px solid var(--blue);
  color: #0f172a;
  font-size: 22px;
}
.formal-resume-v3 p {
  margin: 0;
  color: #334155;
  font-size: 18px;
  line-height: 2;
  white-space: pre-line;
}
.formal-resume-v3.modern {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 0;
  overflow: hidden;
}
.formal-resume-v3.modern header {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  padding: 26px 22px;
  border: 0;
  background: #17315f;
  color: #fff;
}
.formal-resume-v3.modern header .resume-photo,
.formal-resume-v3.modern header .resume-photo-placeholder {
  grid-row: 1;
  border-color: rgba(255,255,255,.5);
}
.formal-resume-v3.modern header h3,
.formal-resume-v3.modern header p,
.formal-resume-v3.modern header small {
  color: #fff;
}
.formal-resume-v3.modern .resume-body-grid {
  padding: 24px 26px 26px 0;
}
.formal-resume-v3.modern h4 {
  border-left: 0;
  border-bottom: 1px solid #cbdaf5;
  padding: 0 0 7px;
}
.formal-resume-v3.compact {
  padding: 22px;
}
.formal-resume-v3.compact header {
  grid-template-columns: minmax(0, 1fr) 74px;
  padding-bottom: 12px;
}
.formal-resume-v3.compact header h3 {
  font-size: 24px;
}
.formal-resume-v3.compact header .resume-photo,
.formal-resume-v3.compact header .resume-photo-placeholder {
  width: 22mm;
  height: 31mm;
}
.formal-resume-v3.compact .resume-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.formal-resume-v3.compact .summary-section,
.formal-resume-v3.compact .resume-body-grid section:nth-child(2),
.formal-resume-v3.compact .resume-body-grid section:nth-child(3) {
  grid-column: 1 / -1;
}
.formal-resume-v3.compact section {
  margin-top: 10px;
}
.formal-resume-v3.compact p {
  line-height: 1.65;
  font-size: 14px;
}

.formal-resume-v3 ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}
.formal-resume-v3 li {
  margin: 10px 0;
  line-height: 1.95;
}
.resume-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.resume-skill-tags span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  white-space: normal;
}
.formal-resume-v3.classic {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
.formal-resume-v3.classic .resume-sidebar {
  padding: 30px 22px;
  background: linear-gradient(180deg, #0f1f3f, #122b55);
  color: #fff;
}
.formal-resume-v3.classic .resume-sidebar .resume-photo,
.formal-resume-v3.classic .resume-sidebar .resume-photo-placeholder {
  width: 30mm;
  height: 42mm;
  aspect-ratio: 3 / 4;
  margin-bottom: 24px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
}
.formal-resume-v3.classic .resume-sidebar h4 {
  margin-top: 24px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.formal-resume-v3.classic .resume-sidebar p,
.formal-resume-v3.classic .resume-sidebar li {
  color: rgba(255,255,255,.86);
  font-size: 15px;
  line-height: 1.85;
}
.formal-resume-v3.classic .resume-sidebar .resume-skill-tags span {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.formal-resume-v3.classic main {
  padding: 38px 46px;
}
.formal-resume-v3.classic header {
  display: block;
  padding: 0 0 26px;
  border-bottom: 2px solid #e2e8f0;
}
.formal-resume-v3.classic h4 {
  border-left: 4px solid #1d4ed8;
  padding-left: 10px;
}

.formal-resume-v3.modern {
  display: block;
  padding: 36px;
  overflow: visible;
}
.formal-resume-v3.modern header {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff, #f0fdf4);
  color: #0f172a;
}
.formal-resume-v3.modern header .resume-photo,
.formal-resume-v3.modern header .resume-photo-placeholder {
  grid-row: auto;
  width: 30mm;
  height: 42mm;
  aspect-ratio: 3 / 4;
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}
.formal-resume-v3.modern header h3,
.formal-resume-v3.modern header p,
.formal-resume-v3.modern header small {
  color: #0f172a;
}
.formal-resume-v3.modern .resume-soft-card {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid #dcfce7;
  border-radius: 14px;
  background: #f8fffb;
}
.formal-resume-v3.modern .resume-body-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px 30px;
  padding: 0;
}
.formal-resume-v3.modern .project-cards,
.formal-resume-v3.modern .resume-body-grid section:nth-child(4) {
  grid-column: 1 / -1;
}
.formal-resume-v3.modern h4 {
  border: 0;
  border-bottom: 1px solid #bbf7d0;
  padding: 0 0 8px;
  color: #15803d;
}
.formal-resume-v3.modern .skill-panel p {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}
.formal-resume-v3.modern .skill-panel b {
  display: block;
  width: var(--w);
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.formal-resume-v3.compact {
  display: block;
  padding: 38px;
  border-color: #d1d5db;
  box-shadow: none;
  color: #111827;
}
.formal-resume-v3.compact header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 24px;
  align-items: start;
  padding: 0 0 22px;
  border-bottom: 3px solid #111827;
}
.formal-resume-v3.compact header h3 {
  font-size: 38px;
}
.formal-resume-v3.compact header p {
  color: #111827;
}
.formal-resume-v3.compact header .resume-photo,
.formal-resume-v3.compact header .resume-photo-placeholder {
  width: 22mm;
  height: 31mm;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}
.formal-resume-v3.compact .summary-section {
  padding: 24px 0;
  border-bottom: 2px solid #111827;
}
.formal-resume-v3.compact .resume-print-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
}
.formal-resume-v3.compact main {
  padding: 0;
}
.formal-resume-v3.compact .resume-side-list {
  padding-left: 18px;
  border-left: 1px solid #111827;
}
.formal-resume-v3.compact h4 {
  margin: 18px 0 10px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid #111827;
  color: #111827;
}
.formal-resume-v3.compact .resume-skill-tags {
  display: grid;
  gap: 6px;
}
.formal-resume-v3.compact .resume-skill-tags span {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
}
.formal-resume-v3.compact .resume-skill-tags span::before {
  content: "•";
  margin-right: 6px;
}

.a4-preview-sheet {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 210 / 297;
  margin: 0 auto 16px;
  padding: 18px;
  border: 1px solid #d5e2f7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  overflow: hidden;
  contain: layout paint;
}
.a4-preview-content {
  width: 100%;
  height: 100%;
  transform-origin: top left;
}
.a4-preview-sheet .formal-resume-v3 {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.a4-preview-sheet .formal-resume-v3.modern,
.a4-preview-sheet .formal-resume-v3.compact,
.a4-preview-sheet .formal-resume-v3.classic {
  height: 100%;
  min-height: 100%;
}
.a4-preview-sheet .formal-resume-v3.classic .resume-sidebar {
  min-height: 100%;
}
.a4-preview-sheet .formal-resume-v3 .resume-photo,
.a4-preview-sheet .formal-resume-v3 .resume-photo-placeholder {
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center top;
}
.a4-preview-sheet.is-empty {
  display: block;
}
.a4-empty-preview {
  display: grid;
  align-content: start;
  height: 100%;
  padding: 24px;
  border: 1px dashed #cbdaf5;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  box-sizing: border-box;
}
.a4-empty-preview h3 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 22px;
}
.a4-empty-preview ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.9;
}

.notice {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 30;
  transform: translateX(-50%) translateY(-12px);
  max-width: min(560px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  opacity: 0;
  transition: all .2s ease;
}
.notice.show { transform: translateX(-50%) translateY(0); opacity: .96; }

.install-app-button {
  display: none;
}

.print-frame {
  width: 210mm;
  height: 297mm;
}

@media print {
  body > *:not(.print-frame) {
    visibility: hidden;
  }
  .print-frame {
    visibility: visible;
  }
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr; gap: 6px; padding: 12px 18px; }
  nav { justify-content: flex-start; gap: 22px; overflow-x: auto; }
  nav a { white-space: nowrap; padding: 8px 0 12px; }
  .topbar .nav-cta { margin-left: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 18px; }
  .hero-showcase { min-height: 520px; padding-right: 150px; }
  .capability-strip { grid-template-columns: repeat(4, 1fr); }
  .capability-strip article:nth-child(4n), .template-strip article:nth-child(3n) { border-right: 0; }
  .process-grid, .analysis-showcase, .workspace { grid-template-columns: 1fr; }
  .template-strip, .faq-grid, .footer-trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .hero-title { white-space: normal; }
  .hero-copy .title-line { white-space: normal; }
  .contact-grid { grid-template-columns: 1fr; }
  main { width: min(100% - 24px, 1180px); padding-top: 14px; }
  h1 { font-size: 42px; white-space: normal; }
  .hero-title { max-width: 100%; }
  .title-line { white-space: normal; }
  .lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-showcase { min-height: 520px; padding: 0; }
  .resume-window { min-height: 390px; padding: 22px; }
  .phone-preview { right: 18px; bottom: 8px; transform: scale(.86); transform-origin: right bottom; }
  .send-path { position: static; width: 100%; grid-template-columns: 1fr 1fr 1fr; margin-top: 14px; }
  .send-path article { grid-template-columns: 1fr; text-align: center; min-height: 106px; }
  .pdf-icon, .send-icon, .check-icon { margin: 0 auto; }
  .capability-strip, .template-strip, .footer-trust, .sample-grid, .case-grid, .faq-grid, .promise-grid {
    grid-template-columns: 1fr;
  }
  .capability-strip article, .template-strip article, .footer-trust article { border-right: 0; border-bottom: 1px solid #eef4ff; }
  .capability-strip article:last-child, .template-strip article:last-child, .footer-trust article:last-child { border-bottom: 0; }
  .radar-card { grid-template-columns: 1fr; }
  .radar-shape { margin: 0 auto; }
  .workspace {
    width: 100%;
    min-width: 0;
    padding: 14px;
    gap: 16px;
    overflow: hidden;
  }
  .diagnosis-form,
  .result-panel,
  .preview-box {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
  }
  .mode-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .diagnosis-form label {
    display: grid;
    min-width: 0;
    width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  input,
  textarea,
  select {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }
  input[type="file"] {
    white-space: normal;
  }
  .seo-page {
    width: min(100% - 24px, 980px);
  }
  .seo-page .hero,
  .seo-page .workflow {
    grid-template-columns: 1fr;
  }
  .seo-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .seo-cta .button {
    width: 100%;
  }
  .template-picker,
  .template-buttons {
    grid-template-columns: 1fr !important;
    width: 100%;
    min-width: 0;
  }
  .template-picker label,
  .template-card,
  .template-card-v2,
  .template-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
  .template-card,
  .template-card-v2 {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    min-height: 118px !important;
    padding: 12px !important;
  }
  .template-card > strong,
  .template-meta strong,
  .template-button strong {
    font-size: 15px;
    line-height: 1.35;
    word-break: keep-all;
  }
  .template-card > small,
  .template-meta small,
  .template-button small {
    line-height: 1.55;
    word-break: normal;
  }
  .template-mobile-tip {
    display: inline-flex;
    width: fit-content;
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
  }
  .template-button .template-hover-preview {
    display: none !important;
  }
  .template-thumb,
  .template-mini {
    width: 62px;
    height: 82px;
    flex: 0 0 auto;
  }
  .a4-preview-sheet {
    width: 100%;
    padding: 10px;
  }
  .formal-resume-v3,
  .formal-resume-v3.classic,
  .formal-resume-v3.modern,
  .formal-resume-v3.compact {
    display: block;
    padding: 18px;
  }
  .formal-resume-v3.classic .resume-sidebar,
  .formal-resume-v3.classic main,
  .formal-resume-v3.modern .resume-body-grid,
  .formal-resume-v3.compact main,
  .formal-resume-v3.compact .resume-side-list {
    padding: 0;
  }
  .formal-resume-v3.classic .resume-sidebar {
    margin: -18px -18px 18px;
    padding: 18px;
  }
  .formal-resume-v3.modern header,
  .formal-resume-v3.compact header {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .formal-resume-v3.compact .resume-print-grid,
  .formal-resume-v3.modern .resume-body-grid {
    grid-template-columns: 1fr;
  }
  .formal-resume-v3 h3,
  .formal-resume-v3 header h3 {
    font-size: 24px;
  }
  .resume-a4-preview-shell {
    max-width: 100%;
    margin-top: 12px;
  }
  .resume-a4-preview-shell .formal-resume-v3,
  .resume-a4-preview-shell .formal-resume-v3.classic,
  .resume-a4-preview-shell .formal-resume-v3.modern,
  .resume-a4-preview-shell .formal-resume-v3.compact {
    width: 794px !important;
    min-height: 1123px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px !important;
    display: block;
  }
  .resume-a4-preview-shell .formal-resume-v3.classic {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    padding: 0 !important;
  }
  .resume-a4-preview-shell .formal-resume-v3.modern {
    display: grid !important;
    grid-template-columns: 190px 1fr !important;
    padding: 0 !important;
  }
  .resume-a4-preview-shell .formal-resume-v3.compact {
    display: block !important;
    padding: 22px !important;
  }
  .resume-a4-preview-shell .formal-resume-v3.classic .resume-sidebar {
    margin: 0 !important;
    padding: 24px 18px !important;
  }
  .resume-a4-preview-shell .formal-resume-v3.classic main {
    padding: 28px !important;
  }
  .resume-a4-preview-shell .formal-resume-v3.modern header {
    grid-template-columns: 1fr !important;
    padding: 26px 22px !important;
  }
  .resume-a4-preview-shell .formal-resume-v3.compact header {
    grid-template-columns: minmax(0, 1fr) 74px !important;
  }
  .resume-a4-preview-shell .formal-resume-v3.compact .resume-print-grid {
    grid-template-columns: 1fr 180px !important;
  }
  .pay-modal {
    align-items: end;
    padding: 10px;
  }
  .pay-modal-card {
    width: 100%;
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 18px;
    border-radius: 16px 16px 10px 10px;
  }
  .pay-modal-card h3 {
    font-size: 22px;
    line-height: 1.35;
  }
  .pay-qr img {
    max-width: min(260px, 72vw);
  }
  #alipayLink,
  #refreshPayBtn,
  #closePay {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small,
  .topbar nav {
    display: none;
  }

  .topbar .nav-cta {
    margin: 0;
    padding: 10px 13px;
    white-space: nowrap;
  }

  main {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    gap: 18px;
    padding: 10px 0 18px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  h1,
  .hero-title {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.08;
  }

  .lead {
    max-width: 100%;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .hero-actions .button,
  .button.primary,
  .button.pay {
    min-height: 48px;
    justify-content: center;
  }

  .hero-showcase {
    min-height: auto;
    display: block;
  }

  .resume-window {
    min-height: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .resume-paper {
    transform: none;
    width: 100%;
    min-height: 420px;
  }

  .phone-preview,
  .send-path {
    display: none;
  }

  section {
    margin-top: 28px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 26px;
    line-height: 1.25;
  }

  .workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    border-radius: 16px;
    box-shadow: none;
  }

  .workspace.form-open,
  .mode-diagnosis .workspace.form-open,
  .mode-pdf .workspace.form-open {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    overflow: visible;
  }

  .workspace.form-open .diagnosis-form,
  .workspace.form-open .result-panel {
    order: initial;
    width: 100%;
    min-width: 0;
  }

  .workspace.form-open .result-panel {
    display: block;
  }

  .diagnosis-form {
    padding: 16px;
    border-radius: 14px;
  }

  .diagnosis-form label {
    gap: 8px;
    margin-bottom: 12px;
  }

  input,
  textarea,
  select {
    min-height: 46px;
    border-radius: 10px;
  }

  textarea {
    min-height: 104px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-panel {
    padding: 16px;
    border-radius: 14px;
    scroll-margin-top: 72px;
  }

  .preview-box {
    display: block;
    min-height: 180px;
    padding: 14px;
    overflow: visible;
  }

  .a4-preview-sheet {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .resume-a4-preview-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
  }

  .resume-a4-preview-scale {
    width: 794px;
    min-width: 794px;
  }

  .report-under-resume,
  .preview-score-card,
  .preview-insight-grid {
    min-width: 0;
  }

  .preview-score-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 12px;
  }

  .pay-modal {
    align-items: flex-end;
    padding: 0;
    background: rgba(15, 23, 42, .58);
  }

  .pay-modal-card {
    max-width: none;
    width: 100%;
    max-height: min(86vh, 640px);
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .pay-modal-card h3 {
    font-size: 20px;
  }

  .wechat-cashier-note {
    background: #fef3c7;
    color: #92400e;
  }

  .pay-methods,
  #wechatPayBtn {
    display: none !important;
  }

  #alipayLink {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1677ff;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  #alipayLink.hidden {
    display: none;
  }

  .pay-status {
    font-size: 14px;
    line-height: 1.6;
  }

  .install-app-button {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    gap: 1px;
    min-width: 118px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .32);
    text-align: left;
  }

  .install-app-button.hidden {
    display: none !important;
  }

  .install-app-button strong,
  .install-app-button span {
    display: block;
    line-height: 1.15;
  }

  .install-app-button strong {
    font-size: 13px;
    font-weight: 900;
  }

  .install-app-button span {
    opacity: .86;
    font-size: 11px;
  }

  .mobile-template-preview.hidden {
    display: none !important;
  }

  .mobile-template-preview {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    align-items: end;
  }

  .mobile-template-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
  }

  .mobile-template-preview__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88vh, 720px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -18px 44px rgba(15, 23, 42, .18);
  }

  .mobile-template-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 12px;
    border-bottom: 1px solid #e2e8f0;
  }

  .mobile-template-preview__head strong,
  .mobile-template-preview__head small {
    display: block;
  }

  .mobile-template-preview__head strong {
    color: #172554;
    font-size: 17px;
  }

  .mobile-template-preview__head small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
  }

  .mobile-template-preview__head button {
    min-width: 64px;
    min-height: 38px;
    border: 1px solid #d5e2f7;
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    font-weight: 900;
  }

  .mobile-template-preview__body {
    margin-top: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dbe7fb;
    border-radius: 14px;
    background: #f8fbff;
  }

  .mobile-template-preview__body .mobile-template-a4 {
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .mobile-template-preview__body .resume-a4-preview-scale {
    width: 794px;
    min-width: 794px;
  }
}
