/* ============================================================
   style-home.css — probdecision.com 首頁+門面頁獨立樣式
   命名空間：pd-*  ｜  不 import style-layout.css
   對照參考站：mckinsey.com 實查真實區塊順序：
   header(左logo+橫向導覽+純文字CTA) → hero(左大型襯線標題+右真實攝影案例卡)
   → bento grid不規則拼貼內容牆(圖片卡+漸層卡混排，非齊列網格)
   → newsletter訂閱橫幅 → 精選文章純文字列表 → CTA → footer

   🔴 style-base.css的--font-editorial('Playfair Display', Georgia, serif)
   不含中文字符集，中文標題會fallback跳過襯線字體。此站.pd-root內覆寫
   加入Noto Serif TC，其餘沿用style-base.css共用檔的站不受影響。
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@700;900&display=swap');

.pd-root {
  --font-editorial: 'Noto Serif TC', 'Playfair Display', Georgia, serif;
  --pd-bg:        #08111c;
  --pd-bg-2:      #0d1826;
  --pd-panel:     #101d2e;
  --pd-line:      rgba(255,255,255,.10);
  --pd-text:      #f5f7fa;
  --pd-text-dim:  rgba(245,247,250,.64);
  --pd-accent:    #3b82f6;
  --pd-accent-2:  #60a5fa;
  --pd-gold:      #d4af6a;
  font-family: var(--font-body);
}
.pd-root a { color: inherit; }
.pd-serif { font-family: var(--font-editorial); }

/* ── Header：左logo+緊鄰橫向導覽+純文字CTA（非按鈕） ──────── */
.pd-header { position: sticky; top: 0; z-index: 50; background: var(--pd-bg); border-bottom: 1px solid var(--pd-line); }
.pd-header-inner { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 40px; }
.pd-logo { font-family: var(--font-editorial); font-weight: 700; font-size: 20px; color: var(--pd-text); display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.pd-logo img { height: 24px; width: auto; }
.pd-nav { display: flex; gap: 26px; margin-right: auto; }
.pd-nav a { font-size: 14px; color: var(--pd-text-dim); transition: color .2s; }
.pd-nav a:hover, .pd-nav a.active { color: var(--pd-text); }
.pd-header-cta { font-size: 13px; font-weight: 600; color: var(--pd-text); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.pd-header-cta:hover { border-color: var(--pd-text); }

/* ── Hero：左巨型襯線標題 + 右真實攝影案例卡 ───────────────── */
.pd-hero { background: var(--pd-bg); padding: 72px 24px 0; }
.pd-hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.pd-hero h1 { font-family: var(--font-editorial); font-weight: 700; font-style: italic; font-size: clamp(38px,5vw,60px); line-height: 1.12; color: var(--pd-text); margin-bottom: 26px; letter-spacing: -.01em; }
.pd-hero p { font-size: 16px; line-height: 1.75; color: var(--pd-text-dim); margin-bottom: 30px; max-width: 460px; }
.pd-hero-meta { display: flex; align-items: center; gap: 16px; }
.pd-hero-author { font-size: 13px; color: var(--pd-text-dim); }
.pd-hero-card { position: relative; border-radius: 2px; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #000; }
.pd-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.pd-hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 55%, transparent 100%); }
.pd-hero-card-inner { position: relative; z-index: 1; padding: 28px; }
.pd-hero-card-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-accent-2); margin-bottom: 12px; }
.pd-hero-card h2 { font-family: var(--font-editorial); font-size: 23px; font-weight: 700; line-height: 1.35; color: #fff; }

/* ── Btn ────────────────────────────────────────────────── */
.pd-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 12px 26px; border-radius: 2px; transition: all .2s; }
.pd-btn-primary { background: var(--pd-accent); color: #fff; }
.pd-btn-primary:hover { background: var(--pd-accent-2); }
.pd-btn-outline { border: 1px solid rgba(255,255,255,.3); color: var(--pd-text); }
.pd-btn-outline:hover { background: var(--pd-text); color: var(--pd-bg); }

/* ── Bento Grid 不規則拼貼內容牆（依mckinsey.com真實比例） ─── */
.pd-bento { max-width: 1240px; margin: 0 auto; padding: 56px 24px 0; }
.pd-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 18px;
}
.pd-bento-item {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: var(--pd-panel);
  border: 1px solid var(--pd-line);
}
.pd-bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-bento-item.pd-has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.15) 60%, transparent 100%); }
.pd-bento-item.pd-tall { grid-row: span 2; }
.pd-bento-item.pd-wide { grid-column: span 2; }
.pd-bento-item.pd-gradient-a { background: linear-gradient(135deg,#0c1b2e,#134876 65%,#1c63a8); }
.pd-bento-item.pd-gradient-b { background: linear-gradient(150deg,#000,#0c1b2e); }
.pd-bento-tag { position: relative; z-index: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pd-accent-2); margin-bottom: 10px; }
.pd-bento-item h3 { position: relative; z-index: 1; font-family: var(--font-editorial); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--pd-text); }
.pd-bento-item.pd-has-img h3 { color: #fff; }
.pd-bento-item p { position: relative; z-index: 1; font-size: 13px; line-height: 1.65; color: var(--pd-text-dim); margin-top: 8px; }

/* ── Tag pill（about頁專業領域標籤用） ─────────────────────── */
.pd-trending-tag { display: inline-block; font-size: 13px; color: var(--pd-text-dim); padding: 6px 14px; border: 1px solid var(--pd-line); border-radius: 999px; transition: all .2s; }
.pd-trending-tag:hover { border-color: var(--pd-accent-2); color: var(--pd-text); }

/* ── Section ────────────────────────────────────────────── */
.pd-section { padding: 80px 24px; background: var(--pd-bg); }
.pd-section.pd-alt { background: var(--pd-bg-2); }
.pd-section-inner { max-width: 1240px; margin: 0 auto; }
.pd-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.pd-section-head h2 { font-family: var(--font-editorial); font-weight: 700; font-size: clamp(24px,3vw,32px); color: var(--pd-text); }
.pd-section-head h2 em { font-style: italic; color: var(--pd-accent-2); }

/* ── Newsletter 訂閱橫幅（依mckinsey.com真實區塊） ─────────── */
.pd-subscribe { background: var(--pd-bg-2); border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); padding: 64px 24px; }
.pd-subscribe-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.pd-subscribe h2 { font-family: var(--font-editorial); font-style: italic; font-weight: 700; font-size: clamp(24px,3.4vw,34px); color: var(--pd-text); margin-bottom: 14px; }
.pd-subscribe p { color: var(--pd-text-dim); font-size: 15px; margin-bottom: 26px; }

/* ── 精選文章純文字列表（依mckinsey.com真實區塊） ──────────── */
.pd-article-list { max-width: 900px; margin: 0 auto; }
.pd-article-row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--pd-line); align-items: center; }
.pd-article-row-img { width: 120px; height: 80px; border-radius: 3px; background: var(--pd-panel); flex-shrink: 0; object-fit: cover; }
.pd-article-row-title { font-family: var(--font-editorial); font-size: 17px; font-weight: 700; color: var(--pd-text); line-height: 1.45; }
.pd-article-row-date { font-size: 12px; color: var(--pd-text-dim); margin-top: 8px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.pd-faq { max-width: 780px; margin: 0 auto; }
.pd-faq-item { border-bottom: 1px solid var(--pd-line); padding: 24px 0; }
.pd-faq-q { font-size: 15px; font-weight: 700; color: var(--pd-text); margin-bottom: 10px; }
.pd-faq-a { font-size: 14px; line-height: 1.8; color: var(--pd-text-dim); }

/* ── CTA band ───────────────────────────────────────────── */
.pd-cta-band { background: linear-gradient(120deg,#0c1b2e,#000 75%); border-top: 1px solid var(--pd-line); padding: 76px 24px; text-align: center; }
.pd-cta-band h2 { font-family: var(--font-editorial); font-style: italic; font-weight: 700; font-size: clamp(24px,3.4vw,36px); color: var(--pd-text); margin-bottom: 14px; }
.pd-cta-band p { color: var(--pd-text-dim); font-size: 15px; margin-bottom: 30px; }

/* ── Page hero (about/legal) ────────────────────────────── */
.pd-page-hero { padding: 64px 24px 48px; text-align: center; background: var(--pd-bg-2); border-bottom: 1px solid var(--pd-line); }
.pd-page-hero h1 { font-family: var(--font-editorial); font-style: italic; font-weight: 700; font-size: clamp(26px,4vw,40px); color: var(--pd-text); }
.pd-page-hero p { color: var(--pd-accent-2); font-size: 14px; font-weight: 600; margin-top: 10px; }
.pd-avatar { width: 108px; height: 108px; border-radius: 50%; border: 3px solid var(--pd-accent-2); object-fit: cover; margin: 0 auto 20px; display: block; }

.pd-legal { max-width: 720px; margin: 0 auto; padding: 56px 24px; color: var(--pd-text); }
.pd-legal h1 { font-family: var(--font-editorial); font-weight: 700; font-size: clamp(24px,4vw,34px); margin-bottom: 10px; }
.pd-legal .pd-updated { font-size: 13px; color: var(--pd-text-dim); margin-bottom: 36px; }
.pd-legal h2 { font-family: var(--font-editorial); font-size: 19px; font-weight: 700; margin-top: 34px; margin-bottom: 12px; color: var(--pd-text); }
.pd-legal p, .pd-legal li { font-size: 14.5px; line-height: 1.85; color: var(--pd-text-dim); margin-bottom: 14px; }
.pd-legal ul { padding-left: 20px; }
.pd-legal a { color: var(--pd-accent-2); }
.pd-breadcrumb { font-size: 13px; color: var(--pd-text-dim); margin-bottom: 20px; }
.pd-breadcrumb a { color: var(--pd-text-dim); }
.pd-breadcrumb span { margin: 0 6px; }
.pd-warning-box { background: rgba(212,175,106,.08); border: 1px solid rgba(212,175,106,.3); border-left: 3px solid var(--pd-gold); border-radius: 0 4px 4px 0; padding: 14px 18px; margin: 20px 0; }
.pd-warning-box p { margin-bottom: 0; color: var(--pd-text); }

/* ── Footer ─────────────────────────────────────────────── */
.pd-footer { background: #000; border-top: 1px solid var(--pd-line); padding: 60px 24px 28px; }
.pd-footer-inner { max-width: 1240px; margin: 0 auto; }
.pd-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.pd-footer-logo { font-family: var(--font-editorial); font-weight: 700; font-size: 18px; color: var(--pd-text); margin-bottom: 14px; }
.pd-footer-tagline { font-size: 13px; line-height: 1.7; color: var(--pd-text-dim); max-width: 320px; }
.pd-footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pd-text); margin-bottom: 16px; }
.pd-footer-link { display: block; font-size: 13px; color: var(--pd-text-dim); margin-bottom: 10px; transition: color .2s; }
.pd-footer-link:hover { color: var(--pd-text); }
.pd-footer-bottom { border-top: 1px solid var(--pd-line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--pd-text-dim); }

body.pd-body { background: var(--pd-bg, #08111c); }

@media (max-width: 900px) {
  .pd-hero-inner { grid-template-columns: 1fr; }
  .pd-bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .pd-bento-item.pd-wide { grid-column: span 2; }
  .pd-bento-item.pd-tall { grid-row: span 1; }
  .pd-footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-nav { display: none; }
}
@media (max-width: 560px) {
  .pd-bento-grid { grid-template-columns: 1fr; }
  .pd-bento-item.pd-wide, .pd-bento-item.pd-tall { grid-column: span 1; grid-row: span 1; }
}
