:root {
  --paper: #f6f0df;
  --paper-deep: #e9ddc3;
  --ink: #17211f;
  --ink-soft: #42524e;
  --jade: #126452;
  --jade-light: #7fb6a5;
  --cinnabar: #b43f2f;
  --bronze: #a57d45;
  --mist: rgba(255, 252, 239, 0.74);
  --line: rgba(23, 33, 31, 0.16);
  --shadow: 0 28px 80px rgba(28, 33, 27, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(18, 100, 82, 0.1) 0 1px, transparent 1px 100%),
    linear-gradient(rgba(18, 100, 82, 0.08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 20% 18%, rgba(180, 63, 47, 0.13), transparent 24rem),
    radial-gradient(circle at 84% 14%, rgba(18, 100, 82, 0.16), transparent 28rem),
    var(--paper);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(110deg, rgba(23, 33, 31, 0.06) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  mix-blend-mode: multiply;
}

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

#ink-circuit {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 18px clamp(20px, 4vw, 72px);
  border-bottom: 1px solid rgba(23, 33, 31, 0.12);
  background: rgba(246, 240, 223, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(180, 63, 47, 0.5);
  background: var(--cinnabar);
  color: #fff7e6;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(255, 247, 230, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  justify-content: center;
  color: rgba(23, 33, 31, 0.74);
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

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

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

.header-action {
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid rgba(23, 33, 31, 0.22);
  background: rgba(255, 252, 239, 0.48);
  color: var(--ink);
  font-size: 14px;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.header-action:hover {
  border-color: var(--jade);
  background: rgba(255, 252, 239, 0.86);
  transform: translateY(-2px);
}

.login-btn {
  border-color: rgba(180, 63, 47, 0.72);
  background: var(--cinnabar);
  color: #fff8e8;
  box-shadow: 0 12px 28px rgba(180, 63, 47, 0.24);
}

.login-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff8e8;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.24);
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
}

.profile-btn.hidden {
  display: none !important;
}

.login-btn.hidden {
  display: none !important;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.profile-btn .default-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jade);
  color: #fff7e6;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-family: "Kaiti SC", "STKaiti", serif;
}

.hidden {
  display: none !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100svh - 80px);
  padding: clamp(58px, 9vw, 118px) clamp(20px, 6vw, 96px) 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cinnabar);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 500;
  line-height: 0.9;
}

.company-hero h1 {
  max-width: 780px;
  font-family: "Ma Shan Zheng", "STXingkai", "Xingkai SC", "Kaiti SC", "STKaiti", cursive;
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    var(--jade) 40%,
    var(--ink) 70%,
    var(--cinnabar) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: inkGradient 8s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(23, 33, 31, 0.12));
}

.product-hero h1 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
}

.product-hero {
  min-height: calc(100svh - 150px);
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: 48px;
}

.product-hero .hero-lede {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.35;
}

.hero-lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  font-size: 15px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.primary-action {
  background: var(--ink);
  color: #fff8e8;
  box-shadow: 0 16px 36px rgba(23, 33, 31, 0.2);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.primary-action:hover {
  box-shadow: 0 22px 44px rgba(23, 33, 31, 0.26);
}

.secondary-action {
  border: 1px solid rgba(23, 33, 31, 0.24);
  background: rgba(255, 252, 239, 0.44);
}

.download-direct {
  min-width: 128px;
}

.product-download-actions {
  gap: 12px;
}

.download-trigger {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.download-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(28, 33, 27, 0.18);
  z-index: 20;
}

.download-panel.show {
  display: block;
  animation: riseIn 200ms ease;
}

.download-panel-title {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 239, 0.5);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-family: inherit;
  transition: all 200ms ease;
}

.download-option:hover {
  border-color: var(--jade);
  color: var(--jade);
  background: rgba(18, 100, 82, 0.04);
}

.download-option svg {
  flex-shrink: 0;
}

.contact-download-options {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.download-option-light {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid rgba(255, 247, 230, 0.3);
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  text-decoration: none;
  font-size: 14px;
  font-family: inherit;
  transition: all 200ms ease;
}

.download-option-light:hover {
  background: rgba(255, 247, 230, 0.24);
  border-color: rgba(255, 247, 230, 0.5);
}

/* ── New Hero: QIANJI INTELLIGENCE ── */
.hero-new {
  position: relative;
  display: block;
  min-height: calc(100svh - 80px);
  padding: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-bottom {
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: clamp(28px, 6vh, 72px);
  left: clamp(20px, 6vw, 96px);
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 680px) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
}

.hero-new .hero-copy {
  max-width: 680px;
}

.hero-new .hero-copy h1 {
  font-family: "Ma Shan Zheng", "STXingkai", "Xingkai SC", "Kaiti SC", "STKaiti", cursive;
  font-size: clamp(44px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    var(--jade) 40%,
    var(--ink) 70%,
    var(--cinnabar) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: inkGradient 8s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(23, 33, 31, 0.12));
}

.hero-new .hero-lede {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1.58;
}

.hero-new .hero-actions {
  align-self: end;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
}

.code-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  border: 1px solid rgba(23, 33, 31, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.92), rgba(221, 232, 215, 0.82)),
    rgba(255, 252, 239, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: riseIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both 260ms;
}

.panel-top {
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(23, 33, 31, 0.14);
  background: rgba(23, 33, 31, 0.05);
}

.panel-top span {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bronze);
}

.panel-top span:nth-child(2) {
  background: var(--cinnabar);
}

.panel-top span:nth-child(3) {
  background: var(--jade);
}

.panel-top strong {
  justify-self: end;
  color: rgba(23, 33, 31, 0.56);
  font-family: Georgia, serif;
  font-size: 13px;
}

.code-grid {
  display: grid;
  grid-template-columns: 54px 1fr;
  min-height: 300px;
}

.code-lines {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 30px 18px;
  border-right: 1px solid rgba(23, 33, 31, 0.12);
  color: rgba(23, 33, 31, 0.38);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px;
}

pre {
  margin: 0;
  padding: 28px 24px;
  overflow: auto;
  color: #16342d;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.75;
}

.insight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(23, 33, 31, 0.14);
}

.insight-row span {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(23, 33, 31, 0.12);
  color: var(--ink-soft);
  font-size: 14px;
}

.insight-row span:last-child {
  border-right: 0;
}

.capability-section,
.products-section,
.flow-section,
.contact-section {
  padding: 96px clamp(20px, 6vw, 96px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-heading.narrow {
  display: block;
  max-width: 680px;
}

.section-heading h2,
.contact-section h2 {
  max-width: 790px;
  margin: 0;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.1;
}

.product-hero ~ .capability-section .section-heading h2,
.product-hero ~ .flow-section .section-heading h2,
.product-hero ~ .contact-section h2 {
  font-size: clamp(24px, 3.2vw, 44px);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid article {
  min-height: 300px;
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 239, 0.36);
  transition:
    background 260ms ease,
    transform 260ms ease;
}

.capability-grid article:hover {
  background: rgba(255, 252, 239, 0.74);
  transform: translateY(-6px);
}

.index {
  display: block;
  margin-bottom: 54px;
  color: var(--cinnabar);
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 28px;
}

.capability-grid h3 {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
}

.capability-grid p,
.flow-line p,
.product-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.product-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  min-height: 280px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 239, 0.44);
  overflow: hidden;
  transition:
    background 260ms ease,
    border-color 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease;
}

.product-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(18, 100, 82, 0.24);
  border-radius: 50%;
}

.active-product:hover {
  border-color: rgba(18, 100, 82, 0.42);
  background: rgba(255, 252, 239, 0.76);
  box-shadow: 0 24px 60px rgba(28, 33, 27, 0.12);
  transform: translateY(-6px);
}

.future-product {
  opacity: 0.72;
}

.product-no {
  color: var(--cinnabar);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.product-card h3 {
  margin: 0 0 16px;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1;
}

.product-card strong {
  position: absolute;
  right: clamp(24px, 4vw, 42px);
  bottom: clamp(22px, 4vw, 38px);
  color: var(--jade);
  font-size: 15px;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 2px solid rgba(18, 100, 82, 0.55);
}

.flow-line div {
  position: relative;
  min-height: 210px;
  padding: 34px 28px 0 0;
}

.flow-line div::before {
  position: absolute;
  top: -9px;
  left: 0;
  width: 16px;
  aspect-ratio: 1;
  content: "";
  border: 2px solid var(--jade);
  background: var(--paper);
  transform: rotate(45deg);
}

.flow-line span {
  display: block;
  margin-bottom: 38px;
  color: var(--bronze);
  font-family: Georgia, serif;
  font-size: 14px;
}

.flow-line strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.product-advantage-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(180, 63, 47, 0.08), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(18, 100, 82, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 239, 0), rgba(234, 226, 206, 0.28));
}

.product-advantage-section .section-heading.narrow {
  max-width: none;
}

.product-advantage-section .section-heading h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(24px, 2.7vw, 38px);
}

.product-advantage-section::before {
  position: absolute;
  inset: 54px clamp(20px, 6vw, 96px) auto auto;
  width: 260px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(18, 100, 82, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 100, 82, 0.14), transparent 64%);
  filter: blur(0.2px);
  pointer-events: none;
}

.product-advantage-section::after {
  position: absolute;
  left: clamp(20px, 6vw, 96px);
  bottom: 80px;
  width: 120px;
  height: 120px;
  content: "";
  border: 1px solid rgba(180, 63, 47, 0.14);
  border-radius: 30px;
  background: radial-gradient(circle, rgba(180, 63, 47, 0.08), transparent 68%);
  transform: rotate(18deg);
  pointer-events: none;
}

.advantage-carousel {
  position: relative;
  z-index: 1;
  max-width: min(1280px, 100%);
  margin: 48px auto 0;
  overflow: visible;
}

.advantage-stage {
  position: relative;
  overflow: visible;
  padding: 0 clamp(36px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.advantage-stage::before,
.advantage-stage::after {
  display: none;
}

.advantage-orbit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.advantage-orbit span {
  position: absolute;
  border: 1px solid rgba(18, 100, 82, 0.18);
  border-radius: 50%;
  animation: advantage-float 8s ease-in-out infinite;
}

.advantage-orbit span:nth-child(1) {
  top: 28px;
  right: 62px;
  width: 138px;
  height: 138px;
  background: radial-gradient(circle, rgba(18, 100, 82, 0.13), transparent 68%);
}

.advantage-orbit span:nth-child(2) {
  right: 37%;
  bottom: 28px;
  width: 84px;
  height: 84px;
  animation-delay: -2.4s;
  background: radial-gradient(circle, rgba(180, 63, 47, 0.1), transparent 68%);
}

.advantage-orbit span:nth-child(3) {
  top: 46%;
  left: 46px;
  width: 60px;
  height: 60px;
  animation-delay: -4.2s;
  background: radial-gradient(circle, rgba(165, 125, 69, 0.12), transparent 68%);
}

.advantage-track {
  position: relative;
  min-height: 500px;
  overflow: visible;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.advantage-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 58px);
  overflow: hidden;
  min-height: 500px;
  padding: clamp(34px, 4.6vw, 58px);
  border: 1px solid rgba(23, 33, 31, 0.13);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 18%, rgba(18, 100, 82, 0.18), transparent 25%),
    radial-gradient(circle at 10% 88%, rgba(180, 63, 47, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 252, 239, 0.96), rgba(234, 226, 206, 0.5)),
    var(--paper);
  box-shadow:
    0 30px 72px rgba(23, 33, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translate3d(0, 0, -140px) scale(0.84);
  filter: blur(4px);
  pointer-events: none;
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(0.18, 0.78, 0.2, 1),
    filter 520ms ease,
    box-shadow 520ms ease;
}

.advantage-slide.is-active {
  z-index: 5;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  box-shadow:
    0 34px 82px rgba(23, 33, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.advantage-slide.is-prev,
.advantage-slide.is-next {
  z-index: 3;
  opacity: 0.52;
  filter: blur(0.6px) saturate(0.9);
  pointer-events: none;
}

.advantage-slide.is-prev {
  transform: translate3d(-54%, 0, -170px) rotateY(13deg) scale(0.82);
  box-shadow: 18px 28px 64px rgba(23, 33, 31, 0.12);
}

.advantage-slide.is-next {
  transform: translate3d(54%, 0, -170px) rotateY(-13deg) scale(0.82);
  box-shadow: -18px 28px 64px rgba(23, 33, 31, 0.12);
}

.advantage-carousel.is-reversing .advantage-slide:not(.is-active):not(.is-prev):not(.is-next) {
  transform: translate3d(-10%, 0, -180px) rotateY(10deg) scale(0.82);
}

.advantage-slide::after {
  position: absolute;
  right: -96px;
  bottom: -118px;
  width: 330px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(18, 100, 82, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 100, 82, 0.12), transparent 66%);
}

.advantage-copy,
.advantage-visual {
  position: relative;
  z-index: 1;
}

.advantage-copy {
  min-width: 0;
}

.advantage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: min(500px, 100%);
  margin-bottom: 24px;
  color: var(--jade);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.advantage-meta span:last-child {
  color: var(--bronze);
}

.advantage-slogan {
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  color: var(--bronze);
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: clamp(27px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 8px 22px rgba(165, 125, 69, 0.13);
}

.advantage-slide h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.22;
  white-space: nowrap;
}

.advantage-slide p:not(.advantage-slogan) {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.88;
}

.advantage-slide.is-active .advantage-meta,
.advantage-slide.is-active .advantage-slogan,
.advantage-slide.is-active h3,
.advantage-slide.is-active .advantage-copy > p:not(.advantage-slogan) {
  animation: advantage-copy-in 680ms cubic-bezier(0.18, 0.78, 0.2, 1) both;
}

.advantage-slide.is-active .advantage-slogan {
  animation-delay: 70ms;
}

.advantage-slide.is-active h3 {
  animation-delay: 120ms;
}

.advantage-slide.is-active .advantage-copy > p:not(.advantage-slogan) {
  animation-delay: 170ms;
}

.advantage-visual {
  min-width: 0;
  animation: visual-breathe 5.2s ease-in-out infinite;
}

.visual-window {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(26, 45, 40, 0.96), rgba(8, 20, 18, 0.94)),
    var(--ink);
  box-shadow:
    0 28px 58px rgba(23, 33, 31, 0.24),
    inset 0 1px 0 rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  transform: rotate(0.001deg);
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 247, 230, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 247, 230, 0.08), transparent),
    rgba(255, 247, 230, 0.04);
}

.visual-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 12px currentColor;
}

.visual-top span:nth-child(2) {
  background: var(--bronze);
}

.visual-top span:nth-child(3) {
  background: var(--jade-light);
}

.visual-top strong {
  margin-left: auto;
  color: rgba(255, 247, 230, 0.72);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.visual-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 22px;
}

.visual-node,
.visual-choice,
.skill-grid span,
.branch-node,
.branch-row span,
.language-body span {
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.08);
  color: rgba(255, 247, 230, 0.88);
  font-size: 14px;
}

.visual-node,
.visual-choice,
.branch-node,
.branch-row span,
.language-body span {
  padding: 13px 15px;
}

.visual-node.primary,
.visual-choice.active,
.branch-node.main {
  border-color: rgba(51, 214, 169, 0.52);
  background: rgba(18, 100, 82, 0.42);
  box-shadow: 0 0 24px rgba(51, 214, 169, 0.16);
}

.visual-connector {
  width: 2px;
  height: 24px;
  margin-left: 24px;
  background: linear-gradient(var(--jade-light), transparent);
  animation: connector-flow 1.8s ease-in-out infinite;
}

.visual-terminal {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--jade-light);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.visual-badge {
  position: absolute;
  right: -14px;
  bottom: -16px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 247, 230, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--jade), #0f4f42);
  color: #fff7e6;
  box-shadow: 0 18px 34px rgba(18, 100, 82, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.doc-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.22);
}

.doc-line.long {
  width: 92%;
}

.doc-line.short {
  width: 58%;
}

.visual-progress {
  overflow: hidden;
  height: 8px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.12);
}

.visual-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade-light), var(--bronze));
  animation: progress-scan 2.4s ease-in-out infinite;
}

.branch-body,
.verify-body,
.language-body {
  align-items: stretch;
}

.branch-row,
.language-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.merge-line {
  height: 42px;
  margin: 0 auto;
  border-left: 2px dashed rgba(51, 214, 169, 0.44);
}

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

.skill-grid span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 0 14px;
  text-align: center;
  line-height: 1.35;
}

.skill-grid .visual-terminal {
  grid-column: 1 / -1;
}

.verify-ring {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  border: 2px solid rgba(51, 214, 169, 0.58);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(51, 214, 169, 0.9), rgba(51, 214, 169, 0.1), rgba(51, 214, 169, 0.9));
  animation: ring-spin 5s linear infinite;
}

.verify-ring span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(23, 33, 31, 0.94);
  color: var(--jade-light);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-body .visual-connector {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0;
}

.advantage-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.advantage-arrow {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 200ms ease, opacity 200ms ease;
}

.advantage-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--jade);
  border-bottom: 1.5px solid var(--jade);
  transition: border-color 200ms ease;
}

.advantage-arrow--prev::before {
  left: 6px;
  transform: translateY(-60%) rotate(135deg);
}

.advantage-arrow--next::before {
  right: 6px;
  transform: translateY(-60%) rotate(-45deg);
}

.advantage-arrow:hover {
  opacity: 0.65;
}

.advantage-arrow:hover::before {
  border-color: var(--ink);
}

.advantage-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.advantage-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 100, 82, 0.25);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.advantage-dots button.is-active {
  width: 34px;
  background: var(--jade);
}

@keyframes advantage-sheen {
  0%, 58% { transform: translateX(-72%); }
  82%, 100% { transform: translateX(72%); }
}

@keyframes advantage-copy-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes advantage-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -12px, 0) scale(1.08); }
}

@keyframes visual-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes connector-flow {
  0%, 100% { opacity: 0.36; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes progress-scan {
  0%, 100% { width: 42%; }
  50% { width: 88%; }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  min-height: 360px;
  border-top: 1px solid rgba(23, 33, 31, 0.16);
  background:
    linear-gradient(120deg, rgba(23, 33, 31, 0.94), rgba(18, 100, 82, 0.9)),
    var(--ink);
  color: #fff7e6;
}

.contact-section .eyebrow {
  color: var(--jade-light);
}

.primary-action.dark {
  background: #fff7e6;
  color: var(--ink);
  white-space: nowrap;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  font-size: 15px;
  line-height: 1.6;
}

.contact-label {
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--jade-light);
  text-decoration: none;
  transition: color 200ms ease;
}

.contact-item a:hover {
  color: #fff7e6;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.06) rotate(5deg);
    opacity: 0.82;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes inkGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .product-hero {
    padding-top: 36px;
  }

  .capability-grid,
  .product-ledger,
  .flow-line {
    grid-template-columns: 1fr 1fr;
  }

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

  .primary-action.dark {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding: 14px 18px;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .brand-mark {
    width: 38px;
    font-size: 21px;
  }

  .hero {
    padding: 52px 18px 48px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .product-hero h1 {
    font-size: clamp(32px, 10vw, 52px);
  }

  .hero-lede {
    font-size: 19px;
  }

  .code-grid {
    grid-template-columns: 42px 1fr;
  }

  .code-lines {
    padding: 24px 12px;
  }

  pre {
    padding: 22px 16px;
  }

  .insight-row {
    grid-template-columns: 1fr;
  }

  .insight-row span {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 33, 31, 0.12);
  }

  .capability-section,
  .products-section,
  .flow-section,
  .contact-section {
    padding: 68px 18px;
  }

  .section-heading {
    display: block;
  }

  .capability-grid,
  .product-ledger,
  .flow-line {
    grid-template-columns: 1fr;
  }

  .hero-bottom {
    right: 18px;
    bottom: 34px;
    left: 18px;
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .hero-new .hero-copy {
    max-width: none;
  }

  .hero-new .hero-copy h1 {
    white-space: normal;
  }

  .hero-new .hero-lede {
    max-width: none;
  }

  .hero-new .hero-actions {
    justify-self: start;
    justify-content: flex-start;
  }

  .product-card {
    grid-template-columns: 1fr;
    min-height: 250px;
  }

  .capability-grid article {
    min-height: 250px;
  }

  .flow-line {
    border-top: 0;
    border-left: 2px solid rgba(18, 100, 82, 0.55);
    margin-left: 8px;
  }

  .flow-line div {
    min-height: 160px;
    padding: 0 0 32px 28px;
  }

  .flow-line div::before {
    top: 3px;
    left: -10px;
  }

  .flow-line span {
    margin-bottom: 18px;
  }

  .product-advantage-section .section-heading h2 {
    white-space: normal;
    font-size: 28px;
  }

  .advantage-carousel {
    margin-top: 32px;
  }

  .advantage-stage {
    overflow: hidden;
    padding: 0;
    border-radius: 0;
  }

  .advantage-stage::before,
  .advantage-stage::after,
  .advantage-orbit {
    display: none;
  }

  .advantage-track,
  .advantage-slide {
    min-height: 690px;
  }

  .advantage-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .advantage-slide.is-prev,
  .advantage-slide.is-next {
    display: none;
  }

  .advantage-meta {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .advantage-slogan {
    font-size: clamp(22px, 6.2vw, 32px);
    white-space: nowrap;
  }

  .advantage-slide h3 {
    font-size: 24px;
  }

  .advantage-slide p:not(.advantage-slogan) {
    font-size: 15px;
  }

  .advantage-visual {
    animation: none;
  }

  .visual-window {
    border-radius: 22px;
  }

  .visual-body {
    min-height: 210px;
    padding: 18px;
  }

  .visual-badge {
    right: 8px;
    bottom: -12px;
  }

  .advantage-controls {
    gap: 12px;
  }

  .advantage-arrow {
    width: 24px;
    height: 24px;
  }

  .advantage-arrow::before {
    width: 8px;
    height: 8px;
  }
}

.message-section {
  padding: 96px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.5), rgba(234, 226, 206, 0.3)),
    var(--paper);
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.message-info {
  padding: 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade);
  background: rgba(255, 252, 239, 0.6);
}

.message-info p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.message-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--jade);
  font-size: 15px;
}

.info-icon {
  font-size: 20px;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.message-form .form-group {
  display: flex;
  flex-direction: column;
}

.message-form .form-group.full-width {
  grid-column: 1 / -1;
}

.message-form label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-family: "Kaiti SC", "STKaiti", serif;
}

.message-form input,
.message-form textarea,
.message-form select {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 239, 0.6);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.message-form input:focus,
.message-form textarea:focus,
.message-form select:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(18, 100, 82, 0.08);
}

.message-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23126452' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}

.message-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  grid-column: 1 / -1;
}

.form-actions .primary-action {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.form-feedback {
  grid-column: 1 / -1;
  padding: 10px 16px;
  font-size: 14px;
  display: none;
}

.char-counter {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
}

.char-counter.is-warning {
  color: var(--cinnabar);
}

.form-feedback.success {
  background: rgba(18, 100, 82, 0.08);
  color: var(--jade);
  border-left: 3px solid var(--jade);
}

.form-feedback.error {
  background: rgba(180, 63, 47, 0.08);
  color: var(--cinnabar);
  border-left: 3px solid var(--cinnabar);
}

.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(180, 63, 47, 0.4);
  border-radius: 50%;
  background: var(--cinnabar);
  color: #fff7e6;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(180, 63, 47, 0.3);
  transition: transform 300ms ease, box-shadow 300ms ease;
  display: grid;
  place-items: center;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(180, 63, 47, 0.4);
}

.chat-fab.active {
  transform: scale(0.9);
  opacity: 0.6;
}

.chat-fab-icon {
  font-size: 30px;
  line-height: 1;
}

.chat-fab::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(180, 63, 47, 0.2);
  animation: chatPulse 2.5s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
}

.chat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 51;
  width: min(400px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 33, 31, 0.18);
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(28, 33, 27, 0.22);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
}

.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(23, 33, 31, 0.94), rgba(18, 100, 82, 0.88));
  color: #fff7e6;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(180, 63, 47, 0.5);
  border-radius: 50%;
  background: var(--cinnabar);
  color: #fff7e6;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 16px;
}

.chat-header strong {
  display: block;
  font-size: 15px;
}

.chat-header small {
  font-size: 11px;
  color: var(--jade-light);
}

.chat-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-size: 20px;
  cursor: pointer;
  transition: background 200ms ease;
  display: grid;
  place-items: center;
}

.chat-close:hover {
  background: rgba(255, 247, 230, 0.24);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 80% 90%, rgba(18, 100, 82, 0.04), transparent 16rem),
    var(--paper);
}

.chat-msg {
  display: flex;
  min-width: 0;
}

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

.chat-msg.bot {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: min(86%, 330px);
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.62;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-msg.bot .chat-bubble {
  border: 1px solid rgba(23, 33, 31, 0.13);
  border-left: 3px solid var(--jade);
  background: rgba(255, 252, 239, 0.82);
  color: var(--ink);
}

.chat-msg.user .chat-bubble {
  background: var(--ink);
  color: #fff8e8;
  border-left: 3px solid var(--cinnabar);
}

.chat-rich {
  display: grid;
  gap: 7px;
}

.chat-rich p,
.chat-rich ul,
.chat-rich ol {
  margin: 0;
}

.chat-rich ul,
.chat-rich ol {
  padding-left: 1.25em;
}

.chat-rich li {
  margin: 3px 0;
  padding-left: 0.1em;
}

.chat-rich strong {
  color: var(--jade);
  font-weight: 700;
}

.chat-rich code {
  padding: 1px 5px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  background: rgba(18, 100, 82, 0.06);
  color: #16342d;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.92em;
  border-radius: 4px;
}

.chat-rich pre {
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  overflow-x: auto;
  border: 1px solid rgba(23, 33, 31, 0.12);
  background: rgba(255, 252, 239, 0.68);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}

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

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 239, 0.9);
}

.chat-input-area textarea {
  flex: 1;
  min-height: 46px;
  max-height: 96px;
  padding: 13px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  outline: none;
  resize: none;
  overflow-y: auto;
}

.chat-input-area textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}

.chat-input-area button {
  padding: 14px 18px;
  border: none;
  background: var(--jade);
  color: #fff8e8;
  font-size: 16px;
  cursor: pointer;
  transition: background 200ms ease;
}

.chat-input-area button:hover {
  background: var(--ink);
}

@media (max-width: 980px) {
  .message-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .message-section {
    padding: 68px 18px;
  }

  .message-form {
    grid-template-columns: 1fr;
  }

  .chat-window {
    right: 8px;
    bottom: 88px;
    width: calc(100vw - 16px);
    height: calc(100vh - 120px);
  }

  .chat-fab {
    bottom: 18px;
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 临时隐藏定价导航入口 */
.nav-links a[href="/pricing"] {
  display: none;
}
