:root {
  --ink: #1f2933;
  --muted: #5f6f7f;
  --line: #dbe5df;
  --bg: #f7faf8;
  --soft: #eaf5ee;
  --accent: #2f855a;
  --accent-dark: #246b49;
  --blue: #235789;
  --white: #ffffff;
  --danger: #a43b3b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  line-height: 1.65;
}

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;
  min-height: 64px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff7dc;
  box-shadow: inset 0 0 0 1px rgba(234, 174, 40, 0.34);
  overflow: hidden;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--accent-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--white);
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.84);
}

.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 84px 6vw 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 38, 30, 0.76), rgba(11, 38, 30, 0.28)),
    url("/assets/audit-hero.png") center / cover no-repeat;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #c9f4da;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 30px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

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

.band {
  padding: 64px 6vw;
}

.band.alt {
  background: var(--white);
}

.section-head {
  max-width: 880px;
  margin: 0 0 30px;
}

.section-head h2,
.page-title h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
}

.section-head p,
.page-title p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.page-title {
  margin-bottom: 24px;
}

.demo-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mood-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.panel-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-child {
  border-bottom: 0;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
}

.role-button,
.mood-button {
  width: 100%;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.role-button.active,
.mood-button.active {
  border-color: var(--accent);
  background: var(--soft);
}

.chat {
  display: grid;
  grid-template-rows: auto minmax(380px, 58vh) auto;
  overflow: hidden;
}

.chat-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-head strong {
  display: block;
}

.chat-head span {
  color: var(--muted);
  font-size: 14px;
}

.messages {
  overflow-y: auto;
  padding: 18px;
  background: #f3f7f4;
}

.msg {
  display: flex;
  margin-bottom: 14px;
}

.msg.user {
  justify-content: flex-end;
}

.bubble {
  max-width: min(620px, 82%);
  padding: 12px 14px;
  border-radius: 8px;
  white-space: pre-wrap;
  background: var(--white);
  border: 1px solid var(--line);
}

.msg.user .bubble {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chat-form input,
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.chat-form input {
  min-height: 48px;
}

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

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.score-panel {
  overflow: hidden;
}

.score-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 8px;
  color: var(--accent-dark);
}

.score-number span {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
}

.score-number small {
  font-size: 20px;
  font-weight: 700;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mood-tile {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mood-tile.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--soft);
}

.mood-bars {
  display: grid;
  gap: 12px;
}

.mood-bar-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.mood-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3ef;
}

.mood-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.fuel-result {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f7fbf8;
  white-space: pre-wrap;
}

.notice {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #f1d6a8;
  border-radius: 8px;
  color: #6b4d12;
  background: #fff8e6;
}

.footer {
  padding: 28px 6vw;
  color: var(--muted);
  background: #10211a;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer a,
.footer strong {
  color: var(--white);
}

.legal {
  max-width: 920px;
}

.legal h2 {
  margin-top: 32px;
}

.legal p,
.legal li {
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .grid,
  .demo-shell,
  .mood-layout {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 68vh;
    padding-top: 60px;
  }

  .chat {
    grid-template-rows: auto minmax(420px, 58vh) auto;
  }
}
