/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
:root {
  --orange: #ff8a3d;
  --orange-deep: #f26f1d;
  --cream: #fff7ef;
  --ink: #2a211b;
  --ink-soft: #6b5c51;
  --line: rgba(42, 33, 27, .1);
  --shadow: 0 18px 48px rgba(80, 45, 20, .16);
}
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 88% -10%, #ffe6d1 0%, transparent 62%),
    radial-gradient(900px 520px at -10% 8%, #fff1e2 0%, transparent 58%),
    #fffdfa;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- 导航 ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .5px; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(150deg, #ffb26b, var(--orange));
  box-shadow: 0 6px 16px rgba(255, 138, 61, .35); font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-size: 14.5px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; transition: transform .18s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vw, 72px) clamp(20px, 5vw, 64px) 40px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 56px); align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--orange-deep);
  font-size: 12.5px; letter-spacing: .6px;
}
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -1px; }
.hl {
  background: linear-gradient(120deg, var(--orange), #ff5f8f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 0 26px; max-width: 33em; color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-primary {
  border: 0; cursor: pointer; font: inherit; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, #ffa65c, var(--orange-deep));
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 12px 26px rgba(242, 111, 29, .32);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(242, 111, 29, .38); }
.btn-ghost {
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7); font-weight: 500;
}
.btn-ghost:hover { background: #fff; }
.hero-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--ink-soft); font-size: 14.5px; }
.hero-points li::before { content: "✓"; color: var(--orange); font-weight: 700; margin-right: 9px; }

.hero-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.orb-a { width: 240px; height: 240px; background: radial-gradient(circle, #ffd9b8, transparent 68%); top: -10px; right: 10px; }
.orb-b { width: 200px; height: 200px; background: radial-gradient(circle, #ffe2ec, transparent 68%); bottom: 0; left: 0; }
.card-demo {
  position: relative; width: min(340px, 100%); background: #fff; border-radius: 22px;
  padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .8);
  display: grid; gap: 10px; transform: rotate(-1.6deg);
}
.demo-row {
  background: var(--cream); border-radius: 14px; padding: 11px 14px; font-size: 13.5px;
  color: var(--ink-soft); display: flex; align-items: center; gap: 8px;
}
.demo-row.user { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 5px; }
.demo-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.demo-row.handoff { background: #fff5e8; color: var(--orange-deep); font-size: 12.5px; justify-content: center; border: 1px dashed rgba(242, 111, 29, .35); }

/* ---------- Features ---------- */
.features {
  max-width: 1180px; margin: 20px auto 0; padding: 0 clamp(20px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.feature {
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px; backdrop-filter: blur(8px);
}
.feature-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--cream); font-size: 20px; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.foot {
  max-width: 1180px; margin: 64px auto 0; padding: 26px clamp(20px, 5vw, 64px) 90px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  color: var(--ink-soft); font-size: 13px;
}
.foot-dim { opacity: .6; }

/* ---------- 挂件 ---------- */
.lc-root { position: fixed; right: 22px; bottom: 22px; z-index: 9999; font-size: 14px; }
.lc-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  color: #fff; display: grid; place-items: center;
  background: linear-gradient(145deg, #ffab63, var(--orange-deep));
  box-shadow: 0 14px 30px rgba(242, 111, 29, .4);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: lc-float 3.6s ease-in-out infinite;
}
.lc-fab:hover { transform: scale(1.06); box-shadow: 0 18px 36px rgba(242, 111, 29, .46); }
@keyframes lc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.lc-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #ff3b52; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.lc-badge[hidden] { display: none; }

.lc-panel {
  position: absolute; right: 0; bottom: 76px; width: 372px; height: 572px;
  max-height: min(76vh, 572px); max-width: calc(100vw - 36px);
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(70, 40, 18, .22);
  display: flex; flex-direction: column;
  transform-origin: bottom right;
  animation: lc-in .22s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes lc-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.lc-panel[hidden] { display: none; }

.lc-head {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  background: linear-gradient(135deg, #fff6ec, #ffeede);
  border-bottom: 1px solid var(--line);
}
.lc-avatar {
  width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center;
  background: #fff; font-size: 20px; box-shadow: 0 4px 12px rgba(242, 111, 29, .18);
}
.lc-id { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lc-id strong { font-size: 14.5px; }
.lc-status { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: lc-pulse 1.8s infinite; }
@keyframes lc-pulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.lc-handoff {
  border: 1px solid rgba(242, 111, 29, .3); background: #fff; color: var(--orange-deep);
  font: inherit; font-size: 12.5px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background .16s ease;
}
.lc-handoff:hover { background: #fff3e7; }
.lc-handoff:disabled { opacity: .5; cursor: default; }

.lc-notice {
  padding: 9px 16px; font-size: 12px; color: #8a5a2b; background: #fff8ed;
  border-bottom: 1px solid var(--line); text-align: center;
}

.lc-body {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: #fffdfa; scroll-behavior: smooth;
}
.lc-body::-webkit-scrollbar { width: 6px; }
.lc-body::-webkit-scrollbar-thumb { background: rgba(42, 33, 27, .16); border-radius: 99px; }

.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble {
  padding: 10px 13px; border-radius: 16px; line-height: 1.62; font-size: 13.6px;
  background: #f6efe8; color: var(--ink); border-bottom-left-radius: 6px;
  white-space: pre-wrap; word-break: break-word; animation: lc-pop .18s ease;
}
.msg.user .bubble { background: var(--ink); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.msg.agent .bubble { background: linear-gradient(135deg, #fff2e4, #ffe6d2); border: 1px solid rgba(242, 111, 29, .22); }
.msg .who { font-size: 10.5px; color: var(--ink-soft); margin: 0 4px 3px; }
@keyframes lc-pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.sys {
  align-self: center; font-size: 11.5px; color: #a3713d; background: #fff6ea;
  padding: 6px 12px; border-radius: 999px; text-align: center; max-width: 92%;
}
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #f6efe8; border-radius: 16px; border-bottom-left-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9a595; animation: lc-bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.lc-chips { display: flex; gap: 7px; padding: 0 14px 8px; flex-wrap: wrap; }
.lc-chips button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font: inherit; font-size: 12px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.lc-chips button:hover { border-color: rgba(242, 111, 29, .5); color: var(--orange-deep); }

.lc-input {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px;
  border-top: 1px solid var(--line); background: #fff;
}
.lc-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; font: inherit; font-size: 13.6px; max-height: 110px; line-height: 1.5;
  outline: none; background: #fdfaf7; transition: border-color .16s ease;
}
.lc-input textarea:focus { border-color: rgba(242, 111, 29, .55); background: #fff; }
.lc-input button {
  width: 38px; height: 38px; flex: none; border: 0; border-radius: 13px; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #ffa65c, var(--orange-deep));
  transition: transform .16s ease, opacity .16s ease;
}
.lc-input button:hover { transform: translateY(-1px); }
.lc-input button:disabled { opacity: .45; transform: none; cursor: default; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 260px; }
  .card-demo { transform: none; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 440px) {
  .lc-root { right: 14px; bottom: 14px; }
  .lc-panel { width: calc(100vw - 28px); height: min(72vh, 560px); }
}
