/* 上海升学论坛 · 样式照 NodeSeek 原样（数值取自 rea 拆下来的 style-D98b8AeC.css，11-02）。
   类名也照抄，方便对照：#nsk-head / #nsk-body / .post-list-item / .nsk-panel …
   只有三处故意不抄：英文相对时间、版块页每行重复的版块标签、1024 宽时搜索图标压到主题按钮上。 */

:root {
  --dark-color: #333; --fade-color: #555; --gray-color: #888; --main-color: #2ea44f; --sub-color: #45ca6b;
  --text-color: #333; --link-color: #555; --link-hover-color: #333;
  --bg-main-color: #fff; --bg-sub-color: #fbfbfb; --glass-color: rgba(0, 0, 0, .05);
}
body.dark-layout {
  --dark-color: #333; --fade-color: #555; --gray-color: #888; --main-color: #2ea44f; --sub-color: #45ca6b;
  --text-color: #aaa; --link-color: #c5c5c5; --link-hover-color: #fcfcfc;
  --bg-main-color: #272727; --bg-sub-color: #3b3b3b; --glass-color: rgba(255, 255, 255, .05);
}

/* ---------- 基础 ---------- */
a, abbr, address, big, caption, cite, dd, del, dfn, div, dl, dt, em, fieldset, font, form, html, iframe, img, ins, kbd,
label, legend, li, object, ol, q, s, samp, small, span, strike, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, ul, var {
  margin: 0; padding: 0; border: 0; outline: 0; vertical-align: baseline; font-size: inherit;
}
html { -webkit-text-size-adjust: 100%; }
body {
  border: 0; margin: 0; color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
  font-size: small; line-height: 1.5em; background-color: #fff;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: var(--link-color); }
a:hover { color: var(--link-hover-color); }
h4 { font-size: 110%; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }
/* 手机上不自动放大（11-03 用户：看帖、回帖时页面总是自己放大）：
   苹果手机点进字号小于 16px 的输入框就会把整页放大，放大了也不缩回来；所以触屏上输入的地方一律 16px（编辑器里的在 editor.css）。
   连点两下也不放大（双指缩放照样能用）。 */
html { touch-action: manipulation; }
@media (hover: none) and (pointer: coarse) {
  input, textarea, select { font-size: 16px !important; }
}
/* 背景：11-03 用户说不用跟 NodeSeek 一样，换成自己的——暖纸色打底、很淡的点阵，顶上一抹浅绿（站里的主色），全站一张 */
.bg1 { background-color: #f6f4ef; }
.dark-layout.bg1 { background-color: #25272b; }
@media only screen and (min-width: 500px) {
  .bg1 {
    background-image: linear-gradient(180deg, rgba(46, 164, 79, .07), rgba(46, 164, 79, 0) 360px), radial-gradient(#d8d2c4 1.1px, transparent 1.3px);
    background-size: 100% 360px, 22px 22px;
    background-repeat: no-repeat, repeat;
  }
  .dark-layout.bg1 { background-image: linear-gradient(180deg, rgba(46, 164, 79, .08), rgba(46, 164, 79, 0) 360px), radial-gradient(#3a3d43 1.1px, transparent 1.3px); }
}
.iconpark-icon { width: 12px; height: 12px; vertical-align: middle; }
.avatar-normal { height: 40px; width: 40px; border-radius: 15%; box-shadow: 0 0 3px #0000001a; display: inline-block; color: transparent; background: #eee; object-fit: cover; }
.dark-layout .avatar-normal { box-shadow: 0 0 2px #00000080; background: #444; }
.small-margin { margin: 5px 0; }
.nsk-container { width: 1080px; box-sizing: border-box; margin: auto; }
@media screen and (max-width: 1200px) { .nsk-container { width: auto; margin: 0 20px; } }
@media screen and (max-width: 500px) { .nsk-container { margin: 0; } }
.hide { display: none !important; }

.btn {
  appearance: none; background-color: #2ea44f; border: 1px solid rgba(27, 31, 35, .15); box-shadow: #1b1f231a 0 1px;
  box-sizing: border-box; color: #fff; cursor: pointer; display: inline-block;
  font-family: -apple-system, system-ui, Segoe UI, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600; position: relative; text-align: center; text-decoration: none; user-select: none; touch-action: manipulation;
  vertical-align: middle; white-space: nowrap; padding: 0 1rem; font-size: 14px; line-height: 25px; height: 27px; border-radius: 4px;
}
.btn:hover { background-color: #45ca6b; color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.btn-gray { background-color: #888; }
.btn.btn-gray:hover { background-color: #999; }
.btn.btn-danger { background-color: #d74c4c; }
.dark-layout .btn { background-color: #158736; }
.dark-layout .btn:hover { background-color: #23af4a; }
.dark-layout .btn.btn-gray { background-color: #555; }

/* 表单（照 pure-form） */
.pure-form input[type=text], .pure-form input[type=password], .pure-form input[type=email], .pure-form input[type=number],
.pure-form input[type=search], .pure-form select, .pure-form textarea {
  padding: .5em .6em; display: inline-block; border: 1px solid #ccc; box-shadow: inset 0 1px 3px #ddd; border-radius: 4px;
  vertical-align: middle; box-sizing: border-box; background: #fff; color: #333;
}
.pure-form input:focus, .pure-form select:focus, .pure-form textarea:focus { outline: 0; border-color: #2ea44f; }
.dark-layout .pure-form input[type=text], .dark-layout .pure-form input[type=password], .dark-layout .pure-form input[type=email],
.dark-layout .pure-form input[type=number], .dark-layout .pure-form select, .dark-layout .pure-form textarea {
  background-color: var(--bg-sub-color); box-shadow: inset 0 1px 3px #0006; border: 1px solid var(--bg-sub-color); color: #eee;
}
.pure-form label { display: block; margin: .6em 0 .25em; color: var(--text-color); }
.pure-form legend { display: block; width: 100%; padding: .3em 0; margin-bottom: .3em; color: #333; border-bottom: 1px solid #e5e5e5; font-weight: 700; }
.dark-layout .pure-form legend { color: var(--text-color); border-bottom: 1px solid rgba(0, 0, 0, .4); }
.form-error { color: #d74c4c; margin: 6px 0; }
.form-ok { color: #2ea44f; margin: 6px 0; }
.form-hint { color: #888; font-size: 12px; }

/* ---------- 顶栏 ---------- */
header { transition: background-color .5s; box-shadow: 0 0 5px #0000001a; background-color: var(--bg-main-color); }
.dark-layout header { box-shadow: 0 0 6px #000c; }
@media screen and (min-width: 500px) {
  body > header { position: fixed; z-index: 10; left: 0; top: 0; width: 100%; }
  section#nsk-frame { margin-top: 40px; }
}
#nsk-head { display: flex; align-items: center; height: 40px; }
header .site-title { font-family: helvetica neue, helvetica, arial, sans-serif; font-weight: 700; font-size: 24px; margin-right: 6px; white-space: nowrap; }
header .site-title a { color: var(--text-color); }
header .site-title .title-text { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; vertical-align: middle; }
header .site-title .logo-mark { width: 30px; height: 30px; vertical-align: middle; color: #2ea44f; margin-right: 4px; }
header .beta-icon { position: relative; top: -14px; color: #ccc; font-size: 11px; font-weight: 400; }
#nsk-head .nav-menu { margin: 0 10px 0 0; height: 40px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; flex: 0 1 auto; min-width: 0; }
.nav-menu li { margin: 0 8px; }
.nav-menu .current-category { font-weight: 700; }
header .search-box { margin-left: auto; position: relative; max-width: 290px; transition: all 1s ease-in-out; flex: 0 0 170px; }
header .search-box:hover, header .search-box:focus-within { flex: 0 0 290px; }
header .search-box input[type=text] { width: 100%; height: 30px; transition: all .5s ease-in-out; padding-right: 26px; }
header .search-box .search-icon { position: absolute; top: 7px; right: 6px; width: 17px; height: 17px; color: #666; background: none; border: 0; padding: 0; cursor: pointer; }
header .search-box .search-icon svg { width: 17px; height: 17px; }
.dark-layout #nsk-head .search-box input[type=text] { background-color: #555; border: 1px solid #666; }
/* 主题切换：NodeSeek 是贴着屏幕最右；这里同样靠右，但在 1200 以下让出位置，免得压到搜索图标 */
header div.color-theme-switcher { padding: 0 5px; color: var(--link-hover-color); position: absolute; right: 10px; top: 10px; cursor: pointer; }
header div.color-theme-switcher .iconpark-icon { width: 17px; height: 17px; }
#nsk-head .user-head { display: flex; align-items: center; margin-left: 12px; gap: 12px; white-space: nowrap; }
#nsk-head .user-head .iconpark-icon { width: 17px; height: 17px; color: var(--link-color); }
#nsk-head .user-head .head-avatar { width: 26px; height: 26px; border-radius: 15%; vertical-align: middle; }
#nsk-head .user-head .bell { position: relative; display: inline-block; line-height: 0; }
#nsk-head .user-head .bell .dot { position: absolute; top: -5px; right: -8px; min-width: 14px; height: 14px; line-height: 14px; padding: 0 3px; box-sizing: border-box; border-radius: 7px; background: #e70606; color: #fff; font-size: 10px; text-align: center; }
#nsk-head .user-head .head-link { font-size: 13px; }
/* 右栏已经有用户卡（发帖、通知、头像都在里面）就不在顶栏再摆一遍；右栏藏起来的窄屏、没有右栏的个人中心页照旧显示 */
@media screen and (min-width: 801px) { body:has(#nsk-right-panel-container .user-card) #nsk-head .user-head { display: none; } }
@media screen and (max-width: 1200px) {
  header div.color-theme-switcher { position: static; margin-left: 10px; }
}

/* 手机顶栏（<500px 换成这一套，照 NodeSeek 手机版） */
#nsk-head-mobile { display: none; }
@media screen and (max-width: 500px) {
  header { background-color: unset; box-shadow: none; }
  #nsk-head { display: none; }
  #nsk-head-mobile { display: block; background-color: var(--bg-main-color); box-shadow: 0 0 5px #0000001a; }
  .dark-layout #nsk-head-mobile { box-shadow: 0 0 5px #00000073; }
  #nsk-head-mobile .nav-menu { display: flex; align-items: center; height: 30px; margin: 0; }
  #nsk-head-mobile .nav-menu li { margin: 0 5px; height: 30px; line-height: 30px; }
  #nsk-head-mobile .nav-menu .meta-button { background-color: #000; width: 30px; text-align: center; margin: 0 5px 0 0; }
  .dark-layout #nsk-head-mobile .nav-menu .meta-button { background-color: #074d26; }
  #nsk-head-mobile .nav-menu .meta-button .iconpark-icon { color: #fff; width: 16px; height: 16px; }
  #nsk-head-mobile .nav-menu .right-button-group { margin: 0; padding: 0 9px; text-align: center; border-left: 1px solid #ccc; cursor: pointer; }
  .dark-layout #nsk-head-mobile .nav-menu .right-button-group { border-left: 1px solid rgba(0, 0, 0, .3); }
  #nsk-head-mobile .nav-menu .right-button-group .iconpark-icon { width: 16px; height: 16px; color: var(--link-hover-color); }
  #nsk-head-mobile .logo-link { font-size: 15px; font-weight: 700; color: var(--text-color); }
  #nsk-head-mobile .bell .dot { display: inline-block; min-width: 12px; height: 12px; line-height: 12px; border-radius: 6px; background: #e70606; color: #fff; font-size: 9px; padding: 0 2px; vertical-align: top; margin-left: -4px; }
}
.mobile-nav { display: none; }
@media screen and (max-width: 500px) {
  .mobile-nav { margin: 9px 4px 0; border-radius: 4px; display: flex; flex-wrap: wrap; background-color: var(--bg-main-color); box-shadow: 0 0 3px #0000001a; }
  .mobile-nav li { margin: 3px 6px; }
  .mobile-nav .current-category { font-weight: 700; }
  .dark-layout .mobile-nav { box-shadow: 0 0 3px #00000073; }
}

/* 手机左滑面板 */
#left-slide-mask { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 98; }
#left-slide-panel { background-color: rgb(74, 122, 110); width: 65%; min-width: 100px; max-width: 320px; height: 100%; overflow-y: auto; top: 0; left: 0; position: fixed; transition: transform .3s; z-index: 99; transform: translateX(-105%); }
.dark-layout #left-slide-panel { background-color: rgb(10, 50, 40); }
body.slide-open #left-slide-panel { transform: none; }
body.slide-open #left-slide-mask { display: block; }
#left-slide-panel .user-card-container { padding: 12px 10px 10px; background-color: var(--bg-main-color); }
#left-slide-panel .category-mobile { padding-top: 10px; }
#left-slide-panel .category-mobile p { color: #eee; margin: 0 18px; padding: 5px 0 5px 18px; font-size: 1rem; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
#left-slide-panel .category-mobile h2 { color: #eee; margin: 0 18px; padding: 5px 0 5px 9px; font-size: 1rem; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
#left-slide-panel .category-mobile a.selected p { background-color: rgba(0, 0, 0, .2); }
#left-slide-panel .category-mobile .iconpark-icon { color: #eee; margin-right: 5px; width: 1rem; height: 1rem; }

/* ---------- 主体框架 ---------- */
#nsk-frame { margin: 0 auto; width: 100%; min-height: 100vh; overflow: hidden; position: relative; }
#nsk-body {
  padding: 25px 30px; box-sizing: border-box; margin-top: 15px; margin-bottom: 20px; background-color: var(--bg-main-color);
  transition: background-color .5s; border-radius: 1rem; box-shadow: #0000003d 0 3px 8px; position: relative; display: flex;
}
.dark-layout #nsk-body { box-shadow: 0 0 8px #000000b3; }
#nsk-body-left { flex: 1; min-width: 0; box-sizing: border-box; padding-right: 20px; }
#nsk-body.no-right #nsk-body-left { padding-right: 0; }
#nsk-right-panel-container { flex: 0 0 260px; min-width: 0; }
@media screen and (max-width: 1200px) { #nsk-right-panel-container { flex: 0 0 200px; } }
@media screen and (max-width: 800px) { #nsk-right-panel-container { display: none; } #nsk-body-left { padding-right: 0; } }
@media screen and (max-width: 500px) {
  #nsk-body { padding: 20px 3px; margin-left: 4px; margin-right: 4px; margin-top: 9px; border-radius: 4px; }
  .dark-layout #nsk-body { box-shadow: 0 0 8px #00000073; }
}

/* 左边浮动版块条 */
#nsk-left-panel-container { position: fixed; left: calc(50% - 710px); top: 55px; width: 150px; }
@media screen and (max-width: 1360px) { #nsk-left-panel-container { display: none; } }
#nsk-left-panel-container .category-list { width: 100px; margin-left: auto; font-size: 14px; background-color: var(--bg-main-color); box-shadow: 2px 0 8px #00000014; border-radius: 12px; overflow: hidden; z-index: 100; }
#nsk-left-panel-container .category-list h4 { display: none; }
#nsk-left-panel-container .category-list ul { text-align: center; margin: 0; }
#nsk-left-panel-container .category-list li:first-child > a { padding-top: 8px; }
#nsk-left-panel-container .category-list li:last-child > a { padding-bottom: 8px; }
#nsk-left-panel-container .category-list a { display: flex; align-items: center; justify-content: center; padding: 6px 0; color: #666; transition: background .2s, color .2s; }
.dark-layout #nsk-left-panel-container .category-list a { color: #999; }
#nsk-left-panel-container .category-list a svg { margin-right: 6px; width: 16px; height: 16px; }
#nsk-left-panel-container .category-list a:hover, #nsk-left-panel-container .category-list .current-category a { background: #f1f3f5; color: #0dbc79; }
.dark-layout #nsk-left-panel-container .category-list a:hover, .dark-layout #nsk-left-panel-container .category-list .current-category a { background-color: #00000026; }
#nsk-left-panel-container .category-list li:not(.current-category) { opacity: .5; transition: opacity .3s ease; }
#nsk-left-panel-container .category-list li:hover:not(.current-category) { opacity: 1; }

/* 右栏 */
#nsk-right-panel-container .nsk-panel { border-radius: 1px; color: #888; padding: 6px 10px; margin: 0 0 10px; box-shadow: #0000001a 0 0 5px, #0000001a 0 0 1px; }
.dark-layout .nsk-panel { box-shadow: 0 0 5px #0006 !important; }
#nsk-right-panel-container .nsk-panel h4 { color: var(--text-color); margin: 0; }
#nsk-right-panel-container .nsk-panel h4 > * { vertical-align: middle; }
#nsk-right-panel-container .nsk-panel ul { padding-left: 10px; }
#nsk-right-panel-container .nsk-panel ul li { line-height: 24px; height: 24px; padding-left: 10px; overflow: hidden; }
#nsk-right-panel-container .nsk-panel ul li:nth-last-child(n+2) { border-bottom: 1px solid rgba(0, 0, 0, .06); }
.dark-layout #nsk-right-panel-container .nsk-panel ul li:nth-last-child(n+2) { border-bottom: 1px solid rgba(0, 0, 0, .15); }
#nsk-right-panel-container .nsk-panel ul .iconpark-icon { margin-right: 5px; }
@media screen and (min-width: 1360px) { #nsk-right-panel-container .category-list { display: none; } }
.nsk-new-member-board { display: flex; flex-wrap: wrap; padding: 5px 0; }
.nsk-new-member-board .new-member-item { width: 60px; text-align: center; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.nsk-new-member-board .new-member-item div { overflow: hidden; text-overflow: ellipsis; }
@media screen and (max-width: 1200px) { .nsk-new-member-board .new-member-item { width: 44px; } }
.user-card .user-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.user-card .user-head .avatar-normal { width: 44px; height: 44px; }
.user-card .user-head .uname { font-weight: 700; font-size: 15px; color: var(--text-color); }
.user-card .user-stat { display: flex; justify-content: space-around; background-color: var(--bg-sub-color); color: var(--text-color); border-radius: 3px; padding: 4px 0; margin: 6px 0; text-align: center; }
.user-card .user-stat .stat-block { flex: 1; }
.user-card .user-stat .stat-block b { display: block; font-size: 14px; }
.user-card .user-stat a { color: var(--link-color); }
.user-card .user-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 2px; }

/* 角色小标签（楼主、管理员、会员） */
.role-tag { margin-left: 4px; margin-right: 4px; padding: 0 3px; border: 1px solid var(--text-color); color: var(--text-color); border-radius: 3px; font-size: 11px; font-weight: 400; line-height: 16px; display: inline-block; }
.role-tag.role-admin { color: #fafafa; background-color: #2ea44f; border: 1px solid #2ea44f; }
.role-tag.role-vip { color: #c05621; background-color: #fbd38d; border: 1px solid #fbd38d; }
.role-tag.role-bot { color: #fff; background-color: #338fc6; border-color: #338fc6; }
.role-tag.role-banned { border: 1px solid #d74c4c; color: #d74c4c; }

/* ---------- 列表 ---------- */
#nsk-body-left .post-list-controler { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#nsk-body-left .sorter { margin: 0 8px; display: inline-flex; overflow: hidden; border-radius: 3px; border: 1px solid #737373; background-color: #888; }
#nsk-body-left .sorter > a { cursor: pointer; display: block; background-color: var(--bg-main-color); padding: 0 5px; }
#nsk-body-left .sorter > a.selected { background-color: #888; color: var(--bg-main-color); }
#nsk-body-left .post-list .post-list-item { padding: 8px; border-bottom: 1px solid rgba(0, 0, 0, .05); position: relative; display: flex; }
.dark-layout #nsk-body-left .post-list .post-list-item { border-bottom: 1px solid rgba(0, 0, 0, .3); }
#nsk-body-left .post-list .post-list-item .post-list-content { margin-left: 10px; min-width: 0; flex: 1; white-space: nowrap; padding-right: 5px; }
#nsk-body-left .post-list .post-list-item .post-title { font-weight: 700; font-size: 14px; white-space: normal; padding-right: 40px; }
#nsk-body-left .post-list .post-list-item .post-info { font-size: 11px; color: var(--link-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
#nsk-body-left .post-list .post-list-item .post-info .info-item:first-child { margin-left: 0; }
#nsk-body-left .post-list .post-list-item .post-info .info-item { margin-left: 4px; margin-right: 4px; white-space: nowrap; }
#nsk-body-left .post-list .post-list-item .post-info .info-item * { vertical-align: middle; }
#nsk-body-left .post-list .post-list-item .post-category { position: absolute; height: 20px; line-height: 20px; right: 13px; bottom: 8px; padding: 0 4px; border: none; border-radius: 2px; background: var(--bg-sub-color); color: unset; box-shadow: 0 0 2px #00000080; margin: 0; }
#nsk-body-left .post-list .post-list-item.pinned-item { background: linear-gradient(45deg, #2ea44f08, #2ea44f03); }
.pined { color: #fff; background-color: #303030; }
.circle-icon { width: 15px; height: 15px; border-radius: 50%; padding: 1px; box-sizing: border-box; vertical-align: -2px; }
.lock-badge { color: rgb(255, 152, 152); font-family: sans-serif; font-weight: 400; }
.empty-list { padding: 40px 0; text-align: center; color: #888; }

/* ---------- 首页置顶轮播（照 NodeSeek .topic-carousel-*，动画照 animate.css 的 slideInRight / fadeOutLeft） ---------- */
.topic-carousel-panel { position: relative; overflow: hidden; min-height: 52px; height: 52px; }
#nsk-body-left .post-list .post-list-item.topic-carousel-item { position: absolute; top: 0; left: 0; width: 100%; box-sizing: border-box; border-bottom: none; padding-bottom: 0; }
#nsk-body-left .post-list .post-list-item.topic-carousel-item[hidden] { display: none; }
#nsk-body-left .post-list .topic-carousel-item .post-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel-mask { min-height: 52px; position: absolute; top: 0; right: 0; width: 20px; background: linear-gradient(to right, transparent, var(--bg-main-color) 50%, var(--bg-main-color)); }
.topic-carousel-index-wrapper { display: flex; padding: 0 0 8px; justify-content: center; align-items: center; border-bottom: 1px solid rgba(0, 0, 0, .05); min-height: 6px; }
.topic-carousel-index-item { width: 6px; height: 6px; border-radius: 50%; margin: 0 6px; display: block; background-color: rgba(0, 0, 0, .1); cursor: pointer; visibility: hidden; }
.current-carousel-index-item { background-color: rgba(0, 0, 0, .2); }
.dark-layout .topic-carousel-index-item { background-color: rgba(255, 255, 255, .1); }
.dark-layout .current-carousel-index-item { background-color: rgba(255, 255, 255, .2); }
.topic-carousel-wrapper:hover .topic-carousel-index-item { visibility: visible; }
.nsk-badge { white-space: nowrap; }
.nsk-badge.read-only { color: #c71e1e; font-size: 12px; border: 1px solid; padding: 0 2px; font-weight: 400; }
@keyframes ns-slide-in-right { from { transform: translate3d(100%, 0, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } }
@keyframes ns-slide-in-left { from { transform: translate3d(-100%, 0, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } }
@keyframes ns-fade-out-left { from { opacity: 1; } to { opacity: 0; transform: translate3d(-100%, 0, 0); } }
@keyframes ns-fade-out-right { from { opacity: 1; } to { opacity: 0; transform: translate3d(100%, 0, 0); } }
.topic-carousel-item.in-right { animation: ns-slide-in-right 1s both; }
.topic-carousel-item.in-left { animation: ns-slide-in-left 1s both; }
.topic-carousel-item.out-left { animation: ns-fade-out-left 1s both; }
.topic-carousel-item.out-right { animation: ns-fade-out-right 1s both; }
@media (prefers-reduced-motion: reduce) { .topic-carousel-item { animation-duration: 1ms !important; } }
@media screen and (max-width: 500px) { .topic-carousel-index-item { display: none; } }
@media screen and (max-width: 500px) {
  #nsk-body-left { padding-right: 0; }
  #nsk-body-left .post-list .post-list-item { padding: 4px 8px; }
  #nsk-body-left .post-list .post-list-item .post-info { white-space: normal; padding-right: 0; }
  #nsk-body-left .post-list .post-list-item .post-title { padding-right: 0; }
  #nsk-body-left .post-list .post-list-item .post-category { position: static; box-shadow: none; background: none; padding: 0; height: auto; line-height: inherit; margin-left: 4px; }
}

/* 翻页（照 NodeSeek .nsk-pager） */
.nsk-pager a, .nsk-pager span { border: 1px solid rgba(0, 0, 0, .01); margin: 0 2px; }
.nsk-pager.pager-bottom { margin-top: 10px; text-align: right; }
.nsk-pager .pager-next, .nsk-pager .pager-prev, .nsk-pager .pager-pos {
  color: #888; border-radius: 3px; display: inline-block; min-width: 18px; height: 18px; line-height: 18px; vertical-align: middle;
  text-align: center; box-sizing: border-box; font-family: monospace; font-size: 16px;
}
.nsk-pager span.pager-next, .nsk-pager span.pager-prev { cursor: not-allowed; opacity: .3; }
.nsk-pager .pager-pos.pager-cur { cursor: not-allowed; background-color: var(--bg-sub-color) !important; color: #888; box-shadow: #0000001f 0 1px 3px, #0000003d 0 1px 2px, #1b1f2326 0 0 0 1px; }
.nsk-pager .ellipsis { font-family: Arial, Helvetica, sans-serif; }
@media screen and (min-width: 500px) {
  .nsk-pager .pager-next:hover, .nsk-pager .pager-prev:hover, .nsk-pager .pager-pos:hover { background-color: #0000001a; }
  .dark-layout .nsk-pager .pager-next:hover, .dark-layout .nsk-pager .pager-prev:hover, .dark-layout .nsk-pager .pager-pos:hover { background-color: #ffffff1a; }
}
.triangle-right, .triangle-left { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 0 6px 10px; border-color: transparent transparent gray transparent; }
.triangle-right { transform: rotate(90deg); }
.triangle-left { transform: rotate(270deg); }

/* ---------- 帖子页 ---------- */
.nsk-post .post-title h1 { margin: 0 0 10px; padding: 0 8px; font-size: 18px; line-height: 1.4; }
.nsk-post .post-title h1 > * { vertical-align: middle; }
.nsk-post .post-title-link { color: var(--text-color); }
.nsk-post .post-title-link:hover { color: var(--link-color); }
.nsk-post .topic-tags { padding: 0 8px 6px; font-size: 11px; color: #888; }
.nsk-post .topic-tags a { color: #888; margin-right: 6px; }
.nsk-post-wrapper .content-item { border-bottom: 1px solid rgba(0, 0, 0, .05); padding: 8px; position: relative; }
.dark-layout .nsk-post-wrapper .content-item { border-bottom: 1px solid rgba(0, 0, 0, .3); }
.nsk-post-wrapper .floor-link-wrapper { position: absolute; right: 0; top: 8px; }
.nsk-post-wrapper .floor-link { color: var(--link-color); }
@media screen and (max-width: 500px) { .nsk-post-wrapper .floor-link-wrapper { right: 5px; } }
.nsk-content-meta-info { display: flex; }
.nsk-content-meta-info .avatar-wrapper { margin: 0 10px 4px 0; }
.nsk-content-meta-info .author-info, .nsk-content-meta-info .content-info { font-size: 11px; }
.nsk-content-meta-info .author-info > *, .nsk-content-meta-info .content-info > * { vertical-align: middle; }
.nsk-content-meta-info .content-info { color: #858585; }
.nsk-content-meta-info .author-name { font-size: 15px; font-weight: 700; }
.nsk-content-meta-info .is-poster { padding: 0 3px; border: 1px solid #00eaff; color: #00eaff; border-radius: 3px; margin-left: 4px; }
.nsk-content-meta-info .date-updated, .nsk-content-meta-info .content-category { margin-left: 4px; }
.reply-to { font-size: 12px; color: #888; margin: 10px 0 0; }
.reply-to a { color: #0dbc79; }
.post-content { margin-top: 14px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; overflow: hidden; color: #444; }
.dark-layout .post-content { color: var(--text-color); }
.post-content img { margin: 1rem 2.5%; max-width: 95%; box-shadow: 0 0 4px #0006; cursor: pointer; }
.post-content p { margin: 10px 0; }
.post-content h1, .post-content h2 { line-height: 1.5; color: #2ea44f; font-size: 17px; border-bottom: 1px solid #e9e9e9; }
.post-content hr { border: 0; border-bottom: 1px solid #e9e9e9; }
.post-content a { color: #0dbc79; }
.post-content h3, .post-content h4, .post-content h5, .post-content h6 { line-height: 1.25; color: #555a62; }
.post-content h3 { font-size: 16px; }
.post-content a, .post-content div, .post-content p, .post-content span, .post-content td, .post-content th, .post-content li { word-break: break-word; }
.post-content blockquote { background: #0000000d; border-left: 4px solid rgba(0, 0, 0, .1); margin: 1em; padding: 1ex 10px; overflow-y: auto; }
.post-content code, .post-content pre { border-radius: 2px; background: #ffff9954; padding: 4px 8px; font-family: monospace; overflow: auto; border: 1px solid #eec; }
.post-content pre > code { background-color: unset; border: 0; padding: 0; }
.post-content code { white-space: pre-wrap; }
.post-content pre, .post-content pre code { white-space: pre; }
.post-content pre { margin: 1em 0; box-sizing: border-box; max-width: 724px; }
.post-content ol, .post-content ul { margin: 1em 0 1em 2em; }
.post-content ol li { list-style: decimal; }
.post-content ul li { list-style: none; position: relative; }
.post-content ul li:before { content: "•"; font-family: arial, serif; position: absolute; left: -1em; }
.post-content li { margin: 5px 0; }
.post-content table { max-width: 100%; border-collapse: unset; margin-bottom: 18px; overflow: hidden; font-size: 13px; background: #f2f6fc; border: 1px solid #dcdcdc; border-radius: 4px; border-spacing: 0; text-align: center; }
.post-content table thead th { font-weight: 500; background: #ebeef5; }
.post-content table td, .post-content table th { padding: 8px; border-right: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc; }
.post-content details { background: #f9fafe; border-radius: 16px; padding: 1em 2em; margin: 1em 0; }
.post-content summary { cursor: pointer; }
.post-content details[open] > summary { border-bottom: 1px solid #e3e8f4; padding: 0 0 1em; margin: 0 0 1em; }
.dark-layout .post-content h1, .dark-layout .post-content h2, .dark-layout .post-content hr { border-bottom: 1px solid rgba(0, 0, 0, .3); }
.dark-layout .post-content h3, .dark-layout .post-content h4, .dark-layout .post-content h5, .dark-layout .post-content h6 { color: #a4a8ae; }
.dark-layout .post-content code, .dark-layout .post-content pre { background: #2e2e04; border: 1px solid #56560b; }
.dark-layout .post-content pre code { border: 0; padding: 0; }
.dark-layout .post-content blockquote { background: #ffffff0d; border-left: 4px solid rgba(255, 255, 255, .1); }
.dark-layout .post-content table { background: #323232; border: 1px solid #1e1d1d; }
.dark-layout .post-content table thead th { background: #333435; }
.dark-layout .post-content table td, .dark-layout .post-content table th { border-bottom: 1px solid #1e1d1d; border-right: 1px solid #1e1d1d; }
.dark-layout .post-content details { background: #3b3b3b; }
.post-deleted .post-content { opacity: .45; }
.post-hidden-note { color: #888; font-size: 12px; padding: 6px 0; }
.comment-menu { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.comment-menu .menu-item { color: #999; margin-right: 15px; cursor: pointer; user-select: none; background: none; border: 0; padding: 0; font-size: 13px; }
.comment-menu .menu-item > svg, .comment-menu .menu-item > span { vertical-align: middle; }
.comment-menu .menu-item:hover { color: #333; }
.dark-layout .comment-menu .menu-item:hover { color: #ccc; }
.comment-menu .menu-item.clicked { color: #e70606; }
.comment-menu .menu-item .iconpark-icon { margin-right: 5px; width: 14px; height: 14px; }
.post-bottom-pager-wrap { padding: 2px 0; display: flex; justify-content: flex-end; }
.login-notes { padding: 5px; }
.login-notes a { color: #2ea44f; }

/* 签名的样式在 center.css；签名里不出图（表情也不出），跟 NodeSeek 一样 */
.signature img { display: none; }
.signature p { margin: 0; }
/* 表情贴纸 */
.post-content img.sticker { box-shadow: none; max-width: 90px; width: 90px; margin: 0; vertical-align: middle; cursor: default; }
.edit-head { padding: 0 8px; font-size: 14px; color: #888; }
.edit-head a { color: var(--text-color); font-weight: 700; }

/* 搜索 / 登录注册 / 后台共用 */
.page-title { font-size: 18px; margin: 0 0 12px; padding: 0 8px; }
.tabs { display: flex; gap: 4px; margin: 12px 8px 4px; }
.tabs a { padding: 2px 10px; border-radius: 3px; color: var(--link-color); }
.tabs a.on { background: #888; color: var(--bg-main-color); }
.simple-list li { padding: 8px; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.dark-layout .simple-list li { border-bottom: 1px solid rgba(0, 0, 0, .3); }
.simple-list .sub { color: #888; font-size: 11px; margin-top: 2px; }
.simple-list .unread { font-weight: 700; }
.simple-list .snippet { color: #666; font-size: 12px; margin-top: 2px; white-space: normal; }
.dark-layout .simple-list .snippet { color: #999; }
.auth-box { max-width: 360px; margin: 10px auto 30px; }
.auth-box .pure-form input { width: 100%; }
.auth-box .btn { width: 100%; margin-top: 14px; height: 32px; }
.auth-box .alt { margin-top: 12px; text-align: center; color: #888; }
.auth-box .alt a { color: #2ea44f; }
.notice-box { padding: 30px 8px; text-align: center; color: #888; }

/* 后台：一张表一件事，紧凑行 */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 8px 12px; }
.admin-nav a { padding: 2px 10px; border-radius: 3px; background: var(--bg-sub-color); box-shadow: 0 0 2px #0002; }
.admin-nav a.on { background: #2ea44f; color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 5px 6px; border-bottom: 1px solid rgba(0, 0, 0, .06); text-align: left; vertical-align: middle; }
.admin-table th { color: #888; font-weight: 400; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .act { white-space: nowrap; text-align: right; }
.admin-table .act form { display: inline; }
.admin-table .act button { background: none; border: 0; color: #2ea44f; cursor: pointer; padding: 0 4px; font-size: 12px; }
.admin-table .act button.danger { color: #d74c4c; }
.admin-filter { display: flex; gap: 6px; margin: 0 8px 10px; align-items: center; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 8px 14px; }
.stat-grid div { background: var(--bg-sub-color); box-shadow: 0 0 2px #0002; border-radius: 3px; padding: 8px 10px; }
.stat-grid b { display: block; font-size: 20px; color: var(--text-color); }
.stat-grid span { color: #888; font-size: 12px; }
.admin-form { margin: 0 8px; max-width: 560px; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form textarea, .admin-form select { width: 100%; }

/* ---------- 页脚 ---------- */
footer { width: 100%; position: relative; height: auto; background-color: #333; }
footer .contain { display: flex; flex-wrap: wrap; max-width: 1080px; margin: auto; padding: 0 20px; box-sizing: border-box; }
footer .col { box-sizing: border-box; padding-bottom: 20px; width: 17.5%; }
footer .col .group-head-link { margin: 0; font-size: 14px; line-height: 17px; padding: 20px 0 5px; color: #edd6ac; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; }
footer .col ul { list-style-type: none; margin: 0; padding: 0; }
footer .col ul li { color: #999; font-size: 14px; font-weight: 700; padding: 5px 0; cursor: pointer; transition: .2s; }
footer .col ul li:hover { color: #fff; transition: .1s; }
/* 左边「本站」一栏：站名 + 一句话介绍 */
footer .col.about { width: 30%; padding-right: 40px; }
footer .col.about .brand { padding: 16px 0 8px; color: #eee; font-size: 20px; font-weight: 700; letter-spacing: .05em; }
footer .col.about p { margin: 0 0 10px; color: #999; font-size: 13px; line-height: 1.8; }
footer .col.about .about-links a { color: #bbb; }
footer .col.about .about-links a:hover { color: #fff; }
footer .col.about .about-links span { margin: 0 6px; color: #666; }
footer .foot { width: 100%; border-top: 1px solid #444; }
footer .copyright { text-align: center; color: #999; padding: 8px 0; font-size: 13px; }
@media only screen and (max-width: 950px) { footer .col.about { width: 100%; padding-right: 0; } footer .col { width: 33.3%; } footer .col ul li { font-size: 13px; } .col.pc { display: none; } }
footer .m-links { display: none; }
@media only screen and (max-width: 500px) {
  footer .contain { padding: 0 16px; }
  footer .col { display: none; }
  footer .col.about { display: block; padding-bottom: 6px; }
  footer .col.about .brand { padding: 18px 0 4px; font-size: 18px; }
  footer .col.about p { margin: 0; font-size: 13px; line-height: 1.7; }
  footer .col.about .about-links { display: none; }
  /* 常用链接排成一个个小块，换行也整齐，手指好点 */
  footer .m-links { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; padding: 12px 0 16px; }
  footer .m-links a { color: #ccc; font-size: 13px; line-height: 20px; padding: 4px 11px; border-radius: 14px; background: #3d3d3d; }
  footer .m-links a:active { color: #fff; background: #4a4a4a; }
  footer .copyright { font-size: 12px; padding: 8px 0 12px; }
}

/* 右下角快捷按钮 */
#fast-nav-button-group { position: fixed; right: calc(50% - 590px); z-index: 99; bottom: 40px; }
@media screen and (max-width: 1200px) { #fast-nav-button-group { right: 30px; } }
@media screen and (max-width: 500px) { #fast-nav-button-group { right: 12px; bottom: 20px; } }
#fast-nav-button-group .nav-item-btn { position: absolute; right: 0; }
#fast-nav-button-group .nav-item-btn:nth-last-child(1) { bottom: 0; }
#fast-nav-button-group .nav-item-btn:nth-last-child(2) { bottom: 40px; }
#fast-nav-button-group .nav-item-btn:nth-last-child(3) { bottom: 80px; }
.nav-item-btn { display: none; width: 30px; height: 30px; justify-content: center; align-items: center; box-sizing: border-box; border: 1px solid var(--glass-color); border-radius: 20%; background-color: var(--bg-main-color); box-shadow: 0 0 10px #0000004d; cursor: pointer; }
.nav-item-btn .iconpark-icon { width: 26px; height: 26px; color: #999; }
.nav-item-btn.show { display: flex; }

/* 提示条 */
#toast { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); background: #333; color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 13px; z-index: 1000; display: none; }
#toast.show { display: block; }

/* 主题按钮：浅色时显示太阳，深色时显示月亮 */
.dark-layout .theme-light, .light-layout .theme-dark { display: none; }
.gate-line { color: #a08a3c; font-size: 12px; padding: 8px 0 4px; }
.gate-line a { color: #c9a227; }
.gate-line .iconpark-icon { width: 12px; height: 12px; }

/* ---------- 会员问答的「问答主题」小筛选 ---------- */
.topic-filter { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 8px 10px; }
.topic-filter a { padding: 0 8px; line-height: 22px; border-radius: 3px; background: var(--bg-sub-color); box-shadow: 0 0 2px #00000040; font-size: 12px; }
.topic-filter a.on { background: #888; color: var(--bg-main-color); box-shadow: none; }

/* ---------- 开通会员页 ---------- */
.vip-page { max-width: 820px; margin: 0 auto; }
.vip-head { text-align: center; margin: 4px 0 20px; }
.vip-head h1 { font-size: 22px; margin: 0; color: var(--text-color); }
.vip-head p { color: #888; margin: 4px 0 0; }
.vip-cols { display: flex; gap: 16px; align-items: flex-start; }
.vip-table { flex: 1; border-collapse: collapse; font-size: 13px; box-shadow: #0000001a 0 0 5px, #0000001a 0 0 1px; }
.vip-table th, .vip-table td { padding: 10px 12px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.dark-layout .vip-table th, .dark-layout .vip-table td { border-bottom: 1px solid rgba(0, 0, 0, .3); }
.vip-table thead th { background: var(--bg-sub-color); color: #888; font-weight: 400; }
.vip-table thead th.vip { background: #2ea44f; color: #fff; font-weight: 700; }
.vip-table td.plain { text-align: center; color: #888; width: 28%; }
.vip-table td.vip { text-align: center; color: #2ea44f; font-weight: 700; width: 28%; background: #2ea44f0d; }
.vip-pay { width: 240px; padding: 16px; text-align: center; box-shadow: #0000001a 0 0 5px, #0000001a 0 0 1px; }
.vip-price { font-size: 28px; font-weight: 700; color: #c05621; }
.vip-price small { font-size: 13px; color: #888; font-weight: 400; }
.vip-note { font-size: 12px; color: #888; margin: 4px 0 12px; }
.vip-qr { min-height: 120px; border: 1px dashed #bbb; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #888; padding: 10px; margin-bottom: 12px; white-space: pre-line; }
.vip-steps { text-align: left; margin: 0 0 0 1.4em; padding: 0; color: var(--text-color); line-height: 2; }
.vip-steps li { list-style: decimal; }
.vip-member { background: #2ea44f14; color: #2ea44f; border-radius: 6px; padding: 14px; font-size: 14px; }
.vip-login { margin-top: 10px; font-size: 12px; color: #888; }
.vip-login a { color: #2ea44f; }
.vip-foot { text-align: center; color: #888; margin-top: 22px; }
@media screen and (max-width: 720px) { .vip-cols { flex-direction: column; } .vip-pay { width: auto; align-self: stretch; } .vip-table { width: 100%; } }

/* ---------- 标签分区 ---------- */
.tags-summary { color: #888; margin: -6px 8px 14px; }
.tag-group { margin: 0 8px 16px; padding: 10px 12px; box-shadow: #0000001a 0 0 5px, #0000001a 0 0 1px; }
.tag-group-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(0, 0, 0, .06); padding-bottom: 6px; margin-bottom: 6px; }
.tag-group-head h3 { margin: 0; font-size: 15px; color: var(--text-color); }
.tag-group-head span { color: #888; font-size: 12px; }
.tag-group-desc { color: #888; margin: 0 0 8px; font-size: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 2px; background: var(--bg-sub-color); box-shadow: 0 0 2px #00000080; font-size: 12px; }
.tag-chip span { color: #aaa; font-size: 11px; }

/* 阶段 3：邮箱没验证的提醒条 */
.verify-bar { background: #fff8e1; border: 1px solid #f0d58a; color: #6b5200; border-radius: 6px; padding: 8px 12px; margin: 0 0 10px; font-size: 13px; line-height: 1.8; }
.verify-bar b { font-weight: 600; }
.verify-bar .btn-small, .form-hint .btn-small { margin-left: 8px; padding: 2px 10px; font-size: 12px; line-height: 1.6; vertical-align: baseline; }
.dark-layout .verify-bar { background: #3a3220; border-color: #5c4d25; color: #f0d58a; }
