/* ============================================================
   TreeSize 繁體中文官網 - 內頁通用樣式 page.css
   依賴 common.css 提供的變數與導航/頁尾
   ============================================================ */

/* ---------- Article Prose Images ---------- */
.prose img {
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  border-radius: 12px;
}
.prose video {
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  border-radius: 12px;
}

/* ---------- Pricing Tab Switcher ---------- */
.pricing-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 60px 0 40px;
  position: relative;
}
.pricing-tabs::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: var(--ts-border);
}
.pricing-tab {
  position: relative;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ts-text-muted);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}
.pricing-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--ts-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.pricing-tab:hover {
  color: var(--ts-primary);
}
.pricing-tab.active {
  color: var(--ts-text);
}
.pricing-tab.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.pricing-content {
  display: none;
}
.pricing-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 內頁 Hero / 區頭 ---------- */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(0,193,82,.12), transparent 60%),
    radial-gradient(50% 60% at 0% 80%, rgba(37,46,48,.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,193,82,.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 70% 50%, #000 0%, transparent 85%);
          mask-image: radial-gradient(ellipse 65% 75% at 70% 50%, #000 0%, transparent 85%);
  opacity: .5;
  pointer-events: none;
  z-index: -1;
}
.page-hero-inner {
  max-width: var(--ts-container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: ui-monospace, "Consolas", "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ts-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-eyebrow .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--ts-primary); color: #fff;
  border-radius: 5px; font-size: 11px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--ts-text);
  max-width: 880px;
}
.page-hero h1 em { font-style: normal; color: var(--ts-primary); }
.page-hero .page-lead {
  color: var(--ts-text-muted);
  font-size: 18px;
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
}
.page-hero .page-actions {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ---------- 內頁區塊 ---------- */
.page-section {
  padding: 96px 0;
}
.page-section.alt { background: var(--ts-bg-soft); }
.page-section .ts-container {
  max-width: var(--ts-container);
  margin: 0 auto;
  padding: 0 24px;
}
.page-section .sec-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.page-section .sec-head .page-eyebrow { margin-bottom: 16px; }
.page-section .sec-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ts-text);
}
.page-section .sec-head h2 em { font-style: normal; color: var(--ts-primary); }
.page-section .sec-head p {
  color: var(--ts-text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

/* ---------- 功能卡片（圖示 + 標題 + 列表）---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.feat-cell {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feat-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px rgba(0,193,82,.22);
  border-color: var(--ts-primary-100);
}
.feat-cell .fc-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.feat-cell .fc-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ts-primary-50);
  color: var(--ts-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.feat-cell .fc-ic svg { width: 22px; height: 22px; }
.feat-cell h3 {
  margin: 0;
  font-size: 18px; font-weight: 700;
  color: var(--ts-text);
  letter-spacing: -.2px;
}
.feat-cell ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.feat-cell li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ts-text);
  line-height: 1.65;
}
.feat-cell li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ts-primary-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C152' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.feat-cell li a {
  color: var(--ts-primary);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.feat-cell li a:hover { border-bottom-color: var(--ts-primary); }
/* 標題 + 描述兩行佈局（當 li 內同時有 strong 與 .d 時） */
.feat-cell li:has(> .d) > strong {
  display: block;
  font-weight: 600;
  color: var(--ts-text);
  margin-bottom: 2px;
  line-height: 1.4;
}
.feat-cell li > .d {
  display: block;
  color: var(--ts-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- 價格卡 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all .3s ease;
}
.price-card.featured {
  border-color: var(--ts-primary);
  background: linear-gradient(160deg, #f3fbf6 0%, #ffffff 70%);
  box-shadow: 0 20px 40px -22px rgba(0,193,82,.3);
}
.price-card.dark {
  background: var(--ts-text);
  color: #fff;
  border-color: transparent;
}
.price-card.dark .pc-tag { color: rgba(255,255,255,.6); }
.price-card.dark h3 { color: #fff; }
.price-card.dark .pc-desc { color: rgba(255,255,255,.7); }
.price-card.dark .pc-features li { color: rgba(255,255,255,.85); }
.price-card .pc-ribbon {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px;
  background: var(--ts-primary); color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  letter-spacing: .5px;
}
.price-card .pc-tag {
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ts-text-light);
  margin-bottom: 12px;
}
.price-card h3 {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 800;
  letter-spacing: -.4px;
  color: var(--ts-text);
}
.price-card .pc-sub {
  font-size: 13px; font-weight: 600;
  color: var(--ts-primary);
  margin-bottom: 12px;
}
.price-card .pc-desc {
  font-size: 14px; line-height: 1.6;
  color: var(--ts-text-muted);
  margin: 0 0 20px;
  min-height: 44px;
}
.price-card .pc-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.price-card .pc-price .now {
  font-size: 36px; font-weight: 800;
  color: var(--ts-text);
  letter-spacing: -1px;
  line-height: 1;
}
.price-card.dark .pc-price .now { color: #fff; }
.price-card .pc-price .unit { font-size: 14px; color: var(--ts-text-muted); }
.price-card.dark .pc-price .unit { color: rgba(255,255,255,.6); }
.price-card .pc-price .orig {
  font-size: 14px;
  color: var(--ts-text-light);
  text-decoration: line-through;
  font-weight: 500;
}
.price-card .pc-cycle {
  font-size: 12px;
  color: var(--ts-text-muted);
  margin-bottom: 22px;
}
.price-card.dark .pc-cycle { color: rgba(255,255,255,.6); }
.price-card .pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid; gap: 10px;
}
.price-card .pc-features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ts-text);
  line-height: 1.55;
}
.price-card .pc-features li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ts-primary-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C152' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 3px;
  flex-shrink: 0;
}
.price-card.dark .pc-features li::before {
  background-color: rgba(0,193,82,.2);
}
.price-card .pc-action { margin-top: auto; }
.price-card .pc-action .ts-btn { width: 100%; justify-content: center; }

/* ---------- 對比表格 ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 14.5px;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--ts-border);
  border-right: 1px solid var(--ts-border);
}
.compare-table th:last-child,
.compare-table td:last-child { border-right: none; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th {
  background: var(--ts-bg-soft);
  font-weight: 700;
  font-size: 14px;
  color: var(--ts-text);
  border-bottom-color: var(--ts-border);
}
.compare-table tbody td:first-child,
.compare-table tbody th:first-child {
  text-align: left;
  color: var(--ts-text);
  font-weight: 500;
}
.compare-table tr.group td {
  background: linear-gradient(90deg, var(--ts-primary-50), transparent);
  text-align: left;
  font-weight: 700;
  color: var(--ts-primary);
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.compare-table .yes {
  color: var(--ts-primary);
  font-weight: 700;
}
.compare-table .no {
  color: var(--ts-text-light);
}
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Prose 長文 ---------- */
.prose {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ts-text);
}
.prose h2 { font-size: 28px; font-weight: 800; margin: 48px 0 16px; letter-spacing: -.5px; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--ts-text); }
.prose p { color: var(--ts-text-muted); margin: 0 0 16px; }
.prose strong { color: var(--ts-text); font-weight: 600; }
.prose a { color: var(--ts-primary); text-decoration: none; border-bottom: 1px dashed var(--ts-primary-100); }
.prose a:hover { border-bottom-color: var(--ts-primary); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; color: var(--ts-text); }
.prose blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--ts-primary-50);
  border-left: 4px solid var(--ts-primary);
  border-radius: 0 10px 10px 0;
  color: var(--ts-text);
  font-style: italic;
}
.prose img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--ts-border);
  margin: 16px 0;
}

/* ---------- Quote / Testimonial 卡片 ---------- */
.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.q-card {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: 18px;
  padding: 26px;
  display: flex; flex-direction: column;
  transition: all .3s ease;
}
.q-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -16px rgba(0,193,82,.18);
  border-color: var(--ts-primary-100);
}
.q-card blockquote {
  margin: 0 0 18px;
  font-size: 14.5px; line-height: 1.7;
  color: var(--ts-text);
}
.q-card .q-author {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--ts-border);
}
.q-card .q-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-light));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.q-card .q-name { font-size: 13.5px; font-weight: 600; color: var(--ts-text); }
.q-card .q-role { font-size: 12px; color: var(--ts-text-muted); margin-top: 2px; }

/* ---------- 時間線（更新日誌） ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--ts-border);
}
.timeline-item {
  position: relative;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ts-primary);
  box-shadow: 0 0 0 4px var(--ts-primary-50);
}
.timeline-version {
  font-size: 24px; font-weight: 800;
  color: var(--ts-text);
  letter-spacing: -.4px;
  margin: 0 0 4px;
}
.timeline-date {
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 12px;
  color: var(--ts-text-light);
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.timeline-group {
  margin-bottom: 16px;
}
.timeline-group h4 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ts-primary);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: ui-monospace, "Consolas", monospace;
}
.timeline-group ul {
  list-style: none; padding: 0; margin: 0;
}
.timeline-group li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--ts-text);
  font-size: 14.5px;
  line-height: 1.7;
}
.timeline-group li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ts-primary-100);
}

/* ---------- 螢幕截圖畫廊 ---------- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.screen-card {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s ease;
}
.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(37,46,48,.22);
}
.screen-card a { display: block; }
.screen-card img {
  width: 100%; height: auto;
  display: block;
  background: var(--ts-bg-soft);
  border-bottom: 1px solid var(--ts-border);
}
.screen-card .sc-body { padding: 18px 20px 20px; }
.screen-card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ts-text); }
.screen-card p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ts-text-muted); }

/* ---------- 場景卡（compare 用） ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .scenario-grid { grid-template-columns: 1fr; }
}
.scenario-card {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: 20px;
  padding: 28px;
  transition: all .3s ease;
}
.scenario-card.ts { border-top: 4px solid var(--ts-primary); }
.scenario-card.so { border-top: 4px solid var(--ts-accent); }
.scenario-card .sc-tag {
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  color: var(--ts-text-light);
}
.scenario-card.ts .sc-pick { color: var(--ts-primary); }
.scenario-card.so .sc-pick { color: var(--ts-accent); }
.scenario-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--ts-text); margin: 0 0 8px;
}
.scenario-card .sc-pick {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--ts-primary-50);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  margin: 0 0 14px;
}
.scenario-card.so .sc-pick { background: rgba(37,46,48,.08); }
.scenario-card ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.scenario-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14px; color: var(--ts-text); line-height: 1.6;
}
.scenario-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ts-primary-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C152' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.scenario-card.so li::before {
  background-color: rgba(37,46,48,.08);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252E30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.scenario-card li:has(> .d) > strong {
  display: block;
  font-weight: 600;
  color: var(--ts-text);
  margin-bottom: 2px;
  line-height: 1.4;
}
.scenario-card li > .d {
  display: block;
  color: var(--ts-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- SLA / CTA Banner ---------- */
.sla-banner {
  margin-top: 24px;
  background: var(--ts-text);
  color: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.sla-banner::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(0,193,82,.35), transparent 70%);
  filter: blur(50px); opacity: .6;
  pointer-events: none;
}
.sla-banner h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -.5px;
  position: relative;
}
.sla-banner h3 em { font-style: normal; color: var(--ts-primary); }
.sla-banner p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  max-width: 540px;
}
.sla-banner .sla-action { position: relative; }
@media (max-width: 720px) {
  .sla-banner { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* ---------- 移動端 ---------- */
@media (max-width: 768px) {
  .page-hero { padding: 100px 0 60px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .page-hero .page-lead { font-size: 15.5px; }
  .page-section { padding: 64px 0; }
  .price-card { padding: 24px 20px; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 13px; }
}


    /* 側邊導航樣式 */
    .onboarding-layout {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 48px;
      align-items: start;
    }
    .onboarding-nav {
      position: sticky;
      top: 100px;
      padding: 24px;
      background: #fff;
      border: 1px solid var(--ts-border);
      border-radius: 16px;
    }
    .onboarding-nav h4 {
      font-size: 13px;
      font-weight: 700;
      color: var(--ts-text-light);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 0 0 16px;
    }
    .onboarding-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .onboarding-nav a {
      display: block;
      padding: 8px 0;
      font-size: 14px;
      color: var(--ts-text-muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    .onboarding-nav a:hover {
      color: var(--ts-primary);
    }
    .onboarding-nav a.active {
      color: var(--ts-primary);
      font-weight: 600;
    }

    /* 章節樣式最佳化 */
    .onboarding-content section {
      margin-bottom: 80px;
      scroll-margin-top: 100px;
    }
    .onboarding-content h2 {
      font-size: 32px;
      margin-top: 0;
    }
    .onboarding-content .media-card {
      background: #fff;
      border: 1px solid var(--ts-border);
      border-radius: 20px;
      padding: 24px;
      margin: 24px 0;
      box-shadow: 0 4px 20px -10px rgba(0,0,0,0.05);
    }
    .onboarding-content .media-card img,
    .onboarding-content .media-card video {
      width: 100%;
      border-radius: 12px;
      margin: 0 0 16px;
      display: block;
    }
    .onboarding-content .media-card p {
      margin: 0;
      font-size: 14px;
      color: var(--ts-text-muted);
      text-align: center;
    }

    /* 專家提示框 */
    .pro-tip {
      background: linear-gradient(135deg, #f0fdf4 0%, #f4faf6 100%);
      border: 1px solid var(--ts-primary-100);
      border-radius: 16px;
      padding: 24px;
      margin: 32px 0;
      display: flex;
      gap: 16px;
    }
    .pro-tip-icon {
      width: 40px;
      height: 40px;
      background: var(--ts-primary);
      color: #fff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .pro-tip-content h4 {
      margin: 0 0 4px;
      font-size: 16px;
      font-weight: 700;
      color: var(--ts-text);
    }
    .pro-tip-content p {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
    }

    @media (max-width: 992px) {
      .onboarding-layout {
        grid-template-columns: 1fr;
      }
      .onboarding-nav {
        display: none;
      }
    }
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 96px;
}

.article-intro {
  background: linear-gradient(135deg, var(--ts-primary-50), rgba(0, 193, 82, 0.08));
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 60px;
  border: 1px solid var(--ts-border);
}
.article-intro p {
  color: var(--ts-text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.article-intro p:last-child { margin-bottom: 0; }
.article-intro strong { color: var(--ts-text); font-weight: 600; }
.article-intro a { color: var(--ts-primary); border-bottom: 1px dashed var(--ts-primary-100); text-decoration: none; }
.article-intro a:hover { border-bottom-color: var(--ts-primary); }
.article-intro ul, .article-intro ol {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.article-intro li {
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--ts-border);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ts-text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s ease;
  line-height: 1.6;
}
.article-intro li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--ts-primary-100);
}
.article-intro li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--ts-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.article-intro img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 28px auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ts-border);
}

/* 文章章節 */
.tip-section {
  margin-bottom: 64px;
}
.tip-section:last-child { margin-bottom: 0; }

.tip-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ts-border);
  transition: all 0.3s ease;
}
.tip-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.tip-header {
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-dark));
  padding: 28px 36px;
  color: #fff;
}
.tip-header h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.3px;
}

.tip-content {
  padding: 36px;
}
.tip-content p {
  color: var(--ts-text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.tip-content p:last-child { margin-bottom: 0; }
.tip-content strong { color: var(--ts-text); font-weight: 600; }
.tip-content a { color: var(--ts-primary); text-decoration: none; border-bottom: 1px dashed var(--ts-primary-100); }
.tip-content a:hover { border-bottom-color: var(--ts-primary); }
.tip-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ts-text);
  margin: 36px 0 14px;
  letter-spacing: -.2px;
}
.tip-content h3:first-child { margin-top: 0; }
.tip-content ul, .tip-content ol {
  padding-left: 20px;
  margin: 0 0 18px;
}
.tip-content li {
  margin: 8px 0;
  color: var(--ts-text);
  font-size: 15px;
  line-height: 1.7;
}
.tip-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 24px auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ts-border);
}
.tip-content code {
  background: var(--ts-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, "Consolas", monospace;
  color: var(--ts-primary-dark);
}
.tip-content video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--ts-border);
  margin: 24px 0;
  display: block;
  background: #000;
}

/* 文章底部 CTA */
.article-cta {
  margin-top: 64px;
  text-align: center;
  padding: 56px 40px;
  background: var(--ts-text);
  border-radius: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(0,193,82,.35), transparent 70%);
  filter: blur(40px); opacity: .6;
  pointer-events: none;
}
.article-cta h3 {
  position: relative;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -.4px;
}
.article-cta h3 em { font-style: normal; color: var(--ts-primary); }
.article-cta p {
  position: relative;
  color: rgba(255,255,255,.75);
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.7;
}
.article-cta-links {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.article-cta-links .ts-btn-primary {
  background: #fff;
  color: var(--ts-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.article-cta-links .ts-btn-primary:hover {
  background: #f0f4fb;
  color: var(--ts-primary-dark);
}
.article-cta-links .ts-btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.article-cta-links .ts-btn-ghost:hover {
  background: rgba(255,255,255,.2);
}

@media (max-width: 768px) {
  .article-container { padding: 40px 20px 64px; }
  .article-intro { padding: 28px; }
  .article-intro ul, .article-intro ol { grid-template-columns: 1fr; }
  .tip-header { padding: 22px 24px; }
  .tip-content { padding: 24px; }
  .article-cta { padding: 40px 24px; }
}
