/* ============================================================
   极客机器人门户站样式表
   主色: 深蓝 #030149 / 强调色: 橙 #E6A23C
   结构: 变量 → 基础 → 按钮 → 导航 → 轮播 → 通用区块 → 各区块 → 页脚 → 响应式
   ------------------------------------------------------------
   2026-09 精致打磨版：
   - 导航默认加顶部渐变 + logo 白色衬底，解决深底看不清问题
   - 区块标题增加英文 eyebrow 眉题
   - 卡片：渐变图标 / 顶部强调条 / 图片悬停放大 / 信息胶囊
   - 动效：入场逐级延迟、轮播 Ken Burns 缓推、文字逐行浮入
   ============================================================ */

:root {
  --color-primary: #030149;        /* 深蓝主色 */
  --color-primary-dark: #020135;   /* 深蓝-暗 */
  --color-primary-light: #0a05a0;  /* 深蓝-亮 */
  --color-accent: #E6A23C;         /* 橙色强调 */
  --color-accent-dark: #cf8a24;    /* 橙色-按下态 */
  --color-accent-light: #f2c078;   /* 橙色-亮（渐变用） */
  --color-text: #2b2d42;           /* 正文深灰 */
  --color-text-light: #5d6070;     /* 次要文字 */
  --color-bg: #ffffff;             /* 白底 */
  --color-bg-grey: #f6f7fb;        /* 浅灰区块底 */
  --color-border: #eceef5;         /* 卡片细边 */
  --radius-card: 12px;             /* 卡片圆角 */
  --radius-btn: 24px;              /* 按钮圆角（胶囊） */
  --shadow-card: 0 4px 16px rgba(3, 1, 73, 0.06), 0 10px 30px rgba(3, 1, 73, 0.05);
  --shadow-hover: 0 14px 44px rgba(3, 1, 73, 0.14);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);  /* 统一缓出曲线 */
  --header-height: 68px;
  --font-main: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 锚点跳转时预留固定导航高度，避免标题被遮住 */
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* 文字渲染更细腻 */
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* 选中文本配色 */
::selection { background: var(--color-accent); color: #fff; }

/* 细滚动条，贴合站点配色 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f1f6; }
::-webkit-scrollbar-thumb { background: #c3c6d8; border-radius: 5px; border: 2px solid #f0f1f6; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-light); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 30px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: #fff;
  box-shadow: 0 6px 18px rgba(230, 162, 60, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  box-shadow: 0 10px 26px rgba(230, 162, 60, 0.45);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 42px; font-size: 17px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  /* 未滚动时：自上而下渐隐的深蓝，保证 logo 与菜单在深色轮播图上可读 */
  background: linear-gradient(to bottom, rgba(3, 1, 73, 0.55), rgba(3, 1, 73, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动后由 JS 加 .scrolled，变为半透明深蓝 + 毛玻璃 */
.site-header.scrolled {
  background: rgba(3, 1, 73, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }

/* logo 为深色图案，加白色圆角衬底保证在深底上清晰 */
.brand-logo {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.brand-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s ease;
}

/* 悬停时橙色下划线从中间展开 */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; }

/* 移动端汉堡按钮，桌面端隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero 轮播 ---------- */
.hero { height: 100vh; min-height: 600px; }

.hero-carousel { position: relative; height: 100%; overflow: hidden; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  display: flex;
  align-items: center;
}

/* 当前帧做缓慢推近（Ken Burns），画面更有生气 */
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  animation: heroZoom 7s var(--ease-out) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

/* 深色遮罩保证文字可读，左侧更深 */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(3, 1, 73, 0.82), rgba(3, 1, 73, 0.42) 60%, rgba(3, 1, 73, 0.25));
}

.hero-content { position: relative; z-index: 2; max-width: 640px; }

/* 当前帧文字逐行浮入 */
.hero-slide .hero-content > * {
  opacity: 0;
  transform: translateY(26px);
}

.hero-slide.active .hero-content > * {
  animation: heroFadeUp 0.8s var(--ease-out) forwards;
}

.hero-slide.active .hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero-slide.active .hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-slide.active .hero-content > *:nth-child(3) { animation-delay: 0.40s; }
.hero-slide.active .hero-content > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  color: var(--color-accent);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 14px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  letter-spacing: 1px;
  margin: 18px 0 34px;
}

/* 左右箭头：半透明毛玻璃圆形 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(3, 1, 73, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.hero-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev { left: 28px; }
.hero-next { right: 28px; }

/* 指示点：当前项拉长为胶囊 */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px; height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.8); }

.hero-dot.active { width: 28px; background: var(--color-accent); }

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

/* 偶数区块浅灰底 + 极淡圆点纹理，增加细节层次 */
.section:nth-of-type(even) {
  background: var(--color-bg-grey);
  background-image: radial-gradient(rgba(3, 1, 73, 0.05) 1px, transparent 1.2px);
  background-size: 24px 24px;
}

/* 英文眉题：居中、加宽字距（末字补字距保证视觉居中）、两侧短横线 */
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-indent: 4px; /* 抵消末字缺少的 letter-spacing */
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 30px; height: 1px;
  background: rgba(230, 162, 60, 0.55);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 1px;
  margin-top: 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 44px; height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-top: 14px;
  font-size: 16px;
}

.section-desc {
  max-width: 860px;
  margin: 22px auto 0;
  color: var(--color-text-light);
  font-size: 16px;
  text-align: center;
}

/* 入场动画初始状态，由 JS 加 .visible */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* 动画完成后清除延迟，避免影响卡片自身的悬停过渡 */
.reveal.visible { opacity: 1; transform: translateY(0); transition-delay: 0s; }

/* 网格内卡片逐级延迟入场（仅入场阶段生效） */
:is(.platform-grid, .course-grid, .idea-grid, .why-grid, .news-grid, .testimonial-grid, .about-gallery, .faq-list) > .reveal:nth-child(2) { transition-delay: 0.07s; }
:is(.platform-grid, .course-grid, .idea-grid, .why-grid, .news-grid, .testimonial-grid, .about-gallery, .faq-list) > .reveal:nth-child(3) { transition-delay: 0.14s; }
:is(.platform-grid, .course-grid, .idea-grid, .why-grid, .news-grid, .testimonial-grid, .about-gallery, .faq-list) > .reveal:nth-child(4) { transition-delay: 0.21s; }
:is(.platform-grid, .course-grid, .idea-grid, .why-grid, .news-grid, .testimonial-grid, .about-gallery, .faq-list) > .reveal:nth-child(5) { transition-delay: 0.28s; }
:is(.platform-grid, .course-grid, .idea-grid, .why-grid, .news-grid, .testimonial-grid, .about-gallery, .faq-list) > .reveal:nth-child(6) { transition-delay: 0.35s; }
:is(.platform-grid, .course-grid, .idea-grid, .why-grid, .news-grid, .testimonial-grid, .about-gallery, .faq-list) > .reveal:nth-child(7) { transition-delay: 0.42s; }

/* ---------- 板块入口 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.platform-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 38px 24px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 顶部橙色强调条，悬停时展开 */
.platform-card::before {
  content: "";
  position: absolute;
  top: 0; left: 26px; right: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

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

.platform-card:hover::before { transform: scaleX(1); }

.platform-icon {
  width: 66px; height: 66px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary));
  box-shadow: 0 8px 18px rgba(3, 1, 73, 0.25);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-out);
}

.platform-card:hover .platform-icon { transform: scale(1.07) rotate(-4deg); }

.platform-icon svg { width: 32px; height: 32px; }

.platform-card h3 {
  font-size: 19px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.platform-card p {
  font-size: 14px;
  color: var(--color-text-light);
  flex: 1;
}

.platform-go {
  margin-top: 18px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.25s var(--ease-out);
}

/* 悬停时“前往”文字右移，强化可点击感 */
.platform-card:hover .platform-go { transform: translateX(4px); }

.platform-badge {
  margin-top: 18px;
  font-size: 13px;
  color: #fff;
  background: #b7b9c9;
  padding: 3px 14px;
  border-radius: 12px;
}

/* ---------- 关于我们 ---------- */
.about-meta {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.about-meta-item h4 {
  color: var(--color-primary);
  font-size: 17px;
  margin-bottom: 10px;
  text-align: center;
}

/* 小标题下加短橙条，与整体标题语言统一 */
.about-meta-item h4::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 8px auto 0;
}

.about-meta-item p { color: var(--color-text-light); text-align: center; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: rgba(230, 162, 60, 0.1);
  color: var(--color-accent-dark);
  font-size: 14px;
  padding: 5px 15px;
  border-radius: 15px;
  border: 1px solid rgba(230, 162, 60, 0.35);
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(230, 162, 60, 0.2);
  transform: translateY(-1px);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.about-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.about-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* 第一张门头照占两格，作主打图。
   两种形态都要支持：静态页是 img 直接子级；
   列表数据渲染后每张图包在 .about-gallery-item 容器里 */
.about-gallery > img:first-child,
.about-gallery > .about-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.about-gallery > img:first-child { height: 100%; }
.about-gallery > .about-gallery-item:first-child img { height: 100%; }
.about-gallery > .about-gallery-item { min-width: 0; }

/* ---------- 课程体系 ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

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

/* 课程封面：图片 + 底部“课程名 / 年龄”色条（HTML 覆盖层，
   不再依赖图片内嵌文字，换图或改文案都无需重新出图） */
.course-cover {
  position: relative;
  overflow: hidden;
}

.course-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.course-card:hover .course-cover img { transform: scale(1.06); }

/* 底部渐变压暗，保证白字在任何图上都可读 */
.course-cover-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 34px 16px 12px;
  background: linear-gradient(to top, rgba(3, 1, 73, 0.92), rgba(3, 1, 73, 0.55) 55%, rgba(3, 1, 73, 0));
}

.course-cover-bar h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.course-age {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  box-shadow: 0 2px 8px rgba(230, 162, 60, 0.4);
}

.course-body { padding: 22px 22px 26px; }

.course-desc {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---------- 教学理念 ---------- */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
  counter-reset: idea; /* 序号计数器 */
}

.idea-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--color-primary-light), var(--color-primary) 70%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-card);
  padding: 34px 24px 30px;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

/* 右上角大号半透明序号装饰 */
.idea-card::before {
  counter-increment: idea;
  content: "0" counter(idea);
  position: absolute;
  top: 8px; right: 16px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.idea-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(3, 1, 73, 0.35);
}

.idea-card h3 {
  color: var(--color-accent);
  font-size: 18px;
  margin-bottom: 12px;
}

.idea-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* ---------- 为什么学编程 ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
  padding-bottom: 26px;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

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

.why-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease-out);
}

.why-card:hover img { transform: scale(1.06); }

.why-card h3 {
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--color-text-light);
  font-size: 14px;
  padding: 0 16px;
}

/* ---------- 校园新闻 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.news-card {
  display: block;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

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

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.news-card:hover img { transform: scale(1.06); }

/* 无封面时的占位块：与图片同高，深蓝渐变 + 品牌字样 */
.news-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  letter-spacing: 3px;
}

.news-body { padding: 22px 22px 26px; }

.news-body h3 {
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* 日期做成小胶囊 */
.news-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: rgba(230, 162, 60, 0.12);
  padding: 3px 12px;
  border-radius: 11px;
  margin-bottom: 12px;
}

.news-body p {
  font-size: 14px;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 第 4 条起：纯文字新闻列表 */
.news-list {
  list-style: none;
  margin-top: 34px;
  padding: 6px 4px 0;
  border-top: 1px solid var(--color-border);
}

/* 没有更多条目时，列表容器整体隐藏，不留下多余留白 */
.news-list:empty { display: none; }

.news-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 12px;
  border-bottom: 1px dashed var(--color-border);
  border-radius: 8px;
  color: inherit;
  transition: background 0.22s var(--ease-out), padding 0.22s var(--ease-out);
}

.news-list-item:hover {
  background: rgba(3, 1, 73, 0.04);
  padding-left: 20px;
}

/* 悬停时左侧浮现橙色竖条，暗示可点击 */
.news-list-item::before {
  content: "";
  flex: 0 0 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.22s var(--ease-out);
}

.news-list-item:hover::before { opacity: 1; }

.news-list-title {
  flex: 1;
  font-size: 15px;
  color: var(--color-text);
  /* 单行过长时省略，保持列表整齐 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-item:hover .news-list-title { color: var(--color-primary); }

.news-list-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .news-list-item { padding: 13px 8px; gap: 12px; }
  .news-list-title { font-size: 14px; }
  .news-list-date { font-size: 12px; }
}

/* ---------- 大咖推荐（纯文字引言卡，不使用名人肖像图） ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 26px 26px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

/* 顶部渐变强调条 */
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

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

/* 装饰引号 */
.testimonial-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 0.65;
  color: var(--color-accent);
  opacity: 0.6;
}

.testimonial-quote {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

/* 姓名首字母圆形头像，替代真人照片 */
.testimonial-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.testimonial-name strong {
  display: block;
  font-size: 14px;
  color: var(--color-primary);
}

.testimonial-name em {
  font-style: normal;
  font-size: 12px;
  color: var(--color-text-light);
}

/* ---------- 常见问题 ---------- */
.faq-list {
  max-width: 860px;
  margin: 52px auto 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

/* 展开时边框染橙色，状态更明确 */
.faq-item.open { border-color: rgba(230, 162, 60, 0.5); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  font-family: var(--font-main);
  transition: color 0.2s ease;
}

.faq-question:hover { color: var(--color-accent-dark); }

/* 箭头：圆形浅橙底 + 内部 CSS 小三角，展开时旋转并变实心橙 */
.faq-arrow {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(230, 162, 60, 0.12);
  flex-shrink: 0;
  margin-left: 16px;
  transition: background 0.25s ease;
}

.faq-arrow::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--color-accent-dark);
  border-bottom: 2px solid var(--color-accent-dark);
  /* 让三角视觉中心对准圆心 */
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease;
}

.faq-item.open .faq-arrow { background: var(--color-accent); }

.faq-item.open .faq-arrow::after {
  border-color: #fff;
  transform: translate(-50%, -35%) rotate(225deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--color-text-light);
  font-size: 15px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

/* 顶部一条橙色渐变分隔线 */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 18px;
}

/* 栏目标题下的短橙条 */
.footer-col h4::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 10px;
}

.footer-col p, .footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
}

.footer-col a { display: block; transition: color 0.2s ease; }

.footer-col a:hover { color: var(--color-accent); }

.footer-qrcode {
  width: 120px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.footer-qrcode + p { margin-top: 8px; font-size: 13px; }

.footer-bottom {
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* 备案号链接：与底部文字同色，悬停变橙 */
.footer-bottom .icp { margin-top: 6px; }

.footer-bottom .icp a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-bottom .icp a:hover { color: var(--color-accent); }

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: #fff;
  box-shadow: 0 6px 18px rgba(230, 162, 60, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 默认隐藏：透明 + 不可点 + 轻微下移，JS 加 .show 后浮现 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-out);
}

.back-to-top svg { width: 22px; height: 22px; }

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(230, 162, 60, 0.5);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .platform-grid,
  .idea-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid,
  .news-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-gallery { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 42px; }
  .hero-subtitle { font-size: 24px; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
  }

  /* 移动端菜单展开态由 JS 控制 */
  .main-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .header-cta { display: none; }

  .platform-grid,
  .idea-grid,
  .why-grid,
  .course-grid,
  .news-grid,
  .testimonial-grid,
  .footer-grid { grid-template-columns: 1fr; }

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

  .about-gallery img:first-child { grid-column: span 2; }

  .hero { min-height: 520px; }
  .hero-title { font-size: 32px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 20px; }
  .hero-arrow { display: none; }

  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .section-eyebrow { letter-spacing: 3px; font-size: 12px; }

  /* 移动端按钮略小并贴近边缘，避免遮挡正文 */
  .back-to-top { right: 16px; bottom: 20px; width: 42px; height: 42px; }
}

/* ============================================================
   新闻区「查看全部」 + 全部文章归档页 news.html
   ============================================================ */

.news-more {
  text-align: center;
  margin-top: 30px;
}

.news-more a {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid rgba(3, 1, 73, 0.18);
  border-radius: var(--radius-btn);
  color: var(--color-primary);
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.25s var(--ease-out);
}

.news-more a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 归档页 ---------- */
.archive-page { background: var(--color-bg-grey); }

.archive-header {
  background: var(--color-primary);
  padding: 14px 0;
}

.archive-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.archive-back {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.archive-back:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.archive-main { min-height: 60vh; }

.archive-list {
  max-width: 900px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.archive-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px dashed var(--color-border);
  transition: background 0.2s ease, padding-left 0.25s var(--ease-out);
}

.archive-row:last-child { border-bottom: none; }

a.archive-row:hover {
  background: var(--color-bg-grey);
  padding-left: 28px;
}

.archive-row img,
.archive-thumb-placeholder {
  flex-shrink: 0;
  width: 132px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef0f7;
}

.archive-thumb-placeholder {
  display: block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.archive-info { min-width: 0; }

.archive-info h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

a.archive-row:hover h2 { color: var(--color-accent-dark); }

.archive-date {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.archive-empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--color-text-light);
}

.archive-footer {
  padding: 30px 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

.archive-footer a { color: var(--color-primary); }

@media (max-width: 640px) {
  .archive-row { gap: 12px; padding: 14px 16px; }
  .archive-row img,
  .archive-thumb-placeholder { width: 92px; height: 66px; }
  .archive-info h2 { font-size: 15px; }
  a.archive-row:hover { padding-left: 16px; }
}

