/* 插件容器布局 */
.plugin-container {
    display: flex;
    gap: 0;
    align-items: flex-start;
    max-width: 1650px;
    margin: 0 auto;
}

/* 评论区域容器样式 */
.comment-section {
    margin-top: 0;
    padding-top: 20px;
    width: 100%;
}

.comment-container {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.plugin-main-content {
    flex: 1;
    min-width: 0;
    padding-right: 0;
}

/* 随机工具侧边栏 */
.random-tools-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    margin-left: 20px;
    align-self: flex-start;
    height: fit-content;
    z-index: 10;
}

/* 确保侧边栏和主内容高度一致 */
.plugin-container {
    align-items: stretch;
}

/* 调整工具页面白色背景卡片宽度 */
.plugin-main-content .container-xl {
    max-width: 100% !important;
    padding: 0;
}

.plugin-main-content .center-block {
    max-width: 100% !important;
    width: 100% !important;
}

/* 工具内容区域容器 */
#content-block {
    width: 100%;
    box-sizing: border-box;
}

/* 调整主内容区域卡片宽度 */
.plugin-main-content .card {
    max-width: 98%;
    margin: 0 auto;
    width: 100%;
}

/* 手机屏幕上调整卡片宽度更接近边缘 */
@media (max-width: 768px) {
    .plugin-main-content .card {
        max-width: 98%;
        margin: 0 auto;
        width: 100%;
    }
    
    /* 确保工具内容区域有适当的边距 */
    #content-block {
        padding: 0 4px;
    }
    
    /* 调整评论区域在手机上的宽度 */
    .comment-container {
        max-width: 98%;
    }
}

.sidebar-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    overflow: hidden;
    margin: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    color: #555;
    border-bottom: 1px solid #eee;
}

.sidebar-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-title .icon {
    font-size: 14px;
}

.refresh-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.refresh-btn .icon {
    font-size: 12px;
}

.refresh-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.sidebar-content {
    padding: 12px 16px;
}

.random-tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.random-tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.random-tool-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.random-tool-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border: 1px solid #eee;
}

.random-tool-name {
    flex: 1;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.random-tool-item:hover .random-tool-name {
    color: #007bff;
}

/* 舔狗日记样式 */
.dog-diary-container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dog-diary-content {
    text-align: center;
    padding: 16px;
    border-radius: 6px;
}

.dog-diary-content p {
    margin: 0;
    font-size: 13px;
    color: inherit;
    line-height: 1.6;
    font-style: normal;
}

/* 暗黑模式下的舔狗日记样式 */
body.dark-mode .dog-diary-content p {
    color: inherit;
}

/* 背景颜色标签通用样式 */
.bg-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    background-color: #007bff;
    white-space: nowrap;
}

/* 随机工具背景标签 */
.bg-tag.bg-tools {
    background-color: #17a2b8;
}

/* 舔狗日记背景标签 */
.bg-tag.bg-diary {
    background-color: #dc3545;
}

/* 随机文章背景标签 */
.bg-tag.bg-article {
    background-color: #28a745;
}

/* 换一换按钮背景标签 */
.bg-tag.bg-refresh {
    background-color: #6c757d;
}

/* 暗黑模式下的背景标签样式 */
body.dark-mode .bg-tag {
    opacity: 0.9;
}

/* 随机文章日期样式 */
.random-article-date {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* 暗黑模式下的侧边栏样式 */
body.dark-mode .sidebar-card {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .sidebar-header {
    background: #242424;
    border-bottom-color: rgba(255,255,255,0.1);
    color: #ddd;
}

body.dark-mode .refresh-btn {
    background: #242424;
    border-color: rgba(255,255,255,0.1);
    color: #ccc;
}

body.dark-mode .refresh-btn:hover {
    background: #333;
    border-color: #a78bfa;
    color: #a78bfa;
}

body.dark-mode .random-tool-item {
    background: #242424;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

body.dark-mode .random-tool-item:hover {
    background: #333;
    border-color: #a78bfa;
}

body.dark-mode .random-tool-name {
    color: #ddd;
}

body.dark-mode .random-tool-item:hover .random-tool-name {
    color: #a78bfa;
}

body.dark-mode .random-article-item {
    background: #242424;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

body.dark-mode .random-article-item:hover {
    background: #333;
    border-color: #a78bfa;
}

body.dark-mode .random-article-title {
    color: #ddd;
}

body.dark-mode .random-article-item:hover .random-article-title {
    color: #a78bfa;
}

body.dark-mode .random-article-date {
    color: #888;
}

body.dark-mode .loading-tools {
    color: #888;
}

/* 随机文章样式 */
.random-article-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.random-article-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.random-article-title {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.random-article-item:hover .random-article-title {
    color: #007bff;
}



/* 加载状态 */
.loading-tools {
    text-align: center;
    padding: 16px;
    color: #6c757d;
}

.loading-tools .icon {
    font-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计优化 - 侧边栏始终固定在右侧 */
@media (max-width: 1200px) {
    .plugin-container {
        /* 保持flex布局，不切换为column */
        max-width: 100%;
    }
    
    .plugin-main-content {
        /* 主内容区域自动适应剩余空间 */
        padding-right: 0;
    }
    
    .random-tools-sidebar {
        /* 保持固定宽度和右侧位置 */
        width: 260px; /* 稍微缩小宽度以适应较小屏幕 */
        position: sticky;
        top: 20px;
        margin-left: 15px;
        align-self: flex-start;
        height: fit-content;
        z-index: 10;
    }
    
    .sidebar-card {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .random-tools-sidebar {
        display: none;
    }
    
    .plugin-main-content {
        width: 100%;
        padding: 0 5px;
    }
    
    .plugin-container {
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    /* 确保工具卡片内边距适合手机屏幕 */
    .plugin-main-content .card-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    
    /* 为工具说明卡片添加样式 */
    .tool-desc-card {
        margin-top: 1.5rem;
        background-color: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        width: 98%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tool-desc-header {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .tool-desc-title {
        font-size: 1rem;
        font-weight: 600;
        color: #333;
        display: flex;
        align-items: center;
    }
    
    .tool-desc-title i {
        color: #007bff;
        margin-right: 0.5rem;
    }
    
    .tool-desc-content {
        padding: 1rem;
    }
    
    .tool-desc-content p {
        margin-bottom: 0.8rem;
        line-height: 1.6;
    }
    
    .tool-desc-content ul {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tool-desc-content li {
        margin-bottom: 0.5rem;
    }
    
    .tool-desc-note {
        background-color: #f8f9fa;
        padding: 0.8rem 1rem;
        border-left: 3px solid #ffc107;
        border-radius: 0 4px 4px 0;
        margin-top: 1rem;
    }
    
    .tool-desc-note p {
        margin-bottom: 0;
        color: #666;
    }
}

/* 仅手机显示类 - 现在调整为在所有设备上显示 */
.mobile-only {
    display: block;
}

/* 添加特定按钮的样式，确保在所有设备上显示 */
.mt-5.text-center a.btn-outline-danger,
.mt-5.text-center a.btn-outline-light,
.mt-5.text-center a.btn-outline-primary {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* idth: 100%;
    margin: 0;
    padding: 0;
}

.tool-comment-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tool-comment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    border: 1px solid #eee;
}

.comment-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-username {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content {
    font-size: 14px; line-height: 1.6; color: #555; padding: 12px; border-radius: 6px; background: #f8f9fa; margin-bottom: 12px; word-wrap: break-word;
}

.comment-reply {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    position: relative;
}

.comment-reply:before {
    content: "管理员回复：";
    color: #007bff;
    font-weight: 500;
}

.comment-reply-time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
    text-align: right;
}

/* 评论分页样式 */
.comment-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.pagination-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: #666;
    margin: 0 8px;
}

/* 评论数量显示 */
.comment-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 16px;
    border: 1px solid #eee;
}

.comment-count span {
    color: #007bff;
    font-weight: 600;
}

/* 暗黑模式下的工具评论样式 */
body.dark-mode .tool-comment-item {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

body.dark-mode .tool-comment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .comment-avatar {
    background: #333;
    border-color: rgba(255,255,255,0.1);
    color: #ddd;
}

body.dark-mode .comment-username {
    color: #ddd;
}

body.dark-mode .comment-time {
    color: #888;
}

body.dark-mode .comment-content {
    color: #ccc;
    border-bottom-color: rgba(255,255,255,0.05);
}

body.dark-mode .comment-reply {
    background: #242424;
    color: #ccc;
}

body.dark-mode .comment-reply:before {
    color: #a78bfa;
}

body.dark-mode .comment-reply-time {
    color: #888;
}

body.dark-mode .comment-pagination {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .pagination-btn {
    background: #242424;
    border-color: rgba(255,255,255,0.1);
    color: #ccc;
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
    background: #333;
    border-color: #a78bfa;
    color: #a78bfa;
}

body.dark-mode .pagination-btn.active {
    background: #a78bfa;
    border-color: #a78bfa;
    color: #111;
}

body.dark-mode .pagination-info {
    color: #ccc;
}

body.dark-mode .comment-count {
    background: #242424;
    border-color: rgba(255,255,255,0.1);
    color: #ccc;
}

body.dark-mode .comment-count span {
    color: #a78bfa;
}
/* 右下侧边栏收藏按钮 - 抖音风格 */
.favorite-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1000;
}
.favorite-btn a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.favorite-btn a::before {
    content: '';
    width: 24px;
    height: 24px;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1024v1024H0z' fill='%23FFFFFF' fill-opacity='.01'/%3E%3Cpath d='M540.608 92.416l-57.344 0.192-123.072 251.008-279.424 40.512-17.792 54.592 202.432 197.952-48.32 275.136 46.592 33.792 248.256-132.48 248.384 132.48 46.592-33.792-48.064-275.136 202.24-198.016-17.792-54.528-278.016-40.512-124.672-251.2z m-28.48 86.592l103.296 208.064 24.064 17.472 230.592 33.536-168 164.672-9.152 28.352 39.616 227.136-205.504-109.568h-30.08L291.392 858.24l40-227.008-9.152-28.416-168.384-164.608 232.256-33.6 24.128-17.6 101.824-207.936z' fill='%23666666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}
.favorite-btn:hover a {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.favorite-btn:hover a::before {
    transform: scale(1.1);
}
/* 移除图片元素的显示 */
.favorite-btn img {
    display: none !important;
}
/* 已收藏状态的样式 - 抖音风格实心星形 */
.favorite-btn[data-star="1"] a::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1024v1024H0z' fill='%23FFFFFF' fill-opacity='.01'/%3E%3Cpath d='M540.608 92.416l-57.344 0.192-123.072 251.008-279.424 40.512-17.792 54.592 202.432 197.952-48.32 275.136 46.592 33.792 248.256-132.48 248.384 132.48 46.592-33.792-48.064-275.136 202.24-198.016-17.792-54.528-278.016-40.512-124.672-251.2z m-28.48 86.592l103.296 208.064 24.064 17.472 230.592 33.536-168 164.672-9.152 28.352 39.616 227.136-205.504-109.568h-30.08L291.392 858.24l40-227.008-9.152-28.416-168.384-164.608 232.256-33.6 24.128-17.6 101.824-207.936z' fill='%23ff4757'/%3E%3C/svg%3E");
    animation: starScale 0.3s ease;
}

/* 暗黑模式下已收藏状态的样式 */
body.dark-mode .favorite-btn[data-star="1"] a::before {
    /* 保持红色实心星形，但略微调整颜色以适应暗黑模式 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1024v1024H0z' fill='%23FFFFFF' fill-opacity='.01'/%3E%3Cpath d='M540.608 92.416l-57.344 0.192-123.072 251.008-279.424 40.512-17.792 54.592 202.432 197.952-48.32 275.136 46.592 33.792 248.256-132.48 248.384 132.48 46.592-33.792-48.064-275.136 202.24-198.016-17.792-54.528-278.016-40.512-124.672-251.2z m-28.48 86.592l103.296 208.064 24.064 17.472 230.592 33.536-168 164.672-9.152 28.352 39.616 227.136-205.504-109.568h-30.08L291.392 858.24l40-227.008-9.152-28.416-168.384-164.608 232.256-33.6 24.128-17.6 101.824-207.936z' fill='%23ff5767'/%3E%3C/svg%3E");
}
@keyframes starScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 手机屏幕上调整收藏按钮大小 - 抖音风格 */
@media (max-width: 768px) {
    .favorite-btn {
        right: 15px; /* 调整位置更靠近边缘 */
        bottom: 70px;
    }
    .favorite-btn a {
        width: 40px !important; /* 缩小按钮尺寸 */
        height: 40px !important;
    }
    .favorite-btn a::before {
        width: 20px; /* 调小星星图标尺寸，适合手机显示 */
        height: 20px;
    }
    
    /* 暗黑模式下手机端收藏按钮样式 */
    body.dark-mode .favorite-btn a {
        background: #2a2a2a !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* 暗黑模式下手机端分享按钮样式 */
    body.dark-mode .share-btn a {
        width: 40px !important;
        height: 40px !important;
        background: #2a2a2a !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    body.dark-mode .share-btn a::before {
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M220.525714 521.508571m-180.845714 0a180.845714 180.845714 0 1 0 361.691429 0 180.845714 180.845714 0 1 0-361.691429 0Z' fill='%23888888'/%3E%3Cpath d='M751.36 883.2m-140.8 0a140.8 140.8 0 1 0 281.6 0 140.8 140.8 0 1 0-281.6 0Z' fill='%23888888'/%3E%3Cpath d='M843.702857 140.8m-140.8 0a140.8 140.8 0 1 0 281.6 0 140.8 140.8 0 1 0-281.6 0Z' fill='%23888888'/%3E%3Cpath d='M282.477714 654.939429l40.228572-69.668572L711.314286 809.618286l-40.228572 69.668571zM293.485714 419.675429L731.666286 166.692571l40.228571 69.668572L333.714286 489.380571z' fill='%23888888'/%3E%3C/svg%3E");
    }
    
    /* 暗黑模式下手机端分享弹窗样式 */
    body.dark-mode .share-dialog-content {
        background: #2a2a2a;
        border-radius: 8px;
    }
    
    body.dark-mode .share-link-container input {
        background: #242424;
        border-color: rgba(255, 255, 255, 0.1);
        color: #ddd;
    }
    
    body.dark-mode .share-link-container button {
        background: #a78bfa;
    }
    
    /* 手机端分享弹窗样式优化 */
    .share-dialog-content {
        width: 85%;
        max-width: 320px;
    }
    
    /* 手机端分享方法区域保持显示 */
      .share-methods {
          display: flex !important;
          justify-content: center;
      }
    
    /* 链接输入框和复制按钮样式优化 - 全端自适应 */
.share-link-container {
    display: flex;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.share-link-container input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-all;
    min-height: 40px;
}

.share-link-container button {
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #17a2b8;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 确保在小屏幕上输入框内容不会溢出 */
@media (max-width: 480px) {
    .share-link-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-link-container input,
    .share-link-container button {
        width: 100%;
        border-radius: 4px;
    }
    
    .share-link-container button {
        padding: 8px 12px;
    }
}
    
    /* 桌面提示链接样式 */
    .desktop-tip {
        text-align: center;
        margin-top: 15px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    
    .desktop-tip a {
        color: #17a2b8;
        text-decoration: none;
        font-size: 14px;
    }
    
    /* 暗黑模式下桌面提示样式 */
    body.dark-mode .desktop-tip {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    body.dark-mode .desktop-tip a {
        color: #a78bfa;
    }
}

/* 悬浮分享按钮样式 */
.share-btn {
    position: fixed;
    right: 20px;
    bottom: 140px;
    z-index: 1000;
}
.share-btn a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
}
/* 三个连接点样式 - 使用新SVG背景实现 */
.share-btn a::before {
    content: '';
    width: 24px;
    height: 24px;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M220.525714 521.508571m-180.845714 0a180.845714 180.845714 0 1 0 361.691429 0 180.845714 180.845714 0 1 0-361.691429 0Z' fill='%23333333'/%3E%3Cpath d='M751.36 883.2m-140.8 0a140.8 140.8 0 1 0 281.6 0 140.8 140.8 0 1 0-281.6 0Z' fill='%23333333'/%3E%3Cpath d='M843.702857 140.8m-140.8 0a140.8 140.8 0 1 0 281.6 0 140.8 140.8 0 1 0-281.6 0Z' fill='%23333333'/%3E%3Cpath d='M282.477714 654.939429l40.228572-69.668572L711.314286 809.618286l-40.228572 69.668571zM293.485714 419.675429L731.666286 166.692571l40.228571 69.668572L333.714286 489.380571z' fill='%23333333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
body.dark-mode .share-btn:hover a {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.share-btn:hover a::before {
    transform: scale(1.1);
    color: #17a2b8; /* 链接颜色 */
}

/* 分享弹窗样式 */
.share-dialog,
.desktop-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.share-dialog-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-dialog-content.show {
    opacity: 1;
    transform: scale(1);
}

.share-dialog-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.share-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

body.dark-mode .share-close-btn:hover {
    background: #3a3a3a;
    color: #fff;
}

.share-dialog-body,
.desktop-dialog-body {
    padding: 20px;
}

.share-link-container {
    display: flex;
    margin-bottom: 20px;
}

#shareLink {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.copy-link-btn {
    padding: 10px 16px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.copy-link-btn:hover {
    background: #138496;
}/* 分享方法容器 */
.share-methods {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.share-method {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-container {
    width: 200px;
    height: 200px;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

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

.share-method p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.desktop-tip {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.desktop-tip a {
    color: #17a2b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.desktop-tip a:hover {
    color: #138496;
    text-decoration: underline;
}

/* 桌面提示已改为直接下载功能，不再需要弹窗样式 */

/* 暗黑模式下的收藏按钮样式 */
body.dark-mode .favorite-btn a {
    background: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .favorite-btn a::before {
    /* 未收藏状态下的灰色星形图标 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1024v1024H0z' fill='%23FFFFFF' fill-opacity='.01'/%3E%3Cpath d='M512 512m-460.8 0a460.8 460.8 0 1 0 921.6 0 460.8 460.8 0 1 0-921.6 0z' fill='none' stroke='%23888888' stroke-width='64'/%3E%3C/svg%3E");
}

body.dark-mode .favorite-btn:hover a {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* 暗黑模式下的分享按钮样式 */
body.dark-mode .share-btn a {
    background: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .share-btn a::before {
    /* 更改分享图标颜色为灰色 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M220.525714 521.508571m-180.845714 0a180.845714 180.845714 0 1 0 361.691429 0 180.845714 180.845714 0 1 0-361.691429 0Z' fill='%23888888'/%3E%3Cpath d='M751.36 883.2m-140.8 0a140.8 140.8 0 1 0 281.6 0 140.8 140.8 0 1 0-281.6 0Z' fill='%23888888'/%3E%3Cpath d='M843.702857 140.8m-140.8 0a140.8 140.8 0 1 0 281.6 0 140.8 140.8 0 1 0-281.6 0Z' fill='%23888888'/%3E%3Cpath d='M282.477714 654.939429l40.228572-69.668572L711.314286 809.618286l-40.228572 69.668571zM293.485714 419.675429L731.666286 166.692571l40.228571 69.668572L333.714286 489.380571z' fill='%23888888'/%3E%3C/svg%3E");
}

body.dark-mode .share-dialog-content {
    background: #2a2a2a;
}

body.dark-mode .share-dialog-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: #252525;
}

body.dark-mode .share-dialog-header h3 {
    color: #ddd;
}

body.dark-mode #shareLink {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

body.dark-mode .qrcode-container,
body.dark-mode .link-icon {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .link-icon {
    color: #a78bfa;
}

body.dark-mode .share-method p {
    color: #ccc;
}

body.dark-mode .desktop-tip {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .desktop-tip a {
    color: #a78bfa;
}

body.dark-mode .desktop-tip a:hover {
    color: #8b5cf6;
}

body.dark-mode .browser-tip {
    background: #242424;
}

body.dark-mode .browser-tip h4 {
    color: #ddd;
}

body.dark-mode .browser-tip li {
    color: #ccc;
}

body.dark-mode .copy-link-btn {
    background: #a78bfa;
}

body.dark-mode .copy-link-btn:hover {
    background: #8b5cf6;
}

/* 手机屏幕上调整分享按钮大小 */
@media (max-width: 768px) {
    .share-btn {
        right: 15px;
        bottom: 130px;
    }
    .share-btn a {
        width: 40px !important;
        height: 40px !important;
    }
    .share-btn a::before {
        width: 20px;
        height: 20px;
    }
    
    /* 手机端分享弹窗样式优化 */
    .share-dialog-content {
        width: 80%;
        max-width: 300px;
    }
    
    /* 手机端分享方法并排显示 */
    .share-methods {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    
    .share-method {
        flex: 1;
        text-align: center;
    }
    
    /* 优化移动端二维码尺寸以适配容器并提升可扫描性 */
    .qrcode-container {
        width: 90%;
        max-width: 280px;
        aspect-ratio: 1 / 1;
        padding: 8px;
        margin: 0 auto 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .qrcode-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        margin: 0 auto;
    }
    
    .link-icon {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto;
    }
    
    .link-icon svg {
        width: 36px;
        height: 36px;
        margin-top: 32px;
    }
    
    .share-method p {
        font-size: 12px;
        margin-top: 8px;
    }
    
    /* 手机端链接输入框和复制按钮 */
    .share-link-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .share-link-container input {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
        border: 1px solid #ddd;
    }
    
    .share-link-container button {
        width: 100%;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
        border: none;
        background-color: #17a2b8;
        color: white;
        cursor: pointer;
    }
    
    /* 桌面提示链接 */
    .desktop-tip {
        margin-top: 15px;
        font-size: 13px;
    }
}