﻿:root { --brand: #4f7cff; --brand2: #7c3aed; --ink: #16203a; --muted: #6b7794; --line: #e8ecf6; --bg: #f6f8fd; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.75 -apple-system, "Segoe UI", "Microsoft YaHei", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.hd { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; color: #33415c; font-size: 14.5px; }
.nav a:hover { background: #eef2ff; color: var(--brand); }
.side-tools { display: flex; align-items: center; gap: 10px; }
.search { display: flex; }
.search input { width: 160px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px 0 0 9px; background: #fff; outline: none; }
.search button { padding: 8px 14px; border: 0; border-radius: 0 9px 9px 0; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; cursor: pointer; }
.langs { display: flex; gap: 6px; }
.langs a { font-size: 12.5px; padding: 5px 9px; border-radius: 999px; background: #f1f4fb; color: var(--muted); }
.langs a.on { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.hero { position: relative; margin: 18px 0 8px; border-radius: 18px; overflow: hidden; }
.hero-bg { width: 100%; height: 300px; object-fit: cover; }
.hero-mask { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 46px; background: linear-gradient(90deg, rgba(10, 16, 40, .78), rgba(10, 16, 40, .1)); color: #fff; }
.hero-mask h1 { margin: 0 0 10px; font-size: 32px; max-width: 620px; }
.hero-mask p { margin: 0; opacity: .85; max-width: 620px; }
.hero-btn { display: inline-block; margin-top: 16px; padding: 10px 20px; border-radius: 10px; background: #fff; color: #16203a; width: fit-content; font-weight: 600; }
.block { margin: 26px 0; }
.bt { font-size: 19px; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--brand); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31, 45, 97, .12); }
.card .pic { height: 160px; overflow: hidden; background: #e9eefb; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 12px 14px 6px; font-size: 16px; line-height: 1.5; }
.card p { margin: 0 14px; color: var(--muted); font-size: 13.5px; height: 44px; overflow: hidden; }
.card .meta { display: flex; justify-content: space-between; padding: 10px 14px 0; font-size: 12.5px; color: var(--muted); }
.card .meta .cat { color: var(--brand); }
.rd { display: block; margin: 10px 14px 16px; color: var(--brand); font-size: 13.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.list li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s; }
.list li:hover { box-shadow: 0 12px 28px rgba(31, 45, 97, .1); }
.list li a { display: flex; gap: 14px; padding: 12px; }
.list .pic { flex: none; width: 180px; height: 116px; border-radius: 10px; overflow: hidden; background: #e9eefb; }
.list .pic img { width: 100%; height: 100%; object-fit: cover; }
.list .tx b { display: block; font-size: 16px; line-height: 1.5; }
.list .tx em { display: block; font-style: normal; color: var(--muted); font-size: 12.5px; margin: 4px 0 6px; }
.list .tx i { font-style: normal; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list.big .pic { width: 220px; height: 140px; }
.side .box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.side .box h3 { margin: 0 0 12px; font-size: 15px; }
.cats li { list-style: none; }
.cats a { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #eef1f8; font-size: 14px; }
.cats a em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.rank { counter-reset: r; padding-left: 0; margin: 0; }
.rank li { list-style: none; counter-increment: r; padding: 8px 0; border-bottom: 1px dashed #eef1f8; font-size: 14px; display: flex; gap: 10px; }
.rank li:before { content: counter(r); flex: none; width: 20px; height: 20px; border-radius: 6px; background: #eef2ff; color: var(--brand); font-size: 12px; display: grid; place-items: center; }
.rank li span { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 5px 11px; border-radius: 999px; background: #eef2ff; color: #33415c; font-size: 12.5px; }
.tags a:hover { background: var(--brand); color: #fff; }
.crumb { color: var(--muted); font-size: 13px; padding: 16px 0 0; }
.crumb a { color: var(--brand); }
.cat-intro { margin: 14px 0 4px; }
.cat-intro h1 { margin: 0 0 6px; font-size: 26px; }
.cat-intro p { margin: 0; color: var(--muted); }
.post { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin: 18px 0; }
.pt { margin: 6px 0 10px; font-size: 27px; line-height: 1.4; }
.post .sub { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12.5px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post .content { font-size: 16px; line-height: 1.9; color: #25304c; }
.post .content h2 { font-size: 21px; margin: 26px 0 12px; }
.post .content h3 { font-size: 18px; margin: 22px 0 10px; }
.post .content p { margin: 0 0 16px; }
.post .content img { border-radius: 12px; margin: 12px auto; }
.post .content blockquote { margin: 16px 0; padding: 12px 16px; background: #f3f6fe; border-left: 4px solid var(--brand); color: #47546f; }
.post .content ul, .post .content ol { padding-left: 22px; }
.post-tags { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; }
.prevnext a { color: var(--brand); }
.ad { margin: 18px 0; text-align: center; }
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.pagination a { padding: 7px 13px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.pagination a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .info { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.notfound, .search-page { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; margin: 18px 0; text-align: center; }
.notfound h1 { font-size: 64px; margin: 0; background: linear-gradient(135deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-page { text-align: left; }
.search-page .search { margin: 14px 0 20px; }
.search-page .search input { width: 100%; }
.ft { background: #0f172a; color: #b8c4e0; margin-top: 40px; }
.ft-in { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 22px; padding: 34px 18px; }
.ft-col h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.ft-col ul { padding: 0; margin: 0; }
.ft-col li { list-style: none; padding: 4px 0; font-size: 13.5px; }
.ft-col li a:hover { color: #fff; }
.ft-col .tags a { background: rgba(255, 255, 255, .08); color: #c9d5f2; }
.ft .cp { font-size: 12.5px; opacity: .7; }
.ft-btm { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 18px 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; }
.lang-line a { margin-left: 10px; color: #c9d5f2; }
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hd .wrap { height: auto; flex-wrap: wrap; padding: 10px 18px; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .search input { width: 120px; }
  .cards { grid-template-columns: 1fr; }
  .list li a { flex-direction: column; }
  .list .pic, .list.big .pic { width: 100%; height: 180px; }
  .hero-mask { padding: 0 20px; }
  .hero-mask h1 { font-size: 22px; }
  .ft-in { grid-template-columns: 1fr; }
}

