/* Fun教學資源平台、Fun學教學資源端首頁的課程卡片 */
.pt-hello h1 { margin: 6px 0 4px; font-size: 24px; }
.pt-hello p { margin: 0 0 18px; color: var(--muted); }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pt-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 6px 24px rgba(15,23,32,.08); border: 2px solid transparent; color: var(--ink); text-decoration: none; min-height: 210px; transition: transform .12s, border-color .12s; }
a.pt-card:hover { transform: translateY(-2px); border-color: var(--brand); }
a.pt-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pt-ic { font-size: 40px; line-height: 1; }
.pt-card b { font-size: 20px; }
.pt-desc { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.pt-note { font-size: 13.5px; font-weight: 700; color: #1d6b4a; background: #eefaf3; border-radius: 9px; padding: 5px 10px; }
.pt-go { align-self: flex-end; font-weight: 800; color: var(--run); }
.pt-card.off { background: #f1f3f6; box-shadow: none; cursor: not-allowed; }
.pt-card.off .pt-ic, .pt-card.off b, .pt-card.off .pt-desc { opacity: .5; }
.pt-card.off .pt-note { color: #6b7a8c; background: #e6eaef; }
.pt-card.expired .pt-note { color: #b42318; background: #fdecec; }
@media (prefers-reduced-motion: reduce) { .pt-card { transition: none; } }

/* 兩個入口用不同配色（2026-10-26 使用者要求不要太像）
   線上學習平台（學生、老師上課）：青綠色、明亮；Fun學教學資源端（公司內部）：靛藍色、沉穩 */
body.theme-edu { background: #effaf7; }
.theme-edu .topbar { background: linear-gradient(90deg, #0f766e, #0e9488); }
.theme-edu .brand .org { color: #ccfbf1; }
.theme-edu .p-links a { background: rgba(255,255,255,.16); color: #f0fdfa; }
.theme-edu .login-hero { background: linear-gradient(160deg, #e6fffa 0%, #99f6e4 100%); }
.theme-edu .hero-text span, .theme-edu .hero-points { color: #134e4a; }
.theme-edu .login-tabs { background: #ddf3ee; }
.theme-edu a.pt-card:hover { border-color: #14b8a6; }
.theme-edu .pt-ic { filter: drop-shadow(0 3px 6px rgba(13,148,136,.25)); }

body.theme-staff { background: #f1f2fb; }
.theme-staff .topbar { background: linear-gradient(90deg, #1e1b4b, #312e81); }
.theme-staff .brand .org { color: #c7d2fe; }
.theme-staff .p-links a { background: rgba(255,255,255,.12); color: #e0e7ff; }
.theme-staff .login-hero { background: linear-gradient(160deg, #eef2ff 0%, #c7d2fe 100%); }
.theme-staff .hero-text span, .theme-staff .hero-points { color: #312e81; }
.theme-staff .login-tabs { background: #e4e7f8; }
.theme-staff a.pt-card:hover { border-color: #6366f1; }
.theme-staff .p-homebar { background: #eef0ff; border-color: #c7cdf5; }
.theme-staff .pt-go { color: #4f46e5; }
.theme-edu .login-screen { background: radial-gradient(circle at 20% 10%, #2dd4bf, #0f4f4a 70%); }
.theme-staff .run { background: #4f46e5; border-color: #4f46e5; }
.theme-staff .run:hover:not(:disabled) { background: #4338ca; }
.theme-staff .login-tabs { grid-template-columns: repeat(4, 1fr); }
.theme-staff .login-tabs button { font-size: 12.5px; padding: 7px 2px; }

/* 平台首頁「教學軟體」區（2026-10-29） */
.pt-sw { margin-top: 28px; }
.pt-sw h2 { margin: 0 0 4px; }
.pt-swic { height: 48px; width: auto; align-self: flex-start; }
