:root {
  --paper: #f5f0e3;
  --paper-2: #fffaf0;
  --ink: #101b18;
  --muted: #5d6864;
  --line: #17211e;
  --lime: #b8e85d;
  --lime-dark: #7eaf22;
  --cyan: #80d2d3;
  --blue: #2f68ff;
  --orange: #ff8a00;
  --coral: #ff6459;
  --white: #fffdf7;
  --shadow: 10px 10px 0 rgba(16, 27, 24, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(255, 138, 0, 0.15), transparent 24%),
    radial-gradient(circle at 92% 5%, rgba(47, 104, 255, 0.1), transparent 22%),
    linear-gradient(rgba(16, 27, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 27, 24, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

main { overflow: hidden; }

.hero,
.categories,
.sectionIntro,
.caseGrid,
.workflow,
.splitSection {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero { padding: 22px 0 74px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 12px 18px;
  background: rgba(255, 250, 240, 0.86);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(16, 27, 24, 0.12);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--cyan);
}
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 24px; letter-spacing: -0.04em; }
.brand small { color: var(--muted); font-size: 13px; }

.navLinks { display: flex; align-items: center; gap: 8px; }
.navLinks a {
  padding: 10px 14px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
}
.navLinks a:hover { border-color: var(--line); background: var(--lime); }
.navLinks .homeLink { color: #fff; background: var(--ink); border-color: var(--line); }
.navLinks .homeLink:hover { color: var(--ink); background: var(--orange); }

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 36px;
}

.heroCopy,
.signalPanel {
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.heroCopy {
  padding: clamp(30px, 5vw, 64px);
  background: var(--paper-2);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heroCopy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
.heroCopy h1 span { display: block; white-space: nowrap; }

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.searchBox { margin-top: 34px; }
.searchBox label { display: block; margin-bottom: 9px; font-weight: 900; }
.searchBox > div { display: flex; }
.searchBox input {
  min-width: 0;
  flex: 1;
  height: 56px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-right: 0;
  outline: none;
}
.searchBox input:focus { box-shadow: inset 0 0 0 3px rgba(184, 232, 93, 0.7); }
.searchBox button {
  min-width: 126px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--line);
  font-weight: 900;
  cursor: pointer;
}
.searchBox button:hover { background: #c9f47a; }

.heroActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.heroActions a,
.remotePanel a,
.remoteOpen {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 2px solid var(--line);
  font-weight: 900;
}
.heroActions .primary { background: var(--ink); color: #fff; }
.heroActions .secondary { background: var(--cyan); }

.signalPanel {
  position: relative;
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  background: var(--cyan);
}
.signalPanel::before {
  content: "找教程";
  position: absolute;
  top: 26px;
  left: 24px;
  z-index: 2;
  padding: 7px 12px;
  background: var(--lime);
  border: 2px solid var(--line);
  font-weight: 900;
}
.heroMascot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.signalHeader,
.signalList,
.logoStamp { position: relative; z-index: 2; }
.signalHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 15px;
  color: #fff;
  background: rgba(16, 27, 24, 0.88);
  border: 2px solid var(--line);
}
.signalHeader span { font-size: 13px; }
.signalHeader strong { font-size: 20px; }
.signalList { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.signalList p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px 8px;
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.signalList b { font-size: 23px; }
.signalList span { color: var(--muted); font-size: 11px; }
.logoStamp { align-self: center; width: 230px; margin-top: 10px; padding: 6px 9px; background: #fff; border: 2px solid var(--line); }
.logoStamp img { display: block; width: 100%; height: 48px; object-fit: contain; }

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.categories button {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--line);
  font-weight: 900;
  cursor: pointer;
}
.categories button:hover,
.categories button.active { background: var(--lime); box-shadow: 4px 4px 0 rgba(16, 27, 24, 0.16); transform: translate(-2px, -2px); }

.sectionIntro { padding: 76px 0 30px; }
.sectionIntro h2,
.workflow h2,
.splitSection h2 { margin: 0; letter-spacing: -0.045em; }
.sectionIntro h2 { max-width: none; font-size: clamp(32px, 4vw, 48px); white-space: nowrap; }
.resultText { color: var(--muted); }

.caseGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 82px; }
.caseCard {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 24px;
  background: var(--paper-2);
  border: 2px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.caseCard:hover { transform: translate(-5px, -5px); box-shadow: 8px 8px 0 rgba(16, 27, 24, 0.15); }
.caseCard.hidden { display: none; }
.caseMeta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 900; }
.caseMeta span { padding: 5px 8px; background: var(--cyan); border: 1px solid var(--line); }
.caseMeta em { color: var(--coral); font-style: normal; }
.caseCard h3 { margin: 24px 0 12px; font-size: 23px; line-height: 1.3; letter-spacing: -0.035em; }
.caseCard p { margin: 0; color: var(--muted); line-height: 1.7; }
.caseFooter { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 22px; font-size: 13px; }
.caseFooter a { padding: 7px 11px; background: var(--lime); border: 1px solid var(--line); font-weight: 900; }

.workflow {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  padding: 64px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.workflow h2 { font-size: clamp(34px, 4vw, 50px); }
.workflow ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.workflow li {
  position: relative;
  min-height: 70px;
  padding: 20px 20px 20px 80px;
  background: var(--paper-2);
  border: 2px solid var(--line);
  line-height: 1.6;
  counter-increment: steps;
}
.workflow li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--lime);
  border: 2px solid var(--line);
  font-weight: 900;
}

.splitSection { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; padding: 78px 0 92px; }
.submitPanel,
.remotePanel { padding: clamp(24px, 4vw, 38px); background: var(--paper-2); border: 2px solid var(--line); box-shadow: var(--shadow); }
.submitPanel { display: grid; gap: 16px; }
.submitPanel h2,
.remotePanel h2 { font-size: clamp(30px, 4vw, 44px); }
.submitPanel label { display: grid; gap: 8px; font-weight: 900; }
.submitPanel input,
.submitPanel textarea,
.submitPanel select { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 2px solid var(--line); outline: none; }
.submitPanel textarea { min-height: 130px; resize: vertical; }
.submitPanel button { min-height: 50px; background: var(--lime); border: 2px solid var(--line); font-weight: 900; cursor: pointer; }
.submitPanel button:disabled { cursor: wait; opacity: 0.62; }
.submitPanel label small { color: var(--muted); font-weight: 400; }
.formTip,
.remotePanel p { color: var(--muted); line-height: 1.75; }
.formTip { margin: 0; padding: 12px 14px; background: #fff8df; border-left: 4px solid var(--orange); }
.formTip.is-success { color: #245b22; background: #efffdf; border-color: var(--lime-dark); }
.formTip.is-error { color: #9e2f28; background: #fff0ee; border-color: var(--coral); }
.remotePanel { background: var(--ink); color: #fff; }
.remotePanel .eyebrow { color: var(--lime); }
.remotePanel p { color: #d7dfdc; }
.remotePanel a,
.remoteOpen { margin-top: 18px; color: var(--ink); background: var(--orange); cursor: pointer; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.modalBackdrop { position: absolute; inset: 0; background: rgba(9, 16, 14, 0.76); backdrop-filter: blur(8px); }
.modalCard {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 48px);
  background: var(--paper-2);
  border: 3px solid var(--line);
  box-shadow: 12px 12px 0 rgba(184, 232, 93, 0.85);
}
.modalClose { position: absolute; top: 14px; right: 14px; display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--ink); border: 2px solid var(--line); font-size: 27px; cursor: pointer; }
.modalCard h2 { max-width: 660px; margin: 0; padding-right: 42px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.05em; }
.modalCard h2 span { display: block; white-space: nowrap; }
.modalLead { color: var(--muted); line-height: 1.75; }
.remoteSteps { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.remoteSteps li { display: grid; gap: 7px; padding: 15px 17px; background: #fff; border: 2px solid var(--line); }
.remoteSteps strong { font-size: 17px; }
.remoteSteps span { color: var(--muted); line-height: 1.65; }
.contactChoices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contactChoices article { display: grid; grid-template-columns: 110px 1fr; gap: 15px; align-items: center; padding: 14px; background: var(--cyan); border: 2px solid var(--line); }
.contactChoices img { width: 110px; height: 110px; object-fit: contain; background: #fff; border: 2px solid var(--line); }
.contactChoices article > div { display: grid; gap: 7px; min-width: 0; }
.contactChoices span { font-weight: 900; }
.contactChoices strong { overflow-wrap: anywhere; font-size: 19px; }
.contactChoices button { min-height: 38px; color: #fff; background: var(--ink); border: 0; font-weight: 900; cursor: pointer; }
.safeTip { margin: 18px 0 0; padding: 13px 15px; color: #7b4812; background: #fff0cf; border: 2px solid var(--orange); line-height: 1.65; }
.modalOpen { overflow: hidden; }

@media (max-width: 940px) {
  .heroGrid,
  .workflow,
  .splitSection { grid-template-columns: 1fr; }
  .signalPanel { min-height: 520px; }
  .caseGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero,
  .categories,
  .sectionIntro,
  .caseGrid,
  .workflow,
  .splitSection { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 12px; padding-bottom: 46px; }
  .nav { align-items: flex-start; padding: 10px; }
  .brand img { width: 54px; height: 54px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 11px; }
  .navLinks { display: flex; }
  .navLinks a:not(.homeLink) { display: none; }
  .navLinks .homeLink { padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  .heroGrid { padding-top: 18px; }
  .heroCopy { padding: 28px 20px; }
  .heroCopy h1 { font-size: clamp(29px, 9.6vw, 40px); letter-spacing: -0.06em; }
  .lead { font-size: 15px; }
  .searchBox > div { display: grid; }
  .searchBox input { width: 100%; border-right: 2px solid var(--line); border-bottom: 0; }
  .searchBox button { min-height: 50px; }
  .heroActions { display: grid; }
  .signalPanel { min-height: 430px; padding: 14px; }
  .signalHeader { align-items: flex-start; flex-direction: column; gap: 4px; }
  .signalList b { font-size: 19px; }
  .signalList span { font-size: 9px; }
  .categories { padding: 20px 0; }
  .categories button { flex: 1 1 calc(50% - 10px); padding-inline: 8px; }
  .sectionIntro { padding-top: 54px; }
  .sectionIntro h2 { white-space: normal; }
  .caseGrid { grid-template-columns: 1fr; padding-bottom: 58px; }
  .caseCard { min-height: 260px; }
  .workflow { padding: 50px 0; }
  .splitSection { padding: 58px 0 68px; }
  .submitPanel,
  .remotePanel { box-shadow: 6px 6px 0 rgba(16, 27, 24, 0.13); }
  .contactChoices { grid-template-columns: 1fr; }
  .contactChoices article { grid-template-columns: 88px 1fr; }
  .contactChoices img { width: 88px; height: 88px; }
  .modal { padding: 10px; }
  .modalCard { max-height: calc(100vh - 20px); padding: 28px 18px; box-shadow: 6px 6px 0 rgba(184, 232, 93, 0.85); }
  .modalCard h2 { padding-right: 34px; font-size: clamp(30px, 9.2vw, 40px); }
  .logoStamp { width: 190px; }
  .logoStamp img { height: 40px; }
}
