/* ==========================================================================
   「趣味汉语」汉语培训中心官方网站 - 统一主题样式
   品牌风格：青蓝（cyan-blue）+ 金色点缀 + 白色/米白背景
   设计语言：教学风（书法、印章、传统纹样、雅致排版）
             + 趣味风（圆角卡片、柔和阴影、俏皮插画、生动 hover）
   主色 #2E8B9E | 深色 #1E6E7E | 金色点缀 #C9A227
   ========================================================================== */

:root {
  --bg: #fbf9f4;              /* 米白页面背景 */
  --bg-white: #ffffff;        /* 卡片/内容区背景 */
  --primary: #2e8b9e;         /* 青蓝主色 */
  --primary-dark: #1e6e7e;    /* 深青蓝 */
  --primary-deep: #175a68;    /* 更深青蓝（页脚等） */
  --primary-light: #a9d8de;   /* 浅青蓝 */
  --primary-bg: #eaf6f7;      /* 青蓝浅背景 */
  --gold: #c9a227;            /* 金色点缀 */
  --gold-light: #e8c96a;      /* 浅金 */
  --gold-bg: #faf3dd;         /* 金色浅背景 */
  --seal: #b03a2e;            /* 印章红 */
  --text-main: #2b3a3a;       /* 深青灰正文 */
  --text-sub: #5c6f70;        /* 次要文字 */
  --text-light: #8aa0a0;      /* 弱化文字 */
  --border: #dce9e9;          /* 边框 */
  --shadow: 0 4px 16px rgba(46, 139, 158, 0.10);
  --shadow-hover: 0 12px 30px rgba(30, 110, 126, 0.18);
  --radius: 16px;
  --radius-lg: 22px;
  --font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   导航栏
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(46, 139, 158, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.brand-logo {
  height: 42px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(46, 139, 158, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  background: var(--primary-bg);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 139, 158, 0.3);
}

.nav-cta:hover {
  background: var(--primary-deep) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 导航栏用户区域（登录/注册/用户信息） */
.nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.nav-user .nav-auth {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.nav-user .nav-auth:hover {
  color: var(--primary-dark);
  background: var(--primary-bg);
}

.nav-user .nav-register {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 139, 158, 0.3);
}

.nav-user .nav-register:hover {
  background: var(--primary-deep) !important;
  color: #fff !important;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-user-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-user-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-bg);
  padding: 1px 8px;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Hero 大图区
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 162, 39, 0.10) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(46, 139, 158, 0.12) 0, transparent 45%),
    linear-gradient(135deg, #eaf6f7 0%, #f6fbfb 45%, #faf3dd 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(46, 139, 158, 0.10);
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
}

.hero::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -80px;
  background: rgba(201, 162, 39, 0.12);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 18px;
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.6;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-sub);
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-wechat {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 12px 18px;
  background: rgba(46, 139, 158, 0.08);
  border: 1px dashed var(--primary);
  border-radius: 14px;
  max-width: 560px;
}

.hero-wechat .wechat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.hero-wechat .wechat-code {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  font-family: "Courier New", monospace;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 139, 158, 0.35);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 110, 126, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-dark);
}

.hero-stats .label {
  font-size: 13px;
  color: var(--text-sub);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30, 110, 126, 0.22);
}

.hero-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card .mini-course {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.hero-card .mini-course:last-child {
  border-bottom: none;
}

.mini-course .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.mini-course .name {
  font-weight: 600;
  font-size: 15px;
}

.mini-course .meta {
  font-size: 13px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   通用区块
   -------------------------------------------------------------------------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* 印章式标签：教学风书法印章 */
.section-head .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--seal);
  padding: 5px 16px;
  border-radius: 6px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  box-shadow: 0 3px 8px rgba(176, 58, 46, 0.25);
  position: relative;
}

/* 印章边框质感 */
.section-head .tag::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  pointer-events: none;
}

.section-head h2 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

/* 标题下金色书法装饰线 */
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-head p {
  color: var(--text-sub);
  font-size: 16px;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   课程亮点
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部金色小装饰条 */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-bg), #fff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform 0.3s ease;
}

.feature-card:hover .icon {
  transform: scale(1.1) rotate(-6deg);
}

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

.feature-card p {
  font-size: 14px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   课程卡片
   -------------------------------------------------------------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.course-card .course-head {
  padding: 24px 24px 16px;
  background: linear-gradient(135deg, var(--primary-bg), #f6fbfb);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.course-card .course-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.course-card h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.course-card .course-level {
  font-size: 13px;
  color: var(--text-sub);
}

.course-card .course-body {
  padding: 18px 24px;
  flex: 1;
}

.course-card .course-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.course-card .course-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-main);
}

.course-card .course-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-card .course-meta .meta-icon {
  color: var(--primary);
}

.course-card .course-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfcf9;
}

.course-card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}

.course-card .price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sub);
}

.course-card .btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   师资简介
   -------------------------------------------------------------------------- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.teacher-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.teacher-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold-light);
  box-shadow: 0 4px 12px rgba(46, 139, 158, 0.2);
}

.teacher-card h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.teacher-card .title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* --------------------------------------------------------------------------
   学员评价
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.testimonial-card .quote-mark {
  font-size: 40px;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.testimonial-card .content {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card .author .name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-card .author .role {
  font-size: 13px;
  color: var(--text-sub);
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   关于我们
   -------------------------------------------------------------------------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro .text h2 {
  font-size: 30px;
  color: var(--primary-dark);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.about-intro .text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.about-intro .text p {
  color: var(--text-sub);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-intro .text p strong {
  color: var(--primary-dark);
}

.about-visual {
  background: linear-gradient(135deg, var(--primary-bg), #faf3dd);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-visual .big-icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.about-visual h3 {
  color: var(--primary-dark);
  font-size: 22px;
  margin-bottom: 8px;
}

.about-visual p {
  color: var(--text-sub);
  font-size: 14px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.value-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.value-card:hover .icon {
  transform: scale(1.15) rotate(-6deg);
}

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

.value-card p {
  color: var(--text-sub);
  font-size: 14px;
}

/* 发展历程 */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-light), var(--gold-light));
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-light);
}

.timeline-item .year {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-sub);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   联系表单
   -------------------------------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-info::after {
  content: "趣";
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 180px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  font-family: "KaiTi", "STKaiti", serif;
}

.contact-info h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.contact-info > p {
  opacity: 0.9;
  font-size: 15px;
  margin-bottom: 28px;
}

.contact-info .info-item.wechat-item {
  background: rgba(46, 139, 158, 0.08);
  border: 1px dashed var(--primary);
  border-radius: 14px;
  padding: 14px 16px;
}

.contact-info .wechat-number {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-info .wechat-code {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  font-family: "Courier New", monospace;
  background: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(46, 139, 158, 0.12);
}

.contact-info .info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.contact-info .info-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info .info-item .label {
  font-size: 13px;
  opacity: 0.85;
}

.contact-info .info-item .value {
  font-size: 16px;
  font-weight: 600;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

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

.form-group label .required {
  color: #e05b5b;
}

.form-group .form-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.5;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  background: #fdfcf9;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 158, 0.15);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-tip {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 12px;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #2e9e6b;
}

.toast.error {
  background: #d9534f;
}

/* --------------------------------------------------------------------------
   登录 / 注册页
   -------------------------------------------------------------------------- */
.auth-section {
  min-height: calc(100vh - 68px - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(46, 139, 158, 0.08) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201, 162, 39, 0.10) 0, transparent 40%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-hover);
}

.auth-card .auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 14px rgba(46, 139, 158, 0.2);
  border: 2px solid var(--gold-light);
}

.auth-card .auth-head h1 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.auth-card .auth-head p {
  font-size: 14px;
  color: var(--text-sub);
}

/* 角色选择 */
.role-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.role-option {
  position: relative;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fdfcf9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.role-option label .role-icon {
  font-size: 22px;
}

.role-option input:checked + label {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(46, 139, 158, 0.15);
}

.auth-card .btn-block {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 20px;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.auth-switch a:hover {
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.footer {
  background: linear-gradient(135deg, var(--primary-deep), #123f49);
  color: #dcecfb;
  padding: 56px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer .brand .brand-logo {
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 14px;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   课程页筛选
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46, 139, 158, 0.3);
}

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

  .courses-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .about-intro,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 32px;
  }

  .features-grid,
  .teachers-grid,
  .courses-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   角色工作台（admin / teacher / student）
   ========================================================================== */
.dash-section {
  min-height: calc(100vh - 68px - 220px);
  padding: 40px 0 64px;
  background:
    radial-gradient(circle at 12% 8%, rgba(46, 139, 158, 0.08) 0, transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(201, 162, 39, 0.10) 0, transparent 40%),
    var(--bg);
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.dash-head .dash-title h1 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.dash-head .dash-title p {
  color: var(--text-sub);
  font-size: 14px;
}

.dash-head .dash-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(46, 139, 158, 0.3);
}

.dash-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-card .dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary-bg), #f6fbfb);
  border-bottom: 1px solid var(--border);
}

.dash-card .dash-card-head h2 {
  font-size: 18px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-card .dash-card-head h2 .dash-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.dash-card .dash-card-head .dash-sub {
  font-size: 13px;
  color: var(--text-sub);
}

.dash-card .dash-card-body {
  padding: 24px;
}

.dash-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.dash-form-grid .form-group {
  margin-bottom: 0;
}

.dash-form-grid .btn {
  height: 48px;
  white-space: nowrap;
}

.dash-form-grid select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  background: #fdfcf9;
  transition: all 0.25s ease;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.dash-form-grid select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 158, 0.15);
  background-color: #fff;
}

.dash-table-wrap {
  overflow-x: auto;
}

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

.dash-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

.dash-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: top;
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-table tbody tr:hover {
  background: #f7fbfb;
}

.dash-table .cell-sub {
  font-size: 12px;
  color: var(--text-sub);
}

.dash-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.dash-badge.ok {
  background: #e3f5ec;
  color: #1e7a4d;
}

.dash-badge.pending {
  background: var(--gold-bg);
  color: #8a6d12;
}

.dash-badge.info {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.dash-badge.role-admin {
  background: #fdeaea;
  color: #b03a2e;
}

.dash-badge.role-teacher {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.dash-badge.role-student {
  background: var(--gold-bg);
  color: #8a6d12;
}

.dash-empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  padding: 28px 0;
}

.dash-empty .dash-empty-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
}

.dash-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dash-toolbar select {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #fdfcf9;
}

.dash-toolbar select:focus {
  outline: none;
  border-color: var(--primary);
}

.dash-toolbar .dash-toolbar-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* 学生行展开评价 */
.student-row {
  cursor: pointer;
}

.student-row .expand-hint {
  font-size: 12px;
  color: var(--primary);
  white-space: nowrap;
}

.student-eval-panel {
  background: #f7fbfb;
  border-top: 1px dashed var(--border);
  padding: 20px 24px;
}

.student-eval-panel .eval-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.student-eval-panel .eval-form .form-group {
  margin-bottom: 0;
}

.student-eval-panel .eval-form .form-group textarea {
  min-height: 90px;
}

.student-eval-panel .eval-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.student-eval-panel .eval-existing {
  margin-top: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
}

.student-eval-panel .eval-existing .eval-label {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.student-eval-panel .eval-existing p {
  color: var(--text-sub);
  margin-bottom: 6px;
}

/* 课程表 */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.schedule-day {
  background: #fdfcf9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  min-height: 120px;
}

.schedule-day .day-name {
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
}

.schedule-day .day-name.today {
  color: var(--gold);
}

.schedule-item {
  background: var(--primary-bg);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.schedule-item .s-time {
  font-weight: 700;
  color: var(--primary-dark);
}

.schedule-item .s-name {
  color: var(--text-main);
  margin-top: 2px;
}

.schedule-item .s-teacher {
  color: var(--text-sub);
  font-size: 12px;
  margin-top: 2px;
}

/* 作业卡片 */
.homework-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.homework-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  background: #fdfcf9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.homework-item .hw-main h3 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.homework-item .hw-main p {
  font-size: 13px;
  color: var(--text-sub);
}

.homework-item .hw-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.homework-item .hw-side .hw-deadline {
  font-size: 13px;
  color: var(--text-sub);
}

.homework-item .hw-side .hw-deadline strong {
  color: var(--seal);
}

/* 进度时间线 */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.progress-item .p-no {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.progress-item .p-body {
  flex: 1;
  background: #f7fbfb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.progress-item .p-body .p-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.progress-item .p-body .p-content {
  font-size: 14px;
  color: var(--text-main);
}

@media (max-width: 992px) {
  .schedule-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .student-eval-panel .eval-form {
    grid-template-columns: 1fr;
  }

  .dash-form-grid {
    grid-template-columns: 1fr;
  }

  .dash-card .dash-card-body {
    padding: 16px;
  }
}

/* ============ 助教 / 账号管理 / 弹窗 扩展样式 ============ */

.dash-badge.role-assistant {
  background: #eef3fb;
  color: #3a5ba0;
}

.dash-badge.disabled {
  background: #f0f0f0;
  color: #8a8a8a;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
}

.btn-danger {
  background: #fdeaea;
  color: #b03a2e;
  border: 1px solid #f3c1bd;
}

.btn-danger:hover {
  background: #b03a2e;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.dash-toolbar input[type="file"] {
  font-size: 13px;
  color: var(--text-sub);
  max-width: 220px;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(20, 40, 45, 0.25);
}

.modal-box h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 助教作业列表 */
.submission-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  background: #fdfcf9;
  margin-bottom: 14px;
}

.submission-item .sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.submission-item .sub-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.submission-item .sub-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.submission-item .sub-content {
  font-size: 14px;
  color: var(--text-main);
  background: #f7fbfb;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 0;
}

.submission-item .sub-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.submission-item .grade-box {
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.submission-item .grade-box .grade-form {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: end;
}

.submission-item .grade-box .grade-form input,
.submission-item .grade-box .grade-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

.submission-item .grade-result {
  font-size: 13px;
  color: var(--text-sub);
  background: #eef7f2;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}

.submission-item .grade-result strong {
  color: #1e7a4d;
}

@media (max-width: 640px) {
  .submission-item .grade-box .grade-form {
    grid-template-columns: 1fr;
  }
}

/* ============ 工作台侧边栏布局（角色菜单隔离） ============ */
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.dash-sidebar {
  background: #fff;
  border: 1px solid var(--border, #e3eef5);
  border-radius: 12px;
  padding: 12px;
  position: sticky;
  top: 90px;
  box-shadow: 0 2px 10px rgba(46, 139, 158, 0.06);
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--primary-dark, #1e6e7e);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dash-menu-item:hover {
  background: rgba(46, 139, 158, 0.08);
}

.dash-menu-item.active {
  background: var(--primary, #2e8b9e);
  color: #fff;
}

.dash-menu-icon {
  font-size: 16px;
  line-height: 1;
}

.dash-content {
  min-width: 0;
}

@media (max-width: 860px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: static;
    top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .dash-menu-item {
    padding: 8px 12px;
  }
}

/* ==========================================================================
   教课进度：课程次数进度格 + 月度课程日历（teacher 工作台）
   风格与全站青蓝 + 金色一致，复用 --primary / --gold / --border 等主题变量
   ========================================================================== */
.pg-overview {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pg-class-pick {
  max-width: 320px;
}

.pg-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.pg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.pg-section-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--primary-dark);
  border-left: 4px solid var(--gold);
  padding-left: 10px;
  line-height: 1.3;
}

.pg-stat {
  font-size: 13px;
  color: var(--primary);
  background: var(--gold-bg);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
}

.pg-sub {
  font-size: 13px;
  color: #7a8b96;
}

/* ---------- 课程次数进度格 ---------- */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.pg-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.pg-cell.pending {
  background: #fff;
  border: 1.5px dashed var(--border);
  color: #9fb4bd;
}

.pg-cell.done {
  background: linear-gradient(135deg, #2f9e6f, #2c8a60);
  border: 1.5px solid #2f9e6f;
  color: #fff;
}

.pg-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(30, 110, 126, 0.18);
}

.pg-no {
  font-weight: 600;
  font-size: 12px;
}

.pg-cell.done .pg-no {
  color: #fff;
}

.pg-tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 1px 8px;
}

/* ---------- 课程日历 ---------- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cal-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-head-row .cal-head-cell {
  background: var(--gold-bg);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.cal-head-row .cal-head-cell:last-child {
  border-right: none;
}

.cal-body .cal-cell {
  min-height: 82px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-body .cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-body .cal-cell.empty {
  background: #fbfdfd;
}

.cal-body .cal-cell.plain {
  background: #fff;
  color: #b3c2ca;
}

.cal-cell.plain .cal-day {
  color: #b3c2ca;
}

.cal-day {
  font-weight: 700;
  font-size: 13px;
  color: #64757f;
}

.cal-cell.course {
  background: #f2f9fa;
  border-top: 3px solid var(--primary);
  cursor: default;
}

.cal-cell.course.done {
  background: linear-gradient(135deg, #eaf7f0, #dcf1e6);
  border-top: 3px solid #2f9e6f;
}

.cal-course {
  font-weight: 600;
  color: var(--primary-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.cal-time {
  color: #6b7f89;
  font-size: 11px;
}

.cal-no {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
}

.cal-done-tag {
  align-self: flex-start;
  font-size: 10px;
  background: #2f9e6f;
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
}

.cal-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 10px;
  color: #9fb4bd;
  background: #fbfdfd;
}

/* ---------- 进度面板分隔 ---------- */
.pg-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

/* ==========================================================================
   考勤记录（teacher 工作台）与班级课程数量徽标（admin）
   风格与全站青蓝 + 金色一致
   ========================================================================== */
.class-total {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.att-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.att-toolbar .form-group {
  min-width: 180px;
}

.att-toolbar .btn {
  margin-bottom: 1px;
}

.att-summary {
  font-size: 13px;
  color: var(--primary-dark);
  background: #f2f9fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.att-loading {
  color: #7a8b96;
}

.att-btns {
  white-space: nowrap;
}

.att-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #64757f;
  border-radius: 6px;
  padding: 5px 12px;
  margin-right: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.att-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(30, 110, 126, 0.15);
}

/* 出勤：绿色 */
.att-btn.present.active {
  background: #2f9e6f;
  border-color: #2f9e6f;
  color: #fff;
}

/* 缺勤：红色 */
.att-btn.absent.active {
  background: #d9534f;
  border-color: #d9534f;
  color: #fff;
}

/* 迟到：金色 */
.att-btn.late.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* 请假：灰色 */
.att-btn.leave.active {
  background: #8a9ba6;
  border-color: #8a9ba6;
  color: #fff;
}

.att-note {
  width: 100%;
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
}

.att-note:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 158, 0.15);
}

/* ==================== 工作台概览（压缩包整合） ==================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(46, 139, 158, 0.08), rgba(201, 162, 39, 0.06));
  border: 1px solid rgba(46, 139, 158, 0.18);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(46, 139, 158, 0.14);
}

.stat-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 4px;
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-light);
}

/* ==================== 签到与课堂记录（压缩包整合） ==================== */
.dash-toolbar input[type="month"] {
  width: 150px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
}

.dash-toolbar input[type="month"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 158, 0.15);
}

.signin-student {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.signin-no {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== 月度统计（压缩包整合） ==================== */
.monthly-summary {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-light);
}

.monthly-summary strong {
  color: var(--primary);
}

.monthly-teacher {
  background: rgba(46, 139, 158, 0.04);
  border: 1px solid rgba(46, 139, 158, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.monthly-teacher-head {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--text);
}

.monthly-teacher-head strong {
  color: var(--primary);
}

.monthly-teacher-head .money {
  color: var(--accent);
  font-size: 17px;
}

.monthly-teacher .dash-table {
  margin-bottom: 0;
}

/* ==================== 通用（压缩包整合） ==================== */
.modal-box-wide {
  width: 680px;
  max-width: 94vw;
}

