body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 遮罩层样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* 对话框样式 */
.confirm-modal {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    transform: translate(0, 0);
}

.confirm-modal h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.confirm-modal p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

.cancel-btn:hover {
    background-color: #d0d0d0;
}

.confirm-btn {
    background-color: #007BFF;
    color: white;
}

.confirm-btn:hover {
    background-color: #0056b3;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.custom-hr {
    width: calc(100% - 40px);
    margin: 0 auto;
    border: none;
    height: 2px;
    background-color: #999;
}

.links-container {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.link-block {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    height: 80px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.link-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

/* 防止点击链接文字时触发两次事件 */
.link-block a {
    pointer-events: none;
}

.link-block img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.link-info h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-url {
    color: #007BFF;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px; /* 调大链接字号 */
}

.link-url:hover {
    text-decoration: underline;
}

/* 媒体查询，当屏幕宽度小于 1200px 时调整布局 */
@media (max-width: 1200px) {
    .links-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 当屏幕宽度小于 900px 时调整布局 */
@media (max-width: 900px) {
    .links-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 当屏幕宽度小于 600px 时调整布局 */
@media (max-width: 600px) {
    .links-container {
        grid-template-columns: 1fr;
    }
    
    /* 响应式对话框样式 */
    .confirm-modal {
        width: 95%;
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .confirm-modal h3 {
        font-size: 18px;
    }
    
    .confirm-modal p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
        padding: 12px 0;
    }    
}