:root { --red: #eb2317; --red-dark: #c41c12; --ink: #222; --line: #e3e3e3; --dim: #888; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans TC", -apple-system, "PingFang TC", sans-serif;
       color: var(--ink); background: #fafafa; }
.topbar { display: flex; justify-content: space-between; align-items: center;
          padding: .7em 1.2em; background: #fff; border-bottom: 3px solid var(--red); }
.topbar .brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05em; }
.topbar nav a { margin-left: 1em; color: var(--red-dark); text-decoration: none; }
.topbar .user { margin-left: 1em; color: var(--dim); font-size: .85em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 1.2em; }
.wrap.narrow { max-width: 420px; padding-top: 4em; }
.center { text-align: center; }
h1 { font-size: 1.4em; } h1 small { color: var(--dim); font-weight: 400; font-size: .65em; }
.lede { color: var(--dim); }
.notice { padding: .7em 1em; border-radius: 8px; margin: .8em 0; }
.notice.error { background: #fde8e6; color: #8a1610; }
.notice.now { background: #fff6d6; border: 1px solid #eedc9a; }
button, .button { display: inline-block; border: 0; border-radius: 8px; padding: .6em 1.1em;
  background: #eee; color: var(--ink); font-size: 1em; cursor: pointer; text-decoration: none; }
button.primary { background: var(--red); color: #fff; }
button.primary:hover { background: var(--red-dark); }
input[type=search], input[type=file] { width: 100%; padding: .6em .8em; margin: .6em 0;
  border: 1px solid var(--line); border-radius: 8px; font-size: 1em; }
.teacher-grid, .pick-grid { display: grid; gap: .5em;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: .8em; }
.teacher-card { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .55em .8em; text-decoration: none; color: var(--ink); }
.teacher-card:hover { border-color: var(--red); }
.teacher-card b { color: var(--red-dark); margin-right: .4em; }
.teacher-card em { display: block; font-size: .75em; color: var(--dim); font-style: normal; }
.pick { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .45em .6em; font-size: .92em; cursor: pointer; }
.pick b { color: var(--red-dark); }
.opt { display: block; margin: 1em 0; }
.tablewrap { overflow-x: auto; }
table.tt { border-collapse: collapse; width: 100%; background: #fff; }
.tt th, .tt td { border: 1px solid var(--line); padding: .45em .5em; text-align: center;
  font-size: .85em; min-width: 105px; }
.tt th.ph { min-width: 74px; background: #f6f6f6; }
.tt td b { display: block; }
.tt td span { color: #444; } .tt td em { display: block; color: var(--dim); font-style: normal; font-size: .85em; }
.tt td.free { background: #f4f4f4; } .dim { color: var(--dim); }
.tt td.k-assembly { background: #fff6d6; }
.tt td.k-remedial { background: #e8f1fd; }
.tt td.k-activity { background: #e9f7e9; }
.tt td.now { outline: 3px solid var(--red); outline-offset: -3px; }
.tt td.allfree { background: #d9f2d9; font-weight: 600; }
.tt td.allfree.double { background: #b9e8b9; }
.tt td.allfree em { color: #1e7a1e; font-size: .78em; }
.tt td .who { display: block; color: #b3b3b3; font-size: .75em; }
.foot { text-align: center; color: var(--dim); font-size: .8em; padding: 2em 0; }

/* 主頁功能介紹卡 */
.features { display: grid; gap: 1em; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 1em 0 1.4em; }
.feature { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 8px; padding: .9em 1.1em; }
.feature h2 { margin: 0 0 .35em; font-size: 1.05em; }
.feature p { margin: 0 0 .5em; color: #555; font-size: .92em; }
.primary-link { background: var(--red); color: #fff; font-size: .9em; }
.langbtn { border: 1px solid var(--line); border-radius: 6px; padding: .15em .5em; font-size: .85em; }
