/* ===========================================================================
   Guides（blog.html）· 指南文章 · 竞品对比页
   ---------------------------------------------------------------------------
   这一组页面与首页共用 assets/theme.css 的设计令牌（--cn-*）。
   历史版本的本文件按 v1 的青色方案叠了 7 层 @media 补丁：品牌色是 #00d6d6、
   卡片两列而内容三篇、字号写成 32px 却被 theme.css 的 !important 全部压回
   46px，等于十二处死代码。这里整份重写为单一结构，字号交给 theme.css 的
   字阶统一管理，本文件只负责版式。
   =========================================================================== */

/* ---------------------------------------------------------------------------
   基础：移动端（< 761px）
   --------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cn-nav-h) + 20px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cn-bg);
  color: var(--cn-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 60;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cn-ink);
  color: #fff;
}
.skip-link:focus { transform: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cn-accent);
  outline-offset: 3px;
}

/* 版心：与首页 .shell 同宽，logo 与正文落在同一条竖线上 */
.blog-hero,
.tabs,
.feature,
.sections,
footer {
  --pad: max(var(--cn-gutter), calc((100% - var(--cn-max)) / 2));
}

/* ---------------------------------------------------------------------------
   页头
   --------------------------------------------------------------------------- */
/* 导航条的外框（高度 / 背景 / 左右留白）在 theme.css 里，这里只补横向排布 */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.blog-hero {
  padding: 40px var(--pad) 28px;
  background: var(--cn-bg);
}

.kicker {
  margin: 0 0 12px;
  color: var(--cn-accent-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.blog-hero h1 { margin: 0 0 14px; }

.blog-hero > p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--cn-muted);
  font-size: 16.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* 分区胶囊 */
.tabs {
  display: flex;
  gap: 8px;
  padding: 0 var(--pad) 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--cn-line);
  border-radius: var(--cn-radius-pill);
  color: var(--cn-ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.tabs a:hover {
  border-color: var(--cn-line-strong);
  background: var(--cn-soft);
  color: var(--cn-ink);
}
.tabs a.selected {
  border-color: var(--cn-ink);
  background: var(--cn-ink);
  color: #fff;
}

/* ---------------------------------------------------------------------------
   精选指南（左文右图）
   --------------------------------------------------------------------------- */
.feature {
  display: grid;
  gap: 28px;
  padding: 36px var(--pad);
  border-block: 1px solid var(--cn-line);
  background: var(--cn-soft);
}

.feature h2 { margin: 0 0 12px; }

.feature p:not(.kicker) {
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--cn-muted);
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--cn-radius-sm);
  background: var(--cn-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease;
}
.cta:hover { background: #26262a; }

.feature-art {
  margin: 0;
  overflow: hidden;
  border-radius: var(--cn-radius);
  background: var(--cn-blue-50);
}

.feature-art img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* 产品截图：浅蓝面板里立一部手机，不裁切 */
.feature-art.blog-product-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: linear-gradient(150deg, #e9f2fd, #dbe8f7);
  border: 1px solid var(--cn-blue-200);
}
.feature-art.blog-product-art .blog-product-screen {
  height: 100%;
  aspect-ratio: 620 / 855;
  padding: 4px;
  border-radius: 20px;
  background: #26333c;
  box-shadow: 0 16px 32px rgba(42, 53, 74, .16);
}
.feature-art.blog-product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ---------------------------------------------------------------------------
   卡片区
   --------------------------------------------------------------------------- */
.sections {
  padding-inline: var(--pad);
  padding-bottom: 24px;
}

.article-section { padding-top: 56px; }
.article-section:last-child { padding-bottom: 72px; }

.article-section > h2 { margin: 0 0 24px; }

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.card { min-width: 0; }

.card-art {
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--cn-radius-sm);
  background: var(--cn-soft-2);
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .6, .2, 1);
}
.card:hover .card-art img { transform: scale(1.03); }

.card .tag {
  margin: 0 0 7px;
  color: var(--cn-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.card p:not(.tag) {
  margin: 0 0 10px;
  color: var(--cn-muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.card time,
.card > span {
  color: var(--cn-muted);
  font-size: 12.5px;
}

/* 分区快捷入口：纯文字卡 */
.shortcut-cards { gap: 16px; }

.shortcut-cards .card {
  padding: 22px 24px;
  border: 1px solid var(--cn-line);
  border-radius: var(--cn-radius-sm);
  background: var(--cn-soft);
  transition: border-color .18s ease, background .18s ease;
}
.shortcut-cards .card:hover {
  border-color: var(--cn-line-strong);
  background: #fff;
}
.shortcut-cards .card p:not(.tag) { max-width: 40ch; }

/* 对比索引：行式列表，避免与上方图片卡重复同一批照片 */
.list { border-top: 1px solid var(--cn-line); }

.list-row {
  display: grid;
  gap: 6px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--cn-line);
  transition: background .18s ease;
}
.list-row:hover { background: var(--cn-soft); }

.list-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.018em;
}

.list-desc {
  color: var(--cn-muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cn-muted);
  font-size: 12.5px;
}

/* ---------------------------------------------------------------------------
   页脚
   --------------------------------------------------------------------------- */
footer {
  display: grid;
  gap: 18px;
  padding: 34px var(--pad);
  border-top: 1px solid var(--cn-line);
  color: var(--cn-muted);
  font-size: 12.5px;
}
footer p { max-width: 520px; margin: 0; line-height: 1.6; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
footer small {
  padding-top: 16px;
  border-top: 1px solid var(--cn-line);
}

/* ---------------------------------------------------------------------------
   指南文章 / 对比页正文
   --------------------------------------------------------------------------- */
.article-shell {
  max-width: 700px;
  margin-inline: auto;
  padding: 40px 20px 72px;
}

.article-shell .kicker { margin-bottom: 10px; }

.article-shell h1 { margin: 0 0 16px; }

.article-dek {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--cn-muted);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.article-meta {
  margin: 0;
  color: var(--cn-muted);
  font-size: 13px;
}

/* 文章封面 */
.article-hero {
  margin: 30px 0 0;
  overflow: hidden;
  border-radius: var(--cn-radius);
  background: var(--cn-soft-2);
}
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-figure { margin: 30px 0 0; }
.article-figure img {
  width: 100%;
  border-radius: var(--cn-radius-sm);
}

.article-body {
  margin-top: 40px;
  color: var(--cn-ink-soft);
  font-size: 17.5px;
  line-height: 1.72;
}

.article-body p {
  margin: 0 0 20px;
  text-wrap: pretty;
}

/* 小标题的上下留白由这里给：theme.css 只负责字号，没有 margin。
   上 52 / 下 14 与段间的 20 拉开，读者才能一眼分段。 */
.article-body h2 { margin: 52px 0 14px; }
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  margin: 30px 0 8px;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.article-body li { margin: 7px 0; text-wrap: pretty; }
.article-body li::marker { color: var(--cn-muted); }

.article-body strong { color: var(--cn-ink); font-weight: 600; }

.article-body .text-link {
  color: var(--cn-accent-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-note {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--cn-blue-200);
  border-radius: var(--cn-radius-sm);
  background: var(--cn-blue-50);
  font-size: 15.5px;
  line-height: 1.6;
}
.article-note p:last-child { margin-bottom: 0; }

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--cn-line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cn-accent-deep);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   竞品对照表
   --------------------------------------------------------------------------- */
.cmp-scroll {
  margin: 26px 0 10px;
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}

.cmp-table th,
.cmp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cn-line);
  text-align: left;
  vertical-align: top;
}

.cmp-table thead th {
  background: var(--cn-soft);
  color: var(--cn-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.cmp-table tbody th {
  width: 27%;
  color: var(--cn-ink);
  font-weight: 600;
}

.cmp-table .is-us { background: var(--cn-blue-50); }
.cmp-table thead .is-us { background: var(--cn-blue-100); }

.cmp-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.cmp-pick > div {
  padding: 18px 20px;
  border: 1px solid var(--cn-line);
  border-radius: var(--cn-radius-sm);
  background: var(--cn-soft);
}

.cmp-pick h3 { margin: 0 0 8px; }

.cmp-pick ul { margin: 0; padding-left: 18px; }
.cmp-pick li {
  margin: 6px 0;
  color: var(--cn-ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.cmp-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}
.cmp-more a {
  padding: 8px 15px;
  border: 1px solid var(--cn-line);
  border-radius: var(--cn-radius-pill);
  color: var(--cn-ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color .18s ease;
}
.cmp-more a:hover { border-color: var(--cn-accent); }

.cmp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--cn-radius-pill);
  background: var(--cn-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.cmp-cta:hover { background: #26262a; }

/* ---------------------------------------------------------------------------
   桌面
   --------------------------------------------------------------------------- */
@media (min-width: 761px) {

  .blog-hero { padding-top: 62px; padding-bottom: 8px; }

  /* 一条 900px 的标题线足够容纳整句，避免「Video editing / guides for creators」
     这种右半行只填 60% 的断法 */
  .blog-hero h1 { max-width: 900px; }
  .blog-hero > p:last-child { max-width: 620px; font-size: 17.5px; }

  .tabs { padding-top: 26px; padding-bottom: 46px; }

  /* 文字列 1.15 : 图 1 : 间距 56 —— h2 36px 时单行需要 571px，文字列 612px 够 */
  .feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .feature-art { aspect-ratio: 4 / 3; }

  .article-section { padding-top: 72px; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .shortcut-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .list-row {
    grid-template-columns: minmax(0, .72fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 12px;
  }
  .list-desc { font-size: 14.5px; }
  .list-meta { justify-content: flex-end; white-space: nowrap; }

  footer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 22px 44px;
  }
  footer p { max-width: 360px; font-size: 13px; }
  footer nav { justify-content: flex-end; gap: 4px 20px; }
  footer small { grid-column: 1 / -1; margin-top: 6px; }

  .article-shell { padding-top: 56px; padding-bottom: 96px; }
}

/* 平板：仍走三列，否则三篇指南会排成 2 + 1，右边空出半行 */
@media (min-width: 761px) and (max-width: 1023px) {
  .cards { gap: 18px; }
  .card h3 { font-size: 17px; line-height: 1.3; }
  .card p:not(.tag) { font-size: 14px; }
  .shortcut-cards .card h3 { font-size: 18px; }
}

/* 平板竖屏：精选区左右分栏后文字列只剩 340px，标题要折两行，改为上下堆叠 */
@media (max-width: 899px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .feature-art { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .article-hero img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Featured guide illustration: show the pause-removal idea at a glance. */
.feature-art.silence-art { display:flex; align-items:center; justify-content:center; padding:clamp(22px, 5vw, 50px); background:linear-gradient(145deg,#eaf3fc,#f5f8fc); border:1px solid #e1eaf3; }
.silence-art-card { width:100%; max-width:390px; padding:clamp(20px,3vw,28px); border:1px solid #e1e8ef; border-radius:18px; background:#fff; box-shadow:0 18px 40px rgba(42,65,90,.08); }
.silence-art-top { display:flex; justify-content:space-between; gap:12px; color:#718092; font-size:12px; line-height:1.35; }
.silence-art-top span:first-child { color:#18242f; font-weight:600; font-size:14px; }
.silence-wave { height:50px; display:flex; align-items:center; gap:5px; margin-top:13px; }
.silence-wave i { display:block; height:36px; flex:1; border-radius:5px; background:repeating-linear-gradient(90deg,#80b5e2 0 3px,transparent 3px 6px); mask-image:linear-gradient(to bottom,transparent,#000 26%,#000 74%,transparent); }
.silence-before i:nth-child(even) { flex:.44; height:4px; background:#d9e1e8; mask-image:none; }
.silence-wave i:nth-child(3n) { height:26px; }
.silence-after i { background:repeating-linear-gradient(90deg,#398dcf 0 3px,transparent 3px 6px); }
.silence-divider { height:1px; background:#edf1f5; margin:18px 0; }
@media(max-width:520px){.silence-art-card{padding:20px}.silence-art-top{font-size:11px}}

/* Guide and comparison pages share the feature-page visual language. */
.article-shell { max-width:none; padding:0 0 88px; }
.article-masthead { background:var(--cn-wash-hero); border-bottom:1px solid rgba(13,60,110,.06); padding:clamp(48px,6vw,82px) var(--cn-gutter) clamp(40px,5vw,64px); }
.article-intro { max-width:calc(var(--cn-max) - 2 * var(--cn-gutter)); margin:0 auto; }
.article-intro.has-visual { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:clamp(32px,5vw,72px); align-items:center; }
.article-heading { min-width:0; }
.article-heading .kicker { color:var(--cn-ink-soft); font-size:14px; font-weight:500; margin:0 0 14px; }
.article-heading h1 { max-width:20ch; margin:0 0 18px; }
.article-dek { max-width:60ch; color:var(--cn-ink-soft); font-size:16.5px; line-height:1.65; }
.article-meta { margin-top:20px; }
.article-hero { margin:0; width:100%; }
.article-hero img { aspect-ratio:16 / 10; }
.article-intro .silence-art { min-height:280px; }
.article-body { max-width:700px; margin:0 auto; padding:clamp(48px,5vw,72px) 20px 0; }
@media (max-width:760px) { .article-shell { padding:0 0 64px; } .article-intro.has-visual { grid-template-columns:minmax(0,1fr); gap:30px; } .article-intro .silence-art { min-height:230px; } }
