* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 2rem 0;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header h1 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
header p {
font-size: 1.1rem;
opacity: 0.9;
}
main {
max-width: 1200px;
margin: 2rem auto;
padding: 0 2rem;
}
.intro {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 2rem;
}
.intro h2 {
color: #667eea;
margin-bottom: 1rem;
font-size: 1.5rem;
}
.intro ol {
margin-left: 2rem;
margin-bottom: 2rem;
}
.intro li {
margin-bottom: 0.5rem;
}
.warning {
background-color: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 4px;
padding: 1rem;
}
.warning h3 {
color: #856404;
margin-bottom: 0.5rem;
}
.warning ul {
margin-left: 1.5rem;
}
.form-section {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 2rem;
}
.form-section h2 {
color: #667eea;
margin-bottom: 1.5rem;
font-size: 1.3rem;
border-bottom: 2px solid #f0f0f0;
padding-bottom: 0.5rem;
}
.form-group {
margin-bottom: 1.2rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: #555;
}
.form-group input {
width: 100%;
padding: 0.8rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
transition: border-color 0.3s ease;
}
.form-group input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 表单动画效果 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* 标题样式 */
h3 {
color: #667eea;
margin-top: 2rem;
margin-bottom: 1rem;
font-size: 1.1rem;
border-bottom: 1px solid #f0f0f0;
padding-bottom: 0.5rem;
}
.form-actions {
display: flex;
gap: 1rem;
margin-top: 2rem;
justify-content: center;
}
button {
padding: 1rem 2rem;
border: none;
border-radius: 4px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
#generateBtn {
background: #667eea;
color: white;
}
#generateBtn:hover {
background: #5a6fd8;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
#resetBtn {
background: #f0f0f0;
color: #333;
}
#resetBtn:hover {
background: #e0e0e0;
transform: translateY(-2px);
}
.result {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 2rem;
text-align: center;
}
.result h2 {
color: #667eea;
margin-bottom: 1.5rem;
font-size: 1.3rem;
}
#resultMessage {
margin-bottom: 1.5rem;
padding: 1rem;
background: #f8f9fa;
border-radius: 4px;
}
.download-btn {
display: inline-block;
padding: 1rem 2rem;
background: #28a745;
color: white;
text-decoration: none;
border-radius: 4px;
font-weight: 500;
transition: all 0.3s ease;
}
.download-btn:hover {
background: #218838;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}
@media (max-width: 768px) {
header h1 {
font-size: 2rem;
}
main {
padding: 0 1rem;
}
.form-section,
.intro,
.result {
padding: 1.5rem;
}
.form-actions {
flex-direction: column;
}
button {
width: 100%;
}
}
footer {
background: #333;
color: white;
text-align: center;
padding: 1.5rem 0;
margin-top: 2rem;
}
footer p {
font-size: 0.9rem;
opacity: 0.8;
}

/* 悬浮窗样式 */
.floating-window {
position: fixed;
bottom: 20px;
right: 20px;
width: 320px;
max-height: 400px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 1000;
overflow: hidden;
transition: all 0.3s ease;
}

.floating-window.minimized {
width: 80px;
max-height: 80px;
border-radius: 12px;
}

.floating-window.minimized .floating-header {
padding: 0;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.floating-window.minimized .floating-header h3 {
font-size: 14px;
font-weight: 600;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
letter-spacing: 1px;
}

.floating-window.minimized .floating-controls {
display: none;
}

.floating-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}

.floating-header h3 {
margin: 0;
font-size: 1rem;
font-weight: 600;
border-bottom: none;
padding-bottom: 0;
color: white !important;
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.floating-controls {
display: flex;
gap: 8px;
}

.floating-btn {
background: rgba(255,255,255,0.2);
border: none;
border-radius: 4px;
color: white;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
padding: 0;
font-size: 12px;
}

.floating-btn:hover {
background: rgba(255,255,255,0.3);
transform: none;
box-shadow: none;
}

.floating-content {
padding: 16px;
overflow-y: auto;
max-height: 320px;
transition: all 0.3s ease;
/* 隐藏滚动条但保持可滚动 */
scrollbar-width: none; /* Firefox */
}

.floating-content::-webkit-scrollbar {
display: none; /* Chrome, Safari, Edge */
}

.floating-window.minimized .floating-content {
display: none;
}

.hardware-info {
font-size: 0.9rem;
}

.info-section {
margin-bottom: 16px;
}

.info-section h4 {
color: #667eea;
margin-bottom: 8px;
font-size: 0.9rem;
font-weight: 500;
}

.info-item {
display: flex;
justify-content: space-between;
margin-bottom: 4px;
padding: 4px 0;
border-bottom: 1px solid #f0f0f0;
}

.info-label {
color: #555;
font-size: 0.85rem;
}

.info-value {
color: #333;
font-size: 0.85rem;
font-weight: 500;
text-align: right;
flex: 1;
margin-left: 12px;
}

/* Loading spinner styles */
.loading-spinner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
gap: 1rem;
}

.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.loading-spinner p {
color: #667eea;
font-size: 1rem;
font-weight: 500;
}

/* Button loading state */
button:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none !important;
box-shadow: none !important;
}

.cpu-temperature {
display: flex;
align-items: center;
gap: 8px;
}

.temp-bar {
flex: 1;
height: 6px;
background: #f0f0f0;
border-radius: 3px;
overflow: hidden;
}

.temp-fill {
height: 100%;
background: linear-gradient(90deg, #4CAF50 0%, #FF9800 70%, #F44336 100%);
border-radius: 3px;
transition: width 0.3s ease;
}

.temp-value {
font-size: 0.8rem;
font-weight: 500;
min-width: 40px;
}

@media (max-width: 768px) {
header h1 {
font-size: 2rem;
}
main {
padding: 0 1rem;
}
.form-section,
.intro,
.result {
padding: 1.5rem;
}
.form-actions {
flex-direction: column;
}
button {
width: 100%;
}

.floating-window {
width: 280px;
bottom: 16px;
right: 16px;
}
}
