/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #E8F4F8; color: #2D3436; -webkit-font-smoothing: antialiased;
}
#app { min-height: 100vh; background: #E8F4F8; position: relative; padding-bottom: 56px; }
#page-container { min-height: calc(100vh - 56px); }

/* ===== 底部导航栏 ===== */
.tab-bar {
  position: fixed; bottom: 0; left: 0;
  width: 100%; height: 56px; background: #fff;
  display: flex; border-top: 1px solid #ddd; z-index: 100;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 4px 0; }
.tab-icon { width: 28px; height: 28px; margin-bottom: 2px; }
.tab-text { font-size: 11px; color: #999; }
.tab-item.active .tab-text { color: #4CAF50; }

/* ===== 通用组件 ===== */
.page { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.btn { display: inline-block; padding: 12px 32px; border-radius: 24px; border: none; font-size: 16px; cursor: pointer; text-align: center; transition: opacity 0.2s; }
.btn:active { opacity: 0.8; }
.btn-primary { background: #4CAF50; color: #fff; }
.btn-block { display: block; width: 100%; }
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

/* ===== 首页（满屏排版：全宽 + 顶部四按钮横向撑满整行 + 背景场景按百分比自适应铺满，保留代码图标与天空/山丘风格）===== */
.home-page { background: #E8F4F8; min-height: calc(100vh - 56px); padding: 16px 24px 24px; }
.home-title { text-align: center; padding: 6px 0 14px; }
.home-title h1 { font-size: 36px; font-weight: bold; color: #2D3436; }

/* 顶部四个按钮：代码圆形图标 + 文字，无方框，横向撑满整行（满屏） */
.top-buttons { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.top-btn { cursor: pointer; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 10px; }
.top-btn-login { margin-right: 0; }
.btn-text { font-size: 13px; font-weight: 500; color: #000; }

/* 代码绘制的圆形图标 */
.icon-badge { position: relative; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 6px; }
.icon-activate { background: linear-gradient(160deg, #E8956B, #F2C4A0); }
.icon-web { background: linear-gradient(160deg, #3FB0E0, #2E86C1); }
.icon-faq { background: linear-gradient(160deg, #E8956B, #E8703A); }
.icon-login { background: linear-gradient(160deg, #E8956B, #EBA83A); }
.ia-phone { position: absolute; left: 50%; top: 8.5px; margin-left: -10px; width: 20px; height: 31px; box-sizing: border-box; border: 2px solid #fff; border-radius: 4px; }
.ia-dot { position: absolute; left: 50%; bottom: 3px; margin-left: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.iw-screen { position: absolute; left: 50%; top: 12px; margin-left: -15px; width: 30px; height: 21px; box-sizing: border-box; border: 2px solid #fff; border-radius: 3px; }
.iw-neck { position: absolute; left: 50%; top: 33px; margin-left: -2px; width: 4px; height: 4px; background: #fff; }
.iw-base { position: absolute; left: 50%; top: 37px; margin-left: -8px; width: 16px; height: 3px; border-radius: 2px; background: #fff; }
.if-bubble { position: absolute; left: 50%; top: 11px; margin-left: -15px; width: 30px; height: 23px; box-sizing: border-box; border: 2px solid #fff; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.if-q { color: #fff; font-size: 16px; font-weight: bold; line-height: 1; }
.if-tail { position: absolute; left: 13px; top: 31px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #fff; }
.ip-head { position: absolute; left: 50%; top: 13px; margin-left: -5.5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.ip-body { position: absolute; left: 50%; top: 26px; margin-left: -11px; width: 22px; height: 11px; border-radius: 11px 11px 0 0; background: #fff; }

/* 分区标题 */
.section-title { font-size: 29px; font-weight: bold; color: #2D3436; margin: 0 0 12px; }

/* 科目卡片：满屏两列，带天空/云/飞鸟/山丘背景（按百分比铺满） */
.subject-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 24px; }
.subject-card { position: relative; width: calc(50% - 8px); max-width: 560px; box-sizing: border-box; height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid #C8E6C9; border-radius: 10px; overflow: hidden; cursor: pointer; background: linear-gradient(180deg, #A7D0F5 0%, #C4DFF8 55%, #DBEDFC 100%); }
.card-nju, .card-hefei { margin: 0; }
.card-text { position: relative; z-index: 2; font-size: 28px; font-weight: bold; letter-spacing: 2px; color: #000; }

/* 背景场景（三张卡片共用，按百分比自适应铺满） */
.nb-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.nb-sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg, #A7D0F5 0%, #C4DFF8 55%, #DBEDFC 100%); }
.nb-cloud { position: absolute; background: #fff; border-radius: 50%; }
.nb-cloud-a { left: -10%; top: 12%; width: 51%; height: 57%; }
.nb-cloud-b { right: -11%; top: 10%; width: 54%; height: 60%; }
.nb-puff { position: absolute; background: #fff; border-radius: 50%; }
.nb-puff-a { left: 12.8%; top: -12%; width: 24%; height: 43%; }
.nb-puff-b { left: 35.6%; top: 2%; width: 18.5%; height: 33%; }
.nb-puff-c { left: 61.2%; top: 5.3%; width: 21.4%; height: 36.7%; }
.nb-puff-d { right: 32.8%; top: -6.7%; width: 24%; height: 42%; }
.nb-puff-e { right: 8.5%; top: 2%; width: 19.9%; height: 36.7%; }
.nb-puff-f { left: -6.6%; top: 50%; width: 24%; height: 36.7%; }
.nb-puff-g { right: -7.1%; top: 59.3%; width: 22.8%; height: 33.3%; }
.nb-bird { position: absolute; border: 2px solid #fff; border-radius: 50%; background: transparent; box-sizing: border-box; }
.nb-bird-1 { left: 19%; top: 14.7%; width: 6.3%; height: 8.7%; clip-path: inset(0 0 55% 0); transform: rotate(-14deg); }
.nb-bird-2 { left: 63%; top: 4.7%; width: 8%; height: 10.7%; clip-path: inset(0 0 55% 0); transform: rotate(-10deg); }
.nb-bird-3 { left: 70%; top: 13.3%; width: 5.1%; height: 7.3%; clip-path: inset(0 0 55% 0); transform: rotate(-18deg); }
.nb-meteo { position: absolute; left: 27%; top: -4.7%; width: 21.4%; height: 3.3%; background: rgba(255,255,255,0.85); border-radius: 50%; transform: rotate(38deg); }
.nb-mtn { position: absolute; border-radius: 50%; }
.nb-mtn-far { left: 26%; top: 72%; width: 60%; height: 43.3%; background: #8FCDE0; }
.nb-mtn-left { left: -32.8%; top: 74%; width: 91.2%; height: 76.7%; background: #55B7CE; }
.nb-mtn-right { right: -37%; top: 65.3%; width: 102.6%; height: 86.7%; background: #2E9CB6; }

/* ===== 课程页 ===== */
.course-page { min-height: calc(100vh - 56px); background: #E8F4F8; }
.tab-bar-inner { display: flex; align-items: center; padding: 12px 20px 0; background: #fff; position: sticky; top: 0; z-index: 10; }
.tab-inner-item { position: relative; padding: 8px 16px 10px; margin-right: 20px; cursor: pointer; }
.tab-inner-item span { font-size: 15px; color: #999; }
.tab-inner-item.active span { font-size: 17px; color: #2D3436; font-weight: bold; }
.tab-indicator { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 4px; background: #4CAF50; border-radius: 2px; }
.course-list { padding: 12px; }
.course-card { display: flex; background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); cursor: pointer; transition: box-shadow 0.2s; }
.course-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.course-img { width: 100px; height: 100px; border-radius: 8px; flex-shrink: 0; background: #f0f0f0; object-fit: cover; }
.course-info { flex: 1; margin-left: 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.course-title { font-size: 15px; font-weight: bold; color: #2D3436; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.course-desc { font-size: 12px; color: #999; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; }
.course-price { font-size: 16px; color: #4CAF50; font-weight: bold; margin-top: 8px; }

/* ===== 我的科目页（底部 Tab「科目」） ===== */
.mysubj-page { min-height: calc(100vh - 56px); background: #E8F4F8; padding: 16px; }
.mysubj-header { padding: 6px 4px 14px; }
.mysubj-title { font-size: 20px; font-weight: bold; color: #2D3436; }
.mysubj-sub { font-size: 12px; color: #999; margin-top: 4px; }
.mysubj-loading { text-align: center; color: #999; padding: 60px 0; font-size: 14px; }
.mysubj-list { display: flex; flex-direction: column; gap: 12px; }
/* 每张科目卡片：纯代码绘制海景背景（天空+海面+云朵+粼光），与院校科目列表页 .nju-subj-item 完全一致，无图片资源 */
.mysubj-item { position: relative; overflow: hidden; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; padding: 18px 16px; cursor: pointer; box-shadow: 0 4px 14px rgba(30,90,150,.22); background: radial-gradient(40% 22% at 76% 88%,rgba(255,255,255,.95),rgba(255,255,255,.3) 42%,rgba(255,255,255,0) 72%),radial-gradient(50% 26% at 8% 96%,rgba(30,100,150,.42),rgba(30,100,150,0) 72%),radial-gradient(24% 15% at 20% 22%,rgba(255,255,255,.85),rgba(255,255,255,0) 62%),radial-gradient(18% 11% at 58% 13%,rgba(255,255,255,.7),rgba(255,255,255,0) 62%),radial-gradient(16% 10% at 86% 30%,rgba(255,255,255,.6),rgba(255,255,255,0) 62%),linear-gradient(180deg,#a9d3f2 0%,#c3e0f5 22%,#dcebf7 45%,#e6f0f8 66%,#eaf2f8 71.8%,#9db8cf 72.6%,#6fa3c4 80%,#5b9bc2 90%,#6fb0dd 100%); transition: transform .15s ease, box-shadow .15s ease; }
.mysubj-item::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.12)); }
.mysubj-item > * { position: relative; z-index: 1; }
.mysubj-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,90,150,.3); }
/* 科目图标：磨砂白圆角徽标浮在海景上，内嵌纯 CSS 绘制的书本（紫色，非 emoji / 非图片） */
.mysubj-icon { flex: 0 0 auto; width: 44px; height: 44px; margin-right: 12px; display: flex; align-items: center; justify-content: center; color: #5b3f8e; font-size: 24px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); border-radius: 12px; box-shadow: 0 2px 6px rgba(20,60,90,.15); }
.mysubj-info { flex: 1; min-width: 0; }
.mysubj-name { font-size: 15px; font-weight: bold; color: #143A5B; text-shadow: 0 1px 3px rgba(255,255,255,.9); }
.mysubj-desc { font-size: 12px; color: #2C556E; margin-top: 2px; text-shadow: 0 1px 3px rgba(255,255,255,.9); }
.mysubj-tag { font-size: 11px; color: #143A5B; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); border-radius: 12px; padding: 2px 10px; margin-right: 8px; }
.mysubj-arrow { font-size: 14px; color: #143A5B; text-shadow: 0 1px 3px rgba(255,255,255,.9); }
.mysubj-empty { display: flex; flex-direction: column; align-items: center; padding-top: 80px; text-align: center; }
.mysubj-empty-icon { font-size: 56px; margin-bottom: 16px; color: #5b3f8e; }

/* ===== 纯 CSS 绘制图标（.ic*）：首页 / 书本 / 文档；随字号缩放、颜色继承 currentColor，全部不用图片与 emoji ===== */
.ic { display: inline-block; position: relative; width: 1em; height: 1em; vertical-align: -.14em; flex: 0 0 auto; }
/* 房子：三角屋顶 + 方形屋身 */
.ic-home::before { content: ""; position: absolute; left: .06em; top: .06em; width: 0; height: 0; border-left: .44em solid transparent; border-right: .44em solid transparent; border-bottom: .34em solid currentColor; }
.ic-home::after { content: ""; position: absolute; left: .2em; top: .4em; width: .6em; height: .5em; background: currentColor; border-radius: .06em; }
/* 书本（笔记本）：左书脊高光 + 封面 + 白色标题线 */
.ic-book { width: .82em; height: 1em; }
.ic-book::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: .1em .16em .16em .1em; background: linear-gradient(90deg, rgba(255,255,255,.4) 0 .12em, currentColor .12em 100%); }
.ic-book::after { content: ""; position: absolute; left: .28em; top: .26em; width: .38em; height: .09em; background: #fff; border-radius: .05em; box-shadow: 0 .2em 0 rgba(255,255,255,.85); }
/* 文档：圆角矩形 + 三行文本线，用于纸质版下载行 */
.ic-doc { width: .82em; height: 1em; }
.ic-doc::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: .1em; background: currentColor; }
.ic-doc::after { content: ""; position: absolute; left: .18em; top: .26em; width: .46em; height: .08em; background: #fff; border-radius: .04em; box-shadow: 0 .18em 0 rgba(255,255,255,.85), 0 .36em 0 rgba(255,255,255,.7); }
.mysubj-empty-title { font-size: 17px; font-weight: bold; color: #2D3436; margin-bottom: 8px; }
.mysubj-empty-desc { font-size: 13px; color: #999; margin-bottom: 24px; }
.mysubj-empty-btn { background: #4CAF50; color: #fff; border: none; border-radius: 22px; padding: 10px 36px; font-size: 14px; cursor: pointer; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 100px; }
.empty-icon { width: 120px; height: 120px; margin-bottom: 20px; opacity: 0.5; }
.empty-title { font-size: 18px; font-weight: bold; color: #2D3436; margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: #999; margin-bottom: 30px; }
.empty-btn { width: 160px; height: 44px; line-height: 44px; text-align: center; background: #4CAF50; color: #fff; font-size: 16px; border-radius: 22px; font-weight: bold; cursor: pointer; border: none; }

/* ===== 我的页面 ===== */
.profile-page { min-height: calc(100vh - 56px); background: #E8F4F8; }
.user-section { display: flex; align-items: center; padding: 24px 16px 20px; background: linear-gradient(135deg, #E8F4F8, #D4E9F2, #C0DDEB); position: relative; overflow: hidden; cursor: pointer; }
.user-section::before { content: ''; position: absolute; top: -30px; right: -20px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.user-avatar-wrap { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.9); flex-shrink: 0; background: #fff; position: relative; z-index: 1; }
.user-avatar { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; margin-left: 14px; position: relative; z-index: 1; }
.user-name { font-size: 18px; font-weight: bold; color: #2D3436; display: block; }
.user-tip { font-size: 12px; color: #888; margin-top: 4px; display: block; }
.arrow-right { font-size: 18px; color: #999; position: relative; z-index: 1; }
.menu-section { background: #fff; margin-top: 10px; }
.menu-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #E8F4F8; cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-icon-bg { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; margin-right: 14px; flex-shrink: 0; }
.menu-icon-text { font-size: 15px; }
.icon-bg-yellow { background: #FFF3E0; }
.icon-bg-orange { background: #FFF8E1; }
.icon-bg-purple { background: #E8F5E9; }
.icon-bg-red { background: #FFEBEE; }
.menu-text { flex: 1; font-size: 15px; color: #2D3436; }
.menu-arrow { font-size: 16px; color: #ccc; margin-left: 8px; }

/* ===== 科目选择页 ===== */
.subject-page { padding: 16px; background: #E8F4F8; min-height: calc(100vh - 56px); }
.subject-page .header { font-size: 16px; color: #666; margin-bottom: 12px; }
.subject-item { display: flex; align-items: center; background: #fff; padding: 16px; border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; }
.subject-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.subject-item .sortnum { width: 28px; height: 28px; border-radius: 50%; background: #4CAF50; color: #fff; text-align: center; line-height: 28px; font-size: 14px; margin-right: 14px; flex-shrink: 0; }
.subject-item .name { flex: 1; font-size: 16px; color: #2D3436; }
.subject-item .arraw { color: #ccc; font-size: 18px; }
.subject-item.locked { opacity: 0.6; }
.subject-item .lock-tip { display: flex; align-items: center; gap: 6px; }
.subject-item .activate-link { color: #4CAF50; font-size: 14px; cursor: pointer; }
.lock-icon { font-size: 14px; margin-right: 4px; }

/* ===== 答题页 ===== */
.exam-page { padding: 16px; background: #fff; min-height: calc(100vh - 56px); }
.exam-progress { height: 6px; background: #eee; border-radius: 3px; margin-bottom: 20px; overflow: hidden; }
.exam-progress-bar { height: 100%; background: #4CAF50; border-radius: 3px; transition: width 0.3s; }
.exam-question { font-size: 17px; font-weight: bold; color: #2D3436; line-height: 1.6; margin-bottom: 20px; }
.exam-options { list-style: none; }
.exam-option { display: flex; align-items: flex-start; padding: 14px 16px; border: 1px solid #ddd; border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; }
.exam-option:hover { border-color: #4CAF50; background: #f0fff0; }
.exam-option.selected { border-color: #4CAF50; background: #f0fff0; }
.exam-option .option-code { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ddd; text-align: center; line-height: 24px; font-size: 14px; margin-right: 12px; flex-shrink: 0; color: #666; }
.exam-option.selected .option-code { border-color: #4CAF50; background: #4CAF50; color: #fff; }
.exam-option .option-content { font-size: 15px; color: #2D3436; line-height: 1.5; padding-top: 2px; }
.exam-footer { margin-top: 24px; text-align: center; }
.exam-footer .btn { min-width: 200px; }

/* ===== 结果页 ===== */
.result-page { padding: 40px 16px; text-align: center; background: #fff; min-height: calc(100vh - 56px); }
.result-score { font-size: 48px; font-weight: bold; color: #4CAF50; margin: 20px 0; }
.result-stats { display: flex; justify-content: center; gap: 40px; margin: 20px 0; }
.result-stat { text-align: center; }
.result-stat .num { font-size: 28px; font-weight: bold; }
.result-stat .label { font-size: 13px; color: #999; margin-top: 4px; }
.result-stat.right .num { color: #4CAF50; }
.result-stat.wrong .num { color: #f44336; }
.result-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ===== 历史记录页 ===== */
.history-page { padding: 16px; background: #E8F4F8; min-height: calc(100vh - 56px); }
.history-title { font-size: 14px; color: #666; margin-bottom: 16px; padding: 0 4px; }
.history-list { }
.history-item { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: box-shadow 0.2s; }
.history-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.history-num { width: 28px; height: 28px; border-radius: 50%; background: #4CAF50; color: #fff; text-align: center; line-height: 28px; font-size: 14px; margin-right: 14px; flex-shrink: 0; }
.history-info { flex: 1; font-size: 15px; color: #2D3436; }
.history-arrow { color: #ccc; font-size: 18px; }
.empty-tip { text-align: center; color: #999; padding: 60px 0; font-size: 15px; }

/* ===== 激活码页 ===== */
.activate-page { padding: 40px 20px; background: #E8F4F8; min-height: calc(100vh - 56px); }
.activate-body { background: #fff; border-radius: 12px; padding: 30px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; }
.activate-icon { font-size: 48px; margin-bottom: 16px; }
.activate-title { font-size: 20px; font-weight: bold; color: #2D3436; margin-bottom: 12px; }
.activate-subject { font-size: 14px; color: #666; margin-bottom: 16px; }
.activate-input-wrap { margin-bottom: 20px; }
.activate-input { width: 100%; height: 48px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 0 16px; font-size: 16px; text-align: center; letter-spacing: 2px; outline: none; }
.activate-input:focus { border-color: #4CAF50; }
.activate-btn { width: 100%; }
.activate-tip { text-align: center; font-size: 13px; color: #999; margin-top: 16px; }

/* ===== 绑定微信信息页（网页端，同步小程序端 bind 页）===== */
.bind-web-page { padding: 24px 16px; background: #E8F4F8; min-height: calc(100vh - 56px); }
.bind-web-card { background: #fff; border-radius: 12px; padding: 28px 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.bind-web-title { font-size: 20px; font-weight: bold; color: #2D3436; text-align: center; margin-bottom: 8px; }
.bind-web-sub { font-size: 13px; color: #999; text-align: center; margin-bottom: 20px; }
.bind-web-avatar { display: flex; justify-content: center; margin-bottom: 20px; }
.bind-web-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #E8F4F8; background: #fff; }
.bind-web-tip { font-size: 12px; color: #E67E22; background: #FFF7EE; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.bind-web-qr { display: flex; justify-content: center; margin-bottom: 16px; }
.bind-web-qr img, .bind-web-qr canvas { display: block; margin: 0 auto; }
.bind-web-qrlink { font-size: 12px; color: #666; word-break: break-all; text-align: center; }
.bind-web-field { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 8px; padding: 0 12px; margin-bottom: 14px; min-height: 48px; }
.bind-web-label { width: 56px; font-size: 14px; color: #666; flex-shrink: 0; }
.bind-web-input { flex: 1; border: none; outline: none; font-size: 15px; color: #2D3436; height: 46px; }
.bind-web-phone { flex: 1; font-size: 15px; color: #2D3436; }
.bind-web-edit { font-size: 13px; color: #4CAF50; margin-left: 8px; }
.bind-web-fetch { width: 100%; margin-bottom: 12px; }
.bind-web-confirm { width: 100%; }
.bind-web-hint { font-size: 12px; color: #999; margin-top: 12px; line-height: 1.6; }

/* ===== 登录页 ===== */
.login-page { min-height: 100vh; background: #fff; padding-bottom: 0; }
.login-header { display: flex; align-items: center; justify-content: center; position: relative; height: 50px; background: #4CAF50; }
.login-back { position: absolute; left: 14px; font-size: 22px; color: #fff; cursor: pointer; line-height: 1; }
.login-header-title { font-size: 18px; font-weight: bold; color: #fff; }
.login-body { padding: 24px 22px; }
.login-tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.login-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; color: #999; cursor: pointer; position: relative; }
.login-tab.active { color: #4CAF50; font-weight: bold; }
.login-tab.active::after { content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 44px; height: 3px; background: #4CAF50; border-radius: 2px; }
.login-field { display: flex; align-items: center; border-bottom: 1px solid #e6e6e6; padding: 6px 0; margin-bottom: 8px; }
.login-field-icon { width: 26px; font-size: 16px; color: #999; flex-shrink: 0; }
.login-input { flex: 1; border: none; outline: none; font-size: 16px; color: #2D3436; height: 42px; background: transparent; }
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 22px; font-size: 13px; }
.login-remember { color: #666; display: flex; align-items: center; }
.login-remember input { margin-right: 5px; }
.login-link { color: #4CAF50; text-decoration: none; }
.login-submit { width: 100%; border-radius: 8px; height: 46px; line-height: 46px; padding: 0; font-size: 17px; }
.login-agree { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #999; margin-top: 18px; }
.login-agree input { margin: 0 6px 0 0; }
.login-wx-box { padding: 10px 0 20px; text-align: center; }
.login-wx-title { font-size: 18px; font-weight: bold; color: #2D3436; margin-bottom: 18px; }
.login-wx-desc { font-size: 13px; color: #999; margin: 16px 0; line-height: 1.6; }
.login-wx-qr { display: flex; justify-content: center; margin: 10px auto; }
.login-wx-qr img, .login-wx-qr canvas { display: block; margin: 0 auto; padding: 8px; border: 1px solid #eee; border-radius: 8px; }
.login-wx-box .login-submit { margin-top: 10px; }

/* ===== 扫码登录（小程序码）===== */
.login-qr { display: flex; align-items: center; justify-content: center; min-height: 200px; margin: 4px auto 12px; }
.login-qr-img { width: 200px; height: 200px; padding: 8px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.login-qr-tip { font-size: 14px; color: #999; text-align: center; line-height: 1.8; }
.login-qr-status { font-size: 13px; color: #4CAF50; text-align: center; min-height: 20px; margin-bottom: 8px; line-height: 1.6; }

/* ===== 导航返回 ===== */
.nav-header { display: flex; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 10; }
.nav-back { font-size: 20px; color: #2D3436; cursor: pointer; margin-right: 12px; }
.nav-title { font-size: 17px; font-weight: bold; color: #2D3436; }

/* ===== Toast提示 ===== */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.75); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 3200; animation: toastIn 0.2s ease; }
@keyframes toastIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 通用确认弹窗（取消 / 去开通）===== */
/* 层级必须高于草稿纸(2000)/笔记层(2100)/笔记大图(2400)，否则「保存」确认弹窗会被透明画布盖住：看得见、点不动 */
.confirm-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 3100; display: flex; align-items: center; justify-content: center; }
.confirm-box { background: #fff; border-radius: 16px; width: 85%; max-width: 340px; padding: 32px 24px 0; text-align: center; }
.confirm-txt { font-size: 15px; color: #2D3436; line-height: 1.7; }
.confirm-btns { display: flex; margin-top: 24px; border-top: 1px solid #f0f0f0; }
.confirm-btn { flex: 1; text-align: center; padding: 15px 0; font-size: 16px; cursor: pointer; }
.confirm-cancel { color: #999; border-right: 1px solid #f0f0f0; }
.confirm-ok { color: #4CAF50; font-weight: bold; }

/* ===== 登录弹窗 ===== */
.login-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; border-radius: 16px; padding: 30px 24px; width: 85%; max-width: 360px; }
.login-box h3 { text-align: center; margin-bottom: 20px; font-size: 18px; }
.login-box input { width: 100%; height: 44px; border: 1px solid #ddd; border-radius: 8px; padding: 0 14px; font-size: 15px; margin-bottom: 14px; outline: none; }
.login-box input:focus { border-color: #4CAF50; }
.login-box .btn { margin-top: 8px; }

/* ===== 阅读理解页 ===== */
.reading-page { background: #fff; min-height: calc(100vh - 56px); }
.reading-body { padding-bottom: 80px; }

/* 模式切换栏 */
.mode-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #fff; border-bottom: 1px solid #ddd; }
.mode-switch { display: flex; border: 1px solid #ddd; border-radius: 16px; overflow: hidden; }
.mode-item { padding: 5px 14px; font-size: 14px; color: #999; background: #fff; cursor: pointer; transition: all 0.2s; }
.mode-active { background: #4CAF50; color: #fff; }
.mode-icons { display: flex; gap: 10px; }
.mode-icon { font-size: 18px; color: #666; cursor: pointer; }

/* ===== 新增：编辑按钮样式 ===== */
.save-btn {
  padding: 4px 12px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.save-btn:hover {
  background: #4CAF50;
}
.edit-icon-btn, .delete-icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}
.edit-icon-btn:hover {
  background: #4CAF50;
  color: #fff;
}
.delete-icon-btn {
  right: 44px;
}
.delete-icon-btn:hover {
  background: #ff4d4f;
  color: #fff;
}
.add-para-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  background: #E8F5E9;
  border: 2px dashed #C8E6C9;
  border-radius: 8px;
  color: #4CAF50;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.add-para-btn:hover {
  background: #DCEDC8;
  border-color: #4CAF50;
}

/* 做题模式提示横幅 */
.quiz-banner { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #E8F5E9; border-bottom: 1px solid #C8E6C9; }
.quiz-banner-left { display: flex; align-items: center; flex: 1; }
.quiz-banner-icon { font-size: 14px; margin-right: 4px; }
.quiz-banner-text { font-size: 12px; color: #4CAF50; line-height: 1.4; }
.quiz-banner-btn { padding: 4px 10px; border: 1px solid #4CAF50; border-radius: 12px; flex-shrink: 0; margin-left: 8px; cursor: pointer; }
.quiz-banner-btn span { font-size: 12px; color: #4CAF50; }

/* 做题模式段落 */
.quiz-paragraph-block { margin-bottom: 16px; }
.quiz-para-text { font-size: 17px; line-height: 2; color: #2D3436; margin-bottom: 12px; }

/* 三标签栏 */
.reading-tab-bar { display: flex; background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 10; }
.reading-tab-item { flex: 1; text-align: center; padding: 12px 0; position: relative; cursor: pointer; }
.reading-tab-text { font-size: 15px; color: #999; font-weight: 400; }
.reading-tab-active .reading-tab-text { font-size: 17px; color: #2D3436; font-weight: 700; }
.reading-tab-active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; background: #4CAF50; border-radius: 2px; }

/* 内容区 */
.reading-tab-content { padding: 16px 14px; }

/* 原文样式 */
.paragraph-block { margin-bottom: 16px; position: relative; }
.para-label { font-size: 20px; font-weight: 700; color: #4CAF50; margin-bottom: 8px; }
.para-text { font-size: 16px; line-height: 1.8; color: #2D3436; margin-bottom: 8px; }
.word-tools { display: flex; gap: 4px; margin-left: 6px; flex-shrink: 0; }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; background: #e8e8e8; font-size: 11px; color: #666; cursor: pointer; }
.tool-split { font-size: 10px; }
.translation-box { background: #E8F5E9; border-radius: 10px; padding: 16px; margin: 8px 0 16px; text-align: center; border: 2px dashed #C8E6C9; min-height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tap-hint { font-size: 14px; color: #aaa; }
.translation-text { font-size: 14px; color: #555; line-height: 1.7; text-align: left; }

/* 发音按钮 */
.speak-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #E8F5E9; cursor: pointer; margin-left: 8px; font-size: 14px; vertical-align: middle; flex-shrink: 0; transition: background 0.2s; }
.speak-btn:hover { background: #C8E6C9; }
.speak-btn:active { background: #C8E6C9; }
.speak-tool-btn { background: #E8F5E9 !important; }
.word-speak { width: 32px; height: 32px; font-size: 16px; margin-left: 10px; }
.opt-speak { margin-left: 8px; }

/* 可点击单词（翻译页） */
.clickable-word { display: inline-block; cursor: pointer; border-radius: 2px; transition: background 0.15s; padding: 0 1px; }
.clickable-word:hover { background: #E8F5E9; }
.clickable-word.has-dict { border-bottom: 1px dashed #4CAF50; color: #4CAF50; font-weight: 500; }
.clickable-word.has-dict:hover { background: #E8F5E9; }

/* 词组样式 */
.clickable-phrase { border-bottom: 1px dashed #4CAF50; color: #388E3C; font-weight: 500; }
.clickable-phrase:hover { background: #DCEDC8; }

/* 词典弹窗 */
.dict-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.dict-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); }
.dict-modal-box { position: relative; background: #fff; border-radius: 12px; padding: 16px; width: 85%; max-width: 360px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.dict-word { font-size: 18px; font-weight: 700; color: #4CAF50; margin-bottom: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; word-break: keep-all; }
.dict-word .speak-btn { flex-shrink: 0; }

/* 词组标签 */
.dict-phrase-tag { font-size: 12px; color: #fff; background: #4CAF50; padding: 2px 8px; border-radius: 4px; }

/* 音标显示 */
.dict-phonetic { font-size: 14px; color: #888; font-family: 'Lucida Sans Unicode', 'Arial', sans-serif; }
.dict-meaning { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 10px; background: #f8f9fa; padding: 10px; border-radius: 8px; }
.dict-no-dict { color: #aaa; font-style: italic; }
.dict-modal-close { text-align: center; padding: 6px 20px; background: #4CAF50; color: #fff; border-radius: 16px; cursor: pointer; font-size: 13px; margin-top: 8px; }

/* 富文本弹窗（含例句、词组） */
.dict-modal-rich { max-width: 400px; max-height: 50vh; overflow-y: auto; }
.dict-section-title { font-size: 13px; font-weight: 600; color: #4CAF50; margin: 8px 0 6px; }
.dict-sentences { margin-bottom: 8px; }
.dict-sentence { background: #E8F5E9; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; }
.dict-sentence-en { font-size: 13px; color: #2D3436; line-height: 1.5; font-style: italic; }
.dict-sentence-cn { font-size: 12px; color: #888; line-height: 1.5; margin-top: 2px; }
.dict-phrases { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; max-height: 80px; overflow-y: auto; }
.dict-phrase-item { background: #E8F4F8; border-radius: 4px; padding: 4px 8px; font-size: 12px; }
.dict-phrase-en { color: #4CAF50; font-weight: 500; }
.dict-phrase-cn { color: #888; }

/* 题目样式 */
.question-block { margin-bottom: 24px; }
.q-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.q-num { font-size: 24px; font-weight: 700; color: #4CAF50; }
.q-type { background: #E8F5E9; border-radius: 4px; padding: 3px 9px; cursor: pointer; }
.q-type span { font-size: 12px; color: #4CAF50; }
.q-text { font-size: 16px; line-height: 1.7; color: #2D3436; margin-bottom: 12px; }
.option-list { display: flex; flex-direction: column; }
.option-item { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #E8F4F8; cursor: pointer; transition: background 0.2s; }
.option-item:hover { background: #fafafa; }
.option-selected { background: #fafafa; }
.opt-label { font-size: 16px; font-weight: 600; color: #2D3436; min-width: 24px; margin-right: 6px; }
.opt-text { font-size: 15px; line-height: 1.6; flex: 1; color: #2D3436; }
.opt-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd; margin-left: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.radio-checked { border-color: #4CAF50; background: #4CAF50; }
.radio-check { font-size: 12px; color: #fff; }

/* 底部题目导航 */
.question-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #ddd; padding: 8px 12px; display: flex; align-items: center; gap: 8px; z-index: 100; overflow-x: auto; }
.nav-item { min-width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: #E8F4F8; color: #666; flex-shrink: 0; cursor: pointer; }
.nav-active { background: #E8F5E9; color: #4CAF50; }
.nav-answered { background: #E8F5E9; color: #4CAF50; }
.submit-btn { margin-left: auto; padding: 8px 20px; background: #4CAF50; border-radius: 18px; flex-shrink: 0; cursor: pointer; }
.submit-btn span { font-size: 14px; font-weight: 600; color: #fff; }

/* 解析样式 */
.analysis-card { background: #f8f9fa; border-radius: 10px; padding: 16px; }
.a-qnum { font-size: 24px; font-weight: 700; color: #4CAF50; margin-bottom: 8px; }
.a-qtext { font-size: 16px; line-height: 1.7; color: #2D3436; margin-bottom: 6px; }
.a-translation { font-size: 14px; color: #999; margin-bottom: 16px; }
.a-answer-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.a-correct-label { font-size: 15px; font-weight: 700; color: #2D3436; border-left: 3px solid #4CAF50; padding-left: 8px; }
.a-correct-letter { color: #4CAF50; font-size: 18px; }
.a-sentence-btn { padding: 5px 12px; border: 1px solid #ddd; border-radius: 16px; background: #fff; cursor: pointer; }
.a-sentence-btn span { font-size: 12px; color: #666; }
.a-section-title { font-size: 15px; font-weight: 700; color: #2D3436; border-left: 3px solid #4CAF50; padding-left: 8px; margin-bottom: 12px; }
.a-section-title span { font-size: 15px; font-weight: 700; color: #2D3436; }
.a-opt-tabs { display: flex; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 10px; border: 1px solid #ddd; }
.a-opt-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 16px; font-weight: 600; color: #999; cursor: pointer; transition: all 0.2s; }
.a-opt-tab span { font-size: 16px; font-weight: 600; color: #999; }
.a-opt-active { background: #E8F5E9; }
.a-opt-active span { color: #4CAF50; }
.a-opt-content { background: #fff; border-radius: 8px; padding: 14px; font-size: 14px; line-height: 1.8; color: #555; border: 1px solid #ddd; min-height: 60px; }
.a-opt-content span { font-size: 14px; line-height: 1.8; color: #555; }

/* 翻译输入区 */
.translate-input-section { margin-top: 20px; padding: 16px; background: #f8f9fa; border-radius: 10px; }
.translate-label { font-size: 16px; font-weight: 700; color: #2D3436; margin-bottom: 10px; }
.translate-textarea { width: 100%; min-height: 120px; border: 1px solid #ddd; border-radius: 8px; padding: 12px; font-size: 15px; line-height: 1.6; resize: vertical; outline: none; font-family: inherit; }
.translate-textarea:focus { border-color: #4CAF50; }
.translate-submit-btn { margin-top: 12px; padding: 10px 24px; background: #4CAF50; border-radius: 20px; text-align: center; cursor: pointer; display: inline-block; }
.translate-submit-btn span { font-size: 14px; font-weight: 600; color: #fff; }

/* 单词弹窗 */
.word-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.word-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); }
.word-modal-box { position: relative; background: #fff; border-radius: 12px; padding: 16px; width: 80%; max-width: 320px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.word-modal-box.dict-modal-rich { max-width: 400px; max-height: 50vh; overflow-y: auto; }
.word-modal-title { font-size: 18px; font-weight: 700; color: #4CAF50; margin-bottom: 6px; }
.word-modal-meaning { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 10px; }
.word-modal-close { text-align: center; padding: 6px 20px; background: #4CAF50; color: #fff; border-radius: 16px; cursor: pointer; font-size: 13px; margin-top: 8px; }

/* ===== 复习回顾页 ===== */
.review-page { padding: 16px; background: #fff; min-height: calc(100vh - 56px); }
.review-progress { height: 6px; background: #eee; border-radius: 3px; margin-bottom: 20px; overflow: hidden; }
.review-progress-bar { height: 100%; background: #4CAF50; border-radius: 3px; transition: width 0.3s; }
.review-footer { margin-top: 24px; text-align: center; }
.review-footer .btn { min-width: 200px; }

/* ===== 考研详情页 ===== */
.kaoYanDetail-page { background: #E8F4F8; min-height: calc(100vh - 56px); padding: 16px; }
.kd-title { text-align: center; padding: 8px 0 16px; }
.kd-title h1 { font-size: 24px; font-weight: bold; color: #2D3436; }
.exam-tabs { display: flex; justify-content: center; gap: 10px; padding-bottom: 12px; }
.exam-tab { width: 45%; text-align: center; padding: 10px 0; border: 2px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; }
.exam-tab-active { border-color: #4CAF50; background: #E8F4F8; }
.exam-tab-text { font-size: 15px; font-weight: 500; color: #666; }
.exam-tab-active .exam-tab-text { font-weight: bold; color: #4CAF50; }
.dual-column { display: flex; gap: 4px; }
.year-column { width: 80px; flex-shrink: 0; max-height: 70vh; overflow-y: auto; }
.year-item { padding: 7px 0; text-align: center; cursor: pointer; }
.year-item-text { font-size: 14px; color: #999; font-weight: 500; }
.year-item-active { background: #4CAF50; border-radius: 6px; margin: 2px 4px; }
.year-item-active .year-item-text { color: #fff; font-weight: bold; }
.article-column { flex: 1; max-height: 70vh; overflow-y: auto; }
.article-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 14px 16px; margin: 0 auto 10px; width: 70%; box-shadow: 0 1px 6px rgba(0,0,0,0.04); cursor: pointer; }
.article-item-active { background: #4CAF50; border-color: #4CAF50; }
.article-item-active .article-name { color: #fff; }
.article-item-active .article-arrow { color: #fff; }
.article-name { font-size: 15px; font-weight: bold; color: #2D3436; flex: 1; }
.article-arrow { font-size: 22px; color: #4CAF50; font-weight: 300; line-height: 1; }

/* ===== 按钮禁用态 ===== */
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline { background: #fff; color: #4CAF50; border: 1px solid #4CAF50; }

/* ===== 关于我们页 ===== */
.about-page { background: #fff; min-height: calc(100vh - 56px); }
.about-body { padding: 40px 20px; text-align: center; }
.about-title { font-size: 22px; font-weight: bold; color: #2D3436; margin-bottom: 20px; }
.about-desc { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 24px; }
.about-wechat { font-size: 16px; color: #4CAF50; font-weight: 600; padding: 12px 24px; background: #E8F5E9; border-radius: 10px; display: inline-block; }

/* ===== 开通方式页 ===== */
.howto-page { min-height: calc(100vh - 56px); background: #E8F4F8; }
.howto-body { padding: 20px 16px 40px; }
.howto-header { padding: 6px 4px 16px; }
.howto-title { font-size: 22px; font-weight: bold; color: #2D3436; }
.howto-sub { margin-top: 6px; font-size: 13px; color: #888; line-height: 1.6; }
.howto-card { background: #fff; border-radius: 12px; padding: 18px 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 14px; }
.howto-card-head { display: flex; align-items: center; margin-bottom: 10px; }
.howto-card-icon { font-size: 22px; line-height: 1; margin-right: 8px; }
.howto-card-name { font-size: 17px; font-weight: bold; color: #2D3436; }
.howto-card-body { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 14px; }
.howto-card-btn { display: inline-block; background: #4CAF50; color: #fff; font-size: 14px; font-weight: bold; border-radius: 10px; padding: 10px 24px; cursor: pointer; }
.howto-card-btn:active { background: #43A047; }

/* ===== 电脑网页端地址页 ===== */
.webaddr-page { min-height: calc(100vh - 56px); background: #E8F4F8; }
.webaddr-body { padding: 20px 16px 40px; }
.webaddr-header { padding: 6px 4px 16px; }
.webaddr-title { font-size: 24px; font-weight: bold; color: #2D3436; }
.webaddr-sub { margin-top: 6px; font-size: 16px; color: #666; line-height: 1.6; }
.webaddr-card { background: #fff; border-radius: 12px; padding: 20px 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; }
.webaddr-url { font-size: 19px; color: #2D3436; line-height: 1.7; word-break: break-all; padding: 14px; background: #F4F8FA; border-radius: 8px; margin-bottom: 18px; }
.webaddr-btn { display: inline-block; background: #4CAF50; color: #fff; font-size: 18px; font-weight: bold; border-radius: 10px; padding: 12px 34px; cursor: pointer; }
.webaddr-btn:active { background: #43A047; }
.webaddr-note { margin-top: 14px; font-size: 16px; color: #666; }

/* ===== 常见问题页 ===== */
.faq-page { min-height: calc(100vh - 56px); background: #E8F4F8; }
.faq-body { padding: 20px 16px 40px; }
.faq-header { padding: 6px 4px 16px; }
.faq-title { font-size: 24px; font-weight: bold; color: #2D3436; }
.faq-item { background: #fff; border-radius: 12px; padding: 16px 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 12px; }
.faq-q { display: flex; align-items: flex-start; font-size: 17px; font-weight: bold; color: #2D3436; line-height: 1.5; }
.faq-a { display: flex; align-items: flex-start; margin-top: 8px; font-size: 15px; color: #555; line-height: 1.7; }
.faq-q-mark, .faq-a-mark { flex: none; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 5px; font-size: 13px; font-weight: bold; color: #fff; margin-right: 8px; margin-top: 2px; }
.faq-q-mark { background: #4CAF50; }
.faq-a-mark { background: #FFB300; }

/* ===== 研学客服会话页 ===== */
.cs-page { display: flex; flex-direction: column; height: 100vh; background: #E8F4F8; }
.cs-body { flex: 1; overflow-y: auto; padding: 16px 14px; -webkit-overflow-scrolling: touch; }
.cs-row { display: flex; margin-bottom: 16px; }
.cs-row-mine { flex-direction: row-reverse; }
.cs-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; text-align: center; line-height: 36px; font-size: 14px; color: #fff; }
.cs-row-cs .cs-avatar { background: #4CAF50; margin-right: 8px; }
.cs-row-mine .cs-avatar { background: #2196F3; margin-left: 8px; }
.cs-content { max-width: 72%; }
.cs-name { font-size: 12px; color: #999; margin-bottom: 4px; }
.cs-row-mine .cs-name { text-align: right; }
.cs-bubble { display: inline-block; background: #fff; color: #2D3436; font-size: 15px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; word-break: break-word; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.cs-row-mine .cs-bubble { background: #d6eaff; }
.cs-img { max-width: 180px; max-height: 180px; border-radius: 10px; display: block; cursor: pointer; }
/* 单条删除按钮（软删除，仅本侧隐藏） + 顶栏清空 */
.cs-del { flex: none; align-self: center; margin: 0 6px; color: #bbb; font-size: 14px; cursor: pointer; visibility: hidden; }
.cs-row:hover .cs-del { visibility: visible; }
.cs-del:hover { color: #e74c3c; }
.nav-header { position: relative; }
.cs-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #e74c3c; border: 1px solid #e74c3c; border-radius: 12px; padding: 2px 10px; cursor: pointer; }
.cs-clear:hover { background: #fdecea; }
.cs-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 40px 20px; }
.cs-empty-text { font-size: 15px; color: #999; margin-bottom: 18px; }
.cs-login-btn { padding: 10px 32px; }
.cs-sec-tip { flex: none; font-size: 11px; color: #999; line-height: 1.4; padding: 5px 14px; background: #f7fbf8; border-top: 1px solid #eee; }
.cs-inputbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #ddd; }
.cs-imgbtn { flex: none; font-size: 24px; cursor: pointer; color: #666; line-height: 1; }
.cs-input { flex: 1; border: 1px solid #ddd; border-radius: 18px; padding: 9px 14px; font-size: 15px; outline: none; }
.cs-input:focus { border-color: #4CAF50; }
.cs-sendbtn { flex: none; padding: 8px 18px; }

/* ===== 错题本页 ===== */
.wrongbook-page { min-height: calc(100vh - 56px); background: #E8F4F8; }
.wb-top-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid #ddd; }
.wb-top-bar-title { font-size: 14px; color: #666; }
.wb-top-bar-btn { padding: 4px 14px; border: 1px solid #e74c3c; border-radius: 14px; font-size: 12px; color: #e74c3c; cursor: pointer; background: #fff; }
.wb-top-bar-btn:hover { background: #fef0f0; }
.wb-loading { text-align: center; padding: 80px 0; font-size: 14px; color: #999; }
.wb-empty { display: flex; flex-direction: column; align-items: center; padding-top: 80px; }
.wb-empty-icon { font-size: 50px; margin-bottom: 16px; }
.wb-empty-text { font-size: 16px; color: #2D3436; font-weight: bold; margin-bottom: 8px; }
.wb-empty-tip { font-size: 13px; color: #999; }
.wb-list { padding: 10px 10px 0; }
.wb-card { background: #fff; border-radius: 10px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
.wb-card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px; cursor: pointer; }
.wb-card-left { display: flex; align-items: center; flex: 1; }
.wb-subject { font-size: 12px; color: #fff; background: #4CAF50; padding: 2px 8px; border-radius: 4px; margin-right: 8px; }
.wb-type { font-size: 13px; color: #666; }
.wb-card-right { display: flex; align-items: center; }
.wb-time { font-size: 11px; color: #bbb; margin-right: 6px; }
.wb-arrow { font-size: 10px; color: #ccc; transition: transform 0.3s; }
.wb-arrow-up { transform: rotate(180deg); }
.wb-card-body { padding: 0 12px 12px; border-top: 1px solid #ddd; }
.wb-question-title { font-size: 14px; color: #2D3436; font-weight: 500; line-height: 1.6; padding: 10px 0 8px; }
.wb-options { margin-bottom: 10px; }
.wb-option { display: flex; align-items: center; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; background: #f8f8f8; border: 1px solid transparent; font-size: 13px; }
.wb-option-correct { background: #e8f5e9; border-color: #4CAF50; }
.wb-option-wrong { background: #ffebee; border-color: #e74c3c; }
.wb-option-code { font-weight: bold; color: #2D3436; margin-right: 8px; min-width: 18px; }
.wb-option-content { color: #555; flex: 1; }
.wb-option-tag { font-size: 11px; font-weight: bold; margin-left: 6px; white-space: nowrap; }
.wb-tag-correct { color: #4CAF50; }
.wb-tag-wrong { color: #e74c3c; }
.wb-answer-compare { background: #fafafa; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.wb-answer-row { display: flex; align-items: center; margin-bottom: 6px; font-size: 13px; }
.wb-answer-row:last-child { margin-bottom: 0; }
.wb-answer-label { color: #888; min-width: 70px; }
.wb-answer-value { font-weight: bold; }
.wb-answer-red { color: #e74c3c; }
.wb-answer-green { color: #4CAF50; }
.wb-delete-btn { text-align: center; padding: 8px 0; border: 1px solid #ddd; border-radius: 8px; background: #fff; font-size: 13px; color: #e74c3c; cursor: pointer; }
.wb-delete-btn:hover { background: #fef0f0; border-color: #e74c3c; }

/* ===== 资料页 ===== */
.materials-page { background: #E8F4F8; min-height: calc(100vh - 56px); padding: 0; }
.mat-card { background: #fff; border-radius: 12px; padding: 16px; margin: 12px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.mat-header { display: flex; align-items: flex-start; margin-bottom: 12px; }
.mat-icon { font-size: 24px; margin-right: 12px; line-height: 1; }
.mat-title-wrap { flex: 1; }
.mat-title { font-size: 16px; font-weight: bold; color: #2D3436; margin-bottom: 4px; }
.mat-type { font-size: 12px; color: #999; }
.mat-content { font-size: 14px; color: #555; line-height: 1.8; white-space: pre-wrap; word-break: break-word; padding: 12px; background: #f9f9f9; border-radius: 8px; }
.mat-rich-content { white-space: normal; }
.mat-rich-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; display: block; }
.mat-rich-content a { color: #4CAF50; text-decoration: underline; }
.mat-rich-content h1, .mat-rich-content h2, .mat-rich-content h3 { margin: 12px 0 8px; color: #2D3436; }
.mat-rich-content ul, .mat-rich-content ol { padding-left: 20px; margin: 8px 0; }
.mat-rich-content p { margin: 4px 0; }
.mat-link { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #E8F5E9; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.mat-link:hover { background: #E8F5E9; }
.mat-link-url { font-size: 13px; color: #4CAF50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; margin-right: 8px; }
.mat-link-arrow { font-size: 13px; color: #4CAF50; font-weight: bold; white-space: nowrap; }

/* ===== 微信授权 ===== */
.wechat-auth-section { margin-bottom: 20px; padding: 16px; background: #E8F5E9; border-radius: 10px; border: 1px solid #c8e6c9; }
.wechat-auth-tip { font-size: 13px; color: #666; margin-bottom: 12px; }
.btn-wechat { display: inline-block; padding: 10px 24px; background: #4CAF50; color: #fff; border: none; border-radius: 20px; font-size: 14px; cursor: pointer; transition: opacity 0.2s; }
.btn-wechat:active { opacity: 0.8; }
.wechat-user-info { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; padding: 12px 16px; background: #E8F5E9; border-radius: 10px; border: 1px solid #c8e6c9; }
.wechat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.wechat-nickname { font-size: 15px; font-weight: bold; color: #2D3436; }
.wechat-status { font-size: 13px; color: #4CAF50; }

/* ===== 考研数学真题页 ===== */
.mathexam-page { min-height: 100vh; background: #E8F4F8; }

/* 顶部紫色区域 */
.me-header {
  background: #4CAF50;
  padding: 20px 20px 24px;
}
.me-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.me-title-area { flex: 1; }
.me-title { font-size: 26px; font-weight: bold; color: #fff; line-height: 1.3; margin: 0; }
.me-actions { display: flex; gap: 8px; flex-shrink: 0; }
.me-action-btn {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 16px;
  background: rgba(255,255,255,0.15);
  font-size: 13px; color: #fff; cursor: pointer;
}
.me-action-btn:hover { background: rgba(255,255,255,0.25); }

/* 数学类型选择器 */
.me-type-selector {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 20px;
  cursor: pointer; margin-bottom: 8px;
}
.me-type-selector:hover { background: rgba(255,255,255,0.3); }
.me-type-name { font-size: 16px; color: #fff; font-weight: 500; }
.me-type-arrow { font-size: 12px; color: rgba(255,255,255,0.8); }

/* 有效期 */
.me-validity { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.me-validity-text { font-size: 12px; color: rgba(255,255,255,0.7); }
.me-renew-link { font-size: 12px; color: rgba(255,255,255,0.9); cursor: pointer; }
.me-renew-link:hover { text-decoration: underline; }

/* Tab 切换 */
.me-tabs { background: #fff; padding: 12px 16px 0; }
.me-tab-wrap { display: flex; background: #f0f0f0; border-radius: 8px; overflow: hidden; }
.me-tab-item { flex: 1; text-align: center; padding: 10px 0; cursor: pointer; transition: all 0.3s; }
.me-tab-item span { font-size: 15px; color: #999; font-weight: 500; }
.me-tab-active { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.08); border-radius: 8px; }
.me-tab-active span { color: #2D3436; font-weight: bold; font-size: 16px; }

/* 内容区域 */
.me-content { flex: 1; }

/* 年份布局 */
.me-year-layout { display: flex; height: calc(100vh - 220px); }

/* 左侧年份列表 */
.me-year-sidebar {
  width: 80px; flex-shrink: 0;
  background: #f8f8f8;
  overflow-y: auto; max-height: 100%;
  padding: 8px 4px;
}
.me-year-item {
  padding: 12px 8px; text-align: center;
  cursor: pointer; border-radius: 8px;
  margin: 2px 4px; transition: all 0.2s;
}
.me-year-item:hover { background: #eee; }
.me-year-item span { font-size: 15px; color: #999; font-weight: 500; }
.me-year-active { background: #E8F5E9 !important; }
.me-year-active span { color: #2D3436 !important; font-weight: bold; font-size: 16px; }

/* 右侧题目列表 */
.me-question-list {
  flex: 1; padding: 12px;
  overflow-y: auto; max-height: 100%;
}
.me-question-card {
  background: #fff; border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  cursor: pointer; transition: box-shadow 0.2s;
}
.me-question-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.me-q-num { font-size: 22px; font-weight: bold; color: #2D3436; margin-bottom: 8px; }
.me-q-content { font-size: 15px; color: #2D3436; line-height: 1.7; }

/* 空状态 */
.me-empty { display: flex; justify-content: center; align-items: center; padding: 60px 0; }
.me-empty span { font-size: 15px; color: #999; }

/* 知识点列表 */
.me-knowledge-list { padding: 12px; }
.me-knowledge-card {
  background: #fff; border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.me-kp-name { font-size: 15px; color: #2D3436; font-weight: 500; }
.me-kp-count { font-size: 13px; color: #999; }

/* 选择弹窗 */
.me-picker-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 100;
}
.me-picker-popup {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 20px; z-index: 101;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.me-picker-title { text-align: center; font-size: 17px; font-weight: bold; color: #2D3436; margin-bottom: 16px; }
.me-picker-item {
  padding: 14px; text-align: center;
  border-bottom: 1px solid #ddd;
  cursor: pointer; transition: background 0.2s;
}
.me-picker-item:hover { background: #E8F4F8; }
.me-picker-item span { font-size: 16px; color: #2D3436; }
.me-picker-active { background: #E8F5E9; border-radius: 8px; }
.me-picker-active span { color: #4CAF50; font-weight: bold; }
.me-picker-cancel {
  text-align: center; padding: 14px;
  margin-top: 12px; font-size: 15px;
  color: #999; border-top: 1px solid #ddd;
  cursor: pointer;
}
.me-picker-cancel:hover { color: #666; }

/* ===== 计算机408套卷练习页 ===== */
.exam408-page { min-height: 100vh; background: #E8F4F8; }

.e408-header {
  background: #4CAF50;
  padding: 20px 20px 28px;
}
.e408-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.e408-back { font-size: 22px; color: #fff; cursor: pointer; }
/* 顶部导航左上角「🏠 首页」按钮（app.js 集中注入）：绿色头部上用白底胶囊；无绿色头部的页面用 .e408-home-inline 绿底条兜底 */
.e408-home { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #2E7D32; background: rgba(255,255,255,.92); border-radius: 999px; padding: 5px 14px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; margin-right: 10px; }
.e408-home:active { opacity: .8; }
.e408-home-left { display: inline-flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.e408-home-inline { background: #4CAF50; padding: 10px 20px 0; margin-bottom: 0; }
/* 顶部导航「科目」胶囊（app.js 集中注入）：与首页同样式，点击直达我的科目页 */
.e408-subj { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #2E7D32; background: rgba(255,255,255,.92); border-radius: 999px; padding: 5px 14px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.e408-subj:active { opacity: .8; }
.e408-header-actions { display: flex; gap: 16px; }
.e408-action-link { font-size: 14px; color: rgba(255,255,255,0.9); cursor: pointer; }
.e408-action-link:hover { color: #fff; }
.e408-title { font-size: 26px; font-weight: bold; color: #fff; margin: 0 0 12px; }
.e408-subject-tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 6px 20px; border-radius: 20px;
  font-size: 16px; color: #fff; font-weight: 500;
}

.e408-body { background: #E8F4F8; padding: 0 0 20px; }
.e408-section-title { font-size: 20px; font-weight: bold; color: #2D3436; padding: 20px 20px 10px; }
.e408-section-title .e408-count { font-size: 16px; font-weight: normal; color: #999; }
.e408-progress-bar { height: 6px; background: #e0e0e0; border-radius: 3px; margin: 0 20px 16px; overflow: hidden; }
.e408-progress-fill { height: 100%; background: #4CAF50; border-radius: 3px; transition: width 0.3s; }

.e408-paper-list { padding: 0 16px; }
.paper-card {
  background: #fff; border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  cursor: pointer; transition: box-shadow 0.2s;
}
.paper-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.paper-title { font-size: 16px; font-weight: bold; color: #2D3436; line-height: 1.5; margin-bottom: 6px; }
.paper-status { font-size: 13px; color: #bbb; }

/* ===== 408真题答题页 ===== */
.paper408-page { min-height: 100vh; background: #fff; display: flex; flex-direction: column; }

.p408-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #ddd;
  position: sticky; top: 0; z-index: 10;
}
.p408-back { font-size: 22px; color: #2D3436; cursor: pointer; }
.p408-timer { font-size: 22px; font-weight: bold; color: #2D3436; }

.p408-info-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: #fafafa; border-bottom: 1px solid #ddd;
}
.p408-paper-title { font-size: 13px; color: #999; }
.p408-progress { font-size: 14px; color: #4CAF50; font-weight: bold; }

.p408-content { flex: 1; padding: 20px 16px 100px; overflow-y: auto; }

.p408-q-type-tag {
  display: inline-block; padding: 4px 14px; border-radius: 4px;
  background: #E8F4F8; font-size: 14px; color: #666; margin-bottom: 16px;
}
.p408-q-text { font-size: 18px; font-weight: bold; color: #2D3436; line-height: 1.7; margin-bottom: 24px; }

.p408-options { display: flex; flex-direction: column; gap: 12px; }
.p408-option {
  display: flex; align-items: flex-start; padding: 16px;
  border: 1px solid #ddd; border-radius: 12px; cursor: pointer;
  transition: all 0.2s; background: #fff;
}
.p408-option:hover { border-color: #4CAF50; background: #E8F5E9; }
.p408-opt-selected { border-color: #4CAF50; background: #E8F5E9; }
.p408-opt-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #ddd; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: bold; color: #666; margin-right: 14px; flex-shrink: 0;
  transition: all 0.2s;
}
.p408-opt-selected .p408-opt-circle { border-color: #4CAF50; background: #4CAF50; color: #fff; }
.p408-opt-content { font-size: 16px; color: #2D3436; line-height: 1.6; padding-top: 6px; }

.p408-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; padding: 10px 16px;
  background: #fff; border-top: 1px solid #ddd; z-index: 10; gap: 10px;
}
.p408-footer-left {
  display: flex; flex-direction: column; align-items: center; cursor: pointer; margin-right: auto;
}
.p408-card-icon { font-size: 20px; }
.p408-card-text { font-size: 11px; color: #666; }
.p408-btn {
  padding: 10px 28px; border-radius: 24px; border: none; font-size: 15px;
  cursor: pointer; font-weight: 500; transition: opacity 0.2s;
}
.p408-btn:active { opacity: 0.8; }
.p408-btn-prev { background: #E8F4F8; color: #666; }
.p408-btn-next { background: #4CAF50; color: #fff; }
.p408-btn-back { background: #4CAF50; color: #fff; padding: 12px 40px; margin: 20px auto; display: block; border-radius: 24px; border: none; font-size: 16px; cursor: pointer; }

/* 答题卡弹窗 */
.p408-card-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 100; }
.p408-card-popup {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: 16px 16px 0 0;
  z-index: 101; max-height: 70vh; display: flex; flex-direction: column;
}
.p408-card-header { display: flex; align-items: center; justify-content: center; padding: 16px 20px 12px; }
.p408-card-header-icon { font-size: 20px; margin-right: 6px; }
.p408-card-header-title { font-size: 17px; font-weight: bold; color: #2D3436; }
.p408-card-divider { height: 1px; background: #f0f0f0; margin: 0 20px; }
.p408-card-scroll { flex: 1; overflow-y: auto; padding: 12px 20px; }
.p408-card-section-title { font-size: 14px; font-weight: bold; color: #666; margin: 12px 0 8px; }
.p408-card-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.p408-card-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; background: #E8F4F8; color: #666;
  cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
}
.p408-card-num:hover { background: #eee; }
.p408-card-answered { background: #E8F5E9; color: #4CAF50; border-color: #4CAF50; }
.p408-card-current { box-shadow: 0 0 0 2px #4CAF50; }
.p408-card-footer { display: flex; gap: 12px; padding: 12px 20px 20px; border-top: 1px solid #ddd; }
.p408-card-btn-continue {
  flex: 1; padding: 12px; border-radius: 24px; border: 1px solid #ddd;
  background: #fff; color: #2D3436; font-size: 15px; cursor: pointer; transition: all 0.2s;
}
.p408-card-btn-continue:hover { background: #E8F4F8; }
.p408-card-btn-submit {
  flex: 1; padding: 12px; border-radius: 24px; border: none;
  background: #4CAF50; color: #fff; font-size: 15px; cursor: pointer; transition: opacity 0.2s;
}
.p408-card-btn-submit:hover { opacity: 0.9; }

/* 结果页 */
.p408-result-page { padding: 20px 16px; }
.p408-result-header { text-align: center; padding: 20px 0 30px; }
.p408-result-score { font-size: 48px; font-weight: bold; color: #4CAF50; margin-bottom: 20px; }
.p408-result-stats { display: flex; justify-content: center; gap: 40px; }
.p408-stat { text-align: center; }
.p408-stat-num { display: block; font-size: 28px; font-weight: bold; }
.p408-stat-label { font-size: 13px; color: #999; margin-top: 4px; display: block; }
.p408-result-detail { margin-top: 10px; }
.p408-result-item { display: flex; padding: 14px 0; border-bottom: 1px solid #E8F4F8; }
.p408-result-qnum { font-size: 20px; font-weight: bold; margin-right: 14px; flex-shrink: 0; width: 30px; }
.p408-result-info { flex: 1; }
.p408-result-qtext { font-size: 15px; color: #2D3436; line-height: 1.5; margin-bottom: 6px; }
.p408-result-answer { font-size: 13px; color: #999; }

/* ===== 南京大学 352 口腔综合 刷题（入口 / 刷题 / 单题 / 错题本）===== */
.nju-entry-page, .nju-practice-page, .nju-paper-page, .nju-wrongbook-page {
  min-height: 100vh; background: #E8F4F8;
}

/* 入口页 */
.nju-hero {
  position: relative; overflow: hidden;
  margin: 16px; padding: 34px 24px; border-radius: 16px; text-align: center; color: #143A5B;
  background: radial-gradient(40% 22% at 76% 88%,rgba(255,255,255,.95),rgba(255,255,255,.3) 42%,rgba(255,255,255,0) 72%),radial-gradient(50% 26% at 8% 96%,rgba(30,100,150,.42),rgba(30,100,150,0) 72%),radial-gradient(24% 15% at 20% 22%,rgba(255,255,255,.85),rgba(255,255,255,0) 62%),radial-gradient(18% 11% at 58% 13%,rgba(255,255,255,.7),rgba(255,255,255,0) 62%),radial-gradient(16% 10% at 86% 30%,rgba(255,255,255,.6),rgba(255,255,255,0) 62%),linear-gradient(180deg,#a9d3f2 0%,#c3e0f5 22%,#dcebf7 45%,#e6f0f8 66%,#eaf2f8 71.8%,#9db8cf 72.6%,#6fa3c4 80%,#5b9bc2 90%,#6fb0dd 100%); box-shadow: 0 4px 14px rgba(30,90,150,.28);
}
.nju-hero-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); color: #0F6B8C; font-size: 14px; margin-bottom: 12px;
}
.nju-hero-title { font-size: 24px; font-weight: bold; line-height: 1.4; text-shadow:0 1px 3px rgba(255,255,255,.9); }
.nju-hero-sub { margin-top: 10px; font-size: 14px; color: #2C556E; text-shadow:0 1px 3px rgba(255,255,255,.9); }
.nju-main-btn {
  margin: 20px 16px 0; padding: 18px; text-align: center; cursor: pointer;
  background: #fff; border: 2px solid #4CAF50; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nju-main-btn:hover { background: #F3FAF4; }
.nju-main-text { font-size: 20px; font-weight: bold; color: #2E7D32; }
.nju-main-sub { margin-top: 6px; font-size: 14px; color: #888; }
.nju-entry-cards { display: flex; gap: 12px; margin: 16px; }
/* 四卡并排（错题本/笔记本/收藏夹/真题及解析）：收窄内边距与字号，避免窄屏文字挤压换行 */
.nju-entry-cards.four { gap: 8px; margin: 14px 12px; }
.nju-entry-cards.four .nju-entry-card { padding: 18px 6px; }
.nju-entry-cards.four .nju-entry-name { font-size: 14px; white-space: nowrap; }
.nju-entry-cards.four .nju-entry-icon { font-size: 26px; margin-bottom: 6px; }
.nju-entry-card {
  flex: 1; position: relative; padding: 22px 12px; text-align: center; cursor: pointer;
  background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.nju-entry-card:hover { background: #F3FAF4; }
.nju-entry-icon { font-size: 30px; margin-bottom: 8px; }
.nju-entry-name { font-size: 16px; color: #2D3436; font-weight: bold; }
.nju-entry-badge {
  display: inline-block; margin-top: 8px; min-width: 26px; padding: 2px 10px;
  border-radius: 999px; background: #FF5252; color: #fff; font-size: 13px;
}
.nju-entry-desc { margin-top: 8px; font-size: 13px; color: #999; }

/* 纸质版下载入口（逐专业命名，如「上海财经大学431金融学综合纸质版下载」）：
   网页端只走激活码开通（无购物车/在线支付），橙色与专业开通入口（绿色）区分 */
.nju-paper-btn {
  margin: 0 16px; padding: 14px 18px; text-align: center; cursor: pointer;
  background: #fff; border: 2px solid #FF9800; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nju-paper-btn:hover { background: #FFF8EC; }
.nju-paper-main { font-size: 16px; font-weight: bold; color: #E65100; }
.nju-paper-sub { margin-top: 5px; font-size: 13px; color: #999; }

/* 纸质版下载页（PDF 原文件） */
.pd-hero {
  margin: 16px; padding: 18px 20px; background: #fff; border-left: 5px solid #FF9800;
  border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pd-title { font-size: 19px; font-weight: bold; color: #E65100; }
.pd-sub { margin-top: 6px; font-size: 13px; color: #888; }
.pd-body { margin: 12px 16px 24px; }
.pd-loading { padding: 40px 0; text-align: center; color: #999; font-size: 14px; }
.pd-tip {
  padding: 36px 20px; text-align: center; background: #fff; border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.pd-tip-ico { font-size: 34px; }
.pd-tip-txt { margin-top: 10px; font-size: 15px; color: #2D3436; }
.pd-tip-btns { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
.pd-file {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 14px 16px;
  background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.pd-file-ico { font-size: 26px; }
.pd-file-body { flex: 1; min-width: 0; }
.pd-file-name { font-size: 14px; font-weight: bold; color: #2D3436; word-break: break-all; }
.pd-file-label { margin-top: 4px; font-size: 12px; color: #999; }
.pd-file-size { margin-top: 2px; font-size: 12px; color: #bbb; }
.pd-file-btn {
  flex: 0 0 auto; padding: 8px 18px; border-radius: 999px; background: #FF9800;
  color: #fff; font-size: 14px; cursor: pointer;
}
.pd-file-btn:hover { background: #FB8C00; }
/* 预览（绿，与全站主色一致）/ 下载（橙，与入口页纸质版按钮同色系）上下堆叠 */
.pd-file-btns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.pd-btn-view { background: #4CAF50; text-align: center; min-width: 72px; }
.pd-btn-view:hover { background: #43A047; }
.pd-btn-save { background: #FF9800; text-align: center; min-width: 72px; }
.pd-btn-save:hover { background: #FB8C00; }
.pd-note {
  margin-top: 6px; padding: 12px 14px; font-size: 12px; line-height: 1.7; color: #888;
  background: rgba(255,255,255,.6); border-radius: 10px;
}

/* 纸质版预览浮层：PDF 由 pdf.js 分段流式逐页渲染（纸质版只保留 PDF） */
.pd-view-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55);
  z-index: 950; display: flex; align-items: center; justify-content: center; padding: 12px;
}
.pd-view-box {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 1000px;
  height: 92vh; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.pd-view-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0; background: #fff;
}
.pd-view-name { flex: 1; min-width: 0; font-size: 14px; font-weight: bold; color: #2D3436; word-break: break-all; }
.pd-view-acts { flex: 0 0 auto; display: flex; gap: 8px; }
.pd-view-act {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: #f2f3f5; color: #555;
}
.pd-view-act:hover { background: #e6e7e9; }
.pd-view-dl { background: #FF9800; color: #fff; }
.pd-view-dl:hover { background: #FB8C00; }
.pd-view-close { background: #2D3436; color: #fff; }
.pd-view-close:hover { background: #1e2528; }
/* pdf.js 逐页加载预览：占满浮层主体、内部滚动，页面随滚动逐页渲染 */
.pdjs-box { max-width: 1000px; }
.pdjs-scroll { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; background: #525659; padding: 12px; }
.pdjs-page { margin: 0 auto 12px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); position: relative; min-height: 40px; display: flex; flex-direction: column; align-items: center; }
.pdjs-pageno { align-self: flex-end; padding: 2px 10px; font-size: 12px; color: #bbb; }
.pdjs-canvas { display: block; max-width: 100%; height: auto; }
.pd-view-hint {
  flex: 0 0 auto; padding: 8px 14px; font-size: 12px; line-height: 1.6; color: #a06a00;
  background: #FFF8E1; border-bottom: 1px solid #FFECB3;
}
.pd-view-framebox { flex: 1; min-height: 0; position: relative; background: #f7f8fa; }
.pd-view-frame { width: 100%; height: 100%; border: 0; display: block; }
.pd-view-wait {
  position: absolute; top: 46%; left: 0; right: 0; text-align: center;
  font-size: 14px; color: #999; pointer-events: none;
}
@media (max-width: 640px) {
  .pd-view-box { max-width: none; height: 88vh; border-radius: 12px; }
  .pd-view-head { flex-wrap: wrap; }
  .pd-view-acts { margin-left: auto; }
}

/* 入口页底部操作栏：客服 / 购物车 / 加入购物车 / 立即购买 */
.nju-entry-page { padding-bottom: 76px; }
.entry-action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 100;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #fff; box-shadow: 0 -1px 8px rgba(0,0,0,.08);
}
.eab-icon-btn {
  flex: 0 0 auto; width: 50px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #666; cursor: pointer;
}
.eab-ico-wrap { position: relative; }
.eab-ico { font-size: 20px; line-height: 1.1; }
.eab-badge {
  position: absolute; top: -6px; right: -12px; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; box-sizing: border-box; text-align: center; border-radius: 999px;
  background: #FF5252; color: #fff; font-size: 11px;
}
.eab-icon-txt { font-size: 11px; margin-top: 2px; }
.eab-btn {
  flex: 1 1 0; min-width: 0; height: 42px; line-height: 42px; text-align: center;
  white-space: nowrap; border-radius: 999px; font-size: 15px; font-weight: bold; cursor: pointer;
}
.eab-add { background: #fff; color: #2E7D32; border: 2px solid #4CAF50; }
.eab-add:hover { background: #F3FAF4; }
/* 「立即加入」按钮：缩短为约原全宽的三分之一并在剩余空间居中（原为 flex:1 铺满整条底栏） */
.eab-buy { flex: 0 0 auto; width: 33.33%; margin: 0 auto; background: #4CAF50; color: #fff; }
.eab-buy:hover { background: #3B9A3F; }
/* 「已开通」按钮：与「立即加入」一致，缩短为约原全宽的三分之一并居中 */
.eab-owned { flex: 0 0 auto; width: 33.33%; margin: 0 auto; }

/* ===== 购物车页（网页端）===== */
.cart-page { padding-bottom: 76px; min-height: 60vh; background: #F3FAF4; }
.nav-cart-clear { margin-left: auto; font-size: 14px; color: #2E7D32; cursor: pointer; }
.cart-empty { display: flex; flex-direction: column; align-items: center; padding: 90px 20px; color: #999; }
.cart-empty-ico { font-size: 64px; opacity: .35; }
.cart-empty-txt { margin-top: 14px; font-size: 16px; color: #666; }
.cart-empty-sub { margin-top: 6px; font-size: 13px; }
.cart-list { padding: 12px; }
.cart-item { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 14px 12px; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.ci-check { flex: 0 0 auto; width: 22px; height: 22px; box-sizing: border-box; border: 1.5px solid #bbb; border-radius: 50%; margin-right: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ci-checked { background: #4CAF50; border-color: #4CAF50; }
.ci-tick { color: #fff; font-size: 14px; line-height: 14px; }
.ci-body { flex: 1 1 auto; min-width: 0; cursor: pointer; }
.ci-name { font-size: 15px; color: #222; font-weight: bold; }
.ci-spec { margin-top: 5px; font-size: 12px; color: #999; }
.ci-price { margin-top: 6px; font-size: 16px; color: #FF5252; font-weight: bold; }
.ci-price-empty { color: #bbb; font-size: 13px; font-weight: normal; }
.ci-del { flex: 0 0 auto; margin-left: 10px; padding: 4px 12px; font-size: 13px; color: #999; border: 1px solid #ddd; border-radius: 999px; cursor: pointer; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 60px; box-sizing: border-box; display: flex; align-items: center; background: #fff; box-shadow: 0 -1px 8px rgba(0,0,0,.08); padding: 0 12px; z-index: 100; }
.cb-all { display: flex; align-items: center; cursor: pointer; }
.cb-check { margin-right: 6px; }
.cb-all-txt { font-size: 14px; color: #444; }
.cb-total { flex: 1 1 auto; display: flex; align-items: baseline; justify-content: flex-end; margin-right: 12px; }
.cb-total-label { font-size: 14px; color: #444; }
.cb-total-num { font-size: 20px; color: #FF5252; font-weight: bold; }
.cb-buy { flex: 0 0 auto; height: 42px; line-height: 42px; padding: 0 22px; text-align: center; background: #4CAF50; color: #fff; font-size: 15px; font-weight: bold; border-radius: 999px; cursor: pointer; }
/* 结算视图 */
.pay-settle { max-width: 560px; margin: 16px auto; padding: 16px; background: #fff; border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.pay-order-title { font-size: 15px; font-weight: bold; color: #2E7D32; margin-bottom: 10px; }
.pay-order-item { display: flex; align-items: baseline; font-size: 14px; color: #333; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.pay-order-name { flex: 1 1 auto; }
.pay-order-spec { color: #999; font-size: 12px; margin: 0 10px; }
.pay-order-price { color: #FF5252; font-weight: bold; }
.pay-order-total { margin-top: 12px; text-align: right; font-size: 14px; color: #333; }
.pay-order-total-num { color: #FF5252; font-size: 22px; font-weight: bold; }
.pay-wechat-tip { margin-top: 16px; text-align: center; font-size: 13px; color: #666; }
.pay-wechat-btn { display: block; width: 100%; margin-top: 12px; }
.pay-back-btn { display: block; width: 100%; margin-top: 10px; padding: 10px; background: none; border: none; color: #888; font-size: 14px; cursor: pointer; }

/* 科目列表页 */
.njus-list { margin: 0 16px; }
.njus-item {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 18px 18px; margin-bottom: 14px; background: #fff;
  border-radius: 14px; border-left: 5px solid #4CAF50; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.njus-item:hover { background: #F3FAF4; }
.njus-item-off { opacity: .55; border-left-color: #B0BEC5; cursor: default; }
.njus-item-off:hover { background: #fff; }
.njus-badge { font-size: 26px; font-weight: bold; color: #2D3436; }
.njus-name { font-size: 18px; font-weight: bold; color: #2D3436; }
.njus-tag {
  margin-left: auto; padding: 3px 12px; border-radius: 999px;
  background: #EAF5EB; color: #2E7D32; font-size: 13px; font-weight: bold;
}
.njus-tag-off { background: #ECEFF1; color: #90A4AE; }

/* 刷题页：左年份 / 右题号卡片 */
.nju-header-left { display: flex; align-items: center; gap: 12px; }
.nju-wb-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 5px 12px; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5);
}
.nju-wb-btn:hover { background: rgba(255,255,255,.34); }
.nju-wb-badge {
  min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; text-align: center;
  border-radius: 999px; background: #FF5252; color: #fff; font-size: 12px;
}
.nju-practice-body { display: flex; align-items: flex-start; }
.nju-year-col {
  width: 96px; flex-shrink: 0; background: #F1F6F8; border-right: 1px solid #E0E6E8;
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.nju-year-item {
  position: relative; height: 48px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #E6ECEE; cursor: pointer; font-size: 15px; color: #556;
}
.nju-year-item:hover { background: #EAF1F3; }
.nju-year-item.active { background: #fff; color: #2E7D32; font-weight: bold; }
.nju-year-item.active::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px;
  background: #4CAF50; border-radius: 0 2px 2px 0;
}
.nju-year-dot {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #4CAF50;
}
.nju-question-col { flex: 1; padding: 16px; min-width: 0; }
.nju-col-title { font-size: 15px; color: #667; margin-bottom: 12px; }
.nju-q-card {
  display: flex; align-items: center; position: relative; cursor: pointer;
  padding: 14px; margin-bottom: 12px; background: #fff; border: 1px solid #E4EAE8;
  border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.nju-q-card:hover { background: #F3FAF4; }
.nju-q-card-wrong { border-color: #FFC9C9; background: #FFF7F7; }
.nju-q-index {
  width: 34px; height: 34px; line-height: 34px; text-align: center; flex-shrink: 0; margin-right: 12px;
  border-radius: 8px; background: #EAF5EB; color: #2E7D32; font-size: 16px; font-weight: bold;
}
.nju-q-card-wrong .nju-q-index { background: #FFE5E5; color: #D32F2F; }
.nju-q-body { flex: 1; min-width: 0; }
.nju-q-section { font-size: 12px; color: #999; margin-bottom: 3px; }
.nju-q-text { font-size: 15px; color: #2D3436; line-height: 1.5; word-break: break-word; }
.nju-q-flag {
  position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 50%; background: #FF5252; color: #fff; font-size: 12px;
}

/* 单题页 */
.nju-collect-btn {
  cursor: pointer; padding: 4px 12px; border-radius: 999px; font-size: 13px; color: #fff;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5);
}
.nju-collect-btn.on { background: #FFB300; border-color: #FFB300; font-weight: bold; }
/* 草稿纸按钮 + 弹窗（背景不变暗） */
.nju-scratch-btn {
  cursor: pointer; padding: 4px 12px; border-radius: 999px; font-size: 13px; color: #fff;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5);
}
.nju-scratch-btn:hover { background: rgba(255,255,255,.34); }
.nju-scratch-mask {
  position: fixed; inset: 0; z-index: 2000; background: transparent; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.nju-scratch-panel {
  pointer-events: auto;
  width: min(920px, 92vw); height: min(46vh, 520px); margin-bottom: calc(68px + env(safe-area-inset-bottom)); background: #fff; border-radius: 14px;
  box-shadow: 0 -6px 48px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden;
}
/* 草稿纸打开时：页面底部留出可滚动空间（面板高 + 底部导航栏高），题干上滚后完全离开面板，不遮挡底部导航 */
.nju-paper-page.scratch-open { padding-bottom: calc(46vh + 90px); }
.nju-scratch-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px; background: #4CAF50; flex-shrink: 0;
}
.nju-scratch-title { color: #fff; font-size: 16px; font-weight: bold; }
.nju-scratch-tools { display: flex; align-items: center; gap: 8px; }
.nju-scratch-pen, .nju-scratch-act {
  cursor: pointer; min-width: 40px; height: 30px; line-height: 30px; text-align: center;
  padding: 0 10px; border-radius: 7px; font-size: 13px; color: #fff; background: rgba(255,255,255,.2);
}
.nju-scratch-pen.on { background: #FFB300; font-weight: bold; }
.nju-scratch-act.on { background: #FFB300; font-weight: bold; }
.nju-scratch-act:hover { background: rgba(255,255,255,.34); }
.nju-scratch-close {
  cursor: pointer; height: 30px; line-height: 30px; padding: 0 14px; border-radius: 7px;
  font-size: 13px; font-weight: bold; color: #4CAF50; background: #fff;
}
.nju-scratch-canvas { flex: 1; width: 100%; background: #fff; touch-action: none; cursor: crosshair; }
/* 收起态：缩成右下角小胶囊，浮在空白处，不遮题干也不遮底部导航（笔迹保留在内存，展开后重绘） */
.nju-scratch-panel.nju-scratch-collapsed {
  height: auto; width: auto;
  margin-left: auto; margin-right: 16px; margin-bottom: 92px;
  border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.nju-scratch-panel.nju-scratch-collapsed .nju-scratch-canvas { display: none; }
.nju-scratch-panel.nju-scratch-collapsed .sc-tool { display: none; }

/* 笔记纸：题目卡片下方的独立书写页（正常文档流）——
   不再用整屏透明画布盖在题目上，所以不会把笔迹画到文字里，也不拦「查看参考答案」/选项/底部按钮的点击；
   画布在纸内随页面一起滚动，笔迹相对题目文字不再错位 */
.nju-note-sheet {
  /* 尺寸与草稿纸弹窗对齐：宽 min(920px,92vw) 居中，与 .nju-scratch-panel 同一宽高比例，
     两端（网页/小程序）画布比例一致，按轴归一化的笔迹等比铺满不拉伸变形 */
  margin: 0 auto 16px; width: min(920px, 92vw); box-sizing: border-box;
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05); overflow: hidden;
}
.nju-note-canvas {
  display: block; width: 100%;
  /* 画布高＝草稿纸面板 min(46vh,520px) 减去工具条约 48px，与 .nju-scratch-canvas 完全等大 */
  height: calc(min(46vh, 520px) - 48px);
  background: #fff; touch-action: none; cursor: crosshair;
  user-select: none; -webkit-user-select: none;
}
.nju-note-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 16px; background: #FFB300;
  user-select: none; -webkit-user-select: none;
}
.nju-note-title { color: #fff; font-size: 16px; font-weight: bold; }
.nju-note-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nju-note-bar .nju-scratch-act { color: #fff; background: rgba(255,255,255,.24); cursor: pointer; }
.nju-note-bar .nju-scratch-act:hover { background: rgba(255,255,255,.4); }
.nju-note-bar .nju-scratch-act.on { background: #E53935; font-weight: bold; }
.nju-note-tip { padding: 8px 16px 12px; font-size: 12px; color: #999; }
/* 笔记面板收起态：折叠为一条 bar，笔迹保留在内存，展开后重绘 */
.nju-note-sheet.note-collapsed .nju-note-canvas { display: none; }
.nju-note-sheet.note-collapsed .nju-note-tip { display: none; }
.nju-note-sheet.note-collapsed .note-tool { display: none; }

/* 笔记本列表页 */
.nju-nb-sub { margin: 0 16px 8px; font-size: 14px; color: #666; }
.nju-nb-list { padding-bottom: 40px; }
.nju-nb-group-title { margin: 14px 16px 8px; font-size: 15px; font-weight: bold; color: #1A4D8C; }
.nju-nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 16px; }
.nju-nb-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column; }
.nju-nb-thumb {
  position: relative; height: 130px; cursor: zoom-in; background: #F7F9FA;
  display: flex; align-items: center; justify-content: center;
}
.nju-nb-thumb img { width: 100%; height: 100%; object-fit: contain; }
.nju-nb-noimg { font-size: 13px; color: #999; }
.nju-nb-kind {
  position: absolute; left: 6px; top: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; color: #fff; background: #FFB300;
}
.nju-nb-kind.scratch { background: #4CAF50; }
.nju-nb-meta { padding: 8px 10px 2px; flex: 1; min-width: 0; }
.nju-nb-t { font-size: 13px; color: #2D3436; line-height: 1.5; word-break: break-all; }
.nju-nb-d { margin-top: 4px; font-size: 11px; color: #999; }
.nju-nb-acts { display: flex; border-top: 1px solid #F0F2F5; }
.nju-nb-act {
  flex: 1; text-align: center; padding: 8px 0; font-size: 13px; color: #1976D2; cursor: pointer;
}
.nju-nb-act:active { background: #F3FAF4; }
.nju-nb-del { color: #C62828; border-left: 1px solid #F0F2F5; }
.nju-nb-viewer {
  position: fixed; inset: 0; z-index: 2400; background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center; padding: 18px; cursor: zoom-out;
}
.nju-nb-viewer-img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 8px; }
.nju-paper-body {
  margin: 16px; padding: 24px; background: #fff; border-radius: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.05);
  padding-bottom: 90px;
}
.nju-paper-body .nju-q-title { font-size: 20px; font-weight: bold; color: #2D3436; line-height: 1.7; margin-bottom: 8px; }
.nju-paper-footer {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.08); z-index: 50;
}
.nju-nav-btn {
  width: 88px; height: 44px; line-height: 44px; text-align: center; cursor: pointer; flex-shrink: 0;
  border-radius: 8px; background: #F0F2F5; color: #556; font-size: 14px;
}
.nju-nav-btn:hover { background: #E2E6EA; }
.nju-judge {
  flex: 0 1 auto; width: 26vw; min-width: 192px; max-width: 560px; height: 44px; line-height: 44px; text-align: center; cursor: pointer;
  border-radius: 8px; font-size: 15px; font-weight: bold; color: #fff; white-space: nowrap;
}
.nju-judge-wrong { background: #FF6B6B; }
.nju-judge-wrong:hover { background: #E85555; }
.nju-judge-right { background: #4CAF50; }
.nju-judge-right:hover { background: #3D9142; }
/* 底部导航「笔记 / 草稿纸」工具按钮（从顶部移下，与判分按钮同排） */
.nju-tool-btn {
  flex: 0 0 auto; height: 44px; line-height: 44px; padding: 0 16px; text-align: center; cursor: pointer;
  border-radius: 8px; font-size: 14px; font-weight: bold; color: #fff; white-space: nowrap;
}
.nju-tool-note { background: #FFB300; }
.nju-tool-note:hover { background: #F0A500; }
.nju-tool-scratch { background: #26A69A; }
.nju-tool-scratch:hover { background: #1E9186; }

/* 单题页题目右上角「收藏」小胶囊（金色主题，与小程序端一致） */
.nju-fav-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.nju-fav-btn {
  display: inline-block; padding: 5px 14px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: bold; color: #B26A00; background: #FFF3D6; border: 1px solid #F0D690; user-select: none;
}
.nju-fav-btn:hover { background: #FBE8BC; }
.nju-fav-btn.on { color: #fff; background: #F5A623; border-color: #F5A623; }

/* 单题页顶部副栏：练题·背题模式切换（绿色头部内白字药丸） + 题号定位 + 用时 */
.nju-subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nju-subbar-right { display: inline-flex; align-items: center; gap: 12px; }
.nju-subbar .e408-title { margin: 0; font-size: 16px; font-weight: bold; color: #fff; }
.nju-mode-tabs { display: inline-flex; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 3px; gap: 2px; }
.nju-mode-tab { cursor: pointer; padding: 5px 16px; border-radius: 999px; font-size: 14px; color: #fff; user-select: none; white-space: nowrap; }
.nju-mode-tab.on { background: #fff; color: #2E7D32; font-weight: bold; }

/* 底部六图标工具栏：上一题 / 收藏 / 笔记 / 草稿纸 / 答案 / 下一题 */
.nju-paper-footer { justify-content: space-around; gap: 4px; }
.nju-tb-btn {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px 0; cursor: pointer; color: #556; user-select: none; border-radius: 8px;
}
.nju-tb-btn:hover { background: #F0F2F5; }
.nju-tb-ico { font-size: 20px; line-height: 1; }
.nju-tb-txt { font-size: 12px; line-height: 1.2; }
.nju-tb-btn.on { color: #F5A623; }
.nju-tb-btn.on .nju-tb-ico { color: #F5A623; }

/* 答案统计框：只显示正确答案 / 你的答案（无跨用户数据，不含全站作答/正确率） */
.nju-ans-box {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 4px; padding: 12px 14px;
  background: #F1F8E9; border: 1px solid #C8E6C9; border-radius: 8px; font-size: 15px; color: #33691E;
}
.nju-ans-box b { color: #2E7D32; }
.nju-ans-row { display: inline-flex; align-items: baseline; gap: 8px; }
.nju-ans-row span { color: #7c8b6f; font-size: 13px; }
.nju-verdict { margin: 12px 2px 2px; font-weight: bold; }

/* 题干下方作答区：提交答案 / 重做本题 / 自评答对答错（原底部中段按钮移入此处） */
.nju-body-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.nju-body-actions .nju-judge { width: auto; min-width: 120px; max-width: none; padding: 0 22px; }
.nju-submit-ans {
  cursor: pointer; height: 44px; line-height: 44px; padding: 0 34px; text-align: center; border-radius: 8px;
  background: #4CAF50; color: #fff; font-size: 15px; font-weight: bold;
}
.nju-submit-ans:hover { background: #3D9142; }
.nju-retry-ans {
  cursor: pointer; height: 44px; line-height: 44px; padding: 0 30px; text-align: center; border-radius: 8px;
  background: #E3F2FD; color: #1976D2; font-size: 15px; font-weight: bold; border: 1px solid #BBDEFB;
}
.nju-retry-ans:hover { background: #D6EBFB; }

/* 解析展开块（单题页复用） */
.nju-ana-wrap { margin-top: 20px; }
.nju-ana-toggle {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer;
  background: #F3FAF4; border: 1px dashed #7CB97F; border-radius: 8px; font-size: 14px; color: #3B8E3F; user-select: none;
}
.nju-ana-toggle:hover { background: #E7F5E9; }
.nju-ana-arrow { font-size: 15px; line-height: 15px; transition: transform .2s; }
.nju-ana-arrow-up { transform: rotate(180deg); }
.nju-ana-body {
  margin-top: 8px; padding: 14px; cursor: pointer; background: #F7F9FA; border-left: 3px solid #4CAF50;
  border-radius: 6px; font-size: 15px; line-height: 1.85; color: #444; text-align: justify;
  white-space: pre-wrap; word-break: break-word;
}
.nju-ana-body:hover { background: #EAEFF2; }

/* 错题本页 */
.nju-clear-btn {
  cursor: pointer; padding: 4px 14px; border-radius: 999px; font-size: 14px; color: #fff;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5);
}
.nju-wb-sub { padding: 14px 20px 4px; font-size: 14px; color: #667; }
.nju-wb-list { padding: 0 16px 24px; }
.nju-wb-group-title { font-size: 16px; font-weight: bold; color: #2E7D32; padding: 14px 4px 8px; }
.nju-wb-card {
  display: flex; align-items: stretch; margin-bottom: 12px; background: #fff; overflow: hidden;
  border: 1px solid #F0D9D9; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.nju-wb-main { flex: 1; display: flex; align-items: center; padding: 14px; cursor: pointer; min-width: 0; }
.nju-wb-main:hover { background: #FFF7F7; }
.nju-wb-index {
  width: 30px; height: 30px; line-height: 30px; text-align: center; flex-shrink: 0; margin-right: 12px;
  border-radius: 8px; background: #FFE5E5; color: #D32F2F; font-size: 15px; font-weight: bold;
}
.nju-wb-body { flex: 1; min-width: 0; }
.nju-wb-section { font-size: 12px; color: #999; margin-bottom: 3px; }
.nju-wb-text { font-size: 15px; color: #2D3436; line-height: 1.5; word-break: break-word; }
.nju-wb-del {
  width: 60px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  background: #FBECEC; color: #D32F2F; font-size: 14px;
}
.nju-wb-del:hover { background: #F5D9D9; }

/* 空状态 */
.nju-empty { padding: 80px 20px; text-align: center; }
.nju-empty-ico { font-size: 48px; margin-bottom: 14px; }
.nju-empty-txt { font-size: 17px; color: #556; font-weight: bold; margin-bottom: 8px; }
.nju-empty-tip { font-size: 14px; color: #999; }

/* ===== 院校横幅/专业入口头部改纯代码海景背景（仅入口页 + 专业列表页，避免影响其它页 .e408-header）===== */
.nju-entry-page .e408-header, .subj-list-page .e408-header { position: relative; overflow: hidden; background: radial-gradient(40% 22% at 76% 88%,rgba(255,255,255,.95),rgba(255,255,255,.3) 42%,rgba(255,255,255,0) 72%),radial-gradient(50% 26% at 8% 96%,rgba(30,100,150,.42),rgba(30,100,150,0) 72%),radial-gradient(24% 15% at 20% 22%,rgba(255,255,255,.85),rgba(255,255,255,0) 62%),radial-gradient(18% 11% at 58% 13%,rgba(255,255,255,.7),rgba(255,255,255,0) 62%),radial-gradient(16% 10% at 86% 30%,rgba(255,255,255,.6),rgba(255,255,255,0) 62%),linear-gradient(180deg,#a9d3f2 0%,#c3e0f5 22%,#dcebf7 45%,#e6f0f8 66%,#eaf2f8 71.8%,#9db8cf 72.6%,#6fa3c4 80%,#5b9bc2 90%,#6fb0dd 100%); }
.nju-entry-page .e408-title, .subj-list-page .e408-title { color: #143A5B; text-shadow:0 1px 3px rgba(255,255,255,.9); }
.nju-entry-page .e408-back, .subj-list-page .e408-back { color: #143A5B; text-shadow:0 1px 3px rgba(255,255,255,.9); }
