/* =========================================
   home.css (V12.0 PC 终极英雄剧场版)
   专注：1600px 极致宽屏、深蓝英雄框、电影感交互
   ========================================= */

:root {
  --brand-blue: #0f3b82; 
  --apple-bg: #f5f5f7;
  --apple-text: #1d1d1f;
  --apple-muted: #86868b;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
  --shadow-heavy: 0 30px 80px rgba(15, 59, 130, 0.15);
  --max: 1600px; 
}

/* 基础容器 */
.home-page { background: #fff; width: 100%; overflow-x: hidden; }
.home-shell { max-width: var(--max); margin: 0 auto; padding: 0 40px; box-sizing: border-box; }

/* =========================================
   1. 顶部英雄剧场 (Hero Section)
   核心：深蓝背景框、反白文字
   ========================================= */
.home-hero-text {
  padding: 80px 0; /* 外部留白 */
  background: #fff;
}

.home-hero-text .home-shell {
  background: var(--brand-blue) !important; /* 强制应用品牌深蓝 */
  border-radius: 60px; /* 大圆角质感 */
  padding: 120px 60px; /* 框内充盈的留白 */
  text-align: center;
  box-shadow: 0 40px 100px rgba(15, 59, 130, 0.2);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 内部文字反白处理 */
.hero-text-kicker { 
  font-size: 16px; font-weight: 700; letter-spacing: 0.15em; 
  color: rgba(255, 255, 255, 0.6) !important; 
  margin-bottom: 24px; display: block; 
}

.hero-text-title { 
  font-size: clamp(40px, 5.5vw, 82px) !important; 
  line-height: 1.15; font-weight: 800; 
  color: #ffffff !important; 
  margin-bottom: 40px; 
  letter-spacing: -0.02em;
}

.hero-text-desc { 
  font-size: 20px; line-height: 1.8; max-width: 850px; margin: 0 auto; 
  color: rgba(255, 255, 255, 0.8) !important; 
}

/* =========================================
   2. 影像卡片网格系统
   ========================================= */
.cinematic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 60px 0; }

.photo-item-card {
  display: flex; flex-direction: column; text-decoration: none; 
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-frame {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 42px; overflow: hidden; 
  background: var(--apple-bg); box-shadow: var(--shadow-soft);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0,0,0,0.02);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-content-desc { margin-top: 24px; text-align: center; }
.photo-content-desc p { font-size: 16px; font-weight: 600; color: var(--apple-muted); transition: color 0.4s ease; }

/* 交互化学反应 */
.photo-item-card:hover { transform: translateY(-12px); }
.photo-item-card:hover .photo-frame { transform: scale(1.02); box-shadow: var(--shadow-heavy); border-color: rgba(15, 59, 130, 0.1); }
.photo-item-card:hover .photo-content-desc p { color: var(--brand-blue); }

/* =========================================
   3. 核心哲学版块 (左右对齐分栏)
   ========================================= */
.home-section { padding: 120px 0; }

.philosophy-content h2 { 
  font-size: clamp(32px, 4.5vw, 60px); font-weight: 800; margin-bottom: 60px; 
  line-height: 1.25; color: var(--apple-text); 
}

.philosophy-text-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.philosophy-text-columns p { font-size: 18px; line-height: 2; color: var(--apple-muted); margin-bottom: 40px; }
.philosophy-text-columns p strong { 
  display: block; font-size: 22px; color: var(--apple-text); margin-bottom: 12px; font-weight: 800; 
}

/* =========================================
   4. 视频剧场矩阵
   ========================================= */
.video-matrix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.video-item-card { text-decoration: none; display: block; }
.video-poster-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 42px; overflow: hidden; box-shadow: var(--shadow-soft); 
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-poster-frame img { width: 100%; height: 100%; object-fit: cover; }

.video-overlay {
  position: absolute; inset: 0; background: rgba(15, 59, 130, 0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.play-btn-icon {
  width: 80px; height: 80px; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
/* 播放三角图标 */
.play-btn-icon::after {
  content: ''; width: 0; height: 0; border-style: solid;
  border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--brand-blue);
  margin-left: 5px;
}

.video-item-card:hover .video-poster-frame { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-heavy); }
.video-item-card:hover .video-overlay { opacity: 1; }

.video-caption { margin-top: 24px; }
.video-category { font-size: 14px; font-weight: 700; color: var(--brand-blue); display: block; margin-bottom: 8px; text-transform: uppercase; }
.video-title { font-size: 20px; font-weight: 800; color: var(--apple-text); line-height: 1.4; }

/* =========================================
   5. 底部 CTA 胶囊
   ========================================= */
.home-cta-wrap {
  background: var(--brand-blue); border-radius: 60px;
  padding: 140px 60px; text-align: center; color: #fff;
  box-shadow: 0 40px 100px rgba(15, 59, 130, 0.2);
}

.btn-apple { 
  display: inline-flex; align-items: center; justify-content: center; 
  padding: 22px 60px; border-radius: 999px; font-weight: 700; 
  text-decoration: none; transition: 0.4s; font-size: 18px; 
}
.btn-apple-white { background: #fff; color: var(--brand-blue); margin-right: 20px; }
.btn-apple-white:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.btn-apple-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-apple-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-5px); }
/* =========================================
   修正：英雄剧场版核心词强调
   ========================================= */

.hero-text-title span {
    /* 1. 颜色改为亮蓝色，在深蓝底色上非常抓眼 */
    color: #4dabff !important; 
    
    /* 2. 增加一点点微光感，模拟剧场追光的效果 */
    text-shadow: 0 0 20px rgba(77, 171, 255, 0.4);
    
    /* 3. 如果你想要更强的强调，可以像智谱那样加个极淡的底色块 */
    background: rgba(255, 255, 255, 0.05);
    padding: 0 10px;
    border-radius: 12px;
    
    transition: all 0.4s ease;
}

/* 鼠标移上去的时候，让它更有生命力 */
.home-hero-text .home-shell:hover .hero-text-title span {
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}


/* =========================================
   备考周期图模块（首页核心新增）
   ========================================= */

.dingge-dashboard-preview {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  padding-top: 130px;
  padding-bottom: 130px;
  position: relative;
  overflow: hidden;
}

.dingge-dashboard-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 59, 130, 0.08), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(77, 171, 255, 0.12), transparent 25%);
  pointer-events: none;
}

.dingge-dashboard-preview .home-shell {
  position: relative;
  z-index: 1;
}

.dashboard-preview-header {
  text-align: center;
  margin-bottom: 70px;
}

.dashboard-preview-header .hero-text-kicker {
  color: var(--brand-blue) !important;
}

.dashboard-preview-header h2 {
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--apple-text);
  margin: 0 0 24px;
  letter-spacing: -0.04em;
}

.dashboard-preview-header p {
  font-size: 20px;
  color: var(--apple-muted);
  line-height: 1.8;
  max-width: 880px;
  margin: 0 auto;
}

.dashboard-preview-card {
  border-radius: 52px;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 12%, rgba(77, 171, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #ffffff, #f3f7ff);
  box-shadow: 0 40px 110px rgba(15, 59, 130, 0.18);
  border: 1px solid rgba(15, 59, 130, 0.10);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-preview-card:hover {
  transform: translateY(-10px) scale(1.005);
  box-shadow: 0 50px 130px rgba(15, 59, 130, 0.24);
}

.dashboard-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 30px;
  padding: 28px 32px;
  margin-bottom: 18px;
}

.dashboard-preview-top strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.dashboard-preview-top span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.dashboard-preview-countdown {
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 800;
  font-size: 15px;
}

.dashboard-preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-preview-kpis div {
  background: #fff;
  border: 1px solid rgba(15, 59, 130, 0.10);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(15, 59, 130, 0.08);
}

.dashboard-preview-kpis small {
  display: block;
  color: var(--apple-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.dashboard-preview-kpis b {
  color: var(--brand-blue);
  font-size: 34px;
  letter-spacing: -0.05em;
}

.dashboard-preview-kpis b.danger {
  color: #e84d4d;
}

.dashboard-preview-body {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr 0.9fr;
  gap: 18px;
}

.dashboard-preview-chart,
.dashboard-preview-road,
.dashboard-preview-rank {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(15, 59, 130, 0.10);
  box-shadow: 0 18px 44px rgba(15, 59, 130, 0.08);
  min-height: 260px;
  padding: 24px;
}

.chart-title,
.road-title {
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}

.fake-bars {
  height: 170px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-bottom: 1px solid rgba(15, 59, 130, 0.12);
}

.fake-bars i {
  display: block;
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #4dabff, var(--brand-blue));
  box-shadow: 0 10px 22px rgba(15, 59, 130, 0.16);
}

.dashboard-preview-road {
  position: relative;
  overflow: hidden;
}

.dashboard-preview-road::before {
  content: "";
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 90px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(25,179,123,.10), rgba(31,92,255,.10), rgba(245,165,36,.10), rgba(232,77,77,.10));
}

.dashboard-preview-road .road-line {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 50%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #19b37b, #1f5cff, #f5a524, #e84d4d);
}

.road-stages {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  height: 180px;
  align-items: center;
}

.road-stages div {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15, 59, 130, 0.12);
  border-radius: 20px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 59, 130, 0.08);
}

.road-stages div.is-active {
  background: #edf4ff;
  border-color: rgba(15, 59, 130, 0.28);
}

.road-stages span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-blue);
  margin: 0 auto 12px;
  box-shadow: 0 0 0 8px rgba(15, 59, 130, 0.10);
}

.road-stages b {
  display: block;
  color: var(--apple-text);
  font-size: 15px;
  margin-bottom: 6px;
}

.road-stages em {
  font-style: normal;
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 14px;
}

.dashboard-preview-rank p {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f6f8fb;
  color: var(--apple-text);
  font-size: 15px;
}

.dashboard-preview-rank p span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e8f0ff;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.dashboard-preview-rank p b {
  color: var(--brand-blue);
}

.dashboard-preview-actions {
  text-align: center;
  margin-top: 56px;
}

.btn-dashboard-primary,
.btn-dashboard-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 20px 40px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.35s ease;
}

.btn-dashboard-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 20px 44px rgba(15, 59, 130, 0.20);
}

.btn-dashboard-secondary {
  margin-left: 18px;
  background: #fff;
  color: var(--brand-blue);
  border: 1px solid rgba(15, 59, 130, 0.16);
}

.btn-dashboard-primary:hover,
.btn-dashboard-secondary:hover {
  transform: translateY(-5px);
}

@media (max-width: 1100px) {
  .dashboard-preview-body {
    grid-template-columns: 1fr;
  }

  .dashboard-preview-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-preview-top {
    display: block;
  }

  .dashboard-preview-countdown {
    display: inline-flex;
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .dingge-dashboard-preview {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .dashboard-preview-card {
    border-radius: 32px;
    padding: 16px;
  }

  .dashboard-preview-top {
    border-radius: 24px;
    padding: 24px;
  }

  .dashboard-preview-top strong {
    font-size: 23px;
  }

  .dashboard-preview-kpis,
  .road-stages {
    grid-template-columns: 1fr;
  }

  .road-stages {
    height: auto;
  }

  .dashboard-preview-road .road-line {
    display: none;
  }

  .btn-dashboard-primary,
  .btn-dashboard-secondary {
    width: 100%;
    min-width: 0;
  }

  .btn-dashboard-secondary {
    margin-left: 0;
    margin-top: 14px;
  }
}
