:root {
  color-scheme: light;
  --ink: #20160f;
  --muted: #756458;
  --paper: #f7efe4;
  --cream: #efe0ce;
  --champagne: #d5b58c;
  --gold: #8f5a34;
  --gold-deep: #5f371f;
  --brown: #3a2417;
  --line: rgba(58, 36, 23, .14);
  --chat-primary: #7a4a2b;
  --shadow: 0 28px 76px rgba(58, 36, 23, .2);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(146, 95, 57, .22), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(85, 49, 28, .2), transparent 36%),
    linear-gradient(180deg, #f7efe4 0%, #ead9c5 58%, #d2b18c 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body:not(.site-ready) [data-site="logo"],
body:not(.site-ready) [data-hero-media] img,
body:not(.site-ready) [data-hero-media] video {
  opacity: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(120deg, rgba(58, 36, 23, .06) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 1px 1px, rgba(58, 36, 23, .16) 1px, transparent 0);
  background-size: 38px 38px, 18px 18px;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: var(--site-bg-position, center);
  background-repeat: no-repeat;
  transition: opacity .2s ease;
}

body.has-site-bg {
  background: transparent;
}

body.has-site-bg::after {
  opacity: 1;
}

body.has-site-bg-video::after {
  opacity: 0;
}

.site-bg-media {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.site-bg-media video,
.site-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--site-bg-position, center);
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 82px;
  padding: 0 max(38px, calc((100vw - 1200px) / 2));
  background: rgba(247, 239, 228, .88);
  border-bottom: 1px solid rgba(74, 45, 18, .08);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 164px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 26px);
  flex: 1;
  min-width: 0;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: rgba(21, 18, 13, .74);
  font-size: 15px;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-deep);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.trust-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #9a633c, #5f371f);
  box-shadow: 0 16px 30px rgba(95, 55, 31, .3);
  font-weight: 900;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.home-page {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.home-page::before {
  content: "";
  position: absolute;
  inset: 92px -14vw auto auto;
  width: 58vw;
  height: 58vw;
  max-width: 760px;
  max-height: 760px;
  border: 1px solid rgba(95, 55, 31, .16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .34), rgba(114, 72, 43, .2) 46%, transparent 66%);
  pointer-events: none;
}

.home-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .94;
  background-image:
    linear-gradient(180deg, rgba(247, 239, 228, .86), rgba(235, 216, 194, .8)),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .58), transparent 34%),
    radial-gradient(circle at 78% 44%, rgba(213, 181, 140, .18), transparent 36%),
    radial-gradient(circle, rgba(95, 55, 31, .18) 1px, transparent 1.6px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .32), transparent 34%);
  background-size: auto, auto, auto, 28px 28px, 680px 680px;
  animation: homeBgFloat 18s linear infinite;
}

.home-motion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: screen;
}

.home-motion-bg[hidden] {
  display: none;
}

.home-motion-bg img,
.home-motion-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) saturate(1.08);
}

@keyframes homeBgFloat {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 56px 84px, -120px 80px;
  }
}

.hero-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  align-items: center;
  gap: clamp(30px, 4vw, 56px);
  width: min(1200px, calc(100% - 72px));
  min-height: calc(100vh - 380px);
  margin: 0 auto;
  padding: 8px 0 0;
}

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

.launch-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 22px;
  padding: 0 16px;
  color: #5f371f;
  background: rgba(239, 224, 206, .92);
  border: 1px solid rgba(95, 55, 31, .18);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(95, 55, 31, .12);
  font-weight: 900;
}

h1 {
  max-width: 620px;
  margin: 0;
  color: #5f371f;
  font-family: "Microsoft YaHei", "PingFang SC", "SimHei", Arial, sans-serif;
  font-weight: 1000;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #17110c;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  filter:
    drop-shadow(0 10px 16px rgba(48, 25, 12, .18));
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .28),
    0 10px 18px rgba(48, 25, 12, .14);
}

.hero-title-main,
.hero-title-emphasis {
  display: inline;
}

.hero-title-emphasis {
  display: inline-block;
  margin-left: .06em;
  font-size: 1.12em;
  line-height: .95;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #17110c;
  -webkit-text-stroke: 0;
  filter:
    drop-shadow(0 12px 18px rgba(48, 25, 12, .2));
}

.hero-text {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
  white-space: pre-line;
}

.hero-strip {
  position: relative;
  width: min(100%, 590px);
  aspect-ratio: 16 / 4.2;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid rgba(95, 55, 31, .18);
  border-radius: 22px;
  background: rgba(255, 255, 255, .32);
  box-shadow: 0 18px 42px rgba(58, 36, 23, .13);
}

.hero-strip[hidden] {
  display: none;
}

.hero-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58, 36, 23, .16), transparent 38%, rgba(255, 255, 255, .18));
  pointer-events: none;
}

.hero-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-position, var(--hero-strip-position, center));
  opacity: 0;
  transform: scale(var(--slide-zoom, 1));
  transition: opacity .65s ease;
}

.hero-strip img.active,
.hero-strip img:first-child:last-child {
  opacity: 1;
}

.hero-badges {
  display: none !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(95, 55, 31, .16);
  border-radius: 999px;
  color: #5f371f;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 10px 24px rgba(58, 36, 23, .06);
  font-size: 13px;
  font-weight: 800;
}

.hero-glass-strip {
  display: none !important;
  align-items: center;
  gap: 8px;
  width: min(100%, 520px);
  margin-top: 18px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .64), rgba(239, 224, 206, .45)),
    rgba(255, 255, 255, .28);
  box-shadow: 0 18px 42px rgba(74, 45, 18, .12);
  backdrop-filter: blur(18px);
}

.hero-glass-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  white-space: nowrap;
}

.hero-glass-strip small {
  color: #7f6755;
  font-size: 12px;
  font-weight: 800;
}

.hero-glass-strip b {
  color: #20160f;
  font-size: 14px;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button::before,
.trust-button::before,
.support-chat-button::before,
.floating-chat::before {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 14px;
  line-height: 1;
}

.button.has-custom-icon::before,
.trust-button.has-custom-icon::before,
.support-chat-button.has-custom-icon::before,
.floating-chat.has-custom-icon::before {
  display: none;
}

.button-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
}

.nav .button-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.button.primary::before {
  content: "↓";
}

.button.secondary::before {
  content: "▶";
  color: #5f371f;
  background: rgba(95, 55, 31, .08);
}

.trust-button::before {
  content: "✓";
}

.support-chat-button::before,
.floating-chat::before {
  content: "●";
  font-size: 10px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #9d6843, #5f371f);
  box-shadow: 0 16px 34px rgba(95, 55, 31, .34);
}

.button.secondary {
  color: #5f371f;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(95, 55, 31, .26);
  box-shadow: 0 14px 30px rgba(74, 45, 18, .08);
}

.button.text-button {
  color: #5f371f;
  background: transparent;
  padding-inline: 12px;
}

.hero-support-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(239, 224, 206, .7)),
    rgba(255, 255, 255, .42);
  box-shadow: var(--shadow);
}

.hero-support-card::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .62), transparent 34%),
    radial-gradient(circle at 72% 26%, rgba(95, 55, 31, .28), transparent 42%);
  filter: blur(22px);
  opacity: .72;
  pointer-events: none;
}

.support-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.support-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86) 0%, rgba(238, 221, 200, .76) 46%, rgba(117, 75, 44, .5) 100%),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .44), transparent 28%);
}

.support-card-bg img,
.support-card-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.12) brightness(1.04);
  transform: scale(1.08);
}

.support-orbit {
  position: absolute;
  z-index: 2;
  right: -86px;
  top: -86px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(95, 55, 31, .16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .34), transparent 62%);
}

.support-card-content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 300px;
  padding: 18px;
}

.support-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.support-card-top strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  text-align: center;
  font-size: 21px;
  line-height: 1.2;
}

.support-card-top strong::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #24c063;
  box-shadow: 0 0 0 5px rgba(36, 192, 99, .16), 0 0 18px rgba(36, 192, 99, .42);
}

.support-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(320px, 100%);
}

.support-info-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .68), rgba(239, 224, 206, .52)),
    rgba(255, 255, 255, .34);
  box-shadow: 0 14px 30px rgba(74, 45, 18, .09);
  backdrop-filter: blur(14px);
}

.support-info-grid small {
  display: block;
  flex: 0 0 72px;
  margin-bottom: 0;
  color: var(--muted);
  white-space: nowrap;
}

.support-info-grid b {
  display: block;
  flex: 1 1 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
}

.support-info-grid div:first-child::after {
  content: "";
  width: 30px;
  flex: 0 0 30px;
}

.copy-qq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #9d6843, #5f371f);
  box-shadow: 0 8px 18px rgba(95, 55, 31, .2);
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.copy-qq-button span {
  transform: translateY(-1px);
}

.support-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(190px, 100%);
  min-height: 40px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #3a2417;
  box-shadow: 0 16px 34px rgba(58, 36, 23, .24);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.home-entry-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1200px, calc(100% - 72px));
  margin: -34px auto 22px;
}

.home-entry-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 148px;
  padding: 22px;
  overflow: hidden;
  color: #20160f;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(239, 224, 206, .5)),
    rgba(255, 255, 255, .28);
  box-shadow: 0 22px 48px rgba(74, 45, 18, .12);
  backdrop-filter: blur(18px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-entry-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -42px auto;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(157, 104, 67, .12);
}

.home-entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 104, 67, .38);
  box-shadow: 0 28px 56px rgba(74, 45, 18, .18);
}

.entry-card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #9d6843, #5f371f);
  box-shadow: 0 12px 26px rgba(95, 55, 31, .24);
  font-size: 18px;
  font-weight: 900;
}

.entry-card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home-entry-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.home-entry-card small {
  max-width: 220px;
  color: #6d5947;
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 22px max(38px, calc((100vw - 1200px) / 2));
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, .6), transparent 26%),
    linear-gradient(180deg, #e6d1b7 0%, #b98f68 100%);
}

.footer-grid.compact-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin: 0;
}

.site-footer h2 {
  color: #5f371f;
  font-size: 28px;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: #20160f;
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  color: #51493f;
  line-height: 1.75;
}

.site-footer h2 + p {
  margin-top: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: #5b544b;
}

.footer-bottom a {
  color: #5f371f;
  font-weight: 900;
}

.floating-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #3a2417;
  box-shadow: 0 16px 38px rgba(58, 36, 23, .28);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 36;
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  overflow: hidden;
  border: 1px solid rgba(95, 55, 31, .22);
  border-radius: 22px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 26px 70px rgba(74, 45, 18, .22);
  backdrop-filter: blur(18px);
}

.chat-widget[hidden] {
  display: none;
}

.chat-widget header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  color: #fff;
  background: linear-gradient(135deg, #3a2417, #6b4429);
}

.chat-widget header strong,
.chat-widget header span {
  display: block;
}

.chat-widget header strong {
  font-size: 15px;
  letter-spacing: 0;
}

.chat-widget header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.45;
}

.chat-widget header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-size: 22px;
  cursor: pointer;
}

.chat-quick {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(95, 55, 31, .18);
}

.chat-quick:empty {
  display: none;
}

.chat-quick button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(95, 55, 31, .28);
  border-radius: 999px;
  color: #5f371f;
  background: #f2e3d1;
  font-weight: 800;
  cursor: pointer;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background: #f7efe4;
  font-size: 13px;
  line-height: 1.62;
  color: #2d1b12;
}

.chat-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(95, 55, 31, .18);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.chat-bubble {
  max-width: 82%;
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(95, 55, 31, .18);
  box-shadow: 0 8px 18px rgba(76, 43, 24, .08);
}

.chat-bubble.customer {
  margin-left: auto;
  color: #fff;
  background: var(--chat-primary);
  border-color: var(--chat-primary);
}

.chat-bubble.agent {
  margin-right: auto;
}

.chat-bubble small {
  display: block;
  margin-bottom: 4px;
  opacity: .72;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.chat-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  word-break: break-word;
}

.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chat-attachment {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  border-radius: 12px;
  padding: 7px 10px;
  color: #5c341f;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(95, 55, 31, .18);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}

.chat-attachment.image {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.chat-attachment.image img {
  display: block;
  width: 118px;
  height: 86px;
  object-fit: cover;
  border-radius: inherit;
}

.chat-message {
  position: relative;
  width: fit-content;
  max-width: 82%;
  padding: 9px 12px;
  border: 1px solid rgba(95, 55, 31, .16);
  border-radius: 16px 16px 16px 5px;
  color: #3e2415;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(76, 43, 24, .08);
  font-size: 13px;
  line-height: 1.62;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-message.visitor {
  align-self: flex-end;
  border-radius: 16px 16px 5px 16px;
  color: #fffaf4;
  background: linear-gradient(135deg, #a86a43, #6b3b21);
  border-color: rgba(95, 55, 31, .2);
  box-shadow: 0 10px 22px rgba(95, 55, 31, .2);
}

.chat-message.agent {
  align-self: flex-start;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 84px;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid rgba(95, 55, 31, .16);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, .96), rgba(255, 255, 255, .98));
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid rgba(95, 55, 31, .25);
  border-radius: 16px;
  padding: 11px 13px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: #2d1b12;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 8px 18px rgba(69, 39, 22, .08);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.chat-form input::placeholder,
.chat-form textarea::placeholder {
  color: rgba(69, 39, 22, .48);
  font-size: 12px;
  font-weight: 500;
}

.chat-form input:focus,
.chat-form textarea:focus {
  border-color: #8b4d2a;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(139, 77, 42, .14),
    0 10px 22px rgba(69, 39, 22, .1);
}

.chat-form input {
  grid-column: 1 / -1;
  min-height: 44px;
}

.chat-form textarea {
  min-height: 64px;
  resize: none;
  line-height: 1.55;
}

.chat-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 64px;
  border: 1px solid rgba(95, 55, 31, .2);
  border-radius: 18px;
  padding: 0;
  color: #6f4025;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 20px rgba(80, 43, 24, .1);
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.chat-upload-button::before {
  content: "\2191";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #9f6541, #67391f);
  box-shadow: 0 8px 16px rgba(80, 43, 24, .18);
  font-size: 22px;
  line-height: 1;
}

.chat-upload-button[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #d84c37;
  box-shadow: 0 6px 14px rgba(80, 43, 24, .2);
  font-size: 11px;
  line-height: 1;
}

.chat-upload-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.chat-upload-button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 14px 24px rgba(80, 43, 24, .14);
}

.chat-upload-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.chat-form button {
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #9f6541, #67391f);
  box-shadow: 0 12px 24px rgba(80, 43, 24, .24);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.chat-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(80, 43, 24, .28);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 60;
  transform: translate(-50%, 12px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: #17130d;
  transition: .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cursor-spark {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .98), rgba(238, 194, 124, .86) 42%, rgba(128, 75, 39, .48) 72%, transparent 100%);
  box-shadow:
    0 0 10px rgba(232, 179, 97, .48),
    0 0 20px rgba(107, 63, 34, .22);
  transform: translate(-50%, -50%) scale(.65);
  animation: cursor-spark-fade .72s ease-out forwards;
  mix-blend-mode: screen;
}

@keyframes cursor-spark-fade {
  from {
    opacity: .9;
    transform: translate(-50%, -50%) scale(.65);
  }

  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x, 0px)), calc(-50% + var(--spark-y, -24px))) scale(1.45);
  }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .cursor-spark {
    display: none;
  }
}

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

  .brand img {
    width: 142px;
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 25;
    border-color: rgba(95, 55, 31, .22);
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 235, 217, .82));
    box-shadow: 0 12px 24px rgba(95, 55, 31, .16);
  }

  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(95, 55, 31, .18);
    border-radius: 20px;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .72), transparent 32%),
      linear-gradient(180deg, rgba(255, 250, 240, .98), rgba(236, 216, 190, .96));
    box-shadow: 0 24px 54px rgba(61, 39, 24, .24);
    backdrop-filter: blur(16px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    justify-content: space-between;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(95, 55, 31, .1);
    border-radius: 14px;
    color: #4d2f1c;
    background: rgba(255, 255, 255, .58);
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(95, 55, 31, .06);
  }

  .nav a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9d6843;
    box-shadow: 0 0 0 5px rgba(157, 104, 67, .1);
  }

  .nav a:hover,
  .nav a.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #9d6843, #5f371f);
  }

  .nav a::after {
    display: none;
  }

  .trust-button {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero-section {
    width: min(100% - 32px, 760px);
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px 0 18px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-strip {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .home-entry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 32px, 760px);
    margin-top: 0;
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(26px, 7.4vw, 38px);
  }

  .hero-support-card,
  .support-card-content {
    min-height: 250px;
  }

  .support-card-content {
    padding: 16px;
  }

  .support-card-top,
  .support-info-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .support-card-top strong {
    text-align: center;
  }

  .footer-grid.compact-footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .floating-chat {
    min-width: 68px;
    border-radius: 999px;
  }

  .hero-support-card .support-chat-button {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
  }

  .brand img {
    width: 126px;
  }

  .trust-button {
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-section {
    width: calc(100% - 26px);
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  h1 {
    font-size: clamp(24px, 8vw, 32px);
    text-align: center;
  }

  .hero-text {
    font-size: 17px;
    text-align: center;
  }

  .hero-glass-strip {
    display: grid;
    width: 100%;
    border-radius: 22px;
  }

  .hero-glass-strip span {
    justify-content: space-between;
  }

  .button {
    width: 100%;
  }

  .button.text-button {
    width: auto;
  }

  .hero-support-card,
  .support-card-content {
    min-height: 230px;
  }

  .home-entry-cards {
    grid-template-columns: 1fr;
    width: calc(100% - 26px);
    margin-bottom: 20px;
  }

  .home-entry-card {
    min-height: 126px;
    padding: 18px;
  }

  .home-entry-card small {
    display: block;
    max-width: none;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-footer {
    padding-inline: 22px;
  }

.chat-widget {
    right: 12px;
    bottom: 86px;
  }
}

.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.rich-toolbar button,
.rich-toolbar label {
  width: auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d9c9b6;
  border-radius: 8px;
  background: #fffaf3;
  color: #2a2119;
  font-weight: 800;
}

.rich-toolbar input[type="color"] {
  width: 34px;
  height: 26px;
  padding: 0;
  margin-left: 6px;
}

.rich-editor {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  border: 1px solid #d9c9b6;
  border-radius: 10px;
  background: #fff;
  line-height: 1.8;
  outline: none;
}

.rich-editor:focus {
  border-color: #9a633c;
  box-shadow: 0 0 0 4px rgba(154, 99, 60, .12);
}

.rich-editor img,
.vip-article-card img,
.intro-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 8px;
}

.vip-article-card div {
  max-width: 100%;
  overflow-x: auto;
}

.vip-article-card [style],
.rich-editor [style] {
  max-width: 100% !important;
}
