* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; background: #f4f6fb; color: #333; min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: #2b6cb0; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-head { background: linear-gradient(135deg, #2b5876, #4e4376); padding: 26px 0 30px; }
.site-head .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.logo { color: #fff; font-size: 26px; font-weight: bold; letter-spacing: 2px; }
.search { display: flex; width: 100%; max-width: 620px; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 13px 16px; font-size: 15px; outline: none; }
.search button { flex: none; border: 0; background: #ff9f43; color: #fff; font-size: 16px; padding: 0 30px; border-radius: 0 6px 6px 0; cursor: pointer; }
.search button:hover { background: #f7861b; }

main { flex: 1; padding: 20px 16px 40px; }

/* 分类 */
.cats { margin-bottom: 18px; }
.cats a { display: inline-block; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 5px 14px; margin: 0 8px 8px 0; font-size: 13px; color: #555; }
.cats a.on, .cats a:hover { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }

/* 热门 */
.hot { background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.hot h2, .result h2 { font-size: 17px; margin-bottom: 14px; }
.result h2 small { color: #999; font-size: 13px; font-weight: normal; margin-left: 8px; }
.hot-list { list-style: none; columns: 2; column-gap: 34px; }
.hot-list li { margin-bottom: 9px; break-inside: avoid; }
.hot-list a { display: flex; align-items: center; gap: 8px; color: #444; font-size: 14px; }
.hot-list a:hover .t { color: #2b6cb0; }
.hot-list .rank { width: 22px; height: 22px; line-height: 22px; text-align: center; background: #cbd5e0; color: #fff; border-radius: 5px; font-size: 12px; flex: none; }
.hot-list .rank.top { background: #e53e3e; }
.hot-list .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list .c { color: #a0aec0; font-size: 12px; flex: none; }

/* 结果列表 */
.result { background: #fff; border-radius: 10px; padding: 18px 20px 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.res-list { list-style: none; }
.res-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border-bottom: 1px dashed #edf2f7; }
.res-list .info { min-width: 0; }
.res-list .title { display: block; font-size: 15px; color: #2d3748; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-list .title:hover { color: #2b6cb0; }
.meta { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.meta em { font-style: normal; font-size: 12px; border-radius: 4px; padding: 1px 8px; }
.tag { background: #ebf4ff; color: #2b6cb0; }
.code { background: #fefcbf; color: #975a16; }
.clk { background: #f0fff4; color: #2f855a; }
.go { flex: none; background: #2b6cb0; color: #fff; font-size: 13px; padding: 7px 16px; border-radius: 6px; }
.go:hover { background: #24568f; }
.go-group { flex: none; display: flex; gap: 8px; }
.go.bd { background: #2b6cb0; }
.go.bd:hover, .go.bd.on { background: #1a4f88; }
.go.qk { background: #38a169; }
.go.qk:hover, .go.qk.on { background: #2c8557; }
.jump-alt { display: flex; gap: 10px; justify-content: center; margin: 6px 0 10px; }
.jump-alt .go { padding: 8px 20px; font-size: 14px; opacity: .62; }
.jump-alt .go.on { opacity: 1; box-shadow: 0 0 0 2px rgba(43,108,176,.25); }
.empty { color: #999; padding: 30px 0; text-align: center; }

/* 分页 */
.pager { margin-top: 18px; text-align: center; }
.pager a, .pager span { display: inline-block; margin: 0 5px; padding: 6px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; color: #4a5568; }
.pager a:hover { border-color: #2b6cb0; color: #2b6cb0; }
.pager .pager-jump { display: inline-block; margin-left: 10px; }
.pager-jump input { width: 74px; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; text-align: center; }
.pager-jump button { padding: 6px 14px; border: 0; background: #2b6cb0; color: #fff; border-radius: 6px; font-size: 14px; cursor: pointer; vertical-align: middle; }
.pager-jump button:hover { background: #24568f; }

/* 板块标题右侧入口 */
.result h2 .more { float: right; font-size: 13px; font-weight: normal; color: #2b6cb0; margin-top: 2px; }
.result h2 .more:hover { text-decoration: underline; }

/* 后台分类多选 */
.cat-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #cbd5e0; border-radius: 18px; padding: 5px 12px; font-size: 13px; color: #4a5568; cursor: pointer; margin: 0; }
.cat-pick input { margin: 0; }
.cat-pick.on { background: #ebf4ff; border-color: #2b6cb0; color: #2b6cb0; }

/* 错误提示 */
.err-box { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; border-radius: 8px; padding: 16px 18px; margin-bottom: 20px; font-size: 14px; line-height: 1.8; }

/* 跳转页 */
.jump-box { max-width: 520px; margin: 6vh auto 0; background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 40px 34px; text-align: center; line-height: 2; }
.jump-box h2 { margin-bottom: 10px; word-break: break-all; }
.jump-code { background: #fffbea; border: 1px dashed #ecc94b; border-radius: 8px; padding: 8px; font-size: 15px; }
.jump-code a { margin-left: 8px; font-size: 13px; }
.pc-tip { max-width: 760px; background: transparent; box-shadow: none; padding: 30px 20px 60px; }
.pc-tip .tip-name { font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2b6cb0, #553c9a); border-radius: 10px; padding: 14px 20px; word-break: break-all; line-height: 1.5; margin-bottom: 20px; box-shadow: 0 4px 14px rgba(43, 108, 176, .28); }
.pc-tip .tip-dark { color: #1a202c; font-size: 26px; font-weight: bold; line-height: 1.9; margin-bottom: 18px; }
.pc-tip .now-label { display: inline-block; font-size: 18px; font-weight: 800; color: #fff; background: #d97706; border-radius: 30px; padding: 8px 26px; margin: 8px 0 16px; box-shadow: 0 3px 10px rgba(217, 119, 6, .35); }
.pc-tip .tip-red { color: #e53e3e; font-size: 22px; line-height: 1.7; margin-bottom: 12px; }
.pc-tip .tip-red.bold { font-size: 24px; margin-top: 10px; }
.pc-tip .tip-gray { color: #4a5568; font-size: 17px; margin: 8px 0; }
.pc-tip .tip-strong { color: #1a202c; font-weight: bold; font-size: 19px; line-height: 1.9; margin: 8px 0 14px; }
.pc-tip .tip-blue { color: #1a4fd6; font-size: 17px; margin: 6px 0 14px; }
.pc-tip .tip-switch { color: #1a202c; font-size: 17px; margin: 10px 0 6px; }
.pc-tip .tip-switch .arrow { color: #2b6cb0; font-weight: bold; }
.qr-box { display: inline-block; border: 0; padding: 6px; margin: 10px 0; background: #fff; }
.qr-box svg { display: block; width: 260px; height: 260px; }
.link-line { font-size: 16px; color: #4a5568; word-break: break-all; background: transparent; border: 0; padding: 4px 12px; margin: 6px 0; }
.link-line a { margin-left: 8px; font-size: 16px; white-space: nowrap; color: #2b6cb0; }
.alt-links { margin-top: 14px; display: flex; gap: 12px; justify-content: center; }
.alt-links .go { padding: 10px 26px; font-size: 15px; opacity: .5; border: 2px solid transparent; }
.alt-links .go.on { opacity: 1; font-weight: bold; transform: scale(1.08); border-color: #fff; box-shadow: 0 0 0 3px rgba(43, 108, 176, .35), 0 6px 16px rgba(0, 0, 0, .18); }
.alt-links .go .now { display: block; font-size: 12px; font-weight: bold; margin-top: 3px; opacity: .95; }

/* 页脚 */
.site-foot { text-align: center; color: #a0aec0; font-size: 12px; padding: 22px 0; }

/* 后台 */
body.admin { background: #f0f2f5; }
.admin-head { background: #2d3748; color: #fff; padding: 14px 0; }
.admin-head .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.admin-head .logo { font-size: 18px; letter-spacing: 1px; }
.admin-head a.nav { color: #cbd5e0; font-size: 14px; }
.admin-head a.nav:hover, .admin-head a.nav.on { color: #fff; font-weight: bold; }
.admin-head .right { margin-left: auto; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 22px; margin-top: 22px; }
.card h2 { font-size: 16px; margin-bottom: 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 22px; }
.stat { background: #fff; border-radius: 10px; padding: 18px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat b { display: block; font-size: 26px; color: #2b6cb0; margin-bottom: 4px; }
.stat span { color: #718096; font-size: 13px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb th, .tb td { padding: 10px 8px; border-bottom: 1px solid #edf2f7; text-align: left; }
.tb th { color: #718096; font-weight: normal; background: #f8fafc; }
.tb tr:hover td { background: #f8fbff; }
.tb .num { text-align: right; }
.btn { display: inline-block; border: 0; cursor: pointer; border-radius: 6px; padding: 8px 18px; font-size: 14px; }
.btn.pri { background: #2b6cb0; color: #fff; }
.btn.warn { background: #e53e3e; color: #fff; padding: 5px 12px; font-size: 12px; }
.btn.ok { background: #38a169; color: #fff; padding: 5px 12px; font-size: 12px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; color: #4a5568; margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=file] { width: 100%; max-width: 560px; border: 1px solid #cbd5e0; border-radius: 6px; padding: 10px 12px; font-size: 14px; outline: none; }
.form-row input:focus { border-color: #2b6cb0; }
.login-box { max-width: 360px; margin: 16vh auto 0; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 36px 32px; }
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 24px; color: #2d3748; }
.tip { font-size: 13px; color: #718096; line-height: 1.9; }
.ok-box { background: #f0fff4; border: 1px solid #9ae6b4; color: #2f855a; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }

/* 手机适配 */
@media (max-width: 640px) {
  .site-head { padding: 18px 0 22px; }
  .site-head .wrap { gap: 12px; }
  .logo { font-size: 22px; }
  .search button { padding: 0 16px; font-size: 15px; }
  .hot-list { columns: 1; }
  .hot-list .t { font-size: 13px; }
  .res-list li { flex-direction: column; align-items: stretch; gap: 8px; }
  .res-list .title { font-size: 14px; white-space: normal; overflow: visible; }
  .go-group { justify-content: flex-start; }
  .go { padding: 6px 12px; font-size: 12px; }
  .go-group { gap: 6px; }
  .result { padding: 14px 14px 18px; }
  .pc-tip { padding: 20px 12px 40px; }
  .pc-tip .tip-name { font-size: 19px; padding: 12px 14px; }
  .pc-tip .tip-dark { font-size: 21px; }
  .qr-box svg { width: 200px; height: 200px; }
  .alt-links { flex-direction: column; align-items: center; }
  .alt-links .go { width: 100%; max-width: 300px; text-align: center; }
  .pick-btns { flex-direction: column; align-items: stretch; }
  .pick-btns .go { max-width: none; padding: 12px; }
  .admin-head .wrap { gap: 12px; }
  .admin-head .right { margin-left: 0; }
  /* 后台表格手机适配：保持表格完整宽度，容器内横向滚动 */
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tb { min-width: 620px; }
}

/* 网盘选择弹窗 */
.pick-trigger { cursor: pointer; }
.pick-mask { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(15, 23, 42, .55); align-items: center; justify-content: center; padding: 20px; }
.pick-box { background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); padding: 32px 30px; width: 100%; max-width: 420px; text-align: center; position: relative; }
.pick-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: #a0aec0; cursor: pointer; }
.pick-close:hover { color: #2d3748; }
.pick-box h3 { font-size: 18px; color: #2d3748; margin-bottom: 8px; }
.pick-name { font-size: 14px; color: #718096; word-break: break-all; line-height: 1.7; margin-bottom: 22px; padding: 0 6px; max-height: 60px; overflow: hidden; }
.pick-btns { display: flex; gap: 14px; justify-content: center; }
.pick-btns .go { flex: 1; max-width: 160px; padding: 12px 0; font-size: 15px; border-radius: 8px; text-align: center; }
.pick-tip { font-size: 12px; color: #a0aec0; margin-top: 18px; }
