/* =========================================================
   OnlyLink eSIM 引换系统 —— 前端样式
   ========================================================= */
:root {
  --brand: #FF6B2C;
  --brand-dark: #E85A1A;
  --brand-soft: #FFF1E9;
  --link: #2563EB;
  --ink: #1B2130;
  --muted: #6B7280;
  --line: #EDEFF3;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(23, 31, 56, .07);
  --shadow-sm: 0 4px 14px rgba(23, 31, 56, .06);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  position: relative;
  min-height: 100vh;
}

/* 鏁撮〉鑳屾櫙鍥撅紙鍦ｆ墭閲屽凹锛? 鐧借壊鍗婇€忔槑閬僵 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/santorini-bg.jpg") center center / cover no-repeat;
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .08) 14%,
    rgba(255, 255, 255, .45) 30%,
    rgba(255, 255, 255, .82) 44%,
    rgba(255, 255, 255, .95) 60%,
    rgba(255, 255, 255, .97) 100%);
  z-index: -1;
  pointer-events: none;
}

/* 顶部氛围光 */
/* 鏃х増椤堕儴姘涘洿鍏夛紝宸茶 body::before/::after 鏁撮〉鑳屾櫙鍙栦唬 */
.app-bg {
  display: none;
}

.container-x {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 页眉 ---------- */
.site-header {
  padding: 18px 0 6px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), #FF8F5C);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(255, 107, 44, .35);
}
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: .2px;
}
.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: #fff;
  padding: 4px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.lang-switch a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  transition: all .15s;
}
.lang-switch a.active {
  color: #fff;
  background: var(--brand);
}

/* ---------- 语言下拉框 ---------- */
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
  font-family: inherit;
}
.lang-dropdown-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.lang-dropdown-btn > .bi-globe2 { color: var(--brand); font-size: 1rem; }
.lang-dropdown-btn > .bi-chevron-down {
  font-size: .7rem;
  color: var(--muted);
  transition: transform .18s;
}
.lang-dropdown.open .lang-dropdown-btn > .bi-chevron-down { transform: rotate(180deg); }
.lang-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(23,31,56,.14);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .16s ease;
  z-index: 1000;
}
.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background .12s;
}
.lang-dropdown-item:hover { background: var(--brand-soft); color: var(--brand-dark); }
.lang-dropdown-item.active { color: var(--brand); }
.lang-dropdown-item.active > .bi-check-lg { font-size: .85rem; }
.lang-dropdown-item .bi-check-lg { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 18px 8px 22px;
}
.hero-badge {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), #FF9A66);
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 12px 26px rgba(255, 107, 44, .35);
}
.hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: .2px;
}
.hero-sub {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

/* ---------- 棣栧睆妯箙锛坕ndex.php 鐨?.hero-banner 鍖哄潡锛?--------- */
.hero-banner {
  padding: 26px 16px 6px;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}
.hero-banner .hero {
  text-align: left;
  padding: 8px 4px 18px;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand);
  background: rgba(255, 107, 44, .10);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.hero-banner .hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
  text-shadow: 0 2px 6px rgba(255, 255, 255, .95), 0 0 18px rgba(255, 255, 255, .8);
}
.hero-banner .hero-sub {
  color: #4B5563;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(255, 255, 255, .95), 0 0 18px rgba(255, 255, 255, .8);
}
.hero-rule {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #FF9A66);
  margin-top: 16px;
}
.has-hero {
  padding-top: 4px;
}

/* ---------- 面板 ---------- */
.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 16px;
}
.panel-main { padding: 22px 22px 26px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}
.section-label .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

/* ---------- 步骤指示 ---------- */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.stepper-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-width: 0;
  color: #Aeb4C0;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.stepper-item .n {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #EEF0F5;
  color: #Aeb4C0;
  font-size: .82rem;
  font-weight: 800;
  transition: all .2s;
}
.stepper-item.active { color: var(--brand); }
.stepper-item.active .n { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(255,107,44,.35); }
.stepper-item.done .n { background: #10B981; color: #fff; }
.stepper-item.done { color: #10B981; }
.stepper-line {
  flex: 1;
  height: 3px;
  background: #EEF0F5;
  border-radius: 3px;
  margin: 0 8px;
  overflow: hidden;
}
.stepper-line span {
  display: block; height: 100%; width: 0;
  background: var(--brand);
  border-radius: 3px;
  transition: width .3s;
}

.step-q {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 14px;
}

/* ---------- 平台选择 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.platform-btn {
  position: relative;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 18px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all .16s ease;
}
.platform-btn:hover {
  border-color: var(--pc);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.platform-btn .p-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--pc) 12%, white);
  color: var(--pc);
  font-size: 1.3rem;
  transition: all .16s;
}
.platform-btn .p-label { font-size: .84rem; font-weight: 700; }
.platform-btn .p-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pc);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem;
  opacity: 0;
  transform: scale(.4);
  transition: all .18s;
}
.platform-btn.selected {
  border-color: var(--pc);
  background: color-mix(in srgb, var(--pc) 5%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 14%, transparent);
}
.platform-btn.selected .p-icon {
  background: var(--pc);
  color: #fff;
}
.platform-btn.selected .p-check { opacity: 1; transform: scale(1); }

/* ---------- 表单 ---------- */
.input-group-x { margin-bottom: 16px; }
.input-group-x label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 8px;
}
.input-group-x label i { color: var(--brand); margin-right: 4px; }
.input-group-x label .req { color: #E5484D; font-weight: 800; margin-left: 2px; }
.field-input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #FBFCFE;
  border-radius: 13px;
  padding: 12px 15px;
  font-size: .95rem;
  color: var(--ink);
  transition: all .15s;
  outline: none;
}
.field-input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field-input::placeholder { color: #B7BDC9; }
.hint {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 7px;
}
.hint i { color: var(--brand); }

.review-box {
  background: #FAFBFF;
  border: 1.5px dashed #D7DEEC;
  border-radius: 14px;
  padding: 8px 16px;
}

/* ---------- 按钮 ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), #FF8A50);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 13px 18px;
  box-shadow: 0 8px 20px rgba(255, 107, 44, .3);
  transition: all .15s;
}
.btn-brand:hover { color: #fff; filter: brightness(1.04); transform: translateY(-1px); }
.btn-brand:disabled {
  background: #E4E7EE;
  color: #A9AFBC;
  box-shadow: none;
  transform: none;
}
.btn-outline-brand {
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  background: #fff;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-ghost {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 提示块 ---------- */
.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border-radius: 13px;
  padding: 13px 15px;
  font-size: .88rem;
  line-height: 1.55;
}
.notice i { font-size: 1.05rem; margin-top: 1px; }
.notice-warn { background: #FFF8E8; color: #8A6100; }
.notice-warn i { color: #E0A400; }
.notice-danger { background: #FFF0EF; color: #9B2620; }
.notice-danger i { color: #E5484D; }
.notice-soft { background: #F4F6FB; color: var(--muted); }
.notice-soft i { color: #94A0B8; }

/* 客服回复框 */
.reply-box {
  margin-top: 14px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 13px 16px;
}
.reply-box-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.reply-box-body {
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ---------- 迷你信息行 ---------- */
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.mini-row:last-child { border-bottom: none; }
.mini-row span { color: var(--muted); }
.mini-row strong { text-align: right; word-break: break-all; }
.mono { font-family: Menlo, Consolas, monospace; font-size: .84rem; }

/* ---------- 激活两栏 ---------- */
.activation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.qr-card {
  background: linear-gradient(150deg, var(--brand), #FF9A66);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(255, 107, 44, .28);
}
.qr-card-title {
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: 11px;
}
.qr-frame {
  background: #fff;
  border-radius: 12px;
  padding: 9px;
  display: inline-block;
}
.qr-frame img { display: block; border-radius: 6px; }

.manual-card {
  background: #FAFBFF;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}
.manual-head {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.manual-head strong { color: var(--ink); }
.manual-card .field { margin-bottom: 10px; }
.manual-card .field-k {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.manual-card .field-v {
  display: block;
  font-family: Menlo, Consolas, monospace;
  font-size: .78rem;
  color: var(--ink);
  word-break: break-all;
}
.manual-card .btn-ghost { margin-top: auto; }

/* ---------- 安装指南 ---------- */
.guide { display: flex; flex-direction: column; gap: 10px; }
.guide-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .88rem;
  color: #3B4252;
  line-height: 1.6;
}
.guide-item i {
  font-size: 1.2rem;
  color: var(--brand);
  margin-top: 1px;
  width: 22px;
  text-align: center;
}

/* ---------- 状态 Hero ---------- */
.status-hero {
  text-align: center;
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  background: #fff;
}
.status-hero-icon {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
}
.status-hero-title { font-size: 1.35rem; font-weight: 800; }
.status-hero-sub { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.status-hero.pending .status-hero-icon { background: #FFF8E8; color: #E0A400; }
.status-hero.pending .status-hero-title { color: #B27D00; }
.status-hero.approved { background: linear-gradient(160deg, #F2FCF6, #fff); }
.status-hero.approved .status-hero-icon { background: #E7F9EF; color: #10B981; }
.status-hero.approved .status-hero-title { color: #0B8A5B; }
.status-hero.rejected .status-hero-icon { background: #FFF0EF; color: #E5484D; }
.status-hero.rejected .status-hero-title { color: #C03034; }

.empty-icon {
  width: 62px; height: 62px;
  margin: 4px auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #F1F4FA;
  color: #94A0B8;
  font-size: 1.6rem;
}

/* ---------- 信任条 ---------- */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 8px 0 4px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.trust-item i { color: var(--brand); font-size: 1rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  color: #AEB4C0;
  font-size: .8rem;
  padding: 22px 0 30px;
}

code { color: var(--link); font-size: .9em; word-break: break-all; }

/* ---------- 平台订单号引导卡 ---------- */
.guide-card {
  background: linear-gradient(150deg, #FFF9F5, #FFFFFF 55%);
  border: 1.5px solid #FFE3D3;
  border-radius: 16px;
  padding: 15px 16px 13px;
  margin-bottom: 18px;
  animation: guideIn .22s ease;
}
@keyframes guideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.guide-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.guide-card-icon {
  color: var(--brand);
  font-size: 1rem;
  display: inline-flex;
}
.guide-card-title {
  font-weight: 800;
  font-size: .92rem;
  color: var(--ink);
}
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .86rem;
  color: #464E5F;
  line-height: 1.5;
}
.guide-steps .gs-num {
  flex-shrink: 0;
  width: 19px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  margin-top: 1px;
}
.guide-steps .gs-icon {
  flex-shrink: 0;
  color: var(--brand);
  width: 18px;
  text-align: center;
  margin-top: 1px;
}
.guide-steps .gs-text { flex: 1; }
.guide-sample {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed #FFD9C2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.guide-sample-k {
  font-size: .78rem;
  color: var(--muted);
}
.guide-sample-v {
  font-family: Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid #FFE3D3;
  border-radius: 8px;
  padding: 3px 9px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .hero-banner { padding: 18px 16px 2px; }
  .hero-banner .hero-title { font-size: 1.5rem; }
  .hero-banner .hero-sub { font-size: .92rem; }
  .activation-grid { grid-template-columns: 1fr; }
  .platform-grid { gap: 10px; }
  .platform-btn { padding: 14px 6px 12px; }
  .platform-btn .p-icon { width: 40px; height: 40px; font-size: 1.15rem; }
  .platform-btn .p-label {
    font-size: .78rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-title { font-size: 1.4rem; }
  .panel { padding: 20px 17px; }
  .stepper { gap: 6px; margin-bottom: 20px; flex-wrap: wrap; row-gap: 8px; }
  .stepper-item { gap: 6px; }
  .stepper-line { min-width: 14px; }
  /* 窄屏隐藏步骤文字（原来写的 .step-t 与 HTML 的 .t 不匹配，从未生效） */
  .stepper-item .t { display: none; }
}

/* 超窄屏（如 320px）：隐藏横线，每个步骤独占一行，彻底避免横向溢出 */
@media (max-width: 380px) {
  .stepper { gap: 4px; }
  .stepper-line { display: none; }
  .stepper-item { flex: 1 1 100%; }
  .stepper-item .t {
    display: inline;
    font-size: .72rem;
    white-space: normal;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .platform-grid { gap: 8px; }
  .platform-btn { padding: 12px 4px 10px; }
}

/* 兜底：任何情况下不允许整页横向滚动 */
html, body { max-width: 100%; overflow-x: hidden; }

/* ============================================================
   在线客服浮动窗口
   ============================================================ */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1080; }
.chat-fab {
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--brand), #FF8F5C); color: #fff;
  font-size: 24px; box-shadow: 0 8px 24px rgba(255,107,44,.4);
  cursor: pointer; position: relative; transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab.active { background: #111827; box-shadow: 0 8px 24px rgba(17,24,39,.35); }
.chat-fab-dot {
  position: absolute; top: 6px; right: 6px; width: 12px; height: 12px;
  background: #ef4444; border: 2px solid #fff; border-radius: 50%;
}
.chat-panel {
  position: absolute; right: 0; bottom: 72px; width: 340px; max-width: 88vw;
  height: 460px; max-height: 70vh; background: #fff; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(17,24,39,.22); display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-head {
  background: linear-gradient(135deg, var(--brand), #FF8F5C); color: #fff;
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
}
.chat-head-title { font-weight: 800; font-size: 15px; }
.chat-head-close { background: transparent; border: none; color: #fff; font-size: 16px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #f7f8fb; }
.chat-msg { display: flex; margin-bottom: 10px; }
.chat-msg.agent { justify-content: flex-start; }
.chat-msg.visitor { justify-content: flex-end; }
.chat-msg .bubble {
  max-width: 76%; padding: 9px 13px; border-radius: 14px; font-size: 14px;
  line-height: 1.5; word-break: break-word;
}
.chat-msg.agent .bubble { background: #fff; color: #1f2430; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(17,24,39,.08); }
.chat-msg.visitor .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg .who { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 3px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #eef0f4; background: #fff; }
.chat-input {
  flex: 1; resize: none; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 9px 12px; font-size: 14px; font-family: inherit; max-height: 90px; line-height: 1.4;
}
.chat-input:focus { outline: none; border-color: var(--brand); }
.chat-send {
  width: 40px; height: 40px; border: none; border-radius: 50%; flex-shrink: 0;
  background: var(--brand); color: #fff; font-size: 16px; cursor: pointer;
}
.chat-send:hover { background: var(--brand-dark); }

/* ---------- 鐘舵€佹煡璇㈣〃鍗?---------- */
.check-form { display: flex; align-items: stretch; gap: 10px; }
.check-form .field-input { min-width: 0; flex: 1 1 0; }
.check-form .btn { flex: 0 0 auto; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; padding: 0 20px; min-height: 46px;
  white-space: nowrap; line-height: 1.2; }
.check-form .btn i { font-size: 1rem; }

@media (max-width: 767px) {
  body::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .05) 0%,
      rgba(255, 255, 255, .40) 14%,
      rgba(255, 255, 255, .85) 30%,
      rgba(255, 255, 255, .97) 50%,
      rgba(255, 255, 255, .99) 100%);
  }
}
