/**
 * 品富智圖 AI 新聞頻道 — 前台版型樣式
 *
 * 來源：docs/news-design-draft.html。設計稿專用的 draftbar / toggle / chrome-ph
 * 已移除（真實環境用主題的 get_header() / get_footer()）。
 *
 * 重要：所有 selector 都收斂在 .pinfu-news 底下，避免汙染整站佈景。
 * 不設定裸 body，不用裸 * reset。
 *
 * 容器寬度：--pinfu-news-width（預設 1240px）。封存頁、hero、集合頁外層皆吃這個變數。
 * 單篇文章內文欄維持自己較窄的閱讀寬度（--pinfu-single-width，約 760px）。
 */

.pinfu-news {
  --paper: #FFFFFF;
  --ink: #211E19;
  --ink-soft: #6B6459;
  --gold: #9A7728;
  --gold-line: #C7A24A;
  --gold-tint: #F4ECD5;
  --rule: rgba(33, 30, 25, 0.13);
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --pinfu-news-width: 1240px;
  --pinfu-single-width: 760px;

  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
}

.pinfu-news *,
.pinfu-news *::before,
.pinfu-news *::after {
  box-sizing: border-box;
}

.pinfu-news a {
  color: inherit;
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   Hero（封存頁／集合頁共用）
   ───────────────────────────────────────────────────────────── */
.pinfu-news .hero {
  max-width: var(--pinfu-news-width);
  margin: 0 auto;
  padding: 50px 48px 22px;
}
.pinfu-news .hero h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}
.pinfu-news .hero .sub {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.pinfu-news .hero .bar {
  margin-top: 22px;
  height: 2px;
  background: var(--gold-line);
  width: 64px;
}

/* ─────────────────────────────────────────────────────────────
   趨勢週報 strip（模組七預留版位 — 目前無內容時不渲染）
   ───────────────────────────────────────────────────────────── */
.pinfu-news .trend-slot {
  max-width: var(--pinfu-news-width);
  margin: 8px auto 0;
  padding: 0 48px;
}
.pinfu-news .trend-card {
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold-line);
  border-radius: 3px;
  background: var(--gold-tint);
  padding: 18px 22px;
}
.pinfu-news .trend-card .tl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 4px;
}
.pinfu-news .trend-card .tdate {
  font-size: 12px;
  color: #6E6346;
  margin-bottom: 8px;
}
.pinfu-news .trend-card .tt {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: #37301C;
}
.pinfu-news .trend-card .tlink {
  display: inline-block;
  margin-top: 9px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   Layout：兩欄（左 sidebar + 主內容）
   ───────────────────────────────────────────────────────────── */
.pinfu-news .layout {
  max-width: var(--pinfu-news-width);
  margin: 0 auto;
  padding: 14px 48px 64px;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 56px;
}

/* ─────────────────────────────────────────────────────────────
   左 sidebar
   ───────────────────────────────────────────────────────────── */
.pinfu-news aside .group {
  margin-bottom: 30px;
}
.pinfu-news aside h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin: 0 0 4px;
}
.pinfu-news aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pinfu-news aside li a {
  display: flex;
  justify-content: space-between;
  padding: 9px 2px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: 0.15s;
}
.pinfu-news aside li a:hover {
  color: var(--gold);
  padding-left: 6px;
}
.pinfu-news aside li a .n {
  color: var(--ink-soft);
  font-size: 12px;
}
.pinfu-news .frow {
  display: flex;
  justify-content: space-between;
  padding: 9px 2px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.pinfu-news .frow .fk {
  color: var(--ink-soft);
}
.pinfu-news .frow a {
  color: var(--ink);
  transition: 0.15s;
}
.pinfu-news .frow a:hover {
  color: var(--gold);
}

.pinfu-news .slot-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #857F6C;
  background: #EBE7DA;
  border: 1px solid #D2CCBA;
  padding: 2px 9px;
  border-radius: 2px;
  margin-bottom: 9px;
}
.pinfu-news .sub-slot {
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 15px 16px 17px;
}
.pinfu-news .sub-slot h3 {
  border: none;
  padding: 0;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.pinfu-news .sub-slot .sd {
  font-size: 13px;
  color: #5E5740;
  line-height: 1.6;
  margin-bottom: 11px;
}
.pinfu-news .sub-slot input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #CDBE92;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  background: #fff;
  margin-bottom: 7px;
}
.pinfu-news .sub-slot button {
  width: 100%;
  padding: 9px;
  background: #211F1A;
  color: #F1E7CD;
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pinfu-news .sub-slot input[disabled],
.pinfu-news .sub-slot button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────
   封存頁文章列表
   ───────────────────────────────────────────────────────────── */
.pinfu-news .post {
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.pinfu-news .post:first-child {
  padding-top: 8px;
}
.pinfu-news .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 11px;
  flex-wrap: wrap;
}
.pinfu-news .post-meta .cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.pinfu-news .post-meta .cat::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-line);
  transform: rotate(45deg);
}
.pinfu-news .post-meta .cat:hover {
  text-decoration: underline;
}
.pinfu-news .post-meta .rlink:hover {
  color: var(--gold);
  text-decoration: underline;
}
.pinfu-news .post-meta .dot {
  color: #C3BBA8;
}
.pinfu-news .post h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin: 0;
}
.pinfu-news .post h2 a {
  transition: 0.15s;
}
.pinfu-news .post h2 a:hover {
  color: var(--gold);
}
.pinfu-news .post .lede {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}
.pinfu-news .more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}
.pinfu-news .more:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   分頁
   ───────────────────────────────────────────────────────────── */
.pinfu-news .pager {
  display: flex;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.pinfu-news .pager a,
.pinfu-news .pager span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 2px;
  padding: 0 10px;
}
.pinfu-news .pager .on,
.pinfu-news .pager span.current {
  background: #211F1A;
  color: #F1E7CD;
  border-color: #211F1A;
}
.pinfu-news .pager a:hover {
  color: var(--gold);
  border-color: var(--gold-line);
}

/* ─────────────────────────────────────────────────────────────
   單篇文章
   ───────────────────────────────────────────────────────────── */
.pinfu-news .single {
  padding-top: 30px;
  /* 內文欄維持自己較窄的閱讀寬度（不被拉到容器全寬） */
  max-width: var(--pinfu-single-width);
}
.pinfu-news .crumb {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.pinfu-news .crumb a:hover {
  color: var(--gold);
}
.pinfu-news .tags {
  display: flex;
  gap: 9px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.pinfu-news .tag {
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 2px;
}
.pinfu-news .tag.c {
  background: var(--gold-tint);
  color: var(--gold);
  font-weight: 500;
}
.pinfu-news .tag.r {
  background: #EAE6DB;
  color: #5A554C;
}
.pinfu-news .tag:hover {
  filter: brightness(0.96);
}
.pinfu-news .single h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0;
}
.pinfu-news .artmeta {
  margin-top: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pinfu-news .keypoint {
  margin: 26px 0;
  background: var(--gold-tint);
  border-left: 3px solid var(--gold-line);
  padding: 18px 22px;
}
.pinfu-news .keypoint .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 7px;
}
.pinfu-news .keypoint p {
  font-size: 15px;
  line-height: 1.75;
  color: #48402B;
  margin: 0;
}

.pinfu-news .body p {
  margin: 19px 0;
  font-size: 17px;
  line-height: 1.9;
}
.pinfu-news .body p:first-child {
  margin-top: 22px;
}

.pinfu-news .source {
  margin: 36px 0 4px;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  background: var(--gold-tint);
}
.pinfu-news .source .head {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
}
.pinfu-news .source .body2 {
  padding: 16px 20px 20px;
}
.pinfu-news .source .row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
}
.pinfu-news .source .row .k {
  flex: 0 0 76px;
  color: var(--ink-soft);
}
.pinfu-news .source .row .v {
  color: var(--ink);
  word-break: break-word;
}
.pinfu-news .source .readlink {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #211F1A;
  color: #F1E7CD;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
}

.pinfu-news .prevnext {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  gap: 24px;
}
.pinfu-news .prevnext a {
  color: var(--ink-soft);
  max-width: 46%;
}
.pinfu-news .prevnext a:hover {
  color: var(--gold);
}
.pinfu-news .prevnext .lbl {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.pinfu-news .prevnext .next {
  text-align: right;
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────────
   RWD：窄螢幕時左側邊欄收到內容下方
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pinfu-news .layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .pinfu-news aside {
    order: 2;
  }
  .pinfu-news .list,
  .pinfu-news .single {
    order: 1;
  }
  .pinfu-news .hero,
  .pinfu-news .layout,
  .pinfu-news .trend-slot {
    padding-left: 24px;
    padding-right: 24px;
  }
  .pinfu-news .hero h1 {
    font-size: 30px;
  }
}

/* ─────────────────────────────────────────────────────────────
   手機版專屬訂閱入口（文章列表上方）
   桌面版由左欄訂閱框負責，這個 wrapper 隱藏；
   手機版（與既有 RWD 同斷點 900px）才顯示。
   ───────────────────────────────────────────────────────────── */
.pinfu-news .pinfu-news__mobile-subscribe {
  display: none;
}
@media (max-width: 900px) {
  .pinfu-news .pinfu-news__mobile-subscribe {
    display: block;
  }
}

/* ─────────────────────────────────────────────────────────────
   每日焦點（daily_focus）— 首頁頭版 / 單篇 / 封存
   沿用 .pinfu-news 既有品牌色變數與字體。
   ───────────────────────────────────────────────────────────── */

/* 焦點頭版區塊（/news 右欄文章列表上方；shortcode 亦用）。
   不設 max-width / margin auto —— 填滿所在容器（在 .list 欄內即欄寬）。 */
.pinfu-news .focus-front {
  padding: 22px 26px;
  margin-bottom: 26px;
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold-line);
  border-radius: 3px;
  background: var(--gold-tint);
}
.pinfu-news .focus-front .ff-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}
.pinfu-news .focus-front .ff-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
}
.pinfu-news .focus-front .ff-title a {
  color: #37301C;
  transition: 0.15s;
}
.pinfu-news .focus-front .ff-title a:hover {
  color: var(--gold);
}
.pinfu-news .focus-front .ff-audio {
  width: 100%;
  max-width: 480px;
  height: 38px;
  margin-bottom: 12px;
  display: block;
}
.pinfu-news .focus-front .ff-excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: #48402B;
  margin: 0 0 16px;
}
.pinfu-news .focus-front .ff-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.pinfu-news .focus-front .ff-more {
  display: inline-flex;
  align-items: center;
  background: #211F1A;
  color: #F1E7CD;
  padding: 9px 18px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
}
.pinfu-news .focus-front .ff-more:hover {
  background: #3A352D;
}
.pinfu-news .focus-front .ff-archive {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}
.pinfu-news .focus-front .ff-archive:hover {
  text-decoration: underline;
}

/* 單篇焦點頁 */
.pinfu-news .focus-single {
  max-width: var(--pinfu-single-width);
}
.pinfu-news .focus-audio {
  margin: 18px 0 8px;
  padding: 14px 16px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
}
.pinfu-news .focus-audio .fa-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}
.pinfu-news .focus-audio audio {
  width: 100%;
  height: 40px;
  display: block;
}
.pinfu-news .focus-body p {
  margin: 19px 0;
  font-size: 17px;
  line-height: 1.9;
}

/* 「本篇綜述的當日新聞」hub-spoke */
.pinfu-news .focus-spoke {
  margin: 36px 0 4px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.pinfu-news .focus-spoke .fs-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0 0 14px;
}
.pinfu-news .focus-spoke .fs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pinfu-news .focus-spoke .fs-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.pinfu-news .focus-spoke .fs-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.pinfu-news .focus-spoke .fs-cat {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.pinfu-news .focus-spoke .fs-meta .dot {
  color: #C3BBA8;
}
.pinfu-news .focus-spoke .fs-link {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  transition: 0.15s;
}
.pinfu-news .focus-spoke .fs-link:hover {
  color: var(--gold);
}

/* 封存頁的音頻時長標 */
.pinfu-news .focus-archive .fa-tag {
  color: var(--gold);
  font-weight: 500;
}

@media (max-width: 900px) {
  .pinfu-news .focus-front {
    padding-left: 24px;
    padding-right: 24px;
  }
}
