:root {
  --ink: #102524;
  --ink-soft: #415a57;
  --deep: #0f2c2b;
  --deep-2: #173c39;
  --mint: #72f1c1;
  --mint-soft: #dffbf1;
  --paper: #f5f2e9;
  --card: #fffdf7;
  --line: #d9d6ca;
  --warn: #c4552e;
  --warn-soft: #fff0e8;
  --shadow: 0 24px 70px rgba(15, 44, 43, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 5%, rgba(114, 241, 193, .24), transparent 31rem),
    radial-gradient(circle at 88% 24%, rgba(245, 179, 107, .15), transparent 26rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
}
button, textarea { font: inherit; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; background: var(--mint); color: var(--deep); padding: 10px 14px; border-radius: 10px; z-index: 90; }
.skip-link:focus { top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(245, 242, 233, .82);
  border-bottom: 1px solid rgba(15, 44, 43, .09);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  background: var(--deep); color: var(--mint); font-weight: 900; font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.brand small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 1px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.online { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #18a46d; box-shadow: 0 0 0 0 rgba(24, 164, 109, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(24, 164, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 164, 109, 0); } }
.ghost-button {
  border: 1px solid rgba(15, 44, 43, .18); background: rgba(255, 253, 247, .72);
  color: var(--ink); border-radius: 999px; padding: 9px 14px; font-weight: 700; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.ghost-button:hover { background: #fff; border-color: rgba(15, 44, 43, .35); transform: translateY(-1px); }
.ghost-button.small { padding: 7px 12px; font-size: 12px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 44px; padding: 70px 0 38px; align-items: end; }
.eyebrow { margin: 0 0 16px; color: #367469; font-size: 12px; letter-spacing: .18em; font-weight: 850; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 860; }
.hero-lede { max-width: 660px; margin: 26px 0 0; color: var(--ink-soft); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chips span { background: rgba(255, 253, 247, .72); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 700; color: #35514e; }
.hero-note { border-left: 3px solid var(--warn); padding: 4px 0 4px 20px; }
.note-label { color: var(--warn); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.hero-note p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }

.main-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(300px, .72fr); gap: 24px; align-items: start; padding-bottom: 70px; }
.chat-panel {
  background: var(--card); border: 1px solid rgba(15, 44, 43, .13); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; min-height: 660px; display: flex; flex-direction: column;
}
.chat-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 19px 22px; background: var(--deep); color: #fff; }
.assistant-line { display: flex; gap: 12px; align-items: center; }
.assistant-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--deep); font-weight: 900; }
.chat-head h2 { margin: 0; font-size: 15px; }
.chat-head p { margin: 2px 0 0; color: rgba(255, 255, 255, .66); font-size: 12px; }
.chat-head .ghost-button { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); }
.messages { flex: 1; padding: 24px 22px 8px; overflow-y: auto; max-height: 560px; min-height: 350px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.message { max-width: 82%; border-radius: 18px; padding: 13px 15px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.assistant { align-self: flex-start; background: #edf4ef; border-bottom-left-radius: 6px; }
.message.user { align-self: flex-end; background: var(--deep); color: #fff; border-bottom-right-radius: 6px; }
.message.system { align-self: center; background: var(--warn-soft); color: #803617; border: 1px solid #f0c8b6; font-size: 12px; text-align: center; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 17px; background: #edf4ef; border-radius: 18px; }
.typing i { width: 6px; height: 6px; background: #6d8c84; border-radius: 50%; animation: blink 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { to { opacity: .25; transform: translateY(-2px); } }
.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 22px 2px; }
.quick-replies button { border: 1px solid #bdd6ce; background: #f7fffb; color: #1d544c; padding: 8px 11px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 700; }
.quick-replies button:hover { background: var(--mint-soft); }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 14px 18px 10px; border-top: 1px solid #e8e5da; margin-top: 8px; }
.composer textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 130px; border: 1px solid #d1d6cc; border-radius: 14px;
  padding: 12px 14px; background: #fff; color: var(--ink); outline: none; line-height: 1.45;
}
.composer textarea:focus { border-color: #4b9d8b; box-shadow: 0 0 0 3px rgba(75, 157, 139, .14); }
.send-button { border: 0; background: var(--deep); color: var(--mint); border-radius: 14px; padding: 14px 17px; font-weight: 850; cursor: pointer; min-width: 76px; }
.send-button:disabled { opacity: .55; cursor: wait; }
.privacy-line { margin: 0; padding: 0 22px 17px; color: #70827e; font-size: 10.5px; line-height: 1.45; }
.side-stack { display: grid; gap: 18px; }
.side-card { background: rgba(255, 253, 247, .72); border: 1px solid rgba(15, 44, 43, .12); border-radius: 22px; padding: 24px; }
.side-card.accent { background: var(--deep); color: #fff; }
.side-kicker { color: #3c7b70; font-size: 10.5px; letter-spacing: .15em; font-weight: 850; text-transform: uppercase; }
.side-card.accent .side-kicker { color: var(--mint); }
.side-card h2 { margin: 6px 0 18px; font-size: 24px; letter-spacing: -.025em; }
.service-list { display: grid; gap: 0; }
.service-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid #e3e0d5; }
.service-item:first-child { border-top: 0; padding-top: 0; }
.service-num { color: #7a8f8a; font-size: 11px; font-weight: 800; padding-top: 2px; }
.service-item p { margin: 0; font-size: 13px; font-weight: 650; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.flow-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.flow-list span { color: var(--mint); font-size: 11px; font-weight: 900; letter-spacing: .08em; padding-top: 3px; }
.flow-list p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 13px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-actions a { text-decoration: none; padding: 9px 12px; border-radius: 11px; background: var(--mint-soft); color: var(--deep); font-weight: 750; font-size: 12px; }
.site-footer { border-top: 1px solid rgba(15, 44, 43, .12); padding: 24px 0 36px; color: var(--ink-soft); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

@media (max-width: 920px) {
  .hero, .main-grid { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-top: 48px; }
  .hero-note { max-width: 650px; }
  .chat-panel { min-height: 620px; }
  .messages { max-height: 490px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .header-inner { min-height: 66px; }
  .online { display: none; }
  .brand small { font-size: 10px; }
  .hero { padding: 36px 0 26px; }
  .hero h1 { font-size: clamp(35px, 12vw, 52px); }
  .hero-lede { font-size: 15px; margin-top: 18px; }
  .chat-panel { border-radius: 20px; min-height: 600px; }
  .chat-head, .messages, .quick-replies, .composer, .privacy-line { padding-left: 14px; padding-right: 14px; }
  .messages { padding-top: 18px; max-height: 440px; }
  .message { max-width: 90%; font-size: 14px; }
  .privacy-line { font-size: 10px; }
  .send-button { min-width: 62px; padding-inline: 13px; }
  .side-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
