/* CSS 变量定义 - 蓝灰色系现代风格 */
:root {
  --primary-blue: #1e293b;
  --secondary-blue: #334155;
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --light-gray: #f1f5f9;
  --medium-gray: #cbd5e1;
  --dark-gray: #0f172a;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 10px 15px -8px rgba(15, 23, 42, 0.08);
  --teal-primary: #0d9488;
  --teal-light: #14b8a6;
}

/* 导航栏基础样式 - 所有页面统一 */
header {
  position: fixed !important; /* 固定在顶部 */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--medium-gray) !important;
  box-shadow: var(--card-shadow) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 0;
}

/* 防止body内容被导航栏遮挡 */
body {
  padding-top: 4rem !important;
}

/* 导航栏品牌名称 */
.navbar-brand {
  color: var(--primary-blue) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* 导航链接样式 */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  color: var(--dark-gray) !important;
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--accent-blue) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 移动端菜单按钮 */
#menuToggle {
  color: var(--dark-gray) !important;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

#menuToggle:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}

/* 移动端菜单样式 */
#mobileMenu {
  background: var(--light-gray) !important;
  border-top: 1px solid var(--medium-gray) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

#mobileMenu a,
#mobileMenu span {
  color: var(--dark-gray) !important;
  font-weight: 500;
}

#mobileMenu a:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}

/* 移除所有与透明相关的样式，因为我们不再需要 */
/* 首页特定的导航栏样式 - 移除透明效果 */
.hero header {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--card-shadow) !important;
  border-bottom: 1px solid var(--medium-gray) !important;
}

/* 现代卡片设计 */
.modern-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--medium-gray);
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-blue-light);
}

/* 维度特色卡片 */
.dimension-highlight {
  background: linear-gradient(145deg, #ffffff 0%, var(--light-gray) 100%);
  border-left: 4px solid;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dimension-highlight.rational {
  border-left-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.dimension-highlight.emotional {
  border-left-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.dimension-highlight.mental {
  border-left-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

/* 阶段展示卡片 */
.stage-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.stage-card:hover {
  background: var(--light-gray);
  border-color: var(--accent-blue);
  transform: translateX(5px);
}

/* 评估卡片 */
.assessment-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.assessment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 20px 20px 0 0;
}

.assessment-card.rational::before {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light));
}

.assessment-card.emotional::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.assessment-card.mental::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.assessment-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

.assessment-header {
  padding: 2.5rem 2rem 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.assessment-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.assessment-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.assessment-footer {
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--light-gray);
}

/* 渐变按钮 */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-gradient-orange {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-gradient-orange:hover {
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-gradient-green {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-gradient-green:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-gradient-teal {
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-light));
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-gradient-teal:hover {
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
  transform: translateY(-3px);
}

/* 图标样式 */
.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.icon-wrapper:hover {
  transform: scale(1.05) rotate(5deg);
}

.icon-wrapper.rational {
  background: linear-gradient(145deg, var(--accent-blue), var(--accent-blue-light));
  color: white;
}

.icon-wrapper.emotional {
  background: linear-gradient(145deg, #f59e0b, #fbbf24);
  color: white;
}

.icon-wrapper.mental {
  background: linear-gradient(145deg, #10b981, #34d399);
  color: white;
}

/* 认知图表样式 */
.knowledge-chart {
  background: linear-gradient(145deg, #ffffff 0%, var(--light-gray) 100%);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--medium-gray);
}

.knowledge-chart::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.knowledge-chart::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* 购买区域样式 */
.purchase-section {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--medium-gray);
}

.price-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  border: 2px solid var(--light-gray);
  transition: all 0.3s ease;
}

.price-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
}

/* 分隔装饰 */
.section-divider {
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--light-gray) 50%, transparent);
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

/* 结果展示样式 */
.result-display {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid var(--accent-blue);
}

/* 弹窗样式 */
.modal {
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  transition: opacity 0.3s ease;
}

.modal-container {
  transition: all 0.3s ease-out;
}

.modal-content {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* 浮动动画 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* 弹框标题样式统一 */
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.modal-btn-area {
  padding-top: 2rem; 
  border-top: 1px solid #e5e7eb; 
}

/* 响应式调整 */
@media (max-width: 768px) {
  .section-title::after {
    width: 60px;
  }
  
  .dimension-highlight {
    padding: 1.5rem;
  }
  
  .assessment-header {
    padding: 2rem 1.5rem 1rem;
  }
  
  .assessment-body {
    padding: 1.5rem;
  }
  
  .knowledge-chart {
    padding: 2rem 1.5rem;
  }
  
  .purchase-section {
    padding: 2rem 1.5rem;
  }
}

/* 下载保存样式 */
#save-card {
  cursor: pointer;
  transition: all 0.2s;
}

#save-card:hover {
  transform: scale(1.1);
}

#save-card:hover i {
  color: #6366f1;
  /* 主题色 */
}
