/* ======================================================
   fizzABC — Custom Styles (overrides Bootstrap 5.3.3)
   Source of truth: styledemo/css/style.css
   Colors: orange=#FF9F43, blue=#54A0FF, yellow=#FECA57,
   green=#1DD1A1, pink=#FF6B9D, cream=#F9F9F7, mint=#F0F7F4
   ====================================================== */

/* 本地无 Quicksand / Noto Sans SC 时回落系统字体（不引入 Google Fonts CDN） */
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ── Color vars + Bootstrap theme bridge ── */
:root {
  --kid-orange: #FF9F43;
  --kid-orange-dark: #F08C2E;
  --kid-orange-border: #FFCC80;
  --kid-blue: #54A0FF;
  --kid-yellow: #FECA57;
  --kid-green: #1DD1A1;
  --kid-green-dark: #10AC84;
  --kid-pink: #FF6B9D;
  --kid-cream: #F9F9F7;
  --kid-mint: #F0F7F4;
  --kid-purple: #A29BFE;
  --kid-red: #FF6B6B;
  --kid-text: #374151;
  --kid-muted: #6B7280;
  --kid-line: #E5E7EB;
  --border-radius-tile: 40px;
  --border-radius-card: 24px;
  --border-radius-btn: 999px;

  --bs-primary: #FF9F43;
  --bs-primary-rgb: 255, 159, 67;
  --bs-secondary: #1DD1A1;
  --bs-secondary-rgb: 29, 209, 161;
  --bs-body-bg: #F9F9F7;
  --bs-body-color: #374151;
  --bs-link-color: #2E86DE;
  --bs-link-hover-color: #F08C2E;
  --bs-border-radius: 16px;
  --bs-border-radius-pill: 999px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Quicksand', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Open Sans', sans-serif;
  background-color: var(--kid-cream);
  color: var(--kid-text);
  padding-top: 64px; /* fixed #main-navbar */
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 800;
}

/* ── Typography helpers ── */
.font-quicksand { font-family: 'Quicksand', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.fw-black { font-weight: 800; }
.fw-bold-700 { font-weight: 700; }

/* ── Custom color utilities ── */
.bg-kid-orange   { background-color: var(--kid-orange) !important; }
.bg-kid-blue     { background-color: var(--kid-blue) !important; }
.bg-kid-yellow   { background-color: var(--kid-yellow) !important; }
.bg-kid-green    { background-color: var(--kid-green) !important; }
.bg-kid-pink     { background-color: var(--kid-pink) !important; }
.bg-kid-cream    { background-color: var(--kid-cream) !important; }
.bg-kid-mint     { background-color: var(--kid-mint) !important; }
.bg-kid-purple   { background-color: var(--kid-purple) !important; }
.text-kid-orange { color: var(--kid-orange) !important; }
.text-kid-blue   { color: var(--kid-blue) !important; }
.text-kid-green  { color: var(--kid-green) !important; }
.border-kid-orange { border-color: #ffbe70 !important; }
.border-kid-blue   { border-color: #90c1ff !important; }
.border-kid-green  { border-color: #6ee7c7 !important; }
.border-kid-yellow { border-color: #fedd7e !important; }
.border-kid-pink   { border-color: #ff9abe !important; }

/* ── Tile / rounded card ── */
.rounded-tile    { border-radius: var(--border-radius-tile); }
.rounded-card    { border-radius: var(--border-radius-card); }
.rounded-btn     { border-radius: var(--border-radius-btn); }

/* ── 3D button effect ── */
.btn-3d {
  box-shadow: 2px 2px 0 #ddd5cf;
  transition: box-shadow 0.08s ease, transform 0.08s ease;
}
.btn-3d:hover {
  box-shadow: 3px 3px 0 #ddd5cf;
  transform: translate(-1px, -1px);
}
.btn-3d:active {
  box-shadow: 0 0 0 #ddd5cf;
  transform: translate(2px, 2px);
}

/* ── Card hover lift ── */
.card-lift {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card-lift:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* ── Animations ── */
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50%       { transform: rotate(3deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes confettiPop {
  0%   { opacity: 0; transform: scale(0) rotate(-20deg); }
  70%  { opacity: 1; transform: scale(1.15) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes liquidFill {
  from { width: 0%; }
}

.float-bob      { animation: floatBob 3s ease-in-out infinite; }
.float-bob-slow { animation: floatBob 4.5s ease-in-out infinite; }
.star-twinkle   { animation: twinkle 1.8s ease-in-out infinite; }
.wiggle         { animation: wiggle 1.2s ease-in-out infinite; }
.anim-fade-up   { animation: fadeUp 0.6s ease both; }
.anim-scale-in  { animation: scaleIn 0.55s cubic-bezier(0.34,1.56,0.64,1) both; }
.anim-slide-left { animation: slideInLeft 0.6s ease both; }
.confetti-pop   { animation: confettiPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.progress-liquid {
  background: linear-gradient(90deg, #FF9F43, #FECA57);
  border-radius: 999px;
  animation: liquidFill 1.2s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Navbar ── */
#main-navbar {
  background: rgba(249, 249, 247, 0.92);
  border-bottom: 2px solid #ffedd5;
  transition: background 0.3s, border-color 0.3s;
  min-height: 64px;
  height: auto;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
#main-navbar.scrolled {
  background: #F9F9F7 !important;
  border-bottom: 2px solid #ffedd5;
}
#main-navbar .navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
#main-navbar .navbar-brand {
  font-family: 'Quicksand', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  flex-shrink: 0;
}
#main-navbar .navbar-brand img {
  max-height: 36px;
  width: auto;
}
.nav-pill {
  background: rgba(255,255,255,0.85);
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 6px;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  max-width: none;
  min-width: 0;
}
.nav-pill .nav-link,
.nav-pill .nav-more-toggle {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: transparent;
  line-height: 1.2;
}
.nav-pill .nav-more-toggle::after {
  margin-left: 0.25em;
}
.nav-pill .nav-link.active,
.nav-pill .nav-link:hover,
.nav-pill .nav-more-toggle:hover,
.nav-pill .nav-more-toggle.show {
  background: var(--kid-orange);
  color: #fff;
}
/* lg~xl 隐藏图标，给文字腾宽度 */
@media (max-width: 1399.98px) {
  .nav-pill .nav-link > i,
  .nav-pill .nav-more-toggle > i {
    display: none;
  }
}
.nav-more-menu {
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 200px;
}
.navbar-tools .btn,
.navbar-tools .dropdown-toggle {
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #4b5563;
  white-space: nowrap;
}
.navbar-tools .dropdown-menu {
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
@media (max-width: 1199.98px) {
  .navbar-tool-label {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
  }
}
.mobile-nav-panel {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 24px;
  padding: 16px;
  margin-top: 12px;
  max-height: calc(100vh - 80px);
  overflow: auto;
}

/* Badges/tags */
.badge-orange { background: #fff3e0; color: #c05700; border: 1px solid #ffcc80; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; }
.badge-sky    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; }
.badge-green  { background: #dcfce7; color: #166534; border: 1px solid #a7f3d0; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; }
.badge-yellow { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; }
.badge-pink   { background: #fce7f3; color: #9d174d; border: 1px solid #f9a8d4; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; }

/* ── Buttons ── */
.btn {
  font-weight: 700;
  border-radius: var(--border-radius-btn);
}
.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }

.btn-orange,
.btn-primary {
  background: var(--kid-orange);
  border: 2px solid var(--kid-orange-border);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
  padding: 10px 24px;
}
.btn-orange:hover,
.btn-orange:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--kid-orange-dark);
  border-color: var(--kid-orange-border);
  color: #fff;
}
.btn-secondary {
  background: var(--kid-green);
  border: 2px solid #6ee7c7;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--kid-green-dark);
  border-color: #6ee7c7;
  color: #fff;
}
.btn-outline-primary {
  color: var(--kid-orange-dark);
  border: 2px solid var(--kid-orange);
  border-radius: 999px;
  font-weight: 800;
}
.btn-outline-primary:hover {
  background: var(--kid-orange);
  border-color: var(--kid-orange);
  color: #fff;
}
.btn-outline-gray {
  background: #fff;
  border: 2px solid #e5e7eb;
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  padding: 10px 24px;
}
.btn-outline-gray:hover { background: #f9fafb; color: #111; }

/* ── Form inputs ── */
.form-control, .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.875rem;
  background: #f9fafb;
  transition: border-color 0.15s, background 0.15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--kid-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,159,67,0.15);
}
.form-check-input:checked {
  background-color: var(--kid-orange);
  border-color: var(--kid-orange);
}

/* ── Footer ── */
footer.site-footer,
.site-footer {
  background: var(--kid-mint);
  border-top: 2px solid #e5e7eb;
  color: var(--kid-text);
}
.site-footer a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--kid-orange-dark);
}
.site-footer .footer-heading {
  font-weight: 800;
  margin-bottom: 1rem;
}
.site-footer .footer-link {
  display: block;
  line-height: 2;
}
.copyright-bar {
  background: #E3EFE9;
  color: var(--kid-muted);
  font-size: 0.875rem;
}
.copyright-bar a { color: var(--kid-muted); }

/* ── Hero / home building blocks ── */
.hero-section { padding-top: 24px; padding-bottom: 48px; background: #F9F9F7; }
.bento-main { border-radius: 40px; min-height: 320px; position: relative; overflow: hidden; }
.bento-card { border-radius: 40px; position: relative; overflow: hidden; }
.section-block { padding: 64px 0; }
/* 首页：Hero 与紧随其后的 About 间距（介于整屏空隙与过近之间） */
.hero-section + .section-block { padding-top: 48px; }

/* ── 营销内页横幅 / 文章 / FAQ / 价格 / 教材 ── */
.page-hero {
  background: linear-gradient(135deg, #FF9F43, #FF6B9D, #A29BFE);
  padding: 36px 16px 40px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 768px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.55); }
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a,
.page-hero .breadcrumb-item.active {
  color: rgba(255,255,255,.9) !important;
  font-size: 0.8rem;
  font-weight: 600;
}
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.55); }
.page-hero-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 0;
}
.page-hero-desc {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 12px auto 0;
  max-width: 520px;
}

.article-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.article-card {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: var(--border-radius-card);
  padding: 28px 24px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--kid-text);
}
.article-card h1, .article-card h2, .article-card h3, .article-card h4 {
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-panel {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: var(--border-radius-tile);
  padding: 28px;
}
.contact-panel .form-floating > .form-control,
.contact-panel .form-floating > .form-control:focus {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}
.contact-panel .form-floating > .form-control:focus {
  border-color: var(--kid-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,159,67,0.15);
}
.contact-info-tile {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: var(--border-radius-card);
  padding: 20px;
  text-align: center;
  height: 100%;
}
.contact-info-tile .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3e0;
  color: var(--kid-orange);
  margin-bottom: 12px;
}
.contact-map {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: 2px solid #f3f4f6;
}
.contact-map iframe { width: 100%; max-width: 100%; border: 0; border-radius: inherit; }

.faq-card {
  border: 2px solid #f3f4f6;
  border-left: 5px solid var(--kid-orange);
  background: #fff;
  padding: 20px 22px;
  margin-bottom: 12px;
  border-radius: var(--border-radius-card);
}
.faq-question {
  font-weight: 800;
  color: var(--kid-text);
  margin-bottom: 6px;
}
.faq-answer {
  color: var(--kid-muted);
  font-weight: 600;
  line-height: 1.7;
}

.recharge-option {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 32px;
  padding: 24px;
  margin-bottom: 0;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  height: 100%;
}
.recharge-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  border-color: var(--kid-orange);
}
.recharge-option.featured,
.recharge-option:nth-child(3n+2) {
  /* no-op placeholder kept for future featured flag */
}
.recharge-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--kid-orange);
}
.recharge-description { font-size: 0.95rem; color: var(--kid-muted); margin-top: 8px; }
.pattern-bg { background-image: none; }

.publisher-card {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: var(--border-radius-card);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.publisher-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--kid-orange-dark);
}
.book-list { list-style: none; padding: 0; margin: 0; }
.book-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.12s, border-color 0.12s;
}
.book-item:hover {
  background: #fff8f0;
  border-color: #ffedd5;
}
.book-price { color: var(--kid-muted); font-size: 0.875rem; }

/* ── Auth（login / signup，对标 styledemo/auth.html） ── */
body.auth-body {
  background: linear-gradient(135deg, #fff8f0, #fffbeb, #fdf2f8);
}
.auth-page {
  padding: 40px 16px 64px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.auth-wrap {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.auth-wrap-wide { max-width: 560px; }
.auth-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--kid-orange);
  border: 2px solid var(--kid-orange-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #ddd5cf;
}
.auth-card {
  border-radius: 32px;
  border: 2px solid #f3f4f6;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
@media (min-width: 768px) {
  .auth-card { padding: 36px 32px; }
}
.auth-card .tab-switcher .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #9ca3af;
}
.auth-card .tab-switcher .tab-btn.active {
  color: #fff;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
}
.auth-input-with-icon {
  padding-left: 2.5rem !important;
}
.auth-input-with-eye {
  padding-right: 2.5rem !important;
}
.auth-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9ca3af;
  padding: 0;
  line-height: 1;
  z-index: 2;
}
.auth-input-group .input-group-text {
  border: 2px solid #e5e7eb;
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: #f9fafb;
  font-weight: 700;
  color: #6b7280;
}
.auth-input-group .form-control {
  border-radius: 0 16px 16px 0;
}
.auth-perk {
  background: #fff8f0;
  border: 2px solid #fed7aa;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff3e0;
  color: #c05700;
  border: 1px solid #ffcc80;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.feature-tile,
.course-card,
.teacher-card,
.pricing-card,
.testimonial-card {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: var(--border-radius-tile);
}

/* ── Course card ── */
.course-card { overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.course-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.course-card .card-img-top { height: 192px; object-fit: cover; object-position: top; }

/* ── Progress bar ── */
.progress-bar-custom {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}
.progress-bar-custom .fill {
  height: 100%;
  border-radius: 999px;
  background: var(--kid-orange);
  transition: width 0.6s ease;
}

/* ── Tabs ── */
.tab-switcher {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}
.tab-switcher .tab-btn {
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.tab-switcher .tab-btn.active {
  background: var(--kid-orange);
  color: #fff;
}

/* ── Sidebar ── */
.dashboard-sidebar {
  width: 240px;
  background: #fff;
  border-right: 2px solid #f3f4f6;
  flex-shrink: 0;
}
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.sidebar-menu-item:hover { background: #f9fafb; }
.sidebar-menu-item.active { background: var(--kid-orange); border-color: #ffcc80; color: #fff; }
.sidebar-menu-item.active-blue { background: var(--kid-blue); border-color: #90c1ff; color: #fff; }
.sidebar-menu-item.active-green { background: var(--kid-green); border-color: #6ee7c7; color: #fff; }

/* ── Table ── */
.table-custom thead th,
.table-panel thead th {
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  padding: 12px 16px;
  border-bottom: 2px solid #f3f4f6;
  white-space: nowrap;
}
.table-custom tbody td,
.table-panel tbody td {
  padding: 12px 16px;
  font-size: 0.875rem;
  vertical-align: middle;
  border-bottom: 1px solid #f9fafb;
}
.table-custom tbody tr:hover,
.table-panel tbody tr:hover { background: #f9fafb; }
.table-panel {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.item-title,
.block-title,
.table-panel .block-title,
.table-panel .item-title {
  font-weight: 800;
  font-family: 'Quicksand', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ── Form demo（section-card） ── */
.section-card {
  background: #fff;
  border-radius: 28px;
  border: 2px solid #f3f4f6;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: #fff8f0;
  border: 2px solid #fed7aa;
  color: var(--kid-orange);
}
.field-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}
.radio-opt,
.check-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.12s;
  white-space: nowrap;
}
.radio-opt input,
.check-opt input {
  accent-color: var(--kid-orange);
  cursor: pointer;
  margin: 0;
}
.radio-opt:has(input:checked),
.check-opt:has(input:checked) {
  border-color: var(--kid-orange);
  background: #fff8f0;
}
.signup-form-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
}
.dash-main .form-control,
.dash-main .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  font-weight: 600;
  background: #f9fafb;
}
.dash-main .form-control:focus,
.dash-main .form-select:focus {
  border-color: var(--kid-orange);
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 159, 67, 0.15);
}
.dash-main .input-group-text {
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  color: #6b7280;
}
.dash-main .input-group .form-control {
  border-left-width: 0;
}
.dash-main .input-group .form-control:focus {
  border-left-width: 2px;
}
.dash-cal-wrap {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
/* 日历表头 sticky 时需实底，避免纵向滚动文字与标题重叠 */
.dash-cal-wrap thead th {
  background: #fff8f0;
  color: #9a3412;
}
.dash-cal-wrap tbody th {
  background: #f8fafc;
  color: #374151;
}
.dash-cal-wrap .sticky-left-top {
  background: #fff8f0;
  color: #9a3412;
}
.dash-cal-wrap:not(.opentime-desktop) table {
  border-collapse: separate;
  border-spacing: 4px;
}
.dash-cal-wrap:not(.opentime-desktop) td,
.dash-cal-wrap:not(.opentime-desktop) th {
  border-radius: 8px;
}

/* 桌面 / 移动端布局切换（预约日历、开放时间等） */
.display-mobile,
.opentime-mobile {
  display: none;
}
.display-desktop {
  display: block;
}
.opentime-desktop {
  display: block;
  width: 100%;
}
@media (max-width: 768px) {
  .display-desktop,
  .opentime-desktop,
  .container-desktop {
    display: none !important;
  }
  .display-mobile,
  .opentime-mobile {
    display: block !important;
  }
}
@media (min-width: 769px) {
  .display-desktop {
    display: block !important;
  }
  .opentime-desktop {
    display: block !important;
  }
  .display-mobile,
  .opentime-mobile {
    display: none !important;
  }
}

/* open_time / teacher_signup 桌面时间表（对齐旧版网格） */
.opentime-desktop .table-responsive {
  overflow: auto;
  max-height: 1000px;
  cursor: grab;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
}
.opentime-desktop .table-responsive:active,
.opentime-desktop .table-responsive.active {
  cursor: grabbing;
}
.opentime-desktop table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  width: 150%;
  min-width: 900px;
  table-layout: fixed !important;
  user-select: none;
  margin: 0;
}
.opentime-desktop th,
.opentime-desktop td {
  border: 1px solid #ccc !important;
  border-radius: 0 !important;
  padding: 8px;
  text-align: center;
  word-wrap: break-word;
  white-space: normal;
  font-size: 0.8rem;
  font-weight: 600;
}
.opentime-desktop th {
  background-color: #f2f2f2;
  position: sticky;
  top: 0;
  z-index: 2;
}
.opentime-desktop .date-col-1 { background-color: #f9fff9; }
.opentime-desktop .date-col-2 { background-color: #ffffe6; }
.opentime-desktop .date-col-3 { background-color: #e6ffff; }
.opentime-desktop .date-col-4 { background-color: #ffe6e6; }
.opentime-desktop .date-col-5 { background-color: #fafafa; }
.opentime-desktop .date-col-6 { background-color: #fff2e6; }
.opentime-desktop .date-col-7 { background-color: #f9f9f9; }

/* open_time / teacher_signup 时间格子选中态 */
td[data-time],
span.time-slot {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
td.selected,
span.selected,
span.time-slot.selected {
  background-color: var(--kid-orange) !important;
  border-color: #f08c2e;
  color: #fff;
}
.time-slot {
  flex: 1 1 25%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  padding: 8px;
  text-align: center;
  margin: 2px;
  border-radius: 8px;
}
.date-row {
  display: flex;
  flex-wrap: wrap;
}
.opentime-mobile .date-col-1,
.opentime-mobile .date-col-2,
.opentime-mobile .date-col-3,
.opentime-mobile .date-col-4,
.opentime-mobile .date-col-5,
.opentime-mobile .date-col-6,
.opentime-mobile .date-col-7 {
  padding: 4px 0;
}

/* ── Calendar ── */
.cal-slot {
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.12s;
  display: flex; align-items: center; justify-content: center;
}
.cal-slot:hover { border-color: var(--kid-orange); background: #fff8f0; }
.cal-slot.selected { background: var(--kid-orange); border-color: #f08c2e; color: #fff; }
.cal-slot.booked  { background: #f3f4f6; border-color: #e5e7eb; color: #d1d5db; cursor: not-allowed; }

/* ── Pricing card ── */
.pricing-card { border-radius: 32px; padding: 28px; transition: box-shadow 0.15s, transform 0.15s; }
.pricing-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.1); transform: translateY(-4px); }
.pricing-card.featured { border: 2px solid var(--kid-orange); background: #fff8f0; transform: scale(1.02); }

/* ── Chat messages ── */
.chat-msg-teacher { background: #f3f4f6; border-radius: 0 16px 16px 16px; }
.chat-msg-student  { background: #0d9488; color: #fff; border-radius: 16px 0 16px 16px; }

/* ── Scrollbar thin ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Spinner / back-to-top（壳层保留） ── */
#spinner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}
#spinner:not(.show) { display: none !important; }
#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 99;
}

/* ── Membership dashboard（对标 styledemo/membership.html） ── */
body.membership-body,
body.dash-shell {
  background: var(--kid-cream);
  padding-top: 0;
  overflow-x: hidden;
}
body.dash-shell #spinner { z-index: 200; }
.dash-header {
  height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}
.dash-sidebar {
  width: 240px;
  background: #fff;
  border-right: 2px solid #f3f4f6;
  position: fixed;
  top: 56px;
  bottom: 0;
  overflow-y: auto;
  flex-shrink: 0;
  transition: transform 0.3s;
  z-index: 90;
  display: flex;
  flex-direction: column;
}
.dash-main {
  margin-left: 240px;
  margin-top: 56px;
  padding: 20px;
  padding-bottom: 80px;
  min-height: calc(100vh - 56px);
}
.dash-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #f3f4f6;
  z-index: 100;
  height: 64px;
}
.dash-bottom-nav .dash-bottom-link,
.dash-bottom-nav .dash-bottom-more {
  background: #fff;
  gap: 2px;
  padding: 6px 2px;
}
.dash-bottom-nav i { font-size: 1.25rem; color: #9ca3af; }
.dash-bottom-nav span {
  font-size: 0.625rem;
  font-weight: 700;
  color: #9ca3af;
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-group {
  margin-bottom: 6px;
}
.sidebar-group-heading {
  padding: 8px 12px 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}
.sidebar-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.sidebar-group-toggle:hover {
  background: #f9fafb;
  color: #6b7280;
}
.sidebar-group-chevron {
  font-size: 1rem;
  transition: transform 0.2s;
}
.sidebar-group.is-open .sidebar-group-chevron {
  transform: rotate(180deg);
}
.sidebar-group.is-collapsible:not(.is-open) .sidebar-group-body {
  display: none;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  margin-bottom: 2px;
}
.sidebar-item > i {
  width: 1.25rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1;
}
.sidebar-item:hover { background: #f9fafb; color: #374151; }
.sidebar-item.active { color: #fff; }
.sidebar-item.active-orange { background: #FF9F43; border-color: #fbbf24; color: #fff; }
.sidebar-item.active-blue { background: #54A0FF; border-color: #90c1ff; color: #fff; }
.sidebar-item.active-green { background: #1DD1A1; border-color: #6ee7c7; color: #fff; }
.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 89;
}
.dash-overlay.show { display: block; }
.dash-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.dash-lang-btn::after { margin-left: 4px; }
.dash-lang-btn:hover,
.dash-lang-btn:focus {
  background: rgba(255,255,255,0.3);
  color: #fff;
}
@media (max-width: 768px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0,0,0,0.15); }
  .dash-main { margin-left: 0; }
  .dash-bottom-nav { display: flex; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .dash-sidebar { width: 64px; }
  .dash-main { margin-left: 64px; }
  .sidebar-label,
  .role-badge,
  .brand-label,
  .sidebar-group-heading,
  .sidebar-group-toggle { display: none; }
  .sidebar-group.is-collapsible:not(.is-open) .sidebar-group-body { display: block; }
  .sidebar-item { justify-content: center; padding: 12px 8px; }
}
.dash-wrap { max-width: 1100px; }
.dash-page-title { font-size: 1.25rem; }
.dash-card {
  border-radius: 24px;
  border: 2px solid #f3f4f6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.dash-section-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.dash-role-badge {
  background: #fff8f0;
  border: 2px solid #fed7aa;
  color: var(--kid-orange);
}
.dash-role-student .dash-role-badge,
.dash-role-basic .dash-role-badge {
  background: #fff8f0;
  border-color: #fed7aa;
  color: var(--kid-orange);
}
.dash-role-teacher .dash-role-badge {
  background: #e0f2fe;
  border-color: #90c1ff;
  color: var(--kid-blue);
}
.dash-role-admin .dash-role-badge {
  background: #f0fdf4;
  border-color: #6ee7c7;
  color: var(--kid-green);
}
.dash-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid #f3f4f6;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 2px 2px 0 #eee;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.dash-tile:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #ddd5cf;
  border-color: #fed7aa;
  color: inherit;
}
.dash-tile:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.dash-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.dash-tile-label {
  line-height: 1.25;
  text-align: left;
}
.dash-tile-profile .dash-tile-icon { background: #e8eaf6; color: #3f51b5; }
.dash-tile-teachers .dash-tile-icon { background: #e0f2f1; color: #009688; }
.dash-tile-students .dash-tile-icon { background: #fbe9e7; color: #ff5722; }
.dash-tile-users .dash-tile-icon { background: #ede7f6; color: #673ab7; }
.dash-tile-scheduled .dash-tile-icon { background: #e8f5e9; color: #4caf50; }
.dash-tile-history .dash-tile-icon { background: #efebe9; color: #795548; }
.dash-tile-payment .dash-tile-icon { background: #ffebee; color: #f44336; }
.dash-tile-billing .dash-tile-icon { background: #eceff1; color: #607d8b; }
.dash-tile-availability .dash-tile-icon { background: #e0f7fa; color: #00bcd4; }
.dash-tile-expertise .dash-tile-icon { background: #f1f8e9; color: #8bc34a; }
.dash-tile-recharge .dash-tile-icon { background: #fff3e0; color: #ff9800; }
.dash-tile-book .dash-tile-icon { background: #f3e5f5; color: #9c27b0; }
.dash-tile-teacher-apply .dash-tile-icon { background: #e8eaf6; color: #303f9f; }
.dash-tile-learn-now .dash-tile-icon { background: #fff3e0; color: #ff6f00; }
.dash-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border: 2px solid #fed7aa;
}
.dash-profile-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
}
.dash-profile-list li:last-child { border-bottom: 0; }
.dash-perk-orange {
  background: #fff8f0;
  border: 2px solid #fed7aa;
}
.dash-perk-blue {
  background: #e0f2fe;
  border: 2px solid #90c1ff;
}
.timezone-select {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 600;
  background: #fff;
  padding: 4px 8px;
}
/* 日历页：时区与月份选择框边框一致 */
.dash-cal-wrap #monthSelector,
.dash-cal-wrap .timezone-select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 600;
  background: #fff;
  box-shadow: none;
}
.dash-cal-wrap #monthSelector:focus,
.dash-cal-wrap .timezone-select:focus {
  border-color: #999;
  outline: none;
  box-shadow: none;
}

/* 薄兼容：旧课表页内联按钮仍可能用 .btn-icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #f3f4f6;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 #eee;
}
.btn-icon i { width: 16px; text-align: center; }
.btn-icon:hover { border-color: #fed7aa; }
.btn-icon:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-icon.btn-edit { color: #2196F3; background: #E3F2FD; border-color: #BBDEFB; }
.btn-icon.btn-cancel { color: #F44336; background: #FFEBEE; border-color: #FFCDD2; }
.btn-icon.btn-start { color: #4CAF50; background: #E8F5E9; border-color: #C8E6C9; }
.btn-icon.btn-view { color: #673AB7; background: #EDE7F6; border-color: #D1C4E9; }

.btn-bracket {
  display: inline-block;
  position: relative;
  padding: 0 8px;
  margin: 0 6px;
  color: #333;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.btn-bracket::before,
.btn-bracket::after {
  content: "";
  position: absolute;
  top: 0;
  color: currentColor;
}
.btn-bracket::before { content: "["; left: 0; }
.btn-bracket::after { content: "]"; right: 0; }
.btn-bracket:hover { color: var(--hover-color, var(--kid-orange)); }
.btn-edit { color: #2196F3; --hover-color: #1976D2; }
.btn-cancel { color: #F44336; --hover-color: #D32F2F; }
.btn-start { color: #4CAF50; --hover-color: #388E3C; }
.btn-view { color: #673AB7; --hover-color: #512DA8; }
.btn-back { color: var(--kid-orange); --hover-color: var(--kid-orange-dark); }
.table-panel a:has(.btn-bracket) { text-decoration: none; }
.section-card a:has(.btn-bracket) { text-decoration: none; }

/* ── Classroom / join wait (batch 5) ── */
.cls-card {
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.cls-card:hover {
  border-color: #6ee7c7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* viewclass — lesson-detail-teacher */
.lesson-detail-aside { top: 80px; }
.lesson-sidebar { flex-shrink: 0; width: 100%; }
@media (min-width: 1280px) {
  .lesson-sidebar { width: 320px; }
}
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: .875rem;
}
.info-row + .info-row { border-top: 1px solid #f3f4f6; }
.info-label { color: #6b7280; font-weight: 600; }
.info-value { font-weight: 700; color: #1f2937; }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800;
}
.status-upcoming { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.status-ongoing  { background: #dcfce7; color: #166534; border: 1px solid #a7f3d0; }
.status-completed{ background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.status-cancelled{ background: #fff0f0; color: #dc2626; border: 1px solid #fecaca; }
.custom-textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid #e5e7eb; border-radius: 12px;
  background: #f9fafb; font-size: .875rem; color: #374151;
  resize: vertical; transition: all .12s;
}
.custom-textarea:focus {
  outline: none; border-color: #FF9F43; background: #fff;
}
.upload-zone {
  border: 2px dashed #e5e7eb; border-radius: 12px;
  padding: 24px; text-align: center; cursor: pointer;
  transition: all .12s; background: #f9fafb;
}
.upload-zone:hover { border-color: #FF9F43; background: #fff8f0; }
.upload-zone i { color: #9ca3af; font-size: 1.5rem; }
.upload-zone p { font-size: .75rem; color: #9ca3af; margin: 0; }
.screenshot-thumb {
  position: relative; width: 100%; aspect-ratio: 16/10;
  border-radius: 10px; overflow: hidden; border: 2px solid #e5e7eb;
  background: #f9fafb;
}
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: #f9fafb; border: 2px solid #e5e7eb;
}
.video-card i { color: #FF9F43; font-size: 1.25rem; }
.video-card .video-name { font-size: .875rem; font-weight: 700; color: #374151; }
.btn-action {
  padding: 12px 20px; border-radius: 12px; font-weight: 800; font-size: .875rem;
  border: none; cursor: pointer; transition: all .12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
}
.btn-primary-action { background: #FF9F43; color: #fff; }
.btn-primary-action:hover { background: #f97316; color: #fff; }
.btn-secondary-action { background: #f3f4f6; color: #374151; border: 2px solid #e5e7eb; }
.btn-secondary-action:hover { background: #e5e7eb; color: #374151; }
/* 返回键：带左箭头的 secondary 统一项目橙，不影响「修改/审核」等其它 secondary */
.btn-secondary-action:has(.ri-arrow-left-line) {
  background: #fff;
  color: var(--kid-orange-dark);
  border: 2px solid var(--kid-orange);
}
.btn-secondary-action:has(.ri-arrow-left-line):hover {
  background: var(--kid-orange);
  color: #fff;
  border-color: var(--kid-orange);
}
.btn-danger-action { background: #fff0f0; color: #dc2626; border: 2px solid #fecaca; }
.btn-danger-action:hover { background: #fecaca; color: #dc2626; }
.btn-success-action { background: #dcfce7; color: #166534; border: 2px solid #a7f3d0; }
.btn-success-action:hover { background: #a7f3d0; color: #166534; }
.lesson-detail-layout .section-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.lesson-detail-layout .section-header i { color: #9ca3af; font-size: 1rem; }
.lesson-detail-layout .section-header span { font-weight: 900; font-size: .875rem; color: #374151; }
.readonly-field {
  padding: 12px 16px; border-radius: 12px;
  background: #f9fafb; border: 2px solid #f3f4f6;
  font-size: .875rem; font-weight: 700; color: #374151;
}
.money-display { font-size: 1.25rem; font-weight: 900; color: #FF9F43; }
.person-mini { display: flex; align-items: center; gap: 12px; }
.person-mini img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fed7aa;
}
.prev-lesson-card {
  background: linear-gradient(135deg, #fff8f0 0%, #fef3c7 100%);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 20px;
}
.prev-lesson-card .prev-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.prev-lesson-card .prev-header i { color: #FF9F43; font-size: 1.25rem; }
.prev-lesson-card .prev-header span { font-weight: 900; font-size: 1rem; color: #92400e; }

/* ── Teacher profile（teacher_profile.php） ── */
.tp-header .tp-avatar {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  object-fit: cover;
  object-position: top;
  border: 4px solid #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  background: #f3f4f6;
}
.tp-flag-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tp-fav-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.12s;
}
.tp-fav-btn:hover { border-color: #fecaca; color: #ef4444; background: #fef2f2; }
.tp-fav-btn.is-on { border-color: #fecaca; color: #ef4444; background: #fef2f2; }
.tp-video {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #f3f4f6;
  background: #111827;
}
.tp-video video {
  display: block;
  width: 100%;
  max-height: 240px;
}
.tp-video-wide video { max-height: 420px; }
.tp-bio {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.65;
  text-align: justify;
}
.tp-notes {
  padding-top: 12px;
  border-top: 2px solid #f3f4f6;
}
.tp-schedule .table-responsive {
  overflow: auto;
  cursor: grab;
  max-height: 800px;
}
.tp-schedule .table-responsive:active { cursor: grabbing; }
.tp-schedule table {
  border-collapse: separate;
  border-spacing: 4px;
  user-select: none;
  table-layout: fixed !important;
  width: 100%;
  min-width: 720px;
}
.tp-schedule th,
.tp-schedule td {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fff;
}
.tp-schedule thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #6b7280;
}
.tp-schedule tbody th {
  position: sticky;
  left: 0;
  background: #f8fafc;
  z-index: 1;
  color: #374151;
}
.tp-schedule .sticky-left-top {
  left: 0;
  top: 0;
  z-index: 3;
}
.tp-schedule .available {
  background: #fff8f0 !important;
  border-color: #fed7aa !important;
  color: #9a3412;
  cursor: pointer;
}
.tp-schedule .piority {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c;
  cursor: pointer;
}
.tp-schedule .available.selected,
.tp-schedule .time-slot.selected {
  background: var(--kid-orange) !important;
  border-color: #f08c2e !important;
  color: #fff !important;
}
.tp-schedule .time-slot.available {
  background: #fff8f0;
  border-color: #fed7aa;
  color: #9a3412;
}
.tp-schedule .time-slot.piority {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
@media (max-width: 576px) {
  .tp-header .tp-avatar { width: 88px; height: 88px; border-radius: 18px; }
}

/* ── Teachers list（teachers_list.php） ── */
.tl-filter-panel .section-header { margin-bottom: 16px; }
.tl-date-panel { margin-bottom: 8px; }
.tl-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
}
.tl-legend-dot,
.currmonth-indicator,
.nextmonth-indicator,
.lastmonth-indicator,
.disable-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.currmonth-indicator { background: #fff3e0; border: 2px solid #ffcc80; }
.nextmonth-indicator { background: #eff6ff; border: 2px solid #93c5fd; }
.lastmonth-indicator { background: #ecfdf5; border: 2px solid #6ee7b7; }
.disable-indicator { background: #fee2e2; border: 2px solid #fca5a5; }
.tl-date-grid { --bs-gutter-x: 0.35rem; --bs-gutter-y: 0.35rem; }
.tl-date-cell {
  flex: 0 0 calc(100% / 7) !important;
  max-width: calc(100% / 7) !important;
  width: calc(100% / 7) !important;
  padding: 0 !important;
}
.tl-date-empty { min-height: 52px; }
.tl-date-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 2px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.tl-date-week {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.75;
}
.tl-date-cell.current-month .tl-date-label {
  background: #fff8f0;
  border-color: #fed7aa;
  color: #9a3412;
}
.tl-date-cell.previous-month .tl-date-label {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.tl-date-cell.next-month .tl-date-label {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.tl-date-cell.past-date .tl-date-label,
.tl-date-cell.disabled-date .tl-date-label {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}
.disabled-date { pointer-events: none; opacity: 0.7; }
.tl-date-label.selected,
.tl-chip.selected {
  background: var(--kid-orange) !important;
  border-color: #f08c2e !important;
  color: #fff !important;
}
.tl-chip-wrap { height: 100%; }
.tl-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s;
  height: 100%;
}
.tl-chip:hover { background: #fff8f0; border-color: #fed7aa; }
.tl-teacher-list { display: flex; flex-direction: column; gap: 0; }
.tl-teacher-card { overflow: hidden; }
.tl-avatar-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  background: #f3f4f6;
}
.tl-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.tl-teacher-name {
  font-size: 1.05rem;
  font-weight: 900;
  font-family: 'Quicksand', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #111827;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-flag { border-radius: 3px; vertical-align: middle; }
.tl-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-meta li {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-meta li i { color: var(--kid-orange); font-size: 1rem; }
.tl-bio {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}
.tl-video {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #f3f4f6;
  background: #111827;
}
.tl-video video {
  display: block;
  width: 100%;
  max-height: 220px;
  vertical-align: top;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .nav-pill { display: none !important; }
}
@media (max-width: 768px) {
  .hero-section { padding-top: 16px; padding-bottom: 20px; }
  .bento-main   { min-height: 260px; }
  .hero-section + .section-block { padding-top: 36px; }
  .dashboard-sidebar { display: none; }
  .rounded-tile, .bento-card, .feature-tile, .course-card, .teacher-card, .testimonial-card { border-radius: 24px; }
}
