/* ============================================================
   9GM搜服 · 内容页专属样式 content.css
   资讯列表 / 文章详情 / FAQ / 教程 / 相关推荐
   ============================================================ */

/* ---------- 资讯列表 ---------- */
.art-item { display: flex; gap: 16px; padding: 18px 4px; border-bottom: 1px dashed var(--line-soft); transition: background .2s; }
.art-item:hover { background: rgba(255, 140, 50, .04); }
.art-item:first-child { padding-top: 8px; }
.art-img { flex-shrink: 0; width: 190px; height: 128px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.art-item:hover .art-img img { transform: scale(1.08); }
.art-img .art-cat { position: absolute; left: 8px; top: 8px; z-index: 2; background: rgba(10, 8, 6, .78); color: var(--gold); font-size: 11px; padding: 2px 9px; border-radius: 20px; border: 1px solid rgba(255, 170, 60, .4); }
.art-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.art-body h3 { font-size: 17px; color: #fff; font-weight: 700; line-height: 1.5; }
.art-body h3 a:hover { color: var(--gold); }
.art-body p { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.art-meta i { font-style: normal; }
.art-meta i.hot { color: var(--fire); font-weight: 700; }

/* ---------- 文章详情 ---------- */
.article-wrap { padding: 26px 30px; }
.article-head { text-align: center; border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; margin-bottom: 22px; }
.article-head h1 { font-family: var(--font-title); font-size: 27px; color: #fff; font-weight: 800; line-height: 1.5; letter-spacing: 1px; }
.article-head .art-meta { justify-content: center; margin-top: 12px; }
.article-head .art-cats { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.article-head .art-cats a { font-size: 12px; color: var(--gold); border: 1px solid rgba(255, 170, 60, .4); padding: 2px 12px; border-radius: 20px; background: rgba(255, 140, 50, .07); }
.article-head .art-cats a:hover { background: rgba(255, 140, 50, .16); }

.article-toc { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-left: 3px solid var(--fire); border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; }
.article-toc b { color: var(--gold); font-size: 14px; display: block; margin-bottom: 8px; }
.article-toc ol { list-style: none; }
.article-toc li { font-size: 13px; color: var(--text-2); padding: 4px 0; border-bottom: 1px dashed var(--line-soft); }
.article-toc li:last-child { border-bottom: none; }
.article-toc li::before { content: "▸ "; color: var(--fire); }
.article-toc a:hover { color: var(--gold); }

.article-body { font-size: 15px; color: var(--text); line-height: 2; }
.article-body h2 { font-family: var(--font-title); font-size: 21px; color: var(--gold); margin: 30px 0 14px; padding-left: 14px; border-left: 4px solid var(--fire); line-height: 1.5; }
.article-body h3 { font-size: 17px; color: #fff; margin: 24px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px 22px; }
.article-body ul li { list-style: disc; margin-bottom: 6px; }
.article-body ol li { list-style: decimal; margin-bottom: 6px; }
.article-body b { color: #fff; }
.article-body .hl { color: var(--gold); font-weight: 700; }
.article-body .tip-box { background: linear-gradient(150deg, rgba(60, 30, 4, .35), rgba(20, 14, 6, .5)); border: 1px solid rgba(255, 190, 90, .35); border-radius: 12px; padding: 14px 18px; margin: 16px 0; font-size: 13px; color: var(--text-2); }
.article-body .tip-box b { color: #ffd76a; }
.article-body img { border-radius: 12px; margin: 14px auto; border: 1px solid var(--line); }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body table th { background: rgba(255, 130, 40, .14); color: var(--gold); padding: 10px 12px; font-size: 13px; border: 1px solid var(--line); text-align: left; }
.article-body table td { padding: 10px 12px; font-size: 13px; border: 1px solid var(--line-soft); color: var(--text-2); }

.article-foot { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.article-foot a { color: var(--text-2); }
.article-foot a:hover { color: var(--gold); }

/* ---------- FAQ 折叠 ---------- */
.faq-item { border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: rgba(255, 255, 255, .025); }
.faq-q { width: 100%; text-align: left; padding: 15px 18px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: #fff; font-weight: 600; transition: background .2s; }
.faq-q:hover { background: rgba(255, 140, 50, .05); }
.faq-q .q-ico { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(120deg, var(--fire), var(--red-deep)); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.faq-q .arrow { margin-left: auto; color: var(--muted); transition: transform .3s; font-size: 12px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a-inner { padding: 4px 18px 16px 52px; font-size: 13px; color: var(--text-2); line-height: 1.9; }
.faq-a-inner b { color: var(--gold); }

/* ---------- 相关推荐 ---------- */
.related-title { margin: 26px 0 14px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; transition: .3s; }
.related-card:hover { transform: translateY(-4px); border-color: rgba(255, 170, 60, .5); }
.related-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; }
.related-card b { display: block; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-card b:hover { color: var(--gold); }
.related-card .btn { margin-top: 8px; width: 100%; }

/* ---------- 内容页响应式 ---------- */
@media (max-width: 900px) {
  .art-item { flex-direction: column; }
  .art-img { width: 100%; height: 190px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .article-wrap { padding: 18px 16px; }
  .article-head h1 { font-size: 21px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
