/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  background-color: #0c0f12;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}

/* ========== 页面容器 ========== */
.download-page {
  max-width: 448px;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ========== 介绍引导区 ========== */
.intro-section {
  position: relative;
  padding: 48px 20px 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 53, 82, 0.4);
}
.intro-bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowFloat 6s ease-in-out infinite;
}
.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 20px;
  font-size: 12px;
  color: #5eead4;
  font-weight: 600;
  margin-bottom: 16px;
}
.intro-badge i { color: #5eead4; }
.intro-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.3;
  background: linear-gradient(135deg, #fff 0%, #5eead4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: heroTitleFade 1s ease-out, shine 4s ease-in-out infinite;
}
.intro-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 20px;
  font-weight: 500;
}

/* 开发者声明卡片（介绍区内） */
.intro-section .dev-note {
  margin: 0 auto 22px;
  max-width: 100%;
  text-align: left;
}

/* 介绍区按钮 */
.intro-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.intro-version {
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
}

/* 主按钮 */
.intro-btns, .cta-download-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-download-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.4);
  transition: all 0.25s ease;
  animation: btnPulse 2s ease-in-out infinite;
  min-width: 130px;
}
.btn-download-main i { color: #0f172a; }
.btn-download-main:active {
  transform: scale(0.95);
  box-shadow: 0 3px 12px rgba(45, 212, 191, 0.3);
}
.btn-download--primary {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
  animation: primaryBtnPulse 2s ease-in-out infinite;
}
.btn-download--primary i { color: #064e3b; }
.btn-download--secondary {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
  animation: secondaryBtnPulse 2s ease-in-out infinite;
}
.btn-download--secondary i { color: #1e3a8a; }
.btn-download--large {
  padding: 14px 36px;
  font-size: 16px;
  min-width: 150px;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(45, 212, 191, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(45, 212, 191, 0.65); }
}
@keyframes primaryBtnPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(16, 185, 129, 0.65); }
}
@keyframes secondaryBtnPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(59, 130, 246, 0.65); }
}

@keyframes glowFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(-20px) scale(1.15); opacity: 1; }
}

/* ========== 功能分区通用 ========== */
.feature-section {
  padding: 50px 16px;
  background: #0c0f12;
}
.feature-section--dark {
  background: #0a0d10;
}
.section-header {
  text-align: center;
  margin-bottom: 28px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #5eead4;
  margin-bottom: 8px;
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-desc {
  font-size: 13px;
  color: #94a3b8;
}

/* 功能卡片 */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #161a23;
  border: 1px solid #223552;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(94, 234, 212, 0.2);
  border-color: rgba(94, 234, 212, 0.35);
}
.feature-card--imgRight .feature-text { order: 1; }
.feature-card--imgRight .feature-image { order: 2; }
.feature-card--imgLeft .feature-text { order: 2; }
.feature-card--imgLeft .feature-image { order: 1; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.15), rgba(94, 234, 212, 0.05));
  border: 1px solid rgba(94, 234, 212, 0.25);
  margin-bottom: 14px;
  font-size: 22px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-icon i { color: #5eead4; }
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
}
.feature-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  color: #cbd5e1;
  transition: transform 0.25s ease, color 0.25s ease;
}
.feature-list li i {
  color: #5eead4;
  font-size: 14px;
  flex-shrink: 0;
}
.feature-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.feature-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}
.feature-card:hover .feature-image img {
  transform: scale(1.02);
}

/* 适配卡片网格 */
.adapt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.adapt-card {
  background: #161a23;
  border: 1px solid #223552;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.adapt-card:active {
  transform: scale(0.97);
  border-color: #5eead4;
}
.adapt-card:hover {
  transform: translateY(-8px);
  border-color: #5eead4;
  box-shadow: 0 12px 32px rgba(94, 234, 212, 0.15);
}
.adapt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.15), rgba(94, 234, 212, 0.05));
  margin-bottom: 12px;
  font-size: 20px;
  transition: transform 0.4s ease;
}
.adapt-icon i { color: #5eead4; }
.adapt-card:hover .adapt-icon {
  transform: scale(1.15) rotateY(15deg);
}
.adapt-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.adapt-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ========== 轮播图（资源预览） ========== */
.slideshow-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.slideshow-slide {
  display: none;
  width: 100%;
  position: relative;
}
.slideshow-slide.active {
  display: block;
  animation: fadeSlide 0.5s ease;
}
@keyframes fadeSlide {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
.slideshow-slide img {
  width: 100%;
  cursor: pointer;
  vertical-align: middle;
}
.slideshow-slide video {
  width: 100%;
  cursor: pointer;
  vertical-align: middle;
  display: block;
  background: #000;
}
.video-mute-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}
.video-mute-btn:hover {
  background-color: rgba(94, 234, 212, 0.8);
  transform: scale(1.1);
}
.slideshow-prev, .slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 50%;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 10;
  border: none;
}
.slideshow-prev { left: 10px; }
.slideshow-next { right: 10px; }
.slideshow-prev:hover, .slideshow-next:hover {
  background-color: rgba(94, 234, 212, 0.8);
  transform: translateY(-50%) scale(1.1);
}
.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.slideshow-dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.slideshow-dot.active {
  background-color: #5eead4;
  width: 24px;
  border-radius: 4px;
}

/* ========== 关键词按钮 ========== */
.keyword-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.keyword-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
  padding: 10px 18px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(94, 234, 212, 0.3);
}
.keyword-btn:hover {
  background: rgba(94, 234, 212, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(94, 234, 212, 0.25);
}
.keyword-btn:active { transform: scale(0.95); }

/* ========== 可下载图片 ========== */
.downloadable-image-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.downloadable-image {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.downloadable-image:hover { transform: scale(1.02); }
.download-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  text-align: center;
  font-size: 13px;
  color: #5eead4;
  font-weight: 600;
}

/* ========== 评论说明 ========== */
.comment-instructions p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
}
.comment-instructions .highlight {
  color: #5eead4;
  font-weight: 600;
}
.comment-instructions .warning-text {
  color: #f87171;
  font-weight: 600;
}
.example-image {
  width: 100%;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ========== 最终步骤 ========== */
.final-step-box {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.06), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}
.final-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.final-step-header span {
  color: #5eead4;
  font-weight: 700;
  font-size: 16px;
}
.final-step-header i { color: #36ab60; }
.final-step-box p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
}
.final-step-box .highlight { color: #5eead4; font-weight: 600; }

/* 奖励轮播 */
.reward-slideshow-container {
  position: relative;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.reward-slideshow {
  display: flex;
  transition: transform 0.4s ease-in-out;
}
.reward-slide {
  width: 100%;
  flex-shrink: 0;
}
.reward-prev, .reward-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
}
.reward-prev { left: 10px; }
.reward-next { right: 10px; }
.reward-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.reward-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.reward-dot.active {
  background: #5eead4;
  width: 20px;
  border-radius: 4px;
}

/* ========== CTA 下载区 ========== */
.cta-section {
  padding: 60px 16px;
  text-align: center;
  background: linear-gradient(180deg, #0c0f12 0%, #0a1620 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: ctaGlowPulse 4s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-content > p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

/* ========== 页脚 ========== */
.page-footer {
  padding: 30px 16px 40px;
  text-align: center;
  background: #0a0d10;
  border-top: 1px solid #1e293b;
}
.page-footer p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.6;
}
.page-footer .footer-copy {
  margin-top: 12px;
  color: #475569;
}

/* ========== 开发者声明 ========== */
.dev-note {
  background: rgba(94, 234, 212, 0.05);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.dev-note-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dev-note-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 14px;
}
.dev-note-title {
  font-size: 15px;
  color: #5eead4;
  font-weight: 600;
}
.dev-note-content {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}
.dev-note-content .red {
  color: #f87171;
  font-weight: 600;
}

/* ========== 步骤编号标签 ========== */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #0f172a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-right: 10px;
}

/* ========== Toast 通知 ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(22, 26, 35, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.3);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  display: none;
  z-index: 10000;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ========== 复制弹窗 ========== */
.copy-popup {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 26, 35, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: #5eead4;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.copy-popup.show { opacity: 1; }

/* ========== 悬浮 AI 机器人按钮 ========== */
.mini-btn {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 20px;
  right: 16px;
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  border-radius: 22px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.4);
  transition: all 0.3s ease;
  gap: 8px;
  animation: miniBtnPulse 2s ease-in-out infinite;
}
.mini-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.6);
}
.mini-btn:active { transform: scale(0.95); }
@keyframes miniBtnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(45, 212, 191, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(45, 212, 191, 0.7); }
}
.mini-btn .monitor-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}
.mini-btn .ai-text {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.mini-btn .arrow-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}
#info-num {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 10;
  height: 16px;
  min-width: 16px;
  line-height: 16px;
  border-radius: 8px;
  background: #ef4444;
  font-size: 11px;
  color: #fff;
  text-align: center;
  padding: 0 4px;
}

/* ========== AI 机器人聊天窗 ========== */
#iframe_company_mini_div {
  display: none;
  flex-direction: column;
  font-size: 0;
  background: #161a23;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  height: 480px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6) !important;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483647;
  max-width: 380px;
  max-height: 80vh;
  border: 1px solid rgba(94, 234, 212, 0.3);
}
.pc-visitor-header {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  margin: 0;
  padding: 0 10px;
  font-size: 14px;
  color: #0f172a;
  line-height: 44px;
  position: relative;
  font-weight: 700;
  height: 44px;
  cursor: move;
  display: flex;
  align-items: center;
}
.pc-visitor-header svg { cursor: pointer; fill: #0f172a; }
.pc-title-btn {
  position: absolute;
  width: 36px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.pc-title-btn:hover { background: rgba(15, 23, 42, 0.1); }

#chat_content {
  height: 290px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  background: #0f1318;
  font-size: 14px;
  line-height: 1.5;
  color: #e2e8f0;
  box-sizing: border-box;
  width: 100%;
}
#chat_content::-webkit-scrollbar { width: 4px; }
#chat_content::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

.chat-msg {
  margin: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.chat-msg.user {
  flex-direction: row-reverse;
}
.chat-avatar {
  position: relative;
  min-width: 36px;
  flex-shrink: 0;
}
.chat-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #1e293b;
}
.chat-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #0f1318;
  border-radius: 50%;
}
.chat-bubble-wrap {
  flex: 1;
  min-width: 0;
}
.chat-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.chat-msg.user .chat-name-row { justify-content: flex-end; }
.chat-name {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}
.chat-status {
  font-size: 11px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 1px 6px;
  border-radius: 8px;
}
.chat-bubble {
  background: #1e2433;
  padding: 10px 12px;
  border-radius: 4px 12px 12px 12px;
  max-width: 100%;
  word-break: break-word;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.6;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #0f172a;
  border-radius: 12px 4px 12px 12px;
}
.chat-bubble a {
  color: #5eead4;
  text-decoration: underline;
}

/* 输入区 */
.chat-input-area {
  display: flex;
  padding: 10px;
  background: #161a23;
  border-top: 1px solid #272d34;
  align-items: center;
  gap: 8px;
}
.chat-input-area input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  background: #0f1318;
  border: 1px solid #272d34;
  border-radius: 8px;
  outline: none;
  color: #e2e8f0;
  font-size: 14px;
}
.chat-input-area input[type="text"]::placeholder { color: #64748b; }
.chat-send-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s;
}
.chat-send-btn:active { opacity: 0.8; }
.chat-icon-btn {
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5eead4;
}

/* 底部平台按钮 */
.chat-platform-bar {
  display: flex;
  padding: 10px;
  background: #161a23;
  border-top: 1px solid #272d34;
  gap: 10px;
}
.platform-btn {
  flex: 1;
  min-width: 0;
  padding: 12px 6px;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}
.platform-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.platform-btn:active { transform: scale(0.96); }
.platform-btn.kuaishou {
  background: linear-gradient(135deg, #ff8c00, #ff4d00);
  box-shadow: 0 2px 10px rgba(255, 77, 0, 0.35);
}
.platform-btn.kuaishou:hover {
  background: linear-gradient(135deg, #ff9d1a, #ff5e1a);
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.5);
}
.platform-btn.douyin {
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}
.platform-btn.douyin:hover {
  background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
}
.platform-btn.xiaohongshu {
  background: linear-gradient(135deg, #ff3b52, #ff2442);
  box-shadow: 0 2px 10px rgba(255, 36, 66, 0.35);
}
.platform-btn.xiaohongshu:hover {
  background: linear-gradient(135deg, #ff5268, #ff3a55);
  box-shadow: 0 4px 16px rgba(255, 36, 66, 0.5);
}
.platform-btn .xhs-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: #fff;
  color: #ff2442;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.platform-btn.loading { pointer-events: none; opacity: 0.75; }
.platform-btn.loading svg { animation: ks-spin 0.8s linear infinite; }
@keyframes ks-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 游戏链接卡片 */
.game-links-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game-link {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 10px;
  text-decoration: none;
  color: #e2e8f0;
  transition: all 0.25s ease;
}
.game-link:hover {
  background: rgba(94, 234, 212, 0.15);
  transform: translateX(4px);
}
.game-icon { font-size: 20px; margin-right: 12px; }
.game-title { flex: 1; font-weight: 500; font-size: 14px; }
.game-arrow { color: #5eead4; }

/* 编辑个人信息弹窗 */
#editProfileModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 30000;
  align-items: center;
  justify-content: center;
}
#editProfileModal.show { display: flex; }
#editProfileModal .modal-content {
  background: #161a23;
  padding: 20px;
  border-radius: 14px;
  width: 300px;
  border: 1px solid rgba(94, 234, 212, 0.3);
}
#editProfileModal h3 {
  margin: 0 0 20px 0;
  color: #5eead4;
  font-size: 18px;
}
#editProfileModal label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 13px;
}
#editProfileModal input[type="text"] {
  width: 100%;
  padding: 8px;
  background: #0f1318;
  border: 1px solid #272d34;
  border-radius: 6px;
  color: #e2e8f0;
  box-sizing: border-box;
}
#editProfileModal .avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
#previewAvatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
#editProfileModal .btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
#editProfileModal button {
  padding: 8px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
#editProfileModal .btn-select {
  background: #2dd4bf;
  color: #0f172a;
  font-weight: 600;
}
#editProfileModal .btn-cancel {
  background: #334155;
  color: #fff;
}
#editProfileModal .btn-save {
  background: #2dd4bf;
  color: #0f172a;
  font-weight: 600;
}

/* ========== 下载飘字 ========== */
.download-toast-container {
  position: fixed;
  left: 12px;
  bottom: 80px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100% - 24px);
}
.download-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(22, 26, 35, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-120%);
  animation: toastSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             toastSlideOut 0.4s ease-in forwards;
  animation-delay: 0s, 4.5s;
  max-width: 320px;
}
.download-toast__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.download-toast__content { flex: 1; min-width: 0; }
.download-toast__title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-toast__desc {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-toast__icon {
  flex-shrink: 0;
  color: #5eead4;
  font-size: 12px;
  animation: toastIconPulse 1.5s ease-in-out infinite;
}
@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateX(-120%); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-120%); }
}
@keyframes toastIconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* ========== 滚动渐入动画 ========== */
.animate-on-scroll {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  visibility: visible;
}
.animate-on-scroll[data-animation="fadeInUp"] { transform: translateY(40px); }
.animate-on-scroll[data-animation="fadeInUp"].is-visible { transform: translateY(0); }
.animate-on-scroll[data-animation="fadeInDown"] { transform: translateY(-30px); }
.animate-on-scroll[data-animation="fadeInDown"].is-visible { transform: translateY(0); }
.animate-on-scroll[data-animation="zoomIn"] { transform: scale(0.85); }
.animate-on-scroll[data-animation="zoomIn"].is-visible { transform: scale(1); }

/* ========== 小屏适配 ========== */
@media (max-width: 360px) {
  .intro-title { font-size: 22px; }
  .section-title { font-size: 20px; }
  .adapt-grid { gap: 10px; }
  .adapt-card { padding: 16px 12px; }
  #iframe_company_mini_div { right: 8px; left: 8px; max-width: none; }
}
