/* 洋格课件 · 登录 / 列表 / 放映外壳 —— 小良狮风格（洋格蓝 + 鬃毛黄、毛毡缝线虚边）
   配色与讲义 themes/xiaoliangshi/theme.css、课件 deck.css 同一套。不加载网络字体，系统黑体即可。 */
:root {
  --blue: #1E5FD8; --navy: #143A87; --sky: #EEF4FF; --sky2: #D6E3FB; --stitch: #A9C1EC;
  --mane: #FFB81C; --mane2: #F2A900; --cream: #FFF7E1; --cream2: #FFE3A0;
  --coral: #E0502B; --ink: #1D2638; --gray: #6A7891; --line: #D5DEEC;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: var(--ink); background: #F5F8FD; line-height: 1.6; }
body.bg { background: radial-gradient(circle at 12% 8%, #FFF1CC 0, transparent 34%), radial-gradient(circle at 92% 90%, #DCE8FF 0, transparent 40%), #F5F8FD; min-height: 100vh; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }

/* 毛毡卡片 */
.card { background: #fff; border: 2px dashed var(--stitch); box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--sky2), 0 18px 40px -22px rgba(20,58,135,.35);
        border-radius: 22px; padding: 22px 26px; }
.ct { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ct img { height: 34px; }
.ct .t { font-weight: 700; color: var(--navy); font-size: 20px; letter-spacing: 1px; }

/* 蓝色头图（与讲义封面同款） */
.hero { position: relative; border-radius: 26px; overflow: hidden; color: #fff; min-height: 220px;
        background: linear-gradient(135deg, #1E5FD8 0%, #143A87 100%);
        box-shadow: inset 0 0 0 5px rgba(20,58,135,.9), inset 0 0 0 7px rgba(255,255,255,.55); }
.hero .in { position: relative; z-index: 2; padding: 28px 32px; max-width: 60%; }
.hero h1 { margin: 14px 0 6px; font-size: 32px; line-height: 1.25; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(10,30,80,.4); }
.hero .sub { margin: 0; font-size: 16px; opacity: .95; }
.hero .lion { position: absolute; right: 16px; bottom: 0; height: 92%; max-height: 260px; z-index: 1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,.18); border: 1.5px dashed rgba(255,255,255,.75); border-radius: 99px; padding: 0 12px; font-size: 13px; line-height: 26px; }
.chip.y { background: var(--mane); color: #3a2a00; border-color: #fff; font-weight: 700; }

/* ───── 登录页 ───── */
main.login { max-width: 920px; margin: 0 auto; padding: 48px 20px 32px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
main.login .hero { min-height: 400px; }
main.login .hero .in { max-width: 100%; padding-top: 36px; }
main.login .hero h1 { font-size: 36px; }
main.login .hero .lion { height: 52%; right: 14px; }
.form label { display: block; margin: 14px 0 0; font-size: 14px; color: var(--gray); font-weight: 600; }
.form input { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font-size: 17px; color: var(--ink); background: var(--sky);
              border: 2px dashed var(--stitch); border-radius: 14px; outline: none; transition: border-color .2s, background .2s; }
.form input:focus { border-color: var(--blue); border-style: solid; background: #fff; }
.form button[type=submit], .btn { display: block; width: 100%; margin-top: 18px; padding: 11px 0; font-size: 18px; font-weight: 700; letter-spacing: 6px; text-align: center; text-decoration: none;
              color: #3a2a00; background: var(--mane); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--mane), inset 0 0 0 4px rgba(255,255,255,.7), 0 6px 0 var(--mane2); transition: transform .1s, box-shadow .1s; }
.form button[type=submit]:active, .btn:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--mane), inset 0 0 0 4px rgba(255,255,255,.7), 0 2px 0 var(--mane2); }
.form button[disabled] { opacity: .6; cursor: wait; }
.msg { min-height: 1.6em; margin: 10px 0 0; color: var(--coral); font-size: 14px; font-weight: 600; }
.hint { margin: 14px 0 0; font-size: 13px; color: var(--gray); }
.brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gray); font-size: 13px; }
.brand img { height: 24px; }
@media (max-width: 760px) {
  main.login { grid-template-columns: 1fr; padding-top: 20px; gap: 22px; }
  main.login .hero { min-height: 220px; }
  main.login .hero h1 { font-size: 26px; }
  main.login .hero .in { max-width: 62%; }
}

/* ───── 列表页 ───── */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: rgba(255,255,255,.92);
       backdrop-filter: blur(6px); border-bottom: 2px dashed var(--sky2); }
.top img { height: 30px; }
.top b { color: var(--navy); font-size: 18px; letter-spacing: 1px; }
.top .who { margin-left: auto; text-align: right; font-weight: 700; color: var(--ink); line-height: 1.25; }
.top .who small { display: block; font-weight: 400; color: var(--gray); font-size: 12px; }
.ghost { background: #fff; color: var(--blue); border: 1.5px dashed var(--stitch); border-radius: 99px; padding: 4px 14px; font-size: 14px; text-decoration: none; }
.ghost:hover { border-color: var(--blue); }
main.list { max-width: 1080px; margin: 0 auto; padding: 22px 20px 60px; }
.hero.slim { min-height: 150px; }
.hero.slim .lion { height: 140px; right: 30px; }
.sec { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; }
.sec .st { background: var(--blue); color: #fff; padding: 3px 18px; border-radius: 12px; font-size: 18px; font-weight: 700; letter-spacing: 3px;
           outline: 1.5px dashed rgba(255,255,255,.85); outline-offset: -5px; }
.sec .bar { flex: 1; height: 3px; background: repeating-linear-gradient(90deg, var(--mane) 0 10px, transparent 10px 17px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.course { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; text-decoration: none; color: var(--ink); background: #fff;
          border: 2px dashed var(--stitch); border-radius: 18px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--sky2); transition: transform .15s, box-shadow .15s; }
.course:hover { transform: translateY(-3px); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--mane), 0 14px 26px -16px rgba(20,58,135,.5); }
.course .tn { align-self: flex-start; background: var(--sky); color: var(--blue); border-radius: 10px; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.course .tt { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.course .tm { font-size: 13px; color: var(--gray); }
.course .go { position: absolute; right: 16px; bottom: 12px; color: #A86F00; font-weight: 700; font-size: 14px; }
.empty { display: flex; align-items: center; gap: 18px; margin-top: 26px; color: var(--gray); }
.empty img { height: 110px; }
@media (max-width: 760px) { .hero.slim .lion { height: 110px; right: 6px; } .hero .in { max-width: 70%; } .hero h1 { font-size: 24px; } .top { padding: 8px 12px; } }

/* ───── 放映外壳 ───── */
body.play { background: #0E1B36; overflow: hidden; }
#shell { position: fixed; inset: 0; display: flex; flex-direction: column; }
#shell .bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: #fff; border-bottom: 2px dashed var(--sky2); }
#shell .ttl { flex: 1; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fs { color: #3a2a00; background: var(--mane); border: 0; border-radius: 99px; padding: 5px 16px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--mane), inset 0 0 0 3px rgba(255,255,255,.7); }
#wrap { position: relative; flex: 1; background: #0E1B36; }
#wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.wm { position: absolute; inset: 0; z-index: 10; pointer-events: none; background-repeat: repeat; }
#wrap:fullscreen { background: #000; }
