:root {
  --paper: #f5efe4;
  --panel: #fffaf2;
  --ink: #24201d;
  --muted: #756b62;
  --line: rgba(36, 32, 29, 0.14);
  --red: #a64036;
  --red-dark: #7e2f29;
  --green: #426354;
  --blue: #315f78;
  --shadow: 0 20px 60px rgba(36, 32, 29, 0.14);
  --side: 232px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 32, 29, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(36, 32, 29, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.68;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
.case-list article,
.guide-columns article,
.screen-row figure,
.cover-card,
.quick-ledger div,
.faq-ledger details {
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    opacity 0.22s ease;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
}

.desk-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #f9f2e6;
  background: #24201d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mark {
  display: grid;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.mark img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid rgba(255, 250, 242, 0.82);
  border-radius: 50%;
}

.desk-nav nav {
  display: grid;
  gap: 8px;
}

.desk-nav nav a {
  padding: 10px 12px;
  color: rgba(249, 242, 230, 0.76);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.desk-nav nav a:hover,
.desk-nav nav a:focus-visible {
  color: #fff;
  background: rgba(166, 64, 54, 0.32);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.download-pill {
  margin-top: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-weight: 900;
}

.workspace {
  min-width: 0;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 44px) 32px;
}

.lead-record {
  min-height: 0;
  padding: 18px 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.record-copy {
  max-width: 560px;
}

.label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

  h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  color: var(--green);
}

strong {
  color: var(--red);
  font-weight: 900;
}

.record-copy > p:not(.label) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.lead-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.primary:hover,
.button.primary:focus-visible,
.download-pill:hover,
.download-pill:focus-visible {
  background: var(--red-dark);
  box-shadow: 0 12px 28px rgba(166, 64, 54, 0.28);
  transform: translateY(-2px);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.7);
  border-color: var(--line);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  color: var(--red);
  border-color: rgba(166, 64, 54, 0.36);
  background: #fffaf2;
  box-shadow: 0 10px 26px rgba(36, 32, 29, 0.1);
  transform: translateY(-2px);
}

.cover-card {
  position: relative;
  margin: 0;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.cover-card::before {
  position: absolute;
  left: 28px;
  top: -16px;
  width: 130px;
  height: 28px;
  background: rgba(166, 64, 54, 0.2);
  content: "";
  transform: rotate(-5deg);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.cover-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cover-card:hover {
  box-shadow: 0 26px 74px rgba(36, 32, 29, 0.2);
  transform: rotate(0deg) translateY(-4px);
}

.quick-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 12px 0 46px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(36, 32, 29, 0.08);
}

.quick-ledger div {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.quick-ledger div:first-child {
  border-left: 0;
}

.quick-ledger span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-ledger strong {
  display: block;
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.2;
}

.quick-ledger div:hover {
  background: #fff3e6;
  box-shadow: inset 0 -3px 0 var(--red);
}

.module-title {
  max-width: 760px;
  margin-bottom: 22px;
}

.module-title.compact {
  margin-bottom: 20px;
}

.module-title h2,
.split-module h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.22;
  letter-spacing: 0;
}

.module-title p:last-child,
.split-module p {
  color: var(--muted);
}

.case-wall,
.guide-board,
.screens-drawer,
.faq-ledger {
  margin-top: 58px;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.case-list article {
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 0;
}

.case-list article:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.case-list article:last-child {
  border-radius: 0 8px 8px 0;
}

.case-list article:hover {
  position: relative;
  z-index: 2;
  background: #fff4e8;
  border-color: rgba(166, 64, 54, 0.38);
  box-shadow: 0 18px 42px rgba(36, 32, 29, 0.14);
  transform: translateY(-6px);
}

.case-list b {
  margin-bottom: auto;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.case-list h3,
.guide-columns h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.case-list p,
.guide-columns p {
  margin: 0;
  color: var(--muted);
}

.case-list article:hover b,
.case-list article:hover h3 {
  color: var(--red);
}

.split-module {
  margin-top: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 22px;
  background: #e8dece;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.split-module figure {
  margin: 0;
}

.split-module img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split-module figure {
  overflow: hidden;
  border-radius: 8px;
}

.split-module figure img {
  transition: transform 0.36s ease, filter 0.36s ease;
}

.split-module figure:hover img {
  filter: contrast(1.06) saturate(1.08);
  transform: scale(1.035);
}

.split-module ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.split-module li + li {
  margin-top: 8px;
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.guide-columns article {
  padding: 18px;
  background: #24201d;
  color: #fffaf2;
  border-radius: 8px;
  border: 1px solid rgba(255, 250, 242, 0.08);
}

.guide-columns article:hover {
  background: #2d2925;
  border-color: rgba(226, 196, 111, 0.38);
  box-shadow: 0 18px 42px rgba(36, 32, 29, 0.18);
  transform: translateY(-5px);
}

.guide-columns span {
  color: #e2c46f;
  font-size: 12px;
  font-weight: 900;
}

.guide-columns p {
  color: rgba(255, 250, 242, 0.72);
}

.screens-drawer {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.screen-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 36%);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.screen-row figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}

.screen-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.36s ease, filter 0.36s ease;
}

.screen-row figure:hover {
  box-shadow: 0 16px 38px rgba(36, 32, 29, 0.18);
  transform: translateY(-5px);
}

.screen-row figure:hover img {
  filter: contrast(1.08) saturate(1.08);
  transform: scale(1.05);
}

.screen-row figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(36, 32, 29, 0.72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid rgba(166, 64, 54, 0.38);
  outline-offset: 3px;
}

.faq-ledger {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.faq-ledger .module-title {
  position: sticky;
  top: 24px;
}

.faq-ledger details {
  grid-column: 2;
  padding: 17px 19px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-ledger details + details {
  margin-top: 12px;
}

.faq-ledger details:hover {
  border-color: rgba(166, 64, 54, 0.34);
  box-shadow: 0 12px 32px rgba(36, 32, 29, 0.1);
  transform: translateY(-2px);
}

.faq-ledger summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.faq-ledger p {
  margin: 12px 0 0;
  color: var(--muted);
}

.workspace-footer {
  margin-top: 58px;
  padding: 22px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.workspace-footer p {
  margin: 0;
}

.workspace-footer a {
  color: var(--red);
  font-weight: 900;
}

.workspace-footer a:hover,
.workspace-footer a:focus-visible {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .site-frame {
    grid-template-columns: 1fr;
  }

  .desk-nav {
    position: static;
    height: auto;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .mark {
    display: flex;
    align-items: center;
  }

  .desk-nav nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .lead-record,
  .split-module,
  .faq-ledger {
    grid-template-columns: 1fr;
  }

  .faq-ledger details,
  .faq-ledger .module-title {
    grid-column: auto;
    position: static;
  }

  .guide-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 24px 14px 28px;
  }

  .desk-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .desk-nav nav a {
    padding: 8px 10px;
  }

  .download-pill {
    width: 100%;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .module-title h2,
  .split-module h2 {
    font-size: clamp(22px, 8vw, 30px);
  }

  .lead-record {
    min-height: auto;
    gap: 22px;
    padding: 8px 0 10px;
  }

  .lead-actions,
  .workspace-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .cover-card {
    transform: none;
  }

  .quick-ledger,
  .guide-columns {
    grid-template-columns: 1fr;
  }

  .quick-ledger div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quick-ledger div:first-child {
    border-top: 0;
  }

  .case-list {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .case-list article,
  .case-list article:first-child,
  .case-list article:last-child {
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .case-list article + article {
    margin-top: 12px;
  }

  .split-module,
  .screens-drawer {
    padding: 18px;
  }

  .screen-row {
    grid-auto-columns: 86%;
  }

  .desk-nav nav a:hover,
  .desk-nav nav a:focus-visible,
  .case-list article:hover,
  .guide-columns article:hover,
  .screen-row figure:hover,
  .faq-ledger details:hover,
  .button.primary:hover,
  .button.primary:focus-visible,
  .button.ghost:hover,
  .button.ghost:focus-visible,
  .download-pill:hover,
  .download-pill:focus-visible {
    transform: none;
  }
}
