/* ==========================================================================
   首页视觉更新（2026-10-23；2026-10-30 调整）
   本文件现只覆盖：主体字体与配色、分类区块卡片、页脚。
   页头、主导航、搜索区的覆盖已移除，回退为 style.css / responsive.css 的旧版样式，
   与子页面保持一致（导航栏与搜索框统一使用旧版）。
   ========================================================================== */

:root {
    --qy-primary: #0f8fd6;
    --qy-primary-deep: #0a6ea6;
    --qy-ink: #22374a;
    --qy-muted: #6b7f90;
    --qy-line: #e3edf5;
    --qy-page: #eef4f9;
    --qy-radius: 14px;
}

.content,
.footer {
    color: var(--qy-ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

/* ---------------- 桌面端 ---------------- */
@media screen and (min-width: 1024px) {

    /* ---------- 分类区块 ---------- */
    .content {
        width: 1003px;
        margin: 26px auto 0;
    }

    .FirstClass {
        width: auto;
        margin: 0;
        padding: 20px 26px 12px;
        border: 1px solid var(--qy-line);
        border-bottom: 0;
        border-radius: var(--qy-radius) var(--qy-radius) 0 0;
        background: #fff;
        text-align: left;
        line-height: 1.5;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        clear: both;
    }

    .FirstClass p {
        float: none;
        position: relative;
        margin: 0;
        padding-left: 14px;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: .5px;
        color: #14364d;
    }

    .FirstClass p::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 4px;
        height: 18px;
        margin-top: -9px;
        border-radius: 2px;
        background: linear-gradient(180deg, #2bb3ef, #0b7fc4);
    }

    .FirstClass > a {
        padding: 5px 12px;
        border-radius: 999px;
        color: #8aa0b3;
        font-size: 13px;
        text-decoration: none;
    }

    .FirstClass > a:hover {
        color: var(--qy-primary);
        background: #eef7fd;
    }

    .classList {
        width: auto;
        margin: 0 0 22px;
        padding: 10px 26px 24px;
        border: 1px solid var(--qy-line);
        border-top: 0;
        border-radius: 0 0 var(--qy-radius) var(--qy-radius);
        background: #fff;
        box-shadow: 0 10px 26px rgba(16, 74, 110, .06);
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px 18px;
        line-height: 1.55;
        font-size: 13.5px;
        list-style: none;
        position: relative;
        z-index: 0;
        clear: both;
    }

    .classList > li {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
        background: none;
        overflow: visible;
    }

    .classList > li > a {
        display: block;
        padding: 7px 2px;
        color: #33475b;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .classList > li > a::before {
        content: "\203A";
        margin-right: 7px;
        color: #a3bed2;
        font-weight: 700;
    }

    .classList > li > a:hover {
        color: var(--qy-primary);
        transform: translateX(2px);
    }

    .classList + .FirstClass {
        margin-top: 26px;
    }

    /* 分类下的二级悬浮层 */
    .secondClass {
        left: 26px;
        right: 26px;
        width: auto;
        padding: 16px 18px 10px;
        background: #fff;
        border: 1px solid var(--qy-line);
        border-top: 3px solid var(--qy-primary);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 22px 46px rgba(10, 60, 90, .18);
    }

    .secondClass::after {
        content: "";
        display: table;
        clear: both;
    }

    .secondClass li {
        width: 168px;
        margin: 0 0 2px 6px;
        background: none;
    }

    .secondClass li a {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 6px;
        color: #42596b;
        text-decoration: none;
    }

    .secondClass li a:hover {
        background: #eef7fd;
        color: var(--qy-primary);
    }

    /* ---------- 页脚 ---------- */
    .footer {
        width: 1003px;
        height: auto;
        margin: 6px auto 44px;
        padding: 24px 26px;
        box-sizing: border-box;
        border: 1px solid var(--qy-line);
        border-top: 1px solid var(--qy-line);
        border-radius: var(--qy-radius);
        background: #fff;
        color: #7b8c9c;
        font-size: 12.5px;
        line-height: 1.9;
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 14px 40px;
        clear: both;
    }

    .footer_partners {
        grid-column: 2;
        grid-row: 1;
        font-size: 12.5px;
    }

    .footer_partners table {
        border-collapse: collapse;
    }

    .footer_partners td {
        padding: 0 18px 0 0;
        border: 0;
        background: none;
        color: #7b8c9c;
        font-size: 12.5px;
        line-height: 1.9;
    }

    .footer_partners td:first-child {
        padding-right: 6px;
        color: #9aabb9;
    }

    .footer #footLink {
        margin: 0;
        color: #9aabb9;
    }

    .footer_link {
        grid-column: 2;
        grid-row: 2;
        float: none;
        width: auto;
        padding: 0;
        text-align: left;
        line-height: 2;
        font-size: 12.5px;
        color: #8b9dac;
    }

    .footer_link a {
        color: #4a6072;
        text-decoration: none;
    }

    .footer_link a:hover {
        color: var(--qy-primary);
    }

    .footer_info {
        grid-column: 1;
        grid-row: 1 / span 2;
        position: static;
        width: auto;
        padding: 0 28px 0 0;
        border-right: 1px solid var(--qy-line);
        display: flex;
        align-items: flex-start;
        gap: 14px;
        line-height: 1.95;
        font-size: 12.5px;
        color: #6f8293;
    }

    .footer_info img {
        float: none !important;
        width: 56px !important;
        height: 56px !important;
        margin: 2px 0 0 !important;
        border-radius: 50%;
        box-shadow: 0 8px 18px rgba(12, 80, 120, .18);
    }

    .footer_info ul {
        margin: 0 !important;
        padding: 0;
        list-style: none;
    }

    .footer_info li {
        white-space: nowrap;
    }
}
