/* 名人媒体AI学院 · 学习平台补充样式（不影响原 styles.css） */

.platform-page { min-height: 100vh; }

.plat-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.plat-menu-toggle:hover { border-color: var(--gold); color: var(--gold-2); }

.plat-subnav {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 20, 34, 0.72);
  backdrop-filter: blur(12px);
}
.plat-subnav .wrap {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.55rem 0;
}
.plat-subnav a {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.plat-subnav a:hover { color: var(--text); }
.plat-subnav a.active {
  color: var(--gold-2);
  background: var(--gold-soft);
  border-color: rgba(201, 162, 39, 0.28);
}

.demo-banner {
  background: linear-gradient(90deg, rgba(201,162,39,0.16), rgba(94,194,192,0.1));
  border-bottom: 1px solid rgba(201,162,39,0.25);
  color: var(--gold-2);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
  padding: 0.7rem 1rem;
  line-height: 1.55;
}
.demo-banner strong { font-weight: 700; }

.plat-hero { padding: 2.4rem 0 1.6rem; }
.plat-hero h1 { margin-bottom: 0.7rem; }
.plat-hero .lead { margin-bottom: 0; }

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 2rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.stat-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.stat-card .value {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-2);
}
.stat-card .hint { color: var(--muted); font-size: 0.8rem; margin-top: 0.3rem; }

.progress-track {
  height: 0.48rem;
  background: rgba(243, 239, 230, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 0.45rem;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold-2));
  border-radius: inherit;
  transition: width .35s ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.enroll-list { display: grid; gap: 1rem; }
.enroll-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow);
}
.enroll-card .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.enroll-card h3 { margin-bottom: 0.2rem; font-size: 1.06rem; }

.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.field select {
  background: rgba(14, 20, 34, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text);
  font: inherit;
  min-width: 16rem;
}
.field select:focus {
  outline: none;
  border-color: rgba(201,162,39,0.55);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

.player-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.95fr);
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

.player-video-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}
.player-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.placeholder-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  pointer-events: none;
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}
.player-controls .btn { min-height: 2.6rem; }
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.done {
  background: linear-gradient(135deg, #7fd4d2, #5ec2c0);
  color: #082022;
  box-shadow: 0 8px 24px rgba(94,194,192,0.22);
}

.lesson-notes {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow);
}
.lesson-notes h3 { margin-bottom: 0.55rem; font-size: 1.02rem; }
.lesson-notes p, .lesson-notes li { color: var(--muted); font-size: 0.95rem; }
.lesson-notes ul { margin: 0.4rem 0 0.8rem 1.1rem; }
.materials { margin-top: 0.8rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.materials .item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.materials .tag { margin: 0; }

.lesson-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 5.5rem;
}
.lesson-sidebar header {
  position: static;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  padding: 1rem 1.1rem 0.7rem;
}
.lesson-sidebar h2 { font-size: 0.95rem; margin: 0; font-family: var(--font); font-weight: 650; }
.lesson-list { list-style: none; max-height: min(70vh, 36rem); overflow: auto; padding: 0 0.5rem 0.7rem; }
.lesson-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0.7rem 0.75rem;
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.55rem;
  align-items: start;
}
.lesson-list button:hover { background: rgba(243,239,230,0.04); }
.lesson-list button.is-current {
  background: var(--gold-soft);
  border-color: rgba(201,162,39,0.28);
}
.lesson-list .name { font-size: 0.9rem; font-weight: 600; line-height: 1.45; }
.lesson-list .meta { color: var(--muted); font-size: 0.75rem; margin-top: 0.15rem; }
.dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 1.5px solid var(--muted);
  margin-top: 0.35rem;
  background: transparent;
}
.dot.is-done {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(94,194,192,0.18);
}

.countdown-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.countdown-clock {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.2rem;
}
.time-block {
  min-width: 4.2rem;
  text-align: center;
  background: rgba(14,20,34,0.85);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.7rem 0.5rem 0.55rem;
}
.time-block .num {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-2);
  line-height: 1;
}
.time-block .unit { color: var(--muted); font-size: 0.72rem; margin-top: 0.3rem; letter-spacing: 0.06em; }

.live-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.live-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.live-table th, .live-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.92rem;
}
.live-table th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 650;
  background: rgba(14,20,34,0.65);
}
.live-table tr:last-child td { border-bottom: 0; }
.live-table .time { color: var(--gold-2); font-weight: 650; white-space: nowrap; }

.live-cards { display: none; gap: 0.9rem; }

.live-room {
  margin: 1.25rem 0 2.5rem;
  display: none;
}
.live-room.is-open { display: block; }
.live-embed {
  position: relative;
  background: #05070c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.live-embed video, .live-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.live-embed-fallback {
  position: absolute;
  top:0;right:0;bottom:0;left:0;inset:0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at center, rgba(201,162,39,0.12), transparent 55%),
    #0a101c;
  pointer-events: none;
}
.live-embed-fallback p { color: var(--muted); max-width: 28rem; }

.replay-list { display: grid; gap: 0.9rem; }
.replay-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  background: var(--card-solid);
  color: var(--text);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.section-head h2 { margin-bottom: 0; }
.plat-section { padding: 0 0 3.25rem; }

@media (max-width: 900px) {
  body.platform-page .nav { flex-wrap: wrap; position: relative; }
  body.platform-page .plat-menu-toggle { display: inline-flex; margin-left: auto; }
  body.platform-page header .btn.small { display: none; }
  body.platform-page .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    order: 10;
    padding: 0.35rem 0 0.15rem;
  }
  body.platform-page .nav-links.is-open { display: flex; }
  body.platform-page .nav-links a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .player-shell { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .countdown-panel { grid-template-columns: 1fr; }
  .live-table-wrap { display: none; }
  .live-cards { display: grid; }
  .enroll-card, .replay-item { grid-template-columns: 1fr; }
  .enroll-card .actions { justify-content: stretch; }
  .enroll-card .actions .btn { flex: 1 1 auto; }
  .field select { min-width: 0; width: 100%; }
  .player-toolbar { align-items: stretch; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .player-controls .btn { flex: 1 1 calc(50% - 0.6rem); }
  .time-block { flex: 1 1 22%; min-width: 0; }
  .plat-hero { padding: 1.8rem 0 1.2rem; }
}

/* Zoom 直播课表 */
.cat-filters{display:flex;gap:0.5rem;flex-wrap:wrap;margin:0 0 1.2rem}
.cat-filters button{
  background:transparent;color:var(--text);border:1px solid var(--line-strong);
  border-radius:999px;padding:0.4rem 0.95rem;font:inherit;font-size:0.88rem;font-weight:650;cursor:pointer
}
.cat-filters button:hover{border-color:var(--gold);color:var(--gold-2)}
.cat-filters button.on{background:var(--gold-soft);color:var(--gold-2);border-color:rgba(201,162,39,0.4)}
.time-dual{display:flex;flex-direction:column;gap:0.15rem;line-height:1.4}
.time-dual .et{color:var(--gold-2);font-weight:650}
.time-dual .local{color:var(--muted);font-size:0.8rem;font-weight:500}
.zoom-panel{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.25rem 1.3rem;box-shadow:var(--shadow)
}
.zoom-meta{display:grid;gap:0.75rem;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin:0.85rem 0}
.zoom-meta p{margin:0;color:var(--muted);font-size:0.92rem}
.zoom-meta b{color:var(--text);font-size:0.78rem;letter-spacing:0.04em}
.live-reg{display:grid;gap:0.75rem;max-width:28rem;margin-top:1rem}
.live-reg label{display:grid;gap:0.35rem;font-size:0.82rem;font-weight:650;color:var(--muted)}
.live-reg input{
  background:rgba(14,20,34,0.9);border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  padding:0.7rem 0.85rem;color:var(--text);font:inherit
}
.live-reg input:focus{outline:none;border-color:rgba(201,162,39,0.55);box-shadow:0 0 0 3px rgba(201,162,39,0.12)}
.replay-placeholder{
  margin-top:0.9rem;padding:1.2rem;border:1px dashed var(--line-strong);border-radius:var(--radius-sm);
  text-align:center;background:rgba(14,20,34,0.45)
}
.replay-placeholder p{color:var(--muted);margin:0.5rem auto 0;max-width:28rem}
.live-table .note{color:var(--muted);font-size:0.78rem;margin-top:0.2rem}


/* 无直播时的宣传片窗口 / 有直播时的进入入口 */
.cm-live-stage-wrap{margin:0 0 1.4rem}
.cm-live-stage{
  position:relative;
  background:#071828;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:16/9;
  max-height:min(70vh, 560px);
  box-shadow:var(--shadow);
}
.cm-live-stage video,
.cm-live-stage .hero-poster,
.cm-live-stage .hero-fallback{
  position:absolute;top:0;right:0;bottom:0;left:0;inset:0;width:100%;height:100%;object-fit:cover;border:0
}
.cm-live-stage .hero-fallback{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.45rem;
  text-align:center;padding:1.2rem;
  background:linear-gradient(135deg,#0b4a7f,#071828);
  color:#f0d278;z-index:1;pointer-events:none;
  border-top:4px solid #f0d278;border-bottom:4px solid #f0d278
}
.cm-live-stage .hero-fallback strong{font-size:1.45rem;letter-spacing:.04em}
.cm-live-stage .hero-fallback span{font-size:0.95rem;color:#fff;font-weight:700}
.cm-live-stage .hero-fallback em{font-style:normal;font-size:0.78rem;color:#b6cadc;font-weight:600}
.cm-live-stage .hero-poster{z-index:1;background:#071828}
.cm-live-stage video{z-index:2;background:#000}
.cm-live-stage .ad-badge{
  position:absolute;top:10px;left:10px;z-index:4;
  background:#063b70;color:#f0d278;font-size:11px;font-weight:700;
  padding:3px 8px;border-radius:3px;border:1px solid #f0d278
}
.cm-live-stage .ad-unmute,
.cm-live-stage .ad-more{
  position:absolute;z-index:4;background:rgba(7,24,40,.78);color:#fff;
  border:1px solid #b6cadc;border-radius:3px;padding:4px 10px;
  font:inherit;font-size:12px;font-weight:700;cursor:pointer
}
.cm-live-stage .ad-unmute{top:10px;right:10px}
.cm-live-stage .ad-more{top:42px;right:10px;color:#f0d278;border-color:#f0d278;text-decoration:none}
.cm-live-stage .hero-next{
  position:absolute;left:0;right:0;bottom:0;z-index:4;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:linear-gradient(180deg,transparent,rgba(7,24,40,.94) 38%);
  padding:28px 12px 10px;font-size:13px;font-weight:700;color:#fff;line-height:1.4
}
.cm-live-stage .hero-next span{min-width:0;flex:1}
.cm-live-stage .hero-next em{font-style:normal;color:#f0d278}
.cm-live-stage .hero-next .btn{margin:0;flex:none}
.cm-live-stage.is-live{
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(160deg,#0b4a7f,#071828)
}
.cm-live-stage.is-live .live-cta{position:relative;z-index:3;text-align:center;padding:2.4rem 1.2rem 4.8rem;color:#fff;max-width:40rem}
.cm-live-stage.is-live .live-cta h3{color:#fff;margin:0.4rem 0 0.35rem;font-size:1.35rem;line-height:1.35}
.cm-live-stage.is-live .live-cta p{color:#b6cadc;margin:0 0 0.9rem;font-size:0.9rem}
.cm-live-stage .live-dot{
  position:absolute;top:10px;left:10px;z-index:4;
  background:#d62828;color:#fff;font-size:11px;font-weight:700;
  padding:3px 8px;border-radius:3px
}
@media (max-width:560px){
  .cm-live-stage .hero-next{flex-wrap:wrap;align-items:flex-end;font-size:12px;padding:20px 10px 8px}
  .cm-live-stage .hero-next .btn{margin-left:auto}
  .cm-live-stage .hero-fallback strong{font-size:1.15rem}
  .cm-live-stage.is-live{aspect-ratio:auto;max-height:none;min-height:0;height:auto}
  .cm-live-stage.is-live .live-cta{padding:3.1rem 0.9rem 5.2rem;font-size:0.95rem}
  .cm-live-stage.is-live .live-cta h3{font-size:1.15rem}
}

/* Chromium < 88 (older 360/QQ/Sogou/X5/UC kernels) lacks aspect-ratio: keep the promo stage 16:9 */
@supports not (aspect-ratio:16/9){
  .cm-live-stage{height:0;padding-top:56.25%}
  .cm-live-stage.is-live{height:auto;padding-top:0;min-height:220px}
}
