/* ============================================================
 *  home.css  ——  首页专属：渐变 hero
 *  分类网格 / 分类卡片样式已统一到 components.css 共享
 * ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 auto 32px;
  max-width: 580px;
}

.hero__search {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.hero__search-input {
  width: 100%;
  padding: 14px 80px 14px 46px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.hero__search-input::placeholder { color: var(--text-tertiary); }

.hero__search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.hero__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.hero__search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: monospace;
}

/* ---------- 统计条 / 精选文章 / 分类卡片样式已统一到 components.css ---------- */

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
}

/* ---------- 进度条 ---------- */
.read-progress {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 99;
  pointer-events: none;
}

.read-progress__bar {
  height: 100%;
  width: 0;
  background: var(--gradient);
  transition: width 0.1s linear;
  box-shadow: 0 0 6px rgba(124, 92, 255, 0.5);
}