/* ============================================
   Components V2 - Styles for JS-rendered content
   Only styles needed by cases_renderer.js, 
   dynamic_content.js, and team_renderer.js.
   Uses Tailwind dark mode (.dark) convention.
   ============================================ */

html {
  scroll-behavior: smooth;
  /* 隐藏滚动条但保留滚动功能 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

/* 确保body也能正常滚动 */
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

:root {
  --color-primary: #196ee6;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --bg-surface: #fff;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
  --color-primary-soft: rgba(25, 110, 230, 0.08);
}

/* Scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

.dark {
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --bg-surface: #1a1a1c;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.2);
  --color-primary-soft: rgba(25, 110, 230, 0.15);
}

/* ========== Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Cases Matrix (cases_renderer.js) ========== */
.cases-matrix-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
}

.case-matrix-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1.5fr 3fr 2fr 60px;
  column-gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.case-matrix-row:hover {
  padding-left: 24px;
  padding-right: 24px;
  background: var(--color-primary-soft);
  border-radius: 16px;
  border-bottom-color: transparent;
  z-index: 200;
}

.matrix-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e6ee;
  font-weight: 700;
  font-size: 1.2rem;
  color: #555;
}

.matrix-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 头像模糊效果 - 轻微模糊，悬停保持 */
.avatar-blur,
.avatar-blur img {
  filter: blur(2px);
  -webkit-filter: blur(2px);
}

.matrix-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.matrix-major {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.matrix-col-uni {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
  font-weight: 600;
}

.uni-arrow {
  color: var(--text-secondary);
  font-size: 0.9em;
}

.matrix-col-award {
  font-size: 0.95rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}

.matrix-col-action {
  display: flex;
  justify-content: flex-end;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.3s ease;
}

.case-matrix-row:hover .matrix-col-action {
  opacity: 1;
  transform: translateX(0);
}

/* Hover Reveal Panel */
.matrix-reveal-panel {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  background: var(--bg-surface);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 40px 28px;
  border-radius: 24px;
  width: 340px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 移动端适配 - 基于设备宽度而非viewport宽度 */
@media (max-device-width: 768px) {
  .matrix-reveal-panel {
    right: 10px;
    width: 280px;
    padding: 24px 16px;
  }
}

.dark .matrix-reveal-panel {
  background: #151515;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.case-matrix-row:hover .matrix-reveal-panel {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.matrix-reveal-panel .reveal-name {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 20px 0 8px;
  letter-spacing: -0.03em;
}

.more-info-row:hover {
  background: var(--color-primary-soft) !important;
}

@media (max-width: 900px) {
  .case-matrix-row {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .matrix-col-uni,
  .matrix-col-award,
  .matrix-col-action {
    display: none;
  }

  .matrix-reveal-panel {
    display: none !important;
  }
}

/* ========== Awards (dynamic_content.js) ========== */
.awards-list-dense {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.awards-list-dense li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dark .awards-list-dense li {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.award-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.award-badge.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
}

.award-badge.silver {
  background: linear-gradient(135deg, #4A90D9, #6BB5E0);
  color: #fff;
}

.award-badge.bronze {
  background: linear-gradient(135deg, #CD7F32, #B87333);
  color: #fff;
}

.award-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cert Grid */
.cert-sub-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.cert-sub-grid.horizontal {
  grid-template-columns: repeat(2, 1fr);
}

.cert-sub-grid.vertical {
  grid-template-columns: repeat(3, 1fr);
}

.cert-item {
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.cert-item.horizontal {
  aspect-ratio: 4/3;
}

.cert-item.vertical {
  aspect-ratio: 3/4;
}

.cert-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dark .cert-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ========== Papers (dynamic_content.js) ========== */
.papers-showcase-v2 {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.papers-stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 40px 24px;
  border: 1px solid var(--border-color);
}

.stat-card {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.papers-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.paper-img-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.paper-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dark .paper-img-card {
  background: rgba(30, 41, 59, 1);
  border: 1px solid rgba(51, 65, 85, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15);
}

.paper-img-caption {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.2s;
  padding: 8px 12px;
}

.paper-img-card:hover .paper-img-caption {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .papers-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .papers-stats-row {
    flex-direction: column;
    gap: 32px;
    padding: 32px 20px;
  }

  .stat-num {
    font-size: 2rem;
  }
}

/* ========== Team (team_renderer.js) ========== */
.team-founder-card {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

.dark .team-founder-card {
  background: #151515;
}

.founder-card-img {
  flex: 0 0 220px;
  max-width: 220px;
}

.founder-card-img img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.founder-card-content {
  flex: 1;
  min-width: 0;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.team-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.team-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.team-mentor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dark .team-mentor-card {
  background: #151515;
}

.team-mentor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.mentor-card-img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.mentor-card-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.mentor-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 900;
}

.mentor-card-content .team-name {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.mentor-card-content .team-bio {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .team-founder-card {
    flex-direction: column;
    padding: 32px 20px;
    text-align: center;
    gap: 24px;
  }

  .founder-card-img {
    flex: none;
    max-width: 160px;
  }

  .team-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ========== Mobile Menu (shared across pages) ========== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-overlay a {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
}

.mobile-menu-overlay a.active {
  color: var(--color-primary);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
}

.dark .mobile-menu-overlay {
  background: rgba(17, 24, 33, 0.98);
}

.dark .mobile-menu-overlay a {
  color: #e2e8f0;
}

/* ========== Filter Buttons (cases page) ========== */
.filter-btn.active {
  background: var(--color-primary) !important;
  color: white !important;
  border-color: var(--color-primary) !important;
}

/* ============================================
   Assessment Modal - Dark Mode Support
   ============================================ */

/* Assessment Modal CSS Variables */
.assessment-modal {
  --am-bg-primary: #fff;
  --am-bg-secondary: #f9fafb;
  --am-text-primary: #1f2937;
  --am-text-secondary: #4b5563;
  --am-text-muted: #6b7280;
  --am-border-color: #e5e7eb;
  --am-header-bg: #1a1a2e;
  --am-header-text: #fff;
  --am-header-subtext: rgba(255, 255, 255, 0.7);
  --am-close-btn: rgba(255, 255, 255, 0.6);
}

/* Dark mode variables for assessment modal */
.dark .assessment-modal {
  --am-bg-primary: #1e293b;
  --am-bg-secondary: #334155;
  --am-text-primary: #f1f5f9;
  --am-text-secondary: #cbd5e1;
  --am-text-muted: #94a3b8;
  --am-border-color: #475569;
  --am-header-bg: #0f172a;
  --am-header-text: #f8fafc;
  --am-header-subtext: rgba(248, 250, 252, 0.7);
  --am-close-btn: rgba(248, 250, 252, 0.6);
}

.dark .assessment-modal-content {
  background: var(--am-bg-primary) !important;
}

.assessment-modal .radio-label:hover,
.assessment-modal .checkbox-label:hover {
  border-color: #3741cd !important;
}

.assessment-modal .radio-label:has(input:checked),
.assessment-modal .checkbox-label:has(input:checked) {
  border-color: #3741cd !important;
  background: rgba(55, 65, 205, 0.05) !important;
}

.dark .assessment-modal .radio-label:has(input:checked),
.dark .assessment-modal .checkbox-label:has(input:checked) {
  background: rgba(99, 102, 241, 0.15) !important;
}

.assessment-modal .modal-close-btn:hover {
  color: var(--am-header-text) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.assessment-modal .submit-btn:hover {
  background: #2d35a8 !important;
}

/* ========== Reviews Section - Double Layer Carousel ========== */

/* Main Carousel */
.reviews-main-carousel {
  position: relative;
  overflow: visible;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 内层拿回 overflow hidden 实现轮播裁剪 */
.reviews-main-carousel .reviews-main-container {
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.dark .reviews-main-carousel {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.reviews-main-container {
  overflow: hidden;
  position: relative;
  margin-bottom: -20px;
  padding-bottom: 20px;
}

.reviews-main-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reviews-main-item {
  width: 100%;
  flex-shrink: 0;
  padding: 48px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  overflow: visible;
  box-sizing: border-box;
}

.reviews-main-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.reviews-main-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  filter: blur(2px);
}

.reviews-main-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.reviews-main-right {
  flex: 1;
  position: relative;
  min-width: 0;
  overflow: visible;
}

.reviews-main-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.reviews-main-school-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-main-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reviews-main-school {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reviews-main-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.reviews-main-tag {
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.reviews-main-content {
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 24px !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  word-break: break-all !important;
  max-height: 120px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
}

.reviews-main-watermark {
  position: absolute;
  bottom: -15px;
  right: -20px;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

/* Indicators */
.reviews-main-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.dark .reviews-main-indicators {
  background: rgba(0, 0, 0, 0.2);
}

.reviews-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .reviews-indicator {
  background: rgba(255, 255, 255, 0.2);
}

.reviews-indicator.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}

/* Thumbnail Section */
.reviews-thumbnail-section {
  margin-top: 24px;
}

.reviews-thumbnail-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-thumb-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--bg-surface);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  align-self: center;
}

.reviews-thumb-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.dark .reviews-thumb-btn {
  background: #1e293b;
  color: #94a3b8;
}

.dark .reviews-thumb-btn:hover {
  background: var(--color-primary);
  color: white;
}

.reviews-thumbnail-container {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow: visible;
  align-items: stretch;
  padding-bottom: 16px;
  /* 给底部阴影留出空间 */
}

.reviews-thumb-card {
  flex: 1;
  min-width: 0;
  max-width: calc(33.333% - 8px);
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-direction: column;
}

.reviews-thumb-card.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.reviews-thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.dark .reviews-thumb-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reviews-thumb-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.reviews-thumb-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reviews-thumb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 6px;
}

.reviews-thumb-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reviews-thumb-school {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.reviews-thumb-tag {
  font-size: 0.65rem;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.reviews-thumb-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.reviews-thumb-info-item {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews-thumb-info-label {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews-main-item {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .reviews-main-left {
    align-items: center;
  }

  .reviews-main-avatar {
    width: 80px;
    height: 80px;
  }

  .reviews-main-header {
    justify-content: center;
  }

  .reviews-main-content {
    font-size: 1rem;
    text-align: center;
  }

  .reviews-main-watermark {
    font-size: 2.5rem;
  }

  .reviews-thumbnail-wrapper {
    gap: 8px;
  }

  .reviews-thumb-btn {
    width: 32px;
    height: 32px;
  }

  .reviews-thumb-image {
    height: 60px;
  }

  .reviews-thumb-content {
    padding: 10px;
  }

  .reviews-thumb-card {
    max-width: calc(50% - 4px);
  }

  .reviews-thumb-name {
    font-size: 0.85rem;
  }

  .reviews-thumb-info {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .reviews-thumb-card {
    max-width: 100%;
  }
}

/* ============================================
   学员成果卡片样式（图2样式 - 黄框区域）
   ============================================ */

.review-result-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  width: calc(33.333% - 16px);
  min-width: 300px;
}

.review-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dark .review-result-card {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark .review-result-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.review-card-image-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.review-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.review-result-card:hover .review-card-image {
  transform: scale(1.05);
}

.review-card-image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.review-card-body {
  padding: 16px;
}

/* 图2样式 - 新布局 */
.review-card-header-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.review-card-row-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.review-card-info-left {
  flex: 1;
}

.review-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.dark .review-card-name {
  color: #f1f5f9;
}

/* 报名时间和保研去向在同一行 */
.review-card-enrollment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-card-enrollment {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dark .review-card-enrollment {
  color: #94a3b8;
}

/* 保研去向内联样式（在报名时间右侧） */
.review-card-destination-inline {
  display: inline-flex;
  align-items: center;
  border: 1px solid #196ee6;
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.8rem;
}

.review-card-destination-label {
  background: #196ee6;
  color: white;
  padding: 2px 8px;
  font-weight: 500;
}

.dark .review-card-destination-label {
  background: #3b82f6;
}

.review-card-destination-school {
  padding: 2px 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.dark .review-card-destination-school {
  color: #f1f5f9;
}

.review-card-undergrad-v2 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
  max-width: none;
}

.dark .review-card-undergrad-v2 {
  color: #94a3b8;
}

/* 保研去向块级样式（兼容旧版） */
.review-card-destination {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid #196ee6;
  border-radius: 6px;
  overflow: hidden;
}

/* 旧样式保留兼容 */
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.review-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.review-card-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.review-card-tag.enrollment {
  background: #fef3c7;
  color: #d97706;
}

.dark .review-card-tag.enrollment {
  background: #451a03;
  color: #fbbf24;
}

.review-card-tag.admission {
  background: #dbeafe;
  color: #2563eb;
}

.dark .review-card-tag.admission {
  background: #1e3a8a;
  color: #60a5fa;
}

.review-card-tag.school {
  background: #dcfce7;
  color: #16a34a;
}

.dark .review-card-tag.school {
  background: #14532d;
  color: #4ade80;
}

.review-card-undergrad {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.dark .review-card-undergrad {
  color: #94a3b8;
}

.review-card-coaching {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 12px;
}

.dark .review-card-coaching {
  border-color: #334155;
}

.review-card-coaching-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.dark .review-card-coaching-title {
  color: #60a5fa;
}

.review-card-coaching-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.dark .review-card-coaching-item {
  color: #94a3b8;
}

/* 响应式 */
@media (max-width: 1024px) {
  .review-result-card {
    width: calc(50% - 12px);
    min-width: 280px;
  }
}

@media (max-width: 640px) {
  .review-result-card {
    width: 100%;
    min-width: auto;
  }

  .review-card-image-wrapper {
    height: 140px;
  }
}

/* ============================================
   右侧悬浮工具栏
   ============================================ */

/* 悬浮工具栏容器 - 位置向下移动，按钮连在一起 */
.side-toolbar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 12px 0;
}

/* 工具栏项目 */
.side-toolbar-item {
  position: relative;
  width: 70px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 工具栏按钮 */
.side-toolbar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 6px;
}

.side-toolbar-item:last-child .side-toolbar-btn {
  border-bottom: none;
}

/* 在线客服 - 点击效果 */
.side-toolbar-item[data-action="customer-service"] .side-toolbar-btn:hover {
  background: #f0f9ff;
  color: #196ee6;
}

.side-toolbar-item[data-action="customer-service"] .side-toolbar-btn:active {
  transform: scale(0.95);
}

/* 在线预约 - 悬停效果 */
.side-toolbar-item[data-action="booking"] .side-toolbar-btn:hover {
  background: #f0fdf4;
  color: #10b981;
}

/* 优惠活动 - 悬停效果 */
.side-toolbar-item[data-action="coupon"] .side-toolbar-btn:hover {
  background: #fef3c7;
  color: #f59e0b;
}

/* 工具栏文字标签 */
.side-toolbar-label {
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.side-toolbar-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  fill: none;
  color: #333;
  transition: color 0.3s ease;
}

.side-toolbar-item:hover .side-toolbar-btn svg,
.side-toolbar-item:hover .side-toolbar-label {
  color: inherit;
}

/* 弹出面板 - 固定定位在右侧，与工具栏对齐 */
.side-toolbar-panel {
  position: fixed !important;
  right: 95px !important;
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%) translateX(20px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 0;
  width: 320px;
  height: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* 抢返现券弹窗 - 根据图片比例 1133x1470 (约1:1.3) 调整 */
#couponPanel {
  width: 280px;
  height: 364px;
}

.side-toolbar-panel {
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1001;
  margin: 0;
}

.side-toolbar-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* 面板关闭按钮 - 绝对定位在右上角 */
.side-toolbar-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.side-toolbar-panel-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.side-toolbar-panel-close svg {
  width: 12px;
  height: 12px;
  stroke: white;
}

.side-toolbar-panel-content {
  width: 100%;
  height: 100%;
}

.side-toolbar-panel-content img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.side-toolbar-panel-placeholder {
  width: 100%;
  height: 240px;
  background: #f5f5f7;
  border-radius: 16px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  color: #86868b;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 客服按钮特殊样式 */
.side-toolbar-btn[data-action="customer-service"] {
  position: relative;
}

.side-toolbar-btn[data-action="customer-service"]::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid white;
}

/* 深色模式适配 */
.dark .side-toolbar {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark .side-toolbar-btn {
  background: #1e293b;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark .side-toolbar-btn svg {
  color: #f1f5f9;
}

/* 深色模式 - 工具栏标签 */
.dark .side-toolbar-label {
  color: #a1a1a6;
}

/* 深色模式 - 在线客服悬停 */
.dark .side-toolbar-item[data-action="customer-service"]:hover .side-toolbar-btn,
.dark .side-toolbar-item[data-action="customer-service"]:hover .side-toolbar-label {
  color: #60a5fa;
}

/* 深色模式 - 在线预约悬停 */
.dark .side-toolbar-item[data-action="booking"]:hover .side-toolbar-btn,
.dark .side-toolbar-item[data-action="booking"]:hover .side-toolbar-label {
  color: #34d399;
}

/* 深色模式 - 优惠活动悬停 */
.dark .side-toolbar-item[data-action="coupon"]:hover .side-toolbar-btn,
.dark .side-toolbar-item[data-action="coupon"]:hover .side-toolbar-label {
  color: #fbbf24;
}

.dark .side-toolbar-panel {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .side-toolbar-panel-title {
  color: #f1f5f9;
}

.dark .side-toolbar-panel-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .side-toolbar-panel-close {
  background: rgba(255, 255, 255, 0.1);
}

.dark .side-toolbar-panel-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dark .side-toolbar-panel-placeholder {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.dark .side-toolbar-btn[data-action="customer-service"]::after {
  border-color: #1e293b;
}

/* 移动端隐藏 */
@media (max-width: 768px) {
  .side-toolbar {
    display: none;
  }

  .side-toolbar-panel {
    display: none;
  }
}

/* 客服弹窗样式 - 方案B：右下角悬浮聊天气泡 */

/* 聊天气泡触发按钮 */
.customer-service-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  box-shadow: 0 8px 24px rgba(25, 110, 230, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid white;
}

.customer-service-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(25, 110, 230, 0.5);
}

.customer-service-bubble.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.customer-service-bubble svg {
  width: 26px;
  height: 26px;
  color: white;
  stroke-width: 2;
}

/* 气泡通知红点 */
.customer-service-bubble::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* 聊天窗口容器 */
.customer-service-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 560px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.customer-service-chat.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 聊天窗口头部 */
.customer-service-header {
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  flex-shrink: 0;
}

.customer-service-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-service-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #196ee6;
  flex-shrink: 0;
}

.customer-service-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.customer-service-header-name {
  font-size: 13px;
  font-weight: 600;
}

.customer-service-header-status {
  font-size: 11px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.customer-service-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.customer-service-header-actions {
  display: flex;
  gap: 6px;
}

.customer-service-minimize,
.customer-service-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.customer-service-minimize:hover,
.customer-service-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 聊天内容区 */
.customer-service-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.customer-service-body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* 欢迎消息 */
.customer-service-welcome {
  display: flex;
  gap: 8px;
  animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.customer-service-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.customer-service-message {
  flex: 1;
  background: white;
  padding: 10px 12px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.customer-service-message-text {
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

/* 用户消息 */
.customer-service-user-message {
  display: flex;
  gap: 8px;
  flex-direction: row-reverse;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.customer-service-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.customer-service-user-text {
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 14px;
  border-top-right-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 85%;
}

/* 二维码区域 */
.customer-service-qr-section {
  background: white;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.6);
  margin: 2px 0;
}

.customer-service-qr-title {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.customer-service-qr-code {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.customer-service-qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customer-service-qr-tip {
  font-size: 10px;
  color: #94a3b8;
}

/* 快捷操作按钮 */
.customer-service-quick-actions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  padding: 0 2px;
  justify-content: space-between;
}

.customer-service-quick-btn {
  padding: 10px 8px;
  flex: 1;
  text-align: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  min-height: 40px;
}

.customer-service-quick-btn:hover {
  background: #f0f9ff;
  border-color: #196ee6;
  color: #196ee6;
  transform: translateY(-1px);
}

/* 输入区域 */
.customer-service-footer {
  padding: 10px 12px;
  background: white;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.customer-service-input-wrapper {
  flex: 1;
  position: relative;
}

.customer-service-input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 12px;
  outline: none;
  transition: all 0.2s;
  background: #f8fafc;
}

.customer-service-input:focus {
  border-color: #196ee6;
  background: white;
}

.customer-service-input::placeholder {
  color: #94a3b8;
}

.customer-service-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.customer-service-send:hover {
  transform: scale(1.05);
}

/* 深色模式 */
.dark .customer-service-bubble {
  border-color: #1e293b;
}

.dark .customer-service-chat {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .customer-service-body {
  background: #0f172a;
}

.dark .customer-service-message {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .customer-service-message-text {
  color: #cbd5e1;
}

.dark .customer-service-qr-section {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .customer-service-qr-title {
  color: #94a3b8;
}

.dark .customer-service-footer {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .customer-service-input {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

.dark .customer-service-input:focus {
  background: #1e293b;
}

.dark .customer-service-quick-btn {
  background: #334155;
  border-color: #475569;
  color: #cbd5e1;
}

.dark .customer-service-quick-btn:hover {
  background: rgba(25, 110, 230, 0.2);
  border-color: #196ee6;
  color: #60a5fa;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .customer-service-bubble {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .customer-service-bubble svg {
    width: 22px;
    height: 22px;
  }

  .customer-service-chat {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 65vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .customer-service-chat.active {
    transform: translateY(0);
  }
}

/* ============================================
   客服弹窗 - Modal 样式 (用于非首页)
   ============================================ */

/* 全屏遮罩 */
.customer-service-modal {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.customer-service-modal.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗容器 */
.customer-service-modal .customer-service-container {
  width: 380px;
  pointer-events: auto;
  height: 560px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.customer-service-modal.active .customer-service-container {
  transform: translateY(0) scale(1);
}

/* Modal 内的标题栏 */
.customer-service-modal .customer-service-header {
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  flex-shrink: 0;
}

.customer-service-modal .customer-service-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.customer-service-modal .customer-service-title svg {
  flex-shrink: 0;
}

.customer-service-modal .customer-service-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.customer-service-modal .customer-service-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Modal 聊天体 */
.customer-service-modal .customer-service-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modal 底部输入 */
.customer-service-modal .customer-service-footer {
  padding: 10px 12px;
  background: white;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* 二维码 badge */
.customer-service-qr-badge {
  display: inline-block;
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* 消息标题 */
.customer-service-message-title {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

/* 深色模式 - Modal */
.dark .customer-service-modal {
  background: transparent;
}

.dark .customer-service-modal .customer-service-container {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .customer-service-modal .customer-service-body {
  background: #0f172a;
}

.dark .customer-service-modal .customer-service-footer {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .customer-service-message-title {
  color: #e2e8f0;
}

.dark .customer-service-qr-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 移动端 - Modal */
@media (max-width: 480px) {
  .customer-service-modal {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }

  .customer-service-modal .customer-service-container {
    width: 100%;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
  }
}

/* ============================================
   客服气泡 - 带文字标签 (所有页面通用)
   ============================================ */
.customer-service-bubble-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1999;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.customer-service-bubble-wrapper:hover {
  transform: scale(1.05);
}

.customer-service-bubble-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.customer-service-bubble-wrapper .bubble-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #196ee6 0%, #0d5bc1 100%);
  box-shadow: 0 8px 24px rgba(25, 110, 230, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.customer-service-bubble-wrapper .bubble-icon svg {
  width: 22px;
  height: 22px;
  color: white;
  stroke-width: 2;
  fill: none;
}

.customer-service-bubble-wrapper .bubble-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.customer-service-bubble-wrapper .bubble-label {
  background: white;
  color: #196ee6;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px 6px 18px;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-left: -12px;
  white-space: nowrap;
  border: 1px solid rgba(25, 110, 230, 0.15);
  position: relative;
  z-index: 1;
}

.dark .customer-service-bubble-wrapper .bubble-icon {
  border-color: #1e293b;
}

.dark .customer-service-bubble-wrapper .bubble-icon::after {
  border-color: #1e293b;
}

.dark .customer-service-bubble-wrapper .bubble-label {
  background: #1e293b;
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .customer-service-bubble-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .customer-service-bubble-wrapper .bubble-icon {
    width: 44px;
    height: 44px;
  }

  .customer-service-bubble-wrapper .bubble-icon svg {
    width: 20px;
    height: 20px;
  }

  .customer-service-bubble-wrapper .bubble-label {
    font-size: 11px;
    padding: 5px 12px 5px 16px;
  }
}

/* 隐藏中英文切换功能按钮 */
.lang-capsule, .mobile-menu-lang {
    display: none !important;
}

/* 免费评估按钮 金色流光特效 */
@keyframes goldenShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-golden-glow {
    position: relative;
    background: linear-gradient(135deg, #3b1100 0%, #aa4b00 30%, #ffaa00 70%, #ffeba3 100%);
    background-size: 200% 200%;
    color: #ffffff !important;
    border: 1px solid #ffcc00;
    box-shadow: 
        0 4px 15px rgba(255, 170, 0, 0.4),
        inset 0 0 12px rgba(255, 215, 0, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 215, 0, 0.8);
    transition: all 0.4s ease;
    animation: goldenShine 3s ease infinite;
    overflow: hidden;
}

.btn-golden-glow:hover {
    box-shadow: 
        0 6px 20px rgba(255, 170, 0, 0.6),
        inset 0 0 18px rgba(255, 215, 0, 0.9);
    transform: translateY(-1px);
    border-color: #fffbcf;
}

.btn-golden-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0.8;
}

.btn-golden-glow::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.6), transparent);
    opacity: 0.8;
}