/* ==========================================================================
   Leary 主题 - 公共归档页样式
   ----------------------------------------------------------------------------
   覆盖范围：category / tag / author / date / search
   设计语言：白 / 黑 / 蓝（#3182ce / #5b8def / #0ea5e9），现代 + 玻璃拟态
   ========================================================================== */

/* ============================================================
   1. 容器
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   2. 分类 / 标签页头部
   ============================================================ */
.category-header {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef4ff 100%);
    padding: 80px 0 60px;
    text-align: center;
    margin: 80px 0 50px;
    position: relative;
    overflow: hidden;
}
.category-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(49, 130, 206, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 130, 206, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
    pointer-events: none;
}
.category-title {
    font-size: 2.5em;
    color: #0a0e27;
    margin: 0 0 16px;
    font-weight: 800;
    position: relative;
}
.category-description {
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}
.category-main {
    padding: 0 0 60px;
}

/* ============================================================
   3. 文章网格布局（modern）
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

/* ============================================================
   4. 文章卡片（modern）
   ------------------------------------------------------------
   白底 / 圆角 16 / 浅阴影 / hover 上浮 + 缩略图 zoom
   ============================================================ */
.post-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(49, 130, 206, 0.18),
                0 4px 8px -2px rgba(15, 23, 42, 0.06);
}

/* 缩略图容器 */
.post-card-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef4ff 100%);
}
.post-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover .post-card-image img {
    transform: scale(1.06);
}

/* 内容区 */
.post-card-content {
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 分类 chips */
.post-categories {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.post-categories a {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(49, 130, 206, 0.08);
    color: #3182ce;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.post-categories a:hover {
    background: #3182ce;
    color: #fff;
    transform: translateY(-1px);
}

/* 标题 */
.post-title {
    font-size: 1.2em;
    margin: 0 0 10px;
    line-height: 1.4;
    font-weight: 700;
}
.post-title a {
    color: #0a0e27;
    text-decoration: none;
    background-image: linear-gradient(to right, #3182ce, #3182ce);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color 0.2s, background-size 0.3s;
}
.post-title a:hover {
    color: #3182ce;
    background-size: 100% 1px;
}

/* 摘要 */
.post-excerpt {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* 底部 meta */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #718096;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}
.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.post-meta i {
    color: #a0aec0;
    font-size: 13px;
}

/* ============================================================
   5. 分页
   ============================================================ */
.pagination,
.author-pagination,
.date-pagination,
.search-pagination {
    text-align: center;
    margin-top: 40px;
    padding: 8px 0;
}
.pagination .page-numbers,
.author-pagination .page-numbers,
.date-pagination .page-numbers,
.search-pagination .page-numbers {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination .page-numbers:hover,
.author-pagination .page-numbers:hover,
.date-pagination .page-numbers:hover,
.search-pagination .page-numbers:hover {
    background: #f7fafc;
    border-color: #3182ce;
    color: #3182ce;
}
.pagination .page-numbers.current,
.author-pagination .page-numbers.current,
.date-pagination .page-numbers.current,
.search-pagination .page-numbers.current {
    background: linear-gradient(135deg, #3182ce 0%, #5b8def 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* ============================================================
   6. 无文章
   ============================================================ */
.no-posts,
.author-empty,
.date-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    border-radius: 16px;
    margin: 20px 0;
}
.no-posts p,
.author-empty p,
.date-empty p {
    color: #4a5568;
    font-size: 1.1em;
    margin: 0;
}
.no-posts i,
.author-empty i,
.date-empty i {
    font-size: 48px;
    color: #cbd5e0;
    display: block;
    margin-bottom: 12px;
}
.date-empty {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
}
.date-empty i { color: #fbd38d; }


/* ==========================================================================
   作者归档页 - 现代化 + 蓝色调
   ========================================================================== */

/* 容器与左右两栏布局 */
.author-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.author-container-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}
.author-main { min-width: 0; }

/* 侧边栏 sticky（与 single.css 风格一致） */
.author-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
}
.author-sidebar .widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* 统一 widget 标题 */
.author-sidebar .widget-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0a0e27;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(90deg, #3182ce 0%, #3182ce 60%, transparent 100%);
    background-position: 0 100%;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    display: block;
    line-height: 1.4;
}
.author-sidebar .widget-title::before,
.author-sidebar .widget-title::after { content: none; }

/* 侧边栏内的作者卡片（仅在非作者页使用） */
.author-sidebar .author-card {
    text-align: center;
    padding: 8px 0 0;
}
.author-sidebar .author-avatar-link {
    display: inline-block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    line-height: 0;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(49, 130, 206, 0.15);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}
.author-sidebar .author-avatar-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(49, 130, 206, 0.3);
}
.author-sidebar .author-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
}
.author-sidebar .author-name {
    margin: 12px 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a0e27;
    line-height: 1.3;
}
.author-sidebar .author-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.author-sidebar .author-name-link:hover { color: #3182ce; }
.author-sidebar .author-bio {
    margin: 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 热门文章 */
.author-sidebar .popular-list { display: flex; flex-direction: column; gap: 14px; }
.author-sidebar .popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.2s;
}
.author-sidebar .popular-item:hover {
    background: #f5f7ff;
    transform: translateX(2px);
}
.author-sidebar .popular-image {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef4ff 100%);
}
.author-sidebar .popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.author-sidebar .popular-info { flex: 1; min-width: 0; }
.author-sidebar .popular-info h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #0a0e27;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.author-sidebar .popular-item:hover .popular-info h4 { color: #3182ce; }
.author-sidebar .meta-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #a0aec0;
}
.author-sidebar .meta-info time,
.author-sidebar .meta-info .views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.author-sidebar .meta-info i { color: #cbd5e0; font-size: 12px; }

/* 分类列表 */
.author-sidebar .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.author-sidebar .category-list li { border-bottom: 1px solid #edf2f7; }
.author-sidebar .category-list li:last-child { border-bottom: none; }
.author-sidebar .category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}
.author-sidebar .category-list a:hover {
    color: #3182ce;
    padding-left: 4px;
}
.author-sidebar .category-list a::before {
    content: '\f07b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #cbd5e0;
    font-size: 12px;
    transition: color 0.2s;
}
.author-sidebar .category-list a:hover::before { color: #3182ce; }
.author-sidebar .category-count {
    min-width: 26px;
    padding: 2px 8px;
    background: rgba(49, 130, 206, 0.08);
    color: #3182ce;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

/* 标签云 */
.author-sidebar .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.author-sidebar .tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f7ff;
    color: #4a5568;
    border-radius: 14px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.author-sidebar .tag-cloud a:hover {
    background: #3182ce;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(49, 130, 206, 0.25);
}

/* 空状态 */
.author-sidebar .no-posts {
    margin: 0;
    padding: 20px 0;
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
    background: transparent;
    border-radius: 0;
}

/* ================== Hero ================== */
.author-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0 60px;
    margin-top: 80px;
    margin-bottom: 40px;
    isolation: isolate;
}
.author-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef4ff 50%, #f0f8ff 100%);
    z-index: -3;
}
.author-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(49, 130, 206, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 130, 206, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
    z-index: -2;
}
.author-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: -1;
    animation: float 14s ease-in-out infinite;
}
.author-hero-blob-1 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, #5b8def 0%, transparent 70%);
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.author-hero-blob-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    top: 100px; right: -80px;
    animation-delay: -6s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -20px) scale(1.1); }
}

/* hero 内部容器 */
.author-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主卡片：玻璃拟态（合并头像区 + 统计带） */
.author-hero-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow:
        0 20px 60px -20px rgba(49, 130, 206, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* 头像 + 信息 横向区 */
.author-hero-top {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
}

/* 头像 + 双环 */
.author-hero-avatar {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    height: 180px;
}
.author-hero-avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 2;
}
.author-hero-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.author-hero-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #3182ce;
    border-right-color: #5b8def;
    animation: spin 8s linear infinite;
    z-index: 1;
}
.author-hero-ring-2 {
    inset: -16px;
    border-top-color: #0ea5e9;
    border-left-color: #3182ce;
    animation: spin 12s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.author-hero-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3182ce 0%, #5b8def 100%);
    color: #fff;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
    z-index: 3;
}
.author-hero-badge i { font-size: 14px; }

/* 信息区 */
.author-hero-info { flex: 1; min-width: 0; }
.author-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1), rgba(91, 141, 239, 0.1));
    border: 1px solid rgba(49, 130, 206, 0.2);
    color: #3182ce;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}
.author-hero-name {
    margin: 12px 0 10px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #0a0e27;
    word-break: break-word;
    background: linear-gradient(135deg, #0a0e27 0%, #3182ce 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.author-hero-role {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    color: #4a5568;
    font-size: 13px;
}
.author-hero-role i { color: #3182ce; }
.author-hero-dot { width: 4px; height: 4px; background: #cbd5e0; border-radius: 50%; }
.author-hero-bio {
    margin: 0 0 16px;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    max-width: 700px;
}
.author-hero-bio-muted { color: #a0aec0; font-style: italic; }

/* 社交 */
.author-hero-socials { display: flex; gap: 10px; }
.author-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
}
.author-social:hover {
    background: linear-gradient(135deg, #3182ce 0%, #5b8def 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.3);
}

/* 统计带（嵌在主卡内） */
.author-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(49, 130, 206, 0.12);
    position: relative;
}
.author-stats-bar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3182ce 50%, transparent 100%);
    border-radius: 2px;
}
.author-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    transition: background 0.25s, transform 0.25s;
}
.author-stat + .author-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(49, 130, 206, 0.18) 50%, transparent 100%);
}
.author-stat:hover {
    background: rgba(91, 141, 239, 0.06);
    transform: translateY(-2px);
}
.author-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3182ce 0%, #5b8def 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 18px;
    flex-shrink: 0;
}
.author-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #0a0e27;
    line-height: 1.2;
}
.author-stat-label { font-size: 12px; color: #718096; margin-top: 2px; }

/* ================== 主体 ================== */
.author-meta-section,
.author-posts-section { margin-bottom: 50px; }
.author-meta-head,
.author-posts-head { text-align: center; margin-bottom: 28px; }
.author-meta-eyebrow,
.author-posts-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #3182ce;
    margin-bottom: 8px;
}
.author-meta-title,
.author-posts-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #0a0e27;
}
.author-posts-sub { margin: 8px 0 0; color: #718096; font-size: 14px; }

.author-meta-block { margin-bottom: 28px; }
.author-meta-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}
.author-meta-subtitle i { color: #3182ce; }

.author-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.author-chip em {
    font-style: normal;
    padding: 1px 8px;
    background: linear-gradient(135deg, #3182ce 0%, #5b8def 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.author-chip:hover {
    background: linear-gradient(135deg, #3182ce 0%, #5b8def 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.3);
}
.author-chip:hover em { background: rgba(255, 255, 255, 0.25); color: #fff; }

.author-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.author-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(49, 130, 206, 0.08);
    color: #3182ce;
    border-radius: 14px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.author-tag span { font-size: 11px; color: #a0aec0; font-weight: 600; }
.author-tag:hover {
    background: #3182ce;
    color: #fff;
    transform: translateY(-1px);
}
.author-tag:hover span { color: rgba(255, 255, 255, 0.9); }


/* ==========================================================================
   按日期归档页（date.php）
   ========================================================================== */
.date-header {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 50%, #dbeafe 100%);
    padding: 80px 0 60px;
    margin-top: 80px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.date-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(49, 130, 206, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 130, 206, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
}
.date-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    background: #fff;
    color: #3182ce;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.15);
    font-size: 24px;
    position: relative;
}
.date-title {
    margin: 0 0 8px;
    font-size: 2.2em;
    color: #0a0e27;
    font-weight: 800;
    position: relative;
}
.date-sub { color: #4a5568; margin: 0; font-size: 1em; position: relative; }
.date-sub strong { color: #3182ce; font-weight: 700; margin: 0 2px; }
.date-main { padding: 0 0 60px; }


/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
}
@media (max-width: 992px) {
    .container { max-width: 720px; }
    .author-container-grid { grid-template-columns: 1fr 280px; gap: 20px; }
}
@media (max-width: 900px) {
    .author-hero-card { padding: 28px 20px; }
    .author-hero-top { flex-direction: column; text-align: center; gap: 20px; margin-bottom: 24px; }
    .author-hero-name { font-size: 28px; }
    .author-hero-bio { margin-left: auto; margin-right: auto; }
    .author-hero-socials { justify-content: center; }
    .author-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .author-stat:nth-child(2)::before { display: none; }
    .author-stat:nth-child(3),
    .author-stat:nth-child(4) { border-top: 1px solid rgba(49, 130, 206, 0.12); padding-top: 18px; margin-top: 8px; }
    .author-stat:nth-child(3)::before { left: 50%; top: 18%; bottom: 18%; }
    .author-container-grid { grid-template-columns: 1fr; }
    .author-sidebar { position: static; }
}
@media (max-width: 768px) {
    .container { max-width: 540px; }
    .category-header { padding: 50px 0 40px; margin: 60px 0 30px; }
    .category-title { font-size: 2em; }
    .posts-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
    .post-title { font-size: 1.1em; }
    .date-header { padding: 50px 0 40px; margin: 60px 0 30px; }
    .date-title { font-size: 1.8em; }
}
@media (max-width: 600px) {
    .author-hero { padding-bottom: 40px; }
    .author-hero-avatar { width: 130px; height: 130px; }
    .author-hero-name { font-size: 24px; }
    .author-meta-title,
    .author-posts-title { font-size: 22px; }
    .author-stat { padding: 14px; }
    .author-stat-icon { width: 38px; height: 38px; font-size: 16px; }
    .author-stat-num { font-size: 18px; }
}
@media (max-width: 480px) {
    .posts-grid { grid-template-columns: 1fr; }
}

/* 减少动画（无障碍） */
@media (prefers-reduced-motion: reduce) {
    .author-hero-ring,
    .author-hero-blob { animation: none; }
    .post-card { transition: none; }
}
