* { box-sizing: border-box; }

:root {
  --blue: #0c5ee8;
  --blue-light: #edf4ff;
  --text: #12233f;
  --muted: #69809f;
  --line: #e5ecf6;
  --surface: #ffffff;
  --bg: #f6f9fe;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.mobile-body { min-width: 320px; }
.mobile-body-404 { min-height: 100vh; display: flex; flex-direction: column; }
.mobile-body-404 .m-page { flex: 1; }
.m-header { padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.m-header-top { padding: 12px 14px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-brand { display: flex; align-items: center; gap: 8px; color: #0b1733; line-height: 1; }
.m-brand span { color: var(--blue); font-size: 30px; font-weight: 950; letter-spacing: 2px; }
.m-brand strong { font-size: 22px; font-weight: 900; }
.m-search { min-width: 0; width: 176px; height: 34px; display: flex; overflow: hidden; border: 1px solid #d6e3ff; border-radius: 999px; background: #f8fbff; }
.m-search input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.m-search button { flex: 0 0 52px; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }
.m-nav { padding: 0 14px 12px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.m-nav::-webkit-scrollbar { display: none; }
.m-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border: 1px solid #d9e5ff; border-radius: 999px; background: #f4f8ff; color: var(--blue); font-size: 13px; font-weight: 600; white-space: nowrap; }
.m-nav a.active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(12, 94, 232, .18); }

.m-page { padding: 14px 12px 24px; display: grid; gap: 14px; }
.m-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.m-breadcrumb a { color: var(--muted); }
.m-rank-hero { overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #0b55d6 0%, #1568ef 64%, #0c59d6 100%); color: #fff; }
.m-category-hero { overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #0b55d6 0%, #1568ef 64%, #0c59d6 100%); color: #fff; }
.m-category-copy { padding: 22px 16px 20px; }
.m-category-copy h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.14; }
.m-category-copy p { margin: 0; color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.85; }
.m-rank-main { padding: 18px 16px 14px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.m-cover { width: 112px; height: 112px; object-fit: cover; border-radius: 18px; background: #fff; }
.m-rank-copy { min-width: 0; }
.m-rank-copy h1 { margin: 2px 0 8px; overflow: hidden; font-size: 30px; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.m-tags { margin-top: 14px; display: flex; flex-wrap: nowrap; gap: 8px; overflow: hidden; }
.m-tags a { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; white-space: nowrap; }
.m-rank-desc { padding: 0 16px 18px; margin: 0; color: rgba(255,255,255,.9); font-size: 14px; line-height: 1.8; }
.m-facts { padding: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-facts div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.1); }
.m-facts dt { color: rgba(255,255,255,.76); font-size: 12px; }
.m-facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 800; }
.m-download { margin: 18px 16px 18px; display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 14px; background: #fff; color: var(--blue); font-size: 16px; font-weight: 800; }

.m-content-panel, .m-list-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.m-tag-strip-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.m-tag-strip { padding: 14px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.m-tag-strip::-webkit-scrollbar { display: none; }
.m-tag-strip a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border: 1px solid #d9e5ff; border-radius: 999px; background: #f5f8ff; color: var(--blue); font-size: 13px; font-weight: 600; white-space: nowrap; }
.m-tag-strip a.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.mobile-resource-content { padding: 0; counter-reset: none; }
.mobile-resource-content h2 { margin: 0; padding: 20px 16px 8px; border-top: 1px solid var(--line); color: #0e2d64; font-size: 21px; line-height: 1.2; }
.mobile-resource-content h2:first-child { border-top: 0; }
.mobile-resource-content h2::before { content: none; }
.mobile-resource-content p { margin: 0; padding: 0 16px 20px; color: #4c607e; font-size: 15px; line-height: 1.9; }
.mobile-resource-content ul { margin: 0; padding: 0 16px 20px; display: block; list-style: none; color: #4c607e; font-size: 15px; line-height: 1.9; }
.mobile-resource-content ul li { white-space: normal; }

.m-panel-head { padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.m-panel-head h2 { margin: 0; color: #0e2d64; font-size: 22px; line-height: 1.2; }
.m-rank-list { margin: 0; padding: 0; list-style: none; }
.m-rank-list li { padding: 16px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; border-top: 1px solid var(--line); }
.m-rank-list li:first-child { border-top: 0; }
.m-rank-list li.featured { grid-template-columns: 36px 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.m-rank-list i { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--blue-light); color: var(--blue); font-size: 18px; font-style: normal; font-weight: 900; }
.m-rank-thumb-link { display: block; line-height: 0; }
.m-rank-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; background: #f7faff; border: 1px solid var(--line); }
.m-rank-list b { display: block; min-width: 0; margin-bottom: 8px; overflow: hidden; font-size: 21px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.m-rank-list b a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-rank-list b a:hover { color: var(--blue); }
.m-mini-tags { display: flex; flex-wrap: nowrap; gap: 8px; overflow: hidden; }
.m-mini-tags a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid #d9e5ff; border-radius: 999px; background: #f5f8ff; color: var(--blue); font-size: 12px; white-space: nowrap; }
.m-category-list { margin: 0; padding: 0; list-style: none; }
.m-category-list li { padding: 16px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; border-top: 1px solid var(--line); }
.m-category-list li:first-child { border-top: 0; }
.m-category-thumb { display: block; line-height: 0; }
.m-category-thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 18px; background: #f7faff; border: 1px solid var(--line); }
.m-category-body { min-width: 0; }
.m-category-body b { display: block; margin: 0 0 8px; overflow: hidden; font-size: 22px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.m-category-body b a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-category-body p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; color: #4c607e; font-size: 14px; line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-pagination { padding: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border-top: 1px solid var(--line); }
.m-pagination a, .m-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 12px; font-size: 14px; }
.m-pagination a { border: 1px solid #d9e5ff; background: #fff; color: var(--blue); }
.m-pagination a.current { border-color: var(--blue); background: var(--blue); color: #fff; }
.m-pagination span { color: var(--muted); }

.m-footer { padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; color: var(--muted); text-align: center; }
.m-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 13px; }
.m-footer p { margin: 10px 0 0; font-size: 12px; }

.m-not-found-panel { padding: 28px 20px 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%); text-align: left; }
.m-not-found-code { display: block; color: #d7e5ff; font-size: 92px; font-weight: 900; line-height: 1; letter-spacing: -3px; }
.m-not-found-kicker { display: block; margin-top: 8px; color: var(--blue); font-size: 13px; font-weight: 700; }
.m-not-found-panel h1 { margin: 12px 0 14px; color: #0e2d64; font-size: 34px; line-height: 1.18; }
.m-not-found-panel p { margin: 0; color: #4c607e; font-size: 15px; line-height: 1.9; }
.m-not-found-actions { margin-top: 22px; display: flex; }
.m-not-found-primary { display: inline-flex; align-items: center; justify-content: center; min-width: 122px; height: 46px; padding: 0 18px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 800; }
