/* ===== 全站共用 Reset & 基礎樣式 ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR 通用樣式 ===== */
header.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #ffffffd9;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.nav-left .logo {
  font-size: 20px;
  font-weight: 700;
  color: #e67e22;
  letter-spacing: 0.5px;
}

.nav-center a,
.nav-right a {
  margin: 0 10px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-right a.nav-btn {
  padding: 6px 14px;
  background: #e67e22;
  color: #fff;
  border-radius: 999px;
}

.lang-switch {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 8px;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 28px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  min-width: 120px;
}

.lang-menu a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
}

.lang-menu a:hover {
  background: #f2f2f2;
}

.lang-switch:hover .lang-menu {
  display: block;
}

/* 漢堡按鈕（桌面隱藏，手機顯示） */
.nav-toggle {
  display: none;                 /* 在 RWD 區塊中會打開 */
  border: 1px solid #e5e7eb;     /* 淺灰邊框 */
  background: #ffffff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 4px;
  margin-left: 8px;
  margin-right: 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.nav-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.3);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #111827;           /* 深灰色線條 */
  border-radius: 999px;
  margin: 3px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 手機選單容器（預設關閉） */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 16px 14px;
}

.mobile-nav a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ===== 全站共用 section 樣式 ===== */
section.section {
  padding: 50px 0;
}

.section-header {
  text-align: left;
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e67e22;
  margin-bottom: 6px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 15px;
  color: #555;
  max-width: 720px;
}

.section-alt {
  background: #f3f4f6;
}

/* ===== App Download Card 樣式 ===== */
.download-store-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.download-store-card img.qr {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.download-store-card .info {
  flex: 1;
}

.download-store-card .info h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #111;
}

.download-store-card .info p {
  font-size: 14px;
  margin: 0;
  color: #555;
}

/* Footer 通用樣式可依需要覆寫 */

/* RWD ====================================================== */
@media (max-width: 900px) {
  .nav-wrapper {
    padding: 8px 12px;
    gap: 8px;
  }

  /* 中央與右側選單在手機隱藏，改由漢堡 + mobile-nav 呈現 */
  .nav-center,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* 手機展開選單：當 body.nav-open 時顯示 */
  body.nav-open .mobile-nav {
    display: block;
  }

  /* 漢堡圖示變成 X 狀態（簡單動畫） */
  body.nav-open .nav-toggle-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  body.nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}