:root {
  color-scheme: light;
  --bg: #f3efe8;
  --paper: #fffdf8;
  --paper-soft: #fbf7f0;
  --text: #292724;
  --muted: #716860;
  --line: #ded2c2;
  --brown: #6a5035;
  --brown-dark: #4c3927;
  --green: #2f6b59;
  --blue: #4f6475;
  --shadow: 0 18px 52px rgba(72, 55, 35, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(222, 210, 194, 0.8);
  background: rgba(243, 239, 232, 0.92);
  padding: 16px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(18px);
}

.brand,
.logo-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 680;
  color: var(--brown-dark);
}

.brand img {
  width: 34px;
  height: 34px;
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 9px 13px;
  font-size: 15px;
}

nav a:hover {
  background: rgba(106, 80, 53, 0.08);
  color: var(--brown-dark);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(42px, 6vw, 78px) 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 15px;
  font-weight: 680;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--brown-dark);
  font-size: 68px;
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: #4b4741;
  font-size: 21px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-latest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.hero-latest span {
  color: var(--green);
  font-weight: 680;
}

.hero-latest a {
  border-bottom: 1px solid rgba(76, 57, 39, 0.32);
  color: var(--brown-dark);
  font-weight: 650;
}

.hero-latest a:hover {
  border-bottom-color: var(--brown-dark);
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 650;
}

.primary-link {
  background: var(--brown-dark);
  color: #fffdf8;
}

.secondary-link {
  border: 1px solid var(--line);
  color: var(--brown-dark);
}

.hero-visual {
  min-height: 520px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid rgba(222, 210, 194, 0.9);
  padding-left: clamp(28px, 5vw, 64px);
}

.hero-visual .mark {
  width: min(320px, 58vw);
  height: auto;
  filter: drop-shadow(0 24px 38px rgba(74, 55, 33, 0.12));
}

.flow {
  width: min(360px, 100%);
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  color: var(--brown-dark);
  font-size: 14px;
  font-weight: 650;
}

.flow span {
  text-align: center;
}

.flow b {
  height: 1px;
  background: var(--line);
}

.tools-section,
.games-section,
.pro-tools-section,
.method-section,
.about-section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.tools-section {
  background: var(--paper);
}

.games-section {
  background: #eef1ed;
}

.pro-tools-section {
  background: #f6f1e9;
}

.client-band {
  background: #edf2ee;
}

.counselor-band {
  background: #f6f1e9;
}

.pro-tools-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading h2,
.about-copy h2 {
  max-width: 760px;
  color: var(--brown-dark);
  font-size: 48px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.tool-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.game-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(47, 107, 89, 0.18);
  background: rgba(47, 107, 89, 0.2);
}

.tool-item {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
}

.game-item {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  background: #f8fbf7;
  padding: 26px;
}

.game-item.live {
  background: var(--green);
  color: #fffdf8;
}

.game-item.live.orange {
  background: #8d5732;
}

.tool-item.live {
  background: var(--brown);
  color: #fffdf8;
}

.status {
  width: fit-content;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.18);
  padding: 6px 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.status.muted {
  background: #edf2ee;
  color: var(--green);
}

.tool-item h3,
.game-item h3,
.method-grid h3,
.boundary h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.tool-item p,
.game-item p,
.method-grid p,
.about-copy p,
.boundary p {
  color: var(--muted);
  line-height: 1.78;
}

.tool-item.live p {
  color: #f1e4d3;
}

.game-item.live p {
  color: #eaf2ee;
}

.tool-link {
  margin-top: auto;
  color: #fff7ea;
  font-weight: 700;
}

.toolbox-link {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(76, 57, 39, 0.18);
  border-radius: 8px;
  background: var(--brown-dark);
  color: #fffdf8;
  padding: 24px;
  box-shadow: var(--shadow);
}

.toolbox-link.client-link {
  background: var(--green);
}

.toolbox-link span {
  max-width: 11em;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.toolbox-link b {
  color: #f1e4d3;
  font-size: 15px;
}

.toolbox-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 clamp(42px, 7vw, 72px);
}

.toolbox-hero h1 {
  max-width: 900px;
}

.compact-section {
  padding-top: clamp(34px, 5vw, 60px);
}

.pro-tool-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.pro-tool-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 26px;
}

.pro-tool-card.live {
  background: var(--blue);
  color: #fffdf8;
}

.pro-tool-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
}

.pro-tool-card p {
  color: var(--muted);
  line-height: 1.78;
}

.pro-tool-card.live p {
  color: #edf2f3;
}

.method-section {
  background: var(--paper);
}

.method-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(47, 107, 89, 0.2);
  border: 1px solid rgba(47, 107, 89, 0.18);
}

.method-grid article {
  min-height: 230px;
  background: #f8fbf7;
  padding: 28px;
}

.method-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 720;
}

.about-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(28px, 5vw, 56px);
}

.about-copy p {
  max-width: 720px;
  font-size: 17px;
}

.boundary {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 24px;
  box-shadow: var(--shadow);
}

.boundary h3 {
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px clamp(20px, 5vw, 64px);
  font-size: 14px;
}

.site-footer a {
  color: var(--brown-dark);
  font-weight: 650;
}

.public-security-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.public-security-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 56px;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(222, 210, 194, 0.9);
    padding: 40px 0 0;
  }

  .tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid,
  .game-list,
  .pro-tools-inner,
  .pro-tool-list,
  .about-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 32px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    width: min(100% - 32px, 1180px);
    padding-top: 42px;
  }

  .hero-actions a {
    width: 100%;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow b {
    width: 1px;
    height: 18px;
    justify-self: center;
  }

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

  .tool-item {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
