/**
 * WPWMT - 站长工具箱 - 前端样式
 */

/* ==================== 站长信息小工具 ==================== */

.wpwmt-author-info {
    padding: 40px 20px;
    text-align: center;
    font-family: -apple-system, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: transparent;
}

.wpwmt-author-info .author-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin-bottom: 18px;
    object-fit: cover;
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    filter: grayscale(15%);
}

.wpwmt-author-info .author-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #3c3f41;
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
}

.wpwmt-author-info .author-bio {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.wpwmt-author-info .author-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wpwmt-author-info .author-social a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wpwmt-author-info .social-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wpwmt-author-info .author-social a:hover .social-icon {
    transform: scale(1.15);
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .wpwmt-author-info .author-name {
        color: #e0e0e0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .wpwmt-author-info .author-bio {
        color: #aaaaaa;
    }
    
    .wpwmt-author-info .author-social a {
        background: rgba(255, 255, 255, 0.08);
        color: #bbbbbb;
    }
    
    .wpwmt-author-info .author-avatar {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        filter: grayscale(10%) brightness(0.85);
    }
}

/* 头像悬停 */
.wpwmt-author-info .author-avatar:hover {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* 品牌悬停效果 */
.wpwmt-author-info .author-social a.btn-bilibili:hover {
    background: #00aeec;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 174, 236, 0.35);
}

.wpwmt-author-info .author-social a.btn-csdn:hover {
    background: #fc5531;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(252, 85, 49, 0.35);
}

.wpwmt-author-info .author-social a.btn-mail:hover {
    background: #5dc395;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 195, 149, 0.35);
}

.wpwmt-author-info .author-social a.btn-wechat:hover {
    background: #07c160;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.35);
}

/* 微信二维码 */
.wechat-wrapper {
    position: relative;
    display: inline-block;
}

.wechat-qrcode-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 160px;
}

@media (prefers-color-scheme: dark) {
    .wechat-qrcode-popup {
        background: #2a2a2a;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
    }
    
    .wechat-tip {
        color: #e0e0e0 !important;
    }
}

.wechat-qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

@media (prefers-color-scheme: dark) {
    .wechat-qrcode-popup::after {
        border-top-color: #2a2a2a;
    }
}

.wechat-wrapper:hover .wechat-qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.wechat-qrcode-popup img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.wechat-tip {
    display: block;
    color: #666;
    font-size: 0.75rem;
    margin-top: 10px;
    text-align: center;
}

/* ==================== 友链Logo小工具 ==================== */

.wpwmt-logo-links,
.wpwmt-logo-links * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    list-style: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    border: none !important;
    outline: none !important;
}

.wpwmt-logo-links {
    display: flex !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
}

.wpwmt-logo-links ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 51px) !important;
    gap: 4px !important;
    width: fit-content !important;
}

.wpwmt-logo-links li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    width: 135px !important;
    height: 100% !important;
    border: 1px solid #efefef !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
    overflow: hidden !important;
    background-color: #fff !important;
}

@media (prefers-color-scheme: dark) {
    .wpwmt-logo-links li {
        border-color: #3a3a3a !important;
        background-color: #2a2a2a !important;
    }
    
    .wpwmt-logo-links li:hover {
        border-color: #07C160 !important;
        background-color: rgba(7, 193, 96, 0.08) !important;
    }
}

.wpwmt-logo-links li:hover {
    border-color: #07C160 !important;
    background-color: rgba(7, 193, 96, 0.02) !important;
}

.wpwmt-logo-links li img {
    max-height: 40px !important;
    max-width: 125px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* ==================== 响应式 ==================== */

@media (max-width: 480px) {
    .wpwmt-author-info {
        padding: 30px 15px;
    }
    
    .wpwmt-author-info .author-avatar {
        width: 70px;
        height: 70px;
    }
    
    .wpwmt-author-info .author-name {
        font-size: 1.2rem;
    }
    
    .wpwmt-author-info .author-bio {
        font-size: 0.8rem;
        margin-bottom: 25px;
    }
    
    .wpwmt-author-info .author-social {
        gap: 15px;
    }
    
    .wpwmt-author-info .author-social a {
        width: 36px;
        height: 36px;
    }
    
    .wechat-qrcode-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
    }
    
    .wechat-wrapper:hover .wechat-qrcode-popup {
        transform: translate(-50%, -50%);
    }
    
    .wechat-qrcode-popup::after {
        display: none;
    }
    
    .wpwmt-logo-links ul {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
    
    .wpwmt-logo-links li {
        width: 100% !important;
    }
}