/* 2026 site-footer：对齐高校合作页原型，覆盖旧 #cc_kylin5/#cc_kylin6 布局 */
.cc_kylin_foot {
    background: #000 !important;
    padding-bottom: 0 !important;
    text-align: left;
}

#cc_kylin5.site-footer {
    margin: 0;
    overflow: visible;
    float: none;
    width: 100%;
    max-width: none;
}

#cc_kylin6.site-footer-kylin6-slot {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.site-footer {
    background: #000;
    color: #fff;
    padding: 18px 0 52px;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

.site-footer-wrap {
    width: min(1440px, calc(100% - 100px));
    margin: auto;
}

.site-footer-brand {
    text-align: center;
    border-bottom: 1px solid #444;
    padding: 0 0 22px;
}

.site-footer-brand p {
    margin: 0 0 18px;
    font-size: 16px;
    color: #fff;
}

.site-footer-brand img {
    display: block;
    width: 235px;
    max-width: 40%;
    height: auto;
    margin: auto;
}

.site-footer-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    padding: 27px 58px 44px;
}

.site-footer-column h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 28px;
    color: #fff;
}

.site-footer-column > a {
    display: block;
    color: #a3a3a3;
    font-size: 14px;
    line-height: 2.1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer-friends {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 2em;
    text-align: center;
    font-size: 16px;
    margin: 4px 0 40px;
    color: #fff;
}

.site-footer-friends a {
    color: #fff;
}

.site-footer-bottom {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 20px;
    align-items: end;
    padding: 0 32px;
}

.site-footer-qrs {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-qrs figure {
    margin: 0;
    text-align: center;
}

.site-footer-qrs img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
}

.site-footer-qrs figcaption {
    font-size: 11px;
    margin-top: 9px;
    white-space: nowrap;
    color: #fff;
}

.site-footer-legal {
    text-align: center;
    font-size: 12px;
    color: #fff;
}

.site-footer-legal p {
    margin: 0 0 14px;
}

.site-footer-legal p:last-child {
    margin-bottom: 0;
}

.site-footer-legal a {
    color: #fff;
}

.site-footer-copyright {
    font-size: 11px;
    white-space: normal;
}

@media (max-width: 1100px) {
    .site-footer-wrap {
        width: calc(100% - 48px);
    }

    .site-footer-nav {
        padding-left: 0;
        padding-right: 0;
        gap: 20px;
    }

    .site-footer-bottom {
        grid-template-columns: 200px 1fr 200px;
        padding: 0;
        gap: 18px;
    }

    .site-footer-qrs {
        gap: 12px;
    }

    .site-footer-qrs img {
        width: 84px;
        height: 84px;
    }

    .site-footer-column > a {
        font-size: 12px;
    }
}

@media (max-width: 800px) {
    .site-footer-brand p {
        font-size: 13px;
    }

    .site-footer-nav {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 28px;
    }

    .site-footer-column h3 {
        margin-bottom: 12px;
    }

    .site-footer-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .site-footer-legal {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .site-footer-qrs {
        justify-content: space-around;
    }

    .site-footer-friends {
        font-size: 13px;
    }

    .site-footer {
        padding-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .site-footer-wrap {
        width: calc(100% - 32px);
    }

    .site-footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer-qrs {
        gap: 12px;
    }

    .site-footer-qrs img {
        width: 64px;
        height: 64px;
    }

    .site-footer-qrs figcaption {
        font-size: 10px;
    }

    .site-footer-friends {
        line-height: 2;
    }

    .site-footer-brand img {
        max-width: 50%;
    }
}

/* 开放原子相关样式（旧结构兼容，可保留） */
.ok_openatom > div {
    font-size: 20px;
    margin-bottom: 12px;
}
.ok_openatom > a > img {
    height: 32px;
    margin-bottom: 30px;
}

/* 下面是cookies用户隐私协议的样式 */
#question_feedback {
    position: fixed;
    right: 20px;
    bottom: 110px;
    width: 140px;
    height: 140px;
    cursor: pointer;
    z-index: 999;
    transition: all .3s;
    display: flex;
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    z-index: 100;
    width: 100%;
}

.cookie-notice-content {
    background-color: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: #fdfdfe;
}

.cookie-notice-close {
    position: absolute;
    top: 12px;
    cursor: pointer;
    right: 12px
}

.cookie-notice-wrap {
    padding: 24px;
    display: flex;
    justify-content: space-around;
    position: relative;
    flex-wrap: wrap;
}

.cookie-notice-left {
    width: 58%;
}

.cookie-notice-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
}

.cookie-notice-right>button {
    border-radius: 12px;
    padding: 5px 20px;
    background-color: #fff;
    border: 1px solid #103dad;
    color: #103dad;
    font-size: 13px;
    white-space: nowrap;
}

.cookie-notice-right>button:hover {
    background-color: #103dad;
    color: #fff;
}

.cookie-notice-right>button:focus {
    outline: none;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 101
}

.cookie-modal {
    width: 800px;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
}

.cookie-modal-title {
    font-size: 24px;
    text-align: center;
}

.cookie-modal-title-2 {
    font-size: 21px;
    line-height: 22px;
    display: flex;
    align-items: flex-end;
    margin: 15px 0;
}

.cookie-modal-title-2-tip {
    font-size: 14px;
    color: rgba(0, 0, 0, .6);
    padding-left: 24px;
    line-height: 22px;
}

.switch {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.switch.active {
    background-color: #4caf50;
}

.switch.active::after {
    transform: translateX(26px);
}

.switch-label {
    margin-left: 10px;
    font-size: 14px;
    vertical-align: middle;
}

.cookie-modal p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.cookie-modal .toggle-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cookie-modal .toggle-section span {
    font-weight: bold;
}

.cookie-modal-button {
    display: flex;
    justify-content: center;
}

.cookie-modal-button button {
    padding: 5px 20px;
    font-size: 14px;
    border: none;
    border-radius: 100vh;
    cursor: pointer;
    margin: 0 10px;
    background-color: #fff;
    border: 1px solid #103dad;
    color: #103dad;
    outline: none;
    white-space: nowrap;
}

.cookie-modal-button button:hover {
    background-color: #103dad;
    color: #fff;
}

.cookie-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

@media screen and (max-width: 1500px) {
    #question_feedback {
        right: 10px;
        bottom: 97px;
        width: 80px;
        height: 80px;
    }
}

@media screen and (max-width: 800px) {
    .ok_openatom > div {
        font-size: 12px;
    }

    #question_feedback,
    #contact_xk {
        display: none;
    }

    .cookie-notice-left {
        width: 100%;
    }
}
