/* ==========================================================================
   首页视觉更新（2026-10-23）
   只覆盖配色、字号、间距与卡片外观，不改动 DOM 结构、内容与交互逻辑。
   加载顺序在 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;
}

html {
    background: var(--qy-page);
}

body {
    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;
}

/* 手机端沿用原有背景与布局，只统一字体与文字色 */
@media screen and (max-width: 1023px) {
    html {
        background: #fff;
    }
}

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

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

    html {
        background: var(--qy-page);
    }

    body {
        background: var(--qy-page);
    }

    /* ---------- 页头 ---------- */
    .top {
        width: 1003px;
        margin: 0 auto;
        height: 88px;
        padding: 0 28px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        border-radius: var(--qy-radius) var(--qy-radius) 0 0;
        overflow: visible;
    }

    .logo {
        float: none;
        width: auto;
        height: auto;
        margin: 0;
    }

    .logo img {
        display: block;
        width: auto;
        height: 32px;
    }

    .toplink {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        list-style: none;
    }

    .toplink li {
        float: none;
        margin: 0;
        font-size: 13px;
    }

    .toplink li a {
        display: inline-block;
        padding: 7px 14px;
        border-radius: 999px;
        color: var(--qy-muted);
        font-size: 13px;
        text-decoration: none;
        white-space: nowrap;
    }

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

    /* ---------- 主导航 ---------- */
    .menu {
        width: 1003px;
        margin: 0 auto;
        height: 48px;
        background: linear-gradient(90deg, #0d86cb 0%, #1ba6e4 55%, #2fb6ee 100%);
        box-shadow: 0 6px 18px rgba(10, 120, 175, .26);
    }

    .menu > ul {
        width: auto;
        height: 48px;
        margin: 0;
        padding: 0 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2px;
    }

    .menu > ul > li {
        flex: 0 0 auto;
        float: none;
        height: 48px;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .menu > ul > li > a {
        display: flex;
        align-items: center;
        height: 34px;
        padding: 0 17px;
        border-radius: 8px;
        color: #fff;
        font-size: 15.5px;
        font-weight: 500;
        letter-spacing: .5px;
        text-decoration: none;
        white-space: nowrap;
        text-shadow: 0 1px 1px rgba(8, 70, 105, .25);
    }

    .menu > ul > li > a:hover {
        background: rgba(255, 255, 255, .18);
    }

    /* common.js 悬停时会给 li 写内联背景图、给 a 写黑字，这里以 !important 覆盖为胶囊高亮 */
    .menu > ul > li:hover {
        background: none !important;
    }

    .menu > ul > li:hover > a {
        background: rgba(255, 255, 255, .18);
        color: #fff !important;
        font-weight: 500 !important;
    }

    .menu > ul > li:first-child:hover > a {
        background: rgba(255, 255, 255, .28);
    }

    .menu > ul > li:first-child > a {
        background: rgba(255, 255, 255, .22);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    }

    .menu ul li ul {
        top: 48px;
        left: 0;
        width: auto;
        min-width: 172px;
        height: auto;
        padding: 8px;
        background: #fff;
        border: 1px solid var(--qy-line);
        border-top: 3px solid var(--qy-primary);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 18px 40px rgba(10, 60, 90, .18);
        line-height: 1.6;
    }

    .menu ul li ul li {
        float: none;
        display: block;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        font-size: 13.5px;
        line-height: 1.6;
    }

    .menu ul li ul li a {
        display: block;
        padding: 7px 13px;
        border-radius: 8px;
        color: #3d5568;
        font-size: 13.5px;
        white-space: nowrap;
    }

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

    /* ---------- 标题区与搜索 ---------- */
    .search {
        width: 1003px;
        margin: 0 auto;
        padding: 34px 0 30px;
        box-sizing: border-box;
        background: url(bg1.png) center -140px / 1003px auto no-repeat;
        background-color: #d7ecfa;
        border-radius: 0 0 var(--qy-radius) var(--qy-radius);
        box-shadow: 0 18px 40px rgba(12, 72, 110, .16);
        overflow: hidden;
    }

    .search h1 {
        margin: 0 0 24px;
        line-height: 1.2;
        font-size: 34px;
        font-weight: 700;
        font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
        letter-spacing: 4px;
        color: #0b5b86;
        text-shadow: 0 2px 10px rgba(255, 255, 255, .85);
    }

    .search h1 img {
        width: 62px;
        height: 62px;
        margin: 0 16px 0 0;
        vertical-align: middle;
    }

    .search form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 10px;
        width: 566px;
        margin: 0 auto;
        padding: 10px;
        box-sizing: border-box;
        background: rgba(255, 255, 255, .94);
        border-radius: 16px;
        box-shadow: 0 14px 34px rgba(10, 70, 105, .18);
    }

    #SearchWord {
        grid-column: 1;
        width: auto;
        height: 46px;
        padding: 0 16px;
        box-sizing: border-box;
        border: 0;
        border-radius: 10px;
        background: #f3f9fd;
        color: var(--qy-ink);
        font-size: 14.5px;
        line-height: 46px;
    }

    #SearchWord:focus {
        outline: none;
        background: #fff;
        box-shadow: inset 0 0 0 2px rgba(15, 143, 214, .35);
    }

    #SearchButton {
        grid-column: 2;
        width: auto;
        height: 46px;
        border: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, #2bb3ef, #0b7fc4);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 2px;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(11, 127, 196, .35);
    }

    #SearchButton:hover {
        filter: brightness(1.07);
    }

    #SerchType {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 4px 0 0;
        text-align: center;
        font-size: 13px;
    }

    #SerchType input {
        display: none;
    }

    #SerchType label {
        padding: 5px 15px;
        border: 1px solid rgba(12, 95, 140, .18);
        border-radius: 999px;
        background: rgba(255, 255, 255, .58);
        color: #3a5c73;
        cursor: pointer;
        transition: all .18s ease;
    }

    #SerchType input:checked + label {
        background: var(--qy-primary);
        border-color: var(--qy-primary);
        color: #fff;
        box-shadow: 0 6px 14px rgba(15, 143, 214, .35);
    }

    /* ---------- 分类区块 ---------- */
    .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;
    }
}
