/* ============================================================
   青年社区
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --c-primary: #2b73df;
  --c-primary-dark: #1a5fc0;
  --c-primary-light: #eaf3ff;
  --c-link: #006cbf;
  --c-link-hover: #2b73df;
  --c-secondary:#f1f2f3;
  --c-secondary-bg:-webkit-linear-gradient(top, #ffffff, #f1f2f3);
  --c-tertiary:#d1d2d3;
  --c-tertiary-bg:-webkit-linear-gradient(top, #ffffff, #d1d2d3);

  /* 中性色 */
  --c-text: #333;
  --c-text-sub: #555;
  --c-text-muted: #999;
  --c-text-faint: #aaa;
  --c-border: #e4e4e4;
  --c-border-strong: #d8d8d8;
  --c-bg: #e7e8eb;
  --c-surface: #fff;
  --c-surface-hover: #f9f9f9;

  /* 状态色 */
  --c-danger: #ff3000;
  --c-success: #279642;

  /* 提示 */
  --success: #67c23a;
  --error: #f56c6c;
  --warning:  #e6a23c;
  --info: #909399;
  --success-bg: #f0f9eb;
  --error-bg: #fef0f0;
  --warning-bg: #fdf6ec;
  --info-bg: #f4f4f5;

  /* 间距 / 圆角 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-pill: 12px;

  /* 字号 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 16px;
  --fs-xl: 20px;
}

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font: 14px/22px "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--c-bg);
  box-shadow: 0 0 15px #ccc;
  max-width: 720px;
  margin: 0 auto;
  color: var(--c-text);
  min-height: 100vh;
  display: flex;
  flex-flow: column;
}

a { text-decoration: none; color: var(--c-link); }
a:hover { color: var(--c-link-hover); }
img { border: none; max-width: 100%; }
[class^="icon-"], [class*=" icon-"] {
  font-family: "iconfont" !important;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
}
/*  */
.mb12{
  margin-bottom: 12px;
}
.wrap{
  flex: 1;
}
/* ---------- 通用按钮（可复用核心） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.btn:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }

.btn--secondary {
  background: var(--c-secondary-bg);
  border-color: #dbdbdb;
}
.btn--secondary:hover { background: var(--c-secondary); border-color: #dbdbdb;color: #333;}

.btn--tertiary {
  background: var(--c-tertiary-bg);
  border-color: #dbdbdb;
}
.btn--tertiary:hover { background: var(--c-tertiary); border-color: #dbdbdb;color: #333;}

.btn--ghost { background: var(--c-surface); color: var(--c-text-sub); }

.btn--sm { height: 32px; padding: 0 12px; font-size: var(--fs-xs); }
.btn--lg { height: 38px; padding: 0 22px; font-size: var(--fs-base); }

.btn--like.is-active {
  background: #fff0f3;
  border-color: #f07b99;
  color: #e06888;
}
.btn--star {
color: #555;
}
.btn--star.on {
  color: var(--c-link);
}
.btn--star .count { font-size: var(--fs-xs); opacity: .85; }

/* 按钮组（等分栅格） */
.btn-group {
  display: flex;
  margin: var(--sp-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.btn-group > .btn {
  flex: 1;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--c-border);
  background: linear-gradient(#fff, #f1f3f6);
  text-shadow: 2px 2px rgba(255,255,255,.3);
}
.btn-group > .btn:last-child { border-right: none; }
.btn-group > .btn:hover { color: var(--c-primary); }

/* ---------- 通用标签（数据属性驱动） ---------- */
.tag {
  color: #fff;
  font-size: var(--fs-xs);
  padding: 2px 4px;
  margin-right: 2px;
  line-height: 20px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag[data-type="pinned"] { background: #D56D30; padding: 1px 4px;font-size: 11px;}
.tag[data-type="top"]    { background: #d53830; padding: 1px 4px;font-size: 11px;}
.tag[data-type="rec"] { background: #FF7700; padding: 1px 4px;font-size: 11px;}
.tag[data-type="hot"]    { background: #FF2F00; padding: 1px 4px;font-size: 11px;}
.tag[data-type="attach"] { background: #5475C5; padding: 1px 4px;font-size: 11px;}
.tag[data-type="vote"]   { background: var(--c-success); padding: 1px 4px;font-size: 11px;}
.tag[data-type="new"]    { background: var(--c-success); padding: 1px 4px;font-size: 11px;}

/* ---------- 通用卡片容器 ---------- */
.card {
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card__header {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid #eef3f8;
  background: #fbfdff;
  color: #222;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: space-between;
}
.card__body { padding: var(--sp-3); }

/* ---------- 列表项通用模式（帖子/附件/上下条） ---------- */
.entry {
  padding: 10px 16px;
  font-size: var(--fs-base);
  background: var(--c-surface-hover);
  font-size: 13px;
  color: #999;
  margin-top: 8px !important;
  padding: 8px 10px;
  border: 1px solid #D8D8D8;
  border-radius: 2px;
  line-height: 25px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}
.entry:last-child {  }
.entry__icon { flex-shrink: 0; font-size: var(--fs-lg); }
.entry__main {
}
.entry__main a { color: var(--c-text-sub); }
.entry__main a:hover { color: var(--c-primary); }
.entry__meta { color: var(--c-text-faint); font-size: 11px; flex-shrink: 0; }

/* ---------- 头像通用 ---------- */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5db3b0, #3bbdc1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 22px; height: 22px; font-size: 11px; }
.avatar--brand { background: var(--c-primary); }

/* ---------- 会员徽章 ---------- */
.badge {
  display: inline-block;
  font-size: 11px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: #68bcba;
  color: #fff;
  font-weight: 500;
}
.badge--author { background: #fff0f3; color: #e06888; }

/* ---------- 列表主体 ---------- */
.thread-list .entry{ margin: 0 var(--sp-2) 10px; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 14px var(--sp-2) 20px;
  flex-wrap: wrap;
}
.pagination a {
  min-width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  border: 1px solid #dbdbdb;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  padding: 0 8px;
  background: var(--c-secondary-bg);
  transition: all .2s;
  border-color: #dbdbdb; 
}
.pagination a:hover { border-color: #dbdbdb; color: var(--c-primary); background: var(--c-secondary);}
.pagination a.active { background: var(--c-secondary);color: var(--c-primary);}
.pagination a.is-disabled { color: #ccc; pointer-events: none; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--c-text-faint);
  font-size: var(--fs-base);
  background: var(--c-surface);
  margin-bottom: 10px;
}
.empty__icon { font-size: 32px; display: block; margin-bottom: var(--sp-2); opacity: .5; }

/* ---------- 正文排版（可复用于帖子/公告） ---------- */
.rich-text {
  font-size: var(--fs-lg);
  color: #1d1d1d;
  line-height: 1.8;
  word-wrap: break-word;
}
.rich-text p { margin-bottom: var(--sp-3); }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text img { max-width: 100%; border-radius: 4px; margin: 6px 0; }
.rich-text h3 {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin: 18px 0 8px;
  padding-left: 9px;
  border-left: 4px solid var(--c-primary);
  line-height: 1.4;
}
.rich-text ul, .rich-text ol { padding-left: 22px; margin-bottom: var(--sp-3); }
.rich-text li { list-style: disc; margin-bottom: 4px; }
.rich-text ol li { list-style: decimal; }
.rich-text blockquote {
  background: #f7fafd;
  border-left: 3px solid #b3d4f5;
  padding: 10px 14px;
  margin: var(--sp-3) 0;
  color: #666;
  font-size: var(--fs-base);
  border-radius: 0 4px 4px 0;
}
.rich-text__record {
  text-align: right;
  color: #9c9c9c;
  font-size: var(--fs-xs);
  border-top: 1px dotted #ddd;
  margin-top: var(--sp-4);
  padding-top: 10px;
}

/* ---------- 表单控件通用 ---------- */
.textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: var(--fs-base);
  color: var(--c-text);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  vertical-align: top;
}
.textarea:focus {
  border-color: var(--c-border-strong);
  box-shadow: 0 0 0 2px rgba(43,115,223,.1);
}

.input-text, .select {
  width: 100%;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: var(--fs-base);
  outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.input-text:focus, .select:focus {
  border-color: var(--c-border-strong);
  box-shadow: 0 0 0 2px rgba(43,115,223,.1);
}
.form-item { margin-bottom: var(--sp-3); }
.form-label {
  display: flex;
  font-size: var(--fs-base);
  color: var(--c-text-sub);
  margin-bottom: var(--sp-1);
  justify-content: space-between;
}
.form-tip {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: 2px;
}
.upload-area {
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--c-text-muted);
}

/* ---------- 站点导航 ---------- */
.site-nav { display: flex; align-items: stretch; background: var(--c-primary); }
.site-nav__brand {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; color: #fff; font-size: var(--fs-md); font-weight: 700;
}
.site-nav__link {
  flex: 1; text-align: center; line-height: 44px;
  color: rgba(255,255,255,.92); font-size: var(--fs-md);
}
.site-nav__link.active,.site-nav__link:hover { color: #fff; background: var(--c-primary-dark); }

/* ---------- 评论列表 ---------- */
.comment-item {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eef3f8;
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-item__avatar{
  text-align: center;
}
.comment-item__avatar a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5db3b0, #3bbdc1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.comment-item__avatar .floor{
  color: #888;
  font-size: 15px;
}
.comment-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comment-item__body {
  flex: 1;
  min-width: 0;
  margin-top: -2px;
}
.comment-item__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-item__name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.comment-item__name a {
  color: #333;
}
.comment-item__name a:hover {
  color: #2b73df;
}
.comment-item__badge {
  font-size: 10px;
  background: #eaf3ff;
  color: #2b73df;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
}
.comment-item__badge--author {
  color: #e06888;
  line-height: 1.7;
  display: none;
}
.comment-item__time {
  font-size: 12px;
  color: #aaa;
  margin-left: auto;
}
.comment-item__text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  word-break: break-word;
}
.comment-item__text blockquote{
  background: #f7fafd;
  border-left: 3px solid #b3d4f5;
  padding: 6px 10px;
  margin: 6px 0;
  font-size: 13px;
  color: #777;
  border-radius: 0 3px 3px 0;
}
.comment-item__actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: #999;
}
.comment-item__actions a {
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.comment-item__actions a:hover {
  color: #2b73df;
}

/* ---------- 评论表单 ---------- */
.comment-form {
  background: #fff;
  border: 1px solid #e4e4e4;
  overflow: hidden;
}
.comment-form__header {
  padding: 8px 12px;
  border-bottom: 1px solid #eef3f8;
  color: #222;
  background: #fbfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.comment-form__header .login-tip {
  font-size: 12px;
  color: #999;
  font-weight: normal;
}
.comment-form__header .login-tip a {
  color: #2b73df;
}
.comment-form__body {
  padding: 12px;
}
.comment-form__body .reply_ing{
  display: block;
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.comment-form__textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.comment-form__textarea:focus {
  border-color: #2b73df;
  box-shadow: 0 0 0 2px rgba(43, 115, 223, 0.1);
}
.comment-form__toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.comment-form__face{
  font-size: 14px;
  color: #888;
  cursor: pointer;
}
#facebox{
  display: contents;
}
#facebox ul{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #777;
  cursor: default;
  padding: 4px 10px;
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  background: #fafafa;
  flex-flow: wrap;
}
.comment-form__submit {
  text-shadow: 2px 2px rgba(255, 255, 255, 0.3);
  background: var();
  border: 1px solid #dbdbdb;
  height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 13px;
  cursor: default;
  transition: background 0.2s;
  cursor: pointer;
  margin-left: auto;
}
.comment-form__submit:hover {
  background: #f1f3f6;
}
.comment-form__reset {
  background: #f5f7fa;
  color: #666;
  border: 1px solid #ddd;
  height: 34px;
  padding: 0 16px;
  border-radius: 3px;
  font-size: 13px;
  cursor: default;
  transition: all 0.2s;
  display: none;
}
.comment-form__reset:hover {
  border-color: #bbb;
  color: #333;
}

/* ---------- 帖子页容器 ---------- */
.thread-header {
  margin: 14px 12px 6px;
  background: var(--c-surface);
}
.thread-header__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #1d1d1d;
  word-break: break-word;
  margin-bottom: var(--sp-2);
}
.thread-header__sub {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-xs); color: var(--c-text-muted);
}
.thread-header__meta {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 8px;
  margin-top: 4px; font-size: 12px; color: #999;
}
.thread-header__author {
  color: #555; display: inline-flex;
  align-items: center; gap: 6px;
}
.thread--header__avatar{
  background: #2b73df; color: #fff; font-size: 11px;
  line-height: 1; flex-shrink: 0;
}
.thread-header__avatar a{
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
}
.thread-header__avatar img{
  width: 18px; height: 18px; border-radius: 50%;
}
.thread-header__stats {
  margin-left: auto; display: flex;
  align-items: center; gap: 10px;
}
.thread-header__time { color: #aaa; font-size: 12px; }
.thread-header__replies {
  background-size: 14px auto; font-size: 12px; color: #aaa;
}
.thread-header__replies a { color: #333; }
.thread-header__views {
   font-size: 12px; color: #aaa;
}
.thread-content {
  padding: 12px 14px;
  background: var(--c-surface);
  font-size: 15px;
  line-height: 1.8;
  word-wrap: break-word;
  color: var(--c-text-sub);
}
.thread-content p{
  margin-bottom: 10px;
}
.thread-content p:last-child{  margin-bottom: 0;}
/* ---------- 附件 ---------- */
.attach {
  padding: 10px 14px;
  background: #f9fbfd;
  border: 1px solid #e4eef9;
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
}
.attach__title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}
.attach__item {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px 0;
  border-bottom: 1px dotted #e4eef9;
  font-size: var(--fs-sm);
  flex-flow: wrap;
}
.attach__item:last-child { border-bottom: none; }
.attach__item a {
  flex: 1; color: var(--c-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.attach__item .size { color: var(--c-text-faint); font-size: 11px; flex-shrink: 0; }

/* ---------- 操作区 ---------- */
.thread-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 12px;
  padding-top: 10px;
  background: #fff;
  border-top: 1px dashed #dcdcdc;
}
.thread-actions .btn{
  padding: 0 10px;
  font-size: 12px;
  height: 28px;
  line-height: 1.5;
  text-shadow: 2px 2px rgba(255, 255, 255, 0.3);
  background: -webkit-linear-gradient(top, #ffffff, #f1f3f6);
}
.thread-actions__spacer { flex: 1; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 8px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.breadcrumb a { color: var(--c-text-sub); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb__sep { color: #ccc; margin: 0 2px; }
.breadcrumb__current {color: #999;}

/* ---------- 块 ---------- */
.btn-row {
  padding: 4px 8px;
  margin: 8px 0;
  display: block;
  --cols: 4;
}
.btn-row__list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* 按钮项 — 通用样式 */
.btn-row__item {
  width: calc(100% / var(--cols));
  border: 1px solid #dbdbdb;
  border-right: none;
  display: block;
  height: 32px;
  line-height: 32px;
  text-align: center;
  color: #555;
  font-size: 14px;
  text-shadow: 2px 2px rgba(255, 255, 255, 0.3);
  background: -webkit-linear-gradient(top, #ffffff, #f1f3f6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  position: relative;
}
.btn-row__item a{ display: block;color: #555;}
.btn-row__item:last-of-type {
  border-right: 1px solid #dbdbdb;
}
.btn-row__item:hover {
  color: #2b73df;
  background: -webkit-linear-gradient(top, #f8fbff, #e9eef6);
}
.btn-row__item.active {
  background: -webkit-linear-gradient(top, #f8fbff, #e9eef6);
}

button.btn-row__item {
  background-color: transparent;
  border: 1px solid #dbdbdb;
  border-right: none;
}
button.btn-row__item:last-of-type {
  border-right: 1px solid #dbdbdb;
}

/* ---------- 上/下一条导航 ---------- */
.post-nav {
  margin: 0 var(--sp-2) 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.post-nav .entry__label {
  font-size: var(--fs-xs);
  color: #fff;
  background: #12B1CF;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  line-height: 18px;
}
.post-nav .entry:last-child .entry__label { background: #68D115; }

/* ---------- 提示消息 ---------- */
.ns-toast{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px;
  color:#ffffff;
  border-radius: 3px;
  padding: 5px 10px;
  background: #3d3832;
  font-weight:500;
}

.ns-toast-success{
  border: 1px solid var(--success);
  background: var(--success-bg);
  color:var(--success);
}
.ns-toast-error{
  background: var(--error-bg);
  color:var(--error);
  border: 1px solid var(--error);
}

.ns-toast-warning{
  background: var(--warning-bg);
  color:var(--warning);
  border: 1px solid var(--warning);
}

.ns-toast-info{
  background: var(--info-bg);
  color:var(--info);
  border: 1px solid var(--info);
}
.ns-message-tips{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 10px;
  background: #3d3832;
  font-weight: 500;
}
.ns-message-tips::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #3d3832 transparent transparent transparent;
  width: 0;
  height: 0;
  pointer-events: none;
}
#feedback_area{position: relative;}
#feedback_area:empty{display:none;}

/* ---------- 底部版权 ---------- */
.footer { width: 100%; background: #333; margin-top: 15px; }
.footer__inner {
    max-width: 720px; margin: 0 auto;
    text-align: center; padding: 12px 10px;
}
.footer__links {
    color: #fff; font-size: 14px;
    font-weight: normal; line-height: 1.6;
}
.footer__links a { color: #fff; padding: 0 8px; }
.footer__copyright {
    color: #DBDB70; font-size: 12px;
    margin-top: 6px; line-height: 1.5;
}
.footer__copyright a { color: #D1DAF3; }
/* ---------- 合并后的统一移动端适配 ---------- */
@media (max-width: 600px) {
  body { box-shadow: none; }
  .site-nav__link { flex: 0 0 20%; font-size: var(--fs-md); height: 38px; line-height: 38px; }
  .breadcrumb {padding: 7px 10px; font-size: var(--fs-xs); }
  .thread-header { margin: 12px 12px 8px; }
  .thread-header__title { font-size: 18px; }
  .thread-header__stats { justify-content: flex-end; padding-top: 2px; }
  .thread-content { padding: 14px; font-size: var(--fs-md); }
  .attach { padding: 8px 12px; }
  .thread-actions {gap: 8px; }
  .post-nav { margin: 0 6px 8px; }
  .post-nav .entry { padding: 9px 14px; font-size: var(--fs-sm); }

  /* 按钮 / 表单 */
  .btn--lg { height: 32px; padding: 0 18px; font-size: var(--fs-sm); }
  .btn--sm { height: 30px; padding: 0 10px; }
  .pagination { margin: 12px 6px 18px; gap: 5px; }
  .pagination a { min-width: 30px; height: 30px; line-height: 28px; font-size: var(--fs-xs); }

  /* 评论 */
  .comment { padding: 12px 0; gap: 8px; }
  .comment__time { width: 100%; margin-left: 0; padding-top: 2px; }
  .comment__text { font-size: 13.5px; }
  .footer__links { font-size: 13px; }
  .footer__copyright { font-size: 11px; }
}

/* ---------- 个人资料 ---------- */
.profile { padding: var(--sp-4); display: flex; gap: 14px; }
.profile__info { flex: 1; min-width: 0; }
.profile__name {
  font-size: var(--fs-lg); font-weight: 700; color: #1d1d1d;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.profile__meta { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 4px; }
.profile__bio {
  font-size: var(--fs-sm); color: var(--c-text-sub); margin-top: 6px; line-height: 1.6;
}
.profile__actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

.profile__stats { display: flex; border-top: 1px solid #f0f4f8; }
.profile__stats li { flex: 1; text-align: center; padding: 12px 0; }
.profile__stats .num { font-size: var(--fs-lg); font-weight: 700; color: var(--c-text); }
.profile__stats .label { font-size: var(--fs-xs); color: var(--c-text-muted); }

.profile__infolist{
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #000;
}
.profile__infolist li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px dashed #dcdcdc;
  transition: background-color .2s;
}

/* ---------- 主页 Tab ---------- */
.profile-tabs {
  display: flex; gap: 6px; 
  background: var(--c-surface); border-bottom: 1px solid var(--c-border);
  padding: 0 var(--sp-2);
}
.profile-tabs a {
  padding: 10px 12px; font-size: var(--fs-sm); color: var(--c-text-sub);
  border-bottom: 2px solid transparent;
}
.profile-tabs a:hover { color: var(--c-primary); }
.profile-tabs a.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

/* ============== 通知 notice 组件  ============== */
.notice-list {
  background: var(--c-surface);
  overflow: hidden;
}
.notice-item {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid #e8e8e8;
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.notice-item:last-child {
  border-bottom: none;
}
/* 未读标记：左侧蓝条 */
.notice-item:not(.isread) {
  background: #fbfdff;
}
.notice-item:not(.isread)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-primary);
}
.notice-item.isread {
  background: var(--c-surface);
  opacity: 0.82;
}
.notice-item:hover {
  background: var(--c-surface-hover);
}

.notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  margin-bottom: 4px;
}
.notice-meta a {
  color: var(--c-link);
}
.notice-meta a:hover {
  color: var(--c-link-hover);
}
.notice-name {
  font-weight: 600;
}
.notice-time {
  color: var(--c-text-faint);
  font-size: var(--fs-xs);
}
.notice-dynamic {
  color: var(--c-text-muted);
}

.notice-body {
  font-size: var(--fs-base);
  color: var(--c-text);
  line-height: 1.6;
  word-break: break-word;
  padding-left: 0;
}

/* 空状态直接复用你页面已有的 .empty，不用重复写 */

@media (max-width: 600px) {
  .notice-list {
    margin: 6px;
  }
  .notice-item {
    padding: var(--sp-3);
  }
  .notice-meta {
    font-size: var(--fs-xs);
  }
}
/* 板块列表 */
.forum-item {
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid #f0f4f8;
  gap: var(--sp-3);
}
.forum-item:last-child {
  border-bottom: none;
}
.forum-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}
.forum-info {
  flex: 1;
  min-width: 0;
}
.forum-title {
  font-size: var(--fs-md);

}
.forum-title a{
  color: var(--c-text-sub);
}
.forum-desc {
  font-size: var(--fs-xs);
  margin-top: 2px;
}
.forum-desc a:hover{
  text-decoration: underline
}
.forum-stat {
  text-align: right;
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  line-height: 1.4;
}
.forum-stat .tday {
  padding: 2px 0;
  color: #F26C4F;
  font-size: 12px;
}
/* ---------- 弹窗 ---------- */
#ui-modal{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
#ui-modal .modal-mask{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(35,28,20,.42);
}
#ui-modal .modal-box{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 6px;
  /* box-shadow: 2px 2px 3px rgba(173, 181, 189, 0.25); */
  box-shadow: 0 8px 30px rgba(202, 220, 238, 0.2);
  max-width: 500px;
  width: 95%;
  overflow: hidden;
}
#ui-modal .modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #dbdbdb;
  font-size: 16px;
  font-weight: 600;
  color: #332;
}
#ui-modal .modal-close{
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #333;
}
#ui-modal .modal-close:hover{color: #333;}
#ui-modal .modal-body{
  padding: 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  max-height: 60vh;
  overflow-y: auto;
}
#ui-modal .modal-footer{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 16px;
}
#ui-modal .modal-btn{
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid #dbdbdb;
  background: #ccc;
  cursor: pointer;
  font-size: 14px;
}
#ui-modal .modal-btn.modal-confirm{
}
#ui-modal .modal-btn.modal-confirm:hover{background: var();}
#ui-modal .modal-btn.modal-cancel:hover{background: var();}
#ui-modal .modal-loading,
#ui-modal .modal-error{
  padding: 30px 10px;
  text-align: center;
  font-size: 14px;
}
#ui-modal .modal-error{}
