/* 资讯列表页 / 文章页 */

/* 分类筛选 */
.filter-bar { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-bottom:34px; }
.filter-bar button { height:40px; padding:0 22px; border:1px solid rgba(159,127,194,.26); border-radius:20px; background:rgba(255,255,255,.72);
  color:#6b5f88; font-size:15px; font-family:inherit; cursor:pointer; transition:all .2s; }
.filter-bar button:hover { border-color:rgba(199,150,238,.6); color:#805ab1; }
.filter-bar button.on { border-color:transparent; background:linear-gradient(90deg,#F881BE,#C98BEA); color:#fff; box-shadow:0 8px 20px rgba(233,130,200,.28); }

/* 分类标签 */
.chip { display:inline-block; padding:4px 12px; border-radius:12px; font-size:12px; font-weight:500; letter-spacing:.5px; }
.chip-update { background:#EDE4FB; color:#7A4BC4; }
.chip-new { background:#FCE6F2; color:#C34D8F; }
.chip-guide { background:#E4F3EC; color:#3D8F63; }

/* 头条 */
.news-feature { display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,1fr); gap:0; margin-bottom:30px; overflow:hidden;
  border-radius:22px; background:rgba(255,255,255,.82); box-shadow:0 16px 40px rgba(190,150,230,.16); transition:transform .25s, box-shadow .25s; }
.news-feature:hover { transform:translateY(-3px); box-shadow:0 22px 50px rgba(190,150,230,.22); }
.news-feature .cover { position:relative; overflow:hidden; min-height:320px; }
.news-feature .cover img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.news-feature .body { display:flex; flex-direction:column; justify-content:center; padding:38px 42px; }
.news-feature h2 { margin-top:16px; font-size:29px; line-height:1.45; font-weight:600; color:#3F2A66; letter-spacing:.5px; }
.news-feature p { margin-top:14px; font-size:15.5px; line-height:1.9; color:#6b5f88; }
.news-feature .meta { margin-top:20px; }
.news-feature .more { margin-top:22px; font-size:15px; font-weight:500; color:#A269EF; }
.news-feature:hover .more { text-decoration:underline; }

.meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:13px; color:#9d8fb5; }
.meta i { width:1px; height:12px; background:rgba(157,143,181,.4); }

/* 列表网格 */
.news-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.news-card { display:flex; flex-direction:column; overflow:hidden; border-radius:18px; background:rgba(255,255,255,.8);
  box-shadow:0 10px 26px rgba(190,150,230,.12); transition:transform .24s, box-shadow .24s; }
.news-card:hover { transform:translateY(-4px); box-shadow:0 18px 38px rgba(190,150,230,.2); }
.news-card .cover { overflow:hidden; aspect-ratio:16/9; background:#F1E4F2; }
.news-card .cover img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.news-card:hover .cover img { transform:scale(1.05); }
.news-card .body { display:flex; flex-direction:column; flex:1; padding:20px 22px 22px; }
.news-card h3 { margin-top:12px; font-size:19px; line-height:1.55; font-weight:600; color:#3F2A66; }
.news-card p { margin-top:10px; font-size:14px; line-height:1.85; color:#7c6b99;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-card .meta { margin-top:auto; padding-top:16px; }
.news-card.is-hidden { display:none; }

/* 空状态 */
.news-empty { padding:60px 20px; text-align:center; font-size:15px; color:#9d8fb5; }

/* ===== 文章详情 ===== */
.article-wrap { width:min(880px, calc(100% - 48px)); margin:0 auto; padding-bottom:8px; }
.article-head { padding-top:8px; text-align:center; }
.article-head h1 { margin-top:18px; font-size:38px; line-height:1.5; font-weight:600; color:#3F2A66; letter-spacing:.5px; }
.article-head .meta { justify-content:center; margin-top:20px; }
.article-cover { margin-top:32px; overflow:hidden; border-radius:20px; box-shadow:0 14px 36px rgba(190,150,230,.16); }
.article-cover img { width:100%; height:auto; }

.article-body { margin-top:40px; font-size:16.5px; line-height:2; color:#5b4d78; }
.article-body > p { margin:18px 0; }
.article-body h2 { margin:44px 0 4px; font-size:25px; line-height:1.6; font-weight:600; color:#3F2A66; letter-spacing:.5px;
  padding-left:16px; border-left:4px solid transparent; border-image:linear-gradient(180deg,#F881BE,#C98BEA) 1; }
.article-body h2 + p { margin-top:16px; }
.article-body ul, .article-body ol { margin:18px 0; padding-left:24px; }
.article-body li { margin:10px 0; }
.article-body li::marker { color:#C08BE0; }
.article-body strong { color:#4F4C81; font-weight:600; }
.article-body a { color:#805ab1; font-weight:500; text-decoration:underline; text-underline-offset:3px; }
.article-body blockquote { margin:26px 0; padding:20px 26px; border-radius:14px; border-left:4px solid #C98BEA;
  background:linear-gradient(120deg,rgba(252,236,248,.9),rgba(240,229,251,.9)); font-size:15.5px; color:#5E4380; }
.article-body figure { margin:30px 0; }
.article-body figure img { width:100%; border-radius:16px; box-shadow:0 12px 30px rgba(190,150,230,.16); }
.article-body figcaption { margin-top:12px; font-size:13px; color:#9d8fb5; text-align:center; }

.article-foot { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; margin-top:48px; padding-top:26px;
  border-top:1px solid rgba(159,127,194,.2); font-size:14.5px; color:#8a6fb8; }
.article-foot a:hover { color:#A269EF; text-decoration:underline; }

.article-cta { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; margin-top:40px;
  padding:28px 32px; border-radius:20px; background:linear-gradient(150deg,rgba(255,255,255,.9),rgba(243,225,250,.92));
  box-shadow:0 14px 36px rgba(190,150,230,.14); }
.article-cta h3 { font-size:21px; font-weight:600; color:#4F4C81; }
.article-cta p { margin-top:8px; font-size:14px; color:#7a6f95; }

@media (max-width: 1024px) {
  .news-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .news-feature { grid-template-columns:1fr; }
  .news-feature .cover { min-height:0; aspect-ratio:16/9; position:relative; }
  .news-feature .cover img { position:absolute; }
  .news-feature .body { padding:28px 28px 32px; }
  .news-feature h2 { font-size:24px; }
}

@media (max-width: 768px) {
  .filter-bar { gap:8px; margin-bottom:24px; }
  .filter-bar button { height:34px; padding:0 16px; font-size:13.5px; }
  .news-grid { grid-template-columns:1fr; gap:16px; }
  .news-feature { margin-bottom:20px; border-radius:18px; }
  .news-feature .body { padding:22px 20px 26px; }
  .news-feature h2 { margin-top:12px; font-size:20px; }
  .news-feature p { font-size:14px; }
  .news-feature .more { margin-top:16px; font-size:14px; }
  .news-card .body { padding:16px 18px 18px; }
  .news-card h3 { font-size:17px; }
  .article-wrap { width:calc(100% - 36px); }
  .article-head h1 { font-size:24px; }
  .article-body { margin-top:28px; font-size:15.5px; line-height:1.95; }
  .article-body h2 { margin-top:34px; font-size:20px; }
  .article-cover { margin-top:22px; border-radius:16px; }
  .article-foot { margin-top:34px; font-size:14px; }
  .article-cta { padding:22px 20px; }
  .article-cta h3 { font-size:18px; }
}
