/* AI 资讯 v2 — 前台样式: Pico.css 提供排版基础, 本文件只保留布局与品牌色 */
html{font-size:15px}   /* 前台原基准 15px, Pico 默认 16px 略大, 还原 */
body{background:#f5f7fa}
.wrap{max-width:1920px;margin:0 auto;padding:clamp(20px,3.5vw,64px)}
header{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #e4e8ee}
header h1{font-size:22px;background:linear-gradient(90deg,#6366f1,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
header h1 a{text-decoration:none;background:inherit;-webkit-background-clip:inherit;-webkit-text-fill-color:inherit}
header h1 a:hover{opacity:.8}
header .sub{color:#8a93a6;font-size:13px;margin-left:auto}
header .sub a{color:#6366f1;text-decoration:none;margin-left:10px}
header .sub a:hover{text-decoration:underline}
.recbar{background:linear-gradient(90deg,#eef2ff,#f5f3ff);border:1px solid #e0e7ff;border-radius:10px;padding:10px 16px;margin-bottom:12px;font-size:14px;color:#4338ca}
.recbar .muted{color:#8a93a6;font-size:12px;margin-left:8px}
.recbar a{color:#6366f1;text-decoration:none;margin-left:8px}
.chips{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eef1f6;margin-bottom:12px}
.tags-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.tags-scroll::-webkit-scrollbar{display:none}
.chips .tag{flex:0 0 auto;padding:5px 14px;border-radius:20px;background:#fff;border:1px solid #e0e5ec;color:#4b5563;font-size:13px;cursor:pointer;text-decoration:none;transition:.15s;white-space:nowrap}
.chips .tag:hover{border-color:#6366f1;color:#6366f1}
.chips .tag.on{background:#6366f1;border-color:#6366f1;color:#fff}
.alltags{flex:0 0 auto;padding:6px 14px;border-radius:20px;background:#eef2ff;color:#6366f1;font-size:13px;text-decoration:none;white-space:nowrap}
.alltags:hover{background:#e0e7ff}
.tags-page{display:flex;flex-direction:column;gap:16px}
.tgroup{background:#fff;border:1px solid #e8ecf2;border-radius:12px;padding:16px 18px}
.tgroup h2{font-size:15px;color:#1f2328;margin-bottom:10px}
.tgrid{display:flex;flex-wrap:wrap;gap:8px}
.tgrid .t{padding:5px 14px;border-radius:18px;background:#f7f8fb;border:1px solid #eef1f6;color:#4b5563;font-size:13px;text-decoration:none}
.tgrid .t:hover{border-color:#6366f1;color:#6366f1;background:#eef2ff}
.news-grid{display:flex;gap:16px;align-items:flex-start}
.news-grid .col{flex:1 1 0;min-width:0}
.news-card{margin-bottom:16px}
.news-card.ad-infeed{display:flex;align-items:center;justify-content:center;min-height:120px;background:#fafbfc;border:1px dashed #e5e9f0;border-radius:14px}
.item{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e8ecf2;border-radius:12px;padding:14px;transition:.15s}
.item:hover{border-color:#c7d2fe;box-shadow:0 2px 8px rgba(99,102,241,.06)}
.item img{width:100%;height:160px;object-fit:cover;border-radius:8px;background:#eef1f6}
.item .noimg{width:100%;height:160px;border-radius:8px;background:linear-gradient(135deg,#eef2ff,#f5f3ff);display:flex;align-items:center;justify-content:center;color:#a5b4fc;font-size:12px}
.item h3{font-size:16px;line-height:1.5;margin-bottom:6px}
.item h3 a{color:#1f2328;text-decoration:none}
.item h3 a:hover{color:#6366f1}
.item .src{display:inline-block;font-size:12px;color:#6366f1;background:#eef2ff;border-radius:4px;padding:1px 8px;margin-right:8px}
.item .sum{color:#6b7280;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:6px}
.item .meta{color:#9aa3b5;font-size:12px}
.read{opacity:.55}
.pager{display:flex;justify-content:center;gap:10px;padding:16px 0}
.pager a,.pager span{padding:6px 18px;border-radius:8px;background:#fff;border:1px solid #e0e5ec;color:#4b5563;text-decoration:none;font-size:14px}
.pager a:hover{border-color:#6366f1;color:#6366f1}
.layout{display:flex;gap:20px;align-items:flex-start}
.main{flex:1;min-width:0}
.side{flex:0 0 262px;position:sticky;top:14px;display:flex;flex-direction:column;gap:14px}
.s-card{background:#fff;border:1px solid #e8ecf2;border-radius:12px;padding:14px}
.s-card h2{font-size:15px;margin-bottom:8px;color:#1f2328}
.hitem{display:flex;align-items:center;gap:8px;padding:6px 6px;border-radius:8px;text-decoration:none;color:inherit}
.hitem:hover{background:#f5f7ff}
.rank{flex:0 0 22px;height:22px;line-height:22px;text-align:center;font-size:12px;color:#fff;border-radius:6px;font-weight:600}
.hn{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc{font-size:12px;color:#9aa3b5}
.tg{margin-bottom:10px}
.tg:last-child{margin-bottom:0}
.tg h3{font-size:12px;color:#6b7280;margin-bottom:5px;font-weight:600}
.tg-links{display:flex;flex-wrap:wrap;gap:4px}
.tg a{display:inline-flex;align-items:baseline;gap:3px;font-size:11.5px;color:#6366f1;text-decoration:none;padding:2px 7px;border-radius:6px;background:#f5f7ff}
.tg a:hover{background:#eef2ff}
.tg a i{font-style:normal;color:#9aa3b5;font-size:10px}
@media(max-width:820px){.layout{flex-direction:column}.side{flex:1 1 auto;width:100%;position:static}}
.art{background:#fff;border-radius:16px;padding:40px 44px;margin:18px auto 0;max-width:800px;box-shadow:0 4px 24px rgba(15,23,42,.06);border:1px solid #f1f5f9}
.art h1{font-size:27px;line-height:1.45;font-weight:700;letter-spacing:-.01em;margin:0 0 18px;color:#111827}
.art .meta{display:flex;flex-wrap:wrap;gap:6px 10px;color:#8a93a6;font-size:13px;padding:0 0 18px;margin:0 0 26px;border-bottom:1px solid #eef1f6;align-items:center}
.art .meta .mm{display:inline-block;background:#f1f5f9;padding:3px 11px;border-radius:999px;font-size:12px;color:#475569}
.art .meta a{color:#6366f1;text-decoration:none;font-weight:600}
.art .img{width:100%;max-height:420px;object-fit:cover;border-radius:14px;margin:0 0 26px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.art .body{line-height:2;color:#1f2937;font-size:16px;letter-spacing:.01em}
.art .body p{margin:0 0 1.25em}
.art .body img{max-width:100%;height:auto;border-radius:8px;margin:.5em 0}
.art .body ul,.art .body ol{padding-left:1.6em;margin:0 0 1.25em}
.art .body blockquote{border-left:3px solid #c7d2fe;margin:0 0 1.25em;padding:.2em 1em;color:#475569;background:#f8faff}
.art .body code{background:#f1f5f9;padding:.15em .4em;border-radius:4px;font-size:.9em}
.art .body pre{background:#0f172a;color:#e2e8f0;padding:1em;border-radius:8px;overflow-x:auto;line-height:1.6}
.art .body table{width:100%;border-collapse:collapse;margin:0 0 1.25em;display:block;overflow-x:auto}
.art .body td,.art .body th{border:1px solid #e5e9f0;padding:.5em .8em}
.art .body figure{margin:1em 0;text-align:center}
.art .body figcaption{color:#64748b;font-size:12px;margin-top:6px}
.art .body h2{font-size:20px;margin:1.2em 0 .6em;color:#0f172a;border-left:3px solid #6366f1;padding-left:10px}
.art .body h3{font-size:17px;margin:1em 0 .5em;color:#1e293b}
.art .body hr{border:none;border-top:1px solid #e2e8f0;margin:1.5em 0}
.art .body a{color:#6366f1;text-decoration:underline}
.art .notice{margin:18px 0 0;padding:14px 18px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:12px;color:#64748b;font-size:13px;line-height:1.8}
.back{display:inline-block;margin:14px 0 0;color:#6366f1;text-decoration:none;font-size:14px;font-weight:500;transition:opacity .15s}
.back:hover{opacity:.75}
.empty{text-align:center;color:#9aa3b5;padding:48px 0}
.loadmore{text-align:center;color:#9aa3b5;font-size:13px;padding:22px 0;user-select:none;cursor:pointer}
