/* Home page styles for the aboutinsider theme */

/* ===================== SEO H1 ===================== */
.care-home-h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--care-text);
    text-align: center;
    margin: 18px auto 0;
    padding: 0 16px;
    line-height: 1.4;
}

/* ===================== Hero Section ===================== */
.care-hero {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3px;
    margin-top: 20px;
    height: 440px;
}

.care-hero-main {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    height: 100%;
}

.care-hero-main__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.care-hero-main:hover .care-hero-main__img {
    transform: scale(1.02);
}

.care-hero-main__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 32px 20px 20px;
}

.care-hero-main__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 8px;
}

.care-hero-main__title a {
    color: #ffffff;
    text-decoration: none;
}

.care-hero-main__title a:hover {
    color: var(--care-accent);
    text-decoration: none;
    opacity: 1;
}

.care-hero-main__date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.care-hero-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
}

.care-hero-list-item {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    border-radius: 2px;
    background: #1a1a1a;
    transition: background 0.2s;
}

.care-hero-list-item:hover {
    background: #222;
}

.care-hero-list-item__img-wrap {
    flex-shrink: 0;
    width: 120px;
    position: relative;
    overflow: hidden;
}

.care-hero-list-item__img-wrap a {
    display: block;
    height: 100%;
}

.care-hero-list-item__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.care-hero-list-item:hover .care-hero-list-item__img {
    transform: scale(1.04);
}

.care-hero-list-item__body {
    flex: 1;
    min-width: 0;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.care-hero-list-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.care-hero-list-item__title a {
    color: #ffffff;
    text-decoration: none;
}

.care-hero-list-item__title a:hover {
    color: var(--care-accent);
    text-decoration: none;
    opacity: 1;
}

/* ===================== Category Section Grid ===================== */
.care-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    margin-top: 36px;
}

.care-cat-section {
    border-top: 3px solid var(--care-primary);
    padding-top: 12px;
}

.care-cat-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.care-cat-section__name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--care-text);
    /*text-transform: uppercase;*/
    letter-spacing: 0.8px;
    text-decoration: none;
}

.care-cat-section__name:hover {
    color: var(--care-primary);
    text-decoration: none;
    opacity: 1;
}

.care-cat-section__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.care-cat-featured {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    overflow: hidden;
    border-radius: 2px;
}

.care-cat-featured__img-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}

.care-cat-featured__img-wrap a {
    display: block;
    height: 100%;
}

.care-cat-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.care-cat-featured:hover .care-cat-featured__img {
    transform: scale(1.02);
}

.care-cat-featured__info {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.care-cat-featured__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--care-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.care-cat-featured__title:hover {
    color: var(--care-primary);
    text-decoration: none;
    opacity: 1;
}

.care-cat-featured__meta {
    font-size: 12px;
    color: var(--care-text-muted);
    margin-top: 5px;
}

.care-cat-small-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.care-cat-small-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid var(--care-border);
}

.care-cat-small-item:last-child {
    border-bottom: none;
}

.care-cat-small-item__img {
    flex-shrink: 0;
    width: 60px;
    height: 62px;
    overflow: hidden;
    border-radius: 2px;
}

.care-cat-small-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.care-cat-small-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--care-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.care-cat-small-item__title:hover {
    color: var(--care-primary);
    text-decoration: none;
    opacity: 1;
}

.care-cat-small-item__meta {
    font-size: 12px;
    color: var(--care-text-muted);
    margin-top: 3px;
}

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
    .care-hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .care-hero-main {
        height: 280px;
    }

    .care-hero-list {
        flex-direction: column;
        height: auto;
    }

    .care-hero-list-item {
        height: 80px;
    }

    .care-hero-list-item__img-wrap {
        width: 110px;
    }

    .care-cats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .care-hero-list {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .care-hero-list-item {
        height: 80px;
    }

    .care-hero-list-item__img-wrap {
        width: 90px;
    }
}

/* ===================== Bottom Bar ===================== */
.care-bottom-bar {
    margin-top: 48px;
    padding: 32px 0 36px;
    border-top: 1px solid var(--care-border);
}

.care-bottom-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.care-bottom-col__heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    /*text-transform: uppercase;*/
    letter-spacing: 0.8px;
    color: var(--care-text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--care-primary);
}

.care-bottom-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.care-bottom-col__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.care-bottom-col__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--care-text);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.care-bottom-col__title:hover {
    color: var(--care-primary);
    text-decoration: none;
    opacity: 1;
}

.care-bottom-col__date {
    font-size: 12px;
    color: var(--care-text-muted);
}
@media(max-width:1200px){
    .care-bottom-bar{
        padding: 32px 16px 36px;
    }
}
@media(max-width:1024px){
    .care-bottom-bar{
        padding: 32px 0 36px;
    }
}
@media (max-width: 900px) {
    .care-bottom-bar__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .care-bottom-bar__inner {
        grid-template-columns: 1fr;
    }
}
/* =====================================================================
   RANK LIST — home-category-section（排行榜式布局）
   ===================================================================== */

/* ---------- 外层 2 列网格 ---------- */
.care-rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
    margin-top: 36px;
}

/* ---------- 单个分类区块 ---------- */
.care-rank-block {
    background: var(--care-bg);
}

/* ---------- 分类标题行 ---------- */
.care-rank-block__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--care-border);
}

/* 左侧粗色块（颜色标记） */
.care-rank-block__accent {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--care-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* 分类名称 */
.care-rank-block__name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--care-text);
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.care-rank-block__name:hover {
    color: var(--care-primary);
    opacity: 1;
    text-decoration: none;
}

/* 标题与 More 之间的横线 */
.care-rank-block__divider {
    flex: 1;
    height: 1px;
    background: var(--care-border);
}

/* More 链接 */
.care-rank-block__more {
    font-size: 12px;
    font-weight: 600;
    color: var(--care-text-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.care-rank-block__more:hover {
    color: var(--care-primary);
    opacity: 1;
    text-decoration: none;
}

/* ---------- 排行列表（ol 重置） ---------- */
.care-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- 单条排行项 ---------- */
.care-rank-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--care-border);
    transition: background 0.15s;
}

.care-rank-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.care-rank-item:hover {
    background: var(--care-bg-light);
    /* 悬停时左右用负 margin 撑满，保持对齐 */
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
}

/* ---------- 序号 ---------- */
.care-rank-num {
    /* 默认：灰色（第 4 条） */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 800;
    font-style: italic;
    color: var(--care-text-muted);
    background: var(--care-bg-light);
    margin-top: 2px;
}

/* 前 3 名：主题色背景 + 白字 */
.care-rank-num.is-top {
    color: #fff;
    background: var(--care-primary);
}

/* 第 1 名特别放大 */
.care-rank-list li:nth-child(1) .care-rank-num {
    font-size: 17px;
    width: 30px;
    height: 30px;
}

/* ---------- 缩略图 ---------- */
.care-rank-item__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--care-bg-light);
}

.care-rank-item__thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.care-rank-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.care-rank-item:hover .care-rank-item__thumb img {
    transform: scale(1.06);
}

/* ---------- 文字内容 ---------- */
.care-rank-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 标题：最多 2 行截断 */
.care-rank-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--care-text);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.care-rank-item__title:hover {
    color: var(--care-primary);
    opacity: 1;
    text-decoration: none;
}

/* 第 1 名标题略大 */
.care-rank-list li:nth-child(1) .care-rank-item__title {
    font-size: 15px;
    font-weight: 700;
}

/* 作者 + 日期 */
.care-rank-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    color: var(--care-text-muted);
}

.care-rank-item__dot {
    color: var(--care-border);
}

/* =====================================================================
   响应式断点
   ===================================================================== */

/* 平板：仍保持 2 列，缩略图变小 */
@media (max-width: 900px) {
    .care-rank-grid {
        gap: 24px 24px;
    }

    .care-rank-item__thumb {
        width: 60px;
        height: 46px;
    }
}

/* 小平板：变为 1 列（两分类上下堆叠） */
@media (max-width: 680px) {
    .care-rank-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 手机：缩略图再小一档，序号缩小 */
@media (max-width: 480px) {
    .care-rank-num {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .care-rank-list li:nth-child(1) .care-rank-num {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .care-rank-item__thumb {
        width: 54px;
        height: 42px;
    }

    .care-rank-item:hover {
        margin-left: -6px;
        margin-right: -6px;
        padding-left: 6px;
        padding-right: 6px;
    }
}