/* --- 通用样式 (General) --- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2em;
}

main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

footer {
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.9em;
}

/* --- 按钮 (Buttons) --- */
.button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
    text-align: center;
}

.primary {
    background-color: #28a745; /* 绿色，强调开始 */
    color: white;
}

.primary:hover {
    background-color: #218838;
}

.secondary {
    background-color: #6c757d; /* 灰色 */
    color: white;
}

.secondary:hover {
    background-color: #5a6268;
}

/* --- 卡片 (Cards - for index.html) --- */
.card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-left: 5px solid #007bff;
}

.card h2 {
    color: #007bff;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* --- 练习区域 (Test Area - for test.html) --- */
.test-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#status-bar {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    font-weight: bold;
    color: #007bff;
}

#question-area {
    min-height: 150px;
    text-align: center;
}

/* --- 填空题表格样式 --- */
.verb-fill-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.verb-fill-table th, .verb-fill-table td {
    border: 1px solid #ddd;
    padding: 15px 10px;
    text-align: center;
}

.verb-fill-table th {
    background-color: #f8f8f8;
    color: #007bff;
}

.verb-fill-table input[type="text"] {
    width: 90%;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
}

/* 答案状态反馈 */
.verb-fill-table input.correct {
    border-color: #28a745;
    background-color: #e6ffec;
}

.verb-fill-table input.incorrect {
    border-color: #dc3545;
    background-color: #ffe6e8;
}

.actions {
    margin-top: 30px;
    text-align: center;
}

.actions button {
    margin: 5px;
}

/* --- 反馈信息 (Feedback) --- */
.feedback {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}

.correct-feedback {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.incorrect-feedback {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-feedback {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    font-size: 1.2em;
}

/* --- 辅助类 --- */
.hidden {
    display: none;
}