/* ── Teacher Page ──────────────────────────── */
.tp-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: #0f172a;
  background: #fff;
}

/* Hero */
.tp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f4c75 100%);
  padding: 56px 20px 52px;
}

.tp-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.382fr) minmax(0, 0.618fr);
  gap: 30px;
  align-items: stretch;
}

.tp-hero-photo-wrap {
  margin: 0;
}

.tp-hero-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(148, 189, 224, 0.45);
  background: #0b223d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.tp-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.tp-hero-name {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.tp-hero-name span {
  margin-left: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.52em;
  font-weight: 600;
  color: #9ec2e8;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tp-hero-lead {
  margin: 0;
  font-size: 1.03rem;
  color: rgba(231, 242, 255, 0.92);
  line-height: 1.72;
  max-width: 56ch;
}

.tp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tp-hero-actions {
  margin-top: 4px;
  display: flex;
}

.tp-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #00a896;
  background: #00a896;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 168, 150, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tp-hero-action:hover {
  color: #fff !important;
  background: #008b7c;
  border-color: #008b7c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,168,150,.35);
}

.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tp-badge--gold {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.3);
}

.tp-badge--blue {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96,165,250,0.25);
}

.tp-badge--green {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52,211,153,0.25);
}

/* Main content */
.tp-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Section */
.tp-section {
  margin-top: 52px;
}

.tp-section-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #00a896;
  display: inline-block;
}

/* ── 學員成績（最重要）── */
.tp-results-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 20px;
}

.tp-results-hero-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.tp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tp-stat {
  text-align: center;
  padding: 16px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.tp-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.tp-stat-num span {
  display: inline-block;
  font-size: 0.56em;
  font-weight: 700;
  color: #00d4aa;
  line-height: 1;
  margin-left: 0.04em;
  position: relative;
  top: 0.14em;
}

.tp-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.35;
}

.tp-results-subtitle {
  font-size: 0.9rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

/* TOI detail grid */
.tp-toi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.tp-toi-item {
  background: #f0fdf9;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}

.tp-toi-rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tp-toi-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.tp-toi-unit {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

/* Achievement list */
.tp-achievement-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tp-achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tp-achievement-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.tp-achievement-text {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
}

.tp-achievement-text strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

/* Profile */
.tp-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tp-profile-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tp-profile-card h4 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tp-profile-card ul {
  margin: 0;
  padding: 0 0 0 16px;
}

.tp-profile-card ul li {
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 5px;
  line-height: 1.45;
}

/* About teacher spotlight */
.tp-about-intro {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}

.tp-section-about .tp-profile-grid {
  gap: 18px;
}

.tp-section-about .tp-profile-card {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 16px;
  border: 1px solid #dbe4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.tp-section-about .tp-profile-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #0ea5e9;
}

.tp-section-about .tp-profile-card--why::before {
  background: #10b981;
}

.tp-section-about .tp-profile-card h4 {
  margin: 0 0 14px;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-section-about .tp-profile-card h4 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.82rem;
}

.tp-section-about .tp-profile-card--why h4 span {
  background: #dcfce7;
  color: #166534;
}

.tp-section-about .tp-profile-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.tp-section-about .tp-profile-list li {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: #334155;
  padding: 10px 12px 10px 34px;
  border-radius: 10px;
  border: 1px solid #e8eef6;
  background: #ffffff;
  position: relative;
}

.tp-section-about .tp-profile-list li::before {
  content: "\2713";
  position: absolute;
  left: 11px;
  top: 10px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.tp-section-about .tp-profile-card--why .tp-profile-list li::before {
  background: #dcfce7;
  color: #166534;
}

.tp-section-about .tp-profile-list li strong {
  color: #0f172a;
}

/* Competition table */
.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.tp-table th {
  text-align: left;
  padding: 8px 14px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
}

.tp-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  vertical-align: middle;
}

.tp-table tr:last-child td { border-bottom: none; }
.tp-table tr:hover td { background: #fafbfc; }

.tp-rank-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
}

/* CTA */
.tp-cta {
  margin-top: 52px;
  padding: 30px 32px;
  background: linear-gradient(135deg, #e8faf8 0%, #f0fdf9 100%);
  border: 1px solid rgba(0,168,150,.22);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.tp-cta h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: #0f4c40; }
.tp-cta p  { margin: 0; font-size: 0.84rem; color: #00a896; }

.tp-cta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 22px; border-radius: 999px;
  background: #06c755; color: #fff !important;
  font-size: 0.86rem; font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(6,199,85,.3);
  transition: background 0.15s;
}
.tp-cta-btn:hover { background: #05a547; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,199,85,.35); color: #fff !important; }

@media (max-width: 640px) {
  .tp-hero-inner   { grid-template-columns: 1fr; gap: 20px; }
  .tp-hero-photo   { min-height: 280px; }
  .tp-hero-info    { text-align: left; }
  .tp-hero-badges  { justify-content: flex-start; }
  .tp-hero-actions { justify-content: flex-start; }
  .tp-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .tp-toi-grid     { grid-template-columns: repeat(3, 1fr); }
  .tp-achievement-list { grid-template-columns: 1fr; }
  .tp-profile-grid { grid-template-columns: 1fr; }
  .tp-hero-name    { font-size: 1.72rem; }
}
