/* ============================================================
   KANAU · Home の Learning Tools（2026-11-22 效果图 → 2026-11-23 owner：上の部分は元のまま）
   hero（大見出し・連続日数）・季節の木と小松鼠・松果の皿・右の sidebar（心愿・Growth log・本周挑战）は
   従来の home.css / home-restore.css / home-refine.css のまま。このファイルは下の 4 つの入口だけ：
   上の段（大）01 Vocabulary・02 带小松鼠出门 / 下の段（小）03 模拟课堂・04 Focus。番号は位置の順。
   Home の最後に読み込む。
   ============================================================ */

:root {
    --hv-ink: #1f2a24;
    --hv-ink-soft: #4c5a52;
    --hv-ink-mute: #7d877f;
    --hv-line: rgba(47, 62, 52, 0.1);
    --hv-card: #fbf9f4;
    --hv-page: #f5f2ea;
    --hv-green: #2f5240;
    --hv-green-soft: #7d9a7a;
    --hv-track: #e7e6dc;
    --hv-radius: 22px;
    --hv-gutter: clamp(16px, 5vw, 76px);
}


/* 4 つの入口の section は hero の grid の下の行いっぱい（以前の .home-hub-actions の位置） */
body.kanau-has-global-topbar #home-overview .hv-tools-section,
#home-overview .hv-tools-section {
    align-self: stretch;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
}
@media (max-width: 1280px) {
    body.kanau-has-global-topbar #home-overview .hv-tools-section,
    #home-overview .hv-tools-section { grid-row: 3; }
}

/* ---------- 3. Learning Tools ---------- */
#home-overview .hv-tools-head {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    justify-content: space-between;
    margin: 44px 0 18px;
}
#home-overview .hv-tools-title {
    color: var(--hv-ink);
    font-family: var(--kanau-font-serif);
    font-size: clamp(26px, 2.3vw, 32px);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}
#home-overview .hv-tools-sub { color: var(--hv-ink-soft); font-size: 15px; margin: 0; }

body.kanau-has-global-topbar #home-overview .home-hub-actions,
#home-overview .home-hub-actions {
    display: grid;
    gap: 18px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}
#home-overview .hv-tool {
    align-items: center;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--hv-line);
    border-radius: 20px;
    box-shadow: none;
    color: var(--hv-ink);
    cursor: pointer;
    display: grid;
    gap: 4px 20px;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
    text-align: left;
    text-decoration: none;
    transform: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}
#home-overview .hv-tool::before,
#home-overview .hv-tool::before,
#home-overview .hv-tool::after { content: none !important; display: none !important; }
/* 以前の hub actions の下に敷いていた地面の光（hero shell の ::after）は、平らな Learning Tools の下で四角い影に見えるので外す。
   hero の格子（::before）はそのまま */
#home-overview.home-hero-shell::after { content: none !important; display: none !important; }
#home-overview .hv-tool:hover { border-color: rgba(47, 62, 52, 0.24); }
#home-overview .hv-tool:focus-visible { outline: 3px solid rgba(47, 82, 64, 0.35); outline-offset: 3px; }
#home-overview .hub-action-language { background: #f1f3ec; }
#home-overview .hub-action-explore { background: #f7efe6; }
#home-overview .hub-action-classroom { background: #f1f4f5; }
#home-overview .hub-action-revision { background: #f7f4ee; }

#home-overview .hv-tool .hub-action-index {
    color: #5f7d64;
    font-family: var(--kanau-font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1;
    margin: 0;
    position: static;
}
#home-overview .hub-action-explore .hub-action-index { color: #b0703f; }
#home-overview .hv-tool .hub-action-copy { display: grid; gap: 4px; justify-items: start; min-width: 0; }
#home-overview .hv-tool .hub-action-title {
    color: var(--hv-ink);
    font-family: var(--kanau-font-serif);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.15;
}
#home-overview .hv-tool .hub-action-meta { color: var(--hv-ink-soft); font-size: 15px; font-weight: 400; line-height: 1.4; }
#home-overview .hv-tool .hub-reward-badge {
    background: rgba(201, 170, 120, 0.2);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    color: #6b5537;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    padding: 4px 12px;
}
#home-overview .hv-tool-art { display: block; flex: none; }
#home-overview .hv-tool-art svg { display: block; height: 100%; width: 100%; }

/* 上の段：大きい（01 Vocabulary・02 带小松鼠出门） */
#home-overview .hv-tool.is-primary {
    grid-template-areas: "index art" "copy art";
    min-height: 168px;
    padding: 24px 32px 26px 36px;
}
#home-overview .hv-tool.is-primary .hub-action-index { grid-area: index; }
#home-overview .hv-tool.is-primary .hub-action-copy { grid-area: copy; }
#home-overview .hv-tool.is-primary .hub-action-title { font-size: clamp(26px, 2.5vw, 34px); }
#home-overview .hv-tool.is-primary .hv-tool-art { grid-area: art; height: 96px; width: 96px; }
#home-overview .hub-action-explore .hv-tool-art { height: 104px; width: 104px; }

/* 下の段：小さく・静か（03 模拟课堂・04 Focus） */
#home-overview .hv-tool.is-secondary {
    grid-template-areas: "index copy art";
    grid-template-columns: 2.4em minmax(0, 1fr) auto;
    min-height: 84px;
    padding: 14px 28px 14px 32px;
}
#home-overview .hv-tool.is-secondary .hub-action-index { font-size: 18px; grid-area: index; }
#home-overview .hv-tool.is-secondary .hub-action-copy { align-items: baseline; display: flex; flex-wrap: wrap; gap: 2px 12px; grid-area: copy; }
#home-overview .hv-tool.is-secondary .hub-action-title { flex: 1 0 100%; font-size: 22px; }
#home-overview .hv-tool.is-secondary .hub-action-meta { font-size: 14px; }
#home-overview .hv-tool.is-secondary .hub-reward-badge { font-size: 12px; margin-top: 0; padding: 2px 10px; }
#home-overview .hv-tool.is-secondary .hv-tool-art { grid-area: art; height: 52px; opacity: .9; width: 52px; }


@media (max-width: 640px) {
    #home-overview .hv-tool.is-primary .hub-action-title { font-size: 25px; }
    #home-overview .hv-tool.is-secondary .hub-action-title { font-size: 20px; }
    #home-overview .hv-tools-head { margin-top: 34px; }
    body.kanau-has-global-topbar #home-overview .home-hub-actions,
    #home-overview .home-hub-actions { gap: 12px; grid-template-columns: 1fr; }
    #home-overview .hv-tool.is-primary { min-height: 140px; padding: 20px 20px 22px 24px; }
    #home-overview .hv-tool.is-primary .hv-tool-art,
    #home-overview .hub-action-explore .hv-tool-art { height: 72px; width: 72px; }
    #home-overview .hv-tool.is-secondary { padding: 12px 18px 12px 22px; }
    #home-overview .hv-tool.is-secondary .hv-tool-art { height: 40px; width: 40px; }
}
