/**
 * Theme Name: JustNews
 * Theme URI: https://www.wpcom.cn/themes/justnews.html
 * Version: 6.21.4
 * Author: WPCOM
 * Author URI: https://www.wpcom.cn
 * Requires at least: 6.2
 * Requires PHP: 7.4
 */

/* ====================================
   自定义样式 - Custom Styles
   ==================================== */

:root {
    --theme-sidebar-width: 365px;
}
.el-boxed .post-loop-default {
    padding: 0 0px;
}
.post-loop-default .item:hover {
    /*background: hsla(var(--th.hero-image imgeme-color-hsl), .03);*/
    /*border-radius: 0;*/
    /* margin: 0 0px; */
    /*padding: 20px 0;*/
    /*transition: all .3s ease 0s;*/
}
.el-boxed .entry-author, .el-boxed .entry-comments, .el-boxed .entry-main, .el-boxed .entry-related-posts {
     padding: 0px; 
}

/*解决搜索框问题*/
.navbar-search-input {
    background: #FFF;
}

/* 分类/页面描述样式 */
.page-description {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.sec-panel-head .page-description {
    margin-top: 15px;
    margin-bottom: 0;
}
.sec-panel-head .page-description p {
    margin-bottom: 0;
}
.el-boxed .sec-panel-head {
    margin-bottom: 0;
    padding: 20px 0 0;
}

.widget_post_tabs,.widget_lastest_news {
    background: #f2f5f6 !important;
}
.widget_post_tabs .item-img,.widget_post_tabs .item-date {
    display: none;
}
.widget_post_tabs .item-content {
    width: 100%;
}
.widget_post_tabs .item {
    align-items: center;
}
.widget_post_tabs .item:before {
    /*content: "";*/
    /*display: block;*/
    /*width: 5px;*/
    /*height: 5px;*/
    /*background-color: var(--theme-color);*/
    display: block;
    top: 20px;
}
.widget_post_tabs .item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    margin-bottom: 0;
}
.widget_post_tabs .item {
    border-bottom: 1px solid var(--theme-line-color);
}

/*.ads {*/
/*    margin-bottom: 10px;*/
/*    max-height: 218px;*/
/*    overflow: hidden;*/
/*}*/
.post-tabs-hd {
    position: relative;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.widget_post_tabs .post-tabs-hd-inner {
    z-index: 1;
}
.post-tabs-hd::before {
    content: "";
    display: block;
    background: #000e2c;
    width:calc(100% + 30px);
    height: 54px;
    position: absolute;
    z-index: -0;
    margin-left: -15px;
    margin-right: -15px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.widget_post_tabs .post-tabs-hd .post-tabs-item {
    color: hsl(0deg 0% 100% / 80%);
}
.widget_post_tabs .item {
    border-bottom: 1px solid hsl(0deg 0% 10% / 14%);
}
.widget_post_tabs .post-tabs-hd .post-tabs-item.active {
    color: #ffffff;
    font-weight: bold;
}
.widget_post_tabs .post-tabs-hd .post-tabs-item.active:after {
    background-color: #ffffff;
}

.widget_lastest_news {
    position: relative;
}

.widget_lastest_news::before {
    content: "";
    display: block;
    background: #000e2c;
    width: 100%;
    height: 48px;
    position: absolute;
    top: 0;
    z-index: -0;
    margin-left: -15px;
    /* margin-right: -15px; */
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.widget_lastest_news .widget-title {
    color: #fff;
}

.widget_lastest_news .widget-title:before {
    background-color:  #fff;
}
.widget_lastest_news .orderby-date {
    margin-top: 25px;
}
.widget_lastest_news .orderby-date li {
    
    border-bottom: 1px solid hsl(0deg 0% 10% / 14%);
    padding-top: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    margin-bottom: 0;
}
.widget_lastest_news .orderby-date li::before {
    top: 21px;
}
/* 导航菜单样式 - 仅桌面端显示 */
@media (min-width: 992px) {

    /* 导航菜单激活状态样式 */
    body>header.header .nav>li.active>a,
    body>header.header .nav>li>a:hover {
        color: #fff;
        background: var(--theme-color);
        line-height: 32px;
        border-radius: 8px;
    }

    /* 导航菜单字体加粗 */
    body>header.header .nav>li>a {
        font-weight: 700;
    }

    body>header.header .nav>li {
        margin: 0 10px;
    }

    .j-navbar-search {
        margin-left: 30px;
    }

    .navbar-action .login:first-child {
        background: none;
        border-color: #000;
        border-radius: var(--theme-border-radius-m);
        color: #000;
    }

    .navbar-action .login:first-child:after {
        display: none;
    }

    .navbar-action .j-navbar-search {
        display: none !important;
    }

    .menu_bar {
        display: flex;
        align-items: center;
    }

    .social-menu a {
        display: flex !important;
        align-items: center;
    }

    .social-menu a:before {
        content: " ";
        opacity: .8;
        background: #ffa400;
        width: 4px;
        height: 4px;
        border-radius: 2px;
        margin-right: 4px;
        display: block;
    }

    body>header.header .nav>li.social-menu.active>a:before,
    .social-menu a:hover:before {
        background: #fff;
    }


    /* 头部标签样式 */
    .header-tags {
        padding: 15px 0;
        border-top: 1px solid var(--theme-line-color);
    }

    .tags-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        align-items: center;
    }

    .tag-item {
        /*background: hsla(var(--theme-color-hsl), 0.06);*/
        /*border-radius: var(--theme-border-radius-m);*/
        color: var(--theme-black-color);
        font-size: 13px;
        padding: 6px 18px;
        text-decoration: none;
        /*transition: all 0.3s ease;*/
        white-space: nowrap;
        position: relative;
    }

    .tag-item:first-child {
        padding-left: 0;
    }

    .tag-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 14px;
        background: var(--theme-border-color);
        ;
    }

    .tag-item:hover {
        /*background: var(--theme-color);*/
        color: var(--theme-color);
        /*transform: translateY(-2px);*/
    }

    body.header-fixed #wrap {
        padding-top: 128px;
    }

    body>header.header {
        box-shadow: 0 0 10px 4px hsla(var(--theme-color-hsl), .06);
    }

}

@media (max-width: 991px) {

    .menu_bar {
        width: 100%;
        height: 100%;
    }

    .menu_bar .navbar-search {
        display: none !important;
    }

    .header-tags {
        display: none !important;
    }
}

.footer {
    background: #000;
    color: hsla(0, 0%, 100%, .7);
    padding: 72px 0;
}

.footer-first {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px 72px 0px;
    border-bottom: 1px solid #FFFFFF30;
}

.footer-first .footer-col:first-child {
    text-align: left;
    font-size: 32px;
    color: #fff;
    font-weight: bold;
}

.footer-first .footer-col:last-child {
    text-align: right;
}

.footer-first .footer-col:last-child .wpcom-btn {
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px 50px 50px 50px;
}

.footer-with-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 72px 0px 0px 0px;
}

.footer-with-logo .footer-col-logo img {
    max-height: 30px;
    margin-bottom: 10px;
}

@media (max-width: 1239px) {
    .footer-col-logo {
        display: block;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 20px 0;
    }

    .footer-first {
        flex-direction: column;
        padding: 0px 0px 30px 0px;
        gap: 20px;
    }

    .footer-first .footer-col:first-child {
        text-align: center;
        font-size: 24px;
    }

    .footer-first .footer-col:last-child {
        text-align: center;
    }

    .footer-first .footer-col:last-child .wpcom-btn {
        padding: 16px 32px;
        font-size: 16px;
    }

    .footer-with-logo {
        flex-direction: column;
        align-items: center;
        padding: 30px 0px 0px 0px;
        gap: 20px;
    }

    .footer-col-logo {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .footer-col-logo img {
        margin: 0 auto;
    }

    .footer-col-copy {
        text-align: center;
        width: 100%;
    }

    .footer-col-links {
        text-align: center !important;
        width: 100%;
    }

    .footer-col-sns {
        text-align: center !important;
        width: 100%;
    }

    .hidden-xs {
        display: block !important;
    }
}

.footer-col-links {
    text-align: right;
}

.footer .footer-nav li:after,
.footer .menu ul li:after,
.footer ul.menu li:after {
    content: " ";
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
    opacity: .8;
    vertical-align: top;
}

.footer-col-links .footer-nav:last-child a {
    font-size: 12px;
    text-decoration: underline;
}



/* ====================================
   首页顶部区域样式 - Hero Section
   ==================================== */

.main-top-section {
    margin-bottom: 10px;
    display: flex;
    gap: 30px;
}

.top-section-main {
    flex: 1;
    min-width: 0;
    /*padding: 0 20px;*/
}

.top-section-sidebar {
    flex: 0 0 var(--theme-sidebar-width, 380px);
    width: var(--theme-sidebar-width, 380px);
}

.hero-section {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    /*height: 255px;*/
}

/* 左侧内容区 */
.hero-content {
    flex: 0 0 40%;
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f2f5f6;
}

.hero-category {
    margin-bottom: 10px;
}

.hero-category a {
    display: inline-block;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-category a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.hero-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-title a:hover {
    color: #3b82f6;
}

.hero-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* CTA 区域 */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.hero-cta .cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--member-color);
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.hero-cta .cta-dot {
    font-size: 8px;
    line-height: 1;
}

.hero-cta .cta-label {
    font-weight: 600;
}

.hero-cta .cta-text {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* 右侧图片区 */
.hero-image {
    flex: 1;
    position: relative;
    background: #e5e7eb;
    /*height: 255px;*/
}

.hero-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-height: 330px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image a:hover img {
    transform: scale(1.05);
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* 侧边栏图片组件 */
.sidebar-image-widget {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    /*height: 255px;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*padding: 20px;*/
}

.sidebar-image-widget img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-bottom: 15px;
}

.sidebar-image-widget a {
    display: block;
    transition: opacity 0.3s ease;
}

.sidebar-image-widget a:hover {
    opacity: 0.9;
}

.sidebar-image-widget .hero-cta {
    margin-top: 0;
    flex-wrap: wrap;
}

.sidebar-image-widget .hero-cta .cta-text {
    font-size: 14px;
    /*width: 100%;*/
    /*margin-top: 8px;*/
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 15px;
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin-bottom: 12px;
    color: #999;
}

.image-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .main-top-section {
        gap: 20px;
    }

    .top-section-main {
        padding: 0 0px;
    }

    .top-section-sidebar {
        flex: 0 0 320px;
        width: 320px;
    }

    .hero-content {
        padding: 40px 35px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-excerpt {
        font-size: 13px;
    }

    .hero-cta .cta-badge {
        font-size: 13px;
        padding: 5px 14px;
    }

    .hero-cta .cta-text {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .main-top-section {
        flex-direction: column;
        gap: 20px;
    }

    .top-section-main {
        padding: 0 0px;
    }
    .top-section-sidebar {
        flex: 1;
        width: 100%;
    }

    .hero-section {
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    .hero-content {
        flex: 1;
        padding: 35px 30px;
        order: 2;
    }

    .hero-image {
        min-height: 300px;
        height: auto;
        order: 1;
    }

    .hero-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .main-top-section {
        /*margin-bottom: 20px;*/
        gap: 15px;
    }

    .hero-section {
        border-radius: 12px;
    }

    .hero-content {
        padding: 25px 20px;
    }

    .hero-category a {
        font-size: 12px;
    }

    .hero-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .hero-excerpt {
        font-size: 13px;
        line-height: 1.6;
    }

    .hero-cta {
        margin-top: 15px;
        gap: 10px;
    }

    .hero-cta .cta-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .hero-cta .cta-dot {
        font-size: 10px;
    }

    .hero-cta .cta-text {
        font-size: 14px;
    }

    .hero-image {
        min-height: 225px;
        height: auto;
    }
    .hero-image img {
        height: 225px;
    }

    .sidebar-image-widget .hero-cta .cta-text {
        font-size: 13px;
    }
}