.markdown-body {
    background-color: white;
    min-width: 200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    color: #24292f;
    line-height: 1.6;
}

/* 代码块容器样式 */
.markdown-body pre {
    background-color: #292d3e !important;
    border-radius: 8px !important;
    padding: 1.2rem !important;
    margin: 1.2rem 0 !important;
    overflow-x: auto;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    border: 1px solid #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 代码文本样式 */
.markdown-body code {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.95em;
    word-wrap: break-word !important;
    line-height: 1.5;
}

/* 代码块中的代码样式 */
.markdown-body pre code {
    color: #eeffff !important;
    font-family: 'Cascadia Code', 'Consolas', monospace !important;
    font-size: 0.95em !important;
    text-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    word-spacing: normal;
    line-height: 1.6 !important;
}

/* 行内代码样式优化 */
.markdown-body code:not(pre code) {
    background-color: rgba(175, 184, 193, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.95em;
    color: #333333;
    border: 1px solid rgba(175, 184, 193, 0.3);
}

/* Mac 窗口样式 */
.mac-window {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.mac-window-header {
    background: #e9e9e9;
    padding: 8px 12px;
    position: relative;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom: 1px solid #d1d1d1;
}

.mac-window-buttons {
    display: flex;
    gap: 8px;
}

.mac-window-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-close { background: #ff5f56; }
.mac-minimize { background: #ffbd2e; }
.mac-maximize { background: #27c93f; }

.mac-window-content {
    padding: 16px;
    background: white;
    height: 400px;
    overflow: hidden;
}

.mac-window-content textarea {
    height: 100%;
    min-height: 100%;
}

.mac-window-content #preview {
    height: 100%;
    overflow-y: auto;
}

.mac-window-content::-webkit-scrollbar {
    width: 6px;
}

.mac-window-content::-webkit-scrollbar-track {
    background: transparent;
}

.mac-window-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* 输入框样式 */
#text {
    min-height: 300px;
    height: 100%;
    width: 100%;
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 1.6;
    color: #24292f;
    overflow-y: auto;
    resize: none;
}

#text:focus {
    outline: none;
}

#text::-webkit-scrollbar {
    width: 6px;
}

#text::-webkit-scrollbar-track {
    background: transparent;
}

#text::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#text::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 预览区域样式 */
#preview {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: white;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

/* 预览区域中的标题样式 */
#preview h1,
#preview h2,
#preview h3,
#preview h4,
#preview h5,
#preview h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

#preview h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}

#preview h2 {
    font-size: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}

#preview h3 {
    font-size: 1.25em;
}

#preview h4 {
    font-size: 1em;
}

#preview h5 {
    font-size: 0.875em;
}

#preview h6 {
    font-size: 0.85em;
    color: #6a737d;
}

/* 列表样式 */
#preview ul,
#preview ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

#preview li {
    margin-top: 0.25em;
}

/* 引用样式 */
#preview blockquote {
    margin: 0;
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
}

/* 段落样式 */
#preview p {
    margin-top: 0;
    margin-bottom: 16px;
}

/* 链接样式 */
#preview a {
    color: #0366d6;
    text-decoration: none;
}

#preview a:hover {
    text-decoration: underline;
}

/* 图片样式 */
#preview img {
    max-width: 100%;
    box-sizing: border-box;
    background-color: #fff;
}

/* 表格样式 */
#preview table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-top: 0;
    margin-bottom: 16px;
    width: 100%;
}

#preview table th,
#preview table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

#preview table tr {
    background-color: #fff;
    border-top: 1px solid #c6cbd1;
}

#preview table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

/* 代码高亮颜色自定义 - Material Theme inspired */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #676e95 !important;
    font-style: italic !important;
}

.token.function {
    color: #82aaff !important;
}

.token.keyword {
    color: #c792ea !important;
    font-style: italic !important;
}

.token.string {
    color: #c3e88d !important;
}

.token.number {
    color: #f78c6c !important;
}

.token.boolean {
    color: #ff5874 !important;
}

.token.operator {
    color: #89ddff !important;
}

.token.class-name {
    color: #ffcb6b !important;
}

.token.variable {
    color: #eeffff !important;
}

.token.property {
    color: #80cbc4 !important;
}

.token.punctuation {
    color: #89ddff !important;
}

.token.tag {
    color: #ff5572 !important;
}

.token.attr-name {
    color: #c792ea !important;
}

.token.attr-value {
    color: #c3e88d !important;
}

.token.regex {
    color: #f78c6c !important;
}

.token.builtin {
    color: #82aaff !important;
}

.token.parameter {
    color: #f78c6c !important;
}

.token.namespace {
    color: #b2ccd6 !important;
}

.token.constant {
    color: #ff5874 !important;
}

/* 截图时的特殊样式 */
.for-screenshot {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

.for-screenshot .mac-window-content {
    height: auto !important;
    overflow: visible !important;
}

.for-screenshot #preview {
    height: auto !important;
    overflow: visible !important;
}

.for-screenshot .markdown-body {
    height: auto !important;
    overflow: visible !important;
}

/* 添加截图时的特殊样式 */
.for-screenshot .mac-window-content,
.for-screenshot #preview {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* 图片容器样式 */
#result {
    width: 100%;
    overflow: visible;
    margin-top: 20px;
    margin-bottom: 40px;
}

#output {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 标题样式加深 */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: #1a1a1a;
    font-weight: 600;
}

/* Mac 风格按钮 */
.mac-style-button {
    background: linear-gradient(to bottom, #fefefe, #f4f4f4);
    border: 1px solid #c2c0c2;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    color: #333;
    font-size: 13px;
    padding: 6px 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 32px;
}

.mac-style-button:hover {
    background: linear-gradient(to bottom, #fff, #f0f0f0);
    border-color: #b5b5b5;
}

.mac-style-button:active {
    background: linear-gradient(to bottom, #e5e5e5, #f0f0f0);
    border-color: #b5b5b5;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
}

.mac-style-button.primary {
    background: linear-gradient(to bottom, #6cb3fa, #067dff);
    border-color: #1068de;
    color: white;
}

.mac-style-button.primary:hover {
    background: linear-gradient(to bottom, #70b7ff, #0984ff);
    border-color: #0956bf;
}

.mac-style-button.primary:active {
    background: linear-gradient(to bottom, #0956bf, #0984ff);
    border-color: #0956bf;
}

.mac-style-button.success {
    background: linear-gradient(to bottom, #34c759, #30b753);
    border-color: #2da94d;
    color: white;
}

.mac-style-button.success:hover {
    background: linear-gradient(to bottom, #36d45e, #32c457);
    border-color: #2fb751;
}

.mac-style-button.success:active {
    background: linear-gradient(to bottom, #2fb751, #32c457);
    border-color: #2fb751;
}

/* 添加全局过渡动画 */
* {
    transition: all 0.3s ease;
}

/* Mac 窗口悬浮效果 */
.mac-window {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mac-window:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mac 窗口按钮动画 */
.mac-window-button {
    transition: transform 0.2s ease;
}

.mac-window-button:hover {
    transform: scale(1.1);
}

/* 按钮加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* 结果区域显示动画 */
#result {
    transition: all 0.5s ease;
    transform-origin: top;
    opacity: 0;
    transform: translateY(20px);
}

#result.show {
    opacity: 1;
    transform: translateY(0);
}

/* 输入框聚焦效果 */
#text:focus {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 代码块悬浮效果 */
.markdown-body pre {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.markdown-body pre:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 添加动态背景 */
.bg-gray-100 {
    background: linear-gradient(120deg, #f0f4f8 0%, #e9ecef 100%) fixed;
    min-height: 100vh;
    width: 100%;
}

/* 添加背景装饰元素 */
.bg-gray-100::before,
.bg-gray-100::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(66, 153, 225, 0.1), rgba(99, 179, 237, 0.1));
    animation: float 20s infinite linear;
    z-index: 0;
    pointer-events: none;
}

.bg-gray-100::before {
    top: -100px;
    left: -100px;
}

.bg-gray-100::after {
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

/* 添加浮动动画 */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(50px, 50px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 添加几何装饰 */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geometric-shapes::before,
.geometric-shapes::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, rgba(66, 153, 225, 0.05), rgba(99, 179, 237, 0.05));
}

.geometric-shapes::before {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: floatShape1 15s infinite ease-in-out;
}

.geometric-shapes::after {
    width: 70px;
    height: 70px;
    bottom: 15%;
    right: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatShape2 18s infinite ease-in-out;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(20px, 20px) rotate(60deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
}

/* 确保内容在装饰元素之上 */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* 给主要内容添加玻璃拟态效果 */
.bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 优化阴影效果 */
.shadow-lg {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1) !important;
}

/* 修改 body 样式，确保可以滚动 */
body.bg-gray-100 {
    min-height: 100vh;
    overflow-y: auto !important;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 添加滚动条样式 */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

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

body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Firefox 滚动条样式 */
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

/* 输入和预览区域的基础样式 */
#text, #preview {
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

/* 结果区域样式 */
#result {
    width: 100%;
    overflow: visible;
    margin-top: 20px;
    margin-bottom: 40px;
}

#output {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 统一滚动条样式 */
#text::-webkit-scrollbar,
#preview::-webkit-scrollbar {
    width: 6px;
}

#text::-webkit-scrollbar-track,
#preview::-webkit-scrollbar-track {
    background: transparent;
}

#text::-webkit-scrollbar-thumb,
#preview::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#text::-webkit-scrollbar-thumb:hover,
#preview::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Firefox 滚动条样式 */
#text,
#preview {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 添加复制按钮成功状态样式 */
.mac-style-button.success {
    background: linear-gradient(to bottom, #34c759, #30b753);
    border-color: #2da94d;
    color: white;
}

/* 添加复制按钮过渡动画 */
.mac-style-button {
    transition: all 0.3s ease;
}

/* 图片预览模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.zoom-button {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.zoom-button:hover {
    background: #f0f0f0;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
    background: #f0f0f0;
}

/* 标题样式美化 */
.text-3xl {
    font-size: 2.5rem !important;
    background: linear-gradient(120deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem !important;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.text-3xl::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.text-3xl::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 2px;
}

/* 二���标题样式 */
.text-xl {
    font-size: 1.5rem !important;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-left: 1rem;
}

.text-xl::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* GitHub 图标链接样式 */
.github-link {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.github-icon {
    color: #333;
    transition: all 0.3s ease;
}

.github-link:hover .github-icon {
    color: #2563eb;
    transform: scale(1.1);
}

/* 在移动设备上调整位置和大小 */
@media (max-width: 768px) {
    .github-link {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .github-icon {
        width: 20px;
        height: 20px;
    }
}

/* Mac 窗口主题 */
.theme-default .mac-window-header {
    background: #e9e9e9;
}

.theme-dark .mac-window-header {
    background: #2d2d2d;
}

.theme-dark .mac-window,
.theme-dark .mac-window-content {
    background: #1e1e1e;
    color: #e0e0e0;
}

.theme-dark #text {
    color: #e0e0e0;
}

.theme-blue .mac-window-header {
    background: #0078d4;
}

.theme-blue .mac-window {
    border: 1px solid #0078d4;
}

.theme-minimal .mac-window {
    box-shadow: none;
    border: 1px solid #eaeaea;
}

.theme-minimal .mac-window-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

/* 主题切换器新样式 */
.theme-switcher {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 48px;
    overflow: hidden;
}

.theme-switcher.expanded {
    max-height: 200px;
    padding: 8px;
}

.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    color: #666;
    transition: transform 0.3s ease;
}

.theme-switcher.expanded .theme-toggle-btn svg {
    transform: rotate(180deg);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.theme-switcher.expanded .theme-options {
    opacity: 1;
}

.theme-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

/* 深色主题适配 */
.theme-dark .theme-switcher {
    background: rgba(30, 30, 30, 0.9);
}

.theme-dark .theme-toggle-btn {
    background: linear-gradient(145deg, #333, #222);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .theme-toggle-btn svg {
    color: #aaa;
}

/* 介绍语样式 */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
}

.intro-text strong {
    color: #2563eb;
    font-weight: 600;
    background: linear-gradient(120deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 0.2em;
}

.intro-text::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    opacity: 0.5;
}

/* 版权信息样式 */
.copyright-info {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.copyright-info .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.copyright-info a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copyright-info a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 区域标题样式 */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1em;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* 说明文字样式 */
.section-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
}

.section-desc strong {
    color: #2563eb;
    font-weight: 500;
    background: linear-gradient(120deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 0.2em;
}

/* Mac 风格对话框 */
.mac-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.mac-dialog-overlay.show {
    opacity: 1;
}

.mac-dialog {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mac-dialog-overlay.show .mac-dialog {
    transform: scale(1);
}

.mac-dialog h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.mac-dialog p {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mac-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.mac-dialog-buttons button {
    min-width: 80px;
}

/* 深色主题适配 */
.theme-dark .mac-dialog {
    background: rgba(30, 30, 30, 0.95);
}

.theme-dark .mac-dialog h3 {
    color: #fff;
}

.theme-dark .mac-dialog p {
    color: #aaa;
}

/* 滚动按钮容器 */
.scroll-buttons {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* 当父容器悬浮时显示按钮 */
.mac-window-content:hover .scroll-buttons {
    opacity: 1;
}

/* 滚动按钮样式 */
.scroll-button {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.scroll-button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    color: #333;
}

.scroll-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 深色主题适配 */
.theme-dark .scroll-button {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.theme-dark .scroll-button:hover {
    background: rgba(60, 60, 60, 0.95);
    color: #fff;
}

/* 动画效果 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.scroll-button:hover svg {
    animation: bounce 1s infinite;
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .scroll-buttons {
        opacity: 1; /* 在移动设备上始终显示 */
        right: 4px;
        bottom: 4px;
    }
    
    .scroll-button {
        width: 20px;
        height: 20px;
    }
    
    .scroll-button svg {
        width: 14px;
        height: 14px;
    }
}

/* 全局滚动按钮样式 */
.global-scroll-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.global-scroll-buttons.show {
    opacity: 1;
    visibility: visible;
}

.global-scroll-buttons .scroll-button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.global-scroll-buttons .scroll-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 预览区域滚动按钮特殊样式 */
.preview-scroll-buttons {
    right: 12px;
    bottom: 12px;
}

/* 深色主题适配 */
.theme-dark .global-scroll-buttons .scroll-button {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .global-scroll-buttons {
        right: 12px;
        bottom: 12px;
    }
    
    .global-scroll-buttons .scroll-button {
        width: 36px;
        height: 36px;
    }
}

/* 确保全局滚动按钮不会与 GitHub 链接重叠 */
@media (min-width: 769px) {
    .global-scroll-buttons {
        right: 30px;
        bottom: 30px;
    }
}

/* 宽度控制样式 */
.width-control-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.width-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2px 8px;
}

.width-input {
    width: 50px;
    border: none;
    background: transparent;
    font-family: 'Cascadia Code', monospace;
    font-size: 14px;
    color: #666;
    text-align: right;
    padding: 2px;
    -moz-appearance: textfield;
}

.width-input::-webkit-inner-spin-button,
.width-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.width-unit {
    color: #666;
    font-size: 14px;
    margin-left: 2px;
}

.width-button {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.width-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.width-button:active {
    transform: translateY(0);
}

/* 深色主题适配 */
.theme-dark .width-control-wrapper {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .width-input-wrapper {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .width-input {
    color: #aaa;
}

.theme-dark .width-unit {
    color: #aaa;
}

.theme-dark .width-button {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.theme-dark .width-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 调整 mac-window-header 的样式以适应新的控件 */
.mac-window-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

/* 确保按钮容器保持在左侧 */
.mac-window-buttons {
    z-index: 1;
}

/* 调整网格布局，使其支持不同宽度的预览区 */
.grid.grid-cols-1.md\:grid-cols-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

/* 确保预览区容器可以正确调整宽度 */
.bg-white.rounded-lg.shadow-lg.p-6 {
    transition: width 0.3s ease;
    width: 100%;
}

/* 调整预览区的最小宽度 */
.bg-white.rounded-lg.shadow-lg.p-6:nth-child(2) {
    min-width: 300px;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .bg-white.rounded-lg.shadow-lg.p-6:nth-child(2) {
        width: 100% !important; /* 在移动设备上强制使用全宽 */
        min-width: 0;
    }
}

/* 主题选项的具体颜色样式 */
.theme-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 默认主题 */
.theme-option.default {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-color: #e0e0e0;
}

/* 深色主题 */
.theme-option.dark {
    background: linear-gradient(135deg, #2d3142 0%, #1a1b26 100%);
    border-color: #1a1b26;
}

/* 蓝色主题 */
.theme-option.blue {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-color: #357abd;
}

/* 简约主题 */
.theme-option.minimal {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
}

/* 悬停效果 */
.theme-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 选中状态 */
.theme-option.active {
    border-width: 2px;
    border-style: solid;
}

.theme-option.default.active {
    border-color: #666;
}

.theme-option.dark.active {
    border-color: #8b8fa3;
}

.theme-option.blue.active {
    border-color: #7eb6ef;
}

.theme-option.minimal.active {
    border-color: #adb5bd;
}

/* 选中标记 */
.theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.theme-option.default.active::after,
.theme-option.minimal.active::after {
    color: #333;
    text-shadow: none;
}

/* 主题切换器容器样式优化 */
.theme-switcher {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 深色模式下的主题切换器样式 */
.theme-dark .theme-switcher {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}
