:root {
  color-scheme: light;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #172033;
  background: #f5f7fb;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #2455d6; }

.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #172033; color: white; padding: 18px 0; }
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: white; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { color: #dce5ff; text-decoration: none; font-size: .94rem; }

.hero { padding: 72px 0 40px; }
.eyebrow { color: #2455d6; font-weight: 800; letter-spacing: .12em; font-size: .8rem; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; margin: 12px 0 20px; }
h2 { margin-top: 0; }
.lede { max-width: 680px; color: #566176; font-size: 1.12rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card, .panel { background: white; border: 1px solid #e2e7f0; border-radius: 18px; padding: 24px; box-shadow: 0 12px 30px rgba(27, 46, 85, .06); }
.card h3 { margin-top: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #2455d6; color: white; padding: 11px 16px; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; }
.button.secondary { background: #e8edff; color: #2144a8; }
.button.danger { background: #b93838; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

main.page { padding: 42px 0 80px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cbd4e4; border-radius: 9px; padding: 11px 12px; font: inherit; background: #fff; }
input:focus, textarea:focus { outline: 3px solid #dce5ff; border-color: #2455d6; }
.hint { color: #657086; font-size: .9rem; }
.notice { margin-top: 18px; border-radius: 10px; padding: 14px 16px; background: #eef3ff; color: #2144a8; }
.notice.error { background: #fff0f0; color: #9a2525; }
.notice.success { background: #edf9f0; color: #236c37; }
.hidden { display: none !important; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e6eaf2; vertical-align: top; }
th { color: #5d687d; font-size: .85rem; }
.status { display: inline-block; border-radius: 999px; padding: 3px 9px; background: #edf0f6; font-size: .82rem; white-space: nowrap; }
.status.published { background: #e5f6e9; color: #236c37; }
.status.rejected { background: #fff0f0; color: #9a2525; }
.status.pending { background: #fff7df; color: #85650d; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.small-button { border: 1px solid #cbd4e4; border-radius: 7px; padding: 6px 9px; background: white; cursor: pointer; font: inherit; }
.small-button:hover { background: #f0f4ff; }
.preview-frame { width: 100%; min-height: 520px; border: 1px solid #cbd4e4; border-radius: 12px; background: white; }
.footer { color: #788399; padding: 30px 0 50px; font-size: .9rem; }

@media (max-width: 680px) {
  .topbar .shell { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
