/* Disease category entry and full article listing. */
#disease .detail-page.disease-category-page .detail-bar { background: transparent; }
.panel-head-actions { display: flex; align-items: center; gap: 16px; }
.disease-category-more { color: #2b75ca; font-weight: 600; }
.disease-category-more:hover { color: #155ba9; }
.category-page-inner { padding-bottom: 48px; }

/* ---------- 栏目头部：渐变浅底 + 同色系光斑 + 图形衬底 ----------
   底色只铺到页头一半高，下半截渐隐回页面白底，避免变成一块生硬色条。 */
#disease .category-intro {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin: 4px 0 0;
    padding: 34px 44px 30px;
    overflow: hidden;
    border: 1px solid #e4eef9;
    border-radius: 18px 18px 0 0;
    /* 渐变直接画在浅色底上（不再用负 z-index 的伪元素）：
       伪元素一旦落到背景之下会被底色盖住，光斑就白做了。 */
    background:
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, .13) 0%, rgba(59, 130, 246, 0) 44%),
        radial-gradient(circle at 10% 100%, rgba(20, 184, 166, .11) 0%, rgba(20, 184, 166, 0) 50%),
        linear-gradient(160deg, #ffffff 0%, #f5faff 62%, #fbfdff 100%);
    box-shadow: 0 18px 40px -28px rgba(31, 88, 150, .35);
}
/* 文字层单独压在圆环图形之上 */
#disease .category-intro-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}
/* 圆环与菱形：挂在左下角，避开右上方的返回按钮；也只覆盖白色区域，
   不让两层半透明图形叠在分类条上。 */
#disease .category-intro-mark {
    position: absolute;
    left: -70px;
    bottom: -96px;
    width: 260px;
    height: 260px;
    color: #1f6fc8;
    pointer-events: none;
    z-index: 0;
}
#disease .category-intro-mark span {
    position: absolute;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .06;
}
#disease .category-intro-mark span:nth-child(1) { inset: 0; }
#disease .category-intro-mark span:nth-child(2) { inset: 34px; opacity: .045; }
#disease .category-intro-mark span:nth-child(3) { inset: 68px; opacity: .035; }
#disease .category-intro-mark i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 10px;
    background: currentColor;
    opacity: .07;
    transform: rotate(45deg);
}

/* 眉标：名称 + 分隔点 + 栏目名，前置一条短线 */
#disease .category-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 6px 14px 6px 11px;
    border: 1px solid #d8e9fb;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #2c74bd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    box-shadow: 0 3px 10px rgba(43, 110, 180, .06);
}
#disease .category-eyebrow::before {
    content: '';
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b82f6, #14b8a6);
}
#disease .category-eyebrow i {
    color: #b6c8d9;
    font-style: normal;
    font-weight: 400;
}

/* 标题与次要信息同基线：display 用 block，small 靠行内基线自然对齐，
   不要改成 flex —— 中文大字号下行框留白大，flex 会把它推得忽上忽下。 */
#disease .category-intro h1 {
    margin: 0;
    color: #0e2740;
    font-size: 52px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1.5px;
}
#disease .category-intro h1 small {
    display: inline-block;
    margin-left: 18px;
    padding: 4px 13px;
    border-radius: 999px;
    background: linear-gradient(103deg, #2c83ef, #39a1f6);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .5px;
    box-shadow: 0 5px 14px rgba(46, 133, 228, .28);
    vertical-align: 14px;
}
#disease .category-intro p {
    max-width: 620px;
    margin: 16px 0 0;
    color: #647a90;
    font-size: 15px;
    line-height: 1.75;
}

/* 返回入口：白底描边胶囊，悬停时浮起左移箭头 */
#disease .category-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 10px;
    padding: 10px 18px 10px 13px;
    border: 1px solid #d6e6f6;
    border-radius: 999px;
    background: #fff;
    color: #3f6284;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 6px 16px -10px rgba(31, 88, 150, .45);
    transition: border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
#disease .category-back svg {
    width: 15px;
    height: 15px;
    transition: transform .2s;
}
#disease .category-back:hover {
    border-color: #a8ccef;
    color: #1470c6;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -12px rgba(31, 88, 150, .55);
}
#disease .category-back:hover svg { transform: translateX(-3px); }

/* ---------- 分类索引：嵌在页头内部的分隔带，当前项为白色浮起标签 ---------- */
#disease .category-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 26px;
    padding: 11px 16px;
    overflow-x: auto;
    border: 1px solid #e4eef9;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 16px 30px -28px rgba(31, 88, 150, .45);
    scrollbar-width: none;
}
#disease .category-tabs::-webkit-scrollbar { display: none; }
#disease .category-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #f5f9fd;
    color: #5a7187;
    font-size: 16px;
    transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
#disease .category-tabs a:hover {
    border-color: #daebfb;
    background: #eff6fe;
    color: #1470c6;
}
/* 加粗会改变字宽，只给当前项加粗会让整排标签左右抖动；
   用「白底胶囊 + 加粗」双重指示，悬停时不改字重。 */
#disease .category-tabs a.is-active {
    border-color: #cfe4fa;
    background: #fff;
    color: #0d4c8a;
    font-weight: 700;
    box-shadow: 0 6px 16px -10px rgba(31, 88, 150, .6), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
#disease .category-tabs span {
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e9f1fa;
    color: #7d93a8;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    transition: background .18s, color .18s;
}
#disease .category-tabs a.is-active span {
    background: linear-gradient(103deg, #2c83ef, #39a1f6);
    color: #fff;
    font-weight: 500;
}

/* ---------- 列表区 ---------- */
.category-results { padding: 26px 28px 30px; }
.category-results .article-topic-grid { margin-top: 20px; }
.category-results .pager { margin-top: 30px; }

@media (max-width: 900px) {
    #disease .category-intro { padding: 32px 30px 30px; }
    #disease .category-intro h1 { font-size: 44px; }
}

@media (max-width: 700px) {
    .panel-head-actions { gap: 10px; }
    .category-page-inner { padding-bottom: 28px; }
    #disease .category-intro {
        display: block;
        margin-top: 0;
        padding: 22px 18px 20px;
        border-radius: 14px 14px 0 0;
    }
    /* 手机上空间不够放圆环，缩小并继续留在左下角当作纹理 */
    #disease .category-intro-mark {
        left: -80px;
        bottom: -70px;
        width: 200px;
        height: 200px;
        opacity: .7;
    }
    #disease .category-eyebrow { margin-bottom: 12px; padding: 5px 12px 5px 9px; font-size: 12px; }
    #disease .category-intro h1 { font-size: 33px; letter-spacing: .5px; }
    #disease .category-intro h1 small {
        margin-left: 10px;
        padding: 3px 10px;
        font-size: 11px;
        vertical-align: 6px;
    }
    #disease .category-intro p { margin-top: 12px; font-size: 14px; }
    #disease .category-back {
        align-self: auto;
        margin-top: 16px;
        padding: 8px 15px 8px 11px;
        font-size: 12px;
    }
    #disease .category-tabs {
        gap: 4px;
        padding: 9px 12px;
        border-radius: 0 0 14px 14px;
    }
    #disease .category-tabs a { padding: 8px 14px; font-size: 15px; }
    .category-results { padding: 18px 16px 24px; }
}
