/* zhihurank.com 知乎大V排行榜 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f7f9; color: #1a1a1e; line-height: 1.6;
}
a { color: #0084ff; text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #eef1f4; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
pre.log { background: #1a1a1e; color: #d8e0ea; padding: 16px; border-radius: 8px;
  max-height: 300px; overflow: auto; font-size: 12px; white-space: pre-wrap; }

.container { max-width: 1440px; margin: 0 auto; padding: 20px 16px 60px; }

/* 导航 */
.navbar { background: #fff; border-bottom: 1px solid #e8eaed; position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; max-width: 1440px; margin: 0 auto; }
.brand { font-size: 20px; font-weight: 700; color: #0084ff; }
.brand:hover { text-decoration: none; }
.nav-links a { margin-left: 18px; color: #1a1a1e; font-size: 14px; }
.nav-links a.btn { margin-left: 18px; }

/* 通用组件 */
.card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.btn { display: inline-block; padding: 8px 18px; border-radius: 6px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; transition: .15s; }
.btn-primary { background: #0084ff; color: #fff; }
.btn-primary:hover { background: #0073e0; text-decoration: none; color: #fff; }
.btn-outline { background: #fff; border-color: #0084ff; color: #0084ff; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.inline { display: inline-block; }
.muted { color: #8590a6; }
.small { font-size: 13px; }
.center { text-align: center; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash-ok { background: #e8f7ee; color: #157347; border: 1px solid #b7e2c8; }
.flash-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c2c0; }

.page-head { margin: 8px 0 18px; }
.page-head h1 { font-size: 26px; margin-bottom: 4px; }

/* 表单 */
.form label { display: block; margin-bottom: 12px; font-size: 14px; color: #444; }
.form input, textarea { width: 100%; margin-top: 6px; padding: 9px 12px; border: 1px solid #dcdfe4;
  border-radius: 6px; font-size: 14px; }
.form input:focus, textarea:focus { outline: none; border-color: #0084ff; }
.form input[disabled] { background: #f2f3f5; color: #8590a6; }

.auth-box { max-width: 400px; margin: 40px auto; padding: 32px; }
.auth-box h2 { margin-bottom: 24px; text-align: center; }
.auth-form .field { margin-bottom: 18px; }
.auth-form .field label { display: block; margin-bottom: 8px; font-size: 14px; color: #444; }
.auth-form .field input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid #dcdfe4;
  border-radius: 6px; font-size: 14px; transition: border-color .15s; }
.auth-form .field input:focus { outline: none; border-color: #0084ff; box-shadow: 0 0 0 3px rgba(0,132,255,.12); }
.auth-form .btn-block { height: 42px; font-size: 15px; margin-top: 4px; }
.auth-box .muted { margin-top: 16px; font-size: 13px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f1f3; }
.table th { color: #8590a6; font-weight: 500; background: #fafbfc; }
.table tbody tr:hover { background: #f7faff; }
.rank-no { color: #8590a6; width: 60px; }
.dav-name { font-weight: 600; color: #1a1a1e; }
.dav-name:hover { color: #0084ff; }
.dav-name.in-fav { color: #8b4513; font-weight: 700; }  /* 已收藏：粗体棕色 */

.size-form { margin-bottom: 12px; font-size: 14px; color: #555; }
.size-form select { padding: 6px 10px; border-radius: 6px; border: 1px solid #dcdfe4; }
.size-form a { margin: 0 4px; }
.size-form a.active { font-weight: 700; color: #0084ff; }

.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 18px 0; font-size: 14px; }

/* 详情页 */
.dav-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.stat { text-align: center; padding: 14px 6px; background: #f7f8fa; border-radius: 8px; }
.stat b { display: block; font-size: 20px; color: #0084ff; }
.stat span { font-size: 13px; color: #8590a6; }

.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px;
  background: #eef4ff; color: #0084ff; margin-left: 6px; vertical-align: middle; }
.tag-vip { background: #fff4e5; color: #d48806; }
.tag-svip { background: #f6ecff; color: #722ed1; }
.tag-none { background: #f0f1f3; color: #8590a6; }
.tag-pending { background: #fff7e6; color: #d48806; }
.tag-success { background: #e8f7ee; color: #157347; }
.tag-failed { background: #fdecec; color: #c0392b; }
.tag-active { background: #e8f7ee; color: #157347; }
.tag-paused { background: #f0f1f3; color: #8590a6; }

.top-tagline { font-size: 15px; color: #8590a6; margin: 2px 0 0; }
.top-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  justify-content: space-between; margin-bottom: 16px; }
.top-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.filter-form { display: flex; gap: 12px; align-items: center; margin: 0; font-size: 14px; }
.filter-form .chk { display: flex; gap: 4px; align-items: center; margin: 0;
  cursor: pointer; white-space: nowrap; }
.filter-form input[type="checkbox"] { margin: 0; cursor: pointer; }
.tag-badge { background: #fff8e6; color: #b7791f; font-weight: 700; }
.sort-form { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; }
.sort-form label { margin: 0; font-size: 14px; }
.sort-form select, .search-form input[type="text"] { margin: 0; }
.search-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.search-form input[type="text"] { width: 220px; margin: 0; }
.list-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  align-items: center; font-size: 14px; margin-top: 4px; }
.list-meta { font-size: 13px; }
.list-bottom .size-form { margin-bottom: 0; }
.list-bottom .pager { margin: 0; }
.pager a, .pager .cur { display: inline-block; min-width: 20px; text-align: center;
  padding: 2px 6px; margin: 0 1px; }
.pager .cur { color: #fff; background: #0084ff; border-radius: 3px; font-weight: 600; }

/* 后台用户列表行内操作：单行不换行 */
.table td.ops { white-space: nowrap; }
.table td.ops .inline { display: inline-flex; align-items: center;
  vertical-align: middle; margin-right: 6px; }
.level-select { padding: 3px 4px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 3px; }

/* 软件介绍页 */
.soft-img { width: 100%; max-width: 760px; display: block; margin: 0 auto 18px;
  border: 1px solid #eee; border-radius: 6px; }
.soft-placeholder { background: #f7f8fa; border: 1px dashed #ccc;
  border-radius: 6px; padding: 60px 20px; margin-bottom: 18px; font-size: 15px; }
.soft-features { margin: 8px 0 16px; padding-left: 20px; }
.soft-features li { margin: 6px 0; }

/* VIP 会员介绍页 */
.vip-cards { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vip-card { flex: 1 1 300px; text-align: center; }
.vip-card ul { text-align: left; margin: 12px 0 18px; padding-left: 22px; }
.vip-card ul li { margin: 8px 0; }
.vip-card-svip { border: 2px solid #0084ff; }
.vip-price { margin: 12px 0; }
.vip-price .num { font-size: 34px; font-weight: 700; color: #0084ff; }

.list-toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.list-toolbar a.active { font-weight: 700; color: #0084ff; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=text] { padding: 7px 12px; border: 1px solid #dcdfe4; border-radius: 6px;
  font-size: 14px; width: 220px; }
.search-form input[type=text]:focus { outline: none; border-color: #0084ff; }

.paytype { display: flex; gap: 18px; margin-bottom: 14px; font-size: 14px; }
.paytype label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.paytype input { accent-color: #0084ff; }

.help-steps { margin: 8px 0 12px 20px; font-size: 14px; }
.help-steps li { margin-bottom: 8px; }
.help-steps ul { margin: 6px 0 0 20px; }
.cookie-key { margin-bottom: 16px; }
.card-edit { border-left: 3px solid #0084ff; }
.row-highlight { background: #f2f8ff; }

/* 用户中心布局 */
.user-layout { display: flex; gap: 16px; align-items: flex-start; }
.side { width: 220px; flex-shrink: 0; padding: 16px; }
.side-user { font-size: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f1f3; }
.side-link { display: block; padding: 10px 12px; border-radius: 6px; color: #1a1a1e;
  font-size: 14px; margin-bottom: 4px; }
.side-link:hover { background: #f0f6ff; text-decoration: none; }
.side-link.active { background: #0084ff; color: #fff; }
.user-main { flex: 1; min-width: 0; }

/* VIP 卡片 */
.vip-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.vip-card { border: 1px solid #e8eaed; border-radius: 10px; padding: 20px; text-align: center; }
.vip-card-svip { border-color: #b98cff; background: #fdfbff; }
.vip-card h4 { font-size: 18px; margin-bottom: 8px; }
.vip-card .price { font-size: 26px; color: #e5484d; margin-bottom: 10px; }
.vip-card .price span { font-size: 13px; color: #8590a6; }
.vip-card ul { list-style: none; margin-bottom: 16px; font-size: 13px; color: #555; }
.vip-card li { padding: 4px 0; }

.apikey-box { background: #f7f8fa; border-radius: 8px; padding: 16px; margin: 12px 0;
  word-break: break-all; font-size: 14px; }

.crawler-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.footer { text-align: center; color: #8590a6; font-size: 13px; padding: 24px 0; border-top: 1px solid #e8eaed;
  background: #fff; }

@media (max-width: 768px) {
  .user-layout { flex-direction: column; }
  .side { width: 100%; }
  .vip-cards { grid-template-columns: 1fr; }
  .table { font-size: 12px; }
  .table th, .table td { padding: 6px 6px; }
}
