/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f8f7f4;
  background-image: linear-gradient(180deg, #f8f7f4 0%, #f0ede8 50%, #ebe7e0 100%);
  background-attachment: fixed;
  color: #3d3929;
  min-height: 100vh;
}

/* ===== 四并列导航行 ===== */
.nav-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 16px;
}
.nav-item {
  flex: 1;
  max-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #e8e4dd;
  font-size: 13px;
  font-weight: 600;
  color: #4a4238;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  white-space: nowrap;
}
.nav-item:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
  background: #fafaf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}


/* ===== 首页容器 ===== */
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ===== 顶栏：logo 居中 + 登录 右上角 ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 0 8px;
  border-bottom: 1px solid #f0ebe0;
  margin-bottom: 12px;
}
.top-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-logo img {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.top-logo span {
  font-size: 16px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 1px;
}
.top-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  background: #1a1a2e;
  color: #fff !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.top-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-login-btn:hover {
  background: #2d2d44;
  box-shadow: 0 2px 8px rgba(26,26,46,0.2);
}

/* 保留旧 header 兼容（隐藏） */
.home-header { display: none; }
.header-logo,.header-title,.header-qr-wrap,.header-qr,.header-qr-wrap small { display: none; }


/* ===== 登录页 ===== */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 48px;
  width: 460px;
  max-width: 94%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-card h1 {
  text-align: center;
  color: #333;
  margin-bottom: 8px;
  font-size: 28px;
}

.login-card .subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 32px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus {
  border-color: #667eea;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-msg {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  min-height: 20px;
}

/* ===== 主布局 ===== */
.app-header {
  background: white;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .logo {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
}

.app-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.app-header .user-info .name {
  color: #555;
}

.btn-logout {
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px;
}

/* ===== 课程卡片 ===== */
.category-header { display: flex; align-items: center; gap: 16px; margin: 20px 0 16px; }
.category-header h2 { font-size: 24px; margin: 0; }
.cat-back { font-size: 14px; color: #667eea; text-decoration: none; padding: 6px 14px; border: 1px solid #667eea; border-radius: 8px; }
.cat-back:hover { background: #667eea; color: white; }

.category-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  gap: 12px;
  padding: 0 0 10px;
}
.cat-btn {
  flex: 0 0 calc(50% - 6px) !important;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding: 22px 14px 18px;
  border: none;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  min-height: 90px;
}
.cat-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  transition: height 0.3s ease;
}
.cat-chinese::before { background: linear-gradient(90deg, #f87171, #ef4444); }
.cat-math::before { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.cat-english::before { background: linear-gradient(90deg, #34d399, #10b981); }
.cat-major::before { background: linear-gradient(90deg, #c084fc, #8b5cf6); }
.cat-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04);
}
.cat-btn:hover::before { height: 6px; }
.cat-btn:active {
  transform: translateY(-2px) scale(0.98);
}
.cat-icon {
  font-size: 38px;
  line-height: 1;
}
.cat-name {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 2px;
}
.cat-sub {
  flex-basis: 100%;
  font-size: 12px;
  color: #a8a29e;
  letter-spacing: 0.5px;
  text-align: center;
}
.cat-btn .count {
  display: none;
}


/* ===== 首页额外内容区 ===== */
.home-extras {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 8px 0 18px;
}
.extra-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
}
.extra-num {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.extra-label {
  font-size: 11px;
  color: #a8a29e;
  margin-top: 4px;
  letter-spacing: 1px;
}

.home-quick-links {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.quick-link {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #e8e4dd;
  font-size: 14px;
  font-weight: 600;
  color: #57534e;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.quick-link:hover {
  border-color: #6366f1;
  color: #6366f1;
  box-shadow: 0 4px 16px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.quick-link .ql-icon {
  font-size: 18px;
}

@media (max-width: 640px) {
  .home-extras {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .extra-card {
    padding: 12px 6px;
  }
  .extra-num { font-size: 20px; }
  .extra-label { font-size: 10px; }
  .quick-link {
    min-width: 120px;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 12px;
  }
  .category-nav { gap: 10px; }
  .cat-btn { min-height: 90px; padding: 20px 10px 16px; border-radius: 16px; }
  .cat-btn::before { border-radius: 16px 16px 0 0; }
  .cat-name { font-size: 16px; }
  .cat-icon { font-size: 30px; }
}

.chapter-nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 16px 0;
}
.chapter-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.chapter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  color: #444;
  transition: all 0.2s;
  font-weight: 500;
  border: none;
  width: 100%;
  box-sizing: border-box;
}
.chapter-btn:hover { background: #f8f9ff; }
.chapter-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.ch-num { font-size: 12px; opacity: 0.6; font-weight: 400; width: 24px; }
.chapter-btn.active .ch-num { opacity: 0.8; }
.ch-name { flex: 1; }
.ch-arrow { font-size: 12px; opacity: 0.5; margin-left: 8px; }
.chapter-btn .count {
  display: inline-block;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
}
.chapter-btn.active .count { background: rgba(255,255,255,0.2); }
.chapter-courses { padding: 8px 20px 16px; border-top: 1px solid #f0f0f0; }
.lesson-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.lesson-card:last-child { margin-bottom: 0; }
.lesson-card:hover { background: #f5f6ff; }
.lesson-play {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #667eea22, #764ba222);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #667eea;
  flex-shrink: 0;
}
.lesson-info { flex: 1; min-width: 0; }
.lesson-info h4 { margin: 0; font-size: 14px; font-weight: 500; }
.lesson-meta { font-size: 12px; color: #999; }
.lesson-trial { font-size: 12px; color: #f39c12; white-space: nowrap; }
.empty-lessons { padding: 20px; text-align: center; color: #999; font-size: 14px; }

/* 返回链接 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #667eea;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 12px;
  text-decoration: none;
}
.back-link:hover { color: #764ba2; }

/* 主页标题 */
.main-title {
  display: block;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 3px;
  margin: 0 0 6px;
  padding: 0;
}
/* 首页标题 */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: #999;
}

.about-page-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  line-height: 1.8;
  font-size: 15px;
  color: #444;
}
.about-page-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}
.about-editor-area { display: block; }

.about-sections {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.section-tabs, .section-edit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}
.section-tab, .section-edit-tab {
  padding: 8px 18px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.section-tab.active, .section-edit-tab.active {
  background: #667eea;
  color: white;
}
.section-tab:hover, .section-edit-tab:hover {
  background: #667eea;
  color: white;
}
.section-content {
  line-height: 1.8;
  font-size: 15px;
  color: #444;
}
.section-text img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.teacher-card {
  background: white;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.teacher-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #667eea;
}
.teacher-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.teacher-title {
  font-size: 14px;
  color: #667eea;
  font-weight: 500;
  margin: 4px 0 8px;
  padding: 2px 12px;
  background: #eef0ff;
  display: inline-block;
  border-radius: 20px;
}
.teacher-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  text-align: left;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
  padding-top: 8px;
}

/* 轮播 CSS */
.carousel-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  background: #e0e0e0;
}
.carousel-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-video.active {
  opacity: 1;
}
.carousel-slide {
  position: relative;
  width: 100%;
  padding-bottom: 150%; /* 足够高显示竖屏照片 */
}
.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-img.active {
  opacity: 1;
}
.carousel-dots {
  text-align: center;
  padding: 10px 0;
  background: rgba(0,0,0,0.05);
}
.carousel-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dots span.active {
  background: #667eea;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 22px;
  background: #fff;
  color: #555;
  border: 1.5px solid #e5e0d8;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.about-btn:hover {
  color: #333;
  border-color: #ccc;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.login-btn {
  background: #1a1a2e !important;
  color: #fff !important;
  border-color: #1a1a2e !important;
}
.login-btn:hover {
  background: #2d2d44 !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(26,26,46,0.25) !important;
}

/* 章节列表 */
.chapter-list { margin: 16px 0; }
.chapter-item { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,0.06); margin-bottom: 8px; }
.chapter-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: #444;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.chapter-title:hover { background: #f8f9ff; }
.chapter-title.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.chapter-count { font-size: 12px; color: #999; background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 8px; margin-left: auto; }
.chapter-title.active .chapter-count { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
.chapter-arrow { font-size: 11px; color: #999; }
.chapter-title.active .chapter-arrow { color: white; }
.chapter-courses { padding: 8px 20px 16px; border-top: 1px solid #f0f0f0; }
.chapter-course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: #444;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.chapter-course-item:last-child { margin-bottom: 0; }
.chapter-course-item:hover { background: #f5f6ff; }
.chapter-course-item .num { font-size: 16px; flex-shrink: 0; }
.chapter-course-item .title { flex: 1; font-size: 14px; }
.chapter-course-item .size { font-size: 12px; color: #999; flex-shrink: 0; }
.empty-chapter { padding: 20px; text-align: center; color: #999; font-size: 14px; }

/* 试看提示 */
.trial-notice {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
}
.trial-notice p { margin: 4px 0; font-size: 14px; opacity: 0.9; }
.trial-notice .btn-primary { display:inline-block;padding:10px 32px;text-decoration:none;color:white;background:rgba(255,255,255,0.2);border-radius:8px;margin-top:12px;font-weight:600; }

/* ===== 学校简介区 ===== */
.home-intro {
  text-align: center;
  padding: 20px 16px 16px;
  margin-top: 8px;
  border-top: 1px solid #f0ebe0;
}
.home-intro h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  letter-spacing: 1px;
}
.home-intro p {
  max-width: 560px;
  margin: 0 auto 18px;
  font-size: 13px;
  color: #8b8070;
  line-height: 1.9;
}
.intro-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.feature-item {
  text-align: center;
  padding: 8px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  border: 1px solid #ece6da;
  min-width: 70px;
}
.feature-item strong {
  display: block;
  font-size: 20px;
  color: #1a1a2e;
  font-weight: 800;
}
.feature-item span {
  font-size: 11px;
  color: #a09480;
  letter-spacing: 0.5px;
}

/* ===== 底部：咨询热线 ===== */
.home-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 32px;
  border-top: 1px solid #f0ebe0;
  margin-top: 8px;
}
.bottom-contact {
  text-align: center;
}
.contact-phone {
  font-size: 14px;
  color: #6b6058;
}
.contact-phone a {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 700;
}

/* ===== 右下角二维码（不起眼） ===== */
.corner-qr {
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0.35;
  z-index: 10;
  transition: opacity 0.3s;
}
.corner-qr:hover {
  opacity: 0.7;
}
.corner-qr img {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid #ddd;
  object-fit: cover;
}

/* ===== 信息子页面（志愿填报 / 录取查询） ===== */
.info-page {
  max-width: 620px;
  margin: 0 auto;
}
.info-page h2 {
  font-size: 20px;
  color: #1a1a2e;
  margin: 0 0 16px;
  text-align: center;
}
.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.info-card h3 {
  font-size: 15px;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.info-card p, .info-card li {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}
.info-card ol, .info-card ul {
  padding-left: 20px;
  margin: 0;
}
.luqu-form {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 400px;
  margin: 0 auto;
}
.luqu-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
  color: #fff;
  transition: all 0.2s;
}
.luqu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,26,46,0.3);
}

/* ===== 旧底部区域（隐藏） ===== */
.home-footer { display: none; }
.footer-actions,.footer-intro,.footer-contact,.footer-logo { display: none; }
/* 旧 about-text (保留备用) */
.about-text {
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}
.about-text .highlight {
  font-weight: 700;
  font-size: 16px;
  color: #4f46e5;
  margin-top: 12px;
}

/* footer-logo 已移除 */




/* ===== 播放页面 ===== */
.player-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.player-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.player-wrapper video {
  width: 100%;
  display: block;
  max-height: 70vh;
}

.player-info {
  margin-top: 20px;
}

.player-info h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.player-info .desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 试看提示 ===== */
.trial-overlay {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.trial-overlay h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.trial-overlay p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.trial-overlay .btn-login-now {
  display: inline-block;
  padding: 10px 32px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.trial-overlay .btn-login-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
}

/* ===== 首页标题 ===== */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: #999;
}

/* 非首页时内容的容器 */
.content-single {
  display: block;
}

/* 分类页章节列表居中 */
.chapter-list-centered {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 章节内课程列表居中 */
.chapter-courses-centered {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 课程网格居中 */
.category-nav-centered {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式 */
@media (max-width: 640px) {
  .login-card {
    width: 90%;
    padding: 24px;
  }

  .top-bar { padding: 10px 0 6px; position: relative; justify-content: center; }
  .top-logo span { font-size: 14px; }
  .top-login-btn { padding: 5px 12px; font-size: 12px; }
  .main-title { font-size: 20px; letter-spacing: 2px; }

  .nav-row { gap: 4px; padding: 4px 0 12px; }
  .nav-item { padding: 8px 4px; font-size: 11px; border-radius: 10px; max-width: none; }

  .category-nav { gap: 10px; }
  .cat-btn {
    flex: 0 0 calc(50% - 5px) !important;
    min-width: 0;
    padding: 18px 8px 14px;
    border-radius: 14px;
    gap: 4px;
    min-height: 80px;
  }
  .cat-icon { font-size: 28px; }
  .cat-name { font-size: 15px; }
  .cat-sub { font-size: 10px; }

  .home-intro { padding: 14px 10px 10px; }
  .home-intro h2 { font-size: 15px; }
  .intro-features { gap: 8px; }
  .feature-item { padding: 6px 10px; min-width: 60px; }
  .feature-item strong { font-size: 16px; }
  .feature-item span { font-size: 10px; }

  .home-bottom { padding: 14px 10px 24px; }
  .corner-qr { bottom: 12px; right: 10px; }
  .corner-qr img { width: 36px; height: 36px; }

  .home-container { padding: 0 12px 24px; }
}