/* ===== 英语Ai魔法盒 - 全局样式 ===== */

/* CSS变量 */
:root {
    --primary-color: #ff6a00;
    --primary-light: #ff8533;
    --primary-dark: #e55a00;
    --sidebar-bg: #304156;
    --sidebar-hover: #263445;
    --sidebar-text: #bfcbd9;
    --sidebar-active: #ff7d00;
    --bg-color: #f0f2f5;
    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --border-color: #e4e7ed;
    --card-shadow: 0 2px 12px 0 rgba(0,0,0,.08);
    --border-radius: 8px;
    --success-color: #67c23a;
    --warning-color: #e6a23c;
    --danger-color: #f56c6c;
    --info-color: #909399;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== 登录页 ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255,106,0,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,106,0,0.1) 0%, transparent 50%);
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    overflow: hidden;
    width: 900px;
    max-width: 95%;
    position: relative;
    z-index: 1;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8533 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.login-logo {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ff6a00, #ff9a44, #ffb87a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 106, 0, 0.2);
    animation: logoShimmer 3s ease-in-out infinite;
}

@keyframes logoShimmer {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 0px rgba(255,106,0,0)); }
    50% { filter: brightness(1.08) drop-shadow(0 0 6px rgba(255,154,68,0.4)); }
}

.login-slogan {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.login-features {
    position: relative;
    z-index: 1;
}

.login-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
}

.login-feature-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
}

.login-right {
    flex: 1;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-right .subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-regular);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 16px;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255,106,0,0.1);
}

.captcha-wrapper {
    display: flex;
    gap: 12px;
}

.captcha-wrapper .input-wrapper {
    flex: 1;
}

.captcha-img {
    height: 44px;
    width: 120px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5, #e4e7ed);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--primary-color);
    user-select: none;
    font-style: italic;
    transition: all 0.3s;
}

.captcha-img:hover {
    opacity: 0.8;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-regular);
}

.checkbox-wrapper input {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.login-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,106,0,0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== 主框架布局 ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background-color: var(--sidebar-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.3s;
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.sidebar-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 8px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,125,0,0.4) transparent;
}
.sidebar-menu::-webkit-scrollbar { width: 6px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,125,0,0.35); border-radius: 3px; }
.sidebar-menu::-webkit-scrollbar-thumb:hover { background: rgba(255,125,0,0.6); }

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu .menu-item {
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all 0.25s;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-menu .menu-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-active);
    border-left-color: rgba(255,125,0,0.5);
}

.sidebar-menu .menu-item:hover .menu-icon {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.sidebar-menu .menu-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,125,0,0.32) 0%, rgba(255,125,0,0.12) 60%, rgba(38,52,69,0) 100%);
    border-left-color: var(--sidebar-active);
    border-left-width: 4px;
    font-weight: 700;
    font-size: 15px;
}
.sidebar-menu .menu-item.active::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--sidebar-active);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 0 10px rgba(255,125,0,0.7);
}
.sidebar-menu .menu-item.active .menu-icon {
    transform: scale(1.18);
    color: var(--sidebar-active);
    transition: transform 0.2s;
}

.sidebar-menu .menu-item .menu-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-footer .menu-item {
    height: 40px;
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    cursor: pointer;
    font-size: 13px;
    padding: 0 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-footer .menu-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-active);
    font-weight: 700;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部栏 */
.topbar {
    height: 60px;
    background: linear-gradient(90deg, #304156, #2b394f);
    box-shadow: 0 2px 8px rgba(0,21,41,.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* 顶部栏中央艺术字标语 */
.topbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.topbar-slogan-text {
    font-family: 'FZCuHeiSongS-B-GB', '方正粗黑宋简体', '方正粗黑宋简', 'FZCuHeiSongS', 'SimHei', '黑体', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #9aa7ff;
    text-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 12px rgba(150,167,255,.35);
}
.topbar-slogan-sep {
    color: rgba(255,255,255,0.2);
    font-size: 20px;
    font-weight: 300;
}
/* 窗口过窄时隐臧标语防挤压 */
@media (max-width: 1100px) {
    .topbar-center { display: none; }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.topbar-user:hover {
    background-color: rgba(255,255,255,0.08);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.topbar-username {
    font-size: 14px;
    color: #bfcbd9;
}

.dropdown-menu {
    position: absolute;
    top: 54px;
    right: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-item {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-regular);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu-item:hover {
    background-color: #f5f7fa;
    color: var(--primary-color);
}

/* 内容区 */
.content-area {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    display: none;
}

.page-wrapper.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* 页面标题 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-header-left p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-default {
    background: white;
    color: var(--text-regular);
    border: 1px solid var(--border-color);
}

.btn-default:hover:not(:disabled) {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

.btn-text:hover {
    opacity: 0.8;
}

.btn-text.danger {
    color: var(--danger-color);
}

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-icon.blue { background: #ecf5ff; color: #409eff; }
.stat-card-icon.green { background: #f0f9eb; color: #67c23a; }
.stat-card-icon.orange { background: #fdf6ec; color: #e6a23c; }
.stat-card-icon.purple { background: #f4f0ff; color: #9b59b6; }
.stat-card-icon.red { background: #fef0f0; color: #f56c6c; }

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card-trend {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-trend.up { color: var(--success-color); }
.stat-card-trend.down { color: var(--danger-color); }
.stat-card-trend.neutral { color: var(--text-secondary); }

/* 卡片 */
.card {
    background: linear-gradient(180deg, #fffdfb, #fff9f4);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.06), 0 1px 3px rgba(255,106,0,.03);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,106,0,0.04);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.card-body {
    padding: 20px;
}

/* 搜索筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    font-size: 13px;
    color: var(--text-regular);
    white-space: nowrap;
}

.filter-item input,
.filter-item select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    background: white;
}

.filter-item input:focus,
.filter-item select:focus {
    border-color: var(--primary-color);
}

.filter-item input {
    min-width: 180px;
}

.filter-item select {
    min-width: 140px;
    cursor: pointer;
    padding-right: 28px;
}

/* 表格 */
.table-wrapper {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.data-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

table.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-regular);
}

table.data-table tbody tr:hover {
    background: #fafafa;
}

table.data-table .empty-row td {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* 标签/徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: #f0f9eb; color: #67c23a; }
.badge-warning { background: #fdf6ec; color: #e6a23c; }
.badge-danger { background: #fef0f0; color: #f56c6c; }
.badge-info { background: #f4f4f5; color: #909399; }
.badge-primary { background: #fef0e6; color: var(--primary-color); }

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 0;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: auto;
}

.pagination button {
    min-width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-regular);
    transition: all 0.3s;
    padding: 0 8px;
}

.pagination button:hover:not(:disabled) {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 选项卡 */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 16px;
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-regular);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-item {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-regular);
    transition: all 0.3s;
    white-space: nowrap;
}

.tag-item:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tag-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 词库卡片网格 */
.wordbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.wordbook-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wordbook-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.wordbook-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    color: white;
}

.wordbook-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.wordbook-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordbook-card-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 520px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-large {
    width: 680px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f7fa;
    color: var(--text-primary);
}

/* 弹窗头部右侧导出按钮组（热力图学习详情） */
.dd-export-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dd-export-group .btn-sm {
    font-size: 12px;
    padding: 4px 10px;
    white-space: nowrap;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 表单 */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-col {
    flex: 1;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-field label .required {
    color: var(--danger-color);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    background: white;
}

.form-field textarea {
    height: 80px;
    padding: 8px 12px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-color);
}

/* 图表区域 */
.chart-container {
    position: relative;
    height: 300px;
    padding: 20px;
}

/* 环形进度 */
.ring-progress {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.ring-chart {
    position: relative;
    width: 160px;
    height: 160px;
}

.ring-chart svg {
    transform: rotate(-90deg);
}

.ring-chart circle {
    fill: none;
    stroke-width: 16;
}

.ring-chart .ring-bg {
    stroke: #f0f0f0;
}

.ring-chart .ring-fill {
    stroke: var(--primary-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s;
}

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

.ring-chart .ring-center .value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
}

.ring-chart .ring-center .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.ring-legend {
    flex: 1;
}

.ring-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ring-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.ring-legend-value {
    font-weight: 600;
    margin-left: auto;
}

/* 学习动态 */
.activity-list {
    padding: 8px 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-content .title {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-content .desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 学习动态 - 3栏横向布局 */
.activity-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 8px 0;
}
.activity-column {
    background: #fafbfc;
    border: 1px solid #ebeef5;
    border-radius: 10px;
    padding: 12px;
    min-height: 120px;
}
.activity-column-title {
    font-size: 12px;
    font-weight: 600;
    color: #909399;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #ebeef5;
    text-align: center;
    letter-spacing: 0.5px;
}
.activity-column .activity-item {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f2f5;
}
.activity-column .activity-item:last-child {
    border-bottom: none;
}
.activity-column .activity-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}
.activity-column .activity-content .title {
    font-size: 13px;
    line-height: 1.4;
}
.activity-column .activity-time {
    font-size: 11px;
    margin-top: 2px;
}
.activity-empty-col {
    padding: 32px 8px;
    text-align: center;
    color: #c0c4cc;
    font-size: 12px;
}

/* 学习动态 - 多学员分组区块（每块内 3 栏 × 9 条 = 27 条） */
.activity-by-student {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 4px 0;
}
.activity-student-block {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 12px;
    padding: 14px 16px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.activity-student-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
}
.activity-header-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
}
.activity-student-title {
    flex: 1;
}
.activity-student-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.activity-student-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.activity-student-block .activity-columns {
    padding: 0;
}
/* 窗口过窄时改为单列 */
@media (max-width: 900px) {
    .activity-columns {
        grid-template-columns: 1fr;
    }
}

/* 日历 */
.calendar-wrapper {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.calendar-nav button:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.calendar-table th {
    padding: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.calendar-table td {
    padding: 0;
    text-align: center;
    border: 1px solid #f5f5f5;
    height: 64px;
    width: calc(100% / 7);
    cursor: pointer;
    transition: background 0.2s;
    vertical-align: top;
}

.calendar-table td:hover {
    background: #fff9f5;
}

.calendar-table td.other-month {
    color: #ccc;
}

.calendar-table td.today {
    background: #fff9f5;
}

.calendar-table td.today .day-number {
    color: var(--primary-color);
    font-weight: bold;
}

.calendar-table td.selected {
    background: var(--primary-color);
}

.calendar-table td.selected .day-number {
    color: white;
}

.calendar-table td.selected .calendar-event {
    color: rgba(255,255,255,0.9);
}

.day-number {
    font-size: 14px;
    color: var(--text-regular);
    padding: 4px 0;
    display: block;
}

.calendar-event {
    font-size: 11px;
    color: var(--primary-color);
    padding: 1px 4px;
    margin: 1px 2px;
    background: rgba(255,106,0,0.1);
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 学员信息 */
.student-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.student-name {
    font-size: 14px;
    color: var(--text-primary);
}

/* Toast消息 */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    animation: toastSlide 0.3s;
}

@keyframes toastSlide {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.toast.success { background: #f0f9eb; color: #67c23a; border: 1px solid #c2e7b0; }
.toast.error { background: #fef0f0; color: #f56c6c; border: 1px solid #fbc4c4; }
.toast.info { background: #f4f4f5; color: #909399; border: 1px solid #dcdfe6; }

/* 操作按钮组 */
.action-btns {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-regular);
    transition: all 0.3s;
}

.action-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.action-btn.danger:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* 响应式 */
@media (max-width: 1200px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { width: 64px; }
    .sidebar-title { display: none; }
    .sidebar-menu .menu-item .menu-text { display: none; }
    .main-content { margin-left: 64px; }
    .stat-cards { grid-template-columns: 1fr; }
    .login-container { flex-direction: column; width: 95%; }
    .login-left { display: none; }
    .form-row { flex-direction: column; }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

/* 验证码canvas相关 */
.captcha-canvas {
    border-radius: 6px;
}

/* 联系客服浮动按钮 */
.float-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,106,0,0.4);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: all 0.3s;
}

.float-contact:hover {
    transform: scale(1.1);
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-regular);
    transition: all 0.3s;
    margin-bottom: 16px;
}

.back-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== 上课页面 ===== */

/* 上课顶部栏 */
.bc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin: -20px -24px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.bc-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bc-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-regular);
    transition: all 0.3s;
}

.bc-topbar-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.bc-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.bc-timer-icon {
    font-size: 20px;
}

.bc-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bc-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.bc-end-btn:hover {
    background: #e04040;
}

/* 上课主页面 */
.bc-main {
    text-align: center;
    padding: 40px 20px;
}

.bc-main h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bc-main h1 .highlight {
    color: var(--primary-color);
}

.bc-main .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

.bc-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.bc-module-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.bc-module-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255,106,0,0.15);
}

.bc-module-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
    color: white;
}

.bc-module-icon.orange { background: linear-gradient(135deg, #ff6a00, #ff9a44); }
.bc-module-icon.blue { background: linear-gradient(135deg, #409eff, #66b1ff); }
.bc-module-icon.green { background: linear-gradient(135deg, #67c23a, #95d475); }

.bc-module-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bc-module-card .desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.bc-module-btn {
    display: inline-block;
    padding: 8px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.bc-module-btn:hover {
    background: var(--primary-dark);
}

.bc-module-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.bc-module-btn.secondary:hover {
    background: #fff9f5;
}

.bc-progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 12px 0;
    overflow: hidden;
}

.bc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff9a44);
    border-radius: 3px;
    transition: width 0.3s;
}

/* 单词学新页面 */
.bc-shorthand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bc-shorthand-header h2 {
    font-size: 20px;
    color: var(--text-primary);
}

.bc-wordbank-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-regular);
    background: white;
}

.bc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.bc-stat-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.bc-stat-item .number {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.bc-stat-item .label {
    font-size: 13px;
    color: var(--text-secondary);
}

.bc-progress-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.bc-progress-section .label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-regular);
}

.bc-start-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.bc-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,106,0,0.3);
}

/* 九宫格 */
.bc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.bc-grid-cell {
    background: white;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: var(--card-shadow);
    position: relative;
}

.bc-grid-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.bc-grid-cell .grid-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.bc-grid-cell .grid-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bc-grid-cell .grid-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.bc-grid-cell .grid-number {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 单词学习卡片 */
.bc-study-container {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

.bc-word-list-panel {
    width: 280px;
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 600px;
}

.bc-word-list-panel h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.bc-word-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.bc-word-item:hover {
    background: #fff9f5;
}

.bc-word-item.active {
    background: rgba(255,106,0,0.1);
    border-left: 3px solid var(--primary-color);
}

.bc-word-item .word-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.bc-word-item .word-actions {
    display: flex;
    gap: 4px;
}

.bc-word-item .word-action-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.bc-word-item .word-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bc-word-item .word-action-btn.learned {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.bc-study-main {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.bc-study-count {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.bc-sentence-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.bc-sentence-en {
    font-size: 20px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.6;
}

.bc-sentence-cn {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

.bc-study-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.bc-accent-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-regular);
}

.bc-toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: #dcdfe6;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.bc-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.bc-toggle-switch.on {
    background: var(--primary-color);
}

.bc-toggle-switch.on::after {
    transform: translateX(16px);
}

.bc-speak-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,106,0,0.1);
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bc-speak-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 学习卡片弹窗 */
.bc-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bc-card-modal {
    background: white;
    border-radius: 16px;
    width: 520px;
    max-width: 90vw;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: cardSlide 0.4s;
}

@keyframes cardSlide {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.bc-card-header .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.bc-card-progress {
    font-size: 13px;
    color: var(--text-secondary);
}

.bc-card-body {
    padding: 32px 24px;
    text-align: center;
}

.bc-card-word {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bc-card-pron {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.bc-card-meaning {
    font-size: 18px;
    color: var(--primary-color);
    margin: 12px 0;
}

.bc-card-example {
    margin-top: 20px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: left;
}

.bc-card-example .en {
    font-size: 14px;
    color: var(--text-regular);
    margin-bottom: 6px;
}

.bc-card-example .cn {
    font-size: 13px;
    color: var(--text-secondary);
}

.bc-card-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.bc-card-option {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-regular);
    transition: all 0.2s;
    text-align: center;
}

.bc-card-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bc-card-option.correct {
    border-color: var(--success-color);
    background: #f0f9eb;
    color: var(--success-color);
}

.bc-card-option.wrong {
    border-color: var(--danger-color);
    background: #fef0f0;
    color: var(--danger-color);
}

.bc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.bc-card-footer-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-regular);
    transition: all 0.3s;
}

.bc-card-footer-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.bc-card-footer-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.bc-card-footer-btn.primary:hover {
    background: var(--primary-dark);
}

/* 单词量检测 */
.bc-vocab-container {
    max-width: 600px;
    margin: 0 auto;
}

.bc-vocab-question {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.bc-vocab-question .word {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.bc-vocab-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bc-vocab-option {
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s;
    color: var(--text-regular);
}

.bc-vocab-option:hover {
    border-color: var(--primary-color);
}

.bc-vocab-option.correct {
    border-color: var(--success-color);
    background: #f0f9eb;
    color: var(--success-color);
}

.bc-vocab-option.wrong {
    border-color: var(--danger-color);
    background: #fef0f0;
    color: var(--danger-color);
}

.bc-vocab-result {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.bc-vocab-result .score {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 16px 0;
}

.bc-vocab-result .level {
    font-size: 18px;
    color: var(--text-regular);
    margin-bottom: 24px;
}

/* 单词量检测区块：复用 .card 全宽卡片样式，与上方词库卡片左右对齐 */
.bc-vocab-section {
    /* 宽度/背景/圆角/阴影/内边距均继承自 .card，此处无需重复定义 */
}
/* 单词量检测标题：参照品牌标识（深中性灰 + 超粗厚重黑体） */
.bc-vocab-section .card-header h3,
.bc-vocab-page-title {
    font-weight: 900;
    color: #1f2d3d;
    letter-spacing: 1.5px;
    font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Noto Sans CJK SC', system-ui, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.bc-vocab-section .card-header h3 { font-size: 22px; }
.bc-vocab-page-title { font-size: 24px; }
.bc-vocab-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f7f9fc, #eef2f7);
    border-radius: 8px;
    margin-bottom: 16px;
}
.bc-vocab-spacer {
    flex: 1;
}
.bc-vocab-controls-label {
    font-size: 14px;
    color: var(--text-regular);
    font-weight: 600;
}
.bc-vocab-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-regular);
    padding: 5px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.2s;
    background: white;
}
.bc-vocab-radio:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.bc-vocab-radio input {
    margin: 0;
    cursor: pointer;
    accent-color: #ff6a00;
}
.bc-vocab-reports-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-regular);
    margin-bottom: 10px;
}
.bc-vocab-report-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.bc-vocab-report-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f7f9fc;
    border-radius: 8px;
    font-size: 13px;
}
.bc-vocab-report-date {
    color: var(--text-secondary);
    flex: 1;
}
.bc-vocab-report-count {
    color: var(--text-regular);
    font-weight: 600;
}
.bc-vocab-report-detail {
    color: var(--text-secondary);
}
.bc-vocab-report-score {
    font-weight: 700;
    font-size: 15px;
    min-width: 48px;
    text-align: right;
}
.bc-vocab-report-score.excellent { color: #67c23a; }
.bc-vocab-report-score.good { color: #409eff; }
.bc-vocab-report-score.normal { color: #e6a23c; }
.bc-vocab-report-score.poor { color: #f56c6c; }
.bc-vocab-report-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-placeholder);
    font-size: 13px;
    padding: 20px;
}

/* 阅读理解 */
.bc-reading-container {
    max-width: 800px;
    margin: 0 auto;
}

.bc-reading-header {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
}

.bc-reading-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bc-reading-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.bc-reading-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bc-reading-passage {
    background: white;
    border-radius: 10px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 2;
    color: var(--text-regular);
    white-space: pre-wrap;
}

.bc-reading-question {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 12px;
}

.bc-reading-question .q-title {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.bc-reading-question .q-num {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 4px;
}

/* 学习报告 */
.bc-report {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.bc-report-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.bc-report h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.bc-report-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.bc-report-stat .number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.bc-report-stat .label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 拼写模式输入框 */
#spellInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,106,0,0.1);
}

#spellInput:disabled {
    background: #f5f7fa;
    color: var(--text-secondary);
}

/* 听音选词模式按钮 */
.bc-speak-btn.large {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

/* ===== 卡片头部记忆徽章 ===== */
.bc-card-header {
    gap: 12px;
}

.bc-mem-badge {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ===== 记忆徽章（单词列表） ===== */
.bc-word-mem {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
    line-height: 1.4;
}

/* ===== 剪纸盒 3D 翻转卡片 ===== */
.bc-flip-card {
    perspective: 1200px;
    cursor: pointer;
    min-height: 200px;
    margin-bottom: 8px;
}

.bc-flip-inner {
    position: relative;
    width: 100%;
    min-height: 200px;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.bc-flip-card.flipped .bc-flip-inner {
    transform: rotateY(180deg);
}

.bc-flip-front,
.bc-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 200px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
}

.bc-flip-front {
    background: linear-gradient(135deg, #eaf5ef 0%, #f5fbf8 100%);
    border: 2px solid #c8e6d5;
}

.bc-flip-back {
    background: linear-gradient(135deg, #e8f3ed 0%, #f0f9f4 100%);
    border: 2px solid #c8e6d5;
    transform: rotateY(180deg);
}

.bc-flip-hint {
    margin-top: 18px;
    font-size: 13px;
    color: var(--primary-color);
    opacity: 0.7;
    animation: pulseHint 1.6s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* ===== 认识/不认识判断按钮 ===== */
.bc-judge-area {
    margin-top: 16px;
    text-align: center;
    animation: fadeIn 0.3s;
}

.bc-judge-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.bc-judge-btn {
    flex: 1;
    max-width: 160px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    color: white;
}

.bc-judge-btn.known {
    background: linear-gradient(135deg, #67c23a, #5daf34);
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
}

.bc-judge-btn.known:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(103, 194, 58, 0.4);
}

.bc-judge-btn.unknown {
    background: linear-gradient(135deg, #f56c6c, #e64242);
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.3);
}

.bc-judge-btn.unknown:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 108, 108, 0.4);
}

/* ===== 答题反馈 ===== */
.bc-feedback {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    animation: fadeIn 0.3s;
}

.bc-feedback.correct {
    color: var(--success-color);
    background: #f0f9eb;
}

.bc-feedback.wrong {
    color: var(--danger-color);
    background: #fef0f0;
}

/* ===== 例句配对完形填空 ===== */
.bc-cloze-sentence {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    padding: 16px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 10px;
    text-align: left;
}

.bc-cloze-translation {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0 20px;
    margin-bottom: 16px;
    text-align: left;
}

/* ===== 速记挑战倒计时 ===== */
.bc-countdown-bar {
    width: 100%;
    height: 6px;
    background: #ebeef5;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bc-countdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #67c23a, #e6a23c, #f56c6c);
    border-radius: 3px;
}

.bc-countdown-num {
    font-size: 14px;
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== 记忆分布展示 ===== */
.bc-dist-section {
    background: white;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
    box-shadow: var(--card-shadow);
}

.bc-dist-item {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bc-dist-item:last-child {
    margin-bottom: 0;
}

.bc-dist-label {
    font-size: 13px;
    font-weight: 500;
}

.bc-dist-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.bc-dist-bar > div {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.bc-dist-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-regular);
    text-align: right;
}

/* ===========================================
   剪纸盒线性递进流程样式
   =========================================== */

/* 顶部栏扩展 */
.bc-linear-title {
    margin-left: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.bc-linear-name {
    font-size: 18px;
    font-weight: 700;
    color: #303133;
}
.bc-linear-progress {
    font-size: 15px;
    color: #ff6a00;
    font-weight: 600;
}
.bc-linear-tools {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.bc-linear-toolbtn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    transition: all .2s;
}
.bc-linear-toolbtn.annotate { color: #ff6a00; border-color: #ffd9b3; background: #fff7f0; }
.bc-linear-toolbtn.note { color: #909399; border-color: #dcdfe6; background: #f5f7fa; }
.bc-linear-toolbtn.autospeak { color: #909399; border-color: #dcdfe6; background: #f5f7fa; }
.bc-linear-toolbtn.autospeak.active { color: #fff; border-color: #ff6a00; background: linear-gradient(135deg, #ff6a00, #ff9248); box-shadow: 0 2px 8px rgba(255,106,0,.35); }
.bc-linear-toolbtn:hover { opacity: .85; }

/* 流程页面容器（薄荷绿渐变背景） */
/* 线性流程页面容器（薄荷绿渐变背景，占满主内容区宽度） */
.bc-linear-page {
    max-width: 100%;
    margin: 0;
    padding: 24px;
    min-height: calc(100vh - 130px);
    background: linear-gradient(135deg, #e6f7f1 0%, #e0f0f5 100%);
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bc-linear-page * { box-sizing: border-box; }

.bc-linear-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.bc-linear-head h2 { font-size: 22px; color: #303133; margin: 0; }
.bc-linear-prestatus { font-size: 14px; color: #606266; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.bc-linear-prestatus b { color: #ff6a00; }
.bc-linear-tip { color: #f56c6c; margin-left: 8px; }
.bc-linear-ok { color: #67c23a; margin-left: 8px; }
.bc-linear-hint {
    text-align: center;
    color: #606266;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* 单词列表（学前/学后检测） */
.bc-linear-wordlist { display: flex; flex-direction: column; gap: 10px; }
.bc-linear-preitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all .2s;
    flex-wrap: wrap;
}
.bc-linear-preitem.known { border-color: #b3e19d; background: #f6fff0; }
.bc-linear-preitem.unknown { border-color: #fab6b6; background: #fff5f5; }
.bc-linear-preitem.focus {
    border-color: #ff6a00;
    background: #fff8f0;
    box-shadow: 0 4px 16px rgba(255,106,0,0.25);
    animation: bcPreFocusPulse 1.2s ease-in-out infinite;
}
@keyframes bcPreFocusPulse {
    0%,100% { box-shadow: 0 4px 16px rgba(255,106,0,0.25); }
    50% { box-shadow: 0 4px 24px rgba(255,106,0,0.45); }
}

/* 学前检测分页导航 */
.bc-pretest-pagenav {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 14px;
}
.bc-pretest-navbtn {
    padding: 6px 16px; border-radius: 8px;
    border: 1px solid #dcdfe6; background: #fff; color: #606266;
    font-size: 13px; cursor: pointer; transition: all .2s;
}
.bc-pretest-navbtn:hover:not(:disabled) {
    border-color: #ff6a00; color: #ff6a00;
}
.bc-pretest-navbtn:disabled {
    opacity: .4; cursor: not-allowed;
}
.bc-pretest-pageno {
    font-size: 13px; color: #606266;
}
.bc-linear-preidx {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f0f0f0; color: #909399;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.bc-linear-preword {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background .15s;
}
.bc-linear-preword:hover { background: rgba(255,106,0,0.06); }
.bc-linear-preword.revealed { background: rgba(255,106,0,0.10); }
.bc-linear-preword-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bc-linear-preword .w {
    font-size: 18px; font-weight: 600; color: #303133;
    word-break: break-word; overflow-wrap: anywhere;
}
.bc-linear-preword .p { font-size: 13px; color: #909399; flex-shrink: 0; }
.bc-linear-premeaning {
    font-size: 14px; color: #ff6a00; font-weight: 500;
    line-height: 1.4; word-break: break-word; overflow-wrap: anywhere;
}
.bc-linear-premeaning-hint { color: #c0c4cc; font-size: 12px; font-weight: 400; }
.bc-linear-mem { padding: 2px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
/* 学前检测按钮区：固定不被挤压，避免长单词挤占按钮 */
.bc-linear-prebtns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bc-linear-anno {
    margin-top: 8px;
    padding: 6px 10px;
    background: #fff7e6;
    border-left: 3px solid #ff6a00;
    border-radius: 4px;
    font-size: 13px;
    color: #b25e00;
}

/* 认识/不认识小按钮（学前/学后检测） */
.bc-linear-verdict {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
    transition: all .2s;
}
.bc-linear-verdict.known { color: #67c23a; border-color: #b3e19d; }
.bc-linear-verdict.unknown { color: #f56c6c; border-color: #fab6b6; }
.bc-linear-verdict.known.active { background: #67c23a; color: #fff; border-color: #67c23a; }
.bc-linear-verdict.unknown.active { background: #f56c6c; color: #fff; border-color: #f56c6c; }
.bc-linear-verdict:hover { opacity: .85; }

/* 底部按钮 */
.bc-linear-foot { text-align: center; margin-top: 28px; }
.bc-linear-submit {
    padding: 10px 36px;
    border-radius: 8px;
    border: none;
    background: #ff6a00;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(255,106,0,0.25);
}
.bc-linear-submit:hover { background: #e55f00; }
.bc-linear-submit.disabled { background: #c0c4cc; cursor: not-allowed; box-shadow: none; }
.bc-linear-submit.secondary {
    background: #fff;
    color: #ff6a00;
    border: 1px solid #ff6a00;
    margin-left: 12px;
    box-shadow: none;
}

/* 卡片列表（单词识记/本组复习） */
.bc-linear-cards { display: flex; flex-direction: column; gap: 14px; }
.bc-linear-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.bc-linear-card.center {
    max-width: 560px;
    margin: 16px auto;
    text-align: center;
    padding: 32px 24px;
}
.bc-linear-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bc-linear-card-word { font-size: 24px; font-weight: 700; color: #303133; }
.bc-linear-card-body { padding-top: 6px; }
.bc-linear-card-meta { font-size: 13px; color: #909399; margin-bottom: 6px; }
.bc-linear-card-pos { font-size: 16px; color: #606266; margin-bottom: 10px; line-height: 1.5; }
.bc-linear-card-detail {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f7f9fc;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
}
.bc-linear-card-detail .en { color: #303133; margin-bottom: 4px; }
.bc-linear-card-detail .cn { color: #909399; }
.bc-linear-detailbtn {
    background: none;
    border: none;
    color: #409eff;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 0;
}
.bc-linear-detailbtn:hover { color: #66b1ff; }
.bc-youdao-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #ffd9b3;
    border-radius: 6px;
    background: linear-gradient(135deg, #fff7f0 0%, #ffe8d4 100%);
    color: #ff6a00 !important;
    transition: all 0.2s ease;
}
.bc-youdao-link:hover {
    background: linear-gradient(135deg, #ff6a00 0%, #ff9248 100%);
    color: #fff !important;
    border-color: #ff6a00;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255,106,0,0.25);
    text-decoration: none;
}
.bc-youdao-link:visited { color: #ff6a00 !important; }
.bc-youdao-link:visited:hover { color: #fff !important; }
.bc-linear-bookbtn {
    margin-left: auto;
    padding: 4px 12px;
    border: 1px solid #ffd9b3;
    background: #fff7f0;
    color: #ff6a00;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.bc-linear-bookbtn.active { background: #ff6a00; color: #fff; border-color: #ff6a00; }

/* 听音识词 */
.bc-linear-listen { width: 100%; max-width: 900px; margin: 0 auto; text-align: center; padding: 24px; }
.bc-linear-listen-title { font-size: 18px; color: #606266; margin-bottom: 20px; }
.bc-linear-replay {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid #ff6a00;
    background: #fff7f0;
    color: #ff6a00;
    font-size: 24px;
    cursor: pointer;
    margin: 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-linear-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.bc-linear-option {
    background: #fff;
    border: 2px solid #e4e7ed;
    border-radius: 10px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.bc-linear-option:hover { border-color: #ff6a00; background: #fff7f0; }
.bc-linear-option.correct { border-color: #67c23a; background: #f0fbf0; pointer-events: none; }
.bc-linear-option.wrong { border-color: #f56c6c; background: #fef0f0; pointer-events: none; }
.bc-linear-option-word { font-size: 22px; font-weight: 600; color: #303133; }
.bc-linear-option-meta { font-size: 12px; color: #909399; margin-top: 6px; }

/* 翻转卡片（剪纸盒/红绿灯） */
.bc-linear-flip-wrap { perspective: 1200px; width: 100%; max-width: 720px; margin: 16px auto; }
.bc-linear-flip-card {
    position: relative;
    width: 100%;
    min-height: 320px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform .6s;
}
.bc-linear-flip-card.flipped { transform: rotateY(180deg); }
.bc-linear-flip-front, .bc-linear-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #eaf5ef;
    border-radius: 14px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    text-align: center;
}
.bc-linear-flip-back { transform: rotateY(180deg); }
.bc-linear-flip-hint { color: #c0c4cc; font-size: 13px; margin-top: 16px; }

/* 判断区容器 + 大按钮 */
.bc-linear-judge {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}
.bc-linear-tl-judge {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}
.bc-linear-judge-btn {
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s;
}
.bc-linear-judge-btn.known { background: #67c23a; }
.bc-linear-judge-btn.unknown { background: #f56c6c; }
.bc-linear-judge-btn:hover { filter: brightness(1.08); }
.bc-linear-judge-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 纸箱进度图标（右下角悬浮） */
.bc-linear-paperbox {
    position: fixed;
    right: 32px;
    bottom: 32px;
    min-width: 64px;
    height: 56px;
    padding: 0 12px;
    border-radius: 14px;
    background: #304156;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 50;
}

/* 红绿灯布局 */
.bc-linear-tl-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.bc-linear-tl-main { flex: 1; min-width: 300px; }
.bc-linear-tl-stats {
    width: 110px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.bc-linear-tl-stat { text-align: center; padding: 12px 0; border-radius: 8px; }
.bc-linear-tl-stat.red { background: #fef0f0; border: 2px solid #fab6b6; }
.bc-linear-tl-stat.green { background: #f0fbf0; border: 2px solid #b3e19d; }
.bc-linear-tl-stat .num { font-size: 28px; font-weight: 700; }
.bc-linear-tl-stat.red .num { color: #f56c6c; }
.bc-linear-tl-stat.green .num { color: #67c23a; }
.bc-linear-tl-stat .lbl { font-size: 12px; color: #909399; margin-top: 4px; }

/* 选择学习方式 */
.bc-linear-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}
.bc-linear-choice {
    background: #fff;
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 2px solid transparent;
}
.bc-linear-choice:hover {
    border-color: #ff6a00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,106,0,0.15);
}
.bc-linear-choice-icon { font-size: 44px; margin-bottom: 12px; }
.bc-linear-choice-name { font-size: 18px; font-weight: 600; color: #303133; margin-bottom: 6px; }
.bc-linear-choice-desc { font-size: 13px; color: #909399; line-height: 1.6; }

/* 结果页 */
.bc-linear-result {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.bc-linear-result-icon { font-size: 64px; margin-bottom: 12px; }
.bc-linear-result h2 { font-size: 26px; color: #303133; margin-bottom: 24px; }
.bc-linear-result-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.bc-linear-result-item .num { font-size: 32px; font-weight: 700; color: #303133; }
.bc-linear-result-item .lbl { font-size: 13px; color: #909399; margin-top: 4px; }
.bc-linear-review-info {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-left: 4px solid #ff6a00;
    color: #8a6d3b;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    margin: 0 auto 20px;
    max-width: 560px;
    text-align: center;
}
.bc-linear-result-list { text-align: left; margin: 20px 0; }
.bc-linear-result-word {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    flex-wrap: wrap;
}
.bc-linear-result-word .w { font-weight: 600; color: #303133; min-width: 110px; }
.bc-linear-result-word .m { flex: 1; color: #606266; min-width: 200px; }
.bc-linear-result-word .b { color: #909399; font-size: 13px; min-width: 80px; }

/* ===========================================
   用户管理页面样式
   =========================================== */
.user-mgr {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.user-mgr-side {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.user-mgr-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-mgr-name {
    font-size: 20px;
    font-weight: 600;
    color: #303133;
}
.user-mgr-sub {
    font-size: 13px;
    color: #909399;
    margin-top: 4px;
}
.user-mgr-phone {
    margin-top: 16px;
    font-size: 14px;
    color: #606266;
}
.user-mgr-since {
    margin-top: 8px;
    font-size: 12px;
    color: #c0c4cc;
}
.user-mgr-main {
    flex: 1;
    min-width: 0;
}
.user-form { display: flex; flex-direction: column; gap: 16px; }
.user-form .form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.user-form .form-row label {
    width: 90px;
    flex-shrink: 0;
    font-size: 14px;
    color: #606266;
    text-align: right;
}
.user-form .form-row input {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    color: #303133;
    background: #fff;
    transition: border-color .2s;
}
.user-form .form-row input:focus {
    border-color: #ff6a00;
    outline: none;
}
.user-form .form-row input:disabled {
    background: #f5f7fa;
    color: #909399;
    cursor: not-allowed;
}
.user-form .form-hint {
    font-size: 12px;
    color: #c0c4cc;
}
@media (max-width: 768px) {
    .user-mgr { flex-direction: column; }
    .user-mgr-side { width: 100%; }
    .user-form .form-row label { width: 80px; text-align: left; }
    .user-form .form-row input { max-width: none; }
}

/* ===== 用户管理页：头像上传 + 邮箱扩展 ===== */
.user-mgr-avatar img,
.topbar-avatar img,
.avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.topbar-avatar img {
    background: #fff;
}
.user-mgr-email {
    margin-top: 4px;
    font-size: 14px;
    color: #606266;
    word-break: break-all;
}
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.15);
}
.avatar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.avatar-actions .form-hint {
    width: 100%;
    margin-top: 4px;
}
@media (max-width: 768px) {
    .avatar-upload { flex-direction: column; align-items: flex-start; }
}

/* ========================================
   单词速记 模块样式
   ======================================== */
.vm-bank-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}
.vm-bank-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fff 0%, #fff7f0 100%);
    border: 1px solid #ffd8b8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vm-bank-card:hover {
    border-color: #ff6a00;
    box-shadow: 0 4px 14px rgba(255,106,0,0.15);
    transform: translateY(-2px);
    position: relative;
    z-index: 5;
}
.vm-bank-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    color: #fff;
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.vm-bank-info { flex: 1; min-width: 0; }
.vm-bank-name {
    font-size: 16px; font-weight: 600; color: #303133;
    margin-bottom: 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vm-bank-meta {
    font-size: 12px; color: #909399;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.vm-bank-arrow { color: #c0c4cc; font-size: 20px; }

/* 词库图片悬停 5.2 倍放大 */
.vm-bank-icon img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-bank-card:hover .vm-bank-icon {
    overflow: visible;
}
.vm-bank-card:hover .vm-bank-icon img {
    transform: scale(5.2);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border-radius: 4px;
}

/* ========================================
   词库管理 - Tab / 勾选 / 选中态 / 提示
   ======================================== */
.wb-tab {
    padding: 8px 18px;
    font-size: 14px;
    color: #606266;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.wb-tab:hover {
    color: #ff6a00;
    border-color: #ffd8b8;
}
.wb-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    border-color: #ff6a00;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.25);
}

/* 词库卡片选中态（用于增量合并） */
.vm-bank-card.selected {
    border-color: #ff6a00;
    border-width: 2px;
    padding: 15px;
    background: linear-gradient(135deg, #fff 0%, #fff3e6 100%);
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.2);
}

/* 卡片右上勾选圆圈 */
.wb-card-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #dcdfe6;
    background: #fff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.wb-card-check:hover {
    border-color: #ff6a00;
}
.wb-card-check.checked {
    background: #ff6a00;
    border-color: #ff6a00;
}

/* 卡片删除按钮 */
.wb-card-del {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.wb-card-del:hover {
    background: #fef0f0;
}

/* 增量合并提示条 */
.wb-merge-tip {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #fff7f0;
    border-left: 3px solid #ff6a00;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 合并预览框 */
.wb-merge-preview {
    background: #f0f9ff;
    border: 1px solid #d0e6ff;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #1f6fd0;
    line-height: 1.8;
}

.empty-tip {
    padding: 40px; text-align: center; color: #909399;
}

.vm-stat { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.vm-stat-item { font-size: 13px; color: #606266; }
.vm-stat-item b { font-size: 16px; color: #303133; }
.vm-tip {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff7f0;
    border-left: 3px solid #ff6a00;
    border-radius: 6px;
    font-size: 13px; color: #606266; line-height: 1.6;
}
.vm-tip u { color: #ff6a00; }

.vm-word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.vm-word-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}
.vm-word-item:hover { border-color: #ffb777; background: #fffaf5; }
.vm-word-item.selected {
    border-color: #ff6a00;
    background: linear-gradient(135deg, #fff5ec 0%, #ffe8d4 100%);
    box-shadow: 0 2px 8px rgba(255,106,0,0.18);
}
.vm-word-check {
    width: 22px; height: 22px;
    border: 2px solid #dcdfe6;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff; font-weight: bold;
    background: transparent;
}
.vm-word-item.selected .vm-word-check {
    border-color: #ff6a00;
    background: #ff6a00;
}
.vm-word-text { flex: 1; min-width: 0; }
.vm-word-w {
    font-size: 15px; font-weight: 600; color: #303133;
    margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vm-word-p { font-size: 12px; color: #909399; margin-bottom: 2px; }
.vm-word-m {
    font-size: 12px; color: #606266;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 背诵/复习界面 */
.vm-learn-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    gap: 12px;
}
.vm-learn-left { display: flex; align-items: center; gap: 12px; }
.vm-learn-bank { font-size: 14px; font-weight: 600; color: #303133; }
.vm-learn-stats { display: flex; gap: 18px; font-size: 13px; color: #606266; }
.vm-learn-timer {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: #f0f7ff; border-radius: 6px;
    color: #409eff; font-weight: 600;
}
.vm-learn-bar {
    height: 6px; background: #ebeef5; border-radius: 3px;
    margin-bottom: 16px; overflow: hidden;
}
.vm-learn-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ffa64d);
    transition: width 0.3s ease;
    border-radius: 3px;
}
.vm-card-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
}
.vm-card {
    width: 100%; max-width: 560px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f0 100%);
    border: 2px solid #ffe2c2;
    border-radius: 18px;
    padding: 40px 32px;
    box-shadow: 0 8px 28px rgba(255,106,0,0.12);
    position: relative;
    min-height: 280px;
    text-align: center;
}
.vm-card-speak {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    border: none; border-radius: 50%;
    background: #fff5ec; color: #ff6a00;
    cursor: pointer; font-size: 16px;
    box-shadow: 0 2px 6px rgba(255,106,0,0.15);
}
.vm-card-speak.uk { right: 60px; color: #1e6fd9; background: #eaf3ff; }
.vm-card-word {
    font-size: 36px; font-weight: 700; color: #303133;
    margin-bottom: 8px; margin-top: 8px;
    letter-spacing: 0.5px;
}
.vm-card-pron { font-size: 16px; color: #909399; margin-bottom: 8px; }
.vm-card-bank { font-size: 12px; color: #c0c4cc; margin-bottom: 14px; }
.vm-card-flip {
    margin-top: 16px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    color: #fff;
    border: none; border-radius: 20px;
    font-size: 14px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,106,0,0.3);
}
.vm-card-flip:hover { transform: translateY(-1px); }
.vm-card-meaning {
    font-size: 18px; color: #303133;
    line-height: 1.6; margin: 16px 0;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border-left: 3px solid #ff6a00;
}
.vm-card-example {
    font-size: 13px; color: #606266;
    margin: 12px 0; padding: 10px;
    background: #fff7f0; border-radius: 8px;
    line-height: 1.6;
}
.vm-card-actions { display: flex; gap: 16px; justify-content: center; margin-top: 20px; }
.vm-verdict {
    padding: 12px 32px;
    border: none; border-radius: 24px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.vm-verdict.known {
    background: linear-gradient(135deg, #67c23a, #95d475);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103,194,58,0.3);
}
.vm-verdict.unknown {
    background: linear-gradient(135deg, #f56c6c, #f89898);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245,108,108,0.3);
}
.vm-verdict:hover { transform: translateY(-2px); }

/* 结果页 */
.vm-result {
    text-align: center;
    padding: 40px 20px;
    max-width: 720px;
    margin: 0 auto;
}
.vm-result-icon { font-size: 64px; margin-bottom: 12px; }
.vm-result-sub { color: #909399; font-size: 14px; margin-bottom: 24px; }
.vm-result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.vm-result-stat {
    background: #fff;
    padding: 20px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.vm-result-stat .number {
    font-size: 28px; font-weight: 700; color: #303133;
}
.vm-result-stat .label { font-size: 13px; color: #909399; margin-top: 4px; }
.vm-result-wrong {
    text-align: left;
    background: #fff7f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}
.vm-result-wrong h3 { font-size: 14px; color: #f56c6c; margin-bottom: 10px; }
.vm-result-wrong-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}
.vm-wrong-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
}
.vm-wrong-w { font-weight: 600; color: #303133; min-width: 60px; }
.vm-wrong-m { flex: 1; color: #606266; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-result-actions {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 20px;
}

/* ========================================
   复习计划 模块样式
   ======================================== */
.rv-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.rv-stat-card {
    padding: 18px 16px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.rv-stat-card.orange { background: linear-gradient(135deg, #ff6a00, #ffa64d); }
.rv-stat-card.red { background: linear-gradient(135deg, #f56c6c, #f89898); }
.rv-stat-card.yellow { background: linear-gradient(135deg, #e6a23c, #f3c34e); }
.rv-stat-card.blue { background: linear-gradient(135deg, #409eff, #66b1ff); }
.rv-stat-card.green { background: linear-gradient(135deg, #67c23a, #95d475); }
.rv-stat-num { font-size: 28px; font-weight: 700; }
.rv-stat-label { font-size: 13px; opacity: 0.95; margin-top: 4px; }

/* 学员筛选器（多学员分别展示时） */
.rv-filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 12px 0 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 12px;
}
.rv-filter-label { font-size: 13px; color: #606266; font-weight: 600; margin-right: 4px; }
.rv-filter-tab {
    padding: 6px 14px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.rv-filter-tab:hover { border-color: #ff6a00; color: #ff6a00; }
.rv-filter-tab.active {
    background: linear-gradient(135deg, #ff6a00, #ffa64d);
    border-color: transparent;
    color: #fff;
}

/* ========================================
   通用学员选择器（速记/听写/错词本/首页共用）
   ======================================== */
.stu-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stu-sel-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    flex-shrink: 0;
}
.stu-sel-label {
    font-size: 13px;
    color: #303133;
    font-weight: 600;
    margin-right: 4px;
}
.stu-sel-tab {
    padding: 6px 16px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.stu-sel-tab:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}
.stu-sel-tab.active {
    background: linear-gradient(135deg, #ff6a00, #ffa64d);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255,106,0,0.3);
}

/* 单学员区块小统计 */
.rv-sub-stats {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ebeef5;
}
.rv-sub-stat {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f5f7fa;
    color: #606266;
}
.rv-sub-stat.red { background: #fef0f0; color: #f56c6c; }
.rv-sub-stat.yellow { background: #fdf6ec; color: #e6a23c; }
.rv-sub-stat.blue { background: #ecf5ff; color: #409eff; }
.rv-sub-stat.green { background: #f0f9eb; color: #67c23a; }

.rv-empty {
    text-align: center;
    padding: 40px 20px;
}
.rv-empty-icon { font-size: 56px; margin-bottom: 12px; }
.rv-empty-title { font-size: 16px; font-weight: 600; color: #303133; margin-bottom: 6px; }
.rv-empty-sub { font-size: 13px; color: #909399; }

.rv-today-list {
    display: flex; flex-direction: column;
    gap: 6px;
}
.rv-today-item {
    display: grid;
    grid-template-columns: 40px 1.2fr 2fr 1.2fr 80px;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    font-size: 13px;
    align-items: center;
}
.rv-today-item.overdue {
    border-color: #fbc4c4;
    background: #fff5f5;
}
.rv-today-idx {
    width: 24px; height: 24px;
    background: #f0f7ff; color: #409eff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}
.rv-today-item.overdue .rv-today-idx { background: #fef0f0; color: #f56c6c; }
.rv-today-word { font-weight: 600; color: #303133; }
.rv-today-meaning { color: #606266; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-today-bank { color: #909399; font-size: 12px; }
.rv-today-stage { text-align: right; color: #ff6a00; font-size: 12px; }
.rv-more { text-align: center; padding: 12px; color: #909399; font-size: 12px; }

.rv-interval-table { display: flex; flex-direction: column; gap: 6px; }
.rv-interval-row {
    display: grid;
    grid-template-columns: 32px 80px 1fr;
    gap: 10px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;
    align-items: center;
}
.rv-interval-idx {
    width: 24px; height: 24px;
    background: #ff6a00; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}
.rv-interval-label { font-weight: 600; color: #ff6a00; }
.rv-interval-desc { color: #606266; font-size: 12px; }

.rv-next-tip {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f0f9eb;
    border-left: 3px solid #67c23a;
    border-radius: 6px;
    color: #606266; font-size: 13px; line-height: 1.6;
    text-align: left;
}

/* 卡片头部右侧按钮：让复习计划标题栏的"开始复习"按钮和标题对齐 */
.card-header { display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { margin: 0; }

/* ========================================
   课程排期 复习排期展示样式
   ======================================== */
.sch-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.sch-overview-card {
    background: #fff;
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 3px solid #ff6a00;
}
.sch-overview-num {
    font-size: 28px; font-weight: 700;
}
.sch-overview-label {
    font-size: 13px; color: #909399; margin-top: 4px;
}
.sch-review-list {
    display: flex; flex-direction: column; gap: 6px;
}
.sch-review-item {
    display: grid;
    grid-template-columns: 32px 1.2fr 2fr 1.2fr 70px;
    gap: 10px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;
    align-items: center;
}
.sch-review-item.overdue {
    background: #fff5f5;
    border-left: 3px solid #f56c6c;
}
.sch-review-idx {
    width: 22px; height: 22px;
    background: #f0f7ff; color: #409eff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}
.sch-review-item.overdue .sch-review-idx { background: #fef0f0; color: #f56c6c; }
.sch-review-word { font-weight: 600; color: #303133; }
.sch-review-meaning { color: #606266; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-review-bank { color: #909399; font-size: 12px; }
.sch-review-stage { text-align: right; color: #ff6a00; font-size: 12px; }

@media (max-width: 768px) {
    .sch-review-item { grid-template-columns: 24px 1fr 1fr; gap: 6px; }
    .sch-review-bank, .sch-review-stage { display: none; }

    .stu-list-item { flex-wrap: wrap; }
    .stu-list-avatar { width: 40px; height: 40px; font-size: 16px; }
    .stu-list-meta { gap: 4px; }
    .stu-list-meta > span { width: 100%; }
    .stu-list-actions { width: 100%; justify-content: flex-end; }
}

/* 学员档案管理（用户管理页底部卡片） */
.stu-list {
    display: flex; flex-direction: column; gap: 10px;
}
.stu-list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    background: #f9f9fb;
    border-radius: 10px;
    border-left: 3px solid #ff6a00;
    transition: background .2s, box-shadow .2s;
}
.stu-list-item:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.stu-list-avatar {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a00, #ff9244);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
}
.stu-list-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.stu-list-name {
    font-size: 15px; font-weight: 600; color: #303133;
    display: flex; align-items: center; flex-wrap: wrap;
}
.stu-list-meta {
    display: flex; flex-wrap: wrap; gap: 6px 16px;
    font-size: 12px; color: #606266;
}
.stu-list-meta > span {
    white-space: nowrap;
}
.stu-list-actions {
    flex-shrink: 0;
    display: flex; gap: 8px;
}

/* 单词速记/复习界面在小屏适配 */
@media (max-width: 768px) {
    .vm-learn-topbar { flex-wrap: wrap; }
    .vm-learn-stats { flex-wrap: wrap; gap: 10px; }
    .vm-card-word { font-size: 28px; }
    .vm-bank-list, .vm-word-grid { grid-template-columns: 1fr; }
    .rv-today-item { grid-template-columns: 30px 1fr 1fr; }
    .rv-today-bank, .rv-today-stage { display: none; }
}

/* ========== 每日英语卡片 ========== */
.dq-card {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 60%);
    border: 1px solid #ffe2c4;
    border-left: 4px solid #ff6a00;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(255, 106, 0, 0.08);
    transition: box-shadow 0.25s;
}
.dq-card:hover {
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.14);
}
.dq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.dq-title {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dq-icon {
    font-size: 18px;
    filter: hue-rotate(0deg);
}
.dq-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dq-idx {
    font-size: 12px;
    color: #909399;
}
.dq-refresh-btn {
    border: 1px solid #ffd1a4;
    background: #fff7f0;
    color: #ff6a00;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dq-refresh-btn:hover {
    background: #ff6a00;
    color: #fff;
    border-color: #ff6a00;
}
.dq-body {
    text-align: center;
    padding: 6px 8px 2px;
}
.dq-en {
    font-size: 20px;
    line-height: 1.55;
    color: #2c3e50;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 8px;
    word-break: break-word;
}
.dq-zh {
    font-size: 14px;
    line-height: 1.6;
    color: #606266;
    margin-bottom: 6px;
}
.dq-author {
    font-size: 13px;
    color: #ff6a00;
    text-align: right;
    font-weight: 500;
}

/* 换一条时的淡入动画 */
@keyframes dq-flash-anim {
    0%   { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}
.dq-flash .dq-en,
.dq-flash .dq-zh,
.dq-flash .dq-author {
    animation: dq-flash-anim 0.45s ease-out;
}

/* 小屏适配 */
@media (max-width: 768px) {
    .dq-card { padding: 14px 14px; }
    .dq-en { font-size: 17px; }
    .dq-header { flex-direction: column; align-items: flex-start; }
}

/* ========================================
   单词速记 · 环形九宫格概览页
   ======================================== */
.vm-back-btn {
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.vm-back-btn:hover { color: #ff6a00; border-color: #ff6a00; }

.vm-overview {
    display: flex;
    gap: 32px;
    padding: 8px 4px 24px;
    align-items: center;
    flex: 1;
}
.vm-overview-left {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vm-overview-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 480px;
}

.vm-overview-title h2 { font-size: 22px; color: #303133; margin: 0 0 6px; }
.vm-overview-title p { font-size: 13px; color: #909399; margin: 0; }

.vm-overview-bank {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid #ff6a00;
    padding: 12px 16px;
    border-radius: 8px;
}
.vm-overview-bank-icon { font-size: 24px; }
.vm-overview-bank-name { font-size: 15px; font-weight: 600; color: #303133; }
.vm-overview-bank-meta { font-size: 12px; color: #909399; margin-top: 2px; }

.vm-overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.vm-stat-item {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.vm-stat-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.vm-stat-num { font-size: 24px; font-weight: 700; color: #303133; line-height: 1.1; }
.vm-stat-lbl { font-size: 12px; color: #909399; margin-top: 4px; }

.vm-start-learn-btn {
    background: linear-gradient(135deg, #ff6a00, #ff9248);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255,106,0,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.vm-start-learn-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,106,0,0.45);
}
.vm-start-learn-btn.disabled {
    background: #c0c4cc;
    cursor: not-allowed;
    box-shadow: none;
}
.vm-start-learn-btn.disabled:hover { transform: none; box-shadow: none; }

/* 环形九宫格 */
.vm-ring {
    position: relative;
    width: 460px;
    height: 460px;
}
.vm-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a00, #ff9248);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255,106,0,0.45);
    transition: transform 0.2s;
    z-index: 2;
}
.vm-ring-center:hover { transform: scale(1.05); }
.vm-ring-label { font-size: 12px; opacity: 0.9; }
.vm-ring-text { font-size: 22px; font-weight: 700; margin-top: 4px; }
.vm-ring-sub { font-size: 11px; opacity: 0.85; margin-top: 4px; }

.vm-ring-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ffd54f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.vm-ring-node:hover { transform: scale(1.06) translate(var(--tx, 0), var(--ty, 0)); }
.vm-node-num { font-size: 20px; font-weight: 700; color: #ff6a00; line-height: 1; }
.vm-node-lbl { font-size: 11px; color: #606266; margin-top: 4px; line-height: 1.2; }

.vm-ring-node.forgotten { background: #fff1f0; border-color: #ffa39e; }
.vm-ring-node.forgotten .vm-node-num { color: #f5222d; }

.vm-ring-node.review-1 { background: #fff8e1; border-color: #ffd54f; }
.vm-ring-node.review-1 .vm-node-num { color: #f57c00; }
.vm-ring-node.review-2 { background: #fff3e0; border-color: #ffcc80; }
.vm-ring-node.review-2 .vm-node-num { color: #ef6c00; }
.vm-ring-node.review-3 { background: #f1f8e9; border-color: #c5e1a5; }
.vm-ring-node.review-3 .vm-node-num { color: #558b2f; }
.vm-ring-node.review-4 { background: #e8f5e9; border-color: #a5d6a7; }
.vm-ring-node.review-4 .vm-node-num { color: #388e3c; }
.vm-ring-node.review-5 { background: #e3f2fd; border-color: #90caf9; }
.vm-ring-node.review-5 .vm-node-num { color: #1976d2; }
.vm-ring-node.review-6 { background: #ede7f6; border-color: #b39ddb; }
.vm-ring-node.review-6 .vm-node-num { color: #5e35b1; }

.vm-ring-node.mastered {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    border-color: #66bb6a;
}
.vm-ring-node.mastered .vm-node-num { color: #2e7d32; }
.vm-ring-node.mastered .vm-node-lbl { color: #2e7d32; }

/* 节点之间的连接箭头（用 SVG 背景模拟） */
.vm-ring::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 420px; height: 420px;
    margin: -210px 0 0 -210px;
    border: 2px dashed #ffd9b3;
    border-radius: 50%;
    pointer-events: none;
}

/* 小屏适配：概览页纵向堆叠 */
@media (max-width: 1100px) {
    .vm-overview { flex-direction: column; align-items: stretch; }
    .vm-overview-left { flex: none; }
    .vm-overview-right { min-width: 0; }
    .vm-ring { transform: scale(0.85); transform-origin: top center; }
}

/* ========================================
   单词听写模块样式
   ======================================== */
.dict-progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 24px;
}
.dict-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff9a44);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.dict-card-area {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0 0 8px;
    margin-top: -50px;       /* 卡片整体上移约 1.5cm，避免上方空白浪费 */
    flex: 1;
}
.dict-card {
    width: 100%;
    max-width: 1000px;
    background: linear-gradient(135deg, rgba(230,245,255,0.78), rgba(234,245,239,0.82)), url('../images/healing-bg.png') center/cover no-repeat, #eaf5ef;
    border: 2px solid #c8e6d5;
    border-radius: 18px;
    padding: 26px 36px;      /* 卡片高度压缩 30% */
    box-shadow: 0 6px 20px rgba(58, 138, 110, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dict-progress-info {
    text-align: center;
    color: #909399;
    font-size: 13px;
    margin-bottom: 16px;
}
.dict-card-meaning {
    text-align: center;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #f5fbf8;
    border-radius: 14px;
    border: 1px dashed #c8e6d5;
}
.dict-meaning-label {
    font-size: 12px;
    color: #ff6a00;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.dict-meaning-text {
    font-size: 20px;
    color: #303133;
    font-weight: 600;
    line-height: 1.5;
}
.dict-card-pron {
    text-align: center;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.dict-pron-text {
    font-size: 16px;
    color: #909399;
    font-family: monospace;
}
.dict-input-area {
    display: flex;
    gap: 16px;                     /* 合理间距 */
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 14px 0;
    min-width: 0;                  /* 允许子项收缩，防止横向溢出卡片 */
    width: 100%;
    box-sizing: border-box;
}
.dict-input {
    flex: 1 1 0%;
    min-width: 0;                  /* flex 子项允许收缩，占位文字不再撑破容器 */
    padding: 20px 28px;
    font-size: 44px;               /* 字号: 原始22px 的 2 倍 */
    text-align: center;            /* 文本水平居中 */
    border: 3px solid #409eff;     /* 蓝色边框，控制在卡片内 */
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: monospace;
    letter-spacing: 4px;
    height: 112px;                 /* 高度: 原始56px 的 2 倍，不挤占其他模块 */
    box-sizing: border-box;
    line-height: 1.4;              /* 配合 padding 使文本垂直中部居中 */
}
.dict-input:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}
.dict-input-area .btn {
    height: 112px;                /* 与输入框等高 */
    font-size: 22px;
    padding: 0 40px;
    border-radius: 14px;
    flex-shrink: 0;               /* 按钮不收缩，让输入框吸收剩余空间 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-width: 2px;
    flex-shrink: 0;               /* 按钮宽度固定不被压缩，避免文字换行 */
}
.dict-feedback {
    min-height: 56px;
    margin-bottom: 14px;
}
.dict-feedback-correct,
.dict-feedback-wrong {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    animation: dictFadeIn 0.4s ease;
}
.dict-feedback-correct {
    background: linear-gradient(135deg, #f0f9eb 0%, #e1f3d8 100%);
    border: 1px solid #c2e7b0;
}
.dict-feedback-wrong {
    background: linear-gradient(135deg, #fef0f0 0%, #fde2e2 100%);
    border: 1px solid #fbc4c4;
}
.dict-feedback-icon {
    font-size: 24px;
    margin-bottom: 6px;
}
.dict-feedback-msg {
    font-size: 14px;
    color: #303133;
    line-height: 1.6;
}
.dict-feedback-correct .dict-feedback-msg {
    color: #67c23a;
    font-weight: 600;
}
.dict-feedback-wrong .dict-feedback-msg {
    color: #f56c6c;
}
.dict-card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 模块全屏样式（单词速记 / 单词听写）===== */
.module-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #f0f0f0;
    overflow: auto;
    padding: 20px 28px;
    box-sizing: border-box;
}
/* 全屏时隐藏侧边栏和顶栏，让模块独占视口 */
body.module-fullscreen-on .sidebar,
body.module-fullscreen-on .topbar {
    display: none !important;
}
body.module-fullscreen-on .main-content {
    margin-left: 0 !important;
}
/* 全屏时 page-header 右侧按钮区域不换行，避免退出按钮被挤掉 */
.module-fullscreen .page-header-right {
    flex-wrap: nowrap;
}
/* 全屏时听写卡片/速记概览垂直居中更舒适 */
.module-fullscreen .dict-card-area,
.module-fullscreen .vm-overview {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* 听写筛选按钮组（未听写/已听写） */
.dict-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 12px 16px;
    background: #f5fbf8;
    border-radius: 12px;
    border: 1px solid #c8e6d5;
    flex-wrap: wrap;
}
.dict-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #dcdfe6;
    background: #f5f7fa;
    color: #606266;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.dict-filter-btn:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}
.dict-filter-btn.active {
    background: #ff6a00;
    border-color: #ff6a00;
    color: #fff;
}
.dict-filter-btn.active .dict-filter-count {
    background: rgba(255,255,255,.3);
    color: #fff;
}
.dict-filter-count {
    display: inline-block;
    min-width: 22px;
    padding: 2px 8px;
    background: #e4e7ed;
    color: #606266;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.dict-filter-tip {
    margin-left: auto;
    font-size: 12px;
    color: #909399;
}

/* 听写卡片导航栏（上一个/下一个） */
.dict-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e4e7ed;
}
.dict-nav-pos {
    font-size: 13px;
    color: #909399;
    font-weight: 600;
}
.dict-nav-bar .btn:disabled,
.dict-nav-bar .btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* 听写卡片：已听写/未听写标签 */
.dict-tag-done, .dict-tag-todo {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}
.dict-tag-done {
    background: #e1f3d8;
    color: #67c23a;
}
.dict-tag-todo {
    background: #fff0e6;
    color: #ff6a00;
}

@keyframes dictFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 听写结果页样式 */
.dict-result-summary {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff 0%, #fff7f0 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #ffd8b8;
}
.dict-result-emoji {
    font-size: 64px;
    margin-bottom: 12px;
}
.dict-result-accuracy {
    font-size: 56px;
    font-weight: 700;
    color: #ff6a00;
    line-height: 1;
    margin-bottom: 8px;
}
.dict-result-label {
    font-size: 14px;
    color: #909399;
    margin-bottom: 24px;
}
.dict-result-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}
.dict-result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.dict-result-stat b {
    font-size: 28px;
    color: #303133;
}
.dict-result-stat span {
    font-size: 12px;
    color: #909399;
}
.dict-result-stat.correct b { color: #67c23a; }
.dict-result-stat.wrong b { color: #f56c6c; }

/* ========================================
   数据导出模块样式
   ======================================== */
.export-last-tip {
    padding: 10px 16px;
    background: #f0f9ff;
    border: 1px solid #d0e6ff;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1f6fd0;
}
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.export-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.export-card:hover {
    border-color: #ff6a00;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.1);
    transform: translateY(-2px);
}
.export-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.export-card-info {
    flex: 1;
    margin-bottom: 14px;
}
.export-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 6px;
}
.export-card-desc {
    font-size: 12px;
    color: #909399;
    line-height: 1.5;
    margin-bottom: 10px;
}
.export-card-count {
    display: flex;
    align-items: baseline;
}
.export-card-actions {
    display: flex;
    gap: 8px;
}
.export-card-actions .btn {
    flex: 1;
}
/* 学习记录卡片 - 学员筛选下拉 */
.export-card-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f5f7fa;
    border-radius: 8px;
    border: 1px solid #ebeef5;
}
.export-card-filter label {
    font-size: 12px;
    color: #606266;
    white-space: nowrap;
    font-weight: 500;
}
.export-card-filter select {
    flex: 1;
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    color: #303133;
    cursor: pointer;
    outline: none;
    min-width: 0;
}
.export-card-filter select:focus {
    border-color: #ff6a00;
}

/* ===== 错词本 ===== */
.ww-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ww-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-width: 120px;
    text-align: center;
    border: 1px solid #f0f0f0;
}
.ww-stat-card.mini { min-width: 100px; padding: 12px 16px; }
.ww-stat-card:first-child {
    background: linear-gradient(135deg, #ff6a00, #ff9a44);
    border: none;
}
.ww-stat-card:first-child .ww-stat-num,
.ww-stat-card:first-child .ww-stat-lbl { color: #fff; }
.ww-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #ff6a00;
    line-height: 1.2;
}
.ww-stat-card.mini .ww-stat-num { font-size: 22px; }
.ww-stat-lbl {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
}
.ww-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ww-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}
.ww-item:hover {
    background: #fff7f0;
    border-color: #ffd4a8;
    box-shadow: 0 2px 8px rgba(255,106,0,0.1);
}
.ww-item-main { flex: 1; min-width: 0; }
.ww-item-word { display: flex; align-items: center; gap: 8px; }
.ww-item-word strong { font-size: 18px; color: #303133; }
.ww-speak-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s;
}
.ww-speak-btn:hover { background: #fff0e0; }
.ww-item-pron { font-size: 13px; color: #909399; margin-top: 2px; font-style: italic; }
.ww-item-meaning { font-size: 13px; color: #606266; margin-top: 4px; }
.ww-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 280px;
}
.ww-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: #f0f0f0;
    color: #606266;
    white-space: nowrap;
}
.ww-wrong-count {
    background: #fff0e0;
    color: #ff6a00;
    font-weight: 600;
}
.ww-time { font-size: 11px; color: #c0c4cc; white-space: nowrap; }
.ww-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===== 打卡热力图（GitHub 风格）===== */
.hm-container { padding: 4px 0; }
.hm-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.hm-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #606266;
}
.hm-stats strong { color: #ff6a00; font-weight: 700; }
.hm-legend-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #ebeef5;
}
.hm-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #909399;
}
.hm-legend-cell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
.hm-body {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 8px 8px 8px;
    justify-content: safe center; /* 全年视图列数较多超出容器时，退化为左对齐避免左侧不可滚动 */
}
.hm-day-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}
.hm-day-label {
    height: 16px;
    line-height: 16px;
    margin-bottom: 1px;
    font-size: 12px;
    color: #c0c4cc;
}
.hm-day-label:not(:empty) {
    height: 16px;
}
.hm-grid-wrap { flex: 1; min-width: 0; }
.hm-months {
    position: relative;
    height: 20px;
    margin-bottom: 6px;
}
.hm-month {
    position: absolute;
    font-size: 12px;
    color: #909399;
    line-height: 20px;
}
.hm-grid {
    display: flex;
    gap: 3px;
}
.hm-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hm-cell {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: transform 0.1s, stroke 0.1s;
}
.hm-cell:hover {
    transform: scale(1.4);
    outline: 1px solid #ff6a00;
    outline-offset: 1px;
}
.hm-empty { background: transparent !important; }
.hm-level-0 { background: #ebedf0; }
.hm-today {
    outline: 2px solid #ff6a00;
    outline-offset: 1px;
}

/* ===== 热力图当日详情弹窗 ===== */
.dd-summary {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background: #fff8f3;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.dd-summary-item {
    font-size: 14px;
    color: #606266;
}
.dd-summary-item strong {
    color: #ff6a00;
    font-size: 18px;
    margin: 0 2px;
}
.dd-section {
    margin-bottom: 20px;
}
.dd-section:last-child {
    margin-bottom: 0;
}
.dd-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebeef5;
}
.dd-word-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #ebeef5;
    border-radius: 8px;
}
.dd-word-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.dd-word-item:last-child {
    border-bottom: none;
}
.dd-word-item:hover {
    background: #fff8f3;
}
.dd-word-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.dd-word {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}
.dd-pron {
    font-size: 12px;
    color: #909399;
}
.dd-status {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}
.st-mastered { background: #e8f5e9; color: #2e7d32; }
.st-familiar { background: #e3f2fd; color: #1565c0; }
.st-learning { background: #fff3e0; color: #e65100; }
.st-unknown { background: #ffebee; color: #c62828; }
.dd-meaning {
    font-size: 13px;
    color: #606266;
    line-height: 1.5;
}
.dd-empty {
    padding: 24px;
    text-align: center;
    color: #c0c4cc;
    font-size: 13px;
}

/* ============================================================
   全局发音按钮口音指示（v=20260720x+）
   依据 body[data-accent] 统一着色，并加"英/美"小字标识
   英音：蓝 #1e6fd9 ；美音：红 #d8392c
   适用：.bc-speak-btn / .vm-card-speak / .ww-speak-btn / 听写 .dict-pron-text 等发音按钮
   ============================================================ */

/* --- 英音态：蓝色 --- */
body[data-accent="uk"] .bc-speak-btn,
body[data-accent="uk"] .ww-speak-btn,
body[data-accent="uk"] .vm-card-speak {
    background: #eaf3ff;
    color: #1e6fd9;
    border: 1px solid #b8d4f5;
}
body[data-accent="uk"] .bc-speak-btn:hover,
body[data-accent="uk"] .ww-speak-btn:hover,
body[data-accent="uk"] .vm-card-speak:hover {
    background: #1e6fd9;
    color: #fff;
    border-color: #1e6fd9;
}

/* --- 美音态：红色 --- */
body[data-accent="us"] .bc-speak-btn,
body[data-accent="us"] .ww-speak-btn,
body[data-accent="us"] .vm-card-speak {
    background: #fdecea;
    color: #d8392c;
    border: 1px solid #f3c4be;
}
body[data-accent="us"] .bc-speak-btn:hover,
body[data-accent="us"] .ww-speak-btn:hover,
body[data-accent="us"] .vm-card-speak:hover {
    background: #d8392c;
    color: #fff;
    border-color: #d8392c;
}

/* --- "英/美" 小字标识（::after 伪元素，无需改 HTML） --- */
.bc-speak-btn::after,
.ww-speak-btn::after,
.vm-card-speak::after {
    content: '英';
    font-size: 10px;
    font-weight: 700;
    margin-left: 1px;
    line-height: 1;
    opacity: 0.85;
}
body[data-accent="us"] .bc-speak-btn::after,
body[data-accent="us"] .ww-speak-btn::after,
body[data-accent="us"] .vm-card-speak::after {
    content: '美';
}

/* --- 大号发音按钮（mode1 剪纸盒 56x56）小字稍大 --- */
.bc-speak-btn.large::after { font-size: 12px; }

/* --- 听写结果表/词库管理表中的.btn-text 发音按钮 --- */
/* 注意：词库管理表有固定英/美双列 btn-text，不可随当前口音变色；
   仅听写结果表的"朗读"按钮（带 .is-accent-btn）随口音变色 */
body[data-accent="uk"] .btn-text.is-accent-btn { color: #1e6fd9; }
body[data-accent="us"] .btn-text.is-accent-btn { color: #d8392c; }

/* --- 口音切换按钮自身着色（速记/上课线性流程顶栏 + bc wordStudy） --- */
body[data-accent="uk"] .bc-linear-toolbtn.accent-toggle {
    color: #1e6fd9;
    border-color: #b8d4f5;
    background: #eaf3ff;
}
body[data-accent="us"] .bc-linear-toolbtn.accent-toggle {
    color: #d8392c;
    border-color: #f3c4be;
    background: #fdecea;
}

/* --- 听写词库页"朗读口音"下拉框着色 --- */
body[data-accent="uk"] .dict-accent-select {
    color: #1e6fd9;
    border-color: #b8d4f5;
    background: #eaf3ff;
}
body[data-accent="us"] .dict-accent-select {
    color: #d8392c;
    border-color: #f3c4be;
    background: #fdecea;
}

/* --- bc wordStudy 滑动口音开关（.is-accent 限定，避免随机模式受影响） --- */
.bc-accent-switch.is-accent .bc-toggle-switch {
    background: #1e6fd9;             /* 英音态：蓝 */
}
.bc-accent-switch.is-accent .bc-toggle-switch.on {
    background: #d8392c;             /* 美音态：红 */
}
/* 英音/美音 标签按当前口音高亮 */
body[data-accent="uk"] .bc-accent-switch.is-accent span:first-of-type {
    color: #1e6fd9; font-weight: 700;
}
body[data-accent="uk"] .bc-accent-switch.is-accent span:last-of-type {
    color: #c0c4cc;
}
body[data-accent="us"] .bc-accent-switch.is-accent span:first-of-type {
    color: #c0c4cc;
}
body[data-accent="us"] .bc-accent-switch.is-accent span:last-of-type {
    color: #d8392c; font-weight: 700;
}

/* --- bc-speak-btn 原本用 var(--primary-color)，口音态下覆盖 hover 阴影 --- */
body[data-accent="uk"] .bc-speak-btn:hover { box-shadow: 0 2px 8px rgba(30,111,217,0.35); }
body[data-accent="us"] .bc-speak-btn:hover { box-shadow: 0 2px 8px rgba(216,57,44,0.35); }

/* --- bc mode3/4/7 卡片正面行内发音 span（原 inline color:#409eff） --- */
.bc-inline-speak { font-size: 14px; }
body[data-accent="uk"] .bc-inline-speak { color: #1e6fd9; }
body[data-accent="us"] .bc-inline-speak { color: #d8392c; }
.bc-inline-speak::after {
    content: '英';
    font-size: 10px;
    font-weight: 700;
    margin-left: 3px;
    opacity: 0.85;
}
body[data-accent="us"] .bc-inline-speak::after { content: '美'; }

/* --- 听写卡片"点击朗读单词"按钮 + 音标着色 --- */
body[data-accent="uk"] .dict-card-speak {
    color: #1e6fd9 !important;
    border-color: #b8d4f5 !important;
    background: #eaf3ff !important;
}
body[data-accent="us"] .dict-card-speak {
    color: #d8392c !important;
    border-color: #f3c4be !important;
    background: #fdecea !important;
}
.dict-card-speak::after {
    content: '英';
    font-size: 10px;
    font-weight: 700;
    margin-left: 3px;
    opacity: 0.85;
}
body[data-accent="us"] .dict-card-speak::after { content: '美'; }

/* 听写音标文字按口音弱着色 */
body[data-accent="uk"] .dict-pron-text { color: #1e6fd9; }
body[data-accent="us"] .dict-pron-text { color: #d8392c; }

/* --- 词库管理表双列发音按钮：按各自 data-accent 固定着色，不跟随全局口音 --- */
/* 英列固定蓝、美列固定红，无论当前全局口音是英还是美 */
.bc-speak-btn[data-accent="uk"] {
    background: #eaf3ff !important;
    color: #1e6fd9 !important;
    border: 1px solid #b8d4f5 !important;
}
.bc-speak-btn[data-accent="uk"]:hover {
    background: #1e6fd9 !important;
    color: #fff !important;
    border-color: #1e6fd9 !important;
}
.bc-speak-btn[data-accent="us"] {
    background: #fdecea !important;
    color: #d8392c !important;
    border: 1px solid #f3c4be !important;
}
.bc-speak-btn[data-accent="us"]:hover {
    background: #d8392c !important;
    color: #fff !important;
    border-color: #d8392c !important;
}
/* 词库管理表按钮已有"英/美"文字，去掉 ::after 伪元素避免重复 */
.bc-speak-btn[data-accent]::after { content: none !important; }

/* ===== 登录/注册切换 ===== */
.login-switch {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #909399;
}
.login-switch a {
    color: #ff6a00;
    text-decoration: none;
    font-weight: 600;
}
.login-switch a:hover {
    text-decoration: underline;
}

/* ===== 用户审核页面 ===== */
.audit-stats {
    display: flex;
    gap: 16px;
}
.audit-stat-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.audit-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #303133;
    line-height: 1.2;
}
.audit-stat-label {
    font-size: 13px;
    color: #909399;
    margin-top: 4px;
}

/* 审核表格 */
.audit-user-table {
    width: 100%;
    font-size: 13px;
}
.audit-table-header {
    display: flex;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 4px;
    font-weight: 600;
    color: #606266;
    margin-bottom: 4px;
}
.audit-table-header span,
.audit-table-row span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
    line-height: 32px;
}
.audit-table-row {
    display: flex;
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background 0.15s;
}
.audit-table-row:hover {
    background: #f5f7fa;
}
.audit-cell-name {
    font-weight: 500;
    color: #303133;
}
.audit-cell-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}
.audit-cell-actions .btn-sm {
    padding: 2px 8px;
    font-size: 12px;
}
.audit-cell-actions .btn-text {
    white-space: nowrap;
}

/* 宽表格列宽调整 */
.audit-full-table .audit-table-header span:nth-child(1),
.audit-full-table .audit-table-row span:nth-child(1) { flex: 1.2; }
.audit-full-table .audit-table-header span:nth-child(4),
.audit-full-table .audit-table-row span:nth-child(4) { flex: 0.8; }
.audit-full-table .audit-table-header span:nth-child(5),
.audit-full-table .audit-table-row span:nth-child(5) { flex: 1.2; }
.audit-full-table .audit-table-header span:nth-child(7),
.audit-full-table .audit-table-row span:nth-child(7) { flex: 0.9; }
.audit-full-table .audit-table-header span:nth-child(8),
.audit-full-table .audit-table-row span:nth-child(8) { flex: 1.3; }

.audit-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}
.audit-filter select {
    padding: 4px 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #606266;
}

/* 按钮颜色扩展 */
.btn-success { background: #67c23a; color: white; border-color: #67c23a; }
.btn-success:hover { background: #85ce61; border-color: #85ce61; }
.btn-danger { background: #f56c6c; color: white; border-color: #f56c6c; }
.btn-danger:hover { background: #f78989; border-color: #f78989; }

/* 管理员菜单默认隐藏 */
.admin-only-menu { display: none; }

/* 会员 badge 在侧边栏 */
.user-mgr-badge {
    margin-top: 4px;
    margin-bottom: 4px;
}

/* ===== 阅读理解模块 ===== */
.rd-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-search { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 220px; }
.rd-search input {
    flex: 1; padding: 6px 10px; font-size: 13px; border: 1px solid #dcdfe6;
    border-radius: 6px; outline: none; min-width: 120px;
}
.rd-search input:focus { border-color: #ff6a00; }

/* 分类卡片 */
.rd-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rd-cat-card {
    background: linear-gradient(180deg, #fffdfb, #fff8f2); border-radius: 12px; padding: 18px 16px; cursor: pointer;
    border: 1px solid rgba(255,106,0,0.06); transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.rd-cat-card:hover { box-shadow: 0 6px 20px rgba(255,106,0,.15); transform: translateY(-2px); border-color: #ffd0a0; }
.rd-cat-tag {
    display: inline-block; background: #ff6a00; color: #fff; font-size: 11px;
    padding: 2px 8px; border-radius: 10px; margin-bottom: 10px;
}
.rd-cat-name { font-size: 18px; font-weight: 700; color: #303133; }
.rd-cat-code { font-size: 12px; color: #909399; margin-top: 4px; }
.rd-cat-stat { font-size: 12px; color: #606266; margin-top: 6px; }
.rd-cat-divider { height: 1px; background: rgba(255,106,0,0.06); margin: 12px 0 8px; }
.rd-cat-enter { color: #ff6a00; font-size: 13px; font-weight: 600; }

/* 开发中分类卡片 */
.rd-cat-dev {
    background: linear-gradient(180deg, #f9f9f9, #f0f0f0);
    border: 1px dashed #c0c4cc;
    cursor: default;
    box-shadow: none;
    opacity: 0.85;
}
.rd-cat-dev:hover { transform: none; box-shadow: none; border-color: #c0c4cc; }
.rd-cat-dev .rd-cat-name { color: #909399; }
.rd-cat-dev .rd-cat-code { color: #c0c4cc; }

/* 文章卡片 */
.rd-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rd-art-card {
    background: linear-gradient(180deg, #fffdfb, #fff8f2); border-radius: 12px; padding: 16px; border: 1px solid rgba(255,106,0,0.06);
    position: relative; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.rd-art-card:hover { box-shadow: 0 6px 20px rgba(255,106,0,.15); transform: translateY(-2px); }
.rd-art-tag {
    display: inline-block; background: #fff3e6; color: #ff6a00; font-size: 11px;
    padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; align-self: flex-start;
}
.rd-art-title { font-size: 15px; font-weight: 700; color: #303133; line-height: 1.4; }
.rd-art-source { font-size: 12px; color: #909399; margin-top: 6px; }
.rd-art-meta { font-size: 12px; color: #606266; margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rd-art-status { padding: 1px 8px; border-radius: 10px; font-size: 11px; }
.rd-status-none { background: #f0f0f0; color: #909399; }
.rd-status-learning { background: #fff3e6; color: #ff6a00; }
.rd-status-done { background: #e6f7f0; color: #3a8a6e; }
.rd-art-enter {
    color: #ff6a00; font-size: 13px; font-weight: 600; margin-top: 12px;
    padding-top: 10px; border-top: 1px solid rgba(255,106,0,0.06); cursor: pointer;
}

/* 文章操作栏 */
.rd-article-bar {
    display: flex; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 12px;
    border-bottom: 1px solid #ebeef5; flex-wrap: wrap;
}
.rd-bar-spacer { flex: 1; }
.rd-font-group { display: flex; align-items: center; gap: 4px; }
.rd-font-btn {
    border: 1px solid #dcdfe6; background: #fff; color: #606266;
    padding: 3px 10px; border-radius: 6px; font-size: 12px; cursor: pointer;
}
.rd-font-btn.active { background: #ff6a00; color: #fff; border-color: #ff6a00; }

/* 精读 */
.rd-read-wrap { display: flex; flex-direction: column; gap: 16px; }
.rd-read-wrap.rd-side-mode { flex-direction: row; }
.rd-read-article { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #ebeef5; flex: 1; min-width: 0; }
.rd-side-mode .rd-read-article { flex: 1.4; }
.rd-read-head { margin-bottom: 16px; border-bottom: 1px solid #ebeef5; padding-bottom: 12px; }
.rd-read-sub { font-size: 12px; color: #ff6a00; font-weight: 600; }
.rd-read-title { font-size: 22px; color: #303133; margin: 6px 0; font-weight: 700; line-height: 1.3; }
.rd-read-source { font-size: 12px; color: #909399; }
.rd-read-tip { font-size: 12px; color: #909399; margin-bottom: 14px; }
.rd-link { color: #ff6a00; cursor: pointer; text-decoration: underline; }
.rd-read-body { line-height: 1.9; color: #303133; }
.rd-para { position: relative; padding: 8px 0 8px 36px; border-bottom: 1px dashed #f0f0f0; }
.rd-para:last-child { border-bottom: none; }
.rd-para-num {
    position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%;
    background: #f0f0f0; color: #909399; font-size: 12px; display: flex; align-items: center;
    justify-content: center;
}
.rd-para-text p { margin: 0; }
.rd-trans-btn {
    position: absolute; right: 0; top: 8px; border: 1px solid #dcdfe6; background: #fff;
    color: #909399; padding: 2px 10px; border-radius: 6px; font-size: 12px; cursor: pointer;
}
.rd-trans-btn.active { color: #ff6a00; border-color: #ff6a00; background: #fff3e6; }
.rd-para-trans {
    background: #fff3e6; color: #d2691e; padding: 8px 12px; border-radius: 8px;
    margin-top: 8px; font-size: 0.92em; line-height: 1.7;
}
.rd-word { cursor: pointer; border-radius: 3px; padding: 0 1px; transition: background .15s; }
.rd-word:hover { background: #fff3e6; }
.rd-word-kg { color: #2563eb; font-weight: 600; }
.rd-word-kg:hover { background: #dbeafe; }
.rd-read-side {
    flex: 1; min-width: 0; max-height: 85vh; overflow-y: auto;
}
.rd-read-wrap:not(.rd-side-mode) .rd-read-side { max-height: none; overflow: visible; }
.rd-quiz-wrap:not(.rd-side-mode) .rd-quiz-article { max-height: none; overflow: visible; }

/* 答题 */
.rd-quiz-wrap { display: flex; flex-direction: column; gap: 16px; }
.rd-quiz-wrap.rd-side-mode { flex-direction: row; }
.rd-quiz-article {
    background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #ebeef5;
    flex: 1.3; max-height: 80vh; overflow-y: auto; min-width: 0;
}
.rd-quiz-main { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #ebeef5; flex: 1; min-width: 0; }
.rd-side-mode .rd-quiz-main { flex: 1; }
.rd-tabs { display: flex; gap: 24px; border-bottom: 1px solid #ebeef5; margin-bottom: 16px; }
.rd-tab { padding: 8px 0; font-size: 14px; color: #909399; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 600; }
.rd-tab.active { color: #ff6a00; border-bottom-color: #ff6a00; }
.rd-empty { text-align: center; color: #909399; padding: 40px; font-size: 13px; }
.rd-words-list { display: flex; flex-direction: column; gap: 8px; }
.rd-word-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f5f7fa;
    border-radius: 8px;
}
.rd-word-w { font-weight: 700; color: #303133; min-width: 100px; }
.rd-word-m { flex: 1; color: #606266; font-size: 13px; }

.rd-score-bar {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #f5f7fa;
    padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; color: #606266;
}
.rd-score-hint { color: #909399; font-size: 12px; }
.rd-questions { display: flex; flex-direction: column; gap: 18px; }
.rd-q {
    display: flex; gap: 12px; padding: 14px; border-radius: 10px; border: 1px solid #ebeef5;
    background: #fff;
}
.rd-q-ok { border-color: #b7e8c5; background: #f6fff9; }
.rd-q-wrong { border-color: #f5b5b5; background: #fff5f5; }
.rd-q-num {
    width: 28px; height: 28px; border-radius: 50%; background: #ff6a00; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.rd-q-body { flex: 1; min-width: 0; }
.rd-q-stem { font-weight: 600; color: #303133; margin-bottom: 10px; line-height: 1.5; }
.rd-q-opts { display: flex; flex-direction: column; gap: 6px; }
.rd-opt {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #ebeef5;
    border-radius: 8px; cursor: pointer; background: #fff; transition: background .15s;
}
.rd-opt:hover { background: #fafafa; }
.rd-opt-radio {
    width: 22px; height: 22px; border-radius: 50%; border: 1px solid #dcdfe6; display: flex;
    align-items: center; justify-content: center; font-size: 12px; color: #909399; flex-shrink: 0;
}
.rd-opt-selected { border-color: #ff6a00; background: #fff3e6; }
.rd-opt-selected .rd-opt-radio { background: #ff6a00; color: #fff; border-color: #ff6a00; }
.rd-opt-right { border-color: #67c23a; background: #f0f9eb; }
.rd-opt-right .rd-opt-radio { background: #67c23a; color: #fff; border-color: #67c23a; }
.rd-opt-wrong { border-color: #f56c6c; background: #fef0f0; }
.rd-opt-wrong .rd-opt-radio { background: #f56c6c; color: #fff; border-color: #f56c6c; }
.rd-opt-text { color: #303133; }
.rd-q-explain { margin-top: 10px; padding: 10px 12px; background: #f5f7fa; border-radius: 8px; font-size: 0.92em; }
.rd-q-ans { color: #303133; margin-bottom: 4px; }
.rd-q-expl { color: #606266; line-height: 1.6; }
.rd-action-bar {
    display: flex; gap: 10px; justify-content: center; margin-top: 20px; padding-top: 16px;
    border-top: 1px solid #ebeef5;
}

/* 即指即译弹窗 */
.rd-word-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
}
.rd-word-popup {
    background: #fff; border-radius: 12px; padding: 18px 20px; width: 360px; max-width: 92vw;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.rd-word-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rd-word-pop-w { font-size: 20px; font-weight: 700; color: #303133; }
.rd-word-pop-close { border: none; background: none; font-size: 18px; color: #909399; cursor: pointer; }
.rd-word-pop-pron { font-size: 12px; color: #909399; margin-bottom: 8px; }
.rd-word-pop-meaning { font-size: 14px; color: #303133; line-height: 1.6; margin-bottom: 8px; }
.rd-word-pop-bank { font-size: 11px; color: #c0c4cc; margin-bottom: 10px; }
.rd-word-pop-actions { display: flex; gap: 8px; }

.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: 4px; }

/* 文章列表筛选按钮组 */
.rd-filter-group { display: flex; gap: 0; border-radius: 6px; overflow: hidden; border: 1px solid #dcdfe6; }
.rd-filter-btn {
    border: none; background: #fff; color: #606266; padding: 5px 14px;
    font-size: 13px; cursor: pointer; transition: all .15s; border-right: 1px solid #dcdfe6;
}
.rd-filter-btn:last-child { border-right: none; }
.rd-filter-btn:hover { background: #f5f7fa; }
.rd-filter-btn.active { background: #ff6a00; color: #fff; border-color: #ff6a00; }
.rd-filter-btn.rd-filter-done.active { background: #3a8a6e; border-color: #3a8a6e; }
.rd-filter-btn.rd-filter-undone.active { background: #e8534f; border-color: #e8534f; }
/* 筛选下拉框组 */
.rd-select-group { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-select {
    height: 30px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 6px;
    background: #fff; color: #606266; font-size: 12px; cursor: pointer; transition: all .15s;
    outline: none;
}
.rd-select:hover { border-color: #ff6a00; }
.rd-select:focus { border-color: #ff6a00; box-shadow: 0 0 0 2px rgba(255,106,0,.1); }
/* 已学/未学文章标题颜色 */
.rd-art-title-done { color: #3a8a6e; }
.rd-art-title-undone { color: #e8534f; }

/* 文章列表分页 */
.rd-pagination {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 20px 0 4px; flex-wrap: wrap;
}
.rd-page-btn {
    min-width: 32px; height: 32px; border: 1px solid #dcdfe6; border-radius: 6px;
    background: #fff; color: #606266; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0 10px;
    transition: all .15s;
}
.rd-page-btn:hover:not(:disabled):not(.active) { border-color: #ff6a00; color: #ff6a00; }
.rd-page-btn.active { background: #ff6a00; border-color: #ff6a00; color: #fff; font-weight: 600; }
.rd-page-btn:disabled { color: #c0c4cc; cursor: not-allowed; background: #f5f7fa; }
.rd-page-ellipsis { color: #909399; padding: 0 4px; }

/* 打印：合并打印文章+测试题 */
@media print {
    .sidebar, .topbar, .rd-article-bar, .rd-read-tip, .rd-trans-btn,
    .rd-tabs, .rd-action-bar, .page-header, #rdWordCard { display: none !important; }
    .main-content { margin: 0 !important; }
    .rd-read-article, .rd-quiz-article { border: none; box-shadow: none; }
    .rd-para-num { background: #ddd !important; }
    .rd-read-side { max-height: none !important; overflow: visible !important; }
    .rd-quiz-article { max-height: none !important; overflow: visible !important; }
    .rd-word { color: #303133 !important; }
}

/* 全屏模式 */
.rd-fs-bar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; margin-bottom: 12px;
    background: #fff; border-bottom: 1px solid #ebeef5;
    box-shadow: 0 2px 8px rgba(0,0,0,.04); flex-wrap: wrap;
}
.rd-fs-title { font-size: 16px; font-weight: 700; color: #303133; }
.rd-fs-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-fs-body { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; }
@media (max-width: 1024px) { .rd-fs-body { flex-direction: column; } }
.rd-fs-article {
    background: #fff; border-radius: 12px; padding: 24px;
    border: 1px solid #ebeef5; flex: 1.4; min-width: 0;
}
.rd-fs-quiz {
    background: #fff; border-radius: 12px; padding: 24px;
    border: 1px solid #ebeef5; flex: 1; min-width: 0;
    max-height: 80vh; overflow-y: auto;
}
@media print {
    .rd-fs-bar { display: none !important; }
    .rd-fs-quiz { max-height: none !important; overflow: visible !important; }
}

/* 文章编辑器表单 */
.rd-editor-form { display: flex; flex-direction: column; gap: 12px; }
.rd-form-row { display: flex; flex-direction: column; gap: 4px; }
.rd-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.rd-form-label { font-size: 13px; font-weight: 600; color: #303133; }
.rd-form-input {
    border: 1px solid #dcdfe6; border-radius: 8px; padding: 8px 12px;
    font-size: 14px; color: #303133; background: #fff; outline: none; transition: border-color .2s;
}
.rd-form-input:focus { border-color: #ff6a00; }
.rd-form-textarea {
    border: 1px solid #dcdfe6; border-radius: 8px; padding: 10px 12px;
    font-size: 14px; color: #303133; background: #fff; outline: none;
    line-height: 1.6; font-family: inherit; resize: vertical; transition: border-color .2s;
}
.rd-form-textarea:focus { border-color: #ff6a00; }
.rd-form-hint {
    font-size: 12px; color: #909399; background: #f5f7fa;
    padding: 8px 12px; border-radius: 8px; line-height: 1.6;
}
@media (max-width: 768px) { .rd-form-row-3 { grid-template-columns: 1fr; } }

/* 文章卡片管理按钮 */
.rd-art-admin {
    display: flex; gap: 6px; margin-top: 8px; padding-top: 8px;
    border-top: 1px dashed #ebeef5;
}

/* 导出下拉菜单 */
.rd-export-dropdown {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    min-width: 180px;
}
.rd-export-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #303133;
    cursor: pointer;
    transition: background 0.15s;
}
.rd-export-item:hover {
    background: #fff3e6;
    color: #ff6a00;
}

/* 导出配置对话框 */
.rd-export-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    width: 380px;
    max-width: 90vw;
    overflow: hidden;
}
.rd-export-dialog-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.3);
}
.rd-export-dialog-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c40 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rd-export-dialog-body {
    padding: 20px;
}
.rd-export-dialog-section {
    margin-bottom: 16px;
}
.rd-export-dialog-label {
    font-size: 13px;
    color: #909399;
    margin-bottom: 8px;
    font-weight: 500;
}
.rd-export-dialog-opts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rd-export-opt-btn {
    padding: 8px 16px;
    border: 1.5px solid #dcdfe6;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    text-align: center;
    min-width: 80px;
}
.rd-export-opt-btn:hover {
    border-color: #ff8c40;
    color: #ff6a00;
}
.rd-export-opt-btn.active {
    border-color: #ff6a00;
    background: #fff5eb;
    color: #ff6a00;
    font-weight: 600;
}
.rd-export-dialog-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    padding: 8px 0;
}
.rd-export-dialog-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #ff6a00;
    cursor: pointer;
}
.rd-export-dialog-footer {
    padding: 12px 20px;
    border-top: 1px solid #ebeef5;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.rd-export-info {
    font-size: 12px;
    color: #c0c4cc;
    margin-top: 12px;
    text-align: center;
}

/* 阅读理解宣传位 */
.rd-promo-banner {
    margin-top: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff9f5 0%, #fff3e6 40%, #ffeed9 100%);
    border: 1px solid #ffd9b3;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.08);
}
.rd-promo-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf0 100%);
    color: #303133;
}
.rd-promo-header-text {
    flex: 1;
}
.rd-promo-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.7);
    padding: 8px 12px;
    border-radius: 8px;
}
.rd-promo-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}
.rd-promo-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    color: #303133;
}
.rd-promo-subtitle {
    font-size: 13px;
    margin: 0;
    color: #606266;
    line-height: 1.5;
}
.rd-promo-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #ffd9b3;
    padding: 1px;
}
.rd-promo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 16px;
    background: #fffbf7;
    transition: background 0.2s;
}
.rd-promo-item:hover {
    background: #fff5eb;
}
.rd-promo-item-icon {
    font-size: 24px;
    line-height: 1.4;
    flex-shrink: 0;
}
.rd-promo-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff6a00;
    margin-bottom: 4px;
}
.rd-promo-item-desc {
    font-size: 12px;
    color: #606266;
    line-height: 1.5;
}
.rd-promo-stat-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #ffd9b3;
}
.rd-promo-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rd-promo-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #ff6a00;
    line-height: 1;
}
.rd-promo-stat-label {
    font-size: 12px;
    color: #909399;
}
.rd-promo-stat-sep {
    width: 1px;
    height: 32px;
    background: #ebeef5;
}

/* 阅读统计面板 */
.rd-stats-panel {
    background: linear-gradient(135deg, #fff5eb 0%, #fffaf6 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid #ffe0c2;
}
.rd-stats-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.rd-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.rd-stats-num {
    font-size: 24px;
    font-weight: 700;
    color: #ff6a00;
    line-height: 1.2;
}
.rd-stats-label {
    font-size: 12px;
    color: #909399;
    margin-top: 2px;
}
.rd-stats-bar-wrap {
    flex: 1;
    min-width: 200px;
    height: 8px;
    background: #ffe0c2;
    border-radius: 4px;
    overflow: hidden;
}
.rd-stats-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff9a40);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.rd-stats-bar-text {
    font-size: 12px;
    color: #606266;
    margin-top: 4px;
}
.rd-stats-genres {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px dashed #ffe0c2;
}
.rd-stats-genre-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #606266;
    padding: 4px 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
}
.rd-stats-genre-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .rd-stats-row { flex-direction: column; gap: 12px; }
    .rd-stats-bar-wrap { width: 100%; }
}

.rd-promo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(90deg, #fff5eb 0%, #ffeed9 50%, #fff5eb 100%);
    font-size: 14px;
    color: #ff6a00;
    font-weight: 600;
    border-top: 1px solid #ffd9b3;
}
.rd-promo-cta-icon {
    font-size: 18px;
}
@media (max-width: 768px) {
    .rd-promo-features { grid-template-columns: repeat(2, 1fr); }
    .rd-promo-stat-bar { flex-wrap: wrap; gap: 12px; }
    .rd-promo-stat-sep { display: none; }
}

/* ========================================
   单词红绿灯模块样式（参照单词闪记布局）
   ======================================== */

/* 顶部工具栏 */
.tl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #f5f7fa;
    border-radius: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.tl-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tl-toolbar-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tl-tool-btn {
    padding: 6px 14px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    white-space: nowrap;
}
.tl-tool-btn:hover { border-color: #667eea; color: #667eea; }
.tl-tool-title {
    font-size: 16px;
    font-weight: 700;
    color: #303133;
}
.tl-filter-select, .tl-speed-select {
    padding: 5px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.tl-search-input {
    padding: 5px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 13px;
    width: 130px;
    outline: none;
    transition: border-color .2s;
}
.tl-search-input:focus { border-color: #667eea; }
.tl-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.tl-check-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #c0c4cc;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all .2s;
    flex-shrink: 0;
}
.tl-checkbox.checked { color: #667eea; font-weight: 600; }
.tl-checkbox.checked .tl-check-box {
    background: #667eea;
    border-color: #667eea;
}
.tl-checkbox.checked .tl-check-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.tl-flash-btn {
    padding: 6px 14px;
    border: none;
    background: #667eea;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
    white-space: nowrap;
}
.tl-flash-btn:hover { filter: brightness(1.1); }
.tl-flash-btn.active { background: #f56c6c; }
.tl-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    white-space: nowrap;
}
.tl-accent-btn {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: all .2s;
}
.tl-accent-btn:hover { border-color: #ff6a00; color: #ff6a00; }
.tl-end-btn {
    padding: 6px 14px;
    border: none;
    background: #f56c6c;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.tl-end-btn:hover { filter: brightness(1.1); }

/* 红绿灯页面：治愈画风底图 */
#page-trafficlight {
    background: linear-gradient(135deg, rgba(230,245,255,0.55), rgba(234,245,239,0.62)), url('../images/healing-bg.png') center/cover no-repeat, #eaf5ef;
    border-radius: 16px;
    overflow: hidden;
}
/* 工具栏半透明毛玻璃，露出治愈背景 */
#page-trafficlight .tl-toolbar,
#page-trafficlight .bc-topbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
#page-trafficlight .bc-topbar {
    margin: 0;
}
/* 底部筛选栏半透明 */
#page-trafficlight .tl-filter-bar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 单词速记 & 单词听写页面：治愈画风底图（与红绿灯一致） */
#page-vocab,
#page-dictation {
    background: linear-gradient(135deg, rgba(230,245,255,0.55), rgba(234,245,239,0.62)), url('../images/healing-bg.png') center/cover no-repeat, #eaf5ef;
    border-radius: 16px;
    overflow: hidden;
}
/* 工具栏半透明毛玻璃（速记检测页用了 bc-topbar） */
#page-vocab .bc-topbar,
#page-dictation .bc-topbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* 进度条 */
.tl-progress-bar {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}
.tl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff9a44);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* 学习页面主体 */
.tl-study-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100vh - 160px);
    overflow: hidden;
}
.tl-flash-badge {
    text-align: center;
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(102,126,234,0.08);
    border-radius: 8px;
    align-self: center;
}

/* 卡片容器 */
.tl-card-wrap {
    perspective: 1500px;
    flex: 1;
    display: flex;
    min-height: 0;
    margin-bottom: 8px;
    width: 100%;
    max-width: 900px;
    align-self: center;
}
.tl-card {
    position: relative;
    width: 100%;
    flex: 1;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform .6s;
}
.tl-card.flipped { transform: rotateY(180deg); }
.tl-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: linear-gradient(135deg, rgba(230,245,255,0.78), rgba(234,245,239,0.82)), url('../images/healing-bg.png') center/cover no-repeat, #eaf5ef;
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(0,0,0,0.10);
    text-align: center;
    overflow: hidden;
}
.tl-card-back { transform: rotateY(180deg); }

/* 正面：精美插图（AI生成，按单词名存 images/word-art/{word}.png） */
.tl-card-art {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(102,126,234,0.18);
    border: 3px solid rgba(255,255,255,0.7);
    background: #fff;
    flex-shrink: 0;
}

/* 正面：大单词（clamp 自适应，长词不溢出卡片；字号×1.3 放大） */
.tl-card-word {
    font-size: clamp(52px, 8.5vw, 124px);
    font-weight: 700;
    color: #303133;
    line-height: 1.15;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 隐藏拼写时的问号（固定3个，不溢出卡片） */
.tl-hidden-word {
    font-size: inherit;
    font-weight: inherit;
    color: #c0c4cc;
    letter-spacing: 0.05em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}
.tl-card-meta {
    font-size: 20px;
    color: #909399;
    margin-bottom: 24px;
}
.tl-flip-hint {
    color: #c0c4cc;
    font-size: 16px;
    margin-top: 32px;
}

/* 背面：释义词（clamp 自适应；字号×1.3 放大） */
.tl-card-word-sm {
    font-size: clamp(52px, 9.1vw, 124.8px);
    font-weight: 700;
    color: #303133;
    margin-bottom: 16px;
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tl-card-pos {
    font-size: 11px;
    color: #606266;
    margin-bottom: 16px;
    line-height: 1.5;
}
.tl-card-detail {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    max-width: 520px;
}
.tl-card-detail .en { font-size: 16px; color: #303133; margin-bottom: 6px; }
.tl-card-detail .cn { font-size: 7px; color: #909399; }

/* 已学习/未学习标签 */
.tl-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.tl-tag-done { background: #e1f3d8; color: #67c23a; }
.tl-tag-todo { background: #fef0f0; color: #f56c6c; }

/* 底部操作按钮组 */
.tl-action-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.tl-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    color: #fff;
}
.tl-action-btn:disabled { opacity: .4; cursor: not-allowed; }
.tl-action-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.tl-nav-btn { background: #909399; }
.tl-speak-btn { background: #409eff; padding: 10px 16px; }
.tl-known-btn { background: #67c23a; }
.tl-unknown-btn { background: #f56c6c; }

/* 筛选栏（复用 dict-filter-btn 样式） */
.tl-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e7ed;
    flex-wrap: wrap;
}

/* 结果页 */
.tl-result {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 48px 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.tl-result-icon { font-size: 72px; margin-bottom: 16px; }
.tl-result h2 { font-size: 28px; color: #303133; margin-bottom: 28px; }
.tl-result-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.tl-result-stat-item .num { font-size: 36px; font-weight: 700; color: #303133; }
.tl-result-stat-item .lbl { font-size: 14px; color: #909399; margin-top: 6px; }
.tl-result-section {
    text-align: left;
    margin-bottom: 24px;
}
.tl-result-section h3 {
    font-size: 16px;
    color: #303133;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tl-result-tip {
    font-size: 13px;
    color: #909399;
    font-weight: 400;
}
.tl-result-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}
.tl-result-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.tl-result-item.unknown {
    background: #fef0f0;
    border-left: 3px solid #f56c6c;
}
.tl-result-item.known {
    background: #f0f9eb;
    border-left: 3px solid #67c23a;
}
.tl-result-word { font-weight: 600; color: #303133; }
.tl-result-meaning { font-size: 12px; color: #909399; margin-top: 2px; }
.tl-result-foot {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* 响应式：小屏幕 */
@media (max-width: 768px) {
    .tl-toolbar { flex-direction: column; align-items: stretch; }
    .tl-toolbar-mid { justify-content: center; }
    .tl-card-wrap { min-height: 260px; }
    .tl-card-face { padding: 32px 20px; border-radius: 16px; }
    .tl-card-word { font-size: clamp(46.8px, 15.6vw, 83.2px); }
    .tl-card-meta { font-size: 16px; }
    .tl-card-word-sm { font-size: clamp(41.6px, 13vw, 72.8px); }
    .tl-card-pos { font-size: 9px; }
    .tl-action-bar { flex-wrap: wrap; }
    .tl-action-btn { padding: 8px 14px; font-size: 13px; }
}

/* ========================================
   课堂管理 - 课程列表（轻量化B端表格）
   配色：白底 / 浅灰边框 / 橙色操作 / 绿色未开始
   ======================================== */
.cm-page { padding: 0; }
.cm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.cm-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.cm-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* 搜索框 */
.cm-search {
    position: relative;
    display: flex;
    align-items: center;
}
.cm-search input {
    width: 320px;
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 0 32px 0 36px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.cm-search input::placeholder { color: #9CA3AF; }
.cm-search input:focus { border-color: #F97316; }
.cm-search-icon {
    position: absolute;
    left: 12px;
    color: #9CA3AF;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.cm-search-clear {
    position: absolute;
    right: 10px;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 14px;
    display: none;
    line-height: 1;
}
.cm-search.has-value .cm-search-clear { display: block; }
.cm-search-clear:hover { color: #F97316; }

/* 学员筛选下拉 */
.cm-select {
    position: relative;
    display: flex;
    align-items: center;
}
.cm-select select {
    width: 200px;
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s;
}
.cm-select select:focus { border-color: #F97316; }
.cm-select-arrow {
    position: absolute;
    right: 12px;
    color: #9CA3AF;
    font-size: 12px;
    pointer-events: none;
}

/* 新增课程按钮 */
.cm-btn-primary {
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    background: #F97316;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.cm-btn-primary:hover { background: #EA580C; }

/* 表格 */
.cm-table-wrap {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
}
.cm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
}
.cm-table thead th {
    background: #F9FAFB;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 12px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}
.cm-th-check { width: 44px; }
.cm-table tbody td {
    padding: 12px 12px;
    color: #374151;
    font-weight: 400;
    font-size: 14px;
    border-bottom: 1px solid #E5E7EB;
    text-align: center;
    vertical-align: middle;
}
.cm-table tbody tr:last-child td { border-bottom: none; }
.cm-table tbody tr:hover { background: #F3F4F6; }
.cm-table tbody tr.cm-selected { background: #FFF7ED; }
.cm-table tbody tr.cm-selected:hover { background: #FFEDD5; }

/* 复选框 */
.cm-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #F97316;
    vertical-align: middle;
}

/* 词库名称省略号 */
.cm-cell-ellipsis {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* 状态 */
.cm-status { font-weight: 500; font-size: 14px; }
.cm-status-ended { color: #111827; }
.cm-status-progress { color: #EAB308; }

/* 操作链接 */
.cm-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}
.cm-action {
    color: #F97316;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
    transition: color 0.2s;
}
.cm-action:hover { color: #EA580C; text-decoration: underline; }
.cm-action-icon { font-size: 15px; }
.cm-action.cm-danger { color: #9CA3AF; }
.cm-action.cm-danger:hover { color: #EF4444; text-decoration: none; }

/* 空状态 */
.cm-empty {
    text-align: center;
    color: #9CA3AF;
    padding: 48px 0;
    font-size: 14px;
}

/* 课堂管理增强版分页（共X条 + 每页条数下拉 + 翻页 + 前往跳转） */
.cm-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 4px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #374151;
}
.cm-page-total { white-space: nowrap; }
.cm-page-size {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cm-page-size select {
    height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 0 28px 0 10px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}
.cm-page-size select:focus { border-color: #F97316; }
.cm-page-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cm-page-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid #E5E7EB;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s;
    padding: 0 8px;
}
.cm-page-btn:hover:not(:disabled):not(.active) {
    color: #F97316;
    border-color: #F97316;
}
.cm-page-btn.active {
    background: #F97316;
    border-color: #F97316;
    color: #fff;
    cursor: default;
}
.cm-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cm-page-arrow { font-size: 16px; line-height: 1; }
.cm-page-jump {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    white-space: nowrap;
}
.cm-page-jump input {
    width: 48px;
    height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: #374151;
    outline: none;
    padding: 0 2px;
}
.cm-page-jump input:focus { border-color: #F97316; }
/* 隐藏 number 输入的上下箭头 */
.cm-page-jump input::-webkit-outer-spin-button,
.cm-page-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cm-page-jump input { -moz-appearance: textfield; }

/* 响应式：窄屏 */
@media (max-width: 768px) {
    .cm-toolbar { flex-direction: column; align-items: stretch; }
    .cm-filters { flex-direction: column; align-items: stretch; }
    .cm-search input, .cm-select select, .cm-btn-primary { width: 100%; }
    .cm-table { font-size: 12px; }
    .cm-table thead th, .cm-table tbody td { padding: 8px 6px; }
    .cm-actions { gap: 10px; flex-wrap: wrap; }
    .cm-cell-ellipsis { max-width: 120px; }
    .cm-pagination { justify-content: center; }
    .cm-page-jump { margin-left: 0; }
}

/* ===== 阅读理解：真题阅读计时器 + 学习记录表格 ===== */
/* 工具栏「开始真题阅读」按钮（橙绿渐变，醒目） */
.rd-session-start-btn {
    background: linear-gradient(135deg, #ff6a00, #3a8a6e);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 106, 0, 0.25);
}
.rd-session-start-btn:hover { opacity: 0.9; box-shadow: 0 3px 8px rgba(255, 106, 0, 0.35); }
/* 计时中：标签 + 数字显示 */
.rd-timer-label { color: #e6a23c; font-size: 13px; font-weight: 600; padding: 0 4px; white-space: nowrap; }
.rd-timer-display {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 16px; font-weight: 700; color: #f56c6c;
    min-width: 60px; text-align: center;
    background: #fef0f0; padding: 2px 10px; border-radius: 6px;
}
/* 首页阅读学习记录表格 */
.rd-session-table-wrap { overflow-x: auto; }
.rd-session-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rd-session-table th {
    background: #f5f7fa; color: #606266; font-weight: 600;
    padding: 11px 10px; text-align: left; border-bottom: 2px solid #e4e7ed;
    white-space: nowrap;
}
.rd-session-table td {
    padding: 11px 10px; border-bottom: 1px solid #ebeef5; color: #303133; vertical-align: middle;
}
.rd-session-table tbody tr:hover { background: #f5f7fa; }
.rd-del-btn { color: #f56c6c; }
.rd-del-btn:hover { background: #f56c6c; color: #fff; border-color: #f56c6c; }
/* 响应式：记录表格窄屏优化 */
@media (max-width: 768px) {
    .rd-article-bar { flex-wrap: wrap; gap: 6px; }
    .rd-session-table { font-size: 12px; }
    .rd-session-table th, .rd-session-table td { padding: 8px 6px; }
}

