:root {
  --bg: #faf7f2;
  --bg-alt: #f0ebe3;
  --panel: #ffffff;
  --text: #2c2416;
  --muted: #6b5e4a;
  --green: #3d5a3a;
  --green-light: #5a7d52;
  --bark: #8b6914;
  --accent: #c4a574;
  --accent-dark: #9a7844;
  --border: #ddd4c4;
  --shadow: 0 12px 40px rgba(44, 36, 22, 0.08);
  --radius: 16px;
  --font: "Noto Sans TC", "Segoe UI", sans-serif;
  --font-serif: "Noto Serif TC", "Noto Sans TC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section { padding: 5rem 0; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.75rem;
}
.section-label.center { text-align: center; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.35; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-light) !important; text-decoration: none; }
.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(196, 165, 116, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(61, 90, 58, 0.2), transparent 50%),
    linear-gradient(160deg, #ebe4d8 0%, var(--bg) 55%, #e8efe6 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233d5a3a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 4rem 0;
}
.hero-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bark);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--green); }
.hero-lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 90, 58, 0.25);
}
.btn-primary:hover { background: var(--green-light); }
.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: rgba(255,255,255,0.6);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: var(--green);
}
.hero-stats span { font-size: 0.82rem; color: var(--muted); }

/* Split / cards */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.info-card h3 {
  color: var(--green);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.info-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.info-card dt { color: var(--muted); font-weight: 600; }
.info-note {
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-icon {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--green); }
.card p { font-size: 0.92rem; color: var(--muted); }

.pillars { background: var(--bg-alt); }

/* Plan */
.plan-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.plan-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.plan-item.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff 0%, #faf5eb 100%);
}
.plan-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  flex-shrink: 0;
}
.plan-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.plan-item p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.75rem; }
.plan-item ul {
  margin-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.plan-item li { margin-bottom: 0.25rem; }
.inline-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Works */
.work-card { overflow: hidden; padding: 0; }
.work-visual {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.work-visual.v1 {
  background: linear-gradient(135deg, #c8dcc0, #7a9e6e);
}
.work-visual.v2 {
  background: linear-gradient(135deg, #d4c4a8, #8b7355);
}
.work-visual.v3 {
  background: linear-gradient(135deg, #e8dcc8, #a89070);
}
.work-card h3, .work-card p { padding: 0 1.25rem; }
.work-card h3 { padding-top: 1rem; font-size: 1.05rem; color: var(--green); }
.work-card p { padding-bottom: 1.25rem; font-size: 0.9rem; color: var(--muted); }

/* Platform */
.platform-section { background: var(--green); color: #fff; }
.platform-section a { color: #e8f0e6; }
.platform-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.platform-section .section-label { color: var(--accent); }
.platform-copy h2 { color: #fff; }
.platform-copy p { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.platform-section .btn-primary {
  background: var(--accent);
  color: var(--text);
}
.tag-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tag-demo .chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
}
.tag-demo .chip:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
}
.platform-modes { display: flex; flex-direction: column; gap: 1rem; }
.mode-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1.25rem;
}
.mode-card h4 { margin-bottom: 0.35rem; }
.mode-card p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ESG */
.esg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.esg-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.esg-grid h3 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline-section { background: var(--bg-alt); }
.timeline {
  list-style: none;
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 5rem;
  border-left: 2px solid var(--accent);
  margin-left: 1rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}
.timeline span {
  position: absolute;
  left: -1rem;
  top: 0;
  transform: translateX(-100%);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bark);
  white-space: nowrap;
}

/* Visit */
.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.visit-list {
  list-style: none;
  margin-top: 1rem;
}
.visit-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.visit-map {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.visit-map p:first-child {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--green);
}
.muted { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0;
}
.footer-inner { text-align: center; }
.footer-inner p { margin-bottom: 0.35rem; font-size: 0.92rem; }
.footer-inner .muted { color: rgba(255,255,255,0.5); }
.footer-inner nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-inner nav a { color: var(--accent); }

.loading { font-size: 0.85rem; opacity: 0.7; }

@media (max-width: 900px) {
  .split, .platform-inner, .visit-inner, .card-grid.three, .esg-grid {
    grid-template-columns: 1fr;
  }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .timeline li { padding-left: 3.5rem; }
  .timeline span {
    position: static;
    display: block;
    transform: none;
    margin-bottom: 0.25rem;
  }
}
