Files
Teleprompter/pdf/styles.css
ElmGates 172f978edf upload
2025-12-27 13:07:25 +08:00

407 lines
7.1 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 40px;
color: white;
}
h1 {
font-size: 2.5rem;
margin-bottom: 10px;
font-weight: 300;
}
.subtitle {
font-size: 1.1rem;
opacity: 0.9;
}
.upload-section {
margin-bottom: 30px;
}
.upload-area {
border: 2px dashed rgba(255, 255, 255, 0.5);
border-radius: 15px;
padding: 60px 20px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
}
.upload-area:hover {
border-color: rgba(255, 255, 255, 0.8);
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.upload-area.dragover {
border-color: white;
background: rgba(255, 255, 255, 0.3);
transform: scale(1.02);
}
.upload-icon {
width: 60px;
height: 60px;
color: white;
margin-bottom: 15px;
}
.upload-text {
color: white;
font-size: 1.2rem;
font-weight: 300;
}
.controls {
background: white;
border-radius: 15px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
}
.control-group {
display: flex;
align-items: center;
gap: 15px;
}
.control-group label {
font-weight: 500;
color: #555;
}
input[type="range"] {
width: 150px;
height: 6px;
border-radius: 3px;
background: #ddd;
outline: none;
-webkit-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: #667eea;
cursor: pointer;
}
#speedValue {
font-weight: bold;
color: #667eea;
min-width: 20px;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.btn.primary {
background: #667eea;
color: white;
}
.btn.primary:hover {
background: #5a6fd8;
transform: translateY(-1px);
}
.btn.secondary {
background: #f1f3f4;
color: #333;
}
.btn.secondary:hover:not(:disabled) {
background: #e8eaed;
transform: translateY(-1px);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.display-area {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
margin: 20px;
max-height: 70vh;
}
.teleprompter-container {
height: 500px;
overflow-y: auto;
overflow-x: hidden;
position: relative;
background: #000;
cursor: grab;
scrollbar-width: thin;
scrollbar-color: #666 #222;
}
.teleprompter-container::-webkit-scrollbar {
width: 8px;
}
.teleprompter-container::-webkit-scrollbar-track {
background: #222;
}
.teleprompter-container::-webkit-scrollbar-thumb {
background: #666;
border-radius: 4px;
}
.teleprompter-container::-webkit-scrollbar-thumb:hover {
background: #888;
}
.teleprompter-container:active {
cursor: grabbing;
}
.teleprompter-content {
padding: 20px;
transform: scaleX(-1);
transition: transform 0.3s ease;
min-height: 100%;
}
.teleprompter-content img {
width: 100%;
height: auto;
display: block;
margin-bottom: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* 全屏模式无边框 */
.display-area.fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 999;
border-radius: 0;
margin: 0;
max-height: none;
}
.display-area.fullscreen .teleprompter-container {
height: 100vh;
border-radius: 0;
margin: 0;
padding: 0;
}
.display-area.fullscreen .teleprompter-content {
padding: 0;
}
.display-area.fullscreen .teleprompter-content img {
border-radius: 0;
box-shadow: none;
margin-bottom: 0;
}
/* 滚动提示 */
.scroll-indicator {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
color: white;
padding: 8px 12px;
border-radius: 20px;
font-size: 12px;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
z-index: 10;
}
.teleprompter-container:hover .scroll-indicator {
opacity: 1;
}
.loading {
text-align: center;
color: white;
padding: 40px;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.btn-icon {
width: 16px;
height: 16px;
margin-right: 8px;
vertical-align: middle;
}
.floating-controls {
position: fixed;
top: 20px;
right: 20px;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 15px;
display: flex;
align-items: center;
gap: 10px;
z-index: 1000;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.floating-controls:hover {
background: rgba(0, 0, 0, 0.9);
transform: translateY(-2px);
}
.float-btn {
width: 45px;
height: 45px;
border: none;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
backdrop-filter: blur(5px);
}
.float-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
.float-btn svg {
width: 20px;
height: 20px;
}
.float-speed-control {
display: flex;
align-items: center;
gap: 8px;
padding: 0 10px;
}
.float-speed-control input[type="range"] {
width: 100px;
height: 4px;
background: rgba(255, 255, 255, 0.3);
}
.float-speed-control input[type="range"]::-webkit-slider-thumb {
width: 14px;
height: 14px;
background: white;
}
#floatSpeedValue {
color: white;
font-size: 0.9rem;
font-weight: bold;
min-width: 25px;
}
/* 全屏模式样式 */
.display-area.fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 999;
border-radius: 0;
margin: 0;
}
.display-area.fullscreen .teleprompter-container {
height: 100vh;
border-radius: 0;
}
/* 全屏时隐藏原控制面板 */
body.fullscreen .controls {
display: none !important;
}
@media (max-width: 768px) {
.controls {
flex-direction: column;
align-items: stretch;
}
.control-group {
justify-content: center;
}
h1 {
font-size: 2rem;
}
.teleprompter-container {
height: 400px;
}
}