/* 个人中心和等级鸡腿（11-03，照 NodeSeek 登录后的页面：用户卡、设置、个人主页、通知、进度、记录、签到）。
   数值取自 NodeSeek 的样式表（teardown logged-in/css/page_*.txt、js/board.js）；类名也照抄，方便对照。
   整站每页都会加载这个文件，所以选择器都带页面自己的类名，不影响别的页。 */

/* ---------- 被屏蔽的内容：默认藏起来，右栏用户卡的小眼镜点一下才露出来（脚本把这两个类去掉） ---------- */
.blocked-post, .blocked-comment { display: none !important; }

/* ---------- 帖子下面的签名（设置里填的，照 NodeSeek） ---------- */
.signature { border-top: 1px dashed rgb(226, 226, 226); color: rgb(120, 120, 120); max-height: 44px; overflow: hidden; padding-top: 5px; }
.signature a { color: rgb(85, 183, 134); }
.signature a:hover { color: rgb(35, 220, 127); }
.signature strong { font-weight: 400; }
.signature > * { opacity: .5; transition: opacity .2s; }
.signature:hover > * { opacity: .7; }
.dark-layout .signature { border-top: 1px dashed rgba(0, 0, 0, .3); }

/* ---------- 右栏用户卡（NodeSeek 的 .user-card）：不套外框，下面通栏「+ 发帖」 ---------- */
#nsk-right-panel-container .user-card { padding: 6px 2px 0; margin: 0 0 10px; }
.user-card .new-discussion { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; box-sizing: border-box; margin-bottom: 1rem; color: #fff; }
.user-card .new-discussion:hover { color: #fff; }
.user-card .new-discussion .iconpark-icon { width: 14px; height: 14px; color: #fff; }
.user-card .user-head { display: flex; align-items: center; gap: 0; margin: 4px 0 6px; }
.user-card .user-head .avatar-normal { width: 40px; height: 40px; }
.user-card .user-head .menu { padding: 0 1rem; min-width: 0; }
.user-card .user-head .menu .Username { font-size: 16px; color: var(--link-color); font-weight: 400; }
.user-card .user-head .menu .Username:hover { color: var(--link-hover-color); }
.user-card .user-head .menu .role-tag { margin-left: 6px; }
.user-card .user-icons { margin-top: 2px; white-space: nowrap; }
.user-card .user-icons a { display: inline-block; line-height: 0; }
.user-card .user-icons .iconpark-icon { margin-right: 6px; color: var(--link-color); width: 16px; height: 16px; cursor: pointer; }
.user-card .user-icons .iconpark-icon:hover { color: var(--link-hover-color); }
.user-card .user-stat { background-color: rgb(255, 255, 218); box-shadow: rgba(0, 0, 0, .15) 0 0 3px; border-radius: 5px; padding: 10px; display: flex; justify-content: flex-start; text-align: left; color: rgb(51, 51, 51); margin: 1rem 0; }
.user-card .user-stat a { color: rgb(51, 51, 51); }
.user-card .user-stat a:hover { color: rgb(136, 136, 136); }
.user-card .user-stat .stat-block { font-size: 14px; flex: 1 1 0; min-width: 0; white-space: nowrap; }
.user-card .user-stat .stat-block div:nth-last-child(n+2) { margin-bottom: 6px; }
.user-card .user-stat .stat-block .iconpark-icon { width: 14px; height: 14px; }
.user-card .user-stat .notify-count { background-color: rgb(240, 18, 18); display: inline; border-radius: 6px; padding: 0 6px; font-size: 12.6px; vertical-align: middle; color: #fff; }
.dark-layout .user-card .user-stat { background-color: var(--bg-sub-color); color: var(--text-color); }
.dark-layout .user-card .user-stat a { color: var(--link-color); }
.dark-layout .user-card .user-stat a:hover { color: var(--link-hover-color); }
#left-slide-panel .user-card { box-shadow: none; padding: 0 5px; }
@media screen and (max-width: 1200px) {
  .user-card .user-stat { padding: 8px 6px; }
  .user-card .user-head .menu { padding: 0 6px; }
}

/* ---------- 玻璃卡片的页面（个人主页、设置、通知、签到）：去掉外框白底，直接放在全站背景上（背景在 ns.css 的 .bg1） ---------- */
#nsk-body:has(.ctr-wrap) { background: none; box-shadow: none; padding: 0; margin: 0 auto; border-radius: 0; }
.dark-layout #nsk-body:has(.ctr-wrap) { box-shadow: none; }
#nsk-body:has(.ctr-wrap) #nsk-body-left { padding: 0; }
@media screen and (max-width: 500px) { #nsk-body:has(.ctr-wrap) { margin: 0; padding: 0; border-radius: 0; } }

/* 头部大卡片和下面的选项卡片（设置、个人主页共用） */
.ctr-wrap .head-container { height: 150px; padding: 0 20px; margin: 20px 0; border-radius: 9px; display: flex; align-items: center; background-color: var(--glass-color); backdrop-filter: blur(2px); box-shadow: rgba(0, 0, 0, .1) 0 4px 6px -1px, rgba(0, 0, 0, .06) 0 2px 4px -1px; }
.ctr-wrap .head-container .avatar { border-radius: 9px; width: 100px; height: 100px; max-width: 100px; object-fit: cover; box-shadow: rgba(0, 0, 0, .01) 0 0 4px; background: transparent; }
.ctr-wrap .head-container .avatar-wrapper { position: relative; line-height: 0; }
.ctr-wrap .head-container .avatar-wrapper .setting-icon { position: absolute; right: -10px; bottom: -10px; width: 50px; height: 50px; color: #000; }
.dark-layout .ctr-wrap .head-container .avatar-wrapper .setting-icon { color: #ddd; }
.ctr-wrap .head-container .word { padding-left: 14px; font-size: 18px; line-height: 1.2; color: var(--text-color); flex: 1 1 0; min-width: 0; }
.ctr-wrap .head-container .username { font-size: 28px; font-weight: 700; margin: 0 0 6px; word-break: break-all; }
.ctr-wrap .head-container .word p { margin: 0; }
.ctr-wrap .head-container .role-tag { font-size: 15px; font-weight: 400; vertical-align: 6px; padding: 3px 6px; }
.ctr-wrap .selector { padding: 20px; background-color: var(--glass-color); backdrop-filter: blur(2px); border-radius: 9px; color: var(--text-color); margin-bottom: 10px; box-shadow: rgba(0, 0, 0, .1) 0 4px 6px -1px, rgba(0, 0, 0, .06) 0 2px 4px -1px; }
.ctr-wrap .selector .select-item { display: inline-block; padding: 10px 0; margin-right: 30px; font-size: 1.1rem; cursor: pointer; border-bottom: 1px solid transparent; color: var(--text-color); }
.ctr-wrap .selector .select-item:hover { border-bottom: 1px solid rgb(145, 145, 255); }
.ctr-wrap .selector .router-link-active { border-bottom: 1px solid rgb(0, 0, 255); }
.ctr-wrap .selector .hr { border-top: 1px solid rgb(8, 8, 69); }
@media screen and (max-width: 500px) {
  .ctr-wrap .head-container { margin: 20px 4px; height: 120px; box-shadow: rgba(60, 64, 67, .3) 0 1px 2px, rgba(60, 64, 67, .15) 0 1px 3px 1px; }
  .ctr-wrap .head-container .avatar { width: 80px; height: 80px; }
  .ctr-wrap .head-container .username { font-size: 22px; }
  .ctr-wrap .head-container .avatar-wrapper .setting-icon { width: 36px; height: 36px; right: -8px; bottom: -8px; }
  .ctr-wrap .selector { margin: 0 4px 10px; padding: 14px 10px; box-shadow: rgba(60, 64, 67, .3) 0 1px 2px, rgba(60, 64, 67, .15) 0 1px 3px 1px; }
  .ctr-wrap .selector .select-item { margin-right: 15px; padding: 5px 0; }
}

/* ---------- 个人主页：概况的 5 张黑卡 + Readme；主题帖/评论/收藏的深色列表 ---------- */
.ctr-space .card-block { display: flex; justify-content: space-between; }
.ctr-space .card-item { flex: 1 1 0; margin: 20px 10px; height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 5px; background-color: rgba(0, 0, 0, .808); color: #fff; border-radius: 10%; text-align: center; min-width: 0; }
.ctr-space a.card-item:hover { background-color: rgba(0, 0, 0, .9); color: #fff; }
.ctr-space a.card-item > div { display: flex; flex-direction: column; align-items: center; }
.ctr-space .card-item .name, .ctr-space .card-item .value { font-weight: 700; font-size: 1rem; margin-bottom: 5px; }
.ctr-space .card-item .value { font-weight: 400; }
.ctr-space .card-item .iconpark-icon { width: 30px; height: 30px; margin-bottom: 5px; }
.ctr-space .readme { background-color: var(--bg-main-color); padding: 1rem; margin: 0; }
.ctr-space .readme > :first-child { margin-top: 0; }
.ctr-space .readme > :last-child { margin-bottom: 0; }
.ctr-space .discussion-wrapper { background-color: rgba(0, 0, 0, .808); margin: 20px; border-radius: 3px; }
.ctr-space .discussion-empty { padding: 14px 20px; color: rgb(153, 153, 153); margin: 0; }
.ctr-space .discussion-wrapper a { color: #fff; }
.ctr-space .discussion-wrapper a:hover { color: rgb(204, 204, 204); }
.ctr-space .discussion-item { padding: 4px 10px; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.ctr-space .discussion-item:nth-child(n+2) { border-top: 1px dashed rgb(70, 70, 70); }
.ctr-space .discussion-item .d-title { flex: 1 1 0; min-width: 0; margin-right: auto; word-break: break-word; }
.ctr-space .discussion-item .d-cat { color: rgb(153, 153, 153); font-size: 12px; }
.ctr-space .discussion-item .d-meta { color: rgb(153, 153, 153); font-size: 12px; white-space: nowrap; }
.ctr-space .discussion-item .d-meta * { vertical-align: middle; }
.ctr-space .discussion-item .iconpark-icon { width: 14px; height: 14px; color: #fff; }
.ctr-space .discussion-item .d-snippet { flex-basis: 100%; color: rgb(153, 153, 153); font-size: 12px; padding: 0 0 4px; }
.ctr-space .ctr-pager, .ctr-noti .ctr-pager { display: flex; justify-content: flex-end; padding: 0 10px 4px; }
.ctr-noti .ctr-pager { padding: 6px 10px; }
@media screen and (max-width: 500px) {
  .ctr-space .card-item { font-size: 12px; height: 75px; margin: 20px 3px; }
  .ctr-space .card-item .name, .ctr-space .card-item .value { font-size: 12px; margin-bottom: 2px; }
  .ctr-space .card-item .iconpark-icon { width: 20px; height: 20px; margin-bottom: 2px; }
  .ctr-space .discussion-wrapper { margin: 20px 5px; }
}

/* ---------- 设置：左边菜单 + 右边内容 ---------- */
.ctr-setting .selector { display: flex; position: relative; overflow: hidden; }
.ctr-setting .selector .selector-left-side { display: flex; margin-right: 30px; }
.ctr-setting .selector .selector-item-wrapper { padding-right: 10px; border-right: 1px solid rgba(0, 0, 0, .1); display: block; }
.dark-layout .ctr-setting .selector .selector-item-wrapper { border-right-color: rgba(255, 255, 255, .12); }
.ctr-setting .selector .selector-right-side { flex: 1 1 0; min-width: 0; }
.ctr-setting .selector .select-item { display: block; margin-right: 30px; word-break: keep-all; }
.ctr-setting .selector .select-item:hover { color: rgb(43, 91, 56); border-bottom-color: transparent; }
.ctr-setting .selector .selected { color: rgb(46, 164, 79); }
@media screen and (max-width: 500px) {
  .ctr-setting .selector { display: block; }
  .ctr-setting .selector .selector-left-side { margin: 0 0 8px; }
  .ctr-setting .selector .selector-item-wrapper { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, .1); padding: 0 0 4px; width: 100%; }
  .ctr-setting .selector .select-item { display: inline-block; margin-right: 15px; }
}
.ctr-setting .personal-info { padding: 10px 20px; }
@media screen and (max-width: 500px) { .ctr-setting .personal-info { padding: 6px 0; } }
.ctr-setting .personal-info h2 { font-size: 1.2em; margin: 14px 0 8px; font-weight: 700; color: var(--text-color); }
.ctr-setting .personal-info input[type=text], .ctr-setting .personal-info input[type=email], .ctr-setting .personal-info input[type=password] { max-width: 450px; width: 100%; }
.ctr-setting .personal-info textarea { width: 100%; line-height: 1.5; }
.ctr-setting .personal-info fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.ctr-setting .set-avatar { height: 200px; display: flex; justify-content: center; align-items: center; }
.ctr-setting .set-avatar .avatar { border-radius: 9px; width: 100px; height: 100px; object-fit: cover; box-shadow: rgba(0, 0, 0, .01) 0 0 4px; }
.ctr-setting .set-avatar a { margin-left: 2rem; }
.ctr-setting .form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; margin: 10px 0; }
.ctr-setting .form-actions.left { justify-content: flex-start; }
.ctr-setting .form-actions .form-error, .ctr-setting .form-actions .form-ok { margin: 0; }
.ctr-setting .form-actions .form-hint { flex: 1 1 200px; }
.ctr-setting .form-actions [data-role]:empty { display: none; }
.ctr-setting .forgot-link { margin-left: 10px; color: #2ea44f; }
.ctr-setting .cur-mail { margin: 6px 0 14px; }
.ctr-setting .ip-list { margin: 6px 0 12px; padding: 10px; border-radius: 3px; background-color: rgba(0, 0, 0, .72); color: #fff; }
.ctr-setting .ip-list .ip-item { display: grid; grid-template-columns: 170px 150px 1fr; gap: 4px 12px; align-items: center; padding: 2px 0; }
@media screen and (max-width: 500px) { .ctr-setting .ip-list .ip-item { grid-template-columns: 1fr; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); } }
.ctr-setting .ip-list .ip-item .cur { color: #45ca6b; font-weight: 400; margin-left: 4px; }
.ctr-setting .block-add input[type=text] { width: 260px; max-width: 100%; }
.ctr-setting .block-list table { border: 1px solid rgb(204, 204, 204); border-collapse: collapse; margin: 0; padding: 0; width: 100%; background-color: var(--bg-main-color); }
.ctr-setting .block-list table tr { border: 1px solid rgb(221, 221, 221); padding: 5px; }
.ctr-setting .block-list table th, .ctr-setting .block-list table td { padding: 10px; text-align: center; }
.ctr-setting .block-list table th { font-size: 14px; font-weight: 400; color: #888; }
.dark-layout .ctr-setting .block-list table tr { border: 1px solid rgb(80, 80, 80); }
.ctr-setting .block-list a[data-act="unblock"] { color: #d74c4c; }
.ctr-setting .cat-checks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 4px; }
.ctr-setting .cat-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.ctr-setting .btn.btn-small { height: auto; line-height: 1.6; padding: 0 10px; font-size: 12px; }

/* ---------- 通知：深色标签条 + 绿色选中 ---------- */
.ctr-noti { border: 1px solid rgb(51, 51, 51); margin: 30px 0; background-color: var(--bg-main-color); border-radius: 8px; overflow: hidden; }
@media screen and (max-width: 500px) { .ctr-noti { margin: 30px 4px; } }
.ctr-noti .app-switch { border-bottom: 1px solid rgb(51, 51, 51); background-color: rgb(51, 51, 51); display: flex; justify-content: flex-start; align-items: center; position: relative; }
.ctr-noti .app-switch .app-title { background-color: rgb(73, 73, 73); padding: 0 5px; margin: 0 1px 0 0; cursor: pointer; font-size: 1.2rem; text-align: center; height: 36px; line-height: 36px; color: #fff; position: relative; }
.ctr-noti .app-switch .app-title:hover { color: #fff; background-color: rgb(90, 90, 90); }
.ctr-noti .app-switch .app-title.router-link-active { background-color: rgb(27, 158, 80); }
.ctr-noti .unread-count { padding: 3px 5px; border-radius: 7px; background-color: rgb(231, 40, 40); font-size: 10px; vertical-align: middle; color: #fff; }
.ctr-noti .app-switch .read-all { margin: 0 8px 0 auto; padding: 0 10px; height: 24px; line-height: 22px; font-size: 12px; border: 0; border-radius: 3px; background-color: rgb(73, 73, 73); color: #fff; cursor: pointer; }
.ctr-noti .app-switch .read-all:hover { background-color: rgb(27, 158, 80); }
.dark-layout .ctr-noti .app-title { color: rgb(213, 213, 213); }
.ctr-noti .reply-container { max-height: 400px; overflow: auto; }
.ctr-noti .reply-item { border-bottom: 1px solid rgb(51, 51, 51); display: flex; align-items: center; padding: 7px; gap: 0; }
.ctr-noti .reply-item:last-child { border-bottom: 0; }
.ctr-noti .reply-item .avatar { border-radius: 5px; width: 25px; height: 25px; max-width: 25px; object-fit: cover; box-shadow: rgba(0, 0, 0, .01) 0 0 4px; vertical-align: middle; margin-right: 10px; }
.ctr-noti .reply-item .reply-main { flex: 1 1 0; min-width: 0; }
.ctr-noti .reply-item .actor { font-weight: 700; }
.ctr-noti .reply-item .reply-time { color: #888; font-size: 11px; margin-left: 10px; white-space: nowrap; }
.ctr-noti .reply-item .dot-wrap { position: relative; width: 8px; height: 8px; margin-left: 10px; flex: 0 0 8px; }
.ctr-noti .unviewed, .ctr-noti .viewed { width: 8px; height: 8px; border-radius: 50%; position: absolute; top: 0; right: 0; }
.ctr-noti .viewed { background-color: rgb(62, 245, 45); opacity: .5; }
.ctr-noti .unviewed { background-color: rgb(245, 45, 45); }
@media screen and (max-width: 500px) { .ctr-noti .reply-container { max-height: 600px; } .ctr-noti .app-switch .app-title { font-size: 1rem; } }

/* ---------- 进度系统 ---------- */
.ctr-progress .p-title { text-align: center; color: rgb(235, 70, 28); font-size: 2em; margin: 8px 0; }
.ctr-progress .p-title .iconpark-icon { width: 36px; height: 36px; vertical-align: middle; color: rgb(235, 70, 28); }
.ctr-progress .p-box { max-width: 600px; margin: 10px auto; padding: 6px; }
.ctr-progress h2 { color: rgb(252, 113, 78); font-size: 1.5em; margin: 14px 0 6px; }
.ctr-progress .p-bar { margin-bottom: 10px; }
.progress-bar { position: relative; border: 1px solid rgb(255, 212, 0); height: 16px; border-radius: 8px; overflow: hidden; }
.progress-bar .inside-bar { background-color: rgb(255, 212, 0); height: 100%; }
.progress-bar .inside-bar .progress-text { line-height: 16px; height: 16px; position: absolute; width: 100%; text-align: center; color: rgb(42, 75, 60); }
.progress-labels { display: flex; justify-content: space-between; }
.ctr-progress .p-howto { max-width: 600px; margin: 22px auto 10px; padding: 12px 16px; background: var(--bg-sub-color); border-radius: 6px; box-shadow: 0 0 2px #0002; line-height: 1.8; }
.ctr-progress .p-howto h3 { margin: 0 0 6px; font-size: 15px; color: var(--text-color); }
.ctr-progress .p-howto p { margin: 4px 0; }
.ctr-progress .p-howto ul { margin: 6px 0 6px 1.2em; padding: 0; }
.ctr-progress .p-howto li { list-style: disc; margin: 2px 0; }
.ctr-progress .p-howto a { color: #2ea44f; }

/* ---------- 鸡腿记录 ---------- */
.page-title .page-sub { font-size: 12px; font-weight: 400; color: #888; margin-left: 8px; }
.credit-table table { border: 1px solid rgb(204, 204, 204); border-collapse: collapse; margin: 0; padding: 0; width: 100%; }
.credit-table table tr { border: 1px solid rgb(221, 221, 221); padding: 5px; }
.credit-table table th, .credit-table table td { padding: 10px; text-align: center; }
.credit-table table th { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; font-weight: 400; color: #888; }
.dark-layout .credit-table table tr { border: 1px solid rgb(80, 80, 80); }
.credit-table td.plus { color: #2ea44f; font-weight: 700; }
.credit-table td.minus { color: #d74c4c; font-weight: 700; }
.credit-table .ctr-pager { display: flex; justify-content: flex-end; padding: 4px 0; }
@media screen and (max-width: 500px) { .credit-table table th, .credit-table table td { padding: 6px 2px; font-size: 12px; } }

/* ---------- 签到 ---------- */
.board { max-width: 500px; margin: 30px auto; background-color: var(--bg-main-color); box-shadow: rgba(0, 0, 0, .1) 4px 4px 8px; }
.board h1 { border-left: var(--text-color) 5px solid; padding-left: 10px; margin: 20px 10px; height: 2rem; line-height: 2rem; font-size: 2em; }
.board .head-info { font-size: 18px; background-color: rgba(255, 217, 0, .6); padding: 20px; text-align: center; }
.board .head-info .btn { font-size: 14px; }
.board .head-info a { color: #2ea44f; }
.board .board-list { padding: 0 20px 20px 20px; }
.board .rank-row { display: flex; align-items: center; margin: 10px 0; }
.board .rank-row [data-rank] { font-size: 1.1rem; font-weight: 700; width: 30px; text-align: right; padding-right: 18px; flex: 0 0 auto; }
.board .rank-row [data-rank="1"] { color: #fe2d46; }
.board .rank-row [data-rank="2"] { color: #f60; }
.board .rank-row [data-rank="3"] { color: #faa90e; }
.board .rank-row .member-name { margin: 0 10px; width: 200px; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .rank-row .coins { margin: 0 10px; font-weight: 700; }
.board .rank-row .avatar { border-radius: 15%; height: 40px; width: 40px; object-fit: cover; box-shadow: 0 0 3px rgba(0, 0, 0, .1); display: block; }
.board .ctr-pager { display: flex; justify-content: flex-end; margin-top: 10px; }
@media screen and (max-width: 500px) { .board { margin: 20px 4px; } .board .rank-row .member-name { width: auto; flex: 1 1 0; min-width: 0; } }

/* ---------- 后台：用户页的加减鸡腿小表单 ---------- */
.admin-table .coin-adjust { display: flex; gap: 4px; align-items: center; }
.admin-table .coin-adjust input[type=number] { width: 64px; padding: 2px 4px; }
.admin-table .coin-adjust input[type=text] { width: 110px; padding: 2px 4px; }
.admin-table .coin-adjust .btn { height: 22px; line-height: 20px; padding: 0 8px; font-size: 12px; }
.dark-layout .board .head-info { color: #fff; background-color: rgba(255, 217, 0, .45); }
/* 升级表（11-03 用户：「没有看到升级的规则，多少才能升级」） */
.ctr-progress .p-levels { width: 100%; border-collapse: collapse; margin: 4px 0 6px; font-size: 14px; }
.ctr-progress .p-levels th, .ctr-progress .p-levels td { border: 1px solid rgba(128, 128, 128, .25); padding: 5px 8px; text-align: center; }
.ctr-progress .p-levels th { background: var(--glass-color); font-weight: 600; }
.ctr-progress .p-levels tr.on td { background: rgba(255, 212, 0, .28); font-weight: 600; }
.ctr-progress .p-note, .ctr-progress .p-login { margin: 6px 0; line-height: 1.7; color: var(--text-color); }
.ctr-progress .p-login a { color: #2ea44f; }
