:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #f8f6f1;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e5e0d6;
  --line-strong: #d6cfc2;
  --primary: #245c8f;
  --primary-dark: #16466f;
  --cyan: #397f86;
  --green: #16a34a;
  --amber: #b7791f;
  --red: #dc2626;
  --shadow: 0 14px 34px rgba(31, 41, 51, .07);
  --radius: 14px;
  font-family: "Aptos", "Segoe UI Variable", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf8 0, var(--bg) 360px);
  overflow-x: hidden;
}

body::before {
  display: none;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .34);
  outline-offset: 3px;
}

.shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  backdrop-filter: blur(18px);
  animation: dropIn .46s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  box-shadow: none;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  display: none;
}

.brand-name {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-name strong {
  font-size: 15px;
  letter-spacing: .04em;
}

.brand-name span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 42px;
  padding: 72px 0 54px;
}

.rescue-console {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 4px;
  color: var(--ink);
  overflow: hidden;
}

.rescue-console::after {
  display: none;
}

.rescue-console h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.02em;
}

.rescue-console p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.6;
}

.console-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.console-list span {
  color: var(--muted);
}

.file-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: -18px 0 18px;
}

.file-pipeline a {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(31, 41, 51, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.file-pipeline a:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 92, 143, .32);
  box-shadow: 0 16px 30px rgba(31, 41, 51, .07);
}

.file-pipeline b {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: .08em;
}

.file-pipeline strong {
  font-size: 20px;
}

.file-pipeline span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  border: 1px solid rgba(36, 92, 143, .18);
  background: rgba(36, 92, 143, .06);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .12);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

h1,
.hero-title {
  margin: 20px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -0.03em;
}

.hero-title span {
  display: block;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-actions,
.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(36, 92, 143, .14);
  font-weight: 700;
}

.btn.secondary {
  color: var(--ink);
  background: var(--surface);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.btn.primary::after {
  display: none;
}

.btn.primary:hover::after {
  animation: none;
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: .55;
}

.hero-card,
.workspace,
.tool-menu,
.mini-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mini-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.mini-card h3 {
  margin: 0;
  font-size: 20px;
}

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

.finance-wide {
  grid-column: 1 / -1;
}

.lift-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.lift-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .22);
  box-shadow: 0 22px 56px rgba(15, 23, 42, .10);
}

.hero-card {
  padding: 20px;
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.quick-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-list li:hover {
  transform: translateX(3px);
  border-color: rgba(37, 99, 235, .26);
  background: #fbfdff;
}

.quick-list strong {
  display: block;
}

.quick-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.chip {
  flex: 0 0 auto;
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

button.chip {
  min-height: 34px;
  padding: 7px 12px;
}

.chip:hover,
.chip.is-active {
  transform: translateY(-1px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .16);
}

.section {
  padding: 56px 0;
}

.ad-slot {
  display: none;
}

.ad-slot.is-visible {
  display: block;
  width: 100%;
  min-height: 96px;
  margin: 18px 0;
  border-radius: 14px;
  overflow: hidden;
}

.ad-slot-wide.is-visible {
  min-height: 120px;
}

.ad-slot-card.is-visible {
  min-height: 260px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
}

.section p,
.workspace-head p {
  color: var(--muted);
  line-height: 1.65;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.seo-hero {
  padding: 58px 0 24px;
}

.seo-hero .kicker {
  margin-bottom: 16px;
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 20px 0 70px;
}

.seo-main,
.seo-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

.seo-main {
  padding: 26px;
}

.seo-aside {
  align-self: start;
  position: sticky;
  top: 86px;
  padding: 18px;
}

.seo-main h2,
.seo-aside h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.seo-main h3 {
  margin: 26px 0 10px;
  font-size: 20px;
}

.seo-main p,
.seo-main li,
.seo-aside p,
.seo-aside li {
  color: var(--muted);
  line-height: 1.72;
}

.seo-main section + section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.step-list,
.faq-list,
.related-list {
  margin: 0;
  padding-left: 20px;
}

.related-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: var(--surface);
}

.related-list a:hover {
  border-color: rgba(37, 99, 235, .35);
  background: #fbfdff;
}

.guide-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 20%, rgba(6, 182, 212, .18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.92));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.guide-strip::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, .18);
  background: repeating-linear-gradient(135deg, rgba(37,99,235,.08) 0 8px, transparent 8px 16px);
}

.guide-strip h2 {
  margin: 10px 0 10px;
  max-width: 720px;
}

.guide-strip p {
  max-width: 680px;
  margin: 0;
}

.guide-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.guide-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.guide-links a::after {
  content: "→";
  color: var(--primary);
  font-weight: 900;
}

.guide-links a:hover {
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, .42);
  background: #ffffff;
}

.upload-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.upload-flow span {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: #075985;
  font-weight: 800;
  border: 1px solid rgba(14, 165, 233, .22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, .92), rgba(239, 246, 255, .94));
}

.checkup-output {
  display: grid;
  gap: 12px;
}

.check-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.74);
}

.check-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.check-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.check-card ul {
  margin: 0;
  padding-left: 20px;
}

.related-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.canvas-stage {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(148, 163, 184, .10) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, .10) 25%, transparent 25%),
    #ffffff;
  background-size: 22px 22px;
  overflow: auto;
}

.canvas-stage canvas {
  display: block;
  max-width: 100%;
  height: auto;
  min-height: 180px;
  margin: 0 auto;
  border-radius: 12px;
  cursor: crosshair;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.scenario-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.scenario-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.scenario-card span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.radar-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.radar-panel::before {
  display: none;
}

.radar-panel h2 {
  margin: 14px 0 10px;
  max-width: 780px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
}

.radar-panel p {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.7;
}

.radar-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.radar-stack span {
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: none;
  font-weight: 900;
}

.radar-stack span:nth-child(even) {
  transform: none;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 41, 51, .04);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 92, 143, .32);
  box-shadow: 0 16px 32px rgba(31, 41, 51, .07);
}

.post-date,
.article-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-card h3 {
  margin: 10px 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
}

.post-card p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.post-card strong {
  color: var(--primary);
}

.article-page {
  max-width: 820px;
  padding: 58px 0 80px;
}

.article-page h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.article-page section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-page h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -.02em;
}

.article-page p,
.article-page li {
  color: var(--muted);
  line-height: 1.82;
}

.article-page strong {
  color: var(--ink);
}

.tool-card {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(31, 41, 51, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  display: none;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 92, 143, .32);
  box-shadow: 0 16px 32px rgba(31, 41, 51, .07);
}

.tool-card:hover::after {
  transform: scaleX(1);
}

.tool-card small {
  width: fit-content;
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 800;
  letter-spacing: .02em;
}

.tool-card h3 {
  margin: 0;
  font-size: 22px;
}

.tool-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  padding: 34px 0 70px;
}

.tool-menu {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: 10px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  scrollbar-width: thin;
}

.tool-group-label {
  margin: 10px 8px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tool-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  position: relative;
}

.tool-tab:hover,
.tool-tab.is-active {
  color: var(--ink);
  border-color: rgba(37, 99, 235, .24);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(8, 145, 178, .06)),
    var(--surface);
}

.tool-tab.is-active::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  position: absolute;
  left: 5px;
}

.tool-tab span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.workspace {
  min-height: 620px;
  overflow: hidden;
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.workspace-head h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.tool-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 24px 0;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 10%, rgba(34, 211, 238, .12), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.88));
}

.tool-command span {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.tool-command strong {
  letter-spacing: -.01em;
}

.command-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.command-steps a {
  padding: 8px 10px;
  color: #075985;
  text-decoration: none;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 999px;
  background: rgba(236, 254, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.command-steps a:hover {
  border-color: rgba(37, 99, 235, .34);
  background: #ffffff;
}

.tool-body {
  display: none;
  padding: 24px;
}

.tool-body.is-active {
  display: grid;
  gap: 16px;
  animation: panelIn .24s ease both;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(8, 145, 178, .04)),
    var(--surface);
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  outline: none;
}

textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.output {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 14px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.drop-zone {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(37, 99, 235, .36);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(37, 99, 235, .08), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.drop-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(37, 99, 235, .06), transparent);
  transform: translateX(-100%);
}

.drop-zone::after {
  content: "本地优先处理";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 9px;
  color: #075985;
  border: 1px solid rgba(14, 165, 233, .22);
  border-radius: 999px;
  background: rgba(236, 254, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.drop-zone:hover::before {
  animation: scanLine 1.1s ease;
}

.drop-zone h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.drop-zone p {
  margin: 0 auto 14px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

.drop-zone input {
  max-width: 430px;
  background: rgba(255,255,255,.86);
}

.check-line {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.image-preview {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.id-preview {
  justify-self: start;
  max-height: 420px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-pill {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.download-pill:hover {
  transform: translateX(3px);
  border-color: rgba(37, 99, 235, .35);
  background: #fbfdff;
}

.download-pill.is-error {
  color: var(--red);
  background: #fff7f7;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.qr-box canvas {
  max-width: min(320px, 80vw);
  width: auto;
  height: auto;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.barcode-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .05), rgba(8, 145, 178, .04)),
    var(--surface);
  overflow: auto;
}

.barcode-preview svg {
  max-width: 100%;
  min-height: 120px;
  border-radius: 12px;
  background: #ffffff;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

.reveal {
  animation: riseIn .58s ease both;
}

.section.reveal {
  animation-delay: .08s;
}

@keyframes ambientDrift {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: .9; }
  to { transform: translate3d(2%, 5%, 0) scale(1.04); opacity: .72; }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 5px rgba(22, 163, 74, .12); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, .04); }
}

@keyframes markSheen {
  0%, 58% { transform: translateX(-120%) rotate(18deg); }
  74%, 100% { transform: translateX(120%) rotate(18deg); }
}

@keyframes buttonSheen {
  to { transform: translateX(110%); }
}

@keyframes scanLine {
  to { transform: translateX(100%); }
}

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

@media (max-width: 980px) {
  .hero,
  .file-pipeline,
  .tool-layout,
  .guide-strip,
  .radar-panel,
  .seo-layout {
    grid-template-columns: 1fr;
  }

  .tool-command {
    grid-template-columns: 1fr;
  }

  .command-steps {
    justify-content: flex-start;
  }

  .tool-menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-grid,
  .scenario-grid,
  .field-grid,
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .finance-wide {
    grid-column: auto;
  }

  .seo-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100vw - 20px, 1160px);
  }

  .topbar,
  .section-head,
  .workspace-head,
  .tool-command {
    align-items: start;
    display: grid;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 38px 0 36px;
  }

  h1,
  .hero-title {
    font-size: 42px;
  }

  .tool-menu {
    grid-template-columns: 1fr;
  }

  .tool-body,
  .workspace-head {
    padding: 18px;
  }

  .upload-flow {
    grid-template-columns: 1fr 1fr;
  }

  .radar-panel,
  .guide-strip {
    padding: 20px;
  }

  .radar-stack span:nth-child(even) {
    transform: none;
  }

  .file-pipeline a {
    min-height: auto;
  }
}
