/* 文章專區（列表頁與文章頁共用） */
.art-head { padding: 4.5rem 0 1rem; }
.art-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; }
.art-body { padding-top: 1.5rem; }

.cat-index { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.cat-index button {
  font: inherit; font-size: 1rem; cursor: pointer;
  padding: .45em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.cat-index button:hover { border-color: var(--green); }
.cat-index button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.cat-n { font-size: .85em; opacity: .65; }

.art-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.art-card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.art-card a:hover { border-color: var(--green); transform: translateY(-2px); }
.art-card h2 { font-size: 1.25rem; margin: .5rem 0 .4rem; }
.art-card p { color: var(--muted); margin: 0 0 1rem; font-size: 1rem; }
.art-card time { margin-top: auto; color: var(--muted); font-size: .9rem; }
.art-tag { align-self: flex-start; font-size: .85rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; }

.art-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

.fb-box { margin-top: 4rem; }



/* 單篇文章 */
.article { width: min(760px, 92vw); margin: 0 auto; padding: 3.5rem 0 4rem; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article .meta { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.article h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.article p, .article li { line-height: 1.9; }
.article .back { display: inline-block; margin-bottom: 1.5rem; font-size: .95rem; }
.article-cta { margin-top: 3rem; padding: 1.8rem; border-radius: var(--radius); background: var(--sand); }
.article-cta p { margin: 0 0 1rem; }

@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .art-head { padding: 2.6rem 0 .5rem; }
  .art-head h1 { font-size: 1.8rem; line-height: 1.4; }
  .cat-index { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4vw 1.5rem; padding: 0 4vw .4rem; scrollbar-width: none; }
  .cat-index button { flex: none; }
  .art-list { grid-template-columns: 1fr; }
}
