/* ============================================================
   index.html 首页专属样式 · 与全站 style.css 搭配使用
   骨架：全屏 Banner + 中轴珍珠串优势区 + 快速入口 + 左右串线内容区 + 流程 + 资讯
   ============================================================ */

/* ---------- 首页 hero 文字动画 ---------- */
.hero-anim { display: flex; flex-wrap: wrap; column-gap: .34em; row-gap: 6px; }
.hero-word {
  display: inline-block; opacity: 0; transform: translateY(34px);
  animation: heroWord .9s cubic-bezier(.22, .68, .36, 1) forwards;
}
.hero-word:nth-child(1) { animation-delay: .15s; }
.hero-word:nth-child(2) { animation-delay: .3s; }
.hero-word:nth-child(3) { animation-delay: .45s; }
.hero-word:nth-child(4) { animation-delay: .6s; }
@keyframes heroWord { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.hero-title em {
  color: var(--gold-deep);
  background: linear-gradient(100deg, #9C7B2E 0%, #C9A752 40%, #E8D39A 55%, #9C7B2E 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 220% 100%;
  animation: goldShimmer 4.2s ease-in-out infinite;
}
@keyframes goldShimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero-kicker, .hero-sub, .hero-cta, .hero-meta { opacity: 0; animation: heroFade 1s ease forwards; }
.hero-kicker { animation-delay: .8s; }
.hero-sub { animation-delay: .95s; }
.hero-cta { animation-delay: 1.1s; }
.hero-meta { animation-delay: 1.25s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 核心优势（中轴珍珠串） ---------- */
#advantage .container { max-width: 1180px; }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-icon { width: 54px; height: 54px; color: var(--gold-deep); padding: 13px; background: var(--grad-cream); border: 1px solid rgba(194, 160, 75, .35); border-radius: 50%; margin-bottom: 18px; box-shadow: inset 0 0 0 4px rgba(250, 246, 237, .9); }
.card-glow h3 { font-size: 19px; margin-bottom: 10px; }
.card-glow p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 980px) { .advantage-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .advantage-grid { grid-template-columns: 1fr; } }

/* ---------- 快速入口 ---------- */
.entry-section { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.entry-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 26px 22px 24px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.entry-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); border-color: rgba(194, 160, 75, .5); }
.entry-card:hover::after { transform: scaleX(1); }
.entry-card svg { width: 34px; height: 34px; color: var(--gold-deep); margin-bottom: 6px; }
.entry-card strong { font-family: var(--font-serif); font-size: 18px; }
.entry-card span:not(.entry-num) { font-size: 13px; color: var(--ink-mute); }
.entry-num { position: absolute; top: 16px; right: 18px; font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: rgba(194, 160, 75, .35); }
@media (max-width: 980px) { .entry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .entry-grid { grid-template-columns: 1fr; } }

/* ---------- 团报表 ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }
.tbl-wrap .tbl-gold { min-width: 640px; }

/* ---------- 报考流程 ---------- */
.flow-section { background: linear-gradient(180deg, var(--cream) 0%, #F6F1E6 100%); }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: flow; }
.flow-item {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 34px 24px 26px; box-shadow: var(--shadow-soft); text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.flow-item::before {
  content: ""; position: absolute; top: 36px; right: -24px; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}
.flow-item:last-child::before { display: none; }
.flow-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-gold); }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-gold); color: #FFFDF6;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--gold-pale); margin-bottom: 16px;
}
.flow-item h3 { font-size: 17px; margin-bottom: 8px; }
.flow-item p { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 980px) { .flow-list { grid-template-columns: 1fr 1fr; } .flow-item::before { display: none; } }
@media (max-width: 560px) { .flow-list { grid-template-columns: 1fr; } }

/* ---------- 首页资讯列表（CMS 数据源区） ---------- */
#home-news { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-2); box-shadow: var(--shadow-soft);
  transition: transform .4s ease, box-shadow .4s ease;
}
.home-news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.home-news-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.home-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-news-card:hover .home-news-thumb img { transform: scale(1.06); }
.home-news-body { padding: 20px 22px 24px; }
.home-news-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.home-news-body h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s ease; }
.home-news-body h3 a:hover { color: var(--gold-deep); }
.home-news-summary { font-size: 13.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.home-news-time { font-size: 12.5px; color: var(--gold-deep); letter-spacing: .1em; }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- 间距辅助 ---------- */
.mt-lg { margin-top: 26px; }
.mt-xl { margin-top: 40px; }
