:root {
  --bg: #f4f1eb;
  --bg-deep: #ebe6dc;
  --fg: #14201c;
  --muted: #5e6b66;
  --card: #ffffff;
  --line: #ddd6c8;
  --accent: #1f6b57;
  --accent-dark: #154a3c;
  --accent-soft: #e6f2ed;
  --gold: #c4a35a;
  --shadow: 0 10px 30px rgba(20, 32, 28, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 32, 28, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
  --nav-h: 72px;
  --font: "Noto Sans TC", "PingFang HK", "Hiragino Sans CNS", "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PingFang HK", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244, 241, 235, 0.88);
  border-bottom: 1px solid rgba(221, 214, 200, 0.8);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand:hover { text-decoration: none; color: inherit; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(31, 107, 87, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -1px;
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--fg);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.nav a.is-active {
  background: var(--accent);
  color: #fff;
}

.nav a.is-active:hover { color: #fff; }

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #12352c;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 24, 0.25) 0%, rgba(10, 28, 24, 0.78) 70%, rgba(10, 28, 24, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 28, 24, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.75rem;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.btn-primary:hover { background: #f7f7f7; color: var(--accent-dark); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
}

.feature-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card .body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card .link {
  font-weight: 600;
  font-size: 0.92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 2.25rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent-dark);
  font-family: var(--serif);
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.about-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.about-copy,
.about-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy {
  padding: 1.4rem 1.45rem 1.55rem;
}

.about-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.about-copy h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 1.02rem;
  color: var(--accent-dark);
}

.about-copy p {
  margin: 0;
  color: #33433e;
}

.about-aside {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-aside img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-aside .caption {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}

.about-aside .caption h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.about-aside .caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.note {
  background: var(--accent-soft);
  border: 1px solid #cfe4db;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: #27463d;
}

.page-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #12352c;
}

.page-hero .hero-media,
.page-hero .hero-overlay { position: absolute; inset: 0; }

.page-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.8rem;
  width: 100%;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  max-width: 36rem;
}

.timeline {
  position: relative;
  padding-left: 0.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), #cfe4db);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(31, 107, 87, 0.12);
  z-index: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 21 / 9;
  background: var(--bg-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  line-height: 1.35;
}

.card-body p { margin: 0; color: #33433e; }

.meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0 0 0.45rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-state img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.empty-state .body {
  padding: 1.4rem 1.25rem 1.6rem;
}

.empty-state h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
}

.empty-state p {
  margin: 0 auto 1rem;
  max-width: 32rem;
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-card .thumb {
  background: var(--bg-deep);
  min-height: 120px;
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .body {
  padding: 1rem 1.15rem;
}

.form-stub {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem 1.4rem;
  margin-bottom: 1.5rem;
}

.form-stub h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.form-stub label {
  display: block;
  margin: 0.85rem 0 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-stub input,
.form-stub textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form-stub input:focus,
.form-stub textarea:focus {
  outline: 2px solid rgba(31, 107, 87, 0.25);
  border-color: var(--accent);
}

.form-stub button {
  margin-top: 1rem;
}

.form-stub button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  background: #10231e;
  color: rgba(255,255,255,0.78);
  margin-top: 1rem;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 2.4rem;
}

.site-footer strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.site-footer p {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 0.92rem;
}

.social-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

ul.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

ul.social a {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.88rem;
}

ul.social a:hover {
  background: rgba(255,255,255,0.16);
  text-decoration: none;
}

.credit {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 820px) {
  .feature-grid,
  .about-panel,
  .stats {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card .thumb {
    height: 160px;
  }

  .hero { min-height: 460px; }
  .hero h1 { max-width: none; }

  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}

@media (max-width: 520px) {
  .nav { width: 100%; }
  .nav a { flex: 1; text-align: center; }
}
