/* =========================
   Base
   全站基礎樣式
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: #1f1f1f;
  background: #f6f2ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Layout Helpers
========================= */
.site-container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow-container {
  width: min(820px, calc(100% - 32px));
}

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2ddd4;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.site-branding__link {
  font-size: 1.125rem;
  font-weight: 700;
}

.site-nav__menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-switcher-placeholder {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #666;
}

/* =========================
   Footer
========================= */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid #e2ddd4;
  padding: 24px 0 40px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #666;
}

/* =========================
   Generic Content
========================= */
.site-main {
  padding-top: 40px;
}

.basic-entry,
.page-entry {
  background: #fff;
  border: 1px solid #dfd8cc;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.basic-entry__title,
.page-entry__title {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* =========================
   Utilities
========================= */
.pagination-wrap {
  margin-top: 32px;
}

/* =========================
   RWD
========================= */
@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav__menu {
    flex-wrap: wrap;
    gap: 12px;
  }
}