:root {
  --pine: #071b15;
  --pine-2: #0d3024;
  --paper: #f5f0e4;
  --paper-2: #fffdf7;
  --ink: #18241f;
  --muted: #68756e;
  --gold: #c9a653;
  --gold-light: #ead9a8;
  --line: rgba(24, 36, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.service-header {
  position: sticky;
  z-index: 40;
  top: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 27, 21, .97);
  backdrop-filter: blur(18px);
}

.service-nav {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.service-brand-logo {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
}

.service-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

.service-home-link {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  border-radius: 999px;
  background: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
}

.service-main {
  overflow: hidden;
}

.service-hero {
  position: relative;
  padding: 92px 0 74px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(201, 166, 83, .24), transparent 26%),
    linear-gradient(130deg, #071b15, #0d3527);
}

.service-hero::after {
  position: absolute;
  right: -110px;
  bottom: -250px;
  width: 600px;
  height: 600px;
  content: "";
  border: 1px solid rgba(234, 217, 168, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(234, 217, 168, .025), 0 0 0 160px rgba(234, 217, 168, .015);
}

.service-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr);
  align-items: end;
  gap: 48px;
}

.service-eyebrow {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.service-hero h1 {
  margin: 14px 0 17px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(44px, 5.6vw, 70px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.13;
}

.service-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: 14px;
}

.service-actions {
  display: flex;
  margin-top: 27px;
  gap: 10px;
  flex-wrap: wrap;
}

.service-btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  color: #17231e;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
}

.service-btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: transparent;
}

.service-ledger {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(14px);
}

.service-ledger > span {
  color: rgba(255, 255, 255, .45);
  font-size: 9px;
  letter-spacing: .14em;
}

.service-ledger strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--gold-light);
  font-family: "Songti SC", "STSong", serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
}

.service-ledger p {
  margin: 8px 0 0;
  font-size: 12px;
}

.service-ledger ul {
  display: grid;
  margin: 20px 0 0;
  padding: 17px 0 0;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  list-style: none;
}

.service-ledger li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .65);
  font-size: 10px;
}

.service-ledger li::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #6bdaac;
}

.service-section {
  padding: 78px 0;
}

.service-section.alt {
  background: var(--paper-2);
}

.service-heading {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .6fr);
  align-items: end;
  gap: 34px;
}

.service-heading span {
  color: #806326;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.service-heading h2 {
  margin: 7px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.25;
}

.service-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.service-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.service-card > b {
  color: #94732c;
  font: 700 9px/1 "Bahnschrift", sans-serif;
  letter-spacing: .12em;
}

.service-card h3 {
  margin: 16px 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 23px;
}

.service-card p,
.service-card li {
  color: var(--muted);
  font-size: 11px;
}

.service-card p { margin: 0; }
.service-card ul { margin: 14px 0 0; padding-left: 18px; }

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

.service-chapter {
  display: flex;
  min-height: 245px;
  padding: 25px;
  flex-direction: column;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 8%, rgba(201, 166, 83, .23), transparent 30%),
    linear-gradient(145deg, #0b2b21, #071b15);
}

.service-chapter > span {
  color: var(--gold-light);
  font: 700 9px/1 "Bahnschrift", sans-serif;
  letter-spacing: .13em;
}

.service-chapter h3 {
  margin: 34px 0 7px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 27px;
  font-weight: 600;
}

.service-chapter p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .54);
  font-size: 10px;
}

.service-chapter a {
  margin-top: auto;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
}

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

.service-step {
  padding: 20px;
  border-top: 2px solid #c5a454;
  background: #fff;
}

.service-step b,
.service-step span {
  display: block;
}

.service-step b {
  color: #9b772a;
  font: 600 21px/1 "Bahnschrift", sans-serif;
}

.service-step span {
  margin: 16px 0 4px;
  font-weight: 700;
}

.service-step p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.service-callout {
  display: flex;
  padding: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(120deg, #09251c, #174936);
}

.service-callout h2 {
  margin: 0 0 7px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 30px;
  font-weight: 500;
}

.service-callout p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
}

.service-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, .62);
  background: #071b15;
}

.service-footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 10px;
}

.service-footer a {
  color: var(--gold-light);
}

.mobile-home-button {
  display: none;
}

.chat-shell {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, .8fr) minmax(330px, 1.2fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 27, 21, .1);
}

.chat-intro {
  padding: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 166, 83, .28), transparent 30%),
    linear-gradient(150deg, #09261d, #071b15);
}

.chat-intro span {
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: .14em;
}

.chat-intro h2 {
  margin: 10px 0 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 34px;
  font-weight: 500;
}

.chat-intro p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
}

.chat-tags {
  display: flex;
  margin-top: 24px;
  gap: 7px;
  flex-wrap: wrap;
}

.chat-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0;
}

.chat-window {
  display: flex;
  min-height: 520px;
  padding: 24px;
  flex-direction: column;
  background: #f7f7f2;
}

.chat-log {
  display: grid;
  max-height: 560px;
  overflow-y: auto;
  gap: 10px;
  padding-right: 4px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.chat-bubble {
  max-width: 84%;
  padding: 11px 13px;
  color: #25332c;
  border: 1px solid rgba(7, 27, 21, .08);
  border-radius: 13px 13px 13px 4px;
  background: #fff;
  font-size: 11px;
}

.chat-bubble.user {
  margin-left: auto;
  color: #fff;
  border-color: transparent;
  border-radius: 13px 13px 4px;
  background: #1d5c43;
}

.chat-answer {
  display: grid;
  max-width: calc(84% - 36px);
  gap: 5px;
}

.chat-answer .chat-bubble {
  max-width: 100%;
  white-space: pre-wrap;
}

.voice-button {
  justify-self: start;
  padding: 2px 7px;
  color: #537064;
  border: 1px solid rgba(7, 27, 21, .1);
  border-radius: 999px;
  background: #fff;
  font-size: 8px;
  cursor: pointer;
}

.chat-sources {
  color: rgba(24, 36, 31, .42);
  font-size: 7px;
  line-height: 1.5;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6c8b7c;
  animation: bot-dot 1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }

@keyframes bot-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.chat-prompts {
  display: flex;
  margin-top: auto;
  padding-top: 20px;
  gap: 7px;
  flex-wrap: wrap;
}

.chat-prompts button {
  padding: 6px 10px;
  color: #486155;
  border: 1px solid rgba(7, 27, 21, .11);
  border-radius: 999px;
  background: #fff;
  font-size: 8px;
  cursor: pointer;
}

.chat-form {
  display: grid;
  margin-top: 12px;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
}

.chat-camera {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #355b49;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
}

.chat-camera input {
  display: none;
}

.ai-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b7e61;
  font-size: 9px;
}

.ai-online::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #54d197;
  box-shadow: 0 0 0 3px rgba(84, 209, 151, .12);
}

.human-fab {
  position: fixed;
  z-index: 90;
  bottom: 26px;
  left: 22px;
  display: inline-flex;
  min-height: 48px;
  padding: 6px 14px 6px 7px;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: #0a2a20;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.human-fab img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}

.lead-dialog {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(3, 14, 10, .7);
  backdrop-filter: blur(10px);
}

.lead-dialog[hidden] {
  display: none;
}

.lead-dialog-card {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}

.lead-dialog-card h3 {
  margin: 0 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
}

.lead-dialog-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.lead-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.lead-form {
  display: grid;
  gap: 9px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.lead-form textarea {
  min-height: 74px;
  resize: vertical;
}

.lead-form button {
  min-height: 42px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #1d5d43;
  font-weight: 700;
  cursor: pointer;
}

.human-wecom {
  display: flex;
  min-height: 44px;
  margin-bottom: 6px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 9px;
  background: #1d5d43;
  font-size: 11px;
  font-weight: 800;
}

.lead-form-status {
  min-height: 18px;
  margin: 0;
  color: #9a4033;
  font-size: 9px;
}

body.chat-open .human-fab {
  display: none;
}

@media (max-width: 640px) {
  .chat-answer {
    max-width: calc(88% - 36px);
  }

  .human-fab {
    bottom: 18px;
    left: 14px;
  }
}
.chat-form input {
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

.chat-form button {
  padding: 0 17px;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: #205e45;
  font-size: 11px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .service-nav {
    min-height: 64px;
  }

  .service-nav-links > a:not(.service-home-link) {
    display: none;
  }

  .service-hero-grid,
  .service-heading,
  .chat-shell {
    grid-template-columns: 1fr;
  }

  .service-hero {
    padding: 62px 0 54px;
  }

  .service-hero h1 {
    font-size: 43px;
  }

  .service-ledger {
    margin-top: 10px;
  }

  .service-grid,
  .service-chapter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-process {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-home-button {
    position: fixed;
    z-index: 100;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    min-height: 42px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    color: #14261e;
    border: 1px solid rgba(201, 166, 83, .38);
    border-radius: 999px;
    background: rgba(234, 217, 168, .96);
    box-shadow: 0 9px 30px rgba(7, 27, 21, .22);
    font-size: 11px;
    font-weight: 800;
  }
}

@media (max-width: 560px) {
  .service-shell,
  .service-nav,
  .service-footer-inner {
    width: calc(100% - 28px);
  }

  .service-brand {
    max-width: 215px;
    font-size: 13px;
    line-height: 1.35;
  }

  .service-brand-logo {
    width: 30px;
    height: 30px;
    flex: none;
  }

  .service-hero h1 {
    font-size: 37px;
  }

  .service-hero p {
    font-size: 12px;
  }

  .service-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-section {
    padding: 58px 0;
  }

  .service-grid,
  .service-chapter-grid,
  .service-process {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-chapter {
    min-height: auto;
  }

  .service-callout,
  .service-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-window {
    min-height: 480px;
    padding: 17px;
  }
}
