:root { color-scheme: light; font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fcfbfd; color: #26202d; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #7a5182; outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 274px; display: flex; flex-direction: column; padding: 34px 18px 26px; background: #fff; border-right: 1px solid #e9e6ec; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 49px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: 14px; background: #ebe6f0; color: #3c2b4a; font-weight: 800; font-size: 24px; }
.brand strong { display: block; font-size: 23px; letter-spacing: .04em; }
.nav-heading { padding: 0 19px 14px; color: #817a87; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.nav-link { min-height: 55px; display: flex; align-items: center; gap: 14px; padding: 0 18px; margin-bottom: 7px; border-radius: 13px; font-size: 17px; font-weight: 650; transition: background .15s ease; }
.nav-link:hover, .nav-link.active { background: #f0ecf3; color: #3f3050; }
.nav-icon { width: 25px; font-size: 24px; text-align: center; line-height: 1; }
.main-shell { min-height: 100vh; margin-left: 274px; display: flex; flex-direction: column; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: flex-end; padding: 0 6%; border-bottom: 1px solid #e9e6ec; color: #88818d; font-size: 14px; letter-spacing: .08em; }
.menu-button, .mobile-brand { display: none; }
main { flex: 1; }
.page { width: min(1060px, 88%); margin: 0 auto; padding: 52px 0 94px; }
.hero { min-height: 266px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 42px 6%; background: #eeeaf2; border-radius: 25px; }
.eyebrow { display: block; color: #574366; font-size: 14px; font-weight: 750; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
.hero h1 { white-space: pre-line; margin: 17px 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.32; letter-spacing: .035em; }
.hero p { margin: 0; color: #5f5668; font-size: 17px; line-height: 1.7; }
.home-section { margin-top: 0; }
.section-title { margin-bottom: 23px; font-size: 31px; letter-spacing: .02em; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.category-tile { min-height: 150px; display: flex; align-items: center; gap: 18px; padding: 28px; background: #fff; border: 1px solid #e9e6ec; border-radius: 18px; box-shadow: 0 8px 26px rgba(42, 53, 44, .025); transition: transform .15s ease, box-shadow .15s ease; }
.category-tile:hover, .post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(42, 53, 44, .08); }
.category-tile-icon { width: 62px; height: 62px; flex: none; display: grid; place-items: center; border-radius: 18px; background: #eeeaf2; color: #5a4667; font-size: 32px; }
.category-tile-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.category-tile-body strong { font-size: 21px; }
.category-tile-body span { color: #716877; font-size: 14px; line-height: 1.55; }
.tile-arrow { margin-left: auto; color: #887596; font-size: 28px; }
.page-heading { padding: 6px 0 25px; border-bottom: 1px solid #e6e3e9; }
.page-heading h1 { margin: 15px 0 12px; font-size: clamp(32px, 4vw, 45px); }
.page-heading p { margin-bottom: 0; color: #6d6473; font-size: 17px; line-height: 1.7; }
.list-meta { margin: 30px 0 20px; color: #817a87; font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.post-card { min-height: 280px; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid #e9e6ec; border-radius: 18px; box-shadow: 0 8px 26px rgba(42, 53, 44, .025); transition: transform .15s ease, box-shadow .15s ease; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.type-pill { display: inline-flex; align-items: center; align-self: flex-start; padding: 5px 11px; border-radius: 100px; background: #eee9f2; color: #4b3a59; font-size: 13px; font-weight: 750; }
.type-pill.video { background: #f2eaf3; color: #755b7d; }
.card-date { color: #9b949f; font-size: 13px; white-space: nowrap; }
.card-title { margin: 22px 0 12px; font-size: 23px; line-height: 1.4; }
.card-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0 0 20px; color: #756d7a; font-size: 16px; line-height: 1.7; }
.card-bottom { display: flex; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid #efecf1; color: #554264; font-size: 15px; font-weight: 750; }
.empty-state, .load-error { padding: 38px; border-radius: 16px; background: #fff; color: #756d7a; line-height: 1.7; }
.article-page { max-width: 840px; }
.back-link { display: inline-block; margin-bottom: 26px; color: #574366; font-size: 16px; font-weight: 700; }
.article { padding: 48px 55px 64px; border: 1px solid #e9e6ec; border-radius: 20px; background: #fff; }
.article-header { padding-bottom: 28px; border-bottom: 1px solid #e9e6ec; }
.article-header h1 { margin: 19px 0 12px; font-size: clamp(29px, 4vw, 40px); line-height: 1.4; }
.article-date { color: #938b99; font-size: 14px; }
.article-content { padding-top: 22px; font-size: 19px; line-height: 2; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 22px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 32px; overflow: hidden; border-radius: 12px; background: #1e1923; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.external-link { display: inline-block; margin-top: 18px; color: #4b3a59; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.scrim { display: none; }
@media (max-width: 900px) { .sidebar { width: 250px; } .main-shell { margin-left: 250px; } .category-grid, .post-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .sidebar { width: min(82vw, 310px); padding-top: 30px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 14px 0 35px rgba(22, 41, 28, .12); }
  .sidebar.open { transform: translateX(0); }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(20, 37, 27, .48); }
  body.menu-open { overflow: hidden; }
  .main-shell { margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 10; height: 64px; justify-content: flex-start; gap: 13px; padding: 0 20px; background: rgba(251, 251, 249, .97); backdrop-filter: blur(8px); }
  .menu-button { width: 44px; height: 44px; display: grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #433451; cursor: pointer; }
  .hamburger, .hamburger::before, .hamburger::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
  .hamburger { position: relative; }
  .hamburger::before { position: absolute; top: -7px; }
  .hamburger::after { position: absolute; top: 7px; }
  .mobile-brand { display: block; font-size: 19px; font-weight: 800; letter-spacing: .05em; }
  .topbar-caption { margin-left: auto; font-size: 12px; }
  .page { width: auto; margin: 0 20px; padding: 24px 0 72px; }
  .hero { min-height: 238px; padding: 30px 27px; border-radius: 19px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .home-section { margin-top: 34px; }
  .section-title { font-size: 21px; margin-bottom: 17px; }
  .category-grid, .post-grid { gap: 14px; }
  .category-tile { min-height: 130px; padding: 18px; gap: 15px; }
  .category-tile-icon { width: 53px; height: 53px; border-radius: 14px; font-size: 27px; }
  .category-tile-body strong { font-size: 19px; }
  .category-tile-body span { font-size: 13px; }
  .page-heading { padding: 18px 0 22px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading p { font-size: 16px; }
  .list-meta { margin: 24px 0 16px; }
  .post-card { min-height: 244px; padding: 22px; }
  .card-title { font-size: 21px; margin-top: 18px; }
  .card-summary { font-size: 16px; }
  .article-page { margin: 0 16px; padding-top: 24px; }
  .back-link { margin: 0 4px 19px; }
  .article { padding: 28px 22px 40px; border-radius: 17px; }
  .article-header h1 { font-size: 28px; }
  .article-content { font-size: 18px; line-height: 1.9; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

