/* 限免雷达Apple 模板样式（叠加在默认样式之上） */

/* ---------- 首页：最新一期 ---------- */
.free-hero {
    position: relative;
    margin: 0 0 28px;
    padding: 28px 28px 26px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4a90e2 0%, #7b6cf6 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(74, 144, 226, .25);
    overflow: hidden;
}
.free-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.free-hero-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 12px;
    letter-spacing: .5px;
}
.free-hero-title {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
}
.free-hero-title a {
    color: #fff;
    text-decoration: none;
}
.free-hero-meta {
    font-size: 14px;
    opacity: .9;
    display: flex;
    gap: 8px;
}
.free-hero-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    color: #4a90e2;
    font-weight: 600;
    text-decoration: none;
}
.free-hero-btn:hover {
    opacity: .92;
}

.free-section-title {
    margin: 8px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* ---------- 首页：往期卡片 ---------- */
.free-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0f4;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.free-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}
.free-card-date {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 12px;
    background: #f0f5ff;
    color: #4a90e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.free-card-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.free-card-month {
    font-size: 12px;
    margin-top: 4px;
}
.free-card-body {
    flex: 1;
    min-width: 0;
}
.free-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.free-card-desc {
    font-size: 13px;
    color: #8a8f99;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.free-card-arrow {
    font-size: 22px;
    color: #c0c4cc;
}
.free-empty {
    color: #8a8f99;
    padding: 20px 0;
}

/* ---------- 文章页 ---------- */
.free-article-header {
    margin-bottom: 20px;
}
.free-article-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #4a90e2;
    font-size: 12px;
    font-weight: 600;
}
.free-article-title {
    margin: 10px 0 8px;
    font-size: 26px;
    line-height: 1.35;
}
.free-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: #8a8f99;
}
.free-article-edit {
    margin-left: auto;
}

/* 正文里的分组标题与 App 卡片（由文章内容 HTML 输出） */
.free-article-body h3 {
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef0f4;
    font-size: 18px;
}
.free-article-body a[target="_blank"][style*="display:flex"] {
    transition: box-shadow .15s ease, transform .15s ease;
}
.free-article-body a[target="_blank"][style*="display:flex"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .07);
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .free-hero {
        padding: 22px 20px;
    }
    .free-hero-title {
        font-size: 20px;
    }
    .free-article-title {
        font-size: 22px;
    }
    .free-card-desc {
        white-space: normal;
    }
}

/* ---------- 顶部导航：统一风格 ---------- */
.blog-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid #eef0f4;
    box-shadow: none;
}
.blog-header-c {
    height: 64px;
}
/* 用文字做品牌名，替代空的站点 logo，避免破图 */
.blog-header-imglink .blog-header-img,
.blog-header-img[src=""] {
    display: none;
}
.blog-header-imglink::before {
    content: "限免雷达Apple";
    font-size: 19px;
    font-weight: 700;
    color: #4a90e2;
    letter-spacing: .5px;
}
.blog-header-imglink {
    text-decoration: none;
}
.blog-container {
    margin-top: calc(64px + 28px);
}

/* ---------- 侧栏：卡片风格（重新设计，去掉重复分割线）---------- */
.side-bar .widget {
    border-radius: 16px;
    border: 1px solid #eef0f4;
    box-shadow: 0 2px 12px rgba(31, 45, 61, .04);
    background: #fff;
    padding: 18px 20px 20px;
    margin-bottom: 18px;
}
/* 标题：左侧蓝色竖条，只保留一层，不再画横线 */
.side-bar .widget-title {
    border: 0;
    padding: 0;
    margin: 0 0 14px;
}
.side-bar .widget-title h3 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    border: 0;
}
.side-bar .widget-title h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 2px;
    background: #4a90e2;
}
/* 组件内容区：去掉默认 hr 与内边距 */
.side-bar .widget hr {
    display: none;
}
.side-bar .widget ul.unstyle-li,
.side-bar .widget .unstyle-li {
    margin-block: 0;
}
/* 搜索框：胶囊样式 */
.side-bar input[type="search"],
.side-bar input[type="text"] {
    border-radius: 999px;
    border: 1px solid #e3e7ee;
    padding: 8px 14px;
}
.side-bar .widget input[type="submit"] {
    border-radius: 999px;
    border: 0;
    background: #4a90e2;
    color: #fff;
    font-weight: 600;
}
/* 热门文章 / 侧栏列表：统一字体、字号、颜色，去掉虚线 */
.side-bar .widget ul.unstyle-li > li.blog-lates,
.side-bar .widget ul.unstyle-li > li {
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    padding: 9px 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #f3f4f7;
}
.side-bar .widget ul.unstyle-li > li:last-child {
    border-bottom: 0;
}
.side-bar .widget ul.unstyle-li > li a {
    display: block;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-bar .widget ul.unstyle-li > li a:hover {
    color: #4a90e2;
}

/* ---------- 正文 App 卡片：图标与文字统一左对齐 ---------- */
.free-article-body a[target="_blank"][style*="display:flex"] {
    justify-content: flex-start;
    text-align: left;
}
.free-article-body a[target="_blank"][style*="display:flex"] img {
    display: block;
    margin: 0 !important;
    flex: 0 0 56px;
}
.free-article-body a[target="_blank"][style*="display:flex"] > span {
    text-align: left;
    flex: 1 1 auto;
}

/* ---------- 首页分页位置固定 ----------
   列表区域使用固定高度（容纳 5 张卡片），分页放在该区域底部，
   无论当前页有几篇文章，分页都在同一位置。 */
.free-list {
    min-height: 520px;
    margin-bottom: 0;
}
.free-list > .free-card:first-child {
    margin-top: 0;
}
.free-pagination {
    display: block;
    margin: 0;
    padding-top: 0;
    text-align: center;
    position: relative;
    top: 0;
}
