* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } .header { text-align: center; margin-bottom: 30px; } .header h1 { color: #2c3e50; margin-bottom: 20px; } .upload-section { display: flex; justify-content: center; gap: 10px; } .file-input { display: none; } .upload-btn { background-color: #3498db; color: white; padding: 10px 20px; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; } .upload-btn:hover { background-color: #2980b9; } .preview-container { background-color: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; } .document-preview { display: flex; flex-direction: column; height: 80vh; } .document-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #f8f9fa; border-bottom: 1px solid #e9ecef; } .document-title { font-size: 1.2em; font-weight: 600; color: #2c3e50; } .document-tools { display: flex; gap: 10px; } .tool-btn { background-color: #e9ecef; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; } .tool-btn:hover { background-color: #dee2e6; } .document-content { flex: 1; overflow: auto; padding: 20px; background-color: white; } .placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #6c757d; } .placeholder img { width: 64px; height: 64px; margin-bottom: 20px; } /* 文档内容样式 */ .document-styled-content { font-family: "Times New Roman", Times, serif; line-height: 1.6; color: #333; background-color: white; transition: transform 0.3s ease; } .document-styled-content h1 { font-size: 2em; margin: 1em 0 0.5em; color: #2c3e50; } .document-styled-content h2 { font-size: 1.5em; margin: 1em 0 0.5em; color: #2c3e50; } .document-styled-content h3 { font-size: 1.17em; margin: 1em 0 0.5em; color: #2c3e50; } .document-styled-content p { margin-bottom: 1em; text-align: justify; } .document-styled-content ul, .document-styled-content ol { margin-left: 2em; margin-bottom: 1em; } .document-styled-content table { width: 100%; border-collapse: collapse; margin: 1em 0; } .document-styled-content th, .document-styled-content td { border: 1px solid #dee2e6; padding: 8px; text-align: left; } .document-styled-content th { background-color: #f8f9fa; font-weight: bold; } .document-styled-content img { max-width: 100%; height: auto; margin: 1em 0; } .document-styled-content a { color: #3498db; text-decoration: none; } .document-styled-content a:hover { text-decoration: underline; } /* 打印样式 */ @media print { .header, .document-header, .document-tools { display: none; } .document-styled-content { margin: 0; padding: 0; transform: none !important; } } /* 缩放控制 */ .zoom-controls { position: fixed; bottom: 20px; right: 20px; display: flex; gap: 10px; background-color: white; padding: 10px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }