.page-content {
    width: 80%;
    margin: 0 auto;
}
.markdown-editor-page {
    padding: 30px 15px; /* 页面内边距 */
    margin: 20px auto; /* 居中显示 */
    background-color: #fff; /* 白色背景 */
    border-radius: 8px; /* 轻微圆角 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 添加阴影 */
    width: 100%;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.editor-header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.markdown-textarea {
    width: 100%;
    height: 500px; /* 稍微减小高度，给按钮留更多空间 */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    resize: none; /* 禁止用户调整大小 */
    overflow: auto; /* 添加滚动条 */
    font-family: 'Monaco', 'Consolas', monospace; /* 更好的代码字体 */
    transition: border-color 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    padding-right: 100px; /* 为粘贴按钮留出空间 */
}

.markdown-textarea:focus {
    outline: none;
    border-color: #2db55d; /* 使用网站主题色 */
    box-shadow: inset 0 1px 3px rgba(45,181,93,0.1);
}

.button-container {
    display: flex;
    justify-content: center; /* 居中对齐 */
    margin-top: 25px;
}

.export-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 30px; /* 大圆角 */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* 明显的阴影效果 */
    min-width: 180px; /* 设置最小宽度 */
    letter-spacing: 0.5px; /* 字母间距 */
    margin: 0 15px; /* 增加按钮之间的间隔 */
}

/* Word按钮样式 */
#export-word-btn {
    background-color: #4285F4; /* Word官方蓝色 */
    box-shadow: 0 4px 8px rgba(66,133,244,0.25);
}

#export-word-btn:hover {
    background-color: #3367D6; /* 鼠标悬停时颜色加深 */
    box-shadow: 0 6px 12px rgba(66,133,244,0.35);
    transform: translateY(-2px);
}

/* Excel按钮样式 */
#export-excel-btn {
    background-color: #1D6F42; /* Excel官方绿色 */
    box-shadow: 0 4px 8px rgba(29,111,66,0.25);
}

#export-excel-btn:hover {
    background-color: #185A37; /* 鼠标悬停时颜色加深 */
    box-shadow: 0 6px 12px rgba(29,111,66,0.35);
    transform: translateY(-2px);
}

.export-btn:active {
    transform: translateY(1px); /* 点击时下沉效果 */
}

/* 自定义按钮禁用状态 */
.export-btn:disabled {
    background-color: #b0b0b0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* 清空按钮特有样式 */
.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px; /* 缩小按钮尺寸 */
    font-size: 16px; /* 减小字体大小 */
    font-weight: 600; /* 减轻字体粗细 */
    background-color: #8c8c8c; /* 灰色背景 */
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* 减小阴影效果 */
    min-width: 180px; /* 减小最小宽度 */
    letter-spacing: 0.5px;
    margin-right: 0 15px; /* 增加与导出按钮的间距 */
}
/* 清空按钮特有样式 */
.copy-plain-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    background-color: #656e14; /* 灰色背景 */
    color: white;
    border: none;
    border-radius: 30px; /* 大圆角 */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* 明显的阴影效果 */
    min-width: 180px; /* 设置最小宽度 */
    letter-spacing: 0.5px; /* 字母间距 */
    margin: 0 15px; /* 增加按钮之间的间隔 */
}
#markdown-preview table {
    border-collapse: collapse;
    width: 100%;
    background: #fafbfc;
}
#markdown-preview th, #markdown-preview td {
    border: 1px solid #d0d7de;
    padding: 6px 13px;
}
#markdown-preview th {
    background: #f6f8fa;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .export-btn {
        margin: 10px 0; /* 在移动设备上改为上下间距 */
        width: 100%;
        max-width: 250px;
    }
    .copy-plain-btn {
        margin: 10px 0; /* 在移动设备上改为上下间距 */
        width: 100%;
        max-width: 250px;
    }
    
    .clear-btn {
        margin: 10px 0 20px 0; /* 在移动设备上调整间距 */
        width: 100%;
        max-width: 250px;
    }
}

.export-icon {
    margin-right: 10px;
    font-style: normal; /* 移除斜体 */
    font-size: 24px; /* 稍微增大图标 */
}

/* 添加一个加载中的动画效果 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: rotate 1s infinite linear;
    margin-right: 10px;
}

.wechat-download-guide {
    text-align: center;
    padding: 15px;
}

.wechat-download-guide p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.guide-img {
    width: 200px;
    height: 150px;
    margin: 15px auto;
    background: url('/images/wechat-guide.png') no-repeat center;
    background-size: contain;
}

.guide-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.guide-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.copy-link-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd !important;
}

.open-browser-btn {
    background-color: #2db55d;
    color: white;
}

.download-section {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.download-notice {
    margin: 10px 0;
}

.direct-download-link {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    background-color: #2db55d;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    .guide-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .guide-buttons button {
        width: 100%;
        margin: 5px 0;
    }
}

/* 文件下载卡片样式 - 专注于Word文件 */
.download-card {
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    max-width: 90%;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.file-icon {
    width: 70px;
    height: 80px;
    margin-right: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    color: white;
    font-weight: bold;
}

.doc-icon {
    background-color: #4285F4;
    position: relative;
}

.doc-icon:before {
    content: 'W';
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.file-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 4px 0;
    font-size: 12px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-url-container {
    display: flex;
    margin-bottom: 15px;
}

.file-url {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    outline: none;
}

.copy-url-btn {
    padding: 0 15px;
    background: #2db55d;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-url-btn:hover {
    background: #259b4e;
}

.copy-url-btn.copied {
    background: #4CAF50;
}

.download-tips {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.download-tips p {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.download-tips ol {
    margin: 0;
    padding-left: 25px;
}

.download-tips li {
    margin: 3px 0;
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        padding: 15px;
    }
    
    .file-icon {
        margin: 0 auto 15px;
    }
    
    .file-url-container {
        flex-direction: column;
    }
    
    .file-url {
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    .copy-url-btn {
        border-radius: 4px;
        padding: 10px;
    }
}

/* Excel文件图标样式 */
.excel-icon {
    background-color: #1D6F42; /* Excel绿色 */
    position: relative;
}

.excel-icon:before {
    content: 'X';
    font-size: 32px;
    font-weight: bold;
    color: white;
}

/* 添加文本框包装器样式 */
.textarea-wrapper {
    position: relative;
    width: 100%;
}

/* 粘贴按钮样式 */
.paste-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.paste-btn:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.paste-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.paste-btn i {
    margin-right: 5px;
    font-size: 16px;
}

/* 隐藏粘贴按钮的样式 */
.paste-btn.hidden {
    display: none;
}

/* 调整文本框样式以适应粘贴按钮 */
.markdown-textarea {
    padding-right: 100px; /* 为粘贴按钮留出空间 */
}