/* ── 智樂活行銷洞察 · 共用樣式（archive + single） ──────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #01968D;
  --brand-dk: #017C75;
  --brand-lt: #E6F5F4;
  --brand-xl: #F4FBFA;
  --peach:    #F4A261;
  --peach-dk: #E88A4A;
  --peach-lt: #FFF1E3;
  --cream:    #FDF9F3;
  --ink:      #1F2937;
  --mid:      #556670;
  --line:     #E7EDED;
  --white:    #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(1,150,141,.06);
  --shadow:    0 10px 32px rgba(1,150,141,.12);
  --shadow-lg: 0 20px 50px rgba(1,150,141,.15);
}
/* ══ NAV ══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,249,243,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(1,150,141,.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 110px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 98px; width: auto; transition: .25s; }
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav-links a:hover  { color: var(--brand); border-bottom-color: var(--brand); }
.nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.nav-cta { background: var(--brand); color: white; padding: 11px 26px; border-radius: 50px; font-size: 14px; font-weight: 700; transition: .25s; display: inline-flex; align-items: center; gap: 6px; }
.nav-cta:hover { background: var(--brand-dk); transform: translateY(-1px); }

/* ══ FOOTER ════════════════════════════════════════════════════ */
footer { background: #0E2C2A; color: rgba(255,255,255,.72); padding: 80px 5% 36px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer-brand-logo img { height: 288px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13.5px; line-height: 1.9; max-width: 360px; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 800; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: 13.5px; margin-bottom: 11px; transition: .2s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { max-width: 1240px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 13px; font-weight: 700; transition: .2s; }
.footer-social a:hover { background: var(--brand); }
@media (max-width: 960px) {
  .site-nav { height: 88px; }
  .nav-links { display: none; }
  .nav-logo img { height: 78px; }
  .insights-wrap { margin-top: 88px; }
  .reading-progress { top: 88px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-logo img { height: 144px; }
}
@media (max-width: 640px) {
  .site-nav { height: 72px; }
  .nav-logo img { height: 64px; }
  .insights-wrap { margin-top: 72px; }
  .reading-progress { top: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-logo img { height: 120px; }
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════════════════
   共用版型
═══════════════════════════════════════════════════════════ */
.insights-wrap { margin-top: 110px; }  /* 配合現有 nav 高度 110px */

.insights-inner { max-width: 1160px; margin: 0 auto; padding: 0 5%; }

/* ─── Section 標準間距 ─── */
.insights-section { padding: 64px 5%; }
.insights-section--cream { padding: 64px 5%; background: var(--cream); }
.insights-section--dark  { padding: 64px 5%; background: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE PAGE：Hero
═══════════════════════════════════════════════════════════ */
.insights-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%);
  padding: 64px 5% 80px; position: relative; overflow: hidden;
}
.insights-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='%23fff' fill-opacity='.04'/%3E%3C/svg%3E");
}
.insights-hero-inner { max-width: 1160px; margin: 0 auto; position: relative; }
.insights-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 20px;
}
.insights-breadcrumb a { color: rgba(255,255,255,.6); }
.insights-breadcrumb a:hover { color: white; }
.insights-badge {
  display: inline-block;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: white; padding: 5px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 18px;
}
.insights-hero h1 {
  font-size: clamp(26px, 3.5vw, 44px); font-weight: 900;
  color: white; margin-bottom: 14px; line-height: 1.2;
}
.insights-hero p {
  font-size: 16px; color: rgba(255,255,255,.8);
  max-width: 600px; line-height: 1.8;
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap;
}
.hero-stat-num { font-size: 26px; font-weight: 900; color: var(--peach); }
.hero-stat-lbl { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE：精選文章
═══════════════════════════════════════════════════════════ */
.featured-wrap {
  background: var(--cream); padding: 0 5%;
}
.featured-inner { max-width: 1160px; margin: 0 auto; }
.featured-card {
  background: white; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(1,150,141,.10);
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden; margin-top: -40px; position: relative; z-index: 1;
}
.featured-img {
  background: linear-gradient(135deg, var(--brand-lt) 0%, var(--peach-lt) 100%);
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.featured-img-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 32px; text-align: center;
}
.featured-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--peach); color: white; padding: 5px 14px;
  border-radius: 50px; font-size: 12px; font-weight: 700;
}
.featured-body {
  padding: 44px 40px; display: flex; flex-direction: column; justify-content: center;
}
.feat-category {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--brand); margin-bottom: 12px;
}
.feat-title {
  font-size: 22px; font-weight: 900; color: var(--ink);
  line-height: 1.45; margin-bottom: 14px;
}
.feat-desc {
  font-size: 14px; color: var(--mid); line-height: 1.8; margin-bottom: 24px;
}
.feat-meta { font-size: 13px; color: var(--mid); margin-bottom: 20px; }
.feat-read {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: white;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700; transition: .2s; align-self: flex-start;
}
.feat-read:hover { background: var(--brand-dk); transform: translateY(-2px); }
.feat-read::after { content: '→'; }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE：篩選標籤
═══════════════════════════════════════════════════════════ */
.filter-section { background: var(--cream); padding: 40px 5% 24px; }
.filter-inner { max-width: 1160px; margin: 0 auto; }
.filter-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.filter-label { font-size: 13px; font-weight: 700; color: var(--mid); white-space: nowrap; }
.filter-tags  { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  padding: 7px 18px; border-radius: 50px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--mid); background: white;
  cursor: pointer; transition: .2s;
}
.filter-tag:hover,
.filter-tag.active {
  border-color: var(--brand); color: var(--brand); background: var(--brand-lt);
}
.filter-tag.active { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE：文章格
═══════════════════════════════════════════════════════════ */
.articles-section { background: var(--cream); padding: 8px 5% 80px; }
.articles-inner { max-width: 1160px; margin: 0 auto; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.art-card {
  background: white; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); transition: .3s;
  display: flex; flex-direction: column;
  color: inherit;
}
.art-card:hover {
  box-shadow: 0 8px 32px rgba(1,150,141,.12);
  transform: translateY(-4px); border-color: rgba(1,150,141,.2);
}
.art-thumb {
  height: 160px; background: linear-gradient(135deg, var(--brand-lt), var(--peach-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
.art-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.art-cat {
  position: absolute; bottom: 12px; left: 12px;
  background: white; color: var(--brand); padding: 4px 12px;
  border-radius: 50px; font-size: 11px; font-weight: 700;
  border: 1px solid var(--brand-lt);
}
.art-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.art-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  line-height: 1.5; margin-bottom: 10px;
}
.art-desc  {
  font-size: 13px; color: var(--mid); line-height: 1.7;
  flex: 1; margin-bottom: 16px;
}
.art-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.art-date { font-size: 12px; color: var(--mid); }
.art-link  {
  font-size: 13px; font-weight: 700; color: var(--brand);
  display: flex; align-items: center; gap: 4px;
}
.art-link::after { content: '→'; transition: .2s; }
.art-card:hover .art-link::after { transform: translateX(4px); }

/* Coming soon 佔位卡 */
.art-card.soon {
  border-style: dashed; border-color: var(--line);
  background: transparent; cursor: default; pointer-events: none;
}
.art-card.soon:hover { transform: none; box-shadow: none; }
.soon-body {
  padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; flex: 1; justify-content: center;
}
.soon-icon { font-size: 36px; opacity: .4; }
.soon-text { font-size: 14px; color: var(--mid); }

/* 分頁 */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--mid); background: white;
  transition: .2s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current {
  background: var(--brand); color: white; border-color: var(--brand);
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE：訂閱 Strip
═══════════════════════════════════════════════════════════ */
.subscribe-strip {
  background: var(--ink); padding: 64px 5%;
}
.subscribe-strip-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.subscribe-strip h2 { font-size: 22px; font-weight: 900; color: white; margin-bottom: 6px; }
.subscribe-strip p  { font-size: 14px; color: rgba(255,255,255,.5); }
.subscribe-btn {
  background: var(--peach); color: white;
  padding: 13px 28px; border-radius: 50px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: .2s; display: inline-block;
}
.subscribe-btn:hover { background: var(--peach-dk); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   SINGLE PAGE：進度條
═══════════════════════════════════════════════════════════ */
.reading-progress {
  position: fixed; top: 110px; left: 0; right: 0; height: 3px;
  background: var(--line); z-index: 99;
}
.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--peach));
  width: 0%; transition: width .1s linear;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE PAGE：文章 Header
═══════════════════════════════════════════════════════════ */
.article-header {
  background: white; border-bottom: 1px solid var(--line);
  padding: 48px 5% 40px;
}
.article-header-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--mid); margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--brand); }
.meta-tag {
  display: inline-block; background: var(--peach-lt); color: var(--peach-dk);
  padding: 6px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px;
}
.article-header h1 {
  font-size: clamp(22px, 3vw, 34px); font-weight: 900;
  line-height: 1.35; margin-bottom: 16px; letter-spacing: -.3px;
}
.article-meta {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; color: var(--mid); flex-wrap: wrap;
}
.read-badge {
  background: var(--brand-lt); color: var(--brand);
  padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE PAGE：文章版型
═══════════════════════════════════════════════════════════ */
.article-layout {
  max-width: 1160px; margin: 0 auto;
  padding: 48px 5% 80px;
  display: grid; grid-template-columns: 1fr 280px;
  gap: 56px; align-items: start;
}

/* 文章本文 */
.article-body {}
.article-body h2 {
  font-size: 22px; font-weight: 900; margin: 40px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--brand-lt); color: var(--ink);
}
.article-body h3 { font-size: 18px; font-weight: 800; margin: 28px 0 12px; color: var(--brand-dk); }
.article-body p  { margin: 0 0 18px; font-size: 16px; line-height: 1.9; }
.article-body strong { color: var(--brand-dk); font-weight: 700; }
.article-body ul { padding-left: 20px; margin-bottom: 18px; }
.article-body ul li { margin-bottom: 10px; font-size: 16px; line-height: 1.8; }
.article-body ol  { padding-left: 20px; margin-bottom: 18px; }
.article-body ol li { margin-bottom: 10px; font-size: 16px; line-height: 1.8; }
.article-body a { color: var(--brand); text-decoration: underline; }
.article-body img { border-radius: 12px; margin: 20px 0; }

.article-body blockquote,
.article-body .quote {
  background: white; border-left: 4px solid var(--peach);
  padding: 20px 24px; border-radius: 12px; margin: 28px 0;
  font-size: 16px; line-height: 1.9;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.article-body .callout {
  background: linear-gradient(135deg, var(--brand-lt) 0%, var(--peach-lt) 100%);
  border-left: 4px solid var(--brand); padding: 20px 24px;
  border-radius: 14px; margin: 28px 0;
}

/* 文內 CTA 區塊 */
.cta-box {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%);
  color: white; padding: 36px 32px; border-radius: 20px; margin: 40px 0; text-align: center;
}
.cta-box h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; color: white; }
.cta-box p  { color: rgba(255,255,255,.85); margin: 0 0 20px; font-size: 15px; }
.cta-btns  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btns a {
  background: white; color: var(--brand-dk);
  padding: 11px 26px; border-radius: 50px;
  font-weight: 800; font-size: 14px; transition: .2s;
}
.cta-btns a:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.cta-btns a.alt {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.5);
}
.cta-btns a.alt:hover { background: rgba(255,255,255,.1); }

/* 文章標籤 */
.article-tags { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-tag  {
  display: inline-block; background: var(--brand-lt); color: var(--brand);
  padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700;
  margin: 0 6px 8px 0; transition: .2s;
}
.article-tag:hover { background: var(--brand); color: white; }

/* 分享列 */
.share-row {
  margin-top: 32px; padding: 24px; background: white;
  border-radius: 16px; border: 1px solid var(--line);
}
.share-row p { font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--line); color: var(--mid); background: white;
  cursor: pointer; transition: .2s;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }

/* 上下篇 */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 40px;
}
.article-nav-item {
  padding: 18px 20px; border: 1.5px solid var(--line);
  border-radius: 14px; transition: .2s;
}
.article-nav-item:hover { border-color: var(--brand); }
.nav-direction { font-size: 12px; color: var(--mid); margin-bottom: 6px; }
.nav-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.article-nav-item.next { text-align: right; }

/* ═══════════════════════════════════════════════════════════
   SINGLE PAGE：Sidebar
═══════════════════════════════════════════════════════════ */
.article-sidebar { position: sticky; top: 130px; }
.sidebar-card {
  background: white; border-radius: 14px; border: 1px solid var(--line);
  padding: 24px; margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 13px; font-weight: 700; color: var(--mid);
  letter-spacing: 1px; margin-bottom: 14px;
}
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  font-size: 13px; color: var(--mid);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5; transition: .2s;
}
.toc-list a::before { content: '·'; color: var(--brand); flex-shrink: 0; }
.toc-list a:hover { color: var(--brand); }
.toc-list a.active { color: var(--brand); font-weight: 700; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%);
  border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 20px;
}
.sidebar-cta h4 { color: white; font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.sidebar-cta p  { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 16px; line-height: 1.6; }
.sidebar-cta a  {
  display: block; background: white; color: var(--brand-dk);
  padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 800;
  transition: .2s;
}
.sidebar-cta a:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }

.sidebar-related a {
  display: block; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover .rel-title { color: var(--brand); }
.rel-title { font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.rel-date  { font-size: 12px; color: var(--mid); }

/* ═══════════════════════════════════════════════════════════
   RWD
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img  { min-height: 200px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .insights-wrap { margin-top: 88px; }
  .reading-progress { top: 88px; }
  .articles-grid { grid-template-columns: 1fr; }
  .subscribe-strip-inner { flex-direction: column; text-align: center; }
  .article-nav { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .article-layout { padding: 32px 5% 60px; }
}
@media (max-width: 480px) {
  .insights-wrap { margin-top: 72px; }
  .reading-progress { top: 72px; }
}
