/* 七炎科技 - 全局样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #06CB94;
  --primary-dark: #05a87b;
  --primary-light: #e6faf5;
  --accent: #FF6B35;
  --accent-light: #fff3ef;
  --navy: #0d2137;
  --navy-light: #1a3352;
  --text-dark: #1a1a2e;
  --text-body: #4a5568;
  --text-muted: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f0f4f8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img { max-width: 100%; height: auto; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar.scrolled .nav-logo-text { color: var(--text-dark); }
.navbar.scrolled .nav-links a { color: var(--text-body); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .hamburger span { background: var(--text-dark); }

.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.nav-logo-text span { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: var(--primary);
  background: rgba(6,203,148,0.1);
}

.nav-links > li > a .chevron {
  font-size: 11px;
  transition: transform 0.2s;
  opacity: 0.7;
}

.nav-links > li:hover > a .chevron {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.nav-links > li {
  position: relative;
}

/* 用 padding-bottom 做桥接，让鼠标可以平滑滑入 dropdown 不失焦 */
.nav-links > li.has-dropdown {
  padding-bottom: 0;
}
.nav-links > li.has-dropdown > a {
  padding-bottom: 8px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 200;
  /* 顶部透明桥接条，防止鼠标划过间隙触发 mouseleave */
  margin-top: 0;
}

/* 用伪元素填充 a 和 dropdown 之间的间隙 */
.nav-links > li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.nav-links > li.has-dropdown:hover .dropdown,
.nav-links > li.has-dropdown .dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
  pointer-events: auto;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: white;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-body);
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.dropdown-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.dropdown-group-label {
  padding: 4px 14px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-try {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(6,203,148,0.35);
}

.btn-try:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,203,148,0.4);
  color: white;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== 按钮通用 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), #00e5b0);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(6,203,148,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,203,148,0.45);
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
}

/* ===== 节标题 ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title span { color: var(--primary); }

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ===== 容器 ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}

/* ===== 卡片 ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

/* ===== 统计数字 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: white;
  padding: 36px 24px;
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== 页脚 ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .nav-logo-text {
  color: white;
  font-size: 22px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0 24px;
  color: rgba(255,255,255,0.55);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-info a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-info a:hover { color: var(--primary); }

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}

.beian-link {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.beian-link:hover { color: rgba(255,255,255,0.65); }

/* ===== 浮动侧边栏 ===== */
.float-sidebar {
  position: fixed;
  right: 382px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.float-btn {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
}

.float-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.float-btn:hover svg,
.float-btn:hover span {
  color: white;
  stroke: white;
}

.float-btn span {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.float-btn-try {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.float-btn-try span { color: white; }

.float-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-body);
  stroke: var(--text-body);
}

/* 回到顶部 */
#toTop {
  position: fixed;
  right: 24px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6,203,148,0.35);
  z-index: 999;
  transition: var(--transition);
}

#toTop.show { display: flex; }
#toTop:hover { transform: translateY(-2px); }
#toTop svg { width: 20px; height: 20px; stroke: white; }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease;
}

/* ===== 微信联系弹窗 ===== */
.wechat-modal { max-width: 360px; padding: 36px 32px 28px; }

.wechat-modal-inner { text-align: center; }

.wechat-modal-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #07C160, #00e070);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(7,193,96,0.3);
}

.wechat-modal-title {
  font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px;
}

.wechat-modal-sub {
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6;
}

.wechat-qr-wrap {
  position: relative; display: inline-block;
  padding: 8px; border-radius: 16px;
  border: 2px solid rgba(7,193,96,0.2);
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}

.wechat-qr-img { display: block; width: 160px; height: 160px; border-radius: 8px; }

/* 四角装饰 */
.wechat-qr-corner {
  position: absolute; width: 16px; height: 16px;
  border-color: #07C160; border-style: solid;
}
.wechat-qr-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.wechat-qr-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.wechat-qr-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.wechat-qr-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }

.wechat-id-row {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-light); border-radius: 10px;
  padding: 8px 14px; margin-bottom: 14px;
  border: 1px solid var(--border);
}

.wechat-id-label {
  font-size: 12px; color: var(--text-muted); flex-shrink: 0;
}

.wechat-id-val {
  font-size: 15px; font-weight: 700; color: var(--text-dark);
  font-family: 'Courier New', monospace; letter-spacing: 0.5px;
}

.wechat-copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 7px; border: none; cursor: pointer;
  background: #07C160; color: white; font-size: 12px; font-weight: 600;
  transition: all 0.2s ease;
}
.wechat-copy-btn:hover { background: #05a050; transform: scale(1.05); }
.wechat-copy-btn.copied { background: var(--primary); }

.wechat-tips {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.wechat-tips::before {
  content: '';
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #07C160; flex-shrink: 0;
}


@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover { background: var(--border); color: var(--text-dark); }

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(6,203,148,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

.code-row {
  display: flex;
  gap: 10px;
}

.code-row .form-control { flex: 1; }

.btn-send-code {
  padding: 12px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  min-width: 100px;
}

.btn-send-code:hover { background: var(--primary); color: white; }
.btn-send-code:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-submit-form {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), #00e5b0);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(6,203,148,0.3);
}

.btn-submit-form:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,203,148,0.4);
}

.select-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  appearance: none;
  cursor: pointer;
}

.select-control:focus {
  border-color: var(--primary);
  background: white;
}

.form-error {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}

.form-success {
  text-align: center;
  padding: 20px 0;
}

.form-success .success-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.form-success h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 14px; }

/* ===== 移动端菜单 ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav {
  padding: 20px 24px;
  list-style: none;
}

.mobile-nav li a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.mobile-nav li a:hover { color: var(--primary); }

.mobile-submenu {
  list-style: none;
  padding: 8px 16px;
}

.mobile-submenu li a {
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: none;
  padding: 8px 0;
}

.mobile-menu-cta {
  padding: 24px;
}

/* ===== 标签功能标记 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.tag-green { background: var(--primary-light); color: var(--primary); }
.tag-blue { background: #e8f0fe; color: #1a73e8; }
.tag-orange { background: var(--accent-light); color: var(--accent); }

/* ===== 功能特性图标 ===== */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-icon-primary {
  background: linear-gradient(135deg, var(--primary), #00e5b0);
  box-shadow: 0 4px 16px rgba(6,203,148,0.3);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
}

/* ===== 滚动显示动画 ===== */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JS添加时才隐藏（仅视口外元素） */
.fade-up.will-animate {
  opacity: 0;
  transform: translateY(28px);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .float-sidebar { right: 16px; }
  #toTop { right: 16px; }
  .modal-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-primary, .btn-outline { padding: 12px 22px; font-size: 14px; }
}

/* ===== AI体验悬浮弹窗 ===== */
.float-btn-demo {
  background: linear-gradient(135deg, #06CB94, #00b884);
}
.float-btn-demo:hover { background: linear-gradient(135deg, #00b884, #009e72); }

.demo-popup {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 360px;
  height: 520px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.demo-popup.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
@media (max-width: 640px) {
  .demo-popup {
    right: 12px; left: 12px; width: auto; bottom: 80px;
  }
}

/* 顶部 Tab 栏 */
.demo-popup-header {
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, #0a1628, #0d2137);
  padding: 10px 12px 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-popup-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-popup-tabs::-webkit-scrollbar { display: none; }
.demo-popup-tab {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.demo-popup-tab:hover { color: white; border-color: rgba(255,255,255,0.35); }
.demo-popup-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.demo-popup-close {
  flex-shrink: 0;
  margin-left: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.demo-popup-close:hover { background: rgba(255,255,255,0.18); }
.demo-popup-close svg { stroke: rgba(255,255,255,0.7); }

/* Agent 信息栏 */
.demo-popup-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #eef0f3;
}
.demo-popup-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.demo-popup-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.demo-popup-status { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.demo-popup-reset {
  margin-left: auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(6,203,148,0.1); border: 1px solid rgba(6,203,148,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.demo-popup-reset:hover { background: var(--primary); }
.demo-popup-reset:hover svg { stroke: white; }
.demo-popup-reset svg { stroke: var(--primary); }

/* 消息区 */
.demo-popup-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}
.demo-popup-messages::-webkit-scrollbar { width: 3px; }
.demo-popup-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.pmsg { display: flex; gap: 7px; align-items: flex-end; max-width: 88%; }
.pmsg.puser { flex-direction: row-reverse; align-self: flex-end; }
.pmsg-av {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.pmsg.pai .pmsg-av { background: var(--primary); color: white; font-size: 9px; }
.pmsg.puser .pmsg-av { background: #e0e0e0; color: #666; }
.pmsg-bubble {
  padding: 8px 12px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-all;
}
.pmsg.pai .pmsg-bubble {
  background: white; color: var(--text-dark);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pmsg.puser .pmsg-bubble {
  background: var(--primary); color: white;
  border-bottom-right-radius: 3px;
}
.ptype-indicator {
  display: flex; gap: 3px; padding: 8px 12px;
  background: white; border: 1px solid var(--border);
  border-radius: 13px; border-bottom-left-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ptype-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); opacity: 0.4;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.ptype-dot:nth-child(2) { animation-delay: 0.2s; }
.ptype-dot:nth-child(3) { animation-delay: 0.4s; }

/* 快捷提问 */
.demo-popup-quick {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 8px 12px 4px;
  background: white;
  border-top: 1px solid var(--border);
}
.ppquick-btn {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 16px;
  border: 1px solid rgba(6,203,148,0.3);
  color: var(--primary);
  background: rgba(6,203,148,0.05);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.ppquick-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* 输入框 */
.demo-popup-input-row {
  display: flex; gap: 7px;
  padding: 10px 12px;
  background: white;
  border-top: 1px solid var(--border);
}
.demo-popup-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}
.demo-popup-input:focus { border-color: var(--primary); }
.demo-popup-send {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--primary);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.demo-popup-send:hover { background: var(--primary-dark); }
