/* Step 1A Redo｜首頁重做
   原則：Prototype = 成品；不再使用文字 overlay，避免疊字。
*/

:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --wood: #9b5b2a;
  --ink: #2d241d;
  --muted: #766657;
  --line: rgba(139, 92, 43, .18);
  --shadow: 0 18px 48px rgba(110, 76, 40, .11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  background: rgba(255, 248, 236, .97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  width: min(1480px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(110, 76, 40, .12);
}

.brand strong {
  display: block;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: .03em;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  font-weight: 900;
  font-size: clamp(14px, 1.05vw, 17px);
}

.nav a {
  text-decoration: none;
  padding: 10px 0;
  position: relative;
}

.nav a.active,
.nav a:hover {
  color: var(--wood);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 4px;
  border-radius: 999px;
  background: var(--wood);
}

.home {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 232, 190, .42), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(232, 207, 164, .26), transparent 28rem),
    var(--cream);
}

.hero {
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.content-grid {
  width: min(1480px, calc(100% - 48px));
  margin: 24px auto 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.visual-panel {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,253,248,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.visual-panel a,
.visual-panel img {
  display: block;
  width: 100%;
}

.visual-panel img {
  height: auto;
}

.footer-cta {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto 52px;
  border-radius: 24px;
  background: rgba(255,253,248,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 86px;
  padding: 18px 26px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.footer-cta strong {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: .06em;
}

.vocus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--wood);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(155,91,42,.18);
}

.social {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }
}


/* Header Layout Hotfix｜match approved homepage header */
.site-header {
  overflow-x: clip !important;
}

.site-header .header-inner {
  width: min(1480px, calc(100% - 48px)) !important;
  min-height: 92px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.site-header .brand {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.site-header .brand img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.site-header nav.nav,
.site-header .nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: clamp(16px, 2vw, 34px) !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  font-weight: 900 !important;
}

.site-header nav.nav a,
.site-header .nav a {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

body:not(:has(.home)) .footer-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 56px auto 64px;
}

@media (max-width: 900px) {
  .site-header .header-inner {
    min-height: auto !important;
    padding: 14px 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }

  .site-header nav.nav,
  .site-header .nav {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }
}
