:root{
  --bg: #aaaaaa;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(163, 163, 163, 0.88);
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.72);
  --muted2: rgba(245,245,247,0.55);
  --border: rgba(255,255,255,0.10);
  --span-color: #4356D3;
  --accent: #1C2BB5; 
  --accent-hover: #2a4bff;
  --shadow: 0 16px 50px rgba(0,0,0,0.55);
  --radius: 18px;
  --color-main: #66616D;
  --color-inline-text: #66616D;
  --font-sans: 'Poppins', sans-serif;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: 'Poppins', sans-serif;
  /* background: var(--bg); */
  color: var(--text);
  min-height: 100vh;
}
button{
  font-family: 'Poppins', sans-serif;
}
h1{
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 1rem;
  /* letter-spacing: 0.2px; */
}
h2{
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.12;
  margin-bottom: 1rem;
}
h3{
  font-family: 'Poppins', sans-serif;
  color: var(--color-inline-text)
}
p, .s3-copy{
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 300;
  /* line-height: 100%; */
  margin: 1rem 0 0;
}
li {
  color: var(--color-main);
  font-size: 13px;
  font-weight: 300;
  font-family: var(--font-sans);
  margin-left: 1rem;
}
.fs-13 {
  font-size: 13px !important;
}
.fs-16 {
  font-size: 16px !important;
}
/* ✅ 背景图 15% opacity（用伪元素，不影响内容透明度） */
.bg{
  position: fixed;
  inset: 0;
  /* z-index: -2; */
  /* left: -108px; */
  /* rotate: calc(90deg); */
  /* background: var(--bg); */
  /* background-image: url("./assets/background-map.jpg"); ✅ 换成你的背景图 */
  /* background-size: cover;
  background-position: center;
  background-repeat:no-repeat; */
}
.bg-map{
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden; /* ✅ 防止旋转后溢出 */
}
/* ✅ 只旋转背景图这一层 */
.bg-map::before{
    content:"";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    /* ✅ 关键：旋转 90 度后要“交换宽高” */
    width: 100vh;
    height: 100vw;
    background-image: url("../assets/background-map.jpg");
    background-size: cover;
    background-position: center;
    /* background-position: 10% calc(10% + 10px); */
    background-repeat: no-repeat;
    opacity: 0.36;
}
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  /* background: radial-gradient(80% 60% at 50% 20%, rgba(255,255,255,0.08) 0%, transparent 55%),
              linear-gradient(to bottom, rgba(10,10,11,0.65), rgba(10,10,11,0.92)); */
  z-index: 0;
}
.bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("../assets/background.jpg"); /* ✅ 换成你的背景图 */
  background-size: cover;
  background-position: center;
  /* background-position: calc(50% + 90px) 50%; */
  background-repeat:no-repeat;
  opacity: 0.15; /* ✅ 15% */
  /* filter: saturate(0.95) contrast(1.02); */
}
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  /* background: radial-gradient(80% 60% at 50% 20%, rgba(255,255,255,0.08) 0%, transparent 55%),
              linear-gradient(to bottom, rgba(10,10,11,0.65), rgba(10,10,11,0.92)); */
  z-index: 0;
}
/* ✅ 页面内容容器（手机中间卡片式） */
.page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px 30px;
}
.shell{
  width: min(460px, 100%);
  /* border: 1px solid var(--border); */
  /* background: #d1d1d1d8; */
  /* backdrop-filter: blur(10px); */
  /* border-radius: 22px; */
  /* box-shadow: var(--shadow); */
  overflow: hidden;
  position: relative;
}
/* 顶部留白让 Logo 更像截图那样“浮在顶部” */
.shell-inner{
  padding: 18px 18px 16px;
}
/* ✅ 顶部 Logo 区 */
.top-logo{
  display:flex;
  justify-content:center;
  padding: 14px 0 8px;
}
.top-logo img{
  height: 28px;
  width: auto;
  opacity: 0.95;
}
/* ✅ 标题区 */
.welcome{
  padding: 30px 12px 10px;
  text-align: left;
}
.welcome h1{
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 1rem;
  /* letter-spacing: 0.2px; */
}
.welcome h1 .accent{
  color: var(--span-color);
}
.welcome h2{
  font-family: 'Poppins', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.welcome p{
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  /* line-height: 100%; */
  max-width: 340px;
  margin: 1rem 0 0;
}
.accent {
  color: var(--span-color);
  font-weight: 500;
}
/* ===== Full-width strip but content is constrained ===== */
.cert-strip{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  /* 更像你截图的“带状条” */
  /* background: rgba(67, 86, 211, 0.18);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(6px); */
}
/* ✅ 关键：内容区域限制宽度（桌面更高级） */
.cert-strip__inner{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
}
/* ===== Marquee engine ===== */
.cert-strip{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}
.cert-strip__inner{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  overflow: hidden;
}
.marquee{
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee__track{
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: marqueeMove var(--dur, 18s) linear infinite;
}
.marquee__group{
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  padding-right: 22px; /* important: keeps the seam consistent */
}
.cert{
  display: block;
  height: 34px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(0.08) contrast(1.05);
  pointer-events: none;
  flex: 0 0 auto;
}
@keyframes marqueeMove{
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--loopW, 600px)), 0, 0); }
}
@media (max-width: 768px){
  .cert-strip__inner{ width: calc(100% - 24px); }
  .cert{ height: 30px; }
  .marquee__group{ gap: 18px; padding-right: 18px; }
}
@media (min-width: 1024px){
  .cert{ height: 36px; }
  .marquee__group{ gap: 26px; padding-right: 26px; }
}
/* ✅ 隐私条款卡片 */
.legal{
  padding: 0 10px 10px;
  display: grid;
  gap: 12px;
}
.legal-card{
  /* background: var(--card); */
  /* border: 1px solid var(--border); */
  /* border-radius: var(--radius); */
  padding: 12px 0;
}
.legal-card h3{
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  /* margin-bottom: 6px; */
  color: var(--color-inline-text);
  text-transform: none;
}
.legal-card p{
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--color-inline-text);
}
/* ✅ Get Started */
.cta{
  padding: 20px 6px 6px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.btn-get-started{
  width: 100%;
  border: none;
  border-radius: 27.5px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  padding: 12px 16px;
  cursor:pointer;
  /* box-shadow: 0 12px 30px rgba(31,58,214,0.28);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease; */
}
.btn-get-started:hover{
  background: var(--accent-hover);
  /* transform: translateY(-1px); */
  /* box-shadow: 0 14px 34px rgba(31,58,214,0.35); */
}
.version{
  font-weight: 300;
  font-size: 10px;
  color: var(--muted);
  /* padding-bottom: 12px; */
}
/* ✅ Footer Links（可选） */
.mini-links{
  display:flex;
  justify-content: center;
  gap: 18px;
  padding: 0 6px 10px;
}
.mini-links a{
  color: rgba(245,245,247,0.55);
  font-size: 11px;
  text-decoration: none;
}
.mini-links a:hover{ color: rgba(245,245,247,0.8); }
/* =========================================
   ✅ Chatbot 原本功能保留：只把位置改成右下角更像常见浮窗
   ========================================= */
/* ===== Overlay ===== */
.chat-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 99998;
}
.chat-overlay.active{ display:block; }
/* ===== Chat box (matches screenshot) ===== */
.chatbot-box{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 20px));
  height: min(720px, calc(100vh - 20px));
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(
    ellipse 190% 60% at 50% 100%,
    rgba(9,84,165,1) 0%,
    rgba(69,178,239,1) 28%,
    rgba(109,214,255,1) 50%,
    rgba(212,243,255,1) 65%,
    rgba(255,255,255,1) 75%,
    rgba(255,255,255,1) 100%
  );
  /* background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.92) 42%,
      rgba(212,243,255,0.90) 65%,
      rgba(109,214,255,0.88) 80%,
      rgba(69,178,239,0.86) 90%,
      rgba(9,84,165,0.90) 100%
    );       */
box-shadow: 0 22px 80px rgba(0,0,0,0.22);
  display: none;
  flex-direction: column;
  z-index: 99999;
}
.chatbot-box.active{ display:flex; }
/* Header */
.chatbot-header{
  background: #1C2BB5;
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-header-left{
  display:flex;
  align-items:center;
  gap: 10px;
}
.chatbot-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: #D9D9D9;
  display:flex;
  align-items:center;
  justify-content:center;
}
.chatbot-avatar img{
  width: max-content;
  height: 100%;
  object-fit: cover;
}
.chatbot-header-meta{
  display:flex;
  flex-direction: column;
  line-height: 1.1;
}
.chatbot-title{
  font-size: 15px;
  font-weight: 400;
}
.chatbot-status{
  font-size: 10px;
  font-weight: 300;
  opacity: .85;
  margin-top: 6px;
}
.chatbot-close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}
.chatbot-close:hover{ background: rgba(255,255,255,0.18); }
/* Body: top white, bottom gradient blue like screenshot */
.chatbot-body{
  /* Make body a column so messages can scroll while chips stay visible */
  flex: 1;
  padding: 18px 20px 14px;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  /* background:
    linear-gradient(to bottom, rgba(255,255,255,1) 50%, #D4F3FF 65%, #6DD6FF 80%, #45B2EF 90%, #1E84D9 95%, #0954A5 100%); */
}
.chatbot-hero{
  padding: 10px 0 14px;
  text-align: center;
}
.chatbot-hero-text{
  font-size: 32px;
  line-height: 42px;
  font-weight: 400;
  color: var(--text);
}
/* Quick cards layout */
.quick-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.quick-card{
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 13px;
  padding: 10px;
  display: flex;
  gap: 10px;
  flex-direction: column; 
  justify-content: space-between;
  /* align-items: flex-start; */
  text-align: left;
  cursor: pointer;
  /* box-shadow: 0 10px 28px rgba(0,0,0,0.06); */
}
.quick-stack{
  display: grid;
  gap: 12px;
}
.quick-icon{
  width: 30px;
  height: 30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: #F3F4F8;
  /* flex: 0 0 22px; */
  font-size: 13px;
}
.chat-icon{
  width: 15px;
  height: 15px;
}
.quick-text{
  font-size: 17px;
  color: var(--color-inline-text);
  /* line-height: 1.25; */
  font-weight: 400;
  font-family: Noto Sans, sans-serif;
  letter-spacing: 5%;
}
.quick-wide{
  margin-top: 8px;
  width: 100%;
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 13px;
  padding: 10px;
  display:flex;
  gap: 12px;
  align-items:center;
  cursor:pointer;
  /* box-shadow: 0 10px 28px rgba(0,0,0,0.06); */
  font-weight: 600;
  color: #222;
}
.quick-wide.outline{
  background: rgba(255,255,255,1);
  /* background: rgba(255,255,255,0.7); */
  border: 1px solid #d9d9d9;
}
.quick-wide-icon{
  width: 30px;
  height: 30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: #F3F4F8;
  font-size: 13px;
}
/* =============================
   ✅ Message UI (ported from indexOri so bot/user bubbles render correctly)
   ============================= */
.chatbot-messages{
  flex: 1;
  overflow-y: auto;
  padding: 6px 2px 12px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot-messages::-webkit-scrollbar{ width: 6px; }
.chatbot-messages::-webkit-scrollbar-track{ background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.12); border-radius: 999px; }
.message{
  display:flex;
  gap: 10px;
  align-items: flex-start;
}
.message.user{ flex-direction: row-reverse; }
.message-avatar{
  min-width: 33px;
  height: 33px;
  border-radius: 999px;
  background: #D9D9D9;
  display:flex;
  align-items:center;
  justify-content:center;
  /* flex: 0 0 28px; */
  overflow: hidden;
}
.message-avatar svg{
  width: 16px;
  height: 16px;
  fill: rgba(0,0,0,0.55);
}
.message-content{
  /* max-width: 78%; */
  background: #fff;
  border: 1px solid #D9D9D9;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  /* line-height: 100%; */
  color: var(--text);
  /* box-shadow: 0 8px 20px rgba(0,0,0,0.05); */
}
.message.user .message-content{
  max-width: 265px;
  /* max-width: 80%; */
  background: #1C2BB5;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.message-time{
  font-size: 11px;
  opacity: 0.6;
  margin-top: 6px;
}
/* Typing dots */
.typing-indicator{
  display:flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
}
.typing-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2){ animation-delay: 0.15s; }
.typing-dot:nth-child(3){ animation-delay: 0.3s; }
@keyframes typingBounce{
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-3px); opacity: .85; }
}
/* =============================
   ✅ Bottom chip options (horizontal scroll)
   ============================= */
/* bottom quick chips container should scroll horizontally */
#quickChips{
  display: none;              /* you control show/hide in JS */
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 8px 14px;
  scrollbar-width: none;      /* Firefox */
}
#quickChips::-webkit-scrollbar{ display:none; } /* Chrome/Safari */
.quick-chip{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
}
.quick-chips{
  cursor: grab;
}

.quick-chips.is-dragging{
  cursor: grabbing;
  user-select: none;
}
.quick-chip__icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #F3F4F8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}
.quick-chip__icon img{
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.quick-chip__text{
  display: inline-block;
  line-height: 1;
  color: #333;
}
/* Bottom quickbar (horizontal swipe pills) */
.quickbar{
  display: none;                 /* hidden by default */
  padding: 8px 14px 6px;
  background: transparent;
}
.quickbar.active{
  display: block;
}
.quickbar-track{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;         /* Firefox */
  white-space: nowrap;
}
.quickbar-track::-webkit-scrollbar{
  display:none;
}
.quickbar-btn{
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.95);
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.quickbar-btn img{
  width: 16px;
  height: 16px;
}
/* Make sure input stays below the quickbar */
.chatbot-input-container{
  padding-top: 8px; /* keep some spacing */
}
/* Input area like screenshot */
.chatbot-input-container{
  padding: 14px 14px 16px;
  background: transparent;
  /* background: linear-gradient(to bottom, rgba(57, 187, 255, 0.20), rgba(57, 187, 255, 0.40)); */
}
.chatbot-input-wrapper{
  display:flex;
  align-items:center;
  gap: 12px;
}
.chatbot-input{
  flex: 1;
  height: 44px;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.10);
  padding: 0 20px;
  outline: none;
  background: rgb(255, 255, 255);
  font-family: 'Poppins', sans-serif;
}
.chatbot-send{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #1C2BB5;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
}
.chatbot-send svg{ width: 18px; height: 18px; fill:#fff; }
.chatbot-send:hover{ filter: brightness(1.05); }
/* Mobile: bottom-sheet feel */
@media (max-width: 520px){
  .chatbot-box{
    left: 50%;
    /* top: auto; */
    bottom: 12px;
    /* transform: translateX(-50%); */
    width: calc(100vw - 55px);
    height: min(78vh, 680px);
    border-radius: 22px;
  }
  .chatbot-hero-text{ font-size: 28px; }
}
/* 你原本的 chat header / message / input 样式可继续沿用
   这里不再重复粘贴，避免与你原本冲突（但如果你想，我也可以把它们统一为更贴合本页风格） */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#privacy-policy, #terms-of-use{
  font-size: 28px;
}

/* footer */
.site-footer{
  display: flex;
  padding: 18px 6px 8px;
  text-align: center;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.site-footer-links{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  /* margin-bottom: 8px; */
}
.site-footer-links a{
  font-size: 12px;
  color: var(--color-inline-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.site-footer-links a:hover{
  opacity: 0.75;
}
.site-footer-copy{
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
/* ✅ 小屏：chatbox 适配 */
@media (max-width: 480px){
  h1{ font-size: 28px; }
  h2{ font-size: 18px; }
  .shell-inner{ padding: 16px 16px 14px; }
  .welcome h1{ font-size: 28px; }
  .welcome h2{ font-size: 24px; }
  .cert{ height: 28px; }
  .chatbot-box{
    width: calc(100vw - 30px);
    height: calc(100vh - 120px);
    right: 12px;
    bottom: 86px;
  }
  #privacy-policy, #terms-of-use{ font-size: 24px; }
  .chatbot-container{ right: 12px; bottom: 12px; }
  .site-footer{ flex-direction: column; gap: 12px; }
}
/* Tablet: content wider */
@media (min-width: 768px){
  h1{ font-size: 38px; line-height: 46px; }
  .shell{ width: min(720px, 100%); }
  .welcome{ padding: 40px 20px 14px; }
  .welcome h1{ font-size: 38px; line-height: 46px; }
  .welcome p{ font-size: 16px; max-width: 520px; }
}
/* Desktop: two-column feel (title left, space more airy) */
@media (min-width: 1024px){
  .shell{ width: min(850px, 100%); }
  .shell-inner{ padding: 26px 28px 18px; }
  .top-logo{ padding: 18px 0 10px; }
  .top-logo img{ height: 30px; }
  .welcome{ padding: 46px 28px 16px; }
  h1{ font-size: 44px; line-height: 54px; }
  .welcome h1{ font-size: 44px; line-height: 54px; }
  .legal{ padding: 0 28px 14px; }
  .cta{ padding: 14px 28px 10px; }
}