/* 服务器详情页面样式 */

/* 主容器样式 */
.server-detail-container {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem 0;
    padding: 0;
}

/* 服务器头部容器 */
.server-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* 页面内容布局 */
.page-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

.content-main {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.content-sidebar {
    width: 380px;
    flex-shrink: 0;
}

/* 服务器标题区域 */
.server-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
        "logo info";
    gap: 40px;
    margin-bottom: 20px;
    position: relative;
}

/* 服务器名称行 - 包含名称和订阅按钮 */
.server-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

/* 订阅按钮区域 */
.server-subscribe-area {
    display: flex;
    align-items: baseline;
    flex-shrink: 0;
}

/* 订阅按钮样式 */
.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #4a7bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(74, 123, 255, 0.2);
    vertical-align: baseline;
    line-height: 1;
}

.subscribe-btn:hover {
    background-color: #3a6ae9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 123, 255, 0.3);
}

.subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 123, 255, 0.2);
}

.subscribe-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.subscribe-btn i {
    font-size: 16px;
}

.subscribe-text {
    white-space: nowrap;
}

/* 已订阅状态按钮 */
.subscribe-btn.subscribed {
    background-color: #10b981;
}

.subscribe-btn.subscribed:hover {
    background-color: #059669;
}

/* 已直连标签样式 */
.direct-connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
    vertical-align: baseline;
    line-height: 1;
}

.direct-connection-badge i {
    font-size: 16px;
    color: #ffffff;
}

/* 深色模式下的订阅按钮 */
body.dark-mode .subscribe-btn {
    background-color: #5f9cff;
    box-shadow: 0 2px 4px rgba(95, 156, 255, 0.2);
}

body.dark-mode .subscribe-btn:hover {
    background-color: #4a8aee;
    box-shadow: 0 4px 8px rgba(95, 156, 255, 0.3);
}

body.dark-mode .subscribe-btn.subscribed {
    background-color: #059669;
}

body.dark-mode .subscribe-btn.subscribed:hover {
    background-color: #047857;
}

/* 深色模式下的已直连标签 */
body.dark-mode .direct-connection-badge {
    background-color: #ff6b35;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

body.dark-mode .direct-connection-badge i {
    color: #ffffff;
}

/* 内联操作区域 */
.server-actions-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 内联分享区域 */
.social-share-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 内联分享标签 */
.share-label-inline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    white-space: nowrap;
}

/* 内联分享按钮容器 */
.social-share-buttons-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 内联收藏区域 */
.favorite-section-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 内联收藏标签 */
.favorite-label-inline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.server-logo {
    grid-area: logo;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.1);
    margin-right: 15px;
}

.server-logo img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.server-info {
    grid-area: info;
    padding-left: 10px;
}

.server-info h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.server-meta {
    display: flex;
    color: #666;
    font-size: 14px;
    align-items: center;
}

.server-meta > div {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.server-meta i {
    margin-right: 6px;
}

.server-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.server-name .original-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.server-author {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.server-author a {
    color: var(--link-color);
    text-decoration: none;
}

.server-author a:hover {
    text-decoration: underline;
}

.server-stats {
    display: flex;
    align-items: center;
}

.server-stars {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.server-stars i {
    color: gold;
    margin-right: 0.3rem;
}

.github-icon-link {
    margin-left: 15px;
    color: #24292e;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s;
}

.github-icon-link:hover {
    color: #0366d6;
}

.server-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background-color: #edf2f7;
    color: #4a5568;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag:hover {
    background-color: #e2e8f0;
}

body.dark-mode .tag {
    background-color: #2d3748;
    color: #a0aec0;
}

body.dark-mode .tag:hover {
    background-color: #4a5568;
    color: #cbd5e0;
}

.server-actions {
    display: flex;
    margin: 20px 0;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.primary-btn {
    background-color: var(--primary-btn-bg);
    color: var(--primary-btn-text);
}

.primary-btn:hover {
    background-color: var(--primary-btn-hover-bg);
}

/* 选项卡样式 */
.tabs-container {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--bg-color);
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary, #666);
    transition: all 0.2s;
}

.tab-btn:hover:not(.active) {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary, #333);
}

.tab-btn.active {
    background: var(--primary-color, #4285f4);
    color: white;
}

body.dark-mode .tab-btn:hover:not(.active) {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode .tab-btn.active {
    background: #4a5568;
    color: #60a5fa;
}

/* 工具数量标记样式 - 恢复 */
.tab-btn .tab-count {
    display: inline-block;
    background-color: #e0e0e0; 
    color: #666666; 
    font-size: 0.65em; 
    padding: 1px 4px; 
    border-radius: 6px; 
    margin-left: 2px; 
    vertical-align: super; 
    line-height: 1; 
}

/* 新增：工具图标标记样式 (用于安装选项卡) */
.tab-btn .tab-icon-badge {
    display: inline-block;
    /* color: #ff4500; /* 移除颜色，emoji 自带颜色 */
    font-size: 0.9em; /* 增大字体大小 */
    margin-left: 0px; /* 移除左边距，使其更贴近 */
    vertical-align: super; /* 关键：设置为上标 */
    line-height: 1; /* 确保行高不影响对齐 */
}

.tab-btn .tab-icon-badge i {
    /* 可以添加特定的图标样式，如果需要的话 */
}

/* 深色模式下的工具数量标记 - 恢复 */
body.dark-mode .tab-btn .tab-count {
    background-color: #374151; 
    color: #e5e7eb; 
}

/* 激活状态下的工具数量标记 */
.tab-btn.active .tab-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-mode .tab-btn.active .tab-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 新增：深色模式下的工具图标标记样式 */
body.dark-mode .tab-btn .tab-icon-badge {
    color: #ff7b72; /* 深色模式下使用亮红色 */
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    padding: 1.5rem 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tab-pane.active {
    display: block;
}

/* 确保深色模式下所有内容区域透明 */
body.dark-mode .tab-content,
body.dark-mode .tab-readme,
body.dark-mode .tab-pane,
body.dark-mode .readme-content,
body.dark-mode .markdown-body {
    background-color: transparent !important;
    color: #c9d1d9;
}

/* 确保深色模式下代码块有明显的背景色 */
body.dark-mode .markdown-body pre {
    background-color: #1e1e2e !important; /* 深色但区别于普通文本区域的背景色 */
    border: 1px solid #30363d !important;
    padding: 1em !important;
    margin-bottom: 16px !important;
    border-radius: 6px !important;
}

/* 确保深色模式下代码块内容没有背景色 */
body.dark-mode .markdown-body pre > code {
    background-color: transparent !important;
    color: #c9d1d9;
}

/* 确保深色模式下的行内代码有可见的背景色 */
body.dark-mode .markdown-body code:not(pre code) {
    background-color: rgba(110, 118, 129, 0.4) !important;
    color: #c9d1d9;
}

/* 确保tabs-container在深色模式下的背景色 */
body.dark-mode .tabs-container {
    background-color: transparent !important;
}

/* 强制移除可能存在的黑色背景 */
body.dark-mode .readme-rendered,
body.dark-mode #readme-rendered {
    background-color: transparent !important;
}

/* 统一所有标签页内容区域的内边距 - 去除内层容器的额外内边距 */
.overview-content,
.readme-content,
.tools-content,
.installation-content {
    padding: 0 !important;
    margin: 0;
}

/* 概览选项卡样式 */
.overview-content {
    /* 确保没有额外的padding和margin */
    margin: 0;
}

.overview-section {
    margin-bottom: 2rem;
}

.overview-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.overview-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.overview-section:last-child {
    margin-bottom: 0;
}

/* README Tab 样式 */
.readme-content {
    color: var(--text-color);
    /* 确保没有额外的padding和margin */
    margin: 0;
}

.readme-content.markdown-body {
    font-size: 0.95rem;
    /* 移除markdown-body的默认内边距，使用tab-pane的内边距 */
    padding: 0;
    margin: 0;
}

/* 修正markdown-body默认样式，避免额外的margin和padding */
.markdown-body {
    padding: 0;
    margin: 0;
}

/* 调整markdown内容的标题和段落样式，与概览区域保持一致 */
.markdown-body h1 {
    font-size: 1.6rem;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.2em;
    border-bottom: 1px solid var(--border-color);
}

.markdown-body h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    padding-bottom: 0.2em;
    border-bottom: 1px solid var(--border-color);
}

.markdown-body h3 {
    font-size: 1.15rem;
    margin: 1.2rem 0 0.8rem 0;
}

.markdown-body h4 {
    font-size: 1rem;
    margin: 1rem 0 0.8rem 0;
}

.markdown-body h5, .markdown-body h6 {
    font-size: 0.95rem;
    margin: 1rem 0 0.8rem 0;
}

.markdown-body p, .markdown-body ul, .markdown-body ol {
    margin: 0 0 1rem 0;
}

/* 第一个元素不需要上边距 */
.markdown-body > *:first-child {
    margin-top: 0;
}

/* 工具列表样式 */
.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-item {
    display: flex;
    padding: 1rem;
    background: var(--tool-item-bg);
    border-radius: 8px;
    transition: transform 0.2s;
}

.tool-item:hover {
    transform: translateY(-2px);
}

.tool-icon {
    flex: 0 0 40px;
    margin-right: 1rem;
}

.tool-icon img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.tool-info {
    flex: 1;
}

.tool-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.tool-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 右侧推荐区域样式 */
.recommended-servers {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--tab-header-bg);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.sidebar-body {
    padding: 1rem;
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recommended-item {
    display: flex;
    padding: 0.8rem 1rem;
    background: transparent; /* 设置为透明背景 */
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0; /* 移除圆角 */
}

.recommended-item:last-child {
    border-bottom: none;
}

.recommended-item:hover {
    transform: translateY(-2px);
    background-color: transparent; /* 悬停时保持透明背景 */
    box-shadow: none; /* 移除阴影效果 */
}

/* 深色模式下也保持一致 */
body.dark-mode .recommended-item {
    background: transparent;
}

body.dark-mode .recommended-item:hover {
    background-color: transparent;
}

.rec-server-logo {
    flex: 0 0 50px;
    margin-right: 1rem;
}

.rec-server-logo img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.rec-server-info {
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

.rec-server-info h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-server-info h3 .fa-crown {
    color: #f59f00;
    font-size: 0.85rem;
}

.rec-server-info h3 .rec-server-stars {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: normal;
    margin-left: auto;
}

.rec-server-info h3 .rec-server-stars i {
    color: gold;
    margin-right: 0.2rem;
}

.rec-server-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em; /* 约两行的高度 */
}

.no-recommendations {
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* 响应式设计调整 */
@media (max-width: 1024px) {
    .page-content {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
    }
    
    .recommended-servers {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* 移动设备下的内容边距统一调整为10px，增加显示空间 */
    .breadcrumb-container {
        padding: 1rem 10px 0;
    }
    
    .server-header-container,
    .page-content {
        padding: 0 10px;
        margin: 1rem auto;
    }
    
    .server-header {
        margin-bottom: 12px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "logo info";
        gap: 12px;
        padding: 10px;
    }
    
    .server-logo {
        width: 52px;
        height: 52px;
        grid-area: logo;
        border-radius: 8px;
    }
    
    .server-logo img {
        width: 52px;
        height: 52px;
        border-radius: 8px;
        object-fit: contain;
    }
    
    .tabs-container {
        border-radius: 8px;
        margin-top: 0;
    }
    
    .tabs {
        overflow-x: auto;
        padding: 0;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 14px;
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
    
    .tab-pane {
        padding: 1rem 10px;
    }
    
    /* 确保README内容在移动设备下没有额外的内边距 */
    .markdown-body,
    .readme-content.markdown-body {
        padding: 0 !important;
    }
    
    /* 去除概览选项卡的额外内边距 */
    .overview-section {
        padding: 0;
    }
    
    /* 统一手机模式下的字体大小 */
    /* 标题大小与server信息标题一致 */
    .overview-section h2 {
        font-size: 20px;
        margin-bottom: 10px;
        padding-bottom: 0.3rem;
    }
    
    /* 正文大小与server描述一致 */
    .overview-section p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* README内容字体大小统一 */
    .markdown-body h1 {
        font-size: 20px;
    }
    
    .markdown-body h2 {
        font-size: 18px;
    }
    
    .markdown-body h3 {
        font-size: 16px;
    }
    
    /* 调整工具列表 */
    .tools-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    /* 调整推荐服务器列表 */
    .sidebar-body {
        padding: 1rem 10px;
    }
    
    /* 服务器信息部分 */
    .server-info {
        width: 100%;
    }
    
    /* 去除内层容器的额外内边距，避免双重压缩 */
    .tab-content,
    .overview-content,
    .readme-content,
    .tools-content,
    .installation-content {
        padding: 0 !important;
    }
    
    /* 确保所有内部元素的边距一致性 */
    .tab-pane > * {
        max-width: 100%;
    }
    
    .server-stats {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .server-stars {
        margin-right: 8px;
    }
    
    .social-share-buttons {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .share-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .social-share-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }
    
    /* 移动端显示特定元素 */
    .mobile-actions {
        display: inline-flex;
        align-items: center;
        margin-left: 8px;
        vertical-align: middle;
        font-size: 0.85rem;
    }
    
    /* 调整服务器描述区域 */
    .server-description {
        margin-bottom: 15px;
    }
    
    /* 调整服务器信息区域 */
    .server-info h1 {
        font-size: 20px;
    }
    
    .server-meta {
        flex-wrap: wrap;
    }
    
    .server-meta > div {
        margin-right: 10px;
        margin-bottom: 5px;
    }
    
    /* 修复概览和内容标签对齐问题 */
    .tabs-container {
        padding: 0;
    }
    
    /* 猜你喜欢区域调整 */
    .content-sidebar {
        margin-top: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .recommended-servers {
        margin-top: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 10px;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 确保整体内容对齐 */
    .page-content, 
    .tabs-container,
    .tab-content,
    .overview-content,
    .readme-content,
    .recommended-servers,
    .sidebar-body,
    .sidebar-header {
        width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    
    /* 减少内容之间的垂直间距 */
    .overview-section, 
    .tab-pane {
        margin-bottom: 10px;
    }
    
    /* 调整猜你喜欢部分 */
    .sidebar-header h2 {
        margin-top: 5px;
        margin-bottom: 10px;
        font-size: 18px;
        padding-left: 10px;
    }
    
    /* 移除卡片间的大间距 */
    .main-content > div:not(:first-child) {
        margin-top: 10px;
    }
    
    /* 调整卡片样式使其看起来更统一 */
    .recommended-servers .sidebar-body {
        padding: 0 10px;
    }
    
    /* 消除两个区域之间的大间距 */
    .tab-content, .recommended-servers {
        margin-bottom: 0;
    }
    
    /* 将猜你喜欢部分上移 */
    .content-sidebar {
        margin-top: -20px;
    }
    
    /* 让猜你喜欢区域与上方内容保持一致的宽度 */
    .recommended-servers {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
    }
    
    /* 所有区域使用统一的内边距 */
    .sidebar-body,
    .sidebar-header {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 社交分享按钮移动端专用样式 */
    .social-share-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }
}

/* 深色模式变量覆盖 */
body.dark-mode {
    --card-bg: #1e1e1e;
    --tab-header-bg: #2a2a2a;
    --tool-item-bg: #2a2a2a;
    --code-bg: #1e1e2e; /* 更改为代码块背景色 */
}

/* 面包屑导航样式 */
.breadcrumb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.current {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumb .fas.fa-angle-right {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Overview 内容样式 */
.overview-section:last-child {
    margin-bottom: 0;
}

.overview-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.overview-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    white-space: pre-wrap;
}

/* README Markdown 样式 */
.tab-content .markdown-body {
    color: var(--text-color, #24292f);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.markdown-body h1 {
    padding-bottom: 0.3em;
    font-size: 2em;
    border-bottom: 1px solid var(--border-color, #d0d7de);
}

.markdown-body h2 {
    padding-bottom: 0.3em;
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color, #d0d7de);
}

.markdown-body h3 { font-size: 1.25em; }
.markdown-body h4 { font-size: 1em; }
.markdown-body h5 { font-size: 0.875em; }
.markdown-body h6 { 
    font-size: 0.85em;
    color: var(--text-secondary, #57606a);
}

.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre,
.markdown-body details {
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body blockquote {
    padding: 0 1em;
    color: var(--text-secondary, #57606a);
    border-left: 0.25em solid var(--border-color, #d0d7de);
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2em;
}

.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
    margin-top: 0;
    margin-bottom: 0;
}

.markdown-body li {
    word-wrap: break-all;
}

.markdown-body li + li {
    margin-top: 0.25em;
}

.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
}

.markdown-body pre {
    position: relative;
    margin: 0 0 1rem 0;
    border-radius: 6px;
    overflow: auto;
    /* 轻微增加内边距使代码块更美观 */
    padding: 16px;
}

.markdown-body pre > code {
    font-size: 0.85rem;
}

body.dark-mode .markdown-body pre {
    background-color: #1e1e2e !important; /* 深色但区别于普通文本区域的背景色 */
    border: 1px solid #30363d !important;
    padding: 1em !important;
    margin-bottom: 16px !important;
    border-radius: 6px !important;
}

/* 确保深色模式下的代码高亮部分能正常显示 */
body.dark-mode .markdown-body .hljs {
    background-color: transparent !important; /* 确保代码高亮区域没有自己的背景色 */
    padding: 0 !important; /* 移除内边距防止嵌套内边距问题 */
}

.markdown-body pre .copy-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    color: #57606a;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(31, 35, 40, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.1s ease-in-out;
    opacity: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.markdown-body pre:hover .copy-button {
    opacity: 1;
}

.markdown-body pre .copy-button:hover {
    background-color: #f6f8fa;
    color: #0969da;
}

.markdown-body pre .copy-button.copied {
    color: #1a7f37;
    border-color: #1a7f37;
}

body.dark-mode .markdown-body pre .copy-button {
    color: #8b949e;
    background-color: rgba(13, 17, 23, 0.8);
    border-color: rgba(240, 246, 252, 0.1);
}

body.dark-mode .markdown-body pre .copy-button:hover {
    color: #2f81f7;
    background-color: #30363d;
    border-color: #8b949e;
}

body.dark-mode .markdown-body pre .copy-button.copied {
    color: #3fb950;
    border-color: #3fb950;
}

.markdown-body pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.markdown-body pre::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.markdown-body pre::-webkit-scrollbar-track {
    background-color: transparent;
}

body.dark-mode .markdown-body pre::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

.markdown-body table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow: auto;
    border-spacing: 0;
    border-collapse: collapse;
}

.markdown-body table th {
    font-weight: 600;
    padding: 6px 13px;
    border: 1px solid var(--border-color, #d0d7de);
}

.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid var(--border-color, #d0d7de);
}

.markdown-body table tr {
    background-color: var(--card-bg, #ffffff);
    border-top: 1px solid var(--border-color, #d0d7de);
}

.markdown-body table tr:nth-child(2n) {
    background-color: var(--tool-item-bg, #f6f8fa);
}

.markdown-body img {
    max-width: 100%;
    box-sizing: border-box;
    background-color: var(--card-bg, #ffffff);
    border-radius: 6px;
    transition: opacity 0.3s ease;
    display: inline-block;
    position: relative;
}

.markdown-body a {
    color: var(--primary-color, #0969da);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

/* 深色模式适配 */
body.dark-mode .markdown-body {
    /* color: #c9d1d9; 这条规则已在上面使用!important */
    /* background-color: transparent; 这条规则已在上面使用!important */
}

body.dark-mode .markdown-body code {
    /* background-color: rgba(110, 118, 129, 0.4); 这条规则已被更精确的选择器替代 */
}

body.dark-mode .markdown-body table tr {
    background-color: #0d1117;
    border-color: #30363d;
}

body.dark-mode .markdown-body table tr:nth-child(2n) {
    background-color: #161b22;
}

body.dark-mode .markdown-body table th,
body.dark-mode .markdown-body table td {
    border-color: #30363d;
}

body.dark-mode .markdown-body blockquote {
    color: #8b949e;
    border-left-color: #30363d;
}

body.dark-mode .markdown-body h6 {
    color: #8b949e;
}

/* 代码块的滚动条样式 */
.markdown-body pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.markdown-body pre::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.markdown-body pre::-webkit-scrollbar-track {
    background-color: transparent;
}

body.dark-mode .markdown-body pre::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 代码高亮主题 */
.markdown-body .hljs {
    display: block;
    overflow-x: auto;
    color: var(--text-color);
    background: transparent; /* 不使用独立背景色，依靠pre元素提供背景 */
    padding: 0; /* 移除内边距 */
}

.markdown-body .hljs-comment,
.markdown-body .hljs-quote {
    color: #7a7a7a;
    font-style: italic;
}

.markdown-body .hljs-keyword,
.markdown-body .hljs-selector-tag,
.markdown-body .hljs-subst {
    color: #f92672;
}

.markdown-body .hljs-number,
.markdown-body .hljs-literal,
.markdown-body .hljs-variable,
.markdown-body .hljs-template-variable,
.markdown-body .hljs-tag .hljs-attr {
    color: #0550ae;
}

.markdown-body .hljs-string,
.markdown-body .hljs-doctag {
    color: #0a6640;
}

.markdown-body .hljs-title,
.markdown-body .hljs-section,
.markdown-body .hljs-selector-id {
    color: #0550ae;
    font-weight: bold;
}

/* JSON 语法高亮 */
.hljs-attr {
    color: #0550ae;
}

.hljs-string {
    color: #032f62;
}

.hljs-number, 
.hljs-literal {
    color: #005cc5;
}

.hljs-comment {
    color: #6a737d;
    font-style: italic;
}

body.dark-mode .hljs-attr {
    color: #79b8ff;
}

body.dark-mode .hljs-string {
    color: #a5d6ff;
}

body.dark-mode .hljs-number,
body.dark-mode .hljs-literal {
    color: #79c0ff;
}

body.dark-mode .hljs-comment {
    color: #8b949e;
}

/* 引用区块样式 */
.markdown-body blockquote {
    padding: 0 1em;
    color: #57606a;
    border-left: 0.25em solid #d0d7de;
}

body.dark-mode .markdown-body blockquote {
    color: #8b949e;
    border-left-color: #30363d;
}

/* 代码块中的代码样式 */
.markdown-body pre > code {
    padding: 0;
    margin: 0;
    font-size: 13.6px;
    word-break: normal;
    white-space: pre;
    background: transparent;
    border: 0;
    display: block;
    overflow: auto;
    line-height: inherit;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* 行内代码样式 */
.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 0.9em;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body.dark-mode .markdown-body code {
    background-color: rgba(110, 118, 129, 0.4);
}

/* 深色模式下的代码高亮 */
body.dark-mode .markdown-body .hljs-string,
body.dark-mode .markdown-body .hljs-doctag {
    color: #7ee787;
}

body.dark-mode .markdown-body .hljs-number,
body.dark-mode .markdown-body .hljs-literal,
body.dark-mode .markdown-body .hljs-variable,
body.dark-mode .markdown-body .hljs-template-variable,
body.dark-mode .markdown-body .hljs-tag .hljs-attr {
    color: #79b8ff;
}

body.dark-mode .markdown-body .hljs-title,
body.dark-mode .markdown-body .hljs-section,
body.dark-mode .markdown-body .hljs-selector-id {
    color: #79b8ff;
    font-weight: bold;
}

/* 添加 JSON 特定的语法高亮规则 */
pre.language-json .hljs-attr,
.hljs-property {
    color: #0550ae;
}

pre.language-json .hljs-string {
    color: #0a6640;
}

pre.language-json .hljs-number,
pre.language-json .hljs-literal {
    color: #0550ae;
}

body.dark-mode pre.language-json .hljs-attr,
body.dark-mode .hljs-property {
    color: #79b8ff;
}

body.dark-mode pre.language-json .hljs-string {
    color: #7ee787;
}

body.dark-mode pre.language-json .hljs-number,
body.dark-mode pre.language-json .hljs-literal {
    color: #79b8ff;
}

/* 确保注释部分是灰色 */
.hljs-comment {
    color: #6a737d !important;
    font-style: italic;
}

/* 图片加载错误时显示的提示 */
.markdown-body img.error-image {
    min-height: 100px;
    background-color: #f8f9fa;
    border: 1px dashed #d0d7de;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #57606a;
    position: relative;
}

.markdown-body img.error-image:after {
    content: "图片加载失败";
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

.server-header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.github-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-block;
    background-color: var(--tool-item-bg);
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 42px;
    transition: all 0.2s;
    position: relative;
}

.github-btn i {
    font-size: 1.3rem;
    line-height: 42px;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

.github-btn:hover {
    transform: translateY(-2px);
    background-color: var(--tag-bg);
    color: var(--tag-color);
}

/* 社交媒体分享按钮样式 */
.social-share-container {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 8px 0;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.share-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 中文社交媒体按钮样式 */
.wechat-share {
    background-color: #2DC100;
}

.weibo-share {
    background-color: #E6162D;
}

.xiaohongshu-share {
    background-color: #FF2442;
}

.zhihu-share {
    background-color: #0066FF;
}

/* 英文社交媒体按钮样式 */
.twitter-share {
    background-color: #1DA1F2;
}

.facebook-share {
    background-color: #4267B2;
}

.reddit-share {
    background-color: #FF4500;
}

.linkedin-share {
    background-color: #0077B5;
}

/* 通用按钮样式 */
.email-share {
    background-color: #777;
}

/* 微信二维码弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--text-color);
}

#wechat-qrcode {
    width: 200px;
    height: 200px;
    margin: 15px auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--text-color);
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-share-buttons {
        gap: 6px;
    }
    
    .share-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* README内容字体大小统一 */
.markdown-body h1 {
    font-size: 20px;
}

.markdown-body h2 {
    font-size: 18px;
}

.markdown-body h3 {
    font-size: 16px;
}

.markdown-body p, 
.markdown-body ul, 
.markdown-body ol,
.markdown-body li {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ======= 服务器详情页面布局样式 ======= */

/* 服务器头部区域 */
.server-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
        "logo info";
    gap: 40px;
    margin-bottom: 20px;
    position: relative;
}

.server-logo {
    grid-area: logo;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.1);
    margin-right: 15px;
}

.server-info {
    grid-area: info;
    padding-left: 10px;
}

.server-info h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.server-meta {
    display: flex;
    color: #666;
    font-size: 14px;
    align-items: center;
}

.server-meta > div {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.server-meta i {
    margin-right: 6px;
}

.server-actions {
    display: flex;
    margin: 20px 0;
}

/* 按钮样式 */
.github-btn, .connect-btn {
    padding: 10px 20px;
    border-radius: 6px;
    margin-right: 10px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.github-btn i, .connect-btn i {
    margin-right: 8px;
}

.github-btn {
    background-color: #333;
    color: white;
}

.connect-btn {
    background-color: #007bff;
    color: white;
}

/* 服务器描述 */
.server-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

/* GitHub按钮样式覆盖 */
.github-icon-btn {
    display: none;
}

/* 社交分享按钮修正 */
.social-share-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.github-share-btn {
    margin-left: auto;
    background-color: #24292e;
    color: white;
}

.github-share-btn:hover {
    background-color: #444;
}

/* 移动端专用区域 */
.mobile-actions {
    display: none;
}

.mobile-github-btn {
    display: none;
}

/* 主题切换下拉菜单 */
.theme-toggle {
    position: relative;
    display: inline-block;
}

.theme-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 150px;
    display: none;
    overflow: hidden;
}

.theme-toggle:hover .theme-dropdown {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
}

.theme-option:hover {
    background-color: var(--tag-bg);
}

.theme-option i {
    width: 18px;
    text-align: center;
}

/* 移动设备响应式样式 */
@media (max-width: 768px) {
    /* 减少主内容区域的填充 */
    .main-content {
        padding: 8px;
    }
    
    /* 调整服务器头部区域 */
    .server-header {
        margin-bottom: 12px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "logo info";
        gap: 12px;
        padding: 15px;
    }
    
    /* 参考首页样式调整logo尺寸 */
    .server-logo {
        width: 52px;
        height: 52px;
        grid-area: logo;
        border-radius: 8px;
    }
    
    .server-logo img {
        width: 52px;
        height: 52px;
        border-radius: 8px;
        object-fit: contain;
    }
    
    /* 内容区域布局调整为单列 */
    .page-content {
        flex-direction: column;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .content-main {
        width: 100%;
        margin-right: 0;
        padding: 10px;
        margin-bottom: 0;
        box-sizing: border-box;
    }
    
    .content-sidebar {
        width: 100%;
        margin-top: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        box-sizing: border-box;
    }
    
    /* 减少各区域内部填充 */
    .server-header-container,
    .tab-content,
    .tab-pane,
    .overview-section,
    .readme-content {
        padding: 8px;
    }
    
    /* 调整标签按钮大小和填充 */
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 14px;
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
    
    /* 社交分享按钮调整 */
    .social-share-buttons {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    /* 移动端显示特定元素 */
    .mobile-actions {
        display: inline-flex;
        align-items: center;
        margin-left: 8px;
        vertical-align: middle;
        font-size: 0.85rem;
    }
    
    /* 调整服务器描述区域 */
    .server-description {
        margin-bottom: 15px;
    }
    
    /* 调整服务器信息区域 */
    .server-info h1 {
        font-size: 20px;
    }
    
    .server-meta {
        flex-wrap: wrap;
    }
    
    .server-meta > div {
        margin-right: 10px;
        margin-bottom: 5px;
    }
    
    /* 修复概览和内容标签对齐问题 */
    .tabs-container {
        padding: 0;
    }
    
    /* 猜你喜欢区域调整 */
    .content-sidebar {
        margin-top: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .recommended-servers {
        margin-top: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 10px;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 确保整体内容对齐 */
    .page-content, 
    .tabs-container,
    .tab-content,
    .overview-content,
    .readme-content,
    .recommended-servers,
    .sidebar-body,
    .sidebar-header {
        width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    
    /* 减少内容之间的垂直间距 */
    .overview-section, 
    .tab-pane {
        margin-bottom: 10px;
    }
    
    /* 调整猜你喜欢部分 */
    .sidebar-header h2 {
        margin-top: 5px;
        margin-bottom: 10px;
        font-size: 18px;
        padding-left: 10px;
    }
    
    /* 移除卡片间的大间距 */
    .main-content > div:not(:first-child) {
        margin-top: 10px;
    }
    
    /* 调整卡片样式使其看起来更统一 */
    .recommended-servers .sidebar-body {
        padding: 0 10px;
    }
    
    /* 消除两个区域之间的大间距 */
    .tab-content, .recommended-servers {
        margin-bottom: 0;
    }
    
    /* 将猜你喜欢部分上移 */
    .content-sidebar {
        margin-top: -20px;
    }
    
    /* 让猜你喜欢区域与上方内容保持一致的宽度 */
    .recommended-servers {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
    }
    
    /* 所有区域使用统一的内边距 */
    .tab-content, 
    .tab-pane, 
    .overview-content,
    .sidebar-body,
    .sidebar-header {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 社交分享按钮移动端专用样式 */
    .social-share-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }
} 

/* 移动端上下布局样式 */
.mobile-section-title {
    display: none;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    /* 隐藏桌面端选项卡，在小屏幕上移除选项卡切换功能 */
    .desktop-tabs {
        display: none;
    }
    
    /* 在移动端显示所有面板内容 */
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* 显示移动端分区标题 */
    .mobile-section-title {
        display: block;
    }
    
    /* 添加分节间距 */
    .tab-pane:not(:last-child) {
        margin-bottom: 1rem;
    }
    
    /* 每个分节添加视觉区分 */
    .tab-pane {
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* 分节标题添加额外样式 */
    .mobile-section-title {
        position: relative;
        padding-left: 1rem;
    }
    
    .mobile-section-title:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.3rem;
        bottom: 0.8rem;
        width: 4px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }
} 

/* 安装选项卡样式 */
.installation-content {
    margin-top: 20px;
}

.installation-tabs {
    margin-top: 20px;
}

.installation-tab-buttons {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.installation-tab-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.installation-tab-btn:hover {
    color: #4a7bff;
}

.installation-tab-btn.active {
    color: #4a7bff;
    border-bottom: 2px solid #4a7bff;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

.dark-mode .tab-icon {
    color: #bbb;
}

.installation-tab-content {
    padding: 10px 0;
}

.installation-tab-pane {
    display: none;
}

.installation-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.installation-tab-pane h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.code-block {
    position: relative;
    background-color: #f0f3f8; /* 更深的背景色，增加对比度 */
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow: hidden;
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    overflow-x: auto;
}

.code-block code {
    display: block;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.code-block .copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.code-block:hover .copy-button {
    opacity: 1;
}

.code-block .copy-button:hover {
    background-color: #eee;
}

.code-block .copy-button.copied {
    background-color: #4caf50;
    color: white;
    border-color: #4caf50;
}

.installation-note {
    background-color: #f0f7ff;
    border-left: 4px solid #4a7bff;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.installation-note p {
    margin: 0;
    color: #333;
}

.installation-note i {
    color: #4a7bff;
    margin-right: 8px;
}

/* 深色模式下的安装选项卡样式 */
.dark-mode .installation-tab-buttons {
    border-bottom: 1px solid #444;
}

.dark-mode .installation-tab-btn {
    color: #bbb;
}

.dark-mode .installation-tab-btn:hover {
    color: #5f9cff;
}

.dark-mode .installation-tab-btn.active {
    color: #5f9cff;
    border-bottom: 2px solid #5f9cff;
}

.dark-mode .installation-tab-pane h3 {
    color: #eee;
}

.dark-mode .code-block {
    background-color: #282c34; /* 深色模式下更深的背景色 */
    border: 1px solid #3a3f4b;
}

.dark-mode .code-block code {
    color: #f8f8f2;
}

.dark-mode .code-block .copy-button {
    background-color: rgba(60, 60, 60, 0.7);
    border: 1px solid #555;
    color: #ddd;
}

.dark-mode .code-block .copy-button:hover {
    background-color: #444;
}

.dark-mode .installation-note {
    background-color: #2a2d3a;
    border-left: 4px solid #5f9cff;
}

.dark-mode .installation-note p {
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .installation-tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .installation-tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
    }
    
    .code-block {
        padding: 12px;
    }
    
    .code-block code {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* MCP URL生成器水平布局样式 */
.mcp-url-generator {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    gap: 15px;
    width: 100%;
}

.mcp-url-input-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
}

.mcp-url-input-container {
    position: relative;
    flex: 1;
}

.mcp-url-input-container .fa-lock {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
}

.mcp-url-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
    cursor: default;
}

.mcp-url-input:focus {
    outline: none;
    border-color: #4a7bff;
    box-shadow: 0 0 0 2px rgba(74, 123, 255, 0.2);
}

.generate-url-btn {
    padding: 10px 20px;
    background-color: #4a7bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    height: 40px;
}

.generate-url-btn:hover {
    background-color: #3a6ae9;
}

.generate-url-btn:active {
    background-color: #2a59d8;
}

/* 生成URL后的样式 */
.mcp-url-input.generated {
    background-color: #f0f7ff;
    border-color: #4a7bff;
    color: #333;
}

/* 深色模式下的样式 */
.dark-mode .mcp-url-input {
    background-color: #2a2a2a;
    border-color: #444;
    color: #ddd;
}

.dark-mode .mcp-url-input-container .fa-lock {
    color: #999;
}

.dark-mode .generate-url-btn {
    background-color: #5f9cff;
}

.dark-mode .generate-url-btn:hover {
    background-color: #4a8aee;
}

.dark-mode .generate-url-btn:active,
.dark-mode .generate-url-btn.generating {
    background-color: #3a79dd;
}

.dark-mode .mcp-url-input.generated {
    background-color: #2a2d3a;
    border-color: #5f9cff;
    color: #eee;
}

/* 按钮状态样式 */
.generate-url-btn.generating {
    background-color: #2a59d8;
    cursor: wait;
    pointer-events: none;
}

.generate-url-btn:disabled {
    background-color: #789ced;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .mcp-url-generator {
        gap: 10px;
    }
    
    .mcp-url-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .generate-url-btn {
        align-self: flex-end;
        margin-top: 5px;
    }
}

/* 使用选项卡新样式 */
.usage-section {
    margin-bottom: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background-color: #fdfdfd;
}

.dark-mode .usage-section {
    border-color: #444;
    background-color: #2a2a2a;
}

.usage-section:last-child {
    margin-bottom: 0;
}

.section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dark-mode .section-title {
    color: #eee;
    border-bottom-color: #444;
}

.common-section {
    margin-bottom: 30px;
}

.client-tabs, .sdk-tabs {
    margin-top: 20px;
}

.installation-section .installation-tab-buttons,
.sdk-section .installation-tab-buttons {
    margin-bottom: 15px;
}

.installation-section h4,
.sdk-section h4 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

.dark-mode .installation-section h4,
.dark-mode .sdk-section h4 {
    color: #ddd;
}

/* 响应式样式 - 使用选项卡 */
@media (max-width: 768px) {    
    .usage-section {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .installation-section h4,
    .sdk-section h4 {
        font-size: 1.1rem;
    }
} 

/* 复制按钮模式样式 */
.copy-btn-mode {
    background-color: #28a745 !important;
}

.copy-btn-mode:hover {
    background-color: #218838 !important;
}

.dark-mode .copy-btn-mode {
    background-color: #2ea043 !important;
}

.dark-mode .copy-btn-mode:hover {
    background-color: #238636 !important;
} 

/* MCP配置JSON公共区域 */
.mcp-config-json {
    margin-bottom: 20px;
}

.common-json-block {
    position: relative;
    background-color: #f0f3f8; /* 更深的背景色，增加对比度 */
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.common-json-block pre {
    background-color: transparent;
    padding: 15px;
    margin: 0;
    overflow-x: auto;
}

.common-json-block code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* 深色模式 */
.dark-mode .common-json-block {
    background-color: #282c34; /* 深色模式下更深的背景色 */
    border: 1px solid #3a3f4b;
}

.dark-mode .common-json-block code {
    color: #f8f8f2;
} 

/* 暂时隐藏SDK区块，等待第二版添加功能 */
.usage-section.sdk-section {
    display: none;
}

/* 当SDK区块启用时，取消下面的注释
.sdk-section {
    margin-top: 2rem;
}
*/

/* 改进工具选项卡样式 */
.tools-content {
    padding: 1rem 0;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark-mode .tool-item {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-header:hover {
    opacity: 0.85;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    transition: all 0.3s ease;
}

.dark-mode .toggle-icon {
    background-color: rgba(115, 138, 219, 0.2);
    color: #738adb;
}

.tool-header.active .toggle-icon {
    transform: rotate(180deg);
}

.tool-name {
    color: #4361ee;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.dark-mode .tool-name {
    color: #738adb;
}

.tool-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.tool-description {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    background-color: rgba(67, 97, 238, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #4361ee;
}

.dark-mode .tool-description {
    color: #ccc;
    background-color: rgba(115, 138, 219, 0.05);
    border-left-color: #738adb;
}

.tool-parameters {
    width: 100%;
    margin-top: 0.5rem;
}

.tool-parameters h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    padding-left: 0.4rem;
    border-left: 2px solid #4361ee;
}

.dark-mode .tool-parameters h4 {
    color: #eee;
    border-left-color: #738adb;
}

.parameters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.parameter-item {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dark-mode .parameter-item {
    background-color: #333;
    border-color: #444;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.param-name {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.dark-mode .param-name {
    color: #eee;
}

.required-badge {
    /* background-color: #dc3545; */ /* 移除红色背景 */
    background-color: transparent; /* 设置背景为透明 */
    color: #dc3545; /* 保留红色文字以示强调 */
    font-size: 0.7em; /* 稍微调小字体 */
    padding: 0.1em 0.3em; /* 调整内边距 */
    border: 1px solid #dc3545; /* 添加红色边框 */
    border-radius: 3px;
    margin-left: 0.5rem;
    font-weight: normal;
    vertical-align: middle; /* 垂直居中 */
}

.param-type {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    display: inline-block;
}

.dark-mode .param-type {
    color: #aaa;
    background-color: #222;
}

.param-description {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    color: #444;
}

.dark-mode .param-description {
    color: #bbb;
}

.param-default {
    font-size: 0.8rem;
    color: #6c757d;
    font-family: monospace;
    margin-top: 0.2rem;
    background-color: #f8f9fa;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    display: inline-block;
}

.dark-mode .param-default {
    color: #aaa;
    background-color: #222;
}

/* 工具项展开动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-content.show {
    animation: slideDown 0.3s ease forwards;
}

/* 中英文对照显示样式 */
.description-en, 
.param-description-en {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border-left: 3px solid #e9ecef;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

.dark-mode .description-en,
.dark-mode .param-description-en {
    color: #aaa;
    background-color: #2a2a2a;
    border-left-color: #444;
}

/* 快速工具过滤器 */
.tools-filter {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
}

.tools-filter input {
    width: 100%;
    padding: 0.6rem 2.8rem 0.6rem 2.2rem; /* 右侧增加空间给计数显示 */
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.dark-mode .tools-filter input {
    background-color: #2a2a2a;
    border-color: #444;
    color: #eee;
}

.tools-filter input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.tools-filter i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: none;
}

.dark-mode .tools-filter i {
    color: #aaa;
}

.tools-count {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.dark-mode .tools-count {
    color: #aaa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-item {
        padding: 0.6rem 0.8rem;
    }
    
    .tool-name {
        font-size: 1rem;
    }
    
    .tool-description {
        font-size: 0.85rem;
        padding: 0.6rem;
        margin-bottom: 0.75rem;
    }
    
    .parameters-list {
        gap: 0.6rem;
    }
    
    .parameter-item {
        padding: 0.6rem 0.8rem;
    }
    
    .param-name {
        font-size: 0.9rem;
    }
    
    .tool-parameters h4 {
        font-size: 0.95rem;
    }
    
    .tools-filter input {
        padding: 0.5rem 2.5rem 0.5rem 2rem;
    }
    
    /* 移动端服务器名称容器调整 */
    .server-name-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* 移动端内联操作区域调整 */
    .server-actions-inline {
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    /* 移动端内联分享区域调整 */
    .social-share-inline {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    /* 移动端分享按钮调整 */
    .social-share-buttons-inline {
        gap: 6px;
    }
    
    .share-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    /* 移动端收藏区域调整 */
    .favorite-section-inline {
        gap: 6px;
    }
    
    .favorite-btn-detail {
        font-size: 16px;
        padding: 6px;
    }
    
    .favorite-label-inline {
        font-size: 13px;
    }
    
    .share-label-inline {
        font-size: 13px;
    }
}

/* 为禁用的生成按钮添加灰色样式 */
.common-generate-btn.disabled {
    background-color: #cccccc; /* 灰色背景 */
    color: #666666; /* 深灰色文字 */
    cursor: not-allowed; /* 禁用鼠标指针 */
    opacity: 0.7; /* 轻微透明 */
}

.common-generate-btn.disabled:hover {
    background-color: #cccccc; /* 悬停时保持灰色 */
}

/* 为激活的JSON复制按钮添加高亮样式 */
.mcp-config-json .copy-button.active {
    color: #4CAF50; /* 例如，用绿色表示可复制 */
    /* 或者添加其他高亮效果，例如 */
    /* box-shadow: 0 0 5px rgba(76, 175, 80, 0.7); */
}

.mcp-config-json .copy-button.active:hover {
    color: #367c39; /* 悬停时颜色加深 */
}

.dark-mode .required-badge {
    color: #ff7b72; /* 深色模式下使用亮红色文字 */
    border-color: #ff7b72; /* 深色模式下使用亮红色边框 */
    background-color: transparent; /* 确保深色模式下背景也是透明的 */
}

/* 服务器meta行布局调整 - 支持分享和收藏功能 */
.server-meta {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* 服务器信息组合 - 作者、星数、GitHub图标和收藏功能保持在一起 */
.server-info-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 服务器操作区域 - 在meta行中 */
.server-actions-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* meta行中的分享区域 */
.social-share-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* meta行中的分享标签 */
.share-label-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    white-space: nowrap;
}

/* meta行中的分享按钮容器 */
.social-share-buttons-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* meta行中的收藏区域 */
.favorite-section-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* meta行中的收藏标签 */
.favorite-label-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* 移动端meta行调整 */
@media (max-width: 768px) {
    .server-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .server-info-group {
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .server-actions-meta {
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .social-share-meta {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-share-buttons-meta {
        gap: 6px;
    }
    
    .favorite-section-meta {
        gap: 6px;
    }
    
    .share-label-meta,
    .favorite-label-meta {
        font-size: 13px;
    }
    
    /* 移动端服务器名称行调整 */
    .server-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .server-subscribe-area {
        align-items: flex-start;
    }
    
    .server-subscribe-area {
        width: 100%;
        justify-content: flex-start;
    }
    
    .subscribe-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .subscribe-btn i {
        font-size: 14px;
    }
    
    .direct-connection-badge {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .direct-connection-badge i {
        font-size: 14px;
    }
}

/* =================================================================== */
/* 分享功能样式 */
/* =================================================================== */

/* 微信二维码模态框样式 */
#wechat-qrcode-modal {
    display: none;
}

#wechat-qrcode-modal .modal-content {
    max-width: 400px;
    text-align: center;
    position: relative;
}

#wechat-qrcode-modal .modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color-secondary, #666);
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s ease;
}

#wechat-qrcode-modal .modal-close:hover {
    color: var(--text-color, #333);
}

#wechat-qrcode-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color, #333);
    font-size: 18px;
    font-weight: 600;
}

#wechat-qrcode {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#wechat-qrcode img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#wechat-qrcode-modal p {
    margin-top: 15px;
    color: var(--text-color-secondary, #666);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.qr-error {
    color: var(--error-color, #e74c3c) !important;
    font-style: italic;
}

/* 分享备选方案模态框样式 */
.share-fallback-modal .modal-content {
    max-width: 500px;
}

.share-fallback-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color, #333);
    font-size: 18px;
    font-weight: 600;
}

.share-text-area {
    width: 100%;
    height: 120px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    background-color: var(--input-bg, #f8f9fa);
    color: var(--text-color, #333);
    box-sizing: border-box;
}

.share-text-area:focus {
    outline: none;
    border-color: var(--primary-color, #4a7bff);
    box-shadow: 0 0 0 2px rgba(74, 123, 255, 0.1);
}

.share-actions {
    text-align: center;
    margin-top: 15px;
}

.copy-share-btn {
    margin-right: 10px;
}

.copy-share-btn i {
    margin-right: 5px;
}

/* 深色模式适配 */
.dark-mode #wechat-qrcode-modal .modal-content,
.dark-mode .share-fallback-content {
    background-color: var(--card-bg-dark, #2d3748);
    color: var(--text-color-dark, #e2e8f0);
}

.dark-mode #wechat-qrcode-modal h3,
.dark-mode .share-fallback-content h3 {
    color: var(--text-color-dark, #e2e8f0);
}

.dark-mode #wechat-qrcode-modal p {
    color: var(--text-color-secondary-dark, #a0aec0);
}

.dark-mode .share-text-area {
    background-color: var(--input-bg-dark, #4a5568);
    border-color: var(--border-color-dark, #4a5568);
    color: var(--text-color-dark, #e2e8f0);
}

.dark-mode .share-text-area:focus {
    border-color: var(--primary-color, #4a7bff);
}

/* 分享功能响应式设计 */
@media (max-width: 768px) {
    #wechat-qrcode-modal .modal-content,
    .share-fallback-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    #wechat-qrcode {
        min-height: 180px;
    }
    
    #wechat-qrcode img {
        max-width: 180px;
        max-height: 180px;
    }
    
    .share-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-share-btn {
        margin-right: 0;
    }
}

/* =================================================================== */
/* API Key 配置区域样式 */
/* =================================================================== */

/* API Key 提示区域增加间距 */
.api-key-info-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .api-key-info-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* 客户端安装区域顶部间距 */
.client-installation-section {
    margin-top: 20px;
    padding-top: 15px;
}