* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --sage: #6b7d6a; --sage-dark: #55654f; --sage-light: #eef1ed;
  --paper: #f5f3ee; --card: #ffffff; --line: #e2ddd2;
  --ink: #3a3a35; --ink-soft: #77715f; --accent: #b0543f;
}
body { font-family: "PingFang TC", "Microsoft JhengHei", sans-serif; background: var(--paper); color: var(--ink); line-height: 1.65; }
.topbar { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-weight: 700; color: var(--sage-dark); text-decoration: none; font-size: 16px; }
.topbar .user { font-size: 13px; color: var(--ink-soft); }
.topbar .user a { color: var(--sage-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.crumb a { color: var(--sage-dark); text-decoration: none; }
h1 { font-size: 21px; margin-bottom: 6px; }
h2 { font-size: 17px; margin-bottom: 8px; }
.sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.card.highlight { border-color: var(--sage); background: var(--sage-light); }
.tag { display: inline-block; font-size: 11px; background: var(--sage); color: #fff; border-radius: 4px; padding: 2px 9px; margin-bottom: 8px; }
.tag.gray { background: #a09a86; }
.tag.warn { background: var(--accent); }
.btn { display: inline-block; background: var(--sage); color: #fff; font-size: 14px; border: none; border-radius: 8px; padding: 9px 20px; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn:hover { background: var(--sage-dark); }
.btn.ghost { background: #fff; color: var(--sage-dark); border: 1px solid var(--sage); }
.btn.sm { font-size: 12px; padding: 5px 12px; border-radius: 6px; }
.note { font-size: 12.5px; color: var(--ink-soft); background: #f1efe6; border-left: 3px solid #c9c2ad; padding: 8px 12px; border-radius: 0 6px 6px 0; margin-top: 10px; }
input[type=text], input[type=email], textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; }
textarea { min-height: 90px; resize: vertical; }
.weekstrip { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 4px; }
.wk { flex: 1; min-width: 46px; text-align: center; font-size: 12px; padding: 8px 2px; border-radius: 6px; background: #eceade; color: var(--ink-soft); text-decoration: none; }
.wk.done { background: #d8ddd4; color: var(--sage-dark); }
.wk.now { background: var(--sage); color: #fff; font-weight: 700; }
.wk.lock { opacity: .4; cursor: not-allowed; }
.video { aspect-ratio: 16/9; background: #2c2c28; border-radius: 10px; color: #cfcabb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; }
.video .play { width: 56px; height: 56px; border: 3px solid #cfcabb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.video .vtitle { font-size: 15px; }
.video .vmeta { font-size: 12px; opacity: .65; }
.seglist { display: flex; flex-direction: column; gap: 6px; }
.seg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; }
.seg .st { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.seg.done .st { background: #d8ddd4; border-color: #d8ddd4; color: var(--sage-dark); }
.seg.now { border-color: var(--sage); background: var(--sage-light); font-weight: 600; }
.seg.now .st { border-color: var(--sage); color: var(--sage-dark); }
.seg .dur { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.errata p { font-size: 13.5px; margin-bottom: 4px; }
.errata .ts { color: var(--sage-dark); text-decoration: underline; cursor: pointer; font-weight: 600; }
.post { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.post .name { font-weight: 600; font-size: 13.5px; }
.post .time { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 6px; }
.post .txt { font-size: 14px; color: #4a4538; margin: 6px 0; white-space: pre-wrap; }
.post .imgph { height: 90px; width: 130px; background: repeating-linear-gradient(45deg, #eceade, #eceade 8px, #f7f5ee 8px, #f7f5ee 16px); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a09a86; margin: 8px 0; }
.acts { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.acts button { background: none; border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-soft); font-family: inherit; }
.acts button.liked { border-color: var(--sage); color: var(--sage-dark); background: var(--sage-light); }
.comment { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; font-size: 13px; color: #4a4538; }
.comment b { font-size: 12.5px; }
.cmtrow { display: flex; gap: 8px; margin-top: 8px; }
.cmtrow input { flex: 1; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 7px 9px; text-align: center; }
table.grid th { background: #eceade; font-weight: 600; }
.ok { color: #4c7a4c; font-weight: 700; }
.no { color: var(--accent); font-weight: 700; }
.row2 { display: flex; gap: 14px; flex-wrap: wrap; }
.row2 > .card { flex: 1; min-width: 240px; }
.center { text-align: center; }
.demo-banner { background: #4a4538; color: #efeada; font-size: 12.5px; text-align: center; padding: 6px 12px; }
.demo-banner a { color: #cfe0c8; }
@media (max-width: 560px) { .wrap { padding: 18px 12px 48px; } }
