@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@600;700&display=swap");

:root {
  --primary: #2e5283;
  --primary-dark: #1f3b63;
  --accent: #9b8400;
  --accent-soft: #faf4d9;
  --bg: #f9f7f2;
  --bg-light: #ffffff;
  --card: #ffffff;
  --text: #1a1f2b;
  --text-soft: #5a636f;
  --text-lighter: #8a929e;
  --border: #e0ddd6;
  --shadow-sm: rgba(0, 0, 0, 0.06);
  --shadow-md: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
}

.brand-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-lighter);
  line-height: 1.2;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Header nav buttons */
.header-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.header-nav-btn--ghost {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
}

.header-nav-btn--ghost:hover {
  background: rgba(46, 82, 131, 0.08);
}

.header-nav-btn--primary {
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--primary);
}

.header-nav-btn--primary:hover {
  background: var(--primary-dark, #1e3a6e);
  border-color: var(--primary-dark, #1e3a6e);
}

.store-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.store-link:hover {
  transform: scale(1.02);
}

.store-badge {
  height: 36px;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
}

/* ========== BUTTONS ========== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary) 0%, #3d6fa0 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(46, 82, 131, 0.25);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 82, 131, 0.35);
}

.cta-button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.cta-button.ghost:hover {
  background: rgba(46, 82, 131, 0.05);
  transform: translateY(-1px);
}

/* ========== HERO ========== */
.hero {
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(46, 82, 131, 0.03) 0%, rgba(155, 132, 0, 0.02) 100%);
}

/* 桌面：左右雙欄 */
.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-theme-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.hero-title {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--primary);
  line-height: 1.1;
}

.hero-content {
}

.hero-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ========== HIGHLIGHTS ========== */
.highlights {
  padding: 72px 0;
  background: linear-gradient(150deg, #dce8f8 0%, #f0edda 55%, #e8dfc8 100%);
  position: relative;
  overflow: hidden;
}

.highlights::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,132,0,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* 標題區塊 */
.highlights-header {
  text-align: center;
  margin-bottom: 56px;
}

.highlights-title {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px;
  line-height: 1.2;
}

.highlights-intro {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.9;
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}

/* 要點區塊 */
.highlights-points {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.highlights-point {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.highlights-point:first-child {
  justify-content: flex-end;
  align-items: flex-end;
  padding-left: 0;
  padding-right: 16px;
}

.highlights-point:last-child {
  justify-content: flex-start;
  align-items: flex-start;
  padding-right: 0;
  padding-left: 16px;
}

.highlights-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
  flex-shrink: 0;
  align-self: stretch;
}

.highlights-point__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(46,82,131,0.15));
}

.highlights-point__body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.3;
}

.highlights-point__body p {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.8;
}

/* 大數字績效 */
.highlights-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 6px 0 10px;
}

.highlights-stat__num {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -1px;
  white-space: nowrap;
}

.highlights-stat__unit {
  font-size: 0.5em;
  font-weight: 700;
  vertical-align: baseline;
}

.highlights-stat__meta {
  font-size: 16px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.5;
}

.highlights-perf {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 4px;
}

.highlights-perf__main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.highlights-point__sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 6px;
  line-height: 1.4;
}

.highlights-point__body .highlights-point__desc {
  font-size: 16px;
  color: var(--text-soft);
  margin: 16px 0 0;
  line-height: 1.8;
}

.highlights-stat__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  margin-left: 4px;
}

.highlights-compare {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.highlights-compare__vs {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--text-lighter);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.highlights-compare__text {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.5;
}

.highlights-compare__text strong {
  color: var(--text);
  font-weight: 700;
}

/* RWD: 手機改為上下堆疊 */
@media (max-width: 640px) {
  .highlights-points {
    flex-direction: column;
    gap: 36px;
  }
  .highlights-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  }
  .highlights-point,
  .highlights-point:first-child,
  .highlights-point:last-child {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* ========== FEATURES ========== */
.features {
  padding: 48px 0 40px;
  background: var(--bg);
  scroll-margin-top: 88px;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  display: block;
}

.section-title {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
}

/* PC 版：標題移入卡片欄上方，靠左對齊 */
.feature__section-title {
  text-align: left;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 1023px) {
  .feature__section-title {
    display: none;
  }
  .features-mobile__title {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 0 16px 20px;
    margin: 0;
    line-height: 1.3;
  }
}

/* ===== feature__container 佈局 ===== */
.feature__container {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.feature__container--reverse {
  grid-template-columns: 1fr 1fr;
}

.feature__container--reverse .feature__head {
  order: 2;
}

.feature__container--reverse .feature__foot {
  order: 1;
}

@media (min-width: 1024px) {
  .feature__container {
    display: grid;
  }
}

/* ===== 左側：分類清單區域 ===== */
.feature__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature__heading {
  margin: 0;
}

.feature__title {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin: 0;
}

.feature__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== 6 列分類佈局 ===== */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cols.cols-xs {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
}

@media (max-width: 1100px) {
  .cols.cols-xs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cols {
    grid-template-columns: 1fr;
  }
  .cols.cols-xs {
    grid-template-columns: 1fr;
  }
}

.col {
  min-width: 0;
}

.col.col-4 {
  flex: 1;
}

/* ===== 分類卡片 ===== */
.cols-xs {
  counter-reset: category-counter;
}

.category {
  counter-increment: category-counter;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.category:hover {
  border-color: var(--accent);
  background: rgba(155, 132, 0, 0.03);
  transform: translateY(-2px);
}

.category.active {
  border-color: var(--accent);
  border-width: 1px;
  background: rgba(155, 132, 0, 0.06);
  box-shadow: none;
}

.category.active .category__title {
  color: var(--accent);
}

.category__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1.4;
}

.category__title::before {
  content: counter(category-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: "Noto Serif TC", serif;
  flex-shrink: 0;
  transition: background 0.25s;
}

.category.active .category__title::before {
  background: var(--accent);
}

.category__desc {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
  padding-left: 34px; /* 24px 圓圈 + 10px gap */
}

/* ===== 操作提示小字 ===== */
.feature__hint {
  font-size: 13px;
  color: var(--text-lighter);
  text-align: center;
  padding-top: 12px;
  letter-spacing: 0.02em;
}

/* ===== 右側：預覽圖 ===== */

/* .feature__img 的主要樣式由後面的 phone-frame 區塊統一定義 */

/* ===== Mobile: 卡片輪播 ===== */
.features-mobile {
  display: none;
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

@media (max-width: 1023px) {
  .feature__container {
    display: none !important;
  }
  .features-mobile {
    display: block;
  }
}

.features-slider {
  display: flex;
  width: 100%;
  will-change: transform;
}

.feature-card {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.feature-card h3::before {
  display: none;
}

.feature-card h3 .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: "Noto Serif TC", serif;
  flex-shrink: 0;
}

.feature-card img {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  background: transparent;
  display: block;
  order: 1; /* 確保圖片永遠在文字下方 */
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 16px 8px;
  line-height: 1.3;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 16px 16px;
  line-height: 1.7;
  text-align: center;
}

/* ===== 功能總覽切換按鈕 ===== */
.features-overview-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 10px 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  font-family: "Noto Sans TC", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
}

.features-overview-toggle:hover {
  color: var(--accent);
}

.features-overview-toggle__icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.features-overview-toggle[aria-expanded="true"] .features-overview-toggle__icon {
  transform: rotate(180deg);
}

.features-overview-toggle[aria-expanded="true"] .features-overview-toggle__label::before {
  content: "收起";
}

.features-overview-toggle[aria-expanded="false"] .features-overview-toggle__label::before {
  content: "查看全部功能";
}

.features-overview-toggle__label {
  font-size: 0; /* 隐藏原始 text，用 ::before 控制文字 */
}

/* ===== 總覽網格 ===== */
.features-overview {
  padding: 0 16px 16px;
}

.features-slider-section {
  position: relative;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 4px;
}

.features-slider-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-lighter);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 10px 0 8px;
}

.features-overview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.features-overview__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.features-overview__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.features-overview__item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
  line-height: 1.3;
}

.features-overview__item p {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ===== 輪播箭頭 ===== */
.slider-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  z-index: 10;
}

.slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.85);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  border-color: var(--primary);
  background: rgba(46, 82, 131, 0.06);
  transform: scale(1.08);
}

.slider-arrow:active {
  transform: scale(0.95);
}

/* ===== 輪播點點 ===== */
.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px 0 0;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 31, 43, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot:hover {
  background: rgba(26, 31, 43, 0.4);
}

.slider-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(46, 82, 131, 0.25);
}

/* ========== DOWNLOAD CTA ========== */
.download-cta {
  padding: 96px 0;
  background: linear-gradient(150deg, #dce8f8 0%, #f0edda 55%, #e8dfc8 100%);
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,82,131,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  text-align: center;
}

/* download section QR code 圖（桌機安常顯示，手機隱藏） */
.download-qr {
  flex-shrink: 0;
}

.download-qr__img {
  width: clamp(160px, 18vw, 240px);
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.download-eyebrow {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.download-text h2 {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.2;
}

.download-subheading {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0 0 28px;
  line-height: 1.7;
}

.download-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-perks li {
  font-size: 15px;
  color: #1a2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-perks li::before {
  content: '✓';
  color: #f0c040;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.download-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge-large {
  height: 48px;
  display: block;
  transition: transform 0.2s ease;
}

.store-badge-large:hover {
  transform: translateY(-2px);
}

/* 右側裝飾圓 */
.download-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-badge-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(46,82,131,0.35);
  background: rgba(46,82,131,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  box-shadow: 0 0 40px rgba(46,82,131,0.12), inset 0 0 30px rgba(46,82,131,0.04);
}

.download-badge-circle__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.download-badge-circle__main {
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
  white-space: pre-line;
}

.download-badge-circle__sub {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .download-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
  .download-qr {
    display: none;
  }
  .download-visual {
    display: none;
  }
  .download-badges {
    justify-content: center;
  }
  .download-perks li {
    justify-content: center;
  }
}

/* ========== PHONE FRAME ========== */
.phone-frame {
  width: 338px;
  border-radius: 34px;
  background: transparent !important;
  display: block;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari fix */
}

.feature__img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  vertical-align: top;
}

.feature__foot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  background: transparent !important;
}

figure.feature__foot {
  background: transparent !important;
}

/* Mobile/slider cards: keep images consistent and transparent */
.features-mobile .feature-card img,
.feature-card img{
  width: 100%;
  height: auto;
  display: block;
  background: none;
  margin: 0 auto;
}

@media (max-width: 1023px){
  .phone-frame{ display: none; }
}
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}

.footer-brand h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
  white-space: nowrap;
}

.footer-bottom {
  text-align: right;
}

.footer-company,
.footer-address,
.footer-copyright {
  font-size: 12px;
  color: var(--text-lighter);
  margin: 2px 0;
  line-height: 1.6;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.feature-card {
  animation: none;
}

.highlight-card {
  animation: fadeInUp 0.6s ease both;
}

.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }

/* ========== RESPONSIVE ========== */
@media (min-width: 1024px) {
  .features-mobile {
    display: none;
  }
}

@media (max-width: 1023px) {
  .feature__container {
    display: none !important;
  }
  .features-mobile {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .header-nav-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 48px 0 0;
  }

  /* 行動版：圖在上、文字在下，單欄堆疊 */
  .hero-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual {
    order: -1; /* 圖片移到最上方 */
    margin-top: -48px;   /* 蓋掉 hero 上方 padding，緊貼 header */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
  }

  .hero-theme-img {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-text {
    padding: 0 0 10px;
  }

  .highlights {
    padding: 48px 0;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .download-cta {
    padding: 60px 0;
  }

  .download-inner h2 {
    font-size: clamp(24px, 3vw, 32px);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    justify-content: center;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 0;
  }

  .store-badge {
    height: 32px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-intro {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-ctas {
    gap: 8px;
    margin-bottom: 16px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .highlights {
    padding: 40px 0;
  }

  .section-label {
    font-size: 11px;
  }

  .section-title {
    font-size: 24px;
  }

  .highlights-grid {
    gap: 16px;
  }

  .highlight-card {
    padding: 20px;
  }

  .highlight-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .highlight-card p {
    font-size: 13px;
  }

  .features {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-image {
    height: 160px;
  }

  .feature-title {
    font-size: 15px;
  }

  .feature-desc {
    font-size: 13px;
  }

  .download-cta {
    padding: 48px 0;
  }

  .download-inner h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .download-subheading {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .download-badges {
    gap: 12px;
  }

  .store-badge-large {
    height: 40px;
  }

  .site-footer {
    padding: 24px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-brand h3 {
    font-size: 14px;
  }

  .footer-company,
  .footer-address,
  .footer-copyright {
    font-size: 12px;
    margin: 2px 0;
  }
}

/* ========== QR CODE MODAL ========== */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.qr-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: qr-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes qr-pop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.qr-modal__img {
  width: clamp(200px, 30vw, 280px);
  height: auto;
  display: block;
  border-radius: 8px;
}

.qr-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.qr-modal__close:hover {
  color: #333;
  background: #f0f0f0;
}
