/* ============================================
   禾方AI - 教育科技平台首页样式
   ============================================ */

/* ============================================
   CSS 变量定义 - 禾方AI专属配色体系
   ============================================ */
:root {
  /* 主色调 */
  --hf-primary: #165DFF;
  --hf-primary-dark: #0D47CC;
  --hf-primary-light: #4080FF;
  --hf-gold: #D4AF37;
  --hf-gold-light: #E5C76B;
  --hf-gold-dark: #B8962E;

  /* 中性灰体系 */
  --hf-bg-light: #F5F7FA;
  --hf-bg-white: #FFFFFF;
  --hf-border: #E5E6EB;
  --hf-text-primary: #1D2129;
  --hf-text-secondary: #4E5969;
  --hf-text-muted: #86909C;

  /* 渐变色 */
  --hf-gradient-primary: linear-gradient(135deg, #EEF4FF 0%, #FDF9F0 100%);
  --hf-gradient-blue: linear-gradient(180deg, #EEF4FF 0%, #FFFFFF 100%);
  --hf-gradient-gold: linear-gradient(180deg, #FDF9F0 0%, #FFFFFF 100%);
  --hf-gradient-hero: linear-gradient(160deg, #EEF4FF 0%, #F5F3EE 40%, #FDF9F0 100%);

  /* 阴影 */
  --hf-shadow-sm: 0 1px 2px rgba(22, 93, 255, 0.05);
  --hf-shadow-md: 0 4px 12px rgba(22, 93, 255, 0.08);
  --hf-shadow-lg: 0 8px 24px rgba(22, 93, 255, 0.12);
  --hf-shadow-card: 0 4px 20px rgba(22, 93, 255, 0.06);
  --hf-shadow-card-hover: 0 12px 32px rgba(22, 93, 255, 0.12);

  /* 圆角 */
  --hf-radius-sm: 6px;
  --hf-radius-md: 10px;
  --hf-radius-lg: 16px;
  --hf-radius-xl: 24px;

  /* 过渡 */
  --hf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   基础重置
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hf-text-primary);
  background-color: var(--hf-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--hf-transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   容器与布局
   ============================================ */
.hf-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.hf-section {
  padding: 100px 0;
}

/* ============================================
   导航栏
   ============================================ */
.hf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hf-border);
  z-index: 1000;
  transition: var(--hf-transition);
}

.hf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.hf-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hf-logo-mark { height: 40px; width: auto; display: block; flex-shrink: 0; }

.hf-logo-text {
  display: flex;
  flex-direction: column;
}

.hf-logo-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--hf-text-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hf-logo-slogan {
  font-size: 11px;
  color: var(--hf-text-muted);
  letter-spacing: 0.3px;
}

.hf-nav-menu {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hf-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);
}

.hf-nav-item:hover {
  color: #165DFF;
  background: rgba(22, 93, 255, 0.04);
}

.hf-nav-item.active {
  color: #165DFF;
  font-weight: 600;
}

.hf-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #165DFF;
  border-radius: 1px;
}

/* 下拉菜单 */
.hf-nav-dropdown {
  position: relative;
}

.hf-nav-dropdown > .hf-nav-item {
  cursor: pointer;
}

.hf-nav-dropdown > .hf-nav-item::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 4px solid #4E5969;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: all 0.25s;
}

.hf-nav-dropdown > .hf-nav-item:hover::after {
  border-top-color: #165DFF;
}

.hf-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.hf-nav-dropdown:hover > .hf-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hf-nav-dropdown-divider {
  height: 1px;
  background: #E5E6EB;
  margin: 8px 0;
}

.hf-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.hf-nav-dropdown-item:hover {
  background: rgba(22, 93, 255, 0.04);
}

.hf-nav-dropdown-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(22, 93, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hf-nav-dropdown-item-icon svg {
  width: 20px;
  height: 20px;
  color: #165DFF;
}

.hf-nav-dropdown-item-icon.gold {
  background: rgba(212, 175, 55, 0.08);
}

.hf-nav-dropdown-item-icon.gold svg {
  color: #D4AF37;
}

.hf-nav-dropdown-item-icon.gray {
  background: rgba(77, 81, 85, 0.08);
}

.hf-nav-dropdown-item-icon.gray svg {
  color: #4E5969;
}

.hf-nav-dropdown-item-content {
  flex: 1;
  min-width: 0;
}

.hf-nav-dropdown-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #1D2129;
  margin-bottom: 2px;
}

.hf-nav-dropdown-item-desc {
  font-size: 12px;
  color: #86909C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-nav-dropdown-item-tag {
  padding: 3px 10px;
  background: #165DFF;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hf-nav-dropdown-item-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.3);
}

.hf-nav-dropdown-item-tag.soon {
  background: linear-gradient(135deg, #86909C 0%, #6B7785 100%);
  position: relative;
  overflow: hidden;
}

.hf-nav-dropdown-item-tag.soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: soonShine 2s infinite;
}

.hf-nav-dropdown-item-tag.soon:hover {
  background: linear-gradient(135deg, #9CA3B0 0%, #7A8594 100%);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(134, 144, 156, 0.4);
}

@keyframes soonShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }

/* 已上线状态标签 */
.hf-nav-dropdown-item-tag.live {
  background: linear-gradient(135deg, #00B42A 0%, #009A29 100%);
  position: relative;
  overflow: hidden;
}

.hf-nav-dropdown-item-tag.live:hover {
  background: linear-gradient(135deg, #00C42F 0%, #00A82B 100%);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 180, 42, 0.35);
}

/* 下拉项选中圆点 */
.active-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #165DFF;
  margin-right: 6px;
  vertical-align: middle;
}

}

/* ============================================
   统一按钮规范 - 禾方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.08);
  border-color: #0D47CC;
  color: #0D47CC;
}

.hf-btn-secondary:active {
  background: rgba(22, 93, 255, 0.12);
}

/* 文字按钮 - 无背景无边框 */
.hf-btn-text {
  background: transparent;
  color: #165DFF;
  padding: 8px 12px;
}

.hf-btn-text:hover {
  color: #D4AF37;
}

.hf-btn-text:active {
  color: #B8962E;
}

/* 幽灵按钮 - 灰色背景 */
.hf-btn-ghost {
  background: transparent;
  color: #86909C;
  border: 1px solid transparent;
  padding: 8px 12px;
}

.hf-btn-ghost:hover {
  background: #F5F7FA;
  color: #1D2129;
}

.hf-btn-ghost:active {
  background: #E5E6EB;
}

/* 金色按钮 - 用于特殊强调 */
.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);
  background: linear-gradient(135deg, #E5C76B 0%, #D4AF37 100%);
}

.hf-btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(212, 175, 55, 0.25);
}

/* 按钮尺寸 */
.hf-btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
}

.hf-btn-lg svg {
  width: 18px;
  height: 18px;
}

.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;
}

/* ============================================
   统一卡片规范 - 禾方AI
   ============================================ */

/* 可点击卡片 */
.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);
}

/* 卡片顶部渐变边框效果 */
.hf-card-accent {
  position: relative;
  overflow: hidden;
}

.hf-card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #165DFF, #D4AF37);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hf-card-accent:hover::before {
  opacity: 1;
}

/* ============================================
   Hero 区域
   ============================================ */
.hf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--hf-gradient-hero);
  overflow: hidden;
}

.hf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(22, 93, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.hf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(22, 93, 255, 0.08);
  border: 1px solid rgba(22, 93, 255, 0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hf-primary);
  margin-bottom: 32px;
}

.hf-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--hf-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hf-hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hf-text-primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hf-hero-title-accent {
  background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hf-hero-subtitle {
  font-size: 20px;
  color: var(--hf-text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
}

.hf-hero-subtitle-separator {
  margin: 0 12px;
  color: var(--hf-border);
}

.hf-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hf-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--hf-border);
}

.hf-hero-stat {
  text-align: center;
}

.hf-hero-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--hf-text-primary);
  letter-spacing: -0.5px;
}

.hf-hero-stat-label {
  font-size: 14px;
  color: var(--hf-text-muted);
  margin-top: 4px;
}

.hf-hero-stat-desc {
  font-size: 12px;
  color: var(--hf-primary);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================
   核心业务区
   ============================================ */
.hf-services {
  background: var(--hf-bg-white);
  padding: 100px 0;
}

.hf-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.hf-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hf-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hf-section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--hf-text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hf-section-desc {
  font-size: 16px;
  color: var(--hf-text-secondary);
  line-height: 1.7;
}

.hf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hf-service-card {
  background: var(--hf-bg-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  padding: 40px;
  transition: var(--hf-transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hf-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hf-primary), var(--hf-gold));
  opacity: 0;
  transition: var(--hf-transition);
}

.hf-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22, 93, 255, 0.1);
  border-color: transparent;
}

.hf-service-card:hover::before {
  opacity: 1;
}

.hf-service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
  border-radius: var(--hf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.hf-service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--hf-text-primary);
  margin-bottom: 12px;
}

.hf-service-desc {
  font-size: 15px;
  color: var(--hf-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hf-service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hf-border);
  margin-bottom: 24px;
}

.hf-service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--hf-text-secondary);
}

.hf-service-feature-icon {
  width: 18px;
  height: 18px;
  background: rgba(22, 93, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-primary);
  font-size: 10px;
  flex-shrink: 0;
}

/* 服务区块子标题 */
.hf-section-subheader {
  text-align: center;
  margin-bottom: 40px;
}

.hf-section-subtitle {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--hf-text-primary);
  padding: 0 24px;
  position: relative;
}

.hf-section-subtitle::before,
.hf-section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--hf-border);
}

.hf-section-subtitle::before {
  right: 100%;
}

.hf-section-subtitle::after {
  left: 100%;
}

/* 4列服务网格 */
.hf-services-grid-4col {
  grid-template-columns: repeat(4, 1fr);
}

/* 4列网格下的卡片紧凑化（桌面列宽仅 ~276px，不压高度会变成细长条；
   ≤1024px 降为 2 列后卡片变宽，紧凑样式反而显小气，故只作用于桌面端） */
@media (min-width: 1025px) {
  .hf-services-grid-4col .hf-service-card {
    padding: 24px;
  }
  .hf-services-grid-4col .hf-service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }
  .hf-services-grid-4col .hf-service-icon svg {
    width: 20px;
    height: 20px;
  }
  .hf-services-grid-4col .hf-service-title {
    font-size: 19px;
    margin-bottom: 6px;
  }
  .hf-services-grid-4col .hf-service-subtitle {
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 12px;
  }
  .hf-services-grid-4col .hf-service-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .hf-services-grid-4col .hf-service-features {
    gap: 8px;
    padding-top: 14px;
    margin-bottom: 14px;
  }
  .hf-services-grid-4col .hf-service-feature {
    font-size: 13px;
    gap: 8px;
  }
  .hf-services-grid-4col .hf-service-feature-icon {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
}

/* 2列服务网格 */
.hf-services-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* 精选服务卡片（已上线产品） */
.hf-service-card-featured {
  border-color: var(--hf-primary);
}

.hf-service-card-featured::before {
  opacity: 1;
  background: var(--hf-primary);
}

.hf-service-card-featured:hover {
  box-shadow: 0 16px 40px rgba(22, 93, 255, 0.15);
}

/* 即将上线卡片 */
.hf-service-card-soon {
  background: linear-gradient(180deg, var(--hf-bg-white) 0%, rgba(245, 247, 250, 0.5) 100%);
}

.hf-service-card-soon .hf-service-icon {
  background: rgba(212, 175, 55, 0.08);
}

.hf-service-card-soon:hover {
  transform: none;
  box-shadow: none;
}

/* 服务徽章 */
.hf-service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background: var(--hf-primary);
  color: #fff;
}

.hf-service-badge-soon {
  background: var(--hf-text-muted);
}

/* 已上线产品徽章 */
.hf-service-badge-live {
  background: #00B42A;
}

/* 服务副标题 */
.hf-service-subtitle {
  font-size: 14px;
  color: var(--hf-text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
}

/* 服务按钮 */
.hf-service-btn {
  margin-top: auto;
  width: 100%;
}

/* 锚点跳转避让固定导航（72px 高） */
section[id],
footer[id] {
  scroll-margin-top: 88px;
}

/* 导航滚动阴影（页面 JS 会给 .hf-nav 加 .scrolled） */
.hf-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================
   产品优势区
   ============================================ */
.hf-advantages {
  background: var(--hf-bg-light);
  padding: 100px 0;
}

.hf-advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}

.hf-advantage-card {
  background: var(--hf-bg-white);
  border-radius: var(--hf-radius-lg);
  padding: 48px;
  box-shadow: var(--hf-shadow-card);
  transition: var(--hf-transition);
}

.hf-advantage-card:hover {
  box-shadow: 0 12px 32px rgba(22, 93, 255, 0.1);
  transform: translateY(-2px);
}

.hf-advantage-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.hf-advantage-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-light) 100%);
  border-radius: var(--hf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
}

.hf-advantage-icon.gold {
  background: linear-gradient(135deg, var(--hf-gold) 0%, var(--hf-gold-light) 100%);
}

.hf-advantage-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--hf-text-primary);
  margin-bottom: 8px;
}

.hf-advantage-subtitle {
  font-size: 14px;
  color: var(--hf-text-muted);
}

.hf-advantage-desc {
  font-size: 15px;
  color: var(--hf-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hf-advantage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hf-advantage-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--hf-bg-light);
  border-radius: 100px;
  font-size: 13px;
  color: var(--hf-text-secondary);
  font-weight: 500;
}

/* ============================================
   升学服务引流区
   ============================================ */
.hf-cta {
  background: linear-gradient(135deg, #EEF4FF 0%, #FDF9F0 50%, #F5F3EE 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hf-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 93, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hf-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hf-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hf-cta-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--hf-gold) 0%, var(--hf-gold-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  margin: 0 auto 32px;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.hf-cta-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--hf-text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hf-cta-desc {
  font-size: 18px;
  color: var(--hf-text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hf-cta-features {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--hf-radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.hf-cta-feature {
  text-align: center;
}

.hf-cta-feature-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--hf-gold-dark);
}

.hf-cta-feature-label {
  font-size: 13px;
  color: var(--hf-text-muted);
  margin-top: 4px;
}

.hf-cta-features-note {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--hf-text-muted);
}

/* ============================================
   页脚
   ============================================ */
.hf-footer {
  background: var(--hf-text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.hf-footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hf-footer-brand {
  max-width: 320px;
}

.hf-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hf-footer-logo-mark { height: 38px; width: auto; display: block; flex-shrink: 0; }

.hf-footer-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.hf-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.hf-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hf-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.hf-footer-contact-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.hf-footer-column {
  min-width: 0;
}

.hf-footer-slogan {
  font-size: 14px;
  font-weight: 600;
  color: #D4AF37;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hf-footer-column-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
}

.hf-footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hf-footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--hf-transition);
}

.hf-footer-link:hover {
  color: var(--hf-gold);
}

.hf-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.hf-footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.hf-footer-filing {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* 页脚备案号链接：继承页脚文字颜色，悬停才加下划线 */
.hf-footer-filing a {
  color: inherit;
  text-decoration: none;
}

.hf-footer-filing a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* ============================================
   移动端响应式
   ============================================ */
@media (max-width: 1024px) {
  .hf-container {
    padding: 0 32px;
  }

  .hf-nav-inner {
    padding: 0 32px;
  }

  /* 平板及以下：菜单回到常规流右对齐，避免绝对居中后与 Logo 重叠 */
  .hf-nav-menu {
    position: static;
    height: auto;
    transform: none;
  }

  .hf-hero-title {
    font-size: 48px;
  }

  .hf-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hf-services-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .hf-services-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .hf-advantages-grid {
    grid-template-columns: 1fr;
  }

  .hf-footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hf-container {
    padding: 0 24px;
  }

  .hf-nav-menu {
    display: none;
  }

  .hf-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hf-hero-content {
    padding: 60px 24px;
  }

  .hf-hero-title {
    font-size: 36px;
  }

  .hf-hero-subtitle {
    font-size: 16px;
  }

  .hf-hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hf-hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hf-section {
    padding: 60px 0;
  }

  .hf-section-title {
    font-size: 32px;
  }

  .hf-services-grid {
    grid-template-columns: 1fr;
  }

  .hf-services-grid-4col {
    grid-template-columns: 1fr;
  }

  .hf-services-grid-2col {
    grid-template-columns: 1fr;
  }

  .hf-service-card {
    padding: 24px;
  }

  .hf-cta-features {
    flex-direction: column;
    gap: 24px;
  }

  .hf-footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hf-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   动画与过渡
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hf-animate {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.hf-delay-1 { animation-delay: 0.1s; }
.hf-delay-2 { animation-delay: 0.2s; }
.hf-delay-3 { animation-delay: 0.3s; }
.hf-delay-4 { animation-delay: 0.4s; }

/* 滚动视差效果 */
.hf-parallax {
  will-change: transform;
}

/* 导航栏下拉项选中态 */
.hf-nav-dropdown-item.active {
  background: rgba(22, 93, 255, 0.08);
  border-left: 3px solid #165DFF;
}
.hf-nav-dropdown-item.active .hf-nav-dropdown-item-title {
  color: #165DFF;
  font-weight: 600;
}

/* ==========================================
   页脚空入口轻提示（全站统一）
   ========================================== */
.hf-hint {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 14px);
  z-index: 9999;
  max-width: min(92vw, 440px);
  padding: 12px 22px;
  border-radius: 10px;
  background: rgba(23, 26, 33, 0.92);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.hf-hint.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .hf-hint { bottom: 20px; font-size: 13px; padding: 11px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-hint { transition: opacity 0.01ms linear; }
}
