* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

header {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.system-title {
    color: #ff0000;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    background-color: #f0f8ff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: bold;
    margin-right: 5px;
}

.training-area {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.module-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.tab.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.sub-tabs {
    display: flex;
    margin-bottom: 15px;
}

.sub-tab {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.sub-tab.active {
    background-color: #e6f7ff;
    border-color: #1890ff;
    color: #1890ff;
}

.content-area {
    min-height: 300px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.phrase-item, .sentence-item, .passage-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phrase-text, .sentence-text, .passage-text {
    flex: 1;
}

.phrase-actions, .sentence-actions, .passage-actions {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.audio-btn {
    background-color: #1890ff;
    color: white;
}

.read-btn {
    background-color: #52c41a;
    color: white;
}

.submit-btn {
    background-color: #faad14;
    color: white;
    margin-top: 15px;
}

.question-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.question-text {
    font-weight: bold;
    margin-bottom: 10px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.option.selected {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.option.correct {
    background-color: #f6ffed;
    border-color: #52c41a;
}

.option.incorrect {
    background-color: #fff2f0;
    border-color: #ff4d4f;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
    color: #1890ff;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #1890ff;
    color: white;
    font-size: 16px;
}

.admin-panel {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-btn {
    background-color: #722ed1;
    color: white;
}

.student-list {
    max-height: 400px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f0f0f0;
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.celebration-text {
    font-size: 48px;
    font-weight: bold;
    color: #ff4d4f;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.flower {
    position: absolute;
    font-size: 24px;
    color: #ff4d4f;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.logout-btn {
    background-color: #ff4d4f;
    color: white;
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.student-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row input {
    flex: 1;
}

.student-details {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 15px;
}

.detail-item {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    margin-right: 10px;
}

.export-options {
    margin-bottom: 15px;
}

.export-option {
    margin-bottom: 10px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.recording-indicator {
    display: none;
    color: #ff4d4f;
    font-weight: bold;
}

.import-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.file-input {
    margin: 10px 0;
}

.audio-status {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .info-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .module-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        margin-bottom: 5px;
    }
    
    .phrase-item, .sentence-item, .passage-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .phrase-actions, .sentence-actions, .passage-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    button {
        flex: 1;
    }
    
    .form-row {
        flex-direction: column;
    }
}