/* 修复首页 Banner 背景图 */
.gb-element-3e6e623d {
    align-items: center;
    background: linear-gradient(to right, rgba(0,0,0,.25) 0%, rgba(0,0,0,.25) 100%), url(https://hubcn.com/wp-content/uploads/2026/04/banner1.png) center / cover no-repeat;
    justify-content: center;
    padding: 180px 20px;
    min-height: 450px;
}

@media (max-width: 1024px) {
    .gb-element-3e6e623d {
        padding: 120px 20px;
        min-height: 380px;
    }
}

@media (max-width: 767px) {
    .gb-element-3e6e623d {
        padding: 100px 20px;
        min-height: 320px;
    }
}

/* 标题文字颜色 */
.gb-text-59c477ea {
    color: #FFFFFF !important;
    font-size: 44px;
    text-align: center;
}

@media (max-width: 1024px) {
    .gb-text-59c477ea {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .gb-text-59c477ea {
        font-size: 18px;
    }
}

/* 副标题文字颜色 */
.gb-text-623809d7 {
    color: #FFFFFF !important;
    font-size: 26px;
    text-align: center;
}

@media (max-width: 1024px) {
    .gb-text-623809d7 {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .gb-text-623809d7 {
        font-size: 16px;
    }
}

/* Banner 搜索框宽度优化 */
.gb-element-ca599d9d .wp-block-search__inside-wrapper {
    max-width: 500px !important;
    margin: 0 auto !important;
}

.gb-element-ca599d9d .wp-block-search__input {
    max-width: 400px !important;
}

/* 搜索按钮悬停特效 - 与 Popular Topics 标签完全一致 */
.gb-element-ca599d9d button.wp-block-search__button,
.gb-element-ca599d9d .wp-block-search__button {
    background-color: #4a77b5 !important;
    border-radius: 25px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #4a77b5 !important;
    color: #ffffff !important;
}

.gb-element-ca599d9d button.wp-block-search__button:hover,
.gb-element-ca599d9d .wp-block-search__button:hover {
    background-color: #005EB8 !important;
    color: #ffffff !important;
    border-color: #005EB8 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 94, 184, 0.4) !important;
}

@media (max-width: 767px) {
    .gb-element-ca599d9d .wp-block-search__inside-wrapper {
        max-width: 100% !important;
    }
    .gb-element-ca599d9d .wp-block-search__input {
        max-width: 100% !important;
    }
}

/* Popular Topics 标题居中 */
.gb-text-cdc59105 {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 20px !important;
}

/* Featured Articles 标题居中 */
.gb-text-featured-heading {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

/* Latest Guides 标题和 View All 链接容器 - flex 布局 */
.gb-element-latest-guides-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
}

/* Latest Guides 标题 - 不设置 width:100% 以允许和链接并排 */
.gb-element-latest-guides-header .gb-text-d77a9746 {
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: inline-block !important;
    width: auto !important;
}

/* View All 链接样式 */
.gb-text-view-all-link {
    color: #046bd2 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.gb-text-view-all-link:hover {
    color: #045cb4 !important;
    text-decoration: underline !important;
}

/* Popular Topics 标签布局优化 */
.entry-content .gb-element-b3718679 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    margin-top: 20px !important;
    padding: 0 !important;
}

.entry-content .gb-element-b3718679 a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    background-color: #f5f5f5 !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.entry-content .gb-element-b3718679 a:hover {
    background-color: #4a77b5 !important;
    color: #ffffff !important;
    border-color: #4a77b5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(74, 119, 181, 0.3) !important;
}

.entry-content .gb-element-b3718679 a .gb-shape {
    display: inline-flex !important;
    align-items: center !important;
    color: inherit !important;
    flex-shrink: 0 !important;
}

.entry-content .gb-element-b3718679 a .gb-shape svg {
    width: 18px !important;
    height: 18px !important;
}

.entry-content .gb-element-b3718679 a .gb-text {
    display: inline !important;
}

@media (max-width: 767px) {
    .entry-content .gb-element-b3718679 {
        gap: 10px;
    }

    .entry-content .gb-element-b3718679 a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .entry-content .gb-element-b3718679 a .gb-shape svg {
        width: 16px;
        height: 16px;
    }
}

/* Latest Guides 文章图片悬停放大效果 */
.wp-block-latest-posts__post-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-latest-posts__post-image:hover img {
    transform: scale(1.1);
}

.wp-block-latest-posts__post-image {
    overflow: hidden;
    border-radius: 8px;
}

/* 文章列表页图片悬停放大效果 (travel/attractions-scenery 等分类页) */
.ast-article-post .post-thumb-img-content,
.ast-article-post .post-thumb,
.ast-article-post .wp-post-image {
    overflow: hidden;
    border-radius: 8px;
}

.ast-article-post .post-thumb-img-content img,
.ast-article-post .post-thumb img,
.ast-article-post .wp-post-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.ast-article-post:hover .post-thumb-img-content img,
.ast-article-post:hover .post-thumb img,
.ast-article-post:hover .wp-post-image img {
    transform: scale(1.1);
}

/* 统一 Featured Articles 和 Latest Guides 卡片信息顺序 */
.wp-block-latest-posts__post-has-image {
    display: flex !important;
    flex-direction: column !important;
}

.wp-block-latest-posts__post-content {
    display: flex !important;
    flex-direction: column !important;
}

.wp-block-latest-posts__post-meta {
    order: 3 !important;
    margin-top: auto !important;
}


/* 统一 Featured Articles 和 Latest Guides 卡片信息顺序 */
/* 目标顺序：图片 -> 分类 -> 标题 -> 摘要 -> 作者/日期 */

/* Latest Guides 卡片重新排序 */
.wp-block-latest-posts__post-has-image {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.wp-block-latest-posts__post-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* 确保标题在摘要之前 */
.wp-block-latest-posts__post-title {
    order: 1 !important;
}

/* 确保摘要在日期之前 */
.wp-block-latest-posts__post-excerpt {
    order: 2 !important;
}

/* 确保日期/作者在最后 */
.wp-block-latest-posts__post-meta,
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
    order: 3 !important;
    margin-top: auto !important;
}

/* Featured Articles 卡片确保正确顺序 - 与 Latest Guides 一致 */
/* 顺序：分类 -> 元数据 -> 标题 -> 摘要 */
.hubcn-featured-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.hubcn-featured-category {
    order: 1 !important;
}

.hubcn-featured-meta {
    order: 2 !important;
}

.hubcn-featured-title {
    order: 3 !important;
}

.hubcn-featured-excerpt {
    order: 4 !important;
}
