:root {
  --ink: #111111;
  --muted: #625d55;
  --paper: #f6f1e8;
  --panel: #fffdf8;
  --line: #ded4c4;
  --red: #a94732;
  --blue: #234c75;
  --yellow: #c49a45;
  --green: #265f51;
  --charcoal: #1d1b17;
  --shadow: 0 24px 70px rgba(29, 27, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.62;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(246, 241, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 118px;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.12);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #f7f1e3;
  background: linear-gradient(145deg, #161513, #493b26);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.18);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: #3f3945;
  font-size: 14px;
  font-weight: 750;
}

.nav a {
  position: relative;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.banner {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px) clamp(18px, 5vw, 70px) 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(196, 154, 69, 0.24), transparent 28%),
    linear-gradient(135deg, #f6f1e8 0%, #ece1cf 58%, #faf7ef 100%);
}

.banner-slides {
  position: relative;
  min-height: clamp(560px, 74vh, 720px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(40px, 6vw, 78px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.banner-copy h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

.banner-copy p:not(.label) {
  max-width: 720px;
  margin: 24px 0 0;
  color: #332f28;
  font-size: clamp(18px, 2.1vw, 22px);
}

.banner-visual {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(196, 154, 69, 0.18), rgba(255, 255, 255, 0)),
    #1d1b17;
  box-shadow: 0 32px 80px rgba(17, 17, 17, 0.18);
}

.banner-visual.dark {
  background:
    linear-gradient(145deg, rgba(169, 71, 50, 0.24), rgba(255, 255, 255, 0)),
    #17191c;
}

.banner-visual.gold {
  color: #1d1b17;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0)),
    #d5b36c;
}

.banner-visual span {
  color: var(--yellow);
  font-weight: 900;
}

.banner-visual.gold span {
  color: #6e4d13;
}

.banner-visual strong {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.banner-visual p {
  margin: 18px 0 0;
  color: currentColor;
  opacity: 0.78;
}

.banner-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 26px;
}

.banner-arrow {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.banner-dots {
  display: flex;
  gap: 9px;
}

.banner-dot {
  width: 34px;
  min-height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(17, 17, 17, 0.22);
  box-shadow: none;
}

.banner-dot.active {
  background: var(--charcoal);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: #fffdf8;
}

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

.hero-copy h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 8vw, 102px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:not(.label),
.page-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #332d38;
  font-size: clamp(18px, 2.1vw, 22px);
}

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

.btn,
button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 7px;
  padding: 11px 17px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.16);
}

.btn.primary,
button {
  color: #fff;
  background: var(--charcoal);
}

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

.diagnosis-card,
.quick-gates a,
.stack article,
.module-grid article,
.tool-card,
.article-card,
.service-card,
.about-card {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.diagnosis-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.diagnosis-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), #e7d0a0, var(--green));
  content: "";
}

.diagnosis-card h2,
.section h2,
.cta-band h2,
.page-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice-list button {
  justify-content: flex-start;
  width: 100%;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.choice-list button:hover,
.choice-list button.active {
  color: #fff;
  background: var(--charcoal);
}

.choice-result,
.result-box {
  margin-top: 16px;
  border: 1px solid rgba(196, 154, 69, 0.34);
  border-radius: 7px;
  padding: 14px;
  color: #312b35;
  background: #fbf1d8;
  font-weight: 750;
}

.quick-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: #fffdf8;
}

.quick-gates a {
  min-height: 170px;
  padding: 20px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.quick-gates a:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 154, 69, 0.48);
  box-shadow: 0 30px 82px rgba(29, 27, 23, 0.16);
}

.quick-gates span {
  color: var(--blue);
  font-weight: 950;
}

.quick-gates strong {
  display: block;
  margin-top: 14px;
  font-size: 24px;
}

.quick-gates p,
.stack p,
.module-grid p,
.tool-card p,
.article-card p,
.service-card p,
.about-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section,
.page-section {
  padding: clamp(52px, 7vw, 90px) clamp(18px, 5vw, 70px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
}

.stack {
  display: grid;
  gap: 14px;
}

.stack article {
  padding: 20px;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.section-head {
  max-width: 860px;
  margin-bottom: 26px;
}

.module-grid,
.tool-grid,
.article-grid,
.service-grid,
.about-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.module-grid article,
.tool-card,
.article-card,
.service-card,
.about-card,
.proof-card {
  padding: 20px;
}

.section-copy {
  max-width: 660px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.proof-intro {
  background: linear-gradient(180deg, #fffdf8, #f6f1e8);
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  background: #111;
  box-shadow: var(--shadow);
}

.proof-card img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  opacity: 0.86;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.proof-card.large img {
  height: 520px;
}

.proof-card:hover img {
  transform: scale(1.035);
  opacity: 0.96;
}

.proof-card div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  background: rgba(17, 17, 17, 0.76);
  backdrop-filter: blur(14px);
}

.proof-card strong,
.proof-card span {
  display: block;
}

.proof-card strong {
  font-size: 24px;
  line-height: 1.15;
}

.proof-card span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
}

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

.case-story {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(196, 154, 69, 0.12), rgba(255, 255, 255, 0)),
    #fffdf8;
  box-shadow: var(--shadow);
}

.case-story.dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(196, 154, 69, 0.18), rgba(255, 255, 255, 0)),
    var(--charcoal);
}

.case-story.dark .label {
  color: #e8d2a1;
}

.case-story h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.case-story p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.case-story.dark p,
.case-story.dark li {
  color: rgba(255, 255, 255, 0.76);
}

.case-story ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding-left: 20px;
  color: #3e3932;
}

.case-story strong {
  display: block;
  border-top: 1px solid rgba(196, 154, 69, 0.28);
  padding-top: 18px;
  color: inherit;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  padding: 14px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.admin-tab {
  justify-content: flex-start;
  width: 100%;
  box-shadow: none;
}

.admin-tab.active {
  color: var(--ink);
  background: #ead6aa;
}

.admin-panels {
  display: grid;
  gap: 18px;
}

.admin-panel,
.admin-output {
  display: none;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.admin-panel.active,
.admin-output {
  display: block;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-draft-list {
  display: grid;
  gap: 12px;
}

.admin-draft {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: #f8f1e3;
}

.admin-draft span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.admin-draft h3 {
  margin-top: 8px;
}

.admin-draft p,
.admin-empty {
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  margin-inline: clamp(18px, 5vw, 70px);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(196, 154, 69, 0.16), rgba(255, 255, 255, 0)),
    #fffdf8;
  box-shadow: var(--shadow);
}

.contact-strip h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.contact-strip p:not(.label) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-strip img {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(17, 17, 17, 0.14);
}

.cta-band {
  margin: 0 clamp(18px, 5vw, 70px) clamp(52px, 7vw, 90px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: clamp(32px, 6vw, 64px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(196, 154, 69, 0.2), rgba(255, 255, 255, 0)),
    var(--charcoal);
  box-shadow: var(--shadow);
}

.cta-band .label {
  color: #e8d2a1;
}

.cta-band .btn.primary {
  color: var(--ink);
  background: #fff8e7;
}

.cta-band .btn {
  margin-top: 22px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 70px);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: #fffdf8;
  color: var(--muted);
}

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

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

.page-hero {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(135deg, #fffdf8, #ece1cf);
}

.tool-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 7px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.article-card a,
.service-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
}

.service-card.featured {
  background: var(--charcoal);
  color: #fff;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.service-card.featured a {
  color: #e9cf91;
}

.price {
  margin: 14px 0 0;
  font-size: 38px;
  font-weight: 950;
}

.signal-panel {
  max-width: 760px;
}

.signal-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.signal-panel p:not(.label) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.56s ease,
    transform 0.56s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-changing {
  opacity: 0.15;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .banner-slide,
  .home-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .banner-slides {
    min-height: 820px;
  }

  .quick-gates,
  .module-grid,
  .tool-grid,
  .article-grid,
  .service-grid,
  .about-grid,
  .proof-grid,
  .proof-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-strip {
    grid-template-columns: 1fr;
  }

  .case-story-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    justify-content: flex-start;
  }

  .btn,
  .hero-actions {
    width: 100%;
  }

  .quick-gates,
  .module-grid,
  .tool-grid,
  .article-grid,
  .service-grid,
  .about-grid,
  .proof-grid,
  .proof-grid.compact {
    grid-template-columns: 1fr;
  }

  .proof-card img,
  .proof-card.large img {
    height: 430px;
  }
}
