/* =====================================================================
 * 万有资源网 · 首页样式表（v2 现代资源平台风格）
 * 作用域：body.indexx（仅首页加载本文件，不影响内页）
 * 说明：所有规则带 body.indexx 前缀，以稳定覆盖 common.css / footer.css
 * ===================================================================== */

/* ---------- 1. 设计变量 ---------- */
body.indexx {
    --hp-bg: #F6F9FD;
    --hp-card: #FFFFFF;
    --hp-line: #E9EEF5;
    --hp-line2: #F0F2F5;
    --hp-ink: #111827;
    --hp-ink2: #172033;
    --hp-sub: #667085;
    --hp-weak: #98A2B3;
    --hp-brand: #2684FF;
    --hp-brand-d: #1B6FE0;
    --hp-soft: #EEF6FF;
    --hp-warn: #F59E0B;
    --hp-r-lg: 14px;
    --hp-r-md: 10px;
    --hp-r-sm: 8px;
    --hp-shadow: 0 6px 24px rgba(31, 75, 153, .05);

    background: var(--hp-bg) !important;
    color: var(--hp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.indexx a {
    color: inherit;
    text-decoration: none;
}

/* ---------- 2. 顶部 Header / 导航 ----------
 * 已抽离到全站统一样式表 lib/css/nav.css（首页与内页共用同一份导航样式）。
 * 此处不再重复定义，避免两套规则打架造成「首页 68px / 内页 112px」高度不一致。
 */

/* ---------- 3. 页面骨架 ---------- */
body.indexx .hp-wrap {
    max-width: 1200px;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 16px 0 8px;
}

body.indexx .hp-void {
    display: none;
}

/* 仅供搜索引擎与读屏器读取的主标题 */
body.indexx .hp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Grid 子项默认 min-width:auto，会被内部长标题/带 width 属性的图片撑到 min-content，
   令 1fr 轨道反向变宽（实测手机端 .hp-grid2 轨道被撑到 563px vs 容器 358px），
   造成整页横向溢出。统一放开最小宽度，让网格真正按容器收缩。 */
body.indexx .hp-grid2>*,
body.indexx .hp-feat-sub>*,
body.indexx .hp-grid6>*,
body.indexx .hp-foot-nav>* {
    min-width: 0;
}

body.indexx .hp-empty {
    color: var(--hp-weak);
    font-size: 13px;
    padding: 20px 0;
}

body.indexx .hp-slide-slot {
    max-width: 1200px;
    width: calc(100% - 48px);
    margin: 0 auto 16px;
    border-radius: var(--hp-r-md);
    overflow: hidden;
}

/* 广告位：弱化视觉，保留原有投放 */
body.indexx .hp-adzone {
    margin-bottom: 16px;
    border-radius: var(--hp-r-lg);
    overflow: hidden;
}

body.indexx .hp-adzone img {
    max-width: 100%;
    height: auto;
}

body.indexx .index-top-ad,
body.indexx .index-kuake-ad {
    margin: 0 0 12px;
}

/* ---------- 4. 顶部横幅广告位 ---------- */
/* 原 Hero 品牌区已下线，改为由后台广告插件投放图片横幅，此处只负责容器与「广告」角标 */

body.indexx .hp-adzone-top {
    position: relative;
    margin-bottom: 16px;
    border-radius: var(--hp-r-lg);
    overflow: hidden;
}

body.indexx .hp-adzone-top img {
    display: block;
    width: 100%;
    height: auto;
}

body.indexx .hp-ad-tag {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(23, 34, 51, .42);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    letter-spacing: .5px;
    pointer-events: none;
}

/* 板块标题前的小图标标识 */
body.indexx .hp-hd-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 7px;
    border-radius: 7px;
    vertical-align: -4px;
    background: var(--hp-soft);
    color: var(--hp-brand);
}

body.indexx .hp-hd-ico svg {
    display: block;
    width: 13px;
    height: 13px;
}

body.indexx .hp-hd-ico-feat {
    background: #FFF3DF;
    color: #EFA31B;
}

body.indexx .hp-hd-ico-soft {
    background: #E9F2FF;
    color: #2684FF;
}

body.indexx .hp-hd-ico-src {
    background: #EDEBFE;
    color: #6C5CE7;
}

body.indexx .hp-hd-ico-tut {
    background: #E4F7F0;
    color: #12A87A;
}

/* ---------- 5. 通用卡片与标题 ---------- */
body.indexx .hp-card {
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-r-lg);
    box-shadow: var(--hp-shadow);
}

body.indexx .hp-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 12px;
}

body.indexx .hp-hd-txt h2 {
    margin: 0 0 4px;
    color: var(--hp-hd-ink, var(--hp-ink));
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.2px;
}

body.indexx .hp-hd-txt p {
    margin: 0;
    color: var(--hp-weak);
    font-size: 12.5px;
}

body.indexx .hp-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    color: var(--hp-sub);
    font-size: 13px;
    white-space: nowrap;
    transition: color .18s ease;
}

body.indexx .hp-more i {
    font-style: normal;
    font-size: 15px;
    line-height: 1;
}

body.indexx .hp-more:hover {
    color: var(--hp-brand);
}

body.indexx .hp-tag {
    display: inline-flex;
    align-items: center;
    height: 21px;
    padding: 0 8px;
    border-radius: 5px;
    background: var(--hp-soft);
    color: var(--hp-brand);
    font-size: 11.5px;
    white-space: nowrap;
}

body.indexx .hp-tag-soft {
    background: #F4F7FB;
    color: var(--hp-sub);
}

/* ---------- 6. 今日精选 + 最近更新 ---------- */
body.indexx .hp-grid2 {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 16px;
    margin-bottom: 16px;
}

body.indexx .hp-feat-main {
    display: block;
    margin: 0 20px 12px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-r-md);
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease;
}

body.indexx .hp-feat-main:hover {
    border-color: #BFD9F8;
    transform: translateY(-1px);
}

body.indexx .hp-feat-cover {
    position: relative;
    height: 178px;
    background: #F1F6FD;
    overflow: hidden;
}

body.indexx .hp-feat-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.indexx .hp-feat-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #B9CDE6;
    font-size: 15px;
}

body.indexx .hp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 5px;
    background: rgba(38, 132, 255, .93);
    color: #fff;
    font-size: 11.5px;
    font-style: normal;
}

body.indexx .hp-feat-info {
    padding: 12px 14px 13px;
}

body.indexx .hp-feat-info h3 {
    margin: 0 0 6px;
    color: var(--hp-ink);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.indexx .hp-feat-desc {
    margin: 0 0 10px;
    color: var(--hp-sub);
    font-size: 12.5px;
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.indexx .hp-metas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

body.indexx .hp-btn-mini {
    margin-left: auto;
    padding: 4px 11px;
    border-radius: var(--hp-r-sm);
    background: var(--hp-soft);
    color: var(--hp-brand);
    font-size: 12px;
}

body.indexx .hp-feat-main:hover .hp-btn-mini {
    background: var(--hp-brand);
    color: #fff;
}

body.indexx .hp-feat-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 20px 18px;
}

body.indexx .hp-feat-small {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-r-md);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

body.indexx .hp-feat-small:hover {
    border-color: #BFD9F8;
    background: #FBFDFF;
    transform: translateY(-1px);
}

body.indexx .hp-feat-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #F1F6FD;
    overflow: hidden;
}

body.indexx .hp-feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.indexx .hp-feat-small-in {
    min-width: 0;
}

body.indexx .hp-feat-small-in b {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hp-ink2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.indexx .hp-feat-small-in i {
    display: block;
    margin-top: 3px;
    color: var(--hp-weak);
    font-size: 11.5px;
    font-style: normal;
}

/* 最近更新 */
body.indexx .hp-recent-list {
    margin: 0;
    padding: 0 8px 12px;
    list-style: none;
}

body.indexx .hp-recent-list li+li {
    border-top: 1px solid var(--hp-line2);
}

body.indexx .hp-recent-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 52px;
    padding: 0 10px;
    border-radius: var(--hp-r-sm);
    transition: background .18s ease;
}

body.indexx .hp-recent-list a:hover {
    background: #F7FAFE;
}

body.indexx .hp-recent-ico {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hp-line);
    border-radius: 9px;
    background: #FBFDFF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.indexx .hp-recent-ico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.indexx .hp-recent-ico em {
    color: #A9C2DE;
    font-size: 14px;
    font-style: normal;
}

body.indexx .hp-recent-main {
    flex: 1 1 auto;
    min-width: 0;
}

body.indexx .hp-recent-main b {
    display: block;
    overflow: hidden;
    color: var(--hp-ink2);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.indexx .hp-recent-main i {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--hp-weak);
    font-size: 11.5px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.indexx .hp-recent-date {
    flex: 0 0 auto;
    color: var(--hp-weak);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* 今日发布的文章日期标红（最近更新列表 / 今日精选小卡通用） */
body.indexx .hp-date-today {
    color: #FF4D4F;
    font-weight: 600;
}

/* 最近更新 · 轻量翻页（‹ x/y ›） */
body.indexx .hp-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px 16px;
}

body.indexx .hp-pg-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--hp-line);
    border-radius: 8px;
    background: var(--hp-card);
    color: var(--hp-sub);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

body.indexx .hp-pg-btn:hover:not(:disabled) {
    color: var(--hp-brand);
    border-color: var(--hp-brand);
}

body.indexx .hp-pg-btn:disabled {
    opacity: .35;
    cursor: default;
}

/* ---------- 7. 模块通用（实用软件 / 源码精选 / 技术教程） ---------- */
body.indexx .hp-sec {
    margin-bottom: 16px;
    padding-bottom: 18px;
}

body.indexx .hp-grid6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 0 20px;
    align-items: stretch;
}

/* 卡片外框：等高、圆角、浅边框，悬停轻微上浮 */
body.indexx .hp-scard,
body.indexx .hp-srcard {
    display: flex;
    flex-direction: column;
    padding: 14px 12px 12px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-r-md);
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.indexx .hp-scard:hover,
body.indexx .hp-srcard:hover {
    border-color: #BFD9F8;
    box-shadow: 0 6px 18px rgba(31, 75, 153, .07);
    transform: translateY(-2px);
}

/* ---------- 7.1 实用软件：图标居中 + 标题 + 描述 + 平台标签 ---------- */
body.indexx .hp-scard {
    align-items: center;
    text-align: center;
}

body.indexx .hp-scard-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 11px;
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: #FBFDFF;
    overflow: hidden;
}

body.indexx .hp-scard-ico img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.indexx .hp-scard-ico em {
    color: #A9C2DE;
    font-size: 20px;
    font-style: normal;
}

body.indexx .hp-scard h3 {
    margin: 0 0 6px;
    color: var(--hp-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.indexx .hp-scard-desc {
    margin: 0 0 10px;
    color: var(--hp-sub);
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.indexx .hp-scard-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    margin-bottom: 10px;
}

/* ---------- 7.2 源码精选：图标 + 标题/版本同行 + 描述 + 按钮 ---------- */
body.indexx .hp-srcard-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

body.indexx .hp-srcard-ico {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--hp-line);
    border-radius: 13px;
    background: #FBFDFF;
    overflow: hidden;
}

body.indexx .hp-srcard-ico img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.indexx .hp-srcard-ico em {
    color: #A9C2DE;
    font-size: 19px;
    font-style: normal;
}

body.indexx .hp-srcard-hd {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

body.indexx .hp-srcard-name {
    color: var(--hp-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.indexx .hp-srcard-sub {
    color: var(--hp-weak);
    font-size: 11.5px;
    font-style: normal;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.indexx .hp-srcard-desc {
    margin: 0 0 10px;
    color: var(--hp-sub);
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 7.3 技术教程：缩略图 + 标题 + 副题 + 带图标的浏览/日期 ---------- */
body.indexx .hp-tcard {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 11px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-r-md);
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.indexx .hp-tcard:hover {
    border-color: #BFD9F8;
    box-shadow: 0 6px 18px rgba(31, 75, 153, .07);
    transform: translateY(-2px);
}

body.indexx .hp-tcard-thumb {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 13px;
    background: #F1F6FD;
    overflow: hidden;
}

body.indexx .hp-tcard-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.indexx .hp-tcard-thumb em {
    color: #A9C2DE;
    font-size: 19px;
    font-style: normal;
}

body.indexx .hp-tcard-in {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

body.indexx .hp-tcard-in b {
    color: var(--hp-ink2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.42;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.indexx .hp-tcard-in i {
    display: block;
    font-style: normal;
}

body.indexx .hp-tcard-in .hp-tcard-desc {
    color: var(--hp-sub);
    font-size: 11.5px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.indexx .hp-tcard-in .hp-tcard-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    color: var(--hp-weak);
    font-size: 11px;
    white-space: nowrap;
}

/* 友情链接 */
body.indexx .hp-links {
    padding-bottom: 16px;
}

body.indexx .hp-links .f-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0 20px;
    list-style: none;
}

body.indexx .hp-links .f-list li {
    float: none;
    width: auto;
    margin: 0;
    overflow: visible;
}

body.indexx .hp-links .f-list li a {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-r-sm);
    color: var(--hp-sub);
    font-size: 12.5px;
    transition: border-color .18s ease, color .18s ease;
}

body.indexx .hp-links .f-list li a:hover {
    border-color: #BFD9F8;
    color: var(--hp-brand);
}

/* ---------- 8. 站点信息区 ---------- */
body.indexx .hp-foot {
    margin-top: 8px;
    background: #fff;
    border-top: 1px solid var(--hp-line);
}

body.indexx .hp-foot-inner {
    max-width: 1200px;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 26px 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: space-between;
}

body.indexx .hp-foot-brand {
    flex: 1 1 280px;
    max-width: 340px;
}

body.indexx .hp-foot-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    vertical-align: middle;
}

body.indexx .hp-foot-brand b {
    margin-left: 9px;
    color: var(--hp-ink);
    font-size: 15px;
    font-weight: 600;
    vertical-align: middle;
}

body.indexx .hp-foot-brand p {
    margin: 10px 0 0;
    color: var(--hp-sub);
    font-size: 12.5px;
    line-height: 1.7;
}

body.indexx .hp-foot-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(88px, auto));
    gap: 24px;
}

body.indexx .hp-foot-col h4 {
    margin: 0 0 10px;
    color: var(--hp-ink);
    font-size: 13px;
    font-weight: 600;
}

body.indexx .hp-foot-col a {
    display: block;
    margin-bottom: 7px;
    color: var(--hp-sub);
    font-size: 12.5px;
    transition: color .18s ease;
}

body.indexx .hp-foot-col a:hover {
    color: var(--hp-brand);
}

/* 模板自带版权条 */
body.indexx #footer {
    margin-top: 0;
}

body.indexx #footer .footer-copyright,
body.indexx #footer .footer {
    background: #fff;
    border-top: 1px solid var(--hp-line);
    padding: 14px 0;
}

body.indexx #footer .copy-text {
    color: var(--hp-weak);
    font-size: 12px;
    line-height: 1.9;
}

body.indexx #footer .copy-text a {
    color: var(--hp-sub);
}

body.indexx #footer .copy-text a:hover {
    color: var(--hp-brand);
}

body.indexx #footer .wiiuii_layout {
    display: none;
}

/* ---------- 9. 响应式：平板 ---------- */
@media (max-width: 1199px) {
    body.indexx .hp-grid6 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 教程卡为横向布局，三列时文字更舒展 */
    body.indexx .hp-grid6-tut {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    body.indexx .hp-grid2 {
        grid-template-columns: 1fr;
    }

    body.indexx .hp-foot-nav {
        grid-template-columns: repeat(2, minmax(88px, auto));
        gap: 18px 24px;
    }
}

/* ---------- 10. 响应式：手机 ---------- */
@media (max-width: 767px) {

    body.indexx .hp-wrap,
    body.indexx .hp-foot-inner,
    body.indexx .hp-slide-slot {
        width: calc(100% - 24px);
    }

    body.indexx .hp-wrap {
        padding-top: 12px;
    }

    /* 头部：Logo + 搜索 + 菜单 —— 已抽离到 lib/css/nav.css（全站统一） */

    /* 卡片内边距收紧 */
    body.indexx .hp-hd {
        padding: 15px 14px 10px;
    }

    body.indexx .hp-hd-txt h2 {
        font-size: 17px;
    }

    body.indexx .hp-feat-main,
    body.indexx .hp-feat-sub {
        margin-left: 14px;
        margin-right: 14px;
    }

    body.indexx .hp-feat-sub {
        padding-left: 0;
        padding-right: 0;
    }

    body.indexx .hp-feat-cover {
        height: 156px;
    }

    body.indexx .hp-grid6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 14px;
    }

    body.indexx .hp-more {
        min-height: 40px;
    }

    body.indexx .hp-scard,
    body.indexx .hp-srcard,
    body.indexx .hp-tcard {
        padding: 12px;
    }

    body.indexx .hp-recent-list a {
        height: 54px;
        padding: 0 6px;
    }

    body.indexx .hp-foot-inner {
        padding: 20px 0 18px;
        gap: 20px;
    }

    body.indexx .hp-foot-nav {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }
}

@media (max-width: 480px) {
    body.indexx .hp-feat-sub {
        grid-template-columns: 1fr;
    }

    body.indexx .hp-grid6-tut {
        grid-template-columns: 1fr;
    }

    body.indexx .hp-recent-main b {
        font-size: 13px;
    }
}

/* ---------- 11. 暗夜模式兼容 ---------- */
body.indexx.night {
    --hp-bg: #131A24;
    --hp-card: #1A2330;
    --hp-line: #26313F;
    --hp-line2: #222C39;
    --hp-ink: #E8EEF6;
    --hp-ink2: #D6E0EC;
    --hp-sub: #9BAABA;
    --hp-weak: #7A8899;
    --hp-soft: #1E2C3D;
    background: var(--hp-bg) !important;
}

body.indexx.night .hp-adzone-top {
    background: #182230;
}

body.indexx.night .hp-hd-ico {
    background: #232F3E;
    color: #7FB4FF;
}

body.indexx.night .hp-scard,
body.indexx.night .hp-srcard,
body.indexx.night .hp-tcard,
body.indexx.night .hp-feat-main,
body.indexx.night .hp-feat-small {
    background: var(--hp-card);
    border-color: var(--hp-line);
}

body.indexx.night .hp-tag-soft {
    background: #232F3E;
    color: #A8B6C6;
}

body.indexx.night .hp-recent-list a:hover,
body.indexx.night .hp-scard:hover,
body.indexx.night .hp-srcard:hover {
    background: #1F2A38;
}

body.indexx.night .hp-foot,
body.indexx.night #footer .footer-copyright {
    background: #182028;
    border-color: var(--hp-line);
}

/* ---------- 14. 实用软件楼层 · 子分类胶囊条（方案 A · 2026-09-19） ---------- */
body.indexx .hp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 20px 16px;
}

body.indexx .hp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border: 1px solid var(--hp-line);
    border-radius: 99px;
    background: var(--hp-card);
    color: var(--hp-sub);
    font-size: 12.5px;
    line-height: 1.5;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

body.indexx .hp-chip small {
    font-size: 11px;
    color: var(--hp-weak, #94A3B8);
    transition: color .15s ease;
}

body.indexx .hp-chip:hover,
body.indexx .hp-chip.is-active {
    border-color: var(--hp-brand, #2684FF);
    color: var(--hp-brand, #2684FF);
    background: var(--hp-soft, #F0F6FF);
}

body.indexx .hp-chip:hover small,
body.indexx .hp-chip.is-active small {
    color: var(--hp-brand, #2684FF);
}

@media (max-width: 767px) {
    body.indexx .hp-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    body.indexx .hp-chips::-webkit-scrollbar {
        display: none;
    }

    body.indexx .hp-chip {
        flex: none;
        padding: 4px 11px;
        font-size: 12px;
    }
}

/* 暗色模式 */
body.indexx.night .hp-chip {
    background: #1F2A38;
    border-color: #2A3646;
    color: #C7D2DD;
}

body.indexx.night .hp-chip small {
    color: #7B8A9C;
}

body.indexx.night .hp-chip:hover,
body.indexx.night .hp-chip.is-active {
    border-color: #3D82D6;
    color: #6FA9F0;
    background: #1A2A3D;
}

body.indexx.night .hp-chip:hover small,
body.indexx.night .hp-chip.is-active small {
    color: #6FA9F0;
}

/* ---------- 15. 实用软件楼层 · Tab 切换面板（方案 C 交互 · 2026-09-19） ---------- */
body.indexx .hp-tpanel {
    display: none;
}

body.indexx .hp-tpanel.is-active {
    display: block;
    animation: hp-tab-in .28s ease;
}

@keyframes hp-tab-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

body.indexx .hp-chips .hp-chip {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    body.indexx .hp-tpanel.is-active {
        animation: none;
    }
}

/* ---------- 16. 源码精选 & 技术教程 · 参考图改版（2026-09-20） ---------- */
body.indexx .hp-vcard {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    background: var(--hp-card);
    padding: 10px 10px 12px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.indexx .hp-vcard:hover {
    border-color: var(--hp-brand);
    box-shadow: 0 8px 22px rgba(31, 42, 56, .09);
    transform: translateY(-2px);
}

body.indexx .hp-vcard-ph {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #EEF2F7;
    margin-bottom: 9px;
}

body.indexx .hp-vcard-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.indexx .hp-vcard-ph em {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    color: #B7C3D2;
}

body.indexx .hp-vcard-t {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--hp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

body.indexx .hp-vcard-d {
    font-size: 12px;
    line-height: 1.65;
    color: var(--hp-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

body.indexx .hp-vcard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

body.indexx .hp-rtag {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    font-style: normal;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

body.indexx .hp-rc-c1 { background: #E8F1FF; color: #2E7CF6; }

/* 暗色模式 */
body.indexx.night .hp-vcard {
    background: #1F2A38;
    border-color: #2A3646;
}

body.indexx.night .hp-vcard-ph {
    background: #223042;
}

body.indexx.night .hp-vcard:hover {
    border-color: #3D82D6;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

body.indexx.night .hp-rc-c1 { background: #1B2C45; color: #6FA9F0; }

