/* ═══════════════════════════════════════════════════
   COMPONENTS — 共用元件 (V2)
   .tag / .divider / .title-lg / .btn-outline / .btn-gold
   .stats / .gallery-grid / .brand-card / .cert-row
   前衛東方官網 V2
   ═══════════════════════════════════════════════════ */

/* ── 小上標 .tag ── */
.tag {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── 標題 .title-lg ── */
.title-lg {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 16px;
}

.title-lg--light {
  color: var(--bg);
}

.title-lg--center {
  text-align: center;
}

/* ── Divider 金色細線 ── */
.divider {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 22px 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ── 副標 .subtitle ── */
.subtitle {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  color: rgba(28, 27, 24, 0.78);
  line-height: 2;
  max-width: 780px;
  letter-spacing: 0.04em;
}

.subtitle--light {
  color: rgba(247, 245, 241, 0.88);
}

/* ══════════════════════════════════════════
   BUTTONS — 外框 / 金色 / 遮罩
══════════════════════════════════════════ */

/* 金線外框按鈕（Hero 上 30% 遮罩） */
.btn-outline {
  position: relative;
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  transition:
    background var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero 上的按鈕 — 30% 黑遮罩 + blur */
.btn-outline--glass {
  background: rgba(28, 27, 24, 0.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  border-color: var(--accent);
}

.btn-outline--glass:hover {
  background: var(--accent);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: var(--accent);
}

/* 深底上的金線外框 */
.btn-outline--dark {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.btn-outline--dark:hover {
  background: var(--accent);
  color: var(--dark);
}

/* 金色實心按鈕（CTA/LINE） */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 56px;
  background: var(--accent);
  color: #fff;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
  text-transform: uppercase;
}

.btn-gold:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(154, 132, 86, 0.35);
}

.btn-gold .gold-star {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  opacity: 0.9;
}

/* ══════════════════════════════════════════
   CONTAINER / SECTION
══════════════════════════════════════════ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: 100px 0;
}

.section--sm {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  padding: 0 24px 48px;
}

.section-header .tag {
  margin-bottom: 10px;
}

.section-header .title-lg {
  margin-bottom: 0;
}

.section-header .divider {
  margin: 20px auto 22px;
}

/* ══════════════════════════════════════════
   SPLIT — 左右交錯
══════════════════════════════════════════ */
.split {
  display: flex;
  align-items: stretch;
  min-height: 520px;
  background: var(--bg);
}

.split.reverse {
  flex-direction: row-reverse;
}

.split-img {
  flex: 1;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-text {
  flex: 1;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text .tag {
  margin-bottom: 10px;
}

.split-text .title-lg {
  margin-bottom: 10px;
}

.split-text .divider {
  margin: 18px 0 24px;
}

.split-text .subtitle {
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.95;
}

/* 分類細線列表（hover 右移 + 金色） */
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    padding-left var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out);
}

.cat-row:last-child {
  border-bottom: none;
}

.cat-row:hover {
  padding-left: 8px;
  color: var(--accent);
}

.cat-row-zh {
  font-family: 'Noto Serif TC', serif;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: inherit;
  transition: color var(--duration-normal) var(--ease-out);
}

.cat-row:hover .cat-row-zh {
  color: var(--accent);
}

.cat-row-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cat-row-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-left: 8px;
}

/* ══════════════════════════════════════════
   GALLERY GRID — 白字壓照片
══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  transition: background var(--duration-normal) var(--ease-out);
  z-index: 1;
}

.gallery-item:hover::before {
  background: rgba(28, 27, 24, 0.65);
}

.gallery-item-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 22px 22px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.95);
  transition: transform var(--duration-normal) var(--ease-out);
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(-10px);
}

.gallery-item-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 6px;
  line-height: 1.5;
}

.gallery-item-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: rgba(247, 245, 241, 0.7);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.gallery-item-story {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(247, 245, 241, 0.7);
  margin: 0;
  letter-spacing: 0.02em;
  max-width: 92%;
}

/* ══════════════════════════════════════════
   STATS — 大字數據 (trust)
══════════════════════════════════════════ */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 0 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  min-width: 120px;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  color: var(--ink);
  opacity: 0.85;
  letter-spacing: 0.18em;
  margin-top: 10px;
  text-transform: uppercase;
}

.stats--light .stat-number {
  color: var(--accent);
}

.stats--light .stat-label {
  color: rgba(247, 245, 241, 0.92);
  opacity: 1;
}

/* ══════════════════════════════════════════
   CERT ROW — 認證徽章
══════════════════════════════════════════ */
.cert-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 16px 0 0;
}

.cert-badge {
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(247, 245, 241, 0.06);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
  padding: 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.cert-badge:hover {
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.05);
}

/* 真實認證圖片 */
.cert-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #fff;
}

.cert-badge-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 11px;
  color: var(--ink);
  opacity: 0.9;
  letter-spacing: 0.1em;
  white-space: nowrap;
  line-height: 1.4;
  text-align: center;
}

.cert-row--light .cert-badge-label {
  color: rgba(247, 245, 241, 0.9);
  opacity: 1;
}

.cert-badge-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.cert-badge-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 10.5px;
  color: rgba(247, 245, 241, 0.92);
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-align: center;
}

.cert-row--light .cert-badge {
  border-color: rgba(247, 245, 241, 0.28);
}
.cert-row--light .cert-badge-text {
  color: rgba(247, 245, 241, 0.92);
}

.cert-row {
  padding-bottom: 40px;
}

/* ══════════════════════════════════════════
   FEAT GRID — 3 欄特色卡 (pathways)
══════════════════════════════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.feat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.feat-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--stone);
}

.feat-card-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.feat-card-body .tag {
  margin-bottom: 4px;
}

.feat-card-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.5;
}

.feat-card-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  color: rgba(28, 27, 24, 0.78);
  line-height: 1.85;
  margin: 0 0 18px;
  flex: 1;
  letter-spacing: 0.02em;
}

.feat-card .btn-outline {
  align-self: flex-start;
  padding: 10px 28px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
}

/* ══════════════════════════════════════════
   FEATURED BADGE — 台灣獨家金色小章
══════════════════════════════════════════ */
.featured-badge {
  display: inline-block;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(154, 132, 86, 0.35);
}

/* 響應式統一放最後 */
@media (max-width: 768px) {
  .tag {
    font-size: 10px;
    letter-spacing: 0.3em;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    padding: 0 20px 36px;
  }

  .container {
    padding: 0 20px;
  }

  .split {
    flex-direction: column !important;
    min-height: auto;
  }

  .split-img {
    min-height: 280px;
    width: 100%;
  }

  .split-text {
    padding: 40px 24px 48px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
  }

  .gallery-item-title {
    font-size: 14px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats {
    gap: 28px;
    padding: 20px 0 32px;
  }

  .stat {
    min-width: 100px;
  }

  .cert-row {
    gap: 14px;
  }

  .cert-badge {
    width: 88px;
    height: 88px;
  }

  .cert-badge-mark {
    font-size: 16px;
  }

  .cert-badge-text {
    font-size: 9.5px;
  }
}
