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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 32px;
}

.logo i {
    color: #4a6ee0;
}

.logo i:nth-child(2) {
    font-size: 24px;
    margin-top: 8px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #4a6ee0;
}

.subtitle {
    color: #7a8ca7;
    font-size: 18px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 20px;
}

.action-btn {
    padding: 12px 0;
    background-color: #4a6ee0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 140px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.action-btn i {
    font-size: 18px;
}

.action-btn::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: #4a6ee0;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #3659c3;
    transform: translateY(-2px);
}

.action-btn.active {
    background-color: #2c4aa3;
    transform: translateY(0);
}

.action-btn.active::before {
    width: 70%;
}

.section {
    display: none;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    min-height: 400px;
}

.section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Import Section */
.file-upload-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    gap: 20px;
}

.file-upload-box {
    width: 400px;
    height: 200px;
    border: 2px dashed #c7d3e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f7faff;
    gap: 10px;
}

.file-upload-box i {
    font-size: 48px;
    color: #4a6ee0;
    margin-bottom: 5px;
}

.file-upload-box p {
    font-size: 18px;
    color: #7a8ca7;
}

.file-upload-box .small {
    font-size: 14px;
    color: #99a9be;
}

.file-upload-box:hover {
    border-color: #4a6ee0;
    background-color: #f0f5ff;
}

.import-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.import-option-btn {
    background-color: #4a6ee0;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.import-option-btn:hover {
    background-color: #3659c3;
    transform: translateY(-2px);
}

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

/* Edit Section */
.editor-container {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    border: 1px solid #e1e4e8;
}

.editor-toolbar {
    padding: 10px;
    background-color: #f1f3f7;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.editor-toolbar button {
    width: 36px;
    height: 36px;
    background-color: white;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.editor-toolbar button:hover {
    background-color: #f0f5ff;
    border-color: #4a6ee0;
}

#editor {
    width: 100%;
    height: calc(100% - 106px);
    padding: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.5;
    border: none;
    resize: none;
    outline: none;
}

.editor-stats {
    padding: 8px 15px;
    background-color: #f7f9fc;
    border-top: 1px solid #e1e4e8;
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: flex-end;
}

.editor-stats span {
    font-weight: 500;
}

/* Preview Section */
.preview-container {
    height: 500px;
    overflow-y: auto;
    padding: 0;
    background-color: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    position: relative;
}

.preview-toolbar {
    padding: 10px;
    background-color: #f1f3f7;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: flex-end;
}

.copy-btn {
    background-color: #4a6ee0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: #3659c3;
}

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

#preview-content {
    padding: 15px;
}

#preview-content h1 {
    text-align: left;
    margin-top: 0;
}

#preview-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecef;
}

#preview-content ul, #preview-content ol {
    margin-top: 3pt;
    margin-bottom: 3pt;
    padding-left: 20pt;
}

#preview-content ul li, #preview-content ol li {
    margin-top: 2pt;
    margin-bottom: 2pt;
    line-height: 1.3;
}

#preview-content ul {
    list-style-type: disc;
}

#preview-content ol {
    list-style-type: decimal;
}

#preview-content ul ul {
    list-style-type: circle;
}

#preview-content ol ol {
    list-style-type: lower-alpha;
}

#preview-content ul ul ul {
    list-style-type: square;
}

#preview-content li > ul, #preview-content li > ol {
    margin-top: 2pt;
    margin-bottom: 2pt;
}

#preview-content blockquote {
    padding: 0 16px;
    color: #6a737d;
    border-left: 4px solid #dfe2e5;
    margin-bottom: 16px;
}

#preview-content pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
    margin-bottom: 16px;
}

#preview-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-size: 85%;
}

#preview-content img {
    max-width: 100%;
    margin: 16px 0;
}

/* Convert Section */
.convert-options {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-options {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.download-btn {
    padding: 20px 40px;
    font-size: 18px;
    background-color: #4a6ee0;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    gap: 10px;
}

.download-btn i {
    font-size: 28px;
}

.download-btn:hover {
    background-color: #3659c3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(54, 89, 195, 0.3);
}

/* Fullscreen mode */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: white;
} 