@import url('common.css');

.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 友情链接 */
.link-box {
    width: 1300px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.link-box .dropdown-btn {
    width: 306px;
    height: 53px;
    background: #F5F7FA;
    border-radius: 4px;
    border: 1px solid #C9C9C9;
    font-size: 18px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-sizing: border-box;
}

.link-box .no-menu {
    justify-content: center;
}

.dropdown-menu {
    width: min(306px, 50%);
    height: 400px;
    overflow-y: auto;
}

.footer-wrapper {
    width: 100%;
    background-color: var(--primary-color);
}

.footer-wrapper .footer-content {
    width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 30px 0;
}

.footer-wrapper .footer-content .footer-text {
    width: 70%;
}

.footer-wrapper .footer-content .footer-text p {
    margin-top: 15px;
}

.footer-wrapper .footer-content .footer-text p a:not(:first-of-type) {
    margin-left: 20px;
}

.footer-wrapper .footer-content .footer-text a,
.footer-wrapper .footer-content .footer-text p {
    color: #ffffff;
}

.footer-wrapper .footer-content .footer-text img {
    height: 15px;
    cursor: pointer;
}

.footer-wrapper .footer-content .footer-text #footer-address::after {
    margin-left: 20px;
    content: "地址：乌鲁木齐市紫阳湖中路天山云计算基地 邮编：830022";
}

.footer-wrapper .footer-content .footer-images {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 34px;
    justify-content: flex-end;
}

.footer-wrapper .footer-content .footer-images img {
    object-fit: contain;
    cursor: pointer;
}

/* 试运行弹窗 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.float-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: min(500px, 85%);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #3b82f6;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
    z-index: 1000;
    padding: 10px;
}

.float-window .window-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding-bottom: 8px;
}

.float-window .window-header .dot {
    margin: 10px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.float-window .window-header .close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.float-window .window-header .close-btn:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.float-window .window-wrapper {
    padding: 0 20px 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.float-window .window-content {
    color: #60a5fa;
    font-size: 16px;
}

.float-window .window-content p {
    margin-top: 10px;
}

.float-window .window-content p.right {
    text-align: right;
}

.float-window.hidden {
    display: none;
}

@media (max-width: 767px) {
    .link-box {
        width: 100%;
        column-gap: 8px;
        height: auto;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    
    .link-box .dropdown-btn {
        width: 45%;
        padding: 0;
        font-size: 14px;
        padding: 0 10px;
    }
    
    .footer-wrapper .footer-content {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-wrapper .footer-content .footer-text {
        width: 100%;
    }
    
    .footer-wrapper .footer-content .footer-text p {
        text-align: center;
    }
    
    .footer-wrapper .footer-content .footer-text p a {
        margin-top: 10px;
        display: block;
    }
    
    .footer-wrapper .footer-content .footer-images {
        margin-top: 20px;
    }
}