* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'SimSun', serif; font-weight: bold; overflow: hidden; height: 100vh; position: relative; transition: all 0.3s ease; } /* Logo控件 - 居中显示 */ .logo-widget { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 8px 16px; z-index: 1000; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; } .logo-widget:hover { background: rgba(255, 255, 255, 0.15); transform: translateX(-50%) translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); } .logo { width: 24px; height: 24px; } .project-name { font-size: 16px; font-weight: bold; white-space: nowrap; } /* 计时器控件 - 右上角显示 */ .time-widget { position: fixed; top: 20px; right: 20px; font-size: 14px; font-family: 'Courier New', monospace; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 16px; padding: 8px 12px; z-index: 1000; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; min-width: 80px; text-align: center; } .time-widget:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); } /* 红色定位线 */ .reading-line { position: fixed; top: 25%; left: 0; right: 0; height: 4px; background: linear-gradient(to right, transparent 0%, #ff4444 15%, #ff4444 90%, transparent 100%); z-index: 500; box-shadow: 0 0 40px rgba(255, 68, 68, 0.9); transition: opacity 0.3s ease; cursor: ns-resize; padding: 1px 0; } .reading-line:hover { box-shadow: 0 0 60px rgba(255, 68, 68, 1); transform: all 0.3s ease; } .reading-line.dragging { transition: none; box-shadow: 0 0 80px rgba(255, 68, 68, 1); } /* 主内容区域 */ .main-content { height: 100vh; padding-top: 0; position: relative; overflow: hidden; } .text-editor-container { height: 100%; position: relative; display: flex; } .text-editor { flex: 1; padding-top: 12vh; padding-bottom: 75vh; /* 底部额外空间,相当于屏幕3/4高度 */ padding-left: 40px; padding-right: 40px; font-size: 16px; line-height: 1.6; letter-spacing: 1px; outline: none; border: none; resize: none; overflow-y: auto; height: 100%; transition: all 0.3s ease; transform-origin: center; } .text-editor::-webkit-scrollbar { display: none; } .text-editor.locked { cursor: default; user-select: none; } /* 水印层 */ .watermark-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 100; overflow: hidden; } /* 设置面板通用样式 */ .settings-panel { position: fixed; background: rgba(255, 255, 255, 0.95); border-radius: 12px; padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); z-index: 1500; min-width: 280px; border: 1px solid rgba(255, 255, 255, 0.3); animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .settings-panel h3 { margin-bottom: 15px; font-size: 16px; color: #333; border-bottom: 1px solid #eee; padding-bottom: 8px; } .setting-group { display: flex; flex-direction: column; gap: 12px; } .setting-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; padding-bottom: 5px; } .setting-group input[type="range"] { flex: 1; margin: 0 8px; } .setting-group input[type="text"], .setting-group input[type="number"], .setting-group select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; } .setting-group input[type="color"] { width: 40px; height: 30px; border: none; border-radius: 6px; cursor: pointer; } /* 录音控制按钮 */ .record-control-btn { padding: 8px 16px; margin: 4px; border: none; border-radius: 6px; background: #007bff; color: white; cursor: pointer; font-size: 14px; transition: all 0.3s ease; } .record-control-btn:hover:not(:disabled) { background: #0056b3; transform: translateY(-1px); } .record-control-btn:disabled { background: #ccc; cursor: not-allowed; } /* 倒计时显示 */ .countdown-display { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2000; background: rgba(0, 0, 0, 0.8); color: white; width: 100px; backdrop-filter: blur(10px); height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: bold; animation: pulse 1s infinite; } @keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.1); } } /* 全屏样式 */ .fullscreen .top-header { display: none; } .fullscreen .main-content { padding-top: 0; } .fullscreen .reading-line { top: 25vh; } /* 响应式设计 */ @media (max-width: 768px) { .settings-panel { width: 90vw; left: 5vw !important; right: 5vw !important; } .text-editor { padding: 15px 40px; font-size: 14px; } }