/* Home page styles for the aboutinsider theme */

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

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

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

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

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

.trvl-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;
}

.trvl-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;
}

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

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

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

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

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

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

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

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

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

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

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

.trvl-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 600px) {
    .trvl-bottom-bar__inner {
        grid-template-columns: 1fr;
    }
}
/* =====================================================================
   HALF-SCREEN SPLIT — home-category-section
   每个分类占 50% 屏幕宽度；左侧大图全高铺满，右侧 3 条文章均分
   ===================================================================== */

/* ---------- 外层 2 列等宽网格 ---------- */
.trvl-half-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 每格精确 50% */
    gap: 3px;                          /* 极细缝隙，视觉上近乎无缝 */
    margin-top: 36px;
}

/* ---------- 单个分类区块 ---------- */
.trvl-half-block {
    display: flex;
    flex-direction: column;
    background: var(--trvl-bg);
    overflow: hidden;
}

/* ---------- 分类标题行 ---------- */
.trvl-half-block__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 12px;
    border-top: 3px solid var(--trvl-primary);
}

/* 左侧色块 */
.trvl-half-block__accent {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--trvl-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

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

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

/* 分隔线 */
.trvl-half-block__divider {
    flex: 1;
    height: 1px;
    background: var(--trvl-border);
}

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

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

/* ---------- 内容区：左右分栏 ---------- */
.trvl-half-block__body {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 左大图 : 右列表 = 1 : 1 */
    flex: 1;
    /* 固定内容区高度，使大图和右侧列表等高 */
    height: 340px;
}

/* =====================================================================
   ① 左侧大图
   ===================================================================== */
.trvl-half-main {
    position: relative;
    overflow: hidden;
    background: #111;
    height: 100%;
}

/* 大图链接撑满父容器 */
.trvl-half-main__link {
    display: block;
    width: 100%;
    height: 100%;
}

/* 大图：全高铺满（object-fit: cover 保证不变形） */
.trvl-half-main__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0.9;
}

.trvl-half-main:hover .trvl-half-main__img {
    transform: scale(1.03);
    opacity: 0.78;
}

/* 底部渐变信息叠加层 */
.trvl-half-main__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 56px 14px 14px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4)  55%,
        transparent         100%
    );
}

/* 分类徽章 */
.trvl-half-main__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: var(--trvl-primary);
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
}

.trvl-half-main__badge:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* 大标题（最多 3 行） */
.trvl-half-main__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 700;
    color: #fff;
    line-height: 1.38;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.trvl-half-main__title:hover {
    color: var(--trvl-accent, #f0a500);
    opacity: 1;
    text-decoration: none;
}

/* 作者 + 日期 */
.trvl-half-main__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

/* =====================================================================
   ② 右侧 3 条文章均分列表
   ===================================================================== */
.trvl-half-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid var(--trvl-border);
    background: var(--trvl-bg);
}

/* 单条文章项：flex: 1 让 3 条均分右侧全部高度 */
.trvl-half-list-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-height: 0;
    border-bottom: 1px solid var(--trvl-border);
    overflow: hidden;
    transition: background 0.18s;
}

.trvl-half-list-item:last-child {
    border-bottom: none;
}

.trvl-half-list-item:hover {
    background: var(--trvl-bg-light);
}

/* 缩略图：固定宽度，全高撑满本行 */
.trvl-half-list-item__thumb {
    flex-shrink: 0;
    width: 96px;
    overflow: hidden;
    background: var(--trvl-bg-light);
}

.trvl-half-list-item__thumb a {
    display: block;
    height: 100%;
}

.trvl-half-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.trvl-half-list-item:hover .trvl-half-list-item__thumb img {
    transform: scale(1.06);
}

/* 文字区：左侧粗色边框 + padding */
.trvl-half-list-item__body {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-left: 3px solid transparent;
    transition: border-color 0.18s;
}

.trvl-half-list-item:hover .trvl-half-list-item__body {
    border-left-color: var(--trvl-primary);
}

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

.trvl-half-list-item__title:hover {
    color: var(--trvl-primary);
    opacity: 1;
    text-decoration: none;
}

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

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

/* 平板（≤1024px）：内容区高度略降 */
@media (max-width: 1024px) {
    .trvl-half-block__body {
        height: 290px;
    }

    .trvl-half-list-item__thumb {
        width: 80px;
    }

    .trvl-half-main__title {
        -webkit-line-clamp: 2;
    }
}

/* 小平板（≤768px）：外层改 1 列（每个分类独占整行），内部左右布局保持 */
@media (max-width: 768px) {
    .trvl-half-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trvl-half-block__body {
        height: 300px;
    }
}

/* 手机（≤480px）：内部改上下布局（大图在上，列表在下） */
@media (max-width: 480px) {
    .trvl-half-block__body {
        grid-template-columns: 1fr;   /* 上下改为单列 */
        height: auto;
    }

    /* 大图固定高度 */
    .trvl-half-main {
        height: 220px;
    }

    /* 右侧列表改回横排小图 */
    .trvl-half-list {
        border-left: none;
        border-top: 1px solid var(--trvl-border);
    }

    .trvl-half-list-item {
        flex: none;
        min-height: 72px;
    }

    .trvl-half-list-item__thumb {
        width: 90px;
    }
}