@charset "UTF-8";
/* =========================================================================
   article-photo.css — 文章頁日系編輯雜誌風格擴充
   依賴 articles-redesign.css 的 a-hero / a-section 基礎
   --------
   提供：全幅英雄照、左右交錯圖文、章節導航小點、滾動顯現、Pull-quote、
        診斷步驟編號、FAQ accordion、價格 badge、章間大字、照片佔位
   ========================================================================= */


/* ── 1. Hero：全幅圖像版 ── */
.a-hero--visual {
  position: relative;
  min-height: 82vh;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
  background: #1a1814;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.a-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 1;
  transition: transform 14s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.a-hero--visual:hover .a-hero-bg { transform: scale(1.04); }

.a-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(248,245,238,0.82) 62%,
    rgba(248,245,238,1.00) 100%
  );
  pointer-events: none;
}

.a-hero-glass {
  position: relative;
  z-index: 2;
  padding: clamp(48px,7vw,96px) 0 clamp(48px,6vw,80px);
}

/* hero 頂部：左對齊版 */
.a-hero--visual .a-breadcrumb { text-align: left; margin-bottom: var(--a-gap-md); }
.a-hero--visual .a-hero-title  { text-align: left; margin-left: 0; margin-right: 0; max-width: 24ch; }
.a-hero--visual .a-hero-lead   { text-align: left; margin-left: 0; margin-right: 0; }
.a-hero--visual .a-hero-eyebrow { margin-left: 0; }
.a-hero--visual .a-hero-eyebrow::before { display: none; }
.a-hero--visual .a-hero-eyebrow::after  { width: 40px; }

/* 章節標記紅線 */
.a-hero-chapter-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-jp);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.44em;
  color: var(--shu);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.a-hero-chapter-mark::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--shu);
}

/* hero meta — 水平排列 */
.a-hero--visual .a-hero-meta {
  margin-top: var(--a-gap-md);
  justify-content: flex-start;
}

/* TL;DR：在 visual hero 中調整 */
.a-hero--visual .a-tldr { margin-left: 0; margin-right: 0; margin-top: var(--a-gap-lg); }


/* ── 2. 交錯圖文 (Split Layout) ── */
.a-section--split .container { max-width: 1040px; }

.a-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* 讓段落 prose 在 split 欄位中不受 max-width 限制 */
.a-split .a-prose { max-width: none; }
.a-split .a-callout { max-width: none; }


/* ── 3. 照片框架 ── */
.a-photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--washi-deep, #ede9df);
  border-radius: 2px;
}
.a-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(31,29,26,0.12);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.a-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.85s cubic-bezier(0.25,0.46,0.45,0.94);
}
.a-photo-frame:hover img { transform: scale(1.03); }

/* 照片編號標籤 */
.a-photo-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: var(--font-jp);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  color: rgba(248,245,238,0.92);
  background: rgba(26,24,20,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px 3px;
}

/* 照片說明文字 */
.a-photo-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--font-jp);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--sumi-soft);
  line-height: 1.75;
  opacity: 0.72;
}
.a-photo-caption::before {
  content: '';
  display: block;
  width: 18px;
  min-width: 18px;
  height: 1px;
  background: currentColor;
  margin-top: 0.58em;
  flex-shrink: 0;
}


/* ── 4. Full-width 照片區塊（非 split 版） ── */
.a-photo-block {
  max-width: var(--a-measure-wide);
  margin: var(--a-gap-xl) auto;
}


/* ── 5. 節間大字裝飾 ── */
.a-kigo {
  display: block;
  font-family: var(--font-jp);
  font-size: clamp(5rem,12vw,10rem);
  line-height: 1;
  color: var(--sumi);
  opacity: 0.038;
  text-align: center;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  margin: calc(-1 * var(--a-gap-md)) auto;
}


/* ── 6. 滾動顯現 ── */
.a-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.72s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.72s cubic-bezier(0.25,0.46,0.45,0.94);
}
.a-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.a-reveal-delay-1 { transition-delay: 0.10s; }
.a-reveal-delay-2 { transition-delay: 0.20s; }
.a-reveal-delay-3 { transition-delay: 0.32s; }
.a-reveal-delay-4 { transition-delay: 0.44s; }


/* ── 7. 側邊章節導航小點 ── */
.a-chapter-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px 6px;
}

.a-chapter-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(31,29,26,0.45);
  background: transparent;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s, background 0.3s, transform 0.3s, border-color 0.3s;
  position: relative;
}
.a-chapter-dot::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-jp);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--sumi);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.a-chapter-dot:hover::after,
.a-chapter-dot.is-active::after { opacity: 0.65; }
.a-chapter-dot.is-active {
  background: var(--shu);
  border-color: var(--shu);
  opacity: 1;
  transform: scale(1.5);
}
.a-chapter-dot:hover:not(.is-active) {
  opacity: 0.7;
  transform: scale(1.2);
}

@media (max-width: 1280px) { .a-chapter-nav { display: none; } }


/* ── 8. Pull-quote 強化版 ── */
.a-pullquote--ja {
  max-width: var(--a-measure);
  margin: var(--a-gap-xl) auto;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--shu);
  font-family: var(--font-jp);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--sumi);
}
.a-pullquote--ja cite {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--shu);
  margin-top: 14px;
  opacity: 0.8;
}


/* ── 9. 價格表 badge ── */
.a-price-badge {
  display: inline-block;
  font-family: var(--font-jp);
  font-weight: 600;
  color: var(--sumi);
  background: rgba(74,107,77,0.08);
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}


/* ── 10. 診斷步驟條目 ── */
.a-steps {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  counter-reset: steps;
}
.a-steps li {
  counter-increment: steps;
  position: relative;
  padding: 16px 0 16px 56px;
  border-bottom: var(--a-rule-soft);
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 1.95;
  color: var(--sumi-soft);
}
.a-steps li:last-child { border-bottom: none; }
.a-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(31,29,26,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--sumi);
  letter-spacing: 0;
}


/* ── 11. FAQ accordion 風格 ── */
.a-faq { max-width: var(--a-measure); margin: 0 auto; }
.a-faq-item {
  border-top: var(--a-rule);
  padding: var(--a-gap-md) 0;
}
.a-faq-item:last-child { border-bottom: var(--a-rule); }
.a-faq-q {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: var(--a-fs-h3);
  color: var(--sumi);
  letter-spacing: var(--a-track-tight);
  margin: 0 0 var(--a-gap-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.a-faq-q::before {
  content: 'Q';
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 1rem;
  color: var(--shu);
  letter-spacing: 0;
  flex-shrink: 0;
  margin-top: 2px;
}
.a-faq-a {
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 2.0;
  color: var(--sumi-soft);
  padding-left: 28px;
  margin: 0;
}


/* ── 12. 交替背景節 ── */
.a-section--offset { background: rgba(238,234,226,0.45); }


/* ── 13. 照片佔位：圖片尚未放入時顯示灰框 ── */
.a-photo-frame img,
.a-hero-bg {
  background: #e8e4dc;
}
.a-photo-frame img:not([src]),
.a-photo-frame img[src=""] {
  min-height: 240px;
}


/* ── 14. 手機適配 ── */
@media (max-width: 768px) {
  .a-hero--visual { min-height: 75vw; }

  .a-split {
    grid-template-columns: 1fr;
    gap: var(--a-gap-md);
  }
  /* 手機：圖片永遠在上 */
  .a-split-img { order: -1; }

  .a-hero--visual .a-tldr { padding-left: 18px; }
  .a-kigo { font-size: clamp(3.5rem,16vw,6rem); }
  .a-pullquote--ja { padding-left: 18px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .a-hero-bg { transition: none; }
  .a-reveal { opacity: 1; transform: none; transition: none; }
  .a-photo-frame img { transition: none; }
}
