:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-deep: #e9dfcf;
  --ink: #11294c;
  --muted: #5c6470;
  --line: #c8bda9;
  --panel: rgba(255, 252, 246, .9);
  --accent: #c85b2b;
  --blue: #0f315e;
  --focus: #006bc7;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 5%, rgba(255,255,255,.8), transparent 32rem),
    linear-gradient(180deg, #f8f4ec 0, var(--paper) 62%, #eee6da 100%);
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero, main, footer {
  width: min(1600px, calc(100% - 48px));
  margin-inline: auto;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: none;
  margin-bottom: 14px;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.lead {
  max-width: 900px;
  margin-bottom: 34px;
  color: #414957;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.75;
}

.input-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--blue);
  background: rgba(255,255,255,.28);
}

.input-strip div {
  display: grid;
  gap: 6px;
  padding: 22px 28px;
  text-align: center;
}

.input-strip div + div { border-left: 1px solid rgba(17, 41, 76, .35); }
.input-strip strong { font-family: Georgia, serif; font-size: 1.7rem; }
.input-strip span { color: var(--muted); font-size: .9rem; }

.workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--blue);
}

.workflow li {
  position: relative;
  padding: 26px 8px 0;
  text-align: center;
  font-weight: 700;
}

.workflow span {
  position: absolute;
  top: -17px;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-family: Georgia, serif;
}

.explorer {
  display: block;
  overflow: hidden;
  margin: 28px 0 70px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(50, 40, 27, .12);
}

.file-panel { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.preview-panel { min-width: 0; padding: 26px; }
.panel-heading, .preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2, .preview-heading h2 { margin-bottom: 0; font-size: 1.45rem; }
.window-label { margin-bottom: 3px; color: var(--muted); font-size: .8rem; }
.file-count, .status { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; }
.file-count { border-color: var(--accent); color: white; background: var(--accent); font-weight: 800; }
.status i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2d9b5d; }

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.download-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 11px 6px 7px;
  border: 1px solid #d4c9b7;
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  font-size: .79rem;
  font-weight: 700;
  text-decoration: none;
}

.download-chip:hover { border-color: var(--accent); background: white; }
.download-note { margin: 11px 0 0; color: var(--muted); font-size: .74rem; }

.file-icon {
  display: grid;
  width: 25px;
  height: 27px;
  place-items: center;
  border-radius: 4px 4px 6px 4px;
  color: white;
  font-size: .68rem;
  font-weight: 900;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.1);
}
.xlsx { background: #287b55; }
.csv { background: #3d8d71; }
.py { background: #356b9f; }
.png { background: #a76d3d; }
.docx { background: #2e60a1; }

.preview-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.preview-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 13px; background: white; }
.preview-image-link { display: block; background: #f7f5f0; }
.preview-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.preview-card figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 18px; align-items: center; padding: 14px 16px 16px; }
.preview-card figcaption b { font-size: .94rem; line-height: 1.45; }
.preview-card figcaption span { grid-column: 1; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.preview-card figcaption > a { grid-column: 2; grid-row: 1 / 3; color: var(--accent); font-size: .78rem; font-weight: 800; text-decoration: none; }
.preview-card figcaption > a:hover { text-decoration: underline; }

.takeaway {
  max-width: 1060px;
  margin: 0 auto 88px;
  padding-left: 28px;
  border-left: 4px solid var(--accent);
}
.takeaway h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.25; }
.takeaway > p:last-child { max-width: 800px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

footer { display: flex; justify-content: space-between; padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer span:first-child { color: var(--accent); font-weight: 800; }

@media (max-width: 980px) {
  .input-strip { grid-template-columns: repeat(2, 1fr); }
  .input-strip div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(17, 41, 76, .35); }
  .input-strip div:nth-child(4) { border-top: 1px solid rgba(17, 41, 76, .35); }
}

@media (max-width: 680px) {
  .hero, main, footer { width: min(100% - 28px, 1600px); }
  .hero { padding-top: 42px; }
  .input-strip { grid-template-columns: 1fr; }
  .input-strip div + div { border-left: 0; border-top: 1px solid rgba(17, 41, 76, .35); }
  .workflow { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .workflow li:nth-child(n+4) { border-top: 1px solid var(--blue); }
  .preview-panel, .file-panel { padding: 20px 14px; }
  .preview-heading { display: block; }
  .status { display: inline-block; margin-top: 12px; }
  .preview-card figcaption { grid-template-columns: 1fr; }
  .preview-card figcaption > a { grid-column: 1; grid-row: auto; }
  .download-chip { flex: 1 1 150px; }
  footer { display: grid; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
