/* ============ 首页专属样式（仅 index.html 使用，不影响其他页面） ============ */

/* —— Hero：全宽大背景图 + 遮罩（仿参考站 home-filter） —— */
.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(to right, #34495e, #4e6b88, #34495e);
  background-image: url('/assets/img/hero-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 35, 58, 0.52) 0%, rgba(23, 35, 58, 0.38) 55%, rgba(23, 35, 58, 0.68) 100%),
    linear-gradient(115deg, rgba(30, 58, 138, 0.42), rgba(23, 35, 58, 0.25) 45%, rgba(88, 28, 135, 0.30));
  z-index: 1;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(700px 320px at 88% -12%, rgba(255, 255, 255, 0.22), transparent 62%),
              radial-gradient(560px 300px at -6% 112%, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 20px 66px;
  text-align: center;
  animation: homeFadeUp 0.7s ease both;
}
.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(6px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 1px;
}
.home-badge b { color: #ffd66b; font-weight: 800; }
.badge-logo { width: 17px; height: 17px; display: block; flex: 0 0 auto; }
.home-hero h1 {
  margin-top: 18px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 4px;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.45);
}
.home-hero .home-desc {
  margin: 14px auto 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14.5px;
  line-height: 1.8;
}

/* 大搜索框：胶囊 + 蓝色按钮 + 扫光动效（searchLights 移植） */
.home-search {
  position: relative;
  display: flex;
  max-width: 680px;
  margin: 30px auto 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(15, 28, 50, 0.42);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.home-search:focus-within { box-shadow: 0 22px 56px rgba(15, 28, 50, 0.5); transform: translateY(-2px); }
.home-search input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 26px;
  border: none;
  outline: none;
  background: transparent;
  color: #1c2430;
  font-size: 15.5px;
}
.home-search input::placeholder { color: #9aa5b8; }
.home-search button {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 132px;
  height: 58px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(115deg, #2563eb, #3b82f6 60%, #6366f1);
  transition: filter 0.25s ease;
}
.home-search button:hover { filter: brightness(1.1); }
/* 扫光（参考站 logo 留光效果） */
.home-search button::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 8px;
  top: 0;
  left: -70px;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(-45deg);
  animation: homeLights 2.2s ease-in 0.8s infinite;
}
@keyframes homeLights {
  0% { left: -70px; top: 0; }
  60% { left: 160px; top: 0; }
  100% { left: 160px; top: 0; }
}
.home-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.home-tags span {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}
.home-tags b { color: #ffd66b; font-weight: 700; }
.home-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
}
.home-hero-stats div {
  min-width: 160px;
  padding: 0 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.home-hero-stats div:first-child { border-left: none; }
.home-hero-stats b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.home-hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); letter-spacing: 1px; }

@keyframes homeFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* —— 引导卡片（参考站 home-guide） —— */
.home-guide {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(23, 43, 99, 0.05);
}
.home-guide-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.home-guide-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.home-guide-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  color: #555;
  transition: all 0.25s ease;
}
.home-guide-item + .home-guide-item { border-left: 1px solid var(--border); }
.home-guide-item:hover { color: #ff5c72; background: #fff7f9; }
.home-guide-item .hg-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  color: var(--primary);
  transition: all 0.25s ease;
}
.home-guide-item:hover .hg-icon { background: var(--accent-dim); color: var(--accent); transform: translateY(-2px); }
.home-guide-item .hg-icon svg { width: 22px; height: 22px; }
.home-guide-item .hg-txt { min-width: 0; }
.home-guide-item .hg-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}
.home-guide-item:hover .hg-title { color: #ff5c72; }
.home-guide-go {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 8px;
  background: #ff5c72;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}
.home-guide-item .hg-desc { margin-top: 4px; color: #aaa; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 引导区底部统计条（参考站 home-guide-stat） */
.home-guide-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 15px 20px;
  border-top: 1px solid #f5f5f7;
  color: #8d8d96;
  font-size: 13px;
}
.home-guide-tip {
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6287, #f478a1);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.home-guide-data b { color: #ff5c72; font-size: 15px; font-variant-numeric: tabular-nums; }
.home-guide-dot { color: #ccc; font-size: 10px; }

/* —— 每日动态滚动条 —— */
.home-ticker {
  max-width: 1240px;
  margin: 22px auto 0;
  padding: 0 20px;
}
.ticker-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px;
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.ticker-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(115deg, #ff5c72, #f478a1);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ticker-viewport { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: homeTicker 38s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a {
  color: var(--muted);
  font-size: 13px;
  margin: 0 26px;
}
.ticker-track a:hover { color: var(--primary); }
.ticker-track b { color: var(--text); font-weight: 700; margin-right: 4px; }
@keyframes homeTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— 区块标题微调 —— */
.home-sec { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* —— 底部视差统计（参考站 module.parallax + data-items + countup） —— */
.home-stats {
  position: relative;
  margin-top: 44px;
  color: #fff;
  text-align: center;
  background: linear-gradient(to right, #2c3e50, #3f5873, #2c3e50);
  background-image: url('/assets/img/stats-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}
.home-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.72), rgba(18, 28, 46, 0.55) 60%, rgba(18, 28, 46, 0.78));
  z-index: 1;
}
.home-stats-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px 58px;
}
.home-stats h2 { font-size: 30px; font-weight: 800; letter-spacing: 3px; text-shadow: 0 4px 18px rgba(0,0,0,0.4); }
.home-stats .hs-sub { margin: 10px auto 0; max-width: 560px; color: rgba(255,255,255,0.82); font-size: 13.5px; line-height: 1.8; }
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.home-stat-item {
  padding: 26px 12px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}
.home-stat-item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }
.home-stat-item .hs-num {
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffd66b;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.home-stat-item .hs-label { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.85); letter-spacing: 1px; }
.home-stats .hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  padding: 13px 34px;
  border-radius: 999px;
  background: linear-gradient(115deg, #2563eb, #3b82f6 60%, #7c3aed);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-stats .hs-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(37, 99, 235, 0.5); color: #fff; }

/* —— 响应式 —— */
@media (max-width: 1024px) {
  .home-guide-list { grid-template-columns: repeat(3, 1fr); }
  .home-guide-item + .home-guide-item { border-left: none; }
  .home-guide-item:nth-child(n+2) { border-left: 1px solid var(--border); }
  .home-guide-item:nth-child(4), .home-guide-item:nth-child(5) { border-top: 1px solid var(--border); }
  .home-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .home-hero-inner { padding: 52px 16px 46px; }
  .home-hero h1 { font-size: 26px; letter-spacing: 2px; }
  .home-search { flex-direction: column; border-radius: 20px; }
  .home-search input { height: 52px; border-radius: 20px 20px 0 0; text-align: center; }
  .home-search button { width: 100%; height: 50px; border-radius: 0 0 20px 20px; }
  .home-hero-stats div { min-width: 96px; padding: 0 14px; }
  .home-hero-stats b { font-size: 22px; }
  .home-guide-list { grid-template-columns: repeat(2, 1fr); }
  .home-guide-item { padding: 18px 14px; }
  .home-guide-item:nth-child(odd) { border-left: none !important; }
  .home-guide-item:nth-child(3) { border-top: 1px solid var(--border); }
  .home-guide-item:nth-child(4) { border-top: 1px solid var(--border); }
  .home-stats-inner { padding: 44px 16px 40px; }
  .home-stats h2 { font-size: 22px; }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stat-item .hs-num { font-size: 28px; }
  .ticker-badge { display: none; }
}
