* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-bottom: 20px; */
    text-align: center;
    position: relative;
    padding-top: 10px;
    padding-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo i {
    color: #ff3852;
    font-size: 2rem;
    margin-right: 10px;
}

header h1 {
    color: #333;
    font-size: 1.8rem;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.actions {
    display: flex;
    gap: 10px;
}

.actions button {
    background: none;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.actions button.active {
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
}

/* 主内容区域 */
main {
    display: flex;
    flex: 1;
    gap: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 左侧面板 */
.left-panel {
    flex: 0 0 350px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.platform-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 10px;
}

.platform-tab {
    background: none;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    border-radius: 5px;
    margin-right: 5px;
}

.platform-tab.active {
    color: #ff3852;
    font-weight: bold;
    background-color: #fff0f0;
}

.refresh-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    border-radius: 5px;
}

.refresh-btn:hover {
    background-color: #f5f5f5;
}

.hot-list {
    flex: 1;
    overflow-y: auto;
}

#hot-news-list {
    list-style: none;
}

.hot-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.hot-item:hover {
    background-color: #f9f9f9;
}

.hot-item.active {
    background-color: #f9f9f9;
}

.hot-rank {
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 12px;
    color: #999;
    width: 25px;
    text-align: center;
}

.hot-rank.top1, .hot-rank.top2, .hot-rank.top3 {
    color: #fff;
    background-color: #ff3852;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 0.9rem;
}

.hot-rank.top2 {
    background-color: #ff9500;
}

.hot-rank.top3 {
    background-color: #ffcc00;
}

.hot-title {
    flex: 1;
    font-size: 0.95rem;
}

.hot-heat {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

/* 右侧面板 */
.right-panel {
    flex: 1;
    padding: 0 25px;
    overflow-y: auto;
}

.content-area {
    position: relative;
    overflow: hidden;
}

.news-content {
    position: relative;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

/* 确保所有内容区域初始隐藏 */
.news-content {
    display: none;
}

/* 占位符样式 */
.placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
}

/* 加载状态样式 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 1rem;
}

/* 错误容器样式 */
.error-container {
    text-align: center;
    padding: 30px;
    background-color: #fff5f5;
    border: 1px solid #ffebeb;
    border-radius: 10px;
    margin: 20px 0;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ff3852;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(255, 56, 82, 0.2);
}

.author-meta h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.author-meta p {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0;
}

.content-title {
    font-size: 1.9rem;
    margin-top: 25px;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: bold;
    color: #222;
    letter-spacing: -0.01em;
}

.loading::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    border-top-color: #ff3852;
    animation: spin 1s linear infinite;
}

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

.ai-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: none;
    background: transparent;
}

.text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    padding: 25px 30px 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
    border: none;
}

.text-content p {
    margin-bottom: 15px;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.text-content p:first-child {
    font-weight: 600;
    color: #ff3852;
    font-size: 1.1rem;
}

.image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 30px;
    min-height: 200px;
    display: block;
}

.image-container::before {
    content: "图片生成中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    display: block;
    font-size: 1.2rem;
}

.image-container:not(:empty)::before,
.image-container.loaded::before {
    display: none;
}

.image-container.error::before {
    content: "图片加载失败，请稍后再试";
    color: #e74c3c;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

footer {
    text-align: center;
    /* margin-top: 30px; */
    padding-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .left-panel {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
    }
    
    .right-panel {
        width: 100%;
        padding: 15px;
    }
    
    .platform-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    
    .platform-tab {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .news-content {
        padding: 25px 20px 30px;
    }
    
    .theme-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

/* 加载状态样式 */
.loading-list {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* AI生成内容样式增强 */
.text-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    /* margin-bottom: 20px; */
}

.text-content p {
    margin-bottom: 15px;
}

.text-content p:first-child {
    font-weight: bold;
    color: #ff3852;
}

/* 添加到现有CSS中 */
.typing-indicator {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typing-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.typing-dots span {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #007bff;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.dot-animation {
    display: inline-block;
    animation: dotAnimation 1.5s infinite;
}

@keyframes dotAnimation {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin: 10px auto;
}

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

.retry-indicator {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

/* 简化主题切换按钮样式 */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
}

.theme-toggle::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 10.999c1.437.438 2.562 1.564 2.999 3.001.44-1.437 1.565-2.562 3.001-3-1.436-.439-2.561-1.563-3.001-3-.437 1.436-1.562 2.561-2.999 2.999zm8.001.001c.958.293 1.707 1.042 2 2.001.291-.959 1.042-1.709 1.999-2.001-.957-.292-1.707-1.042-2-2-.293.958-1.042 1.708-1.999 2zm-1-9c-.437 1.437-1.563 2.562-2.998 3.001 1.438.44 2.561 1.564 3.001 3.002.437-1.438 1.563-2.563 2.996-3.002-1.433-.437-2.559-1.564-2.999-3.001zm-7.001 22c-6.617 0-12-5.383-12-12s5.383-12 12-12c1.894 0 3.63.497 5.37 1.179-2.948.504-9.37 3.266-9.37 10.821 0 7.454 5.917 10.208 9.37 10.821-1.5.846-3.476 1.179-5.37 1.179z'/%3E%3C/svg%3E");
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

body.dark-mode .theme-toggle {
    background-color: #333;
}

body.dark-mode .theme-toggle::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 9c1.654 0 3 1.346 3 3s-1.346 3-3 3-3-1.346-3-3 1.346-3 3-3zm0-2c-2.762 0-5 2.238-5 5s2.238 5 5 5 5-2.238 5-5-2.238-5-5-5zm0-2c.34 0 .672.033 1 .08v-2.08h-2v2.08c.328-.047.66-.08 1-.08zm-4.184 1.401l-1.472-1.473-1.414 1.415 1.473 1.473c.401-.537.876-1.013 1.413-1.415zm9.782 1.414l1.473-1.473-1.414-1.414-1.473 1.473c.537.402 1.012.878 1.414 1.414zm-5.598 11.185c-.34 0-.672-.033-1-.08v2.08h2v-2.08c-.328.047-.66.08-1 .08zm4.185-1.402l1.473 1.473 1.415-1.415-1.473-1.472c-.403.536-.879 1.012-1.415 1.414zm-11.185-5.598c0-.34.033-.672.08-1h-2.08v2h2.08c-.047-.328-.08-.66-.08-1zm13.92-1c.047.328.08.66.08 1s-.033.672-.08 1h2.08v-2h-2.08zm-12.519 5.184l-1.473 1.473 1.414 1.414 1.473-1.473c-.536-.402-1.012-.877-1.414-1.414z'/%3E%3C/svg%3E");
}

/* 修复深色模式样式 */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode main {
    background-color: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode header h1 {
    color: #e0e0e0;
}

body.dark-mode .subtitle {
    color: #aaa;
}

body.dark-mode .left-panel {
    border-right-color: #333;
}

body.dark-mode .hot-item {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .hot-item.active {
    background-color: #444;
    border-left-color: #ff6b81;
}

body.dark-mode .hot-item:hover {
    background-color: #3a3a3a;
}

body.dark-mode .hot-title {
    color: #e0e0e0;
}

body.dark-mode .content-area {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .content-title {
    color: #f0f0f0;
}

body.dark-mode .author-meta h3 {
    color: #e0e0e0;
}

body.dark-mode .author-meta p {
    color: #aaa;
}

body.dark-mode .author-info {
    background-color: #333;
}

body.dark-mode .text-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .image-container {
    background-color: #333;
    border-color: #444;
}

body.dark-mode .share-btn {
    background-color: #444;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode .share-btn:hover {
    background-color: #555;
}

body.dark-mode .platform-tab {
    background-color: #333;
    color: #ccc;
    border-color: #444;
}

body.dark-mode .platform-tab.active {
    background-color: #444;
    color: #ff6b81;
    border-bottom-color: #ff6b81;
}

body.dark-mode .refresh-btn {
    color: #ccc;
}

body.dark-mode .placeholder {
    background-color: #2a2a2a;
    color: #aaa;
}

/* 添加分享按钮样式 */
.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 0 35px 30px;
}

.share-btn {
    background-color: #f5f5f5;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.share-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.share-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#copy-link:hover {
    background-color: #e0e0e0;
}

#share-weibo:hover {
    background-color: #ffd1d1;
    color: #e6162d;
}

#share-wechat:hover {
    background-color: #c7f7c7;
    color: #07c160;
}

/* 添加提示消息样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 修复骨架屏样式 */
.skeleton-screen {
    padding: 25px 30px;
    margin: 15px 0;
}

.skeleton-line {
    height: 20px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 修复错误容器样式 */
.error-container {
    padding: 30px;
    text-align: center;
    background-color: #fff0f0;
    border-radius: 12px;
    margin: 25px 35px;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-message {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.error-action {
    color: #666;
    margin-bottom: 15px;
}

.retry-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.retry-button:hover {
    background-color: #2980b9;
}

@media (prefers-color-scheme: dark) {
    .error-container {
        background-color: #3a2a2a;
    }
    
    .error-message {
        color: #ff6b6b;
    }
    
    .error-action {
        color: #aaa;
    }
    
    .skeleton-line {
        background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    }
}

/* 移除可能的调试边框 */
.news-content * {
    outline: none !important;
}

/* 修复可能的空容器样式 */
.empty-container, 
.debug-container,
.preview-box {
    display: none !important;
} 

/* 默认主题样式 */
body {
    background-color: #fff;
    color: #333;
}

/* 暗黑模式样式 */
body.dark-mode {
    background-color: #222;
    color: #e0e0e0;
}

.header, .content-area, .news-content, .placeholder, .image-container {
    transition: background-color 0.3s, color 0.3s; /* 添加过渡效果 */
}

/* 其他元素的暗黑模式样式 */
.header.dark-mode {
    background-color: #333;
}

.content-area.dark-mode {
    background-color: #2a2a2a;
}

.placeholder.dark-mode {
    background-color: #444;
}

.image-container.dark-mode {
    background-color: #333;
}

/* 暗黑模式下的新闻内容样式 */
body.dark-mode .news-content {
    background-color: #333;
    color: #e0e0e0;
}

/* 暗黑模式下的作者信息样式 */
body.dark-mode .author-info {
    background-color: #333;
}

body.dark-mode .author-meta h3,
body.dark-mode .author-meta p {
    color: #e0e0e0;
}

/* 暗黑模式下的加载状态样式 */
body.dark-mode .loading {
    background-color: #333;
    color: #ccc;
}

/* 暗黑模式下的错误容器样式 */
body.dark-mode .error-container {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

/* 暗黑模式下的重试按钮样式 */
body.dark-mode .retry-button {
    background-color: #444;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode .retry-button:hover {
    background-color: #555;
}

/* 图片加载状态 */
.image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: #2a2a2a;
    color: #aaa;
    font-size: 1rem;
    border-radius: 12px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-height: 450px;
}

/* 移除图片图标 */
.image-loading::before {
    content: "图片生成中...";
    font-size: 1.2rem;
    margin-bottom: 60px;
    opacity: 0.8;
}

.image-loading::after {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 56, 82, 0.2);
    border-top-color: #ff3852;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
}

/* 添加背景动画效果 */
.image-loading {
    background: linear-gradient(120deg, #2a2a2a 30%, #333 38%, #2a2a2a 48%);
    background-size: 200% 100%;
    animation: loading-background 2s ease infinite;
}

@keyframes loading-background {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 亮色模式下的图片加载状态 */
body:not(.dark-mode) .image-loading {
    background-color: #f0f0f0;
    color: #666;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
    background: linear-gradient(120deg, #f0f0f0 30%, #f5f5f5 38%, #f0f0f0 48%);
    background-size: 200% 100%;
}

body:not(.dark-mode) .image-loading::after {
    border: 3px solid rgba(255, 56, 82, 0.1);
    border-top-color: #ff3852;
}

/* 生成的图片样式 */
.generated-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.generated-image:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 移动端适配样式 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0;
    }
    
    .left-panel {
        width: 100%;
        margin-right: 0;
        border-radius: 0;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .hot-item {
        position: relative;
        padding-right: 40px;
    }
    
    .toggle-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    
    .toggle-btn:before {
        content: "";
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #666;
        border-bottom: 2px solid #666;
        transform: rotate(45deg);
    }
    
    .hot-item.expanded .toggle-btn:before {
        transform: rotate(-135deg);
    }
    
    .mobile-content {
        display: none;
        background: #fff;
        border-top: 1px solid #eee;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }
    
    .hot-item.expanded + .mobile-content {
        display: block;
        max-height: 2000px;
        transition: max-height 0.5s ease-in;
    }
    
    .mobile-content-inner {
        padding: 15px;
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .mobile-title {
        font-size: 16px;
        font-weight: bold;
        margin: 0;
        color: #333;
    }
    
    .mobile-heat {
        font-size: 14px;
        color: #ff3852;
    }
    
    .mobile-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #ff3852;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 10px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .mobile-text-content {
        font-size: 15px;
        line-height: 1.6;
        color: #333;
    }
    
    .mobile-text-content .first-paragraph {
        font-weight: bold;
        font-size: 16px;
    }
    
    .mobile-image-container {
        margin-top: 15px;
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .mobile-image-container img,
    .mobile-image-container svg {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }
    
    /* 暗黑模式适配 */
    body.dark-mode .mobile-content {
        background: #222;
        border-top: 1px solid #333;
    }
    
    body.dark-mode .mobile-title {
        color: #eee;
    }
    
    body.dark-mode .mobile-text-content {
        color: #ddd;
    }
    
    body.dark-mode .toggle-btn:before {
        border-color: #999;
    }
}

/* 分享按钮样式 */
.share-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    background-color: #f5f5f5;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: #eee;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.share-icon {
    margin-right: 5px;
    font-style: normal;
}

/* 暗黑模式适配 */
body.dark-mode .share-container {
    background-color: #222;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .share-btn {
    background-color: #333;
    color: #eee;
}

body.dark-mode .share-btn:hover {
    background-color: #444;
}

/* 微信二维码弹窗样式 */
.wechat-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wechat-qr-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.wechat-qr-content {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 320px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.wechat-qr-modal.show .wechat-qr-content {
    transform: scale(1);
}

.wechat-qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.wechat-qr-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.wechat-qr-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wechat-qr-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.wechat-qr-body {
    text-align: center;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wechat-qr-loading {
    padding: 40px 20px;
    font-size: 0.95rem;
    color: #666;
}

.wechat-qr-body canvas,
.wechat-qr-image {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background-color: #fff;
    margin-bottom: 16px;
    max-width: 200px;
    height: auto;
}

.wechat-qr-tip {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 暗黑模式下的二维码弹窗 */
body.dark-mode .wechat-qr-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .wechat-qr-header {
    border-bottom-color: #444;
}

body.dark-mode .wechat-qr-header h3 {
    color: #e0e0e0;
}

body.dark-mode .wechat-qr-close {
    color: #999;
}

body.dark-mode .wechat-qr-close:hover {
    background-color: #444;
    color: #e0e0e0;
}

body.dark-mode .wechat-qr-body canvas,
body.dark-mode .wechat-qr-image {
    border-color: #444;
    background-color: #fff;
}

body.dark-mode .wechat-qr-loading {
    color: #aaa;
}

body.dark-mode .wechat-qr-tip {
    color: #aaa;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .share-container {
        padding: 15px 0;
    }
    
    .share-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    main {
        margin-bottom: 60px; /* 为底部分享按钮留出空间 */
    }
    
    .wechat-qr-content {
        padding: 20px;
        max-width: 280px;
    }
    
    .wechat-qr-header h3 {
        font-size: 1.1rem;
    }
    
    .wechat-qr-body canvas,
    .wechat-qr-image {
        max-width: 180px !important;
        height: auto !important;
    }
}