:root {
  --blue: #2563eb; --blue-d: #1d4ed8; --ink: #0f172a; --bg: #f1f5f9;
  --card: #ffffff; --text: #334155; --muted: #64748b; --line: #e2e8f0;
  --green: #16a34a; --amber: #d97706; --shadow: 0 10px 30px -12px rgba(15,23,42,.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* ── 顶栏 ── */
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; padding: 0 32px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.topbar .logo .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-d), var(--blue));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.topbar .logo em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; font-size: 14px; }
.topbar nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: all .15s; }
.topbar nav a:hover { color: var(--blue); background: #eff6ff; }

/* ── Hero ── */
.hero { background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%); color: #fff; padding: 64px 24px 96px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,.14), transparent 60%),
              radial-gradient(500px 220px at 85% 100%, rgba(96,165,250,.35), transparent 65%); }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; position: relative; }
.hero p { margin-top: 12px; font-size: 15px; opacity: .88; position: relative; }
.hero .pills { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .pill { font-size: 12.5px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); }

/* ── 主体 ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 46px 20px 70px; position: relative; z-index: 5; }
.sec-title { margin: 40px 4px 18px; font-size: 19px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(var(--blue), #60a5fa); }
.sec-title small { font-weight: 400; color: var(--muted); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(37,99,235,.25); border-color: #bfdbfe; }
.card .head { display: flex; gap: 14px; align-items: center; }
.card .icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.card.c-blue .icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.card.c-violet .icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.card.c-teal .icon { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.card h3 { font-size: 17px; color: var(--ink); }
.card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; color: #475569; background: #f1f5f9; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.card .meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; row-gap: 10px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.card .meta .ver { color: var(--green); font-weight: 700; }
.card .btns { margin-left: auto; display: flex; gap: 8px; }
.btn { display: inline-block; padding: 8px 18px; white-space: nowrap; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: all .15s; }
.btn.primary { background: linear-gradient(135deg, var(--blue-d), var(--blue)); color: #fff; box-shadow: 0 4px 12px -4px rgba(37,99,235,.5); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ── 详情页 ── */
.crumb { font-size: 13px; color: var(--muted); margin: 22px 4px 0; }
.crumb a { color: var(--blue); }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin-top: 16px; box-shadow: var(--shadow); }
.detail h2 { font-size: 21px; color: var(--ink); margin: 26px 0 12px; }
.detail h2:first-child { margin-top: 0; }
.detail > p, .detail li { font-size: 14px; line-height: 1.95; }
.detail ul { padding-left: 20px; }
.detail b { color: var(--ink); }
.dl-box { background: linear-gradient(135deg, #eff6ff, #f8fafc); border: 1px solid #bfdbfe; border-radius: 14px; padding: 20px 22px; }
.dl-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #bfdbfe; flex-wrap: wrap; }
.dl-row:last-child { border-bottom: none; }
.dl-row .name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.dl-row .size { color: var(--muted); font-size: 12.5px; }
.sha { font-size: 12px; color: var(--muted); font-family: Consolas, monospace; word-break: break-all; }
.changelog { border-left: 3px solid #bfdbfe; padding-left: 20px; margin-left: 4px; }
.changelog .item { margin-bottom: 16px; font-size: 14px; line-height: 1.8; }
.changelog .ver { font-weight: 700; color: var(--blue); font-size: 15px; }
.changelog .date { color: var(--muted); font-size: 12px; margin-left: 8px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; }
.shot-ph { height: 190px; border: 2px dashed #cbd5e1; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; background: #f8fafc; }

.footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 0 40px; }

/* ── 关键词区 ── */
.kwblock { max-width: 1100px; margin: 26px auto 0; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.kw-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px 8px; }
.kw-list a { font-size: 12.5px; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; transition: all .15s; }
.kw-list a:hover { color: var(--blue); border-color: #bfdbfe; background: #eff6ff; }
