* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; color: #333; } .container { max-width: 700px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); border-radius: 20px; padding: 30px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } .header { text-align: center; margin-bottom: 30px; } .title { font-size: 2.5rem; color: #4a5568; margin-bottom: 10px; font-weight: 300; letter-spacing: 2px; } .subtitle { color: #718096; font-size: 1rem; margin-bottom: 20px; } .form-group { margin-bottom: 25px; } .form-label { display: block; margin-bottom: 8px; font-weight: 500; color: #4a5568; font-size: 1rem; } .form-input { width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 1rem; transition: all 0.3s ease; background: #f7fafc; text-align: center; } .form-input:focus { outline: none; border-color: #667eea; background: #fff; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .btn { width: 100%; padding: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; margin-bottom: 25px; } .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3); } .btn:active { transform: translateY(0); } .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .result-section { margin-top: 30px; } .result-title { font-size: 1.3rem; color: #4a5568; margin-bottom: 20px; text-align: center; font-weight: 500; } .loading { display: none; text-align: center; color: #667eea; font-style: italic; margin-bottom: 20px; } .result-container { display: grid; gap: 20px; grid-template-columns: 1fr; } .result-card { background: #f7fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px; transition: all 0.3s ease; } .result-card:hover { border-color: #667eea; box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1); } .card-title { font-size: 1.1rem; color: #4a5568; margin-bottom: 15px; text-align: center; font-weight: 600; } .score-display { font-size: 2.5rem; font-weight: bold; text-align: center; margin-bottom: 10px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .score-desc { text-align: center; color: #718096; font-size: 0.9rem; line-height: 1.5; } .meaning-content { color: #2d3748; line-height: 1.8; font-size: 1rem; text-align: left; white-space: pre-wrap; } .error { color: #e53e3e; background: #fed7d7; border: 1px solid #feb2b2; padding: 15px; border-radius: 8px; margin-top: 15px; } /* 平板和桌面端优化 */ @media (min-width: 768px) { .result-container { grid-template-columns: 1fr 1fr; } .result-card:last-child { grid-column: 1 / -1; } } /* 手机端优化 */ @media (max-width: 768px) { body { padding: 10px; } .container { padding: 20px; margin: 10px; } .title { font-size: 2rem; } .form-input { padding: 12px; } .btn { padding: 12px; } .result-card { padding: 15px; } .score-display { font-size: 2rem; } } @media (max-width: 480px) { .title { font-size: 1.8rem; letter-spacing: 1px; } .container { padding: 15px; } .result-card { padding: 12px; } .score-display { font-size: 1.8rem; } .meaning-content { font-size: 0.9rem; } }