/* ==========================================================================
   LinMeng Blog — 首页样式（精修版）
   --------------------------------------------------------------------------
   加载顺序：style.css → design-system.css → theme-refresh.css → home.css（本文件最后生效）
   作用域约定：所有规则一律用 `body.page-home` / `.page-home` 限定，
               只影响首页，不改动文章页、归档页、后台等其它页面。

   设计意图（安静编辑风）：
   1) 三层纸面关系：页面底（暖灰） < 卡片（纯白） < 报头（白 + 主色顶栏），
      靠"底色深浅 + 一条细线"分层，不再靠阴影堆盒子。
   2) 卡片一律扁平化：去掉 box-shadow 与 hover 抬升，只留 1px 细边。
   3) 分隔改用"发丝线 + 小字标签"，而不是每个区块都套一个方盒子。
   4) 数字用衬线体 + 等宽数字（tabular-nums），中文标题用衬线，正文用系统无衬线。
   ========================================================================== */

/* ==========================================================================
   1. 首页纸面基调
   --------------------------------------------------------------------------
   在 body.page-home 上重定义令牌，让卡片/侧栏/表单自动跟随，
   不必逐个组件去覆盖。这是本文件"少写覆盖"的关键。
   ========================================================================== */
body.page-home {
    /* 页面底：比卡片明显更深一档，解决"整页发灰糊在一起"的问题 */
    --bg-color: #f0ece4;
    --bg-subtle: #e8e3d9;
    --bg-elevated: #ffffff;

    /* 卡片：纯白，拉开与页面的对比 */
    --card-bg: #ffffff;
    --card-bg-solid: #ffffff;
    --card-border: #e6e1d6;

    /* 描边：比旧值略深，发丝线在白底上看得见 */
    --border-color: #e2ddd1;
    --border-subtle: #ede9df;
    --border-strong: #cdc6b8;

    --hover-bg: rgba(31, 35, 40, 0.035);
}

[data-theme="dark"] body.page-home {
    --bg-color: #101315;
    --bg-subtle: #191d20;
    --bg-elevated: #202529;

    --card-bg: #1d2125;
    --card-bg-solid: #1d2125;
    --card-border: #2d3338;

    --border-color: #31383e;
    --border-subtle: #262c31;
    --border-strong: #454d55;

    --hover-bg: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   2. 报头 Hero —— 由"左文右数字"改为"报头 + 整行数据条"
   ========================================================================== */
.page-home .home-hero {
    display: block; /* 覆盖 design-system 的两列网格 */
    position: relative;
    min-height: 0;
    margin-bottom: 26px;
    padding: clamp(24px, 3vw, 40px) clamp(22px, 4vw, 48px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: none;
    overflow: hidden;
}

#article-list {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

#article-list .card-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

/* 报头顶栏：一条主色细线，替代旧版的斜向白光渐变 */
.page-home .home-hero::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0 0 auto 0;
    width: auto;
    height: 3px;
    border: 0;
    border-radius: 0;
    background: var(--primary-color);
    opacity: 1;
    pointer-events: none;
}

/* 有全站背景图时不显示顶栏，避免压在照片上显脏 */
.page-home .home-hero.has-bg::before {
    display: none;
}

.page-home .home-hero-content {
    max-width: 46rem;
}

.page-home .home-eyebrow {
    display: block;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text-tertiary);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-home .home-eyebrow span {
    padding: 0 8px;
    color: var(--primary-color);
}

.page-home .home-hero h1 {
    max-width: none;
    margin: 0 0 18px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 4.4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.page-home .home-hero p {
    max-width: 44ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
}

.page-home .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.page-home .home-hero-actions .btn {
    min-width: 0;
    padding: 10px 22px;
    border-radius: 5px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-home .home-hero-actions .btn:hover {
    transform: none;
    box-shadow: none;
}

/* ---- 数据条：整行三等分，数字左对齐，竖向发丝线分隔 ---- */
.page-home .home-hero-panel,
.page-home .home-hero-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: normal;
    gap: 0;
    margin-top: clamp(30px, 4vw, 44px);
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.page-home .hero-stat-card,
.page-home .home-hero-summary .hero-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    min-height: 0;
    padding: 0 0 0 24px;
    border: 0;
    border-left: 1px solid var(--border-subtle);
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
    transition: none;
}

.page-home .hero-stat-card:first-child {
    padding-left: 0;
    border-left: 0;
}

.page-home .hero-stat-card:hover {
    transform: none;
    box-shadow: none;
    background: none;
}

.page-home .hero-stat-card span,
.page-home .home-hero-summary .hero-stat-card span {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.page-home .hero-stat-card small {
    margin-top: 0;
    color: var(--text-tertiary);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ---- 有背景图时的报头：白字 + 白玻璃按钮 ---- */
.page-home .home-hero.has-bg .home-hero-panel {
    border-top-color: rgba(255, 255, 255, 0.32);
}

.page-home .home-hero.has-bg .hero-stat-card {
    border-left-color: rgba(255, 255, 255, 0.22);
}

.page-home .home-hero.has-bg .hero-stat-card span {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.page-home .home-hero.has-bg .hero-stat-card small {
    color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   3. 筛选与搜索 —— 分类/排序改为"下划线标签页"，去掉一排药丸边框
   ========================================================================== */
.page-home .home-filter-card,
.page-home .article-list-card,
.page-home .home-activity-card {
    border-radius: 8px;
    box-shadow: none;
}

.page-home .home-filter-card:hover,
.page-home .article-list-card:hover,
.page-home .home-activity-card:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.page-home .home-filter-card .card-body {
    padding: 22px 26px 0;
}

.page-home .home-search-bar {
    margin-bottom: 20px;
}

.page-home .home-search-bar .form-input {
    border-radius: 5px;
    min-height: 46px;
    font-size: 1rem;
}

.page-home .home-search-bar .btn {
    border-radius: 5px;
    box-shadow: none;
    min-height: 46px;
}

.page-home .home-filter-row {
    gap: 28px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border-subtle);
}

.page-home .home-filter-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.page-home .home-filter-label {
    flex: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.page-home .home-filter-group .category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding-bottom: 0;
}

.page-home .home-filter-group .category-filter a {
    position: relative;
    padding: 12px;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.page-home .home-filter-group .category-filter a:hover {
    background: none;
    color: var(--text-primary);
}

.page-home .home-filter-group .category-filter a.active {
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: none;
}

.page-home .home-filter-group .category-filter a.active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
}

/* ==========================================================================
   4. 文章列表 —— 编辑式长列表
   ========================================================================== */
.page-home .article-list-toolbar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--card-bg);
}

.page-home .article-list-toolbar .card-title {
    flex: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.page-home .article-list-summary {
    flex: 1;
    width: auto;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.page-home .article-list-more {
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.page-home .article-list-card .article-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 32px);
    padding: 28px 26px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--card-bg);
}

.page-home .article-list-card .article-item:last-of-type {
    border-bottom: 0;
}

.page-home .article-list-card .article-item:hover {
    background: var(--hover-bg);
    box-shadow: none;
}

.page-home .article-list-card .article-item::before,
.page-home .article-title a::after {
    display: none;
}

.page-home .article-cover-link {
    flex: 0 0 auto;
    align-self: flex-start;
    width: clamp(180px, 26%, 240px);
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-subtle);
}

.page-home .article-cover-link .article-cover {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
}

.page-home .article-list-card .article-item:hover .article-cover-link .article-cover {
    transform: none;
    filter: none;
}

.page-home .article-item-body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 34px;
}

.page-home .article-number {
    position: absolute;
    top: 3px;
    left: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.page-home .article-list-card .article-item-body .article-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.14rem, 1.7vw, 1.32rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.005em;
    overflow-wrap: anywhere;
}

.page-home .article-title a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.page-home .article-item:hover .article-title a {
    color: var(--primary-color);
}

.page-home .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin-bottom: 12px;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.page-home .article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-home .article-meta svg {
    opacity: 0.7;
}

.page-home .article-list-card .article-item-body .article-excerpt {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    -webkit-line-clamp: 2;
}

.page-home .article-actions {
    margin: 0;
    justify-content: flex-start;
}

.page-home .read-more-link {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.page-home .read-more-link::before,
.page-home .read-more-link::after,
.page-home .article-list-more::before {
    content: none;
    display: none;
}

.page-home .read-more-link:hover,
.page-home .article-list-more:hover {
    background: none;
    box-shadow: none;
    transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-home .pin-badge {
    padding: 2px 7px;
    border: 1px solid var(--primary-light);
    border-radius: 3px;
    background: var(--primary-lighter);
    box-shadow: none;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 600;
}

.page-home .pin-badge svg {
    animation: none;
}

.page-home .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.page-home .article-tags .tag {
    padding: 2px 9px;
    border: 0;
    border-radius: 3px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.74rem;
    cursor: pointer;
}

.page-home .article-tags .tag:hover {
    transform: none;
    box-shadow: none;
    background: var(--primary-light);
    color: var(--primary-color);
}

.page-home .article-list-footer-actions {
    padding: 22px 26px;
    border-top: 1px solid var(--border-subtle);
}

.page-home .article-list-footer-actions .btn {
    border-radius: 5px;
    box-shadow: none;
}

/* ==========================================================================
   5. 最新动态
   ========================================================================== */
.page-home .home-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 8px 26px 22px;
}

.page-home .home-activity-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    padding: 14px 0 10px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.page-home .home-activity-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    background: none;
}

.page-home .home-activity-item:last-child {
    border-bottom: 0;
}

.page-home .home-activity-item:hover {
    transform: none;
    background: none;
    border-color: var(--border-strong);
}

.page-home .home-activity-user {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.page-home .home-activity-text {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.page-home .home-activity-meta {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.page-home .widget-action-link {
    color: var(--primary-color);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0;
}

/* ==========================================================================
   6. 主内容区底部小工具
   ========================================================================== */
.page-home .bottom-widgets {
    gap: 20px;
    margin-top: 26px;
}

.page-home .bottom-widgets .widget {
    border-radius: 8px;
    box-shadow: none;
}

.page-home .bottom-widgets .widget:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.page-home .bottom-widgets .widget-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-tertiary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.page-home .bottom-widgets .widget-header svg {
    width: 15px;
    height: 15px;
    opacity: 0.75;
}

.page-home .bottom-widgets .widget-body {
    padding: 18px;
}

.page-home .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
}

.page-home .stat-cell {
    padding: 0;
    border-radius: 0;
    background: none;
    text-align: left;
}

/* 四宫格数字统一用墨色，语义色留给交互元素，避免小挂件里五颜六色 */
.page-home .stat-value,
.page-home .stat-value--primary,
.page-home .stat-value--success,
.page-home .stat-value--warning,
.page-home .stat-value--accent {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.page-home .stat-label {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.page-home .hitokoto-widget {
    padding: 0;
}

.page-home .hitokoto-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.page-home .hitokoto-from {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-align: right;
}

/* ==========================================================================
   7. 侧栏 —— 降噪：去光环、统一小字标题、友链图标改中性色
   ========================================================================== */
.page-home .sidebar {
    gap: 20px;
}

.page-home .sidebar .widget {
    border-radius: 8px;
    box-shadow: none;
}

.page-home .sidebar .widget:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

/* 去掉悬停时左侧 3px 渐变竖条（旧粉色主题遗留） */
.page-home .sidebar .widget-header::before,
.page-home .sidebar .widget-title::before {
    display: none;
}

.page-home .sidebar .widget-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-tertiary);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.page-home .sidebar .widget-header svg {
    width: 15px;
    height: 15px;
    opacity: 0.75;
}

.page-home .sidebar .widget-header > span {
    color: inherit;
}

.page-home .sidebar .widget-header > a {
    color: var(--primary-color);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0;
}

.page-home .sidebar .widget-body {
    padding: 18px 20px;
}

/* 资料卡 */
.page-home .sidebar .widget-body.profile {
    padding: 26px 20px 20px;
}

.page-home .profile-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    border: 0;
    /* 去掉旧版的"内圈 + 外圈"双层描边，改为一条干净的发丝线 */
    box-shadow: 0 0 0 1px var(--border-color);
}

.page-home .profile-avatar:hover {
    transform: none;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.page-home .profile-avatar--fallback {
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-family: var(--font-display);
}

.page-home .profile-name {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.page-home .profile-desc {
    margin-bottom: 0;
    color: var(--text-tertiary);
    font-size: 0.84rem;
    line-height: 1.7;
}

/* 资料卡里的三项统计：首页不重复展示（报头数据条里已有） */
.page-home .sidebar .profile-stats {
    display: none;
}

/* 快捷导航 */
.page-home .quick-nav-grid {
    gap: 4px;
}

.page-home .quick-nav-item {
    padding: 9px 10px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
}

.page-home .quick-nav-item:hover,
.page-home .quick-nav-item.active {
    transform: none;
    border-color: transparent;
    background: var(--hover-bg);
    color: var(--text-primary);
    box-shadow: none;
}

.page-home .quick-nav-item.active {
    color: var(--primary-color);
}

/* 友链 / 文章列表项 */
.page-home .sidebar .link-list {
    gap: 2px;
}

.page-home .sidebar .link-item {
    gap: 11px;
    padding: 8px;
    border: 0;
    border-radius: 4px;
}

.page-home .sidebar .link-item:hover {
    border-color: transparent;
    background: var(--hover-bg);
}

.page-home .sidebar .link-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

/* 友链无图标时的首字母方块：由"清一色主色红"改为中性灰 */
.page-home .sidebar .link-avatar--fallback {
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.page-home .sidebar .link-name {
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
}

.page-home .sidebar .link-desc {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.page-home .sidebar .link-item:hover .link-name {
    color: var(--primary-color);
}

/* 标签云 */
.page-home .sidebar .tag-cloud {
    gap: 6px;
}

.page-home .sidebar .tag {
    padding: 3px 9px;
    border: 0;
    border-radius: 3px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.page-home .sidebar .tag:hover {
    transform: none;
    border-color: transparent;
    background: var(--primary-light);
    color: var(--primary-color);
    box-shadow: none;
}

/* 站点统计四宫格：去掉灰底方块，改用发丝线分隔 */
.page-home .sidebar .stats-widget-grid {
    gap: 0;
}

.page-home .sidebar .stats-widget-cell {
    padding: 12px 4px;
    border-radius: 0;
    background: none;
}

.page-home .sidebar .stats-widget-cell:nth-child(odd) {
    border-right: 1px solid var(--border-subtle);
}

.page-home .sidebar .stats-widget-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-subtle);
}

.page-home .sidebar .stats-widget-cell:hover {
    transform: none;
}

.page-home .sidebar .stats-widget-value {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.page-home .sidebar .stats-widget-label {
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* 侧栏按钮：方角、无阴影；次级按钮改为描边，避免两块实心色块压住侧栏 */
.page-home .sidebar .widget-action .btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 5px;
    box-shadow: none;
    font-size: 0.82rem;
}

.page-home .sidebar .widget-action .btn-secondary {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
}

.page-home .sidebar .widget-action .btn-secondary:hover {
    border-color: var(--border-strong);
    background: var(--hover-bg);
    color: var(--text-primary);
}

.page-home .sidebar .widget-action .btn:hover {
    transform: none;
    box-shadow: none;
}

/* 创作日历 */
.page-home .sidebar .calendar-nav-btn {
    border-radius: 4px;
}

.page-home .sidebar .calendar-day {
    border-radius: 4px;
}

/* ==========================================================================
   8. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .page-home .home-hero {
        padding: 36px 30px 26px;
    }

    .page-home .article-cover-link {
        width: clamp(160px, 30%, 210px);
    }
}

@media (max-width: 768px) {
    .page-home .home-filter-card .card-body {
        padding: 20px 20px 0;
    }

    .page-home .home-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .page-home .home-filter-group {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .page-home .home-filter-group .category-filter {
        flex: 1;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .page-home .home-filter-group .category-filter::-webkit-scrollbar {
        display: none;
    }

    .page-home .home-filter-group .category-filter a {
        flex: 0 0 auto;
    }

    .page-home .home-activity-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 20px 20px;
    }
}

@media (max-width: 640px) {
    .page-home .home-hero {
        padding: 22px;
    }

    .page-home .home-hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    /* 工具栏窄屏换行：标题与"查看全部"同排，统计数落到第二行 */
    .page-home .article-list-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 12px;
        align-items: center;
    }

    .page-home .article-list-toolbar .card-title {
        flex: 1 1 auto;
    }

    .page-home .article-list-summary {
        grid-column: 1 / -1;
        grid-row: 2;
        order: initial;
    }

    .page-home .article-list-more {
        grid-column: 2;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        min-height: 44px;
        margin: 0;
    }

    .page-home .home-hero-panel,
    .page-home .home-hero-summary {
        margin-top: 26px;
        padding-top: 18px;
    }

    .page-home .hero-stat-card,
    .page-home .home-hero-summary .hero-stat-card {
        padding-left: 14px;
    }

    .page-home .hero-stat-card span {
        font-size: 1.4rem;
    }

    .page-home .article-list-toolbar,
    .page-home .article-list-card .article-item {
        padding: 18px;
    }

    .page-home .article-list-card .article-item {
        gap: 14px;
    }

    .page-home .article-cover-link {
        width: 124px;
    }

    .page-home .article-item-body {
        padding-left: 0;
    }

    .page-home .article-number {
        display: none;
    }

    .page-home .article-list-footer-actions {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .page-home .home-hero {
        padding: 26px 20px 20px;
    }

    .page-home .home-eyebrow {
        margin-bottom: 16px;
    }

    .page-home .home-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .page-home .home-hero-actions .btn {
        width: 100%;
        min-height: 44px;
        padding-inline: 16px;
    }

    .page-home .home-hero p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .page-home .home-hero-panel,
    .page-home .home-hero-summary {
        margin-top: 20px;
        padding-top: 16px;
    }

    .page-home .home-filter-card .card-body {
        padding: 16px 16px 0;
    }

    .page-home .home-search-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        margin-bottom: 12px;
    }

    .page-home .home-search-bar .form-input {
        min-width: 0;
        padding-inline: 12px;
    }

    .page-home .home-search-bar .btn {
        width: auto;
        padding-inline: 16px;
    }

    .page-home .home-search-bar .btn-secondary {
        grid-column: 1 / -1;
    }

    .page-home .hero-stat-card small {
        white-space: normal;
        font-size: 0.72rem;
    }

    .page-home .article-cover-link {
        width: 88px;
        aspect-ratio: 1;
        order: 2;
    }

    .page-home .article-list-card .article-item-body .article-title {
        font-size: 1.0625rem;
        margin-bottom: 8px;
    }

    .page-home .article-meta {
        gap: 4px 10px;
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .page-home .article-list-card .article-item-body .article-excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 0.8125rem;
        line-height: 1.65;
        margin-bottom: 10px;
    }

    .page-home .article-actions a,
    .page-home .article-tags a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
    }

    .page-home .article-tags {
        margin-top: 4px;
    }
}

/* 尊重"减少动态效果"偏好 */
@media (prefers-reduced-motion: reduce) {
    .page-home .article-item,
    .page-home .widget,
    .page-home .reveal-item {
        animation: none;
        transition: none;
    }
}
