/* Andy 越南與東南亞觀察 — 現代財經媒體風樣式系統 */
:root {
  --navy: #0b2545;
  --navy-dark: #071930;
  --emerald: #0e5a4a;
  --emerald-hover: #0a4639;
  --gold: #a67c2e;
  --bg: #f6f5f0;
  --surface: #ffffff;
  --ink: #1a202c;
  --ink-muted: #4a5568;
  --border: #dcdad2;
  --border-strong: #c5c2b8;
  --font-serif: "Noto Serif TC", "PMingLiU", Georgia, serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --max-width: 1140px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--emerald);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 頂部資訊列 */
.top-strip {
  background: var(--navy-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* 主導覽列 */
.site-header {
  background: var(--navy);
  color: #ffffff;
  border-bottom: 3px solid var(--emerald);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-title:hover {
  color: #e2e8f0;
}

.brand-sub {
  font-size: 0.78rem;
  color: #a8c5bd;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #e2e8f0;
  font-size: 0.94rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #5eead4;
  padding-bottom: 2px;
}

.nav-cta {
  background: var(--emerald);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none !important;
}

.nav-cta:hover {
  background: var(--emerald-hover);
}

/* Hero 首屏區 */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #10375c 60%, var(--emerald) 100%);
  color: #ffffff;
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: stretch;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86efac;
  border-left: 3px solid #86efac;
  padding-left: 10px;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.32;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero-lead {
  color: #dbeafe;
  font-size: 1.04rem;
  margin: 0 0 26px;
  max-width: 580px;
}

/* 訂閱表單盒 */
.subscribe-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 20px;
}

.subscribe-box-light {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--ink);
}

.subscribe-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.subscribe-desc {
  font-size: 0.9rem;
  margin: 0 0 14px;
  opacity: 0.9;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--ink);
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.18s ease;
}

.btn-primary:hover {
  background: var(--emerald-hover);
}

.form-note {
  font-size: 0.78rem;
  margin-top: 10px;
  opacity: 0.82;
}

.form-feedback {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #bbf7d0;
  display: none;
}

.subscribe-box-light .form-feedback {
  color: var(--emerald);
}

/* 右側焦點報告卡 */
.featured-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 12px 28px rgba(7, 25, 48, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  background: #e6f4f1;
  color: var(--emerald);
  letter-spacing: 0.04em;
}

.badge-navy {
  background: #e8eef5;
  color: var(--navy);
}

.badge-gold {
  background: #f9f3e3;
  color: var(--gold);
}

.featured-card h2 {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  line-height: 1.4;
  margin: 12px 0 10px;
}

.featured-card p {
  color: var(--ink-muted);
  font-size: 0.93rem;
  margin: 0 0 18px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.read-link {
  font-weight: 700;
  color: var(--emerald);
}

/* 區塊標題 */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 26px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0;
  color: var(--navy);
}

.section-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--emerald);
}

/* 三欄卡片網格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.08);
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 12px 0 10px;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 18px;
}

/* YouTube 影音與導流區 */
.media-band {
  background: #edf1f5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 22px;
}

.video-card h3 {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  margin: 10px 0 8px;
}

.video-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

/* 分類篩選列 */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* 長文閱讀版面 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  padding: 40px 0 60px;
  align-items: start;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
}

.breadcrumb {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.article-main h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.35;
  color: var(--navy);
  margin: 10px 0 14px;
}

.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--ink-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.exec-summary {
  background: #f2f7f5;
  border-left: 4px solid var(--emerald);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
}

.exec-summary strong {
  color: var(--emerald);
  display: block;
  margin-bottom: 6px;
}

.exec-summary ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.94rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.article-body p {
  font-size: 1.02rem;
  margin: 0 0 18px;
}

.template-notice {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: var(--navy);
  border-bottom: 2px solid var(--emerald);
  padding-bottom: 6px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

/* 頁尾 */
/* 社群一鍵擴散列 */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
  padding: 14px 16px;
  background: #f3f5f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.share-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.16s ease;
}

.share-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.share-btn-line:hover {
  background: #06c755;
  border-color: #06c755;
  color: #ffffff;
}

.share-copied {
  font-size: 0.82rem;
  color: var(--emerald);
  font-weight: 600;
  display: none;
}

/* 互動試算機（越南定存 vs 買房租房） */
.calc-box {
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  margin: 26px 0;
}

.calc-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 6px;
}

.calc-sub {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 18px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.calc-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.calc-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 0.96rem;
  font-family: var(--font-sans);
  background: #ffffff;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--navy);
  color: #ffffff;
  padding: 18px;
  border-radius: var(--radius);
}

.calc-metric-label {
  font-size: 0.78rem;
  color: #cbd5e1;
  display: block;
}

.calc-metric-val {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: #86efac;
  margin-top: 2px;
  display: block;
}

.calc-warn {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* 回流 YouTube 導流循環卡 */
.yt-loop-box {
  background: linear-gradient(135deg, #0b2545 0%, #123c69 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.yt-loop-box h3 {
  font-family: var(--font-serif);
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #ffffff;
}

.yt-loop-box p {
  margin: 0;
  font-size: 0.9rem;
  color: #dbeafe;
  max-width: 520px;
}

/* FAQ 區塊（對齊 AI 搜尋與 Google FAQ Schema） */
.faq-list {
  margin: 18px 0 28px;
}

.faq-item {
  background: #fafaf7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq-q {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1rem;
}

.faq-a {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

@media (max-width: 700px) {
  .calc-grid,
  .calc-results {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 44px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h3 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #86efac;
}

.footer-bottom {
  padding-top: 18px;
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .media-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 26px 20px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}
