/* ================================================================
   Design System — 企业网盘（主色 #165DFF）
   原则：深蓝灰画布 + #165DFF 点缀 · 玻璃面板层级 · 光效克制
================================================================ */
:root {
  /* Brand */
  --accent:        #165DFF;
  --accent-hover:  #4080FF;
  --accent-pressed:#0E42D2;
  --accent-soft:   #94BFFF;
  --accent-muted:  rgba(22, 93, 255, 0.14);
  --accent-muted-2:rgba(22, 93, 255, 0.08);
  --accent-border: rgba(148, 191, 255, 0.28);
  --accent-glow:   rgba(22, 93, 255, 0.22);

  /* Neutrals — 深蓝灰（非纯黑） */
  --bg-base:       #080b10;
  --bg-elevated:   #0c1119;
  --bg-surface:    #121a26;
  --bg-surface-2:  #172030;
  --bg-overlay:    rgba(8, 11, 16, 0.92);

  /* Text */
  --text:          #F1F5F9;
  --text-secondary:rgba(241, 245, 249, 0.78);
  --text-muted:    rgba(241, 245, 249, 0.45);
  --text-sub:      var(--text-secondary);

  /* Borders — 发丝高光 */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default:rgba(255, 255, 255, 0.1);
  --border-strong: rgba(148, 191, 255, 0.28);
  --white-line:    var(--border-subtle);
  --white-line-m:  var(--border-default);

  /* Glass surfaces */
  --white-glass:   rgba(18, 26, 38, 0.65);
  --white-glass-h: rgba(23, 32, 48, 0.85);
  --white-border:  var(--border-default);

  /* Layout */
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --radius-full:   999px;
  --glass-blur:    16px;

  /* Elevation — 深蓝投影 */
  --shadow-sm:     0 1px 0 rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow:        0 2px 0 rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-hover:  0 2px 0 rgba(0, 0, 0, 0.3), 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 2px 0 rgba(14, 66, 210, 0.45), 0 8px 28px rgba(22, 93, 255, 0.22);

  /* Motion */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --duration:      0.22s;

  /* Legacy aliases */
  --accent-light:  var(--accent-hover);
  --accent-dark:   var(--accent-pressed);
  --black-1:       #05070a;
  --black-2:       var(--bg-elevated);
  --black-3:       var(--bg-base);
  --black-4:       #020305;
}

/* ================================================================
   Reset
================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* 避免正文高度变化时出现/消失纵向滚动条，挤压视口宽度导致首屏重排上移 */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: var(--text);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(22, 93, 255, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(64, 128, 255, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, var(--black-1) 0%, var(--bg-base) 35%, var(--bg-base) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.2; color: var(--text); font-weight: 700; }
img { display: block; max-width: 100%; }
svg { display: block; }
input, select, textarea, button { font-family: inherit; }

::selection {
  background: var(--accent-muted);
  color: var(--text);
}

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

/* ================================================================
   Page glow orbs
================================================================ */
.page-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  animation: float 24s ease-in-out infinite;
}
.orb-a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(22, 93, 255, 0.22) 0%, transparent 64%);
  top: -120px; right: -60px; animation-delay: 0s;
}
.orb-b {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(64, 128, 255, 0.1) 0%, transparent 60%);
  bottom: 10%; left: -80px; animation-delay: -7s;
}
.orb-c,
.orb-d { display: none; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(28px,-36px) scale(1.04); }
  66%      { transform: translate(-18px,22px) scale(0.97); }
}

/* ================================================================
   Header — frosted bar
================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-default);
  transition: background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(12, 17, 25, 0.88);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand-icon svg { width: 38px; height: 38px; }

/* Logo image — white bg handled via rounded card */
.brand-logo-img {
  height: 44px; /* 40px × 110% */
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 12px rgba(0, 0, 0, 0.4));
}

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--duration), background var(--duration);
}
.menu a:hover { color: var(--accent-soft); background: var(--accent-muted); }
.menu a:focus-visible { outline-offset: -2px; }
.menu .nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-accent);
  transition: background var(--duration), transform var(--duration), box-shadow var(--duration);
}
.menu .nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================================
   Hero
================================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 56px 0 70px;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 45% at 85% 15%, rgba(22, 93, 255, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, transparent 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.42;
}
.blob1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(22, 93, 255, 0.35) 0%, transparent 70%);
  top: -100px; right: -5%;
  animation: float 22s ease-in-out infinite;
}
.blob2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(148, 191, 255, 0.12) 0%, transparent 68%);
  bottom: -60px; left: -80px;
  animation: float 17s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 72% 60% at 75% 40%, rgba(0, 0, 0, 0.95) 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 72% 60% at 75% 40%, rgba(0, 0, 0, 0.95) 0%, transparent 75%);
}

.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* start：右侧配图解码/占位高度变化时不重算垂直居中，杜绝首屏块「跳一下」*/
  align-items: start;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 0;
  overflow: visible;
}

/* Hero — 右侧配图 */
.hero-figure {
  margin: 0;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1536 / 1024;
}
.hero-illus-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow), 0 0 72px rgba(22, 93, 255, 0.1);
}

.hero-visual::before { display: none; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 93, 255, 0.12);
  border: 1px solid rgba(148, 191, 255, 0.22);
  color: var(--accent-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.2);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.85; transform:scale(1.15); }
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, #fff 15%, var(--accent-soft) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Stats bar */
.hero-stats {
  margin-top: 40px;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
}
.stat-item {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-item strong {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ================================================================
   Buttons
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--accent-pressed);
  transform: translateY(0);
}

.btn-ghost {
  color: var(--text);
  background: var(--accent-muted-2);
  border-color: var(--accent-border);
}
.btn-ghost:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   Sections
================================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 10vw, 100px) 0;
}
#products   { background: var(--bg-elevated); }
#advantages { background: var(--bg-base); }
#consult    { background: var(--bg-elevated); }

#products::before,
#advantages::before,
#consult::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 191, 255, 0.15), transparent);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible    { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Section label pill */
.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #4080FF 100%);
  border: 1px solid rgba(148, 191, 255, 0.35);
  box-shadow: var(--shadow-sm);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* Section head */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}
.section-head p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   Products — White Glass Cards + 3D-style Icons
================================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), transparent);
  opacity: 1;
}
.product-card:hover {
  border-color: var(--border-strong);
  border-left-color: var(--accent-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-blue,
.card-purple,
.card-green,
.card-orange,
.card-teal,
.card-rose { border-top: none; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent);
  border: 1px solid var(--accent-pressed);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.card-icon svg { width: 30px; height: 30px; color: #fff; }

/* Brand logo cards (企业版 / PRO) */
.product-card--brand {
  gap: 0;
  padding-top: 22px;
}
.product-card--brand .card-brand {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: visible;
}
.product-card--brand .card-brand-img {
  height: 42.5px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.product-card--brand .card-brand-img--std {
  height: 34.4px; /* 38.25px × 90% */
  max-width: 88%;
}
.product-card--brand .card-brand-img--pro {
  height: 34.7px; /* 38.52px × 90% */
}
.product-card--brand .card-brand-img--bakcube {
  height: 42.5px;
}
.product-card--brand .card-brand-img--filecube {
  height: 51px; /* 42.5px × 120% */
}
.product-card--brand .card-body > p:first-child {
  margin: 0 0 14px;
}

.card-body h3 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.card-body p  { margin: 0 0 14px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

.feature-list {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.feature-list li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-soft);
  background: var(--accent-muted);
  border: 1px solid rgba(148, 191, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* ================================================================
   Advantages — White Glass Cards
================================================================ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.adv-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration);
}
.adv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.adv-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.adv-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-hover) 0%, var(--accent) 45%, var(--accent-pressed) 100%);
  border: 1px solid rgba(22, 93, 255, 0.15);
  box-shadow: 0 2px 10px rgba(22, 93, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  transition: transform var(--duration), box-shadow var(--duration);
}
.adv-card:hover .adv-icon {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.adv-icon svg { width: 24px; height: 24px; }
.adv-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--text); }
.adv-card p  { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* ================================================================
   Chatbot Section
================================================================ */
.chatbot-section { border-top: 1px solid var(--border-default); }

.chatbot-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.chatbot-info { padding-top: 8px; }
.chatbot-info h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.chatbot-info > p { color: var(--text-secondary); margin: 0 0 28px; font-size: 0.9375rem; line-height: 1.7; }

.chatbot-benefits {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.chatbot-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.benefit-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.chatbot-contacts { display: flex; flex-direction: column; gap: 14px; }
.contact-wecom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.contact-wecom-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
}
.contact-wecom-label svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.wecom-qrcode-figure {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wecom-qrcode-img {
  display: block;
  width: 140px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.wecom-qrcode-caption {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted, var(--text-secondary));
  line-height: 1.4;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--duration);
}
.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.contact-link:hover { color: var(--accent-hover); }

/* Chat window */
.chat-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.chat-window::before { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-elevated);
}
.chat-bot-avatar { width: 36px; height: 36px; flex-shrink: 0; }
.chat-bot-avatar svg { width: 36px; height: 36px; }
.chat-bot-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chat-bot-name  { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.chat-bot-status { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--text-muted); }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2.5s ease-in-out infinite;
}

.chat-reset {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--duration), color var(--duration), border-color var(--duration);
}
.chat-reset svg { width: 16px; height: 16px; }
.chat-reset:hover { background: var(--bg-surface-2); color: var(--text); border-color: var(--border-strong); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  max-height: 340px;
  scroll-behavior: smooth;
  background: var(--bg-surface-2);
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: msgIn .3s ease;
}
@keyframes msgIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.chat-msg.user { flex-direction: row-reverse; }

.msg-avatar { width: 28px; height: 28px; flex-shrink: 0; }
.msg-avatar svg { width: 28px; height: 28px; }

.msg-bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg.bot  .msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
  background: var(--accent);
  border: 1px solid var(--accent-pressed);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.typing-dots { display:flex !important; align-items:center; gap:5px; padding:14px 16px !important; min-width:60px; }
.typing-dots span {
  width:7px; height:7px;
  border-radius:50%;
  background:#fff;
  opacity: .7;
  animation:typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay:0s; }
.typing-dots span:nth-child(2) { animation-delay:.2s; }
.typing-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes typingBounce {
  0%,60%,100% { transform:translateY(0); opacity:.5; }
  30%          { transform:translateY(-6px); opacity:1; }
}

.chat-quick-replies {
  padding: 10px 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}
.qr-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--duration), border-color var(--duration), color var(--duration);
  white-space: nowrap;
}
.qr-btn:hover:not(:disabled) {
  background: var(--accent-muted);
  border-color: rgba(22, 93, 255, 0.2);
  color: var(--accent-soft);
}
.qr-btn:disabled { opacity: .35; cursor: not-allowed; }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}
.chat-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.chat-send {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: background var(--duration), transform var(--duration);
  flex-shrink: 0;
}
.chat-send svg { width: 16px; height: 16px; }
.chat-send:hover { background: var(--accent-hover); transform: scale(1.04); }

/* ================================================================
   Footer
================================================================ */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-default);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.footer-brand .brand-icon { width: 28px; height: 28px; }
.footer-brand .brand-icon svg { width: 28px; height: 28px; }
.footer-copy { margin: 0; color: var(--text-muted); font-size: 0.8125rem; }

/* ================================================================
   Responsive
================================================================ */
@media (max-width: 1024px) {
  .product-grid   { grid-template-columns: repeat(2, 1fr); }
  .adv-grid       { grid-template-columns: repeat(2, 1fr); }
  .chatbot-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero-row       { grid-template-columns: 1fr; }
  .hero-visual    { display: none; }
}

@media (max-width: 768px) {
  .container { width: calc(100% - 32px); }

  .menu {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow);
    gap: 2px; z-index: 99;
  }
  .menu.open  { display: flex; }
  .menu a     { padding: 12px 16px; }
  .menu .nav-cta { text-align: center; margin-left: 0; margin-top: 6px; }
  .menu-toggle { display: flex; }

  .hero { padding: 52px 0 48px; min-height: auto; }
  h1    { font-size: 2.1rem; }

  .hero-stats { flex-wrap: nowrap; width: 100%; overflow-x: auto; }
  .stat-item  { padding: 14px 18px; }

  .section { padding: 64px 0; }

  .product-grid { grid-template-columns: 1fr; }
  .adv-grid     { grid-template-columns: 1fr; }

  .chat-messages { max-height: 280px; }

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