/* ============================================
   禾方AI - 香港副学士升学服务页面样式
   ============================================ */

/* ============================================
   CSS 变量定义
   ============================================ */
:root {
  /* 主色调 */
  --ha-primary: #165DFF;
  --ha-primary-dark: #0D47CC;
  --ha-primary-light: #4080FF;
  --ha-gold: #D4AF37;
  --ha-gold-light: #E5C76B;
  --ha-gold-dark: #B8962E;

  /* 中性灰体系 */
  --ha-bg-light: #F5F7FA;
  --ha-bg-white: #FFFFFF;
  --ha-border: #E5E6EB;
  --ha-text-primary: #1D2129;
  --ha-text-secondary: #4E5969;
  --ha-text-muted: #86909C;

  /* 状态色 */
  --ha-success: #00A870;

  /* 阴影 */
  --ha-shadow-sm: 0 1px 2px rgba(22, 93, 255, 0.05);
  --ha-shadow-md: 0 4px 12px rgba(22, 93, 255, 0.08);
  --ha-shadow-lg: 0 8px 24px rgba(22, 93, 255, 0.12);

  /* 圆角 */
  --ha-radius-sm: 6px;
  --ha-radius-md: 10px;
  --ha-radius-lg: 16px;

  /* 过渡 */
  --ha-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   导航栏
   ============================================ */
.ha-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--ha-transition);
}

.ha-nav.scrolled {
  border-bottom-color: var(--ha-border);
  box-shadow: var(--ha-shadow-sm);
}

.ha-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.ha-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ha-primary) 0%, var(--ha-primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.ha-logo-text {
  display: flex;
  flex-direction: column;
}

.ha-logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ha-text-primary);
}

.ha-logo-slogan {
  font-size: 11px;
  color: var(--ha-text-muted);
}

.ha-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.ha-nav-item {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ha-text-secondary);
  border-radius: var(--ha-radius-md);
  transition: var(--ha-transition);
}

.ha-nav-item:hover {
  color: var(--ha-primary);
  background: rgba(22, 93, 255, 0.05);
}

.ha-nav-item.active {
  color: var(--ha-primary);
  background: rgba(22, 93, 255, 0.1);
  font-weight: 500;
}

/* 下拉菜单 */
.ha-nav-dropdown {
  position: relative;
}
.ha-nav-dropdown > .ha-nav-item {
  cursor: pointer;
}
.ha-nav-dropdown > .ha-nav-item::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--ha-text-secondary);
  vertical-align: middle;
  transition: var(--ha-transition);
}
.ha-nav-dropdown > .ha-nav-item:hover::after {
  border-top-color: var(--ha-primary);
}
.ha-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  padding: 12px;
  background: #fff;
  border-radius: var(--ha-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: var(--ha-transition);
  z-index: 100;
}
.ha-nav-dropdown:hover .ha-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.ha-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--ha-radius-md);
  transition: var(--ha-transition);
}
.ha-nav-dropdown-item:hover {
  background: rgba(22, 93, 255, 0.05);
}
.ha-nav-dropdown-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(22, 93, 255, 0.08);
  border-radius: var(--ha-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ha-nav-dropdown-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--ha-primary);
}
.ha-nav-dropdown-item-content {
  flex: 1;
  min-width: 0;
}
.ha-nav-dropdown-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ha-text-primary);
  margin-bottom: 2px;
}
.ha-nav-dropdown-item-desc {
  font-size: 12px;
  color: var(--ha-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ha-nav-dropdown-item-tag {
  padding: 2px 8px;
  background: var(--ha-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  border-radius: 4px;
  flex-shrink: 0;
}
.ha-nav-dropdown-item-tag.soon {
  background: var(--ha-text-muted);
}
.ha-nav-dropdown-divider {
  height: 1px;
  background: var(--ha-border);
  margin: 8px 0;
}

.ha-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮 */
.ha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--ha-radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: var(--ha-transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.ha-btn svg {
  width: 18px;
  height: 18px;
}

.ha-btn-primary {
  background: linear-gradient(135deg, var(--ha-primary) 0%, var(--ha-primary-dark) 100%);
  color: #fff;
}

.ha-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 93, 255, 0.35);
}

.ha-btn-outline {
  background: rgba(22, 93, 255, 0.04);
  color: var(--ha-primary);
  border: 1.5px solid var(--ha-primary);
}

.ha-btn-outline:hover {
  background: rgba(22, 93, 255, 0.05);
}

.ha-btn-ghost {
  background: rgba(22, 93, 255, 0.04);
  color: var(--ha-text-muted);
  padding: 8px;
}

.ha-btn-ghost:hover {
  background: var(--ha-bg-light);
  color: var(--ha-text-primary);
}

.ha-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.ha-btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ============================================
   Hero 区域
   ============================================ */
.ha-hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(160deg, #EEF4FF 0%, #F8F6F2 50%, #FCF9F4 100%);
  overflow: hidden;
}

.ha-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ha-hero-gradient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.ha-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(22, 93, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 93, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ha-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.ha-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.ha-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ha-border);
  border-radius: 24px;
  font-size: 14px;
  color: var(--ha-text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.ha-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--ha-gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.ha-hero-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--ha-text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ha-title-accent {
  background: linear-gradient(135deg, var(--ha-primary) 0%, var(--ha-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ha-hero-subtitle {
  font-size: 20px;
  color: var(--ha-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.ha-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   数据统计
   ============================================ */
.ha-stats {
  background: var(--ha-bg-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--ha-border);
}

.ha-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.ha-stat-item {
  text-align: center;
}

.ha-stat-value {
  font-size: 42px;
  font-weight: 700;
  color: var(--ha-primary);
  line-height: 1;
  margin-bottom: 8px;
}

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

.ha-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--ha-border);
}

.ha-stats-note {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ha-text-muted);
}

/* ============================================
   通用区块
   ============================================ */
.ha-section {
  padding: 80px 0;
}

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

.ha-section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(22, 93, 255, 0.12);
  color: var(--ha-primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  margin-bottom: 16px;
}

.ha-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ha-text-primary);
  margin-bottom: 12px;
}

.ha-section-desc {
  font-size: 16px;
  color: var(--ha-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   服务介绍
   ============================================ */
.ha-intro {
  background: var(--ha-bg-light);
}

.ha-intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ha-intro-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ha-intro-card {
  background: var(--ha-bg-white);
  border-radius: var(--ha-radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--ha-shadow-md);
  border: 1px solid var(--ha-border);
  width: 100%;
  max-width: 320px;
  transition: var(--ha-transition);
}

.ha-intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ha-shadow-lg);
}

.ha-intro-card-main {
  border-color: var(--ha-primary);
  border-width: 2px;
}

.ha-intro-card-degree {
  border-color: var(--ha-gold);
  border-width: 2px;
}

.ha-intro-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(22, 93, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-primary);
}

.ha-intro-card-degree .ha-intro-card-icon {
  background: rgba(212, 175, 55, 0.1);
  color: var(--ha-gold);
}

.ha-intro-card-icon svg {
  width: 32px;
  height: 32px;
}

.ha-intro-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-text-primary);
  margin-bottom: 8px;
}

.ha-intro-card p {
  font-size: 14px;
  color: var(--ha-text-secondary);
  line-height: 1.6;
}

.ha-intro-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ha-text-muted);
  font-size: 13px;
}

.ha-path-arrow {
  width: 48px;
  height: 48px;
  background: var(--ha-bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ha-shadow-sm);
  color: var(--ha-primary);
}

.ha-path-arrow svg {
  width: 24px;
  height: 24px;
}

.ha-intro-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ha-text-primary);
  margin-bottom: 24px;
}

.ha-intro-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ha-intro-list li {
  display: flex;
  gap: 16px;
}

.ha-list-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 168, 112, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-success);
  flex-shrink: 0;
}

.ha-list-icon svg {
  width: 20px;
  height: 20px;
}

.ha-intro-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ha-text-primary);
  margin-bottom: 2px;
}

.ha-intro-list span {
  font-size: 14px;
  color: var(--ha-text-secondary);
}

.ha-intro-cta {
  margin-top: 32px;
}

/* ============================================
   申请流程
   ============================================ */
.ha-process {
  background: var(--ha-bg-white);
}

.ha-process-timeline {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ha-timeline-item {
  display: flex;
  gap: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--ha-transition);
}

.ha-timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.ha-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ha-marker-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--ha-primary) 0%, var(--ha-primary-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ha-timeline-item:nth-child(6) .ha-marker-number {
  background: linear-gradient(135deg, var(--ha-gold) 0%, var(--ha-gold-dark) 100%);
}

.ha-marker-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--ha-primary), rgba(22, 93, 255, 0.2));
  margin: 12px 0;
  min-height: 40px;
}

.ha-marker-line-last {
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.3), var(--ha-gold));
}

.ha-timeline-content {
  flex: 1;
  padding-bottom: 32px;
}

.ha-timeline-card {
  background: var(--ha-bg-light);
  border-radius: var(--ha-radius-lg);
  padding: 24px;
  border: 1px solid var(--ha-border);
  transition: var(--ha-transition);
}

.ha-timeline-card:hover {
  border-color: var(--ha-primary);
  box-shadow: var(--ha-shadow-md);
}

.ha-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ha-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(22, 93, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-primary);
}

.ha-card-icon-gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--ha-gold);
}

.ha-card-icon svg {
  width: 20px;
  height: 20px;
}

.ha-card-header h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ha-text-primary);
}

.ha-timeline-card p {
  font-size: 14px;
  color: var(--ha-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ha-card-meta {
  display: flex;
  gap: 8px;
}

.ha-meta-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(22, 93, 255, 0.1);
  color: var(--ha-primary);
  font-size: 12px;
  border-radius: 4px;
}

.ha-meta-tag-gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--ha-gold-dark);
}

/* ============================================
   核心优势
   ============================================ */
.ha-advantages {
  background: linear-gradient(180deg, var(--ha-bg-light) 0%, var(--ha-bg-white) 100%);
}

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

.ha-advantage-card {
  background: var(--ha-bg-white);
  border-radius: var(--ha-radius-lg);
  padding: 32px;
  border: 1px solid var(--ha-border);
  transition: var(--ha-transition);
  opacity: 0;
  transform: translateY(20px);
}

.ha-advantage-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.ha-advantage-icon {
  width: 56px;
  height: 56px;
  background: rgba(22, 93, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-primary);
  margin-bottom: 20px;
}

.ha-advantage-icon svg {
  width: 28px;
  height: 28px;
}

.ha-advantage-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ha-text-primary);
  margin-bottom: 10px;
}

.ha-advantage-card p {
  font-size: 14px;
  color: var(--ha-text-secondary);
  line-height: 1.6;
}

/* ============================================
   合作院校
   ============================================ */
.ha-schools {
  background: var(--ha-bg-white);
}

.ha-school-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ha-school-item {
  background: var(--ha-bg-light);
  border-radius: var(--ha-radius-lg);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--ha-border);
  transition: var(--ha-transition);
  opacity: 0;
  transform: translateY(20px);
}

.ha-school-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.ha-school-item:hover {
  border-color: var(--ha-primary);
  transform: translateY(-2px);
}

.ha-school-rank {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--ha-primary) 0%, var(--ha-primary-dark) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 12px;
}

.ha-school-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ha-text-primary);
  margin-bottom: 4px;
}

.ha-school-item p {
  font-size: 12px;
  color: var(--ha-text-muted);
}

/* ============================================
   咨询入口
   ============================================ */
.ha-consult {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1f33 100%);
  padding: 80px 0;
}

.ha-consult-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.ha-consult-content {
  color: #fff;
}

.ha-consult-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--ha-gold);
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  margin-bottom: 20px;
}

.ha-consult-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ha-consult-content > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 28px;
}

.ha-consult-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.ha-consult-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.ha-consult-feature svg {
  width: 20px;
  height: 20px;
  color: var(--ha-gold);
  flex-shrink: 0;
}

.ha-consult-qrcode {
  text-align: center;
}

.ha-qrcode-wrapper {
  background: var(--ha-bg-white);
  border-radius: var(--ha-radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}

.ha-qrcode-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  background: var(--ha-bg-light);
  border-radius: var(--ha-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-primary);
}

.ha-qrcode-placeholder svg {
  width: 100px;
  height: 100px;
}

.ha-qrcode-text p {
  font-size: 14px;
  color: var(--ha-text-secondary);
  margin: 0;
}

.ha-qrcode-text p:last-child {
  font-weight: 600;
  color: var(--ha-text-primary);
}

.ha-qrcode-tips {
  display: flex;
  justify-content: center;
}

.ha-tip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ha-tip-item svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   联系方式
   ============================================ */
.ha-contact {
  background: var(--ha-bg-light);
}

.ha-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ha-contact-card {
  background: var(--ha-bg-white);
  border-radius: var(--ha-radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--ha-border);
  transition: var(--ha-transition);
}

.ha-contact-card:hover {
  border-color: var(--ha-primary);
  box-shadow: var(--ha-shadow-md);
}

.ha-contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(22, 93, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-primary);
}

.ha-contact-icon svg {
  width: 28px;
  height: 28px;
}

.ha-contact-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ha-text-primary);
  margin-bottom: 8px;
}

.ha-contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ha-primary);
  margin-bottom: 4px;
}

.ha-contact-desc {
  font-size: 13px;
  color: var(--ha-text-muted);
}

/* ============================================
   页脚
   ============================================ */
.ha-footer {
  background: var(--ha-text-primary);
  color: #fff;
  padding: 60px 0 30px;
}

.ha-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ha-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ha-footer-logo .ha-logo-icon {
  background: var(--ha-primary);
}

.ha-footer-logo span {
  font-size: 20px;
  font-weight: 600;
}

.ha-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.ha-footer-links h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.ha-footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.ha-footer-links a:hover {
  color: #fff;
}

.ha-footer-contact h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.ha-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.ha-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ha-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.ha-footer-record a {
  color: rgba(255, 255, 255, 0.4);
}

.ha-footer-record a:hover {
  color: #fff;
}

/* ============================================
   弹窗
   ============================================ */
.ha-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--ha-transition);
}

.ha-modal.show {
  opacity: 1;
  visibility: visible;
}

.ha-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.ha-modal-content {
  position: relative;
  background: var(--ha-bg-white);
  border-radius: var(--ha-radius-lg);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: var(--ha-transition);
}

.ha-modal.show .ha-modal-content {
  transform: scale(1);
}

.ha-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-text-muted);
  border-radius: 6px;
  transition: var(--ha-transition);
}

.ha-modal-close:hover {
  background: var(--ha-bg-light);
  color: var(--ha-text-primary);
}

.ha-modal-close svg {
  width: 20px;
  height: 20px;
}

.ha-modal-header h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ha-text-primary);
  margin-bottom: 8px;
}

.ha-modal-header p {
  font-size: 14px;
  color: var(--ha-text-secondary);
  margin-bottom: 24px;
}

.ha-modal-header strong {
  color: var(--ha-primary);
}

.ha-modal-qrcode {
  margin-bottom: 24px;
}

.ha-qrcode-large {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: var(--ha-bg-light);
  border-radius: var(--ha-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ha-primary);
}

.ha-qrcode-large svg {
  width: 120px;
  height: 120px;
}

.ha-modal-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ha-modal-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ha-text-secondary);
}

.ha-modal-tip svg {
  width: 18px;
  height: 18px;
  color: var(--ha-success);
}

/* ============================================
   Toast
   ============================================ */
.ha-toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--ha-bg-white);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: var(--ha-transition);
  z-index: 1001;
}

.ha-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ha-toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ha-toast-icon svg {
  width: 100%;
  height: 100%;
}

.ha-toast-success .ha-toast-icon {
  color: var(--ha-success);
}

.ha-toast-error .ha-toast-icon {
  color: #ff4757;
}

.ha-toast-message {
  font-size: 14px;
  color: var(--ha-text-primary);
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 1200px) {
  .ha-intro-layout {
    gap: 48px;
  }

  .ha-advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ha-school-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ha-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ha-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .ha-consult-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ha-consult-features {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .ha-nav-menu {
    display: none;
  }

  .ha-hero-title {
    font-size: 36px;
  }

  .ha-hero-subtitle {
    font-size: 16px;
  }

  .ha-section-title {
    font-size: 28px;
  }

  .ha-stats-grid {
    flex-wrap: wrap;
    gap: 32px;
  }

  .ha-stat-divider {
    display: none;
  }

  .ha-intro-layout {
    grid-template-columns: 1fr;
  }

  .ha-intro-visual {
    order: -1;
  }

  .ha-process-timeline {
    gap: 0;
  }

  .ha-timeline-item {
    gap: 20px;
  }

  .ha-marker-number {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .ha-advantage-grid {
    grid-template-columns: 1fr;
  }

  .ha-school-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ha-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ha-footer-logo {
    justify-content: center;
  }

  .ha-contact-item {
    justify-content: center;
  }

  .ha-footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .ha-container {
    padding: 0 16px;
  }

  .ha-hero {
    padding: 120px 0 60px;
  }

  .ha-section {
    padding: 60px 0;
  }

  .ha-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .ha-hero-actions .ha-btn {
    width: 100%;
  }

  .ha-school-grid {
    grid-template-columns: 1fr;
  }

  .ha-contact-grid {
    grid-template-columns: 1fr;
  }

  .ha-qrcode-wrapper {
    padding: 24px;
  }

  .ha-qrcode-placeholder {
    width: 150px;
    height: 150px;
  }

  .ha-qrcode-placeholder svg {
    width: 80px;
    height: 80px;
  }
}

/* ============================================
   统一按钮规范 - 禾方AI
   ============================================ */
.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.hf-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.hf-btn-primary {
  background: #165DFF;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.2);
}

.hf-btn-primary:hover {
  background: #0D47CC;
  box-shadow: 0 4px 16px rgba(22, 93, 255, 0.3);
  transform: translateY(-1px);
}

.hf-btn-primary:active {
  background: #0A3CB8;
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(22, 93, 255, 0.2);
}

.hf-btn-secondary {
  background: rgba(22, 93, 255, 0.04);
  color: #165DFF;
  border: 1.5px solid #165DFF;
  box-shadow: 0 1px 2px rgba(22, 93, 255, 0.1);
}

.hf-btn-secondary:hover {
  background: rgba(22, 93, 255, 0.12);
  border-color: #0D47CC;
  color: #0D47CC;
}

.hf-btn-secondary:active {
  background: rgba(22, 93, 255, 0.1);
}

.hf-btn-text {
  background: rgba(22, 93, 255, 0.04);
  color: #165DFF;
  padding: 8px 12px;
}

.hf-btn-text:hover {
  color: #D4AF37;
}

.hf-btn-ghost {
  background: rgba(22, 93, 255, 0.04);
  color: #86909C;
  border: 1px solid transparent;
  padding: 8px 12px;
}

.hf-btn-ghost:hover {
  background: #F5F7FA;
  color: #1D2129;
}

.hf-btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.hf-btn-gold:hover {
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.hf-btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
}

.hf-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.hf-btn-xs {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.hf-btn:disabled,
.hf-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hf-btn:disabled:hover,
.hf-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.hf-card-clickable {
  background: #FFFFFF;
  border: 1px solid #E5E6EB;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hf-card-clickable:hover {
  border-color: rgba(22, 93, 255, 0.3);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.08);
  transform: translateY(-2px);
}

.hf-card-clickable:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.06);
}

/* 导航菜单样式 */
.ha-nav-item {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #4E5969;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ha-nav-item:hover {
  color: #165DFF;
  background: rgba(22, 93, 255, 0.04);
}

.ha-nav-item.active {
  color: #165DFF;
  font-weight: 600;
}

.ha-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #165DFF;
  border-radius: 1px;
}
