/* ===== 178 AI創業學社 · 科技風介面 ===== */
:root {
  --bg: #070b1a; --bg2: #0c1228; --panel: rgba(15, 23, 48, .72); --panel2: rgba(22, 32, 64, .8);
  --line: rgba(99, 179, 237, .18); --line2: rgba(34, 211, 238, .45);
  --text: #e6edf7; --muted: #94a3b8; --dim: #64748b;
  --cyan: #22d3ee; --violet: #8b5cf6; --pink: #f472b6; --green: #34d399; --amber: #fbbf24; --red: #f87171;
  --grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  --radius: 16px; --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 600px at 10% -10%, rgba(34,211,238,.16), transparent 60%), radial-gradient(1000px 600px at 100% 0%, rgba(139,92,246,.18), transparent 60%), var(--bg);
  color: var(--text); font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; font-size: 16px; line-height: 1.7; min-height: 100vh; }
.bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: linear-gradient(rgba(99,179,237,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(99,179,237,.07) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%); }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 .8em; }
input, textarea, select, button { font: inherit; }
::selection { background: rgba(34,211,238,.35); }

/* ---- 頂部導覽 ---- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: rgba(7,11,26,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { background: var(--grad); color: #050816; padding: 2px 9px; border-radius: 9px; font-weight: 900; letter-spacing: 1px; box-shadow: 0 0 18px rgba(34,211,238,.45); }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.mainnav a:hover, .mainnav a.on { color: var(--text); background: rgba(34,211,238,.1); text-decoration: none; }
.userbox { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 4px 12px; font-size: 20px; }
.bell { position: relative; font-size: 20px; padding: 4px 8px; border-radius: 10px; color: var(--text); }
.bell .dot { position: absolute; top: -2px; right: -4px; background: var(--pink); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; text-align: center; line-height: 18px; font-weight: 700; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #071022; font-weight: 800; flex-shrink: 0; position: relative; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar .lv { position: absolute; bottom: -4px; right: -6px; background: #0b1226; color: var(--cyan); border: 1px solid var(--line2); font-size: 10px; border-radius: 8px; padding: 0 4px; line-height: 15px; font-weight: 800; }

main { position: relative; z-index: 1; max-width: 1220px; margin: 0 auto; padding: 26px 20px 90px; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }

/* ---- 共用元件 ---- */
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.card { padding: 20px 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line2); background: rgba(34,211,238,.08); color: var(--text); padding: 9px 18px; border-radius: 12px; cursor: pointer; font-weight: 700; transition: .18s; white-space: nowrap; }
.btn:hover { background: rgba(34,211,238,.18); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #050816; border: none; box-shadow: 0 6px 24px rgba(99,102,241,.45); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.danger { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.1); color: #fecaca; }
.btn.sm { padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.btn.big { padding: 14px 28px; font-size: 18px; border-radius: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 14px; background: rgba(255,255,255,.02); }
.chip.on, .chip:hover { border-color: var(--cyan); color: var(--text); background: rgba(34,211,238,.12); text-decoration: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(139,92,246,.18); color: #c4b5fd; border: 1px solid rgba(139,92,246,.35); }
.tag.cyan { background: rgba(34,211,238,.12); color: #a5f3fc; border-color: rgba(34,211,238,.35); }
.tag.green { background: rgba(52,211,153,.14); color: #a7f3d0; border-color: rgba(52,211,153,.35); }
.tag.amber { background: rgba(251,191,36,.14); color: #fde68a; border-color: rgba(251,191,36,.35); }
.tag.red { background: rgba(248,113,113,.14); color: #fecaca; border-color: rgba(248,113,113,.35); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { font-size: 44px; display: block; margin-bottom: 8px; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* 說明列 & 小提示 */
.tipbar { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(34,211,238,.12), rgba(139,92,246,.10)); border: 1px solid var(--line2); margin-bottom: 18px; font-size: 15px; }
.tipbar .ico { font-size: 22px; line-height: 1.3; }
.tipbar .x { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.tip { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); color: var(--cyan); font-size: 12px; align-items: center; justify-content: center; cursor: help; position: relative; margin-left: 4px; font-weight: 700; vertical-align: middle; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); width: 240px; background: #0b1226; border: 1px solid var(--line2); color: var(--text); padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 400; line-height: 1.5; z-index: 30; box-shadow: var(--shadow); white-space: normal; }

/* 表單 */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.input, textarea.input, select.input { width: 100%; background: rgba(5,10,25,.7); border: 1px solid var(--line); color: var(--text); padding: 11px 14px; border-radius: 12px; outline: none; transition: .15s; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
textarea.input { min-height: 110px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { color: var(--red); font-size: 14px; min-height: 20px; }

/* ===== 首頁 ===== */
.hero { text-align: center; padding: 50px 10px 30px; }
.hero .eyebrow { display: inline-block; padding: 5px 16px; border: 1px solid var(--line2); border-radius: 999px; color: var(--cyan); font-size: 14px; letter-spacing: 2px; margin-bottom: 18px; background: rgba(34,211,238,.06); }
.hero h1 { font-size: clamp(32px, 5.5vw, 58px); font-weight: 900; letter-spacing: 1px; margin-bottom: 14px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 760px; margin: 0 auto 26px; }
.hero .row { justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 10px; }
.stat { padding: 16px; text-align: center; }
.stat b { display: block; font-size: 28px; font-weight: 900; }
.stat span { color: var(--muted); font-size: 14px; }
.section { margin: 56px 0; }
.section-title { text-align: center; margin-bottom: 26px; }
.section-title h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.section-title p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px; position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #050816; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; margin-bottom: 12px; box-shadow: 0 0 20px rgba(34,211,238,.4); }
.role-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

/* 介面導覽圖 */
.anatomy { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.mock { padding: 14px; position: relative; font-size: 13px; }
.mock .m-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px dashed var(--line); }
.mock .m-banner { margin-top: 10px; padding: 14px; border-radius: 12px; background: linear-gradient(120deg, rgba(34,211,238,.2), rgba(139,92,246,.2)); border: 1px dashed var(--line2); display: flex; align-items: center; gap: 10px; }
.mock .m-tabs { display: flex; gap: 6px; margin-top: 10px; padding: 6px; border-radius: 10px; border: 1px dashed var(--line); flex-wrap: wrap; }
.mock .m-tabs span { padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.mock .m-tabs span:first-child { background: rgba(34,211,238,.2); color: #fff; }
.mock .m-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 10px; }
.mock .m-box { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.02); position: relative; }
.mock .m-line { height: 8px; border-radius: 4px; background: rgba(148,163,184,.25); margin: 6px 0; }
.mock .m-line.s { width: 60%; } .mock .m-line.xs { width: 35%; }
.mock .m-bar { height: 8px; border-radius: 4px; background: rgba(148,163,184,.2); overflow: hidden; margin-top: 6px; }
.mock .m-bar i { display: block; height: 100%; width: 60%; background: var(--grad); }
.pin { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(244,114,182,.25), 0 0 16px rgba(244,114,182,.7); z-index: 2; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(244,114,182,.25), 0 0 16px rgba(244,114,182,.6);} 50% { box-shadow: 0 0 0 8px rgba(244,114,182,.12), 0 0 24px rgba(244,114,182,.9);} }
.legend { display: grid; gap: 10px; }
.legend .li { display: flex; gap: 12px; padding: 12px 14px; }
.legend .li .pin { position: static; flex-shrink: 0; animation: none; }
.legend .li b { display: block; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 20px; }
.feature .ico { font-size: 30px; display: block; margin-bottom: 6px; }
.feature ul { padding-left: 18px; margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.lvtable { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.lvtable div { text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 13px; }
.lvtable b { display: block; font-size: 18px; color: var(--cyan); }
.faq details { padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cta-final { text-align: center; padding: 40px 20px; }

/* ===== 探索 ===== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: 30px; font-weight: 900; margin: 0; }
.searchbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.searchbar .input { flex: 1; min-width: 220px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.ccard { overflow: hidden; display: flex; flex-direction: column; transition: .2s; color: var(--text); }
.ccard:hover { transform: translateY(-4px); border-color: var(--line2); text-decoration: none; box-shadow: 0 16px 44px rgba(34,211,238,.15); }
.ccard .cover { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 52px; position: relative; }
.ccard .cover .feat { position: absolute; top: 10px; left: 10px; }
.ccard .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.ccard h3 { font-size: 18px; margin-bottom: 4px; }
.ccard .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 14px; color: var(--muted); }
.price { font-weight: 900; color: var(--amber); }
.price.free { color: var(--green); }

/* ===== 社群頁 ===== */
.cbanner { padding: 22px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.cbanner::before { content: ""; position: absolute; inset: 0; background: var(--cbg, var(--grad)); opacity: .18; }
.cbanner > * { position: relative; }
.cbanner .emoji { font-size: 54px; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: rgba(0,0,0,.25); border: 1px solid var(--line2); }
.cbanner h1 { font-size: 26px; font-weight: 900; margin: 0; }
.cbanner .act { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; margin: 16px 0; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 16px; border-radius: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.04); }
.tabs a.on { background: var(--grad); color: #050816; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.side > * + * { margin-top: 16px; }
.lvcard .big { font-size: 34px; font-weight: 900; }
.progress { height: 10px; border-radius: 6px; background: rgba(148,163,184,.18); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 6px; box-shadow: 0 0 12px rgba(34,211,238,.6); }
.composer { padding: 16px 18px; margin-bottom: 14px; }
.composer .fake { flex: 1; background: rgba(5,10,25,.6); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--muted); cursor: text; }
.post { padding: 16px 20px; margin-bottom: 12px; cursor: pointer; transition: .15s; }
.post:hover { border-color: var(--line2); }
.post.pinned { border-color: rgba(251,191,36,.5); background: linear-gradient(180deg, rgba(251,191,36,.07), var(--panel)); }
.post h3 { font-size: 18px; margin: 8px 0 4px; }
.post .excerpt { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .foot { display: flex; gap: 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.likebtn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 3px 12px; cursor: pointer; font-weight: 700; }
.likebtn.on { color: #fff; border-color: var(--pink); background: rgba(244,114,182,.18); }
.who { display: flex; gap: 10px; align-items: center; }
.who .name { font-weight: 700; }
.postbody { white-space: normal; word-break: break-word; font-size: 16.5px; }
.comment { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment .content { flex: 1; }
/* 課程 */
.course-card { overflow: hidden; cursor: pointer; transition: .2s; position: relative; }
.course-card:hover { transform: translateY(-3px); border-color: var(--line2); }
.course-card .cover { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 54px; background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(139,92,246,.25)); }
.course-card .body { padding: 14px 18px 18px; }
.course-card.locked .cover { filter: grayscale(.8) brightness(.6); }
.lockmask { position: absolute; top: 0; left: 0; right: 0; height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; font-weight: 800; }
.course-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.lesson-list { padding: 12px; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.lesson-list .mod { font-size: 13px; color: var(--cyan); font-weight: 800; margin: 12px 8px 6px; letter-spacing: 1px; }
.lesson-list a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: 15px; }
.lesson-list a:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.lesson-list a.on { background: rgba(34,211,238,.15); border: 1px solid var(--line2); }
.lesson-list .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--dim); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.lesson-list .ck.done { background: var(--green); border-color: var(--green); color: #052; }
.video { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 16px; border: 1px solid var(--line); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 行事曆 */
.event { display: flex; gap: 16px; padding: 16px 18px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.event .date { width: 74px; text-align: center; border-radius: 14px; padding: 8px 0; background: rgba(34,211,238,.1); border: 1px solid var(--line2); }
.event .date b { display: block; font-size: 26px; line-height: 1.1; }
.event .date span { font-size: 13px; color: var(--muted); }
.event .info { flex: 1; min-width: 200px; }
/* 排行榜 */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.lb-row .rank { width: 34px; text-align: center; font-weight: 900; font-size: 18px; color: var(--muted); }
.lb-row .rank.top { color: var(--amber); text-shadow: 0 0 12px rgba(251,191,36,.6); }
.lb-row .pts { margin-left: auto; font-weight: 800; color: var(--cyan); }
.lvdist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lvdist div { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; }
.lvdist div.me { border-color: var(--cyan); background: rgba(34,211,238,.1); }
/* 成員 */
.member { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.member .info { flex: 1; min-width: 160px; }
/* 數據卡 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px; }
.kpi span { color: var(--muted); font-size: 13px; display: block; }
.kpi b { font-size: 26px; font-weight: 900; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tblwrap { overflow-x: auto; }
/* 建立社群精靈 */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.wsteps { display: flex; gap: 8px; margin-bottom: 18px; }
.wsteps div { flex: 1; text-align: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.wsteps div.on { border-color: var(--cyan); color: var(--text); background: rgba(34,211,238,.12); }
.wsteps div.done { color: var(--green); border-color: rgba(52,211,153,.4); }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick button, .color-pick button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 22px; cursor: pointer; }
.emoji-pick button.on, .color-pick button.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.3); }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
/* 彈窗 */
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,18,.75); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; padding: 22px 24px; }
.modal h2 { font-size: 21px; }
@keyframes fade { from { opacity: 0; } }
.ai-answer { white-space: pre-wrap; background: rgba(5,10,25,.6); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; max-height: 50vh; overflow: auto; }
/* 吐司 */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 11px 20px; border-radius: 12px; background: #0b1226; border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 700; animation: fade .2s; }
.toast.err { border-color: rgba(248,113,113,.6); color: #fecaca; }
/* 導覽 */
.help-fab { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--grad); color: #050816; font-size: 26px; font-weight: 900; cursor: pointer; z-index: 60; box-shadow: 0 0 0 6px rgba(34,211,238,.15), 0 8px 30px rgba(99,102,241,.6); }
.help-fab:hover { transform: scale(1.06); }
.tour-hl { position: fixed; z-index: 150; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(2,6,18,.72), 0 0 0 3px var(--cyan), 0 0 28px rgba(34,211,238,.8); pointer-events: none; transition: all .25s; }
.tour-pop { position: fixed; z-index: 151; width: 340px; max-width: calc(100vw - 24px); padding: 18px 20px; background: #0b1226; border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); }
.tour-pop h4 { font-size: 17px; margin-bottom: 6px; }
.tour-pop .cnt { font-size: 12px; color: var(--cyan); font-weight: 800; letter-spacing: 1px; }
.tour-pop .row { margin-top: 12px; }
.tour-block { position: fixed; inset: 0; z-index: 149; }
/* 付款測試頁 */
.pay-demo { max-width: 460px; margin: 80px auto; padding: 30px; text-align: center; }
.pay-demo .price { font-size: 36px; }
.pay-demo .hint { color: var(--muted); font-size: 14px; }
.badge-warn { display: inline-block; background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.5); color: #fde68a; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.menu { position: absolute; right: 16px; top: 62px; min-width: 220px; padding: 8px; z-index: 70; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--text); background: none; border: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(34,211,238,.1); text-decoration: none; }

/* ===== 手機版 ===== */
@media (max-width: 960px) {
  .layout, .course-layout, .wizard, .anatomy { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .lesson-list { position: static; max-height: none; }
  .kpis, .stats { grid-template-columns: 1fr 1fr; }
  .lvtable { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .hamburger { display: block; }
  .mainnav { display: none; order: 5; flex-basis: 100%; flex-direction: column; }
  .mainnav.open { display: flex; }
  .logo-text { font-size: 16px; }
  main { padding: 16px 12px 90px; }
  .steps, .features, .grid2 { grid-template-columns: 1fr; }
  .mock .m-body { grid-template-columns: 1fr; }
  .cbanner .act { margin-left: 0; width: 100%; }
  .cbanner h1 { font-size: 22px; }
  .lvdist { grid-template-columns: 1fr 1fr; }
  .help-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
