.App { min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .App-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); } .App-header h1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; font-size: 2.5rem; } /* 滚动条样式 */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; } ::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%); } /* 按钮悬停效果 */ button { transition: all 0.3s ease !important; } button:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } button:active { transform: translateY(0); } /* 卡片阴影效果 */ div[style*="border"] { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: box-shadow 0.3s ease; } div[style*="border"]:hover { box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); } /* 输入框样式 */ input[type="text"] { transition: border-color 0.3s ease, box-shadow 0.3s ease; } input[type="text"]:focus { outline: none; border-color: #667eea !important; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } /* 响应式设计 */ @media (max-width: 768px) { .App-header h1 { font-size: 2rem; } .App-header p { font-size: 14px; } nav { flex-direction: column !important; align-items: center !important; } nav button { width: 100%; max-width: 300px; } } @media (max-width: 480px) { .App-header { padding: 15px !important; } main { padding: 0 15px 30px 15px !important; } .App-header h1 { font-size: 1.8rem; } } /* 动画效果 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } main > div { animation: fadeIn 0.5s ease-out; } /* 代码块样式 */ code { background-color: #f4f4f4; padding: 2px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.9em; color: #e83e8c; } /* 高亮文本 */ strong { color: #495057; font-weight: 600; } /* 链接样式 */ a { color: #667eea; text-decoration: none; transition: color 0.3s ease; } a:hover { color: #764ba2; text-decoration: underline; }