/* 英语语音评测站点样式 */
* {
    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;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 头部 */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 主卡片 */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 输入区域 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.input-group input[type="text"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s;
}

.input-group input[type="text"]:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 录音按钮 */
.record-section {
    text-align: center;
    padding: 40px 0;
}

.record-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.record-btn:active {
    transform: scale(0.95);
}

.record-btn.recording {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(245, 87, 108, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0);
    }
}

.record-status {
    margin-top: 20px;
    color: #666;
    font-size: 1.1em;
}

.record-status.recording {
    color: #f5576c;
    font-weight: 500;
}

/* 音频预览 */
.audio-preview {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: none;
}

.audio-preview.show {
    display: block;
}

.audio-preview audio {
    width: 100%;
    margin-bottom: 10px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载动画 */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading.show {
    display: block;
}

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

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

/* 结果展示 */
.result-section {
    display: none;
}

.result-section.show {
    display: block;
}

/* 总分圆环 */
.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 10;
}

.score-circle-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.score-label {
    font-size: 0.9em;
    color: #999;
}

/* 详细分数 */
.score-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.score-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.score-item-label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.score-item-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.score-item-value.good { color: #52c41a; }
.score-item-value.medium { color: #faad14; }
.score-item-value.poor { color: #f5222d; }

/* 单词详情 */
.word-details {
    margin-top: 20px;
}

.word-details h3 {
    margin-bottom: 15px;
    color: #333;
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.word-tag {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.word-tag.correct {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.word-tag.warning {
    background: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.word-tag.error {
    background: #fff2f0;
    color: #f5222d;
    border: 1px solid #ffccc7;
}

/* 提示信息 */
.tips {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.tips-title {
    color: #096dd9;
    font-weight: 500;
    margin-bottom: 8px;
}

.tips ul {
    margin-left: 20px;
    color: #555;
}

.tips li {
    margin-bottom: 5px;
}

/* 错误提示 */
.error-message {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 10px;
    padding: 15px;
    color: #cf1322;
    display: none;
}

.error-message.show {
    display: block;
}

/* 页脚 */
.footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 20px;
}

/* 响应式 */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .card {
        padding: 20px;
    }
    
    .record-btn {
        width: 100px;
        height: 100px;
        font-size: 2.5em;
    }
    
    .score-details {
        grid-template-columns: repeat(2, 1fr);
    }
}
