/**
 * DaheCMS 互动功能样式（点赞、收藏、分享）
 * ----------------------------------------------------------------
 * 作者: DaheCMS开发团队
 * 网站: http://www.dahecms.com
 * ----------------------------------------------------------------
 */

/* ==================== 分享菜单样式 ==================== */

.share-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-menu.active {
    opacity: 1;
}

.share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.share-panel {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-menu.active .share-panel {
    transform: scale(1);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.share-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.share-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.share-close:hover {
    background: #f3f4f6;
    color: #666;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.share-option svg {
    width: 32px;
    height: 32px;
}

.share-option span {
    font-size: 13px;
    color: #666;
}

/* ==================== 点赞和收藏按钮激活状态 ==================== */

.action-btn.liked {
    color: #e74c3c;
    background: #fee;
}

.action-btn.liked .action-icon path {
    fill: #e74c3c;
}

.action-btn.collected {
    color: #f39c12;
    background: #fef3e0;
}

.action-btn.collected .action-icon path {
    fill: #f39c12;
}

/* ==================== 微信二维码弹窗样式 ==================== */

.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qrcode-modal.active {
    opacity: 1;
}

.qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.qrcode-panel {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 0;
    width: 360px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.qrcode-modal.active .qrcode-panel {
    transform: scale(1);
}

.qrcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #09BB07 0%, #07a804 100%);
    color: white;
}

.qrcode-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.qrcode-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.qrcode-close:hover {
    background: rgba(255,255,255,0.3);
}

.qrcode-body {
    padding: 30px 24px;
    text-align: center;
}

.qrcode-image {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 20px;
    display: inline-block;
}

.qrcode-image img {
    width: 200px;
    height: 200px;
    display: block;
}

.qrcode-tip {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.qrcode-url {
    display: flex;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
}

.qrcode-url input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 12px;
    color: #666;
    outline: none;
}

.qrcode-url button {
    background: #09BB07;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.qrcode-url button:hover {
    background: #07a804;
}
