/* ============================================================
   首页专属样式（仅 index.html 使用）
   不改动共享的 style.css，避免影响其它页面。
   ============================================================ */

/* 主要入口（4 个磁贴） */
.home-entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.home-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.home-tile .ht-name { display: block; font-weight: 800; font-size: 15px; }
.home-tile .ht-sub { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* 快捷操作 */
.home-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.home-quick a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  padding: 9px 16px;
  border-radius: 999px;
  transition: filter .18s ease, transform .18s ease;
}

.home-quick a:hover { filter: brightness(.97); transform: translateY(-1px); }

/* 今日概览里的重点数字 */
.hero-list li b { color: var(--text); }

/* 响应式 */
@media (max-width: 900px) {
  .home-entries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .home-entries { grid-template-columns: 1fr; }
  .home-quick a { flex: 1 1 auto; justify-content: center; }
}

/* 今日学习（来自「阅读与成长」） */
.home-study { margin: 4px 0 18px; }
.home-study-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.home-study-head h3 { margin: 0; font-size: 16px; }
.home-study-head a { font-size: 13px; color: var(--accent, #7a9a67); text-decoration: none; }
.home-study-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.study-item { display: flex; flex-direction: column; gap: 4px; background: var(--panel, #fff); border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease; }
.study-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.study-tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: #4a6a3a; background: rgba(122,154,103,.18); border-radius: 999px; padding: 2px 8px; }
.study-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.study-src { font-size: 12px; color: var(--text-muted); }
.study-insight { font-size: 12px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .home-study-grid { grid-template-columns: 1fr; } }

/* 最近灵感（来自「灵感空间」） */
.home-ideas { margin: 4px 0 18px; }
.home-ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.idea-mini { display: flex; flex-direction: column; gap: 4px; background: var(--panel, #fff); border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease; }
.idea-mini:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.idea-mini-cat { align-self: flex-start; font-size: 11px; font-weight: 700; color: #4a6a3a; background: rgba(122,154,103,.18); border-radius: 999px; padding: 2px 8px; }
.idea-mini-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.idea-mini-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-mini-time { font-size: 11px; color: var(--text-muted); }
@media (max-width: 560px) { .home-ideas-grid { grid-template-columns: 1fr; } }
