/* ============ 上海家教网 PC 端样式 ============ */
/* 主题色变量：默认政务蓝；已登录后台区域管理员时按区域切换（body[data-theme]） */
:root {
  --f-main: #1e6fc2;        /* 主色（政务蓝） */
  --f-main-dark: #185a9e;   /* 主色深（hover） */
  --f-main-deep: #144a7d;   /* 主色最深 */
  --f-bg: #eef5fc;          /* 主色浅背景 */
  --f-bg2: #f0f5fb;         /* 主色更浅背景 */
}
/* 预设主题：橘子橙 */
body[data-theme="orange"] {
  --f-main: #f07b22; --f-main-dark: #d96a12; --f-main-deep: #c05c0c;
  --f-bg: #fdf0e2; --f-bg2: #fdf3e8;
}
/* 预设主题：翠绿 */
body[data-theme="green"] {
  --f-main: #2f9e6e; --f-main-dark: #26875c; --f-main-deep: #1e704b;
  --f-bg: #e8f6ef; --f-bg2: #edf8f2;
}
/* 预设主题：玫红 */
body[data-theme="rose"] {
  --f-main: #d1495b; --f-main-dark: #b83c4e; --f-main-deep: #9c3041;
  --f-bg: #fbecee; --f-bg2: #fcf0f2;
}
/* 预设主题：深紫 */
body[data-theme="purple"] {
  --f-main: #6b5cb0; --f-main-dark: #5a4c9c; --f-main-deep: #4a3d85;
  --f-bg: #efedf9; --f-bg2: #f2f0fa;
}
/* 预设主题：青色 */
body[data-theme="cyan"] {
  --f-main: #0e9aa7; --f-main-dark: #0c828d; --f-main-deep: #0a6b74;
  --f-bg: #e4f5f6; --f-bg2: #eaf7f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; background: #f5f6f8; line-height: 1.6; }

a { color: #333; text-decoration: none; }

a:hover { color: var(--f-main); }

img { max-width: 100%; }

ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; } /* 用户线上已改回1200 */

.main { min-height: 300px; padding: 20px 0 10px; }

/* 顶部信息条 */

.topbar { background: var(--f-bg); border-bottom: 1px solid #d6e5f4; font-size: 13px; color: #5c7c9c; }

.topbar-inner { display: flex; justify-content: space-between; padding: 7px 15px; }

.topbar a { color: var(--f-main); font-weight: bold; }

/* 头部 */

.header { background: #fff; border-bottom: 2px solid var(--f-main); }

.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 15px; }

.logo h1 { font-size: 30px; color: var(--f-main); }

.logo h1 a { color: var(--f-main); }

.logo p { font-size: 13px; color: #999; margin-top: 4px; }

.header-right { display: flex; align-items: center; gap: 20px; }

.hotline { text-align: right; }

.hotline-label { display: block; font-size: 12px; color: #999; }

.hotline-num { display: block; font-size: 22px; font-weight: bold; color: var(--f-main); letter-spacing: 1px; }

/* 按钮 */

.btn { display: inline-block; padding: 8px 20px; background: #fff; border: 1px solid var(--f-main); color: var(--f-main); border-radius: 4px; cursor: pointer; font-size: 14px; }

.btn:hover { background: var(--f-bg); color: var(--f-main); }

.btn-primary { background: var(--f-main); color: #fff; }

.btn-primary:hover { background: var(--f-main-dark); color: #fff; }

.btn-lg { padding: 12px 30px; font-size: 16px; }

.btn-sm { padding: 4px 12px; font-size: 13px; }

/* 导航 */

.nav { background: var(--f-main); }

.nav-list { display: flex; } /* 内容区已整体左右各扩206px，导航随内容区左移，无需单独偏移 */

.nav-list li a { display: block; padding: 12px 26px; color: #fff; font-size: 15px; } /* 用户线上已改15px */

.nav-list li a:hover { background: rgba(255,255,255,.28); color: #fff; }
.nav-list li.active a { background: #fffdf7; color: var(--f-main); font-weight: bold; } /* 选中反相：牛奶白底+主题色字 */

/* 公告 */

.notice-bar { background: #eaf3fc; border-bottom: 1px solid #c9dcf0; font-size: 13px; color: #000; } /* 公告文字正黑 */

.notice-bar .container { padding: 8px 15px; }

.notice-icon { color: #000; margin-right: 6px; } /* ◆ 图标随公告改正黑 */

/* 首页横幅 */

.hero { background: linear-gradient(135deg, var(--f-main) 0%, #4f8fd0 100%); color: #fff; padding: 26px 0; }

.hero-inner { display: flex; justify-content: space-between; align-items: center; }

.hero-left h2 { font-size: 22px; margin-bottom: 10px; }

.hero-left p { margin: 5px 0; font-size: 15px; }

.hero-left a { color: #e8f4ff; font-weight: bold; }

.hero-courses { color: #e8f4ff; }

.qr-box { background: #fff; color: #333; border-radius: 8px; padding: 15px; text-align: center; min-width: 150px; }

.qr-placeholder { width: 120px; height: 120px; border: 1px dashed #ccc; display: flex; align-items: center; justify-content: center; color: #999; margin: 0 auto 8px; border-radius: 4px; font-size: 13px; }

/* 模块 */

.module { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 18px; margin-bottom: 20px; }

/* 模块标题（居中 + 浅蓝背景条） */

.module-title { font-size: 16px; color: var(--f-main); text-align: center; background: var(--f-bg); border: 1px solid #d6e5f4; border-left: 4px solid var(--f-main); padding: 8px 10px; margin-bottom: 12px; }

.module-title .more { float: right; font-size: 13px; color: #999; font-weight: normal; }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* 列表 */

.list li { padding: 9px 0; border-bottom: 1px dashed #f0f0f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list li:last-child { border-bottom: none; }

.list-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 3px; margin-right: 6px; color: #fff; white-space: nowrap; }

.tag-new { background: var(--f-main); }

.tag-done { background: #999; }

.list-fee { float: right; color: var(--f-main); font-weight: bold; }

/* 教员列表 */

.teacher-list li { padding: 12px 0; border-bottom: 1px dashed #f0f0f0; }

.teacher-list li:last-child { border-bottom: none; }

.teacher-list .t-name { font-weight: bold; color: #222; font-size: 15px; }

.teacher-list .t-line { display: block; color: #888; font-size: 13px; margin: 2px 0; }

.teacher-list .t-desc { display: block; color: #666; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gold { font-style: normal; background: #ffd700; color: #7a5200; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }

/* 搜索表单 */

.search-form { background: #fbfbfb; border: 1px solid #eee; border-radius: 6px; padding: 15px; margin-bottom: 20px; }

.search-row { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; }

.search-item label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }

.search-item select, .search-item input[type=text] { height: 34px; border: 1px solid #ddd; border-radius: 4px; padding: 0 8px; min-width: 130px; background: #fff; }

.checkbox-item { display: flex; align-items: center; padding-bottom: 8px; }

.checkbox-item label { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #333; margin: 0; }

/* 页面头 */

.page-head { background: #fff; border-bottom: 1px solid #eee; padding: 18px 0; margin-bottom: 20px; }

.page-head h2 { color: var(--f-main); font-size: 22px; }

.page-head p { color: #999; font-size: 13px; margin-top: 4px; }

.page-head a { color: var(--f-main); }

/* 表格 */

.data-table { width: 100%; border-collapse: collapse; }

.data-table th, .data-table td { border: 1px solid #eee; padding: 9px 10px; text-align: left; font-size: 14px; }

.data-table th { background: #faf7f7; color: #555; font-weight: bold; }

.data-table tr:hover td { background: var(--f-bg); }

.empty { text-align: center; color: #999; padding: 30px !important; }

/* 分页 */

.pagination { margin-top: 15px; text-align: center; }

.pagination a, .pagination .current { display: inline-block; padding: 5px 12px; margin: 0 3px; border: 1px solid #ddd; border-radius: 3px; background: #fff; }

.pagination .current { background: var(--f-main); color: #fff; border-color: var(--f-main); }

.pagination .page-info { margin-right: 10px; color: #999; font-size: 13px; }

/* 详情 */

.detail-module { padding: 24px; }

.detail-top { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }

.t-avatar, .t-avatar-lg { position: relative; }

.t-avatar { width: 72px; height: 72px; }

.t-avatar-lg { width: 96px; height: 96px; }

.t-avatar img, .t-avatar-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.avatar-char { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--f-main); color: #fff; font-size: 30px; border-radius: 6px; }

.gold-badge { position: absolute; top: -6px; right: -6px; background: #ffd700; color: #7a5200; font-size: 11px; padding: 1px 6px; border-radius: 3px; font-style: normal; }

.detail-head-info h3 { font-size: 22px; color: #222; }

.detail-head-info p { color: #666; margin-top: 6px; }

.pro { font-style: normal; background: #2e7d32; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }

.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }

.detail-table th, .detail-table td { border: 1px solid #eee; padding: 10px 12px; text-align: left; }

.detail-table th { background: #faf7f7; width: 110px; color: #555; }

.contact-box { background: var(--f-bg); border: 1px solid #d6e5f4; border-radius: 6px; padding: 16px; }

.contact-title { font-weight: bold; color: var(--f-main); font-size: 16px; margin-bottom: 8px; }

.contact-box p { margin: 4px 0; }

.phone { color: var(--f-main); font-size: 20px; font-weight: bold; }

.contact-tip { color: #999; font-size: 12px; }

/* 表单 */

/* 表单（请家教页，宽度与页头对齐、字体加大） */

.form-module { max-width: 1100px; }

.form { max-width: 100%; }

.form-row { display: flex; align-items: flex-start; margin-bottom: 20px; }

.form-label { width: 170px; text-align: right; padding: 9px 14px 9px 6px; color: #444; font-size: 16px; font-weight: bold; background: #F0EEDF; border-radius: 4px; }

.form-label em { color: #e02424; font-style: normal; }

.form-row input[type=text], .form-row textarea { flex: 1; border: 1px solid #ddd; border-radius: 4px; padding: 11px 12px; font-size: 16px; font-family: inherit; background: #fff; }

.form-row select { flex: 0 0 auto; min-width: 160px; border: 1px solid #ddd; border-radius: 4px; padding: 11px 12px; font-size: 16px; font-family: inherit; background: #D9D9D9; }

.form-row select option { background: #fff; color: #333; }

.form-row textarea { resize: vertical; }

/* 输入框聚焦：淡黄背景 + 蓝色边框，字号不变 */

.form-row input[type=text]:focus, .form-row textarea:focus { background: #ffffcc; border-color: var(--f-main); outline: none; }

/* 窄输入框（联系人/手机等） */

.input-mid { flex: 0 0 auto !important; max-width: 360px; }

/* 字段容器（输入框+框外说明） */

.field-box { flex: 1; display: flex; flex-direction: column; }

.field-box input[type=text], .field-box textarea { width: 100%; box-sizing: border-box; }

/* 框外说明文字（原占位提示移到输入框外）：黑色、14号 */

.field-hint { display: block; font-size: 14px; color: #000; line-height: 1.4; margin-top: 4px; }

/* 时间安排：说明行 */

.time-note-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.time-note-row .note-label { font-size: 14px; color: #555; }

.time-note-row input[type=text] { flex: 0 0 auto; max-width: 360px; }

/* 横排字段组 */

.inline-group { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 16px; color: #555; flex-wrap: wrap; }

.salary-link { color: var(--f-main); text-decoration: underline; }

.salary-link:hover { color: var(--f-main-dark); }

/* 注册页（两步） */

.reg-module { padding: 30px 40px; }

.reg-step-title { font-size: 20px; color: var(--f-main-dark); text-align: center; margin-bottom: 24px; border-bottom: 2px solid #d6e5f4; padding-bottom: 14px; }

.reg-section-title { font-size: 17px; font-weight: bold; color: var(--f-main); border-left: 4px solid var(--f-main); padding-left: 10px; margin: 26px 0 18px; }

.reg-wechat-tip p { color: #c0392b; }

/* 注册第一步：居中窄表单 */

.reg1-center { max-width: 640px; margin: 0 auto; }

.reg1-center .reg-step-title { text-align: center; }

.reg1-center .form { max-width: 520px; margin: 0 auto; }

/* 注册页紧凑布局：12号、正常黑色、说明和星号在输入框后 */

.reg-compact .reg-step-title { font-size: 18px; margin-bottom: 14px; }

.reg-compact .form-row { margin-bottom: 7px; align-items: center; }

.reg-compact .form-label { width: 120px; font-size: 12px; font-weight: normal; color: #000; padding: 5px 8px; background: #F0EEDF; border-radius: 4px; text-align: right; flex: 0 0 auto; }

.reg-compact .form-row input[type=text], .reg-compact .form-row textarea, .reg-compact .form-row select { font-size: 12px; padding: 5px 8px; }

.reg-compact .form-row input[type=text]:focus, .reg-compact .form-row textarea:focus { background: #ffffcc; border-color: var(--f-main); }

.reg-compact .field-box { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }

.reg-compact .field-box > input { flex: 0 0 auto; width: auto; }

.reg-compact .field-hint { font-size: 12px; margin-top: 0; line-height: 1.3; color: #000; }

.reg-compact .field-hint em, .reg-compact .subj-star em { color: #e02424; font-style: normal; font-weight: bold; }

.reg-compact .reg-section-title { font-size: 13px; margin: 12px 0 8px; }

.reg-compact .subject-group { margin-bottom: 8px; }

.reg-compact .subject-group-title { font-size: 12px; margin-bottom: 4px; }

.reg-compact .subject-grid .subject-check, .reg-compact .time-table .subject-check { font-size: 12px; }

.reg-compact .subject-check input { width: 13px; height: 13px; }

.reg-compact .time-table th, .reg-compact .time-table td { font-size: 12px; padding: 3px 8px; }

.reg-compact .schedule-row { font-size: 12px; }

.reg-compact .btn-lg { font-size: 12px; }

.reg-compact .reg-wechat-tip { font-size: 12px; padding: 10px 12px; margin-bottom: 10px; }

.reg-compact textarea { width: 100%; box-sizing: border-box; }

.reg-compact .field-box textarea { flex: 0 0 100%; }

.reg-compact .subj-star { display: block; width: 100%; margin-bottom: 4px; }

.btn-center { justify-content: center; }

/* 科目分类 */

.subject-group { margin-bottom: 14px; }

.subject-group-title { font-size: 15px; font-weight: bold; color: var(--f-main); border-left: 4px solid var(--f-main); padding-left: 8px; margin-bottom: 8px; }

/* 注册第三步：科目矩阵/上课时间表 */

.subject-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; }

.subject-grid .subject-check { font-size: 14px; }

.time-table { border-collapse: collapse; }

.time-table th, .time-table td { border: 1px solid #d6e5f4; padding: 6px 10px; text-align: center; font-size: 14px; }

.time-table th { background: var(--f-bg); color: var(--f-main-dark); }

.time-table .time-ts { background: #f5f8fc; font-weight: bold; color: #333; }

.time-table .subject-check { font-size: 14px; }

/* 可教授年级×科目矩阵（v3.100） */
.gs-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 10px; }
.gs-line .gs-name { font-weight: bold; color: #333; margin-right: 2px; }

/* 辅导科目多选 */

.subject-checks { flex: 1; display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; }

.subject-check { font-size: 16px; color: #333; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }

.subject-check input { accent-color: var(--f-main); width: 18px; height: 18px; }

/* 窄下拉：按内容宽度（年级/城区等） */

.select-auto { flex: 0 0 auto !important; min-width: 180px; width: auto; }

/* 时间安排行 */

.schedule-row { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 16px; color: #555; }

.schedule-row .num-input { flex: 0 0 auto; width: 90px; text-align: center; }

/* 验证码 */

.captcha-row { flex: 1; display: flex; align-items: center; gap: 12px; }

.captcha-code { font-size: 22px; font-weight: bold; color: var(--f-main); letter-spacing: 4px; background: var(--f-bg); border: 1px dashed var(--f-main); border-radius: 4px; padding: 4px 14px; user-select: none; }

.captcha-input { flex: 0 0 auto !important; width: 130px; }

.disclaimer { font-size: 13px; color: #999; }

/* 提示框 */

.notice-box { padding: 14px 16px; border-radius: 6px; margin-bottom: 16px; }

.notice-box p { margin: 4px 0; }

.notice-box.ok { background: #f0f9eb; border: 1px solid #c9e7bd; }

.notice-box.ok h3 { color: #2e7d32; }

.notice-box.warn { background: #eaf3fc; border: 1px solid #c9dcf0; color: #2b5f8a; }

.notice-box.info { background: #fffbe6; border: 1px solid #f0e2a0; color: #7a5d00; }

.notice-box .btn { margin-top: 6px; }

/* 文章 */

.article-module { padding: 30px; }

.article-title { font-size: 22px; text-align: center; margin-bottom: 10px; }

.article-meta { text-align: center; color: #999; font-size: 13px; border-bottom: 1px solid #eee; padding-bottom: 14px; margin-bottom: 18px; }

.article-meta span { margin: 0 12px; }

.article-content { line-height: 1.9; font-size: 15px; }

.article-content p { margin: 10px 0; }

.article-content h3 { margin: 16px 0 8px; color: var(--f-main); }

.article-content ol { list-style: decimal; padding-left: 22px; }

.article-content li { margin: 4px 0; }

.article-list li { padding: 11px 4px; border-bottom: 1px dashed #f0f0f0; display: flex; justify-content: space-between; align-items: center; }

.article-list li:last-child { border-bottom: none; }

.article-list .date { color: #aaa; font-size: 13px; }

/* tab */

.tab-bar { display: flex; gap: 0; margin-bottom: 18px; }

.tab-bar a { padding: 9px 26px; background: #fff; border: 1px solid #ddd; color: #555; margin-right: -1px; }

.tab-bar a.active { background: var(--f-main); color: #fff; border-color: var(--f-main); }

/* CTA */

.cta-box { background: var(--f-bg); border: 1px solid #d6e5f4; border-radius: 6px; text-align: center; padding: 20px; margin-bottom: 20px; }

.cta-box p { margin-bottom: 10px; color: #555; }

/* 教员卡片 */

.teacher-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.teacher-card { display: flex; gap: 14px; border: 1px solid #eee; border-radius: 6px; padding: 14px; background: #fff; }

.teacher-card:hover { border-color: var(--f-main); box-shadow: 0 2px 8px rgba(212,50,47,.12); }

.teacher-card .t-info { flex: 1; min-width: 0; }

.teacher-card .t-name { font-size: 16px; font-weight: bold; }

.teacher-card .t-school { font-size: 13px; color: #888; font-weight: normal; }

.t-meta { color: #888; font-size: 13px; margin: 2px 0; }

.t-subject, .t-district { color: #555; font-size: 13px; }

.t-desc { color: #888; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 区域/科目 */

.links-module { padding: 15px 18px; }

.links-row { display: flex; margin: 8px 0; }

.links-label { color: var(--f-main); font-weight: bold; white-space: nowrap; padding-top: 2px; }

.links-tags { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.links-tags a { color: #666; font-size: 13px; }

.links-tags a:hover { color: var(--f-main); }

/* 页脚 */

.footer { background: #2b2b2b; color: #aaa; padding: 28px 0 20px; margin-top: 10px; text-align: center; font-size: 13px; }

.footer a { color: #ccc; margin: 0 10px; }

.footer a:hover { color: #fff; }

.footer p { margin: 8px 0; }

.muted { color: #999; }

@media (max-width: 900px) {

  .home-grid, .teacher-cards { grid-template-columns: 1fr; }

  .header-inner { flex-direction: column; gap: 10px; text-align: center; }

  .hero-inner { flex-direction: column; text-align: center; }

  .nav-list { flex-wrap: wrap; }

  .search-row { flex-direction: column; align-items: stretch; }

  .search-item select, .search-item input[type=text] { width: 100%; }

  .form-row { flex-direction: column; }

  .form-label { width: auto; text-align: left; padding: 0 0 4px; }

  .home3 { grid-template-columns: 1fr !important; }

  .home-main { grid-template-columns: 1fr !important; }

  .col-left, .col-right { display: none; }

  .c-req, .c-date { display: none; }

}

/* ============ 广告轮播 ============ */

.banner-wrap { position: relative; overflow: hidden; border-radius: 8px; margin: 18px 0 6px; background: #eee; }

.banner-track { display: flex; transition: transform .5s ease; }

.banner-slide { flex: 0 0 100%; max-width: 100%; }

.banner-slide img { width: 100%; height: 320px; object-fit: cover; display: block; }

.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 60px; border: none; background: rgba(0,0,0,.28); color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }

.banner-arrow:hover { background: rgba(0,0,0,.5); }

.banner-arrow.prev { left: 0; border-radius: 0 6px 6px 0; }

.banner-arrow.next { right: 0; border-radius: 6px 0 0 6px; }

.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; z-index: 5; }

.banner-dots .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.6); margin: 0 5px; cursor: pointer; }

.banner-dots .dot.on { background: var(--f-main); }

/* ============ 首页三分栏（三栏等高） ============ */

.home3 { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; gap: 18px; margin-top: 12px; align-items: stretch; }

.home-col { min-width: 0; display: flex; flex-direction: column; }

.home-col > .module { height: 100%; margin-bottom: 0; }

.col-mid { min-width: 0; }

.home-col .module { margin-bottom: 16px; }

.home-col .module:last-child { margin-bottom: 0; }

.col-left .module-title, .col-right .module-title { font-size: 15px; }

/* 中栏图片/文章（撑满中栏高度） */

.mid-block { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; height: 100%; display: flex; }

.mid-block a { display: flex; flex: 1; }

.mid-img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; flex: 1; }

.mid-article { min-height: 264px; }
/* 中栏文章列表大标题：高度与左栏标签（side-tabs）一致，40px */
.mid-article .module-title { height: 40px; line-height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 10px; box-sizing: border-box; margin-bottom: 12px; }
.mid-article .module-title .more { float: none; margin-left: auto; }

/* 主两栏（左=学员/教员列表，右=学习宝典等） */

.home-main { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; margin-top: 4px; }

.main-col { min-width: 0; }

.side-col { min-width: 0; }

/* 左栏 tab（文字式，不写死背景色；格子固定高度，文章多时内部滚动） */

.col-left .side-module { height: 320px; display: flex; flex-direction: column; }

.col-left .side-tabs { flex-shrink: 0; display: flex; border-bottom: 2px solid #d6e5f4; margin-bottom: 10px; }

.side-tabs li { flex: 1; text-align: center; padding: 8px 0; font-size: 14px; cursor: pointer; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; }

.side-tabs li:hover { color: var(--f-main); }

.side-tabs li.on { color: var(--f-main); font-weight: bold; border-bottom-color: var(--f-main); }

.side-pane { display: none; flex: 1; overflow-y: auto; min-height: 0; }

.side-pane.on { display: block; }

.side-list li { padding: 5px 2px; border-bottom: 1px dashed #f0f0f0; font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-list li a { color: #555; }

.side-list li a:hover { color: var(--f-main); }

.side-list li.muted { color: #bbb; }

.side-list li:last-child { border-bottom: none; }

/* 快捷入口（深底色、大字） */

.quick-module .quick-btn { display: block; text-align: center; background: var(--f-main-dark); border: 1px solid var(--f-main-dark); border-radius: 6px; padding: 11px 0; margin-bottom: 9px; font-size: 16px; color: #fff; }

.quick-module .quick-btn:hover { background: var(--f-main); border-color: var(--f-main); color: #fff; }

.quick-module .quick-btn.primary { background: var(--f-main-deep); border-color: var(--f-main-deep); font-weight: bold; }

.quick-module .quick-btn.primary:hover { background: var(--f-main-dark); color: #fff; }

.quick-module .quick-btn:last-child { margin-bottom: 0; }

/* 搜索模块（通栏，参考站样式） */

.search-module { background: var(--f-bg); border: 1px solid #d6e5f4; border-radius: 8px; padding: 12px 16px; margin: 14px 0 16px; }

.search-head { font-size: 16px; font-weight: bold; color: var(--f-main); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #d6e5f4; }

.search-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; }

.search-bar .sb-item { display: flex; align-items: center; gap: 6px; }

.search-bar .sb-item label { font-size: 13px; color: #2b5f8a; white-space: nowrap; }

.search-bar select { height: 34px; border: 1px solid #c9dcf0; border-radius: 5px; padding: 0 8px; font-size: 13px; background: #fff; min-width: 118px; color: #333; }

.search-bar .sb-check { font-size: 13px; color: #2b5f8a; display: flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }

.search-bar input[type=text] { height: 34px; border: 1px solid #c9dcf0; border-radius: 5px; padding: 0 10px; font-size: 13px; background: #fff; min-width: 170px; box-sizing: border-box; color: #333; }

.search-bar input[type=text]:focus { border-color: var(--f-main); outline: none; }

.search-bar .btn { height: 34px; padding: 0 26px; }

/* 信息表格（列表式展示，边框线 + 紧凑 + hover 浅蓝） */

.info-table { border: 1px solid #d9d9d9; border-radius: 4px; overflow: hidden; }

.info-row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #e5e5e5; background: #fff; font-size: 13px; }

.info-row:hover { background: #e8f4fd; }

.info-row.head { background: var(--f-bg2); font-weight: bold; color: #4a6b8a; border-bottom: 1px solid #d6e5f4; }

.info-row.head:hover { background: var(--f-bg2); }

.info-row .c-grade { flex: 0 0 56px; color: var(--f-main); font-weight: bold; }

.info-row .c-subject { flex: 0 0 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.info-row .c-addr { flex: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666; }

.info-row .c-req { flex: 1.6; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #888; }

.info-row .c-fee { flex: 0 0 62px; color: var(--f-main); font-weight: bold; }

.info-row .c-status { flex: 0 0 64px; white-space: nowrap; }

.info-row .c-name { flex: 0 0 84px; font-weight: bold; }

.info-row .c-school { flex: 0 0 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666; }

.info-row .c-desc { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #888; }

.info-row .c-date { flex: 0 0 84px; color: #aaa; font-size: 12px; }

.info-row .empty { color: #999; width: 100%; text-align: center; padding: 14px 0; }

.table-more { text-align: right; padding: 8px 4px 0; font-size: 13px; }

.table-more a { color: #999; }

.table-more a:hover { color: var(--f-main); }

/* ============ 学员详情页两栏 ============ */

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; align-items: start; }

.detail-main { min-width: 0; }

.detail-main .module { margin-bottom: 16px; }

.detail-side .module { margin-bottom: 16px; }

.notice-list { list-style: none; counter-reset: n; }

.notice-list li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px dashed #f0f0f0; font-size: 13px; color: #555; line-height: 1.7; }

.notice-list li:last-child { border-bottom: none; }

.notice-list .n-no { position: absolute; left: 0; top: 11px; width: 19px; height: 19px; border-radius: 50%; background: var(--f-main); color: #fff; font-size: 11px; text-align: center; line-height: 19px; }

.side-tel a { font-size: 20px; color: var(--f-main); font-weight: bold; }

@media (max-width: 900px) {

  .detail-grid { grid-template-columns: 1fr; }

}

/* 详情信息表格（紧凑版） */

.detail-module { padding: 18px; }

.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }

.detail-table th, .detail-table td { border: 1px solid #eef0f3; padding: 7px 10px; text-align: left; font-size: 13px; }

.detail-table th { background: #f7f9fc; width: 96px; color: #666; font-weight: normal; }

.detail-table td { color: #333; }

.contact-box { background: var(--f-bg); border: 1px solid #d6e5f4; border-radius: 6px; padding: 14px; }

/* 自我描述文本框 + 右下角字数统计（2026-09-09） */

.intro-wrap { position: relative; flex: 1 1 100%; min-width: 0; }

.intro-wrap textarea { width: 100%; box-sizing: border-box; }

.intro-count { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: #aaa; pointer-events: none; }

/* ===== v3.74 全国化：城市切换 ===== */
.city-btn-top { color: #333; margin-right: 8px; white-space: nowrap; }
.city-btn-top b { color: var(--f-main-dark); }
.city-btn-top .arr { font-size: 11px; color: #999; }
.topbar-sep { color: #ddd; margin-right: 8px; }
.city-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.city-panel { width: 480px; max-width: 92vw; max-height: 72vh; background: #fff; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.city-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 8px; font-size: 16px; color: #1a1a1a; }
.city-close { font-size: 22px; color: #999; cursor: pointer; line-height: 1; }
.city-search { margin: 0 18px 8px; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 14px; outline: none; width: auto; }
.city-list { overflow-y: auto; padding: 0 10px 14px; display: flex; flex-wrap: wrap; }
.city-item { width: 33.333%; box-sizing: border-box; padding: 8px 6px; font-size: 13px; color: #333; text-align: center; cursor: pointer; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-item:hover { background: #f0f5ff; }
.city-item.cur { color: var(--f-main-dark); font-weight: 600; }
.city-item i { font-style: normal; font-size: 11px; color: var(--f-main-dark); border: 1px solid #b8d0ee; border-radius: 3px; padding: 0 4px; margin-left: 2px; }
.city-empty { width: 100%; padding: 18px 0; text-align: center; font-size: 13px; color: #999; }
.city-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.city-now { color: var(--f-main-dark); font-size: 15px; }
.city-switch { color: var(--f-main-dark); border: 1px solid #b8d0ee; border-radius: 12px; padding: 1px 10px; font-size: 13px; }
.district-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0; }
.district-check { font-size: 13px; color: #333; cursor: pointer; }
.district-check input { margin-right: 3px; vertical-align: -2px; }

/* v3.78：PC 城市弹窗双列（左省右市）+ 热门城市 */
.city-hot { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; }
.city-hot-item { font-size: 13px; color: #333; border: 1px solid #e0e0e0; border-radius: 14px; padding: 3px 12px; cursor: pointer; background: #f7f9fb; }
.city-hot-item:hover { border-color: var(--f-main-dark); color: var(--f-main-dark); }
.city-hot-item.cur { border-color: var(--f-main-dark); color: var(--f-main-dark); background: #eef4ff; font-weight: 600; }
.city-two { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.city-prov { width: 130px; overflow-y: auto; border-right: 1px solid #eee; padding: 6px 0 10px; flex: 0 0 130px; box-sizing: border-box; }
.city-prov-title { font-size: 12px; color: #999; padding: 4px 14px 6px; }
.city-prov-item { font-size: 13px; color: #333; padding: 7px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.city-prov-item i { font-style: normal; font-size: 11px; color: #aaa; width: 14px; flex: 0 0 14px; }
.city-prov-item:hover { background: #f0f5ff; }
.city-prov-item.on { background: #eef4ff; color: var(--f-main-dark); font-weight: 600; }
.city-prov-item.on i { color: var(--f-main-dark); }
.city-citycol { flex: 1; min-width: 0; overflow-y: auto; padding: 6px 10px 14px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-content: flex-start; }
.city-city-title { font-size: 12px; color: #999; padding: 4px 6px 6px; width: 100%; flex-basis: 100%; }
.city-citycol .city-list { overflow-y: auto; padding: 0 10px 14px; display: flex; flex-wrap: wrap; align-content: flex-start; }
.city-item .city-tag { font-style: normal; font-size: 11px; color: #999; display: block; text-align: center; }

/* ============ 深色/浅色模式切换（v3.106，2026-09-14） ============
   切换入口：首页右上角 ☀/🌙 按钮 + 后台顶栏；localStorage('jj_theme') 持久化。
   说明：html[data-mode="dark"] 与 body[data-theme="区域主题色"] 相互独立、可叠加；
   深色仅改变明暗（背景/文字/边框），主色仍跟随主题色变量 --f-main。 */

/* --- 主题切换按钮（首页右上角，header-right 内） --- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 36px;
  background: #fff; border: 1px solid #d6e5f4; border-radius: 50%;
  color: #666; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.theme-toggle:hover { color: var(--f-main); border-color: var(--f-main); background: var(--f-bg); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
html[data-mode="dark"] .theme-toggle { background: #272b35; border-color: #3a4152; color: #e6e9ef; }
html[data-mode="dark"] .theme-toggle .ico-sun { display: block; }
html[data-mode="dark"] .theme-toggle .ico-moon { display: none; }

/* --- 平滑过渡：主题切换与导航 hover/选中不突兀 --- */
body { transition: background-color .2s ease, color .2s ease; }
.nav-list li a { transition: background-color .15s ease, color .15s ease; }

/* --- 深色模式核心变量 --- */
html[data-mode="dark"] { color-scheme: dark; }
html[data-mode="dark"] body { background: #14171f; color: #e6e9ef; }
html[data-mode="dark"] a { color: #e6e9ef; }
html[data-mode="dark"] a:hover { color: var(--f-main); }

/* 顶部信息条 */
html[data-mode="dark"] .topbar { background: #181c25; border-color: #2b303b; color: #9da4af; }

/* 头部 */
html[data-mode="dark"] .header { background: #1b1e28; border-color: var(--f-main); }
html[data-mode="dark"] .logo p, html[data-mode="dark"] .hotline-label { color: #9da4af; }

/* 按钮（白底描边型） */
html[data-mode="dark"] .btn { background: #272b35; border-color: var(--f-main); color: var(--f-main); }
html[data-mode="dark"] .btn:hover { background: #1b1e28; color: var(--f-main); }

/* 公告条 */
html[data-mode="dark"] .notice-bar { background: #1f2a3a; border-color: #2b303b; color: #e6e9ef; }
html[data-mode="dark"] .notice-icon { color: #e6e9ef; }

/* 模块 / 卡片 / 面板：白底 → 深卡片 */
html[data-mode="dark"] .module,
html[data-mode="dark"] .mid-block,
html[data-mode="dark"] .qr-box,
html[data-mode="dark"] .teacher-card,
html[data-mode="dark"] .city-panel { background: #1b1e28; border-color: #2b303b; color: #e6e9ef; }
html[data-mode="dark"] .module-title { background: #232838; border-color: #2b303b; color: #8aacf4; }
html[data-mode="dark"] .module-title .more { color: #9da4af; }
html[data-mode="dark"] .teacher-card:hover { border-color: var(--f-main); box-shadow: none; }

/* 列表分隔线 + 文字 */
html[data-mode="dark"] .list li,
html[data-mode="dark"] .teacher-list li,
html[data-mode="dark"] .article-list li,
html[data-mode="dark"] .notice-list li,
html[data-mode="dark"] .side-list li { border-color: #2b303b; }
html[data-mode="dark"] .teacher-list .t-name,
html[data-mode="dark"] .detail-head-info h3,
html[data-mode="dark"] .article-title { color: #f9fafb; }
html[data-mode="dark"] .teacher-list .t-line,
html[data-mode="dark"] .teacher-list .t-desc,
html[data-mode="dark"] .t-meta,
html[data-mode="dark"] .t-desc,
html[data-mode="dark"] .article-list .date,
html[data-mode="dark"] .table-more a,
html[data-mode="dark"] .empty,
html[data-mode="dark"] .muted { color: #9da4af; }

/* 搜索表单 */
html[data-mode="dark"] .search-form { background: #181c25; border-color: #2b303b; }
html[data-mode="dark"] .search-item select,
html[data-mode="dark"] .search-item input[type=text],
html[data-mode="dark"] .search-bar select,
html[data-mode="dark"] .search-bar input[type=text] { background: #272b35; border-color: #3a4152; color: #e6e9ef; }
html[data-mode="dark"] .search-item label,
html[data-mode="dark"] .search-bar .sb-item label { color: #9da4af; }
html[data-mode="dark"] .checkbox-item label { color: #e6e9ef; }

/* 页面头 */
html[data-mode="dark"] .page-head { background: #1b1e28; border-color: #2b303b; }
html[data-mode="dark"] .page-head p { color: #9da4af; }

/* 数据表格 */
html[data-mode="dark"] .data-table th,
html[data-mode="dark"] .data-table td { border-color: #2b303b; color: #e6e9ef; }
html[data-mode="dark"] .data-table th { background: #232838; color: #9da4af; }
html[data-mode="dark"] .data-table tr:hover td { background: #232838; }

/* 分页 */
html[data-mode="dark"] .pagination a { background: #272b35; border-color: #3a4152; color: #e6e9ef; }
html[data-mode="dark"] .pagination .page-info { color: #9da4af; }

/* 详情表格 */
html[data-mode="dark"] .detail-table th,
html[data-mode="dark"] .detail-table td { border-color: #2b303b; }
html[data-mode="dark"] .detail-table th { background: #232838; color: #9da4af; }
html[data-mode="dark"] .detail-table td { color: #e6e9ef; }

/* 联系框 / CTA / 搜索模块（浅蓝底 → 深蓝灰） */
html[data-mode="dark"] .contact-box,
html[data-mode="dark"] .cta-box,
html[data-mode="dark"] .search-module { background: #1f2a3a; border-color: #2b303b; }
html[data-mode="dark"] .cta-box p,
html[data-mode="dark"] .contact-tip { color: #9da4af; }
html[data-mode="dark"] .search-head { border-color: #2b303b; }

/* 表单（注册/请家教/登录） */
html[data-mode="dark"] .form-module,
html[data-mode="dark"] .reg-module { background: #1b1e28; border-color: #2b303b; }
html[data-mode="dark"] .form-label { background: #232838; color: #e6e9ef; }
html[data-mode="dark"] .form-row input[type=text],
html[data-mode="dark"] .form-row textarea,
html[data-mode="dark"] .form-row select { background: #272b35; border-color: #3a4152; color: #e6e9ef; }
html[data-mode="dark"] .form-row select option { background: #272b35; color: #e6e9ef; }
html[data-mode="dark"] .form-row input[type=text]:focus,
html[data-mode="dark"] .form-row textarea:focus { background: #2b313d; border-color: var(--f-main); }
html[data-mode="dark"] .field-hint,
html[data-mode="dark"] .reg-compact .form-label,
html[data-mode="dark"] .reg-compact .field-hint { color: #e6e9ef; }
html[data-mode="dark"] .inline-group,
html[data-mode="dark"] .schedule-row,
html[data-mode="dark"] .time-note-row .note-label { color: #e6e9ef; }

/* 科目/时间表 */
html[data-mode="dark"] .time-table th,
html[data-mode="dark"] .time-table td { border-color: #2b303b; }
html[data-mode="dark"] .time-table th { background: #232838; color: #8aacf4; }
html[data-mode="dark"] .time-table .time-ts { background: #232838; color: #e6e9ef; }
html[data-mode="dark"] .subject-check,
html[data-mode="dark"] .gs-line .gs-name,
html[data-mode="dark"] .district-check { color: #e6e9ef; }

/* tab */
html[data-mode="dark"] .tab-bar a { background: #272b35; border-color: #3a4152; color: #9da4af; }

/* 信息表格（首页学员/教员列表） */
html[data-mode="dark"] .info-table { border-color: #3a4152; }
html[data-mode="dark"] .info-row { background: #1b1e28; border-color: #2b303b; color: #e6e9ef; }
html[data-mode="dark"] .info-row:hover { background: #232838; }
html[data-mode="dark"] .info-row.head { background: #232838; color: #9da4af; border-color: #2b303b; }
html[data-mode="dark"] .info-row .c-addr,
html[data-mode="dark"] .info-row .c-req,
html[data-mode="dark"] .info-row .c-desc,
html[data-mode="dark"] .info-row .c-school,
html[data-mode="dark"] .info-row .c-date { color: #9da4af; }

/* 城市切换弹窗 */
html[data-mode="dark"] .city-panel-head { color: #e6e9ef; }
html[data-mode="dark"] .city-close { color: #9da4af; }
html[data-mode="dark"] .city-search { background: #272b35; border-color: #3a4152; color: #e6e9ef; }
html[data-mode="dark"] .city-item { color: #e6e9ef; }
html[data-mode="dark"] .city-item:hover,
html[data-mode="dark"] .city-prov-item:hover { background: #232838; }
html[data-mode="dark"] .city-prov { border-color: #2b303b; }
html[data-mode="dark"] .city-prov-item { color: #e6e9ef; }
html[data-mode="dark"] .city-prov-item.on { background: #232838; color: var(--f-main); }
html[data-mode="dark"] .city-hot-item { background: #272b35; border-color: #3a4152; color: #e6e9ef; }

/* 左侧 tab / 侧边列表 / 公告列表 */
html[data-mode="dark"] .side-tabs { border-color: #2b303b; }
html[data-mode="dark"] .side-tabs li { color: #9da4af; }
html[data-mode="dark"] .side-tabs li.on { color: var(--f-main); }
html[data-mode="dark"] .side-list li,
html[data-mode="dark"] .side-list li a,
html[data-mode="dark"] .notice-list li { color: #9da4af; }

/* 文章 */
html[data-mode="dark"] .article-meta { color: #9da4af; border-color: #2b303b; }
html[data-mode="dark"] .article-content { color: #e6e9ef; }

/* 链接模块 */
html[data-mode="dark"] .links-tags a { color: #9da4af; }

/* 横幅占位 / 轮播 */
html[data-mode="dark"] .banner-wrap { background: #181c25; }

/* 页脚保持深色（本身已是深底，微调文字） */
html[data-mode="dark"] .footer { background: #101318; }

/* 城市按钮 */
html[data-mode="dark"] .city-btn-top { color: #e6e9ef; }
html[data-mode="dark"] .topbar-sep { color: #3a4152; }


/* ============================================================
   v3.107 2026-09-14 用户要求：首页三个最新信息区块
   （上海家教网最新学员信息 / 最新大学生教员信息 / 最新在职和退休教师信息）
   列表【具体内容】字体颜色改成正黑 #000000。
   - 只作用于首页（.home-main 为首页专有容器），不影响教师库/学员库等其他页面；
   - .info-row.head 表头（自身 color:#4a6b8a）与 .list-tag 状态标签
     （自身 color:#fff）不受影响，保持原设计。
   ============================================================ */
.home-main .module .info-table .info-row { color: #000000; }
.home-main .module .info-table .info-row .c-name,
.home-main .module .info-table .info-row .c-school,
.home-main .module .info-table .info-row .c-desc,
.home-main .module .info-table .info-row .c-grade,
.home-main .module .info-table .info-row .c-subject,
.home-main .module .info-table .info-row .c-addr,
.home-main .module .info-table .info-row .c-req,
.home-main .module .info-table .info-row .c-fee,
.home-main .module .info-table .info-row .c-date,
.home-main .module .info-table .info-row .c-status { color: #000000; }
