styles_txt = """ /* 全局样式 */ QWidget { font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; font-size: 14px; color: #e2e8f0; } /* 登录页面 */ #loginPage { background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #667eea, stop:1 #764ba2); } #loginCard { background-color: rgba(255, 255, 255, 0.9); border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); } #loginTitle { font-size: 28px; font-weight: bold; color: #2d3748; } #formLabel { font-size: 14px; font-weight: 600; color: #4a5568; } #formInput { background-color: #edf2f7; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; color: #2d3748; } #formInput:focus { border-color: #667eea; } #loginBtn { background-color: #4f46e5; color: white; border-radius: 6px; padding: 12px; font-weight: bold; } #loginBtn:hover { background-color: #4338ca; } /* 导航栏 */ #navBar { background-color: #1a202c; } #userFrame { background-color: #2d3748; border-radius: 8px; } #userName { font-size: 16px; font-weight: bold; color: white; } #navBtn { text-align: left; padding: 12px 20px; border-radius: 6px; color: #a0aec0; } #navBtn:hover { background-color: #2d3748; color: white; } #logoutBtn { text-align: left; padding: 12px 20px; border-radius: 6px; color: #e53e3e; } #logoutBtn:hover { background-color: #2d3748; color: #f56565; } /* 应用中心 */ #appCenter { background-color: #1a202c; } #pageTitle { font-size: 24px; font-weight: bold; color: white; } #appCard { border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.2s; } #appCard:hover { transform: translateY(-5px); } /* Word转PDF页面 */ #wordToPdfPage { background-color: #1a202c; } #leftPanel, #rightPanel { background-color: #2d3748; border-radius: 12px; padding: 20px; } #uploadArea { border: 2px dashed #4a5568; border-radius: 8px; background-color: rgba(74, 85, 104, 0.2); } #uploadArea:hover { border-color: #667eea; background-color: rgba(102, 126, 234, 0.1); } #uploadBtn { background-color: #4f46e5; color: white; border-radius: 6px; padding: 8px 16px; } #uploadBtn:hover { background-color: #4338ca; } #fileList, #resultList, #logContent { background-color: #1a202c; border: 1px solid #4a5568; border-radius: 8px; padding: 8px; } #convertBtn { background-color: #4CAF50; color: white; border-radius: 6px; padding: 8px 16px; } #convertBtn:hover { background-color: #3d8b40; } #deleteBtn { background-color: #f44336; color: white; border-radius: 6px; padding: 8px 16px; } #deleteBtn:hover { background-color: #d32f2f; } #downloadBtn { background-color: #2196F3; color: white; border-radius: 6px; padding: 8px 16px; } #downloadBtn:hover { background-color: #1976d2; } #logArea { background-color: #1a202c; border-radius: 8px; padding: 12px; } #logTitle { font-size: 16px; font-weight: bold; color: white; padding-bottom: 8px; border-bottom: 1px solid #4a5568; } QProgressBar { border-radius: 4px; height: 8px; background-color: #4a5568; } QProgressBar::chunk { background-color: #4f46e5; border-radius: 4px; } /* 滚动条 */ QScrollBar:vertical { border: none; background: #2d3748; width: 10px; margin: 0; } QScrollBar::handle:vertical { background: #4a5568; min-height: 20px; border-radius: 4px; } QScrollBar::handle:vertical:hover { background: #718096; } QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { height: 0; } QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: none; } """