/**
 * 株洲吉庆网络科技有限公司 - 主题配色与首页排版
 * 翡翠青绿主色，兼容亮色/暗色模式
 */

/* ============ 全局配色变量 ============ */
html body {
    --theme-color: #0e9f6e;
    --focus-color: #0e9f6e;
    --focus-shadow-color: rgba(14, 159, 110, .4);
    --focus-color-opacity1: rgba(14, 159, 110, .1);

    --key-color: #10261e;
    --main-color: #3a4d46;
    --muted-color: #7b8a83;
    --muted-2-color: #98a6a0;
    --muted-3-color: #b5c1bb;

    --body-bg-color: #f2f7f5;
    --main-bg-color: #fff;
    --muted-bg-color: #edf5f1;

    --main-border-color: rgba(14, 159, 110, .1);
    --muted-border-color: rgba(14, 159, 110, .05);
    --main-radius: 14px;

    --blur-bg: rgba(255, 255, 255, .84);
    --float-btn-bg: rgba(150, 180, 165, .35);

    --header-bg: rgba(255, 255, 255, .92);
    --header-color: #22332c;
    --footer-bg: #fff;
    --footer-color: var(--muted-2-color);

    --jktx-gradient: linear-gradient(135deg, #0b7a58 0%, #12b981 55%, #34d399 100%);
    --jktx-shadow: 0 10px 30px rgba(14, 159, 110, .16);
}

html body.dark-theme {
    --theme-color: #34d399;
    --focus-color: #34d399;
    --focus-shadow-color: rgba(52, 211, 153, .4);
    --focus-color-opacity1: rgba(52, 211, 153, .12);

    --key-color: #eaf6f1;
    --main-color: #d5e2dc;
    --muted-color: #9aa8a2;
    --muted-2-color: #7d8b85;
    --muted-3-color: #5c6863;

    --body-bg-color: #0e1513;
    --main-bg-color: #16201d;
    --muted-bg-color: #1c2724;

    --main-border-color: rgba(140, 200, 175, .12);
    --muted-border-color: rgba(140, 200, 175, .06);

    --blur-bg: rgba(22, 32, 29, .88);
    --float-btn-bg: rgba(90, 120, 108, .35);

    --header-bg: rgba(22, 32, 29, .92);
    --header-color: #e6f2ec;
    --footer-bg: #16201d;

    --jktx-gradient: linear-gradient(135deg, #0a6b4d 0%, #0f9f72 55%, #22c58d 100%);
    --jktx-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ============ 基础组件配色 ============ */
html body {
    background-color: var(--body-bg-color);
}

html body .header {
    box-shadow: 0 2px 16px rgba(14, 159, 110, .08);
}

html body a:hover,
html body .posts-list .post-title a:hover {
    color: var(--theme-color);
}

html body .but,
html body .btn {
    border-radius: 999px;
}

html body .but.b-theme,
html body .btn-primary,
html body .sociality-btns .but {
    background: var(--jktx-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--jktx-shadow);
}

html body .badg.b-theme,
html body .badge.b-theme {
    background: var(--jktx-gradient);
    color: #fff;
}

html body .title-theme,
html body .title-h-left b {
    border-color: var(--theme-color);
}

html body .posts-list,
html body .zib-widget,
html body .theme-box {
    border-radius: var(--main-radius);
}

html body .footer {
    border-top: 1px solid var(--main-border-color);
}

/* ============ 首页主视觉 Hero（居中式） ============ */
.jktx-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px;
    border-radius: 22px;
    background: var(--jktx-gradient);
    color: #fff;
    box-shadow: var(--jktx-shadow);
}

.jktx-hero:before,
.jktx-hero:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    pointer-events: none;
}

.jktx-hero:before {
    width: 300px;
    height: 300px;
    right: -90px;
    top: -140px;
}

.jktx-hero:after {
    width: 200px;
    height: 200px;
    left: -80px;
    bottom: -120px;
    background: rgba(255, 255, 255, .1);
}

.jktx-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 30px 32px;
    text-align: center;
}

.jktx-hero-badge {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
}

.jktx-hero-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.jktx-hero-desc {
    margin: 0 auto 20px;
    max-width: 640px;
    font-size: 15px;
    color: rgba(255, 255, 255, .92);
}

.jktx-hero-search {
    max-width: 640px;
    margin: 0 auto;
}

.jktx-hero-search .search-input,
.jktx-hero-search .search-form,
.jktx-hero-search .line-form {
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.jktx-hero-search .line-form-input,
.jktx-hero-search .scale-placeholder {
    color: #22332c;
}

.jktx-hero-search .abs-right button {
    color: #0e9f6e;
}

.jktx-hero-keys {
    margin-top: 14px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.jktx-keys-label {
    opacity: .85;
}

.jktx-key {
    padding: 3px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    transition: all .2s ease;
}

.jktx-key:hover {
    color: #0b7a58;
    background: #fff;
    border-color: #fff;
}

/* 底部数据条 */
.jktx-hero-foot {
    position: relative;
    z-index: 2;
    padding: 16px 30px;
    background: rgba(255, 255, 255, .13);
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.jktx-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 880px;
    margin: 0 auto;
}

.jktx-stat {
    padding: 6px 10px;
    text-align: center;
}

.jktx-stat + .jktx-stat {
    border-left: 1px solid rgba(255, 255, 255, .2);
}

.jktx-stat-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.jktx-stat-label {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .88);
}

.jktx-stat-icp .jktx-stat-icp-no {
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
}

/* ============ 首页通用区块 ============ */
.jktx-section {
    margin-bottom: 24px;
}

.jktx-section .title-theme {
    padding-left: 10px;
    border-left: 3px solid var(--theme-color);
    font-size: 17px;
    font-weight: 600;
}

/* ============ 分类导航 ============ */
.jktx-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.jktx-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    border-radius: var(--main-radius);
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    box-shadow: 0 2px 10px rgba(14, 159, 110, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.jktx-cat:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 159, 110, .3);
    box-shadow: var(--jktx-shadow);
}

.jktx-cat-icon {
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    border-radius: 14px;
    color: #fff;
    font-size: 20px;
    background: var(--jktx-gradient);
    box-shadow: 0 6px 14px rgba(14, 159, 110, .25);
}

.jktx-cat-name {
    margin-top: 10px;
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--key-color);
}

.jktx-cat-count {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted-2-color);
}

/* ============ 推荐阅读 + 热门榜单 ============ */
.jktx-featured {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.jktx-featured-main {
    flex: 1 1 auto;
    min-width: 0;
}

.jktx-featured-side {
    flex: 0 0 300px;
    max-width: 300px;
}

.jktx-posts-row {
    margin: 0 !important;
}

.jktx-side-box {
    padding: 14px 16px;
    border-radius: var(--main-radius);
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    box-shadow: 0 2px 10px rgba(14, 159, 110, .05);
}

.jktx-side-title {
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 3px solid var(--theme-color);
    font-size: 15px;
    font-weight: 600;
    color: var(--key-color);
}

.jktx-empty {
    padding: 30px;
    text-align: center;
    color: var(--muted-2-color);
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
}

/* ============ 页脚备案信息 ============ */
.jktx-site-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 40px;
    padding: 16px 10px 20px;
    margin-top: 6px;
    border-top: 1px dashed var(--main-border-color);
    text-align: center;
}

.jktx-site-info-col {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
}

.jktx-site-info-item {
    font-size: 13px;
    color: var(--muted-2-color);
}

.jktx-site-info-item span {
    margin-right: 6px;
}

.jktx-site-info-item em {
    font-style: normal;
    color: var(--muted-color);
}

.jktx-site-info-item a {
    color: var(--muted-color);
}

.jktx-site-info-item a:hover {
    color: var(--theme-color);
}

/* 兜底：隐藏页脚主题推广栏/按钮（PHP 缓冲过滤失效时生效） */
html body .footer a[href*="zibll.com"],
html body a[href*="zibll.com"].but,
html body a[data-original-title*="授权"],
html body footer.footer.text-center,
html body a[href*="770349780"] {
    display: none !important;
}

/* ============ 响应式 ============ */
@media (max-width: 991px) {
    .jktx-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .jktx-stat:nth-child(4) {
        border-left: 0;
    }

    .jktx-featured {
        flex-direction: column;
    }

    .jktx-featured-side {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .jktx-hero {
        border-radius: 16px;
    }

    .jktx-hero-inner {
        padding: 26px 18px 22px;
    }

    .jktx-hero-title {
        font-size: 23px;
    }

    .jktx-hero-desc {
        font-size: 14px;
    }

    .jktx-hero-foot {
        padding: 14px 12px;
    }

    .jktx-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .jktx-stat + .jktx-stat {
        border-left: 0;
    }

    .jktx-cats {
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
        gap: 10px;
    }

    .jktx-cat {
        padding: 14px 8px;
    }

    .jktx-cat-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 17px;
    }

    .jktx-site-info {
        gap: 6px 16px;
        font-size: 12px;
    }
}
