/* ================================================================
   SVTR首页优化 - 采纳全部5项优化建议
   包含: Hero+订阅模态框, 角色路径+会员内嵌, 压缩日报+产品卡片
   优化: 移动端响应式, 性能优化
   ================================================================ */

/* ==================== 模块1: Hero区域 (✅优化2) ==================== */
.hero-section {
  margin: 40px auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  border-radius: 24px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(250, 140, 50, 0.4);
}

.btn-primary:hover {
  background: #e67e00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 140, 50, 0.5);
}

.btn-secondary {
  padding: 16px 32px;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

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

.hero-trust {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

.hero-data {
  display: flex;
  justify-content: center;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.data-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.data-icon {
  font-size: 2rem;
}

.data-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.data-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==================== 订阅模态框 (✅优化2) ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.modal-subtitle {
  color: var(--text-secondary);
  line-height: 1.6;
}

.subscribe-form {
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(250, 140, 50, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(250, 140, 50, 0.4);
}

.btn-submit:hover {
  background: #e67e00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 140, 50, 0.5);
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.modal-value {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  padding: 20px;
  border-radius: 12px;
}

.modal-value h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.modal-value ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-value li {
  padding: 8px 0;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ==================== 模块2: 角色路径 + 会员预告 (✅优化4) ==================== */
.role-pathways {
  margin: 60px auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.role-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.role-card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.role-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.role-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.role-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.role-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0;
}

.role-concerns {
  margin-bottom: 20px;
}

.concern-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.role-concerns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-concerns li {
  padding: 6px 0 6px 20px;
  color: var(--text-secondary);
  position: relative;
  line-height: 1.5;
}

.role-features {
  flex: 1;
  margin-bottom: 20px;
}

.role-concerns li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.role-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.action-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.action-link {
  display: block;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  border-radius: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}

.action-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(4px);
}

/* 会员预告内嵌 (✅优化4) */
.membership-embedded-cta {
  margin-top: 40px;
  padding: 20px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.embedded-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.embedded-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.embedded-cta-content p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.embedded-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
  transition: all 0.2s;
}

.embedded-link:hover {
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==================== 模块4: 数据榜单中心 (✅优化1) ==================== */
.data-center {
  margin: 60px auto;
}

/* 压缩日报样式 */
.funding-daily-compressed {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.daily-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.daily-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.daily-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.daily-preview {
  margin-bottom: 20px;
}

.btn-expand-daily {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-expand-daily:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 140, 50, 0.4);
}

.daily-full-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed rgba(0, 0, 0, 0.1);
}

/* 数据产品卡片网格 */
.data-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-product-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.data-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.data-product-card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.data-product-card h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.product-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.product-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 2px solid var(--primary-color);
}

.product-link:hover {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  border-bottom: none;
}

.product-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==================== 移动端响应式优化 (✅优化3) ==================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .data-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Hero移动端优化 */
  .hero-section {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .data-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .data-number {
    font-size: 1.4rem;
  }

  /* 模态框移动端优化 */
  .modal-content {
    width: 95%;
    padding: 30px 20px;
    max-height: 95vh;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  /* 角色路径移动端优化 */
  .role-cards {
    gap: 16px;
  }

  .role-card {
    padding: 20px;
  }

  .role-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  .action-link {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .embedded-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .embedded-icon {
    font-size: 2.5rem;
  }

  /* 数据中心移动端优化 */
  .funding-daily-compressed {
    padding: 20px;
  }

  .daily-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .daily-header h3 {
    font-size: 1.3rem;
  }

  .data-product-card {
    padding: 20px;
  }

  .product-icon {
    font-size: 2.5rem;
  }

  .data-product-card h4 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* ==================== 懒加载模块 (✅优化5) ==================== */
.lazy-module {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.lazy-module.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 暗色模式适配 ==================== */
/* 注意: SVTR使用html[data-theme="dark"]手动主题切换 */
/* 暗色模式样式已移至 dark-theme.css 统一管理 (2025-11-26) */

/* 角色卡片和数据卡片深色模式 (2025-12-04补充) */
/* 由于CSS加载顺序，这些样式需要在homepage-redesign.css中覆盖 */

html[data-theme='dark'] .role-card {
  background: #2d3748 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme='dark'] .role-card:hover {
  background: #334155 !important;
  border-color: rgba(250, 140, 50, 0.3) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme='dark'] .role-card.featured,
html[data-theme='dark'] .role-card.role-card-highlight {
  background: linear-gradient(135deg, #2d3748 0%, #374151 100%) !important;
  border: 2px solid var(--primary-color) !important;
}

html[data-theme='dark'] .data-card {
  background: #2d3748 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme='dark'] .data-card:hover {
  background: #334155 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme='dark'] .data-product-card {
  background: #2d3748 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme='dark'] .data-product-card:hover {
  background: #334155 !important;
  border-color: rgba(250, 140, 50, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme='dark'] .data-product-card.featured {
  background: linear-gradient(135deg, #2d3748 0%, #374151 100%) !important;
  border: 2px solid var(--primary-color) !important;
}
