﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
        
body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}
        
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
        
header {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    padding: 25px 30px;
    text-align: center;
}
        
h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}
        
.subtitle {
    font-size: 16px;
    opacity: 0.85;
}
        
.nav-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
        
.nav-tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
        
.nav-tab.active {
    color: #4b6cb7;
    border-bottom: 3px solid #4b6cb7;
    background: white;
}
        
.tab-content {
    display: none;
    padding: 25px;
}
        
.tab-content.active {
    display: block;
}
        
/* 用户信息页面样式 */
.user-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
        
.form-group {
    margin-bottom: 20px;
}
        
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
}
        
input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s ease;
}
        
input:focus, select:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.1);
}
        
/* 试题选择页面样式 */
.test-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
        
.test-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}
        
.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #4b6cb7;
}
        
.test-card.selected {
    border-color: #4b6cb7;
    background-color: #f0f4ff;
}
        
.test-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}
        
.test-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #64748b;
}
        
.test-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}
        
.test-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #475569;
    margin-right: 8px;
}
        
.test-tag.difficulty-easy {
    background: #dcfce7;
    color: #166534;
}
        
.test-tag.difficulty-medium {
    background: #fef9c3;
    color: #854d0e;
}
        
.test-tag.difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}
        
/* 测评页面样式 */
.test-area {
    margin: 0 auto;
}
        
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
        
.test-title-large {
    font-size: 24px;
    color: #2c3e50;
}
        
.test-timer {
    font-size: 18px;
    font-weight: 600;
    color: #4b6cb7;
    background: #f0f4ff;
    padding: 8px 15px;
    border-radius: 20px;
}
        
.word-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    text-align: center;
}
        
.word-english {
    font-size: 80px;
    font-weight: 700;
    color: #f90;
    margin-bottom: 15px;
    word-break:break-word;
    -webkit-text-stroke: 2px #2c3e50;
    text-stroke: 2px #000;
}
        
.word-phonetic {
    font-size: 25px;
    color: #64748b;
    margin-bottom:80px;
    font-family:Arial;
}
        
.word-example {
    font-size: 16px;
    color: #475569;
    margin-bottom: 30px;
    font-style: italic;
    border-left: 3px solid #4b6cb7;
    padding-left: 15px;
    text-align: left;
}
        
.answer-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border 0.3s ease;
}
        
.answer-input:focus {
    outline: none;
    border-color: #4b6cb7;
}
        
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #64748b;
}
        
.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
        
.progress {
    height: 100%;
    background: linear-gradient(90deg, #4b6cb7, #3a5795);
    border-radius: 4px;
    transition: width 0.5s ease;
}
        
/* 结果页面样式 */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
    background-color: #f9fafc;
}
        
.result-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}
        
.result-card:hover {
    transform: translateY(-5px);
}
        
.card-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}
        
.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}
        
.accuracy-container {
    margin-top: 10px;
}
        
.accuracy-progress-bar {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
}
        
.accuracy-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 6px;
    transition: width 1s ease-in-out;
}
        
.wrong-words-section {
    padding: 25px;
}
        
h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-left: 4px solid #4b6cb7;
    padding-left: 12px;
}

#wrong-words span{
    background-color: #f1f5f9; display: inline-block; padding:10px 50px;
    margin: 5px;
    border-radius: 5px;
    font-size: 18px;
}
#wrong-words span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
        
th {
    background-color: #f1f5f9;
    padding: 14px 15px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
        
td {
    padding: 14px 15px;
    border-bottom: 1px solid #e2e8f0;
}
        
tr:last-child td {
    border-bottom: none;
}
        
tr:hover {
    background-color: #f8fafc;
}
        
.word-cell {
    font-weight: 500;
    color: #1e293b;
}
        
.meaning-cell {
    color: #64748b;
}
        
.actions {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background-color: #f9fafc;
}
        
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #4b6cb7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 8px;
}
        
.btn:hover {
    background: #3a5795;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}
        
.btn-outline {
    background: transparent;
    color: #4b6cb7;
    border: 1px solid #4b6cb7;
}
        
.btn-outline:hover {
    background: #4b6cb7;
    color: white;
}
        
.btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn_danger{
    background-color:#FF5722;
}
.btn_danger:hover {
    background-color: #fc3e02;
}
@media (max-width: 768px) {
    .results-summary, .test-list {
        grid-template-columns: 1fr;
    }
            
    th, td {
        padding: 10px 12px;
    }
            
    .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
            
    .nav-tabs {
        flex-direction: column;
    }
            
    .nav-tab {
        text-align: center;
    }
            
    .test-header {
        flex-direction: column;
        align-items: flex-start;
    }
            
    .test-timer {
        margin-top: 10px;
    }
    .word-english {
	    font-size: 2rem;
	    margin-bottom: 5px;
	    -webkit-text-stroke: 1px #2c3e50;
	    text-stroke:1px #000;
	}
	.word-phonetic {
	    font-size: 15px;
	}
}