@charset "UTF-8";

.share-section {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.share-label {
    margin-right: 1.5rem;
    flex-shrink: 0;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

/* 分享按钮样式 */
.share {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.share-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

/* 微信 */
.icon-wechat {
    background-color: #7bc549;
}

.icon-wechat:before {
    background-image: url(../img/icon-wechat.png);
}

/* QQ */
.icon-qq {
    background-color: #4cafea;
}

.icon-qq:before {
    background-image: url(../img/icon-qq.png);
}

/* 微博 */
.icon-weibo {
    background-color: #dd4d68;
}

.icon-weibo:before {
    background-image: url(../img/icon-weibo.png);
}

/* QQ空间 */
.icon-qzone {
    background-color: #eece3d;
}

.icon-qzone:before {
    background-image: url(../img/icon-qzone.png);
}


/* 微信二维码弹窗 */
.wechat-qrcode {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    min-width: 180px;
    text-align: center;
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.wechat-qrcode:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: white;
}

.wechat-qrcode h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.qrcode {
    width: 140px;
    height: 140px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.qrcode img {
    max-width: 100%;
    height: auto;
}