@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  --bg-page: #ffffff;
  --bg-subtle: #faf8f5;
  --bg-card: #ffffff;
  --text-main: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --gold-primary: #8c6239;
  --gold-light: #b08354;
  --gold-hover: #6f4e2c;
  --gold-tint: rgba(140, 98, 57, 0.08);
  --border-light: #eae6df;
  --max-width: 1040px;
  --font-en: 'Montserrat', sans-serif;
  --font-tc: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-tc);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 頂部極簡固定導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.brand-zh {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1.3;
}

/* 桌面版導覽連結 */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.desktop-nav .nav-cta {
  background-color: var(--gold-primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 2px;
  border-bottom: none;
  font-size: 0.88rem;
  letter-spacing: 1px;
}

.desktop-nav .nav-cta:hover {
  background-color: var(--gold-hover);
  color: #ffffff;
}

/* 手機版漢堡選單 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px 20px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  text-decoration: none;
  color: var(--text-main);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.mobile-drawer a.active {
  color: var(--gold-primary);
  font-weight: 700;
}

.mobile-drawer a:last-child {
  border-bottom: none;
  margin-top: 8px;
  text-align: center;
  background: var(--gold-primary);
  color: #ffffff;
  padding: 12px;
}

/* 共用區塊與排版元件 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 680px;
}

.divider-gold {
  width: 48px;
  height: 2px;
  background-color: var(--gold-primary);
  margin: 20px 0 28px;
}

/* 按鈕系統 */
.btn-gold {
  display: inline-block;
  background-color: var(--gold-primary);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--text-main);
  color: var(--text-main);
  text-decoration: none;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* 圖片展示框 */
.media-frame {
  width: 100%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* 網格卡片 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.card-minimal {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 32px 28px;
  transition: border-color 0.2s ease;
}

.card-minimal:hover {
  border-color: var(--gold-light);
}

.card-num {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: block;
}

.card-minimal h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card-minimal p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* 報名資訊與 QR Code 區塊 */
.register-box {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--gold-light);
  padding: 44px;
}

.info-list {
  list-style: none;
  margin: 20px 0 28px;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.96rem;
  display: flex;
  gap: 12px;
}

.info-list li strong {
  min-width: 84px;
  color: var(--gold-primary);
  font-weight: 600;
}

.qr-panel {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.qr-panel img {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  display: block;
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--border-light);
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 極簡頁尾 */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 56px 20px;
  text-align: center;
  background-color: #ffffff;
}

.footer-en {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 6px;
}

.footer-zh {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  display: block;
  margin-bottom: 18px;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* 右下角浮動按鈕 */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 95;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
}

.float-register {
  background-color: var(--gold-primary);
  color: #ffffff;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.float-register:hover {
  background-color: var(--gold-hover);
}

.float-top {
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-size: 1.1rem;
  align-self: flex-end;
}

/* 響應式斷點 */
@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .grid-3,
  .grid-2,
  .register-box {
    grid-template-columns: 1fr;
  }

  .register-box {
    padding: 28px 20px;
  }

  .section {
    padding: 52px 0;
  }

  .section-title {
    font-size: 1.55rem;
  }
}