* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body {
    background-color: #f5f7fa;
    color: #333;
}

/* 顶部导航栏 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #e8e8e8;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 18px;
    color: #0052cc;
}
.logo-icon {
    width: 80px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Ctext x='0' y='20' font-size='18' fill='%230052cc'%3E100%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
}
.header-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.header-nav a:hover {
    color: #0052cc;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* 主容器 */
.container {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background-color: #ffffff;
    border-right: 1px solid #e8e8e8;
    padding: 20px 0;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li {
    margin-bottom: 5px;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}
.sidebar-menu a:hover {
    background-color: #f0f5ff;
    color: #0052cc;
}
.sidebar-menu .active > a {
    background-color: #e6f0ff;
    color: #0052cc;
}
.submenu {
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}
.submenu li {
    margin: 5px 0;
}
.submenu a {
    padding: 8px 20px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 20px;
}
.content-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 20px;
    height: 100%;
}

/* 周导航 */
.week-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.week-btn {
    background-color: #0052cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.week-btn:hover {
    background-color: #003d99;
}

/* 课程表网格 */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e8e8e8;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.day-header {
    background-color: #f5f7fa;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}
.day-column {
    background-color: white;
    min-height: 500px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 课程卡片 */
.course-card {
    background-color: #f0f2f5;
    border-left: 3px solid #0052cc;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}
.course-title {
    font-weight: 500;
    margin-bottom: 4px;
}
.course-time, .course-student, .course-book {
    color: #666;
    margin-bottom: 2px;
}
.course-report-btn {
    background-color: #0052cc;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-top: 5px;
    cursor: pointer;
}
.course-canceled {
    color: #ff4d4f;
    margin-top: 5px;
}







/* ========== 新增课程表单样式 ========== ============================================================================*/
.form-container {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.form-container h2 {
    margin-bottom: 30px;
    color: #333;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-tip {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}
.submit-btn {
    background-color: #0052cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.submit-btn:hover {
    background-color: #003d99;
}

/* ========== 单词学习界面 单词识记 ========================================================================================= */
.word-learn-page {
    background-color: #254EAF;
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}
.word-header {
    background-color: #FFD166;
    color: #333;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 40px;
}
.word-list {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 8px;
}
.word-item {
    background-color: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 25px;
    height: 55px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 22px;
}
.word-item.active {
    background-color: #FFD166;
}
.word-item .cn {
    color: #666;
    margin-left: 10px;
    font-size: 22px;
}
.word-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
}
.footer-info {
    background-color: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
}
.next-btn {
    background-color: white;
    color: #333;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
.word-item .en {
    font-size: 20px; /* 调整字号，数值越大字越大，按需修改 */
    font-weight: bold; /* 加粗，normal取消加粗 */
    /* 还可以加其他样式，比如颜色、间距 */
    margin-right: 12px;
}






/* ========== 混组消词 剪纸盒界面 ==========------------------------------------------------------------------- */
.word-review-page {
    background-color: #254EAF;
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}
.review-word-item {
    background-color: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
}
.review-word-item .en {
    font-size: 30px;    /* 英文大小，按需调数字 */
    font-weight: bold;  /* 加粗，normal取消加粗 */
}
.review-word-item.active {
    background-color: #FFD166;
}
/* 剪刀按钮：圆形、橘色、与单词分开 */
.review-word-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.del-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff9800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}
.review-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
}
.review-box {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.review-box.green {
    background-color: #4CAF50;
}
.review-box.red {
    background-color: #f44336;
}

/* ========== 学后检测界面 =============================================================================================== */
.test-page {
    background-color: #254EAF;
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}
.test-header {
    background-color: #FFD166;
    color: #333;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 40px;
}
/* 单词行：单词文本和按钮完全分离 */
.test-word-row {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1px;
    gap: 12px;
}
/* 单词文本按钮（独立容器） */
.test-word-item {
    background-color: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 22px;
    height: 55px;
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
/* 鼠标悬停/点击时背景变橙色 */
.test-word-item:hover,
.test-word-item.active {
    background-color: #FFD166;
}
/* 学后检测页面英文单词样式 */
.test-word-item .en {
    font-size: 28px;    /* 控制英文大小，数值越大字体越大，可按需微调24-32px */
    font-weight: bold;  /* 开启加粗，不需要加粗就改为normal */
}
.test-word-item .cn {
    font-size: 22px;
    color: #666;
    margin-left: 10px;
}
/* 对号/错误号按钮组（独立容器） */
.test-check-group {
    display: flex;
    gap: 10px;
}
.check-btn, .wrong-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: white;
    background-color: #ddd;
    border: none;
}
.check-btn.checked {
    background-color: #4CAF50;
}
.wrong-btn.checked {
    background-color: #f44336;
}
.test-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.test-info {
    background-color: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
}
.test-btn {
    background-color: white;
    color: #333;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

/* 快捷按钮 */
.quick-test-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: white;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
}
.quick-test-btn:hover {
    opacity: 0.9;
}

/* 滚动条美化 */
.word-list::-webkit-scrollbar,
.test-list::-webkit-scrollbar {
    width: 6px;
}
.word-list::-webkit-scrollbar-thumb,
.test-list::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
}
