/* ===== PC 端主题（仿 HYBBS hybbs） ===== */
:root {
  --pc-primary: #0f88eb;
  --pc-primary-dark: #0a6fc4;
  --pc-link: #09c;
  --pc-bg: #f1f4f9;
  --pc-card: #fff;
  --pc-text: #2c3138;
  --pc-sub: #97a1af;
  --pc-border: #eef1f6;
  --pc-radius: 8px;
}
* { box-sizing: border-box; }
body.pc-body {
  margin: 0; padding: 0; background: var(--pc-bg); color: var(--pc-text);
  font-family: "PingFang SC", "Lantinghei SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 14px; line-height: 1.6; margin-bottom: 88px;
}

/* ===== Hero 欢迎横幅 ===== */
.pc-hero {
  background: #0f88eb;
  border-radius: var(--pc-radius); padding: 28px 32px; margin-top: 20px;
  color: #fff; position: relative; overflow: hidden;
}
.pc-hero h1 { font-size: 26px; margin: 0 0 8px; font-weight: 700; }
.pc-hero p { margin: 0; font-size: 14px; opacity: .88; }
.pc-hero-stats { display: flex; gap: 40px; margin-top: 24px; position: relative; z-index: 1; }
.pc-hero-stats .item { text-align: center; }
.pc-hero-stats .item .n { font-size: 26px; font-weight: 700; line-height: 1.1; }
.pc-hero-stats .item .l { font-size: 12px; opacity: .8; margin-top: 2px; }
body.pc-body a { text-decoration: none; color: var(--pc-link); }
body.pc-body img { max-width: 100%; vertical-align: middle; }
.pc-container { width: 1100px; max-width: calc(100% - 32px); margin: 0 auto; }

/* 顶部导航 */
.pc-header { background: #fff; border-bottom: 1px solid var(--pc-border); position: sticky; top: 0; z-index: 100; }
.pc-header-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.pc-logo { font-size: 22px; font-weight: 700; color: var(--pc-primary); display: flex; align-items: center; gap: 8px; }
.pc-logo::before {
  content: '兽'; width: 34px; height: 34px; border-radius: 8px;
  background: #0f88eb; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.pc-nav { display: flex; gap: 4px; flex: 1; }
.pc-nav a { color: #5a6573; font-size: 14px; padding: 8px 14px; border-radius: 6px; transition: all .15s; }
.pc-nav a:hover { color: var(--pc-primary); background: #eef6fe; }
.pc-search { position: relative; width: 220px; }
.pc-search input { width: 100%; height: 36px; border: 1px solid #e0e4ea; border-radius: 18px; padding: 0 40px 0 16px; font-size: 14px; outline: none; background: #f6f8fb; }
.pc-search input:focus { border-color: var(--pc-primary); background: #fff; }
.pc-search button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border: none; background: none; cursor: pointer; color: #999; }
.pc-user { display: flex; align-items: center; gap: 12px; }
.pc-user img { width: 36px; height: 36px; border-radius: 50%; }
.pc-btn { display: inline-block; padding: 7px 16px; border-radius: var(--pc-radius); font-size: 14px; border: 1px solid transparent; cursor: pointer; }
.pc-btn-primary { background: var(--pc-primary); color: #fff !important; }
.pc-btn-primary:hover { opacity: .9; }
.pc-btn-default { background: #fff; border-color: #ddd; color: #555 !important; }
.pc-btn-default:hover { border-color: var(--pc-primary); color: var(--pc-primary) !important; }

/* 布局 */
.pc-main { display: flex; gap: 20px; margin-top: 20px; align-items: flex-start; }
.pc-left { flex: 1; min-width: 0; }
.pc-right { width: 300px; flex-shrink: 0; }

/* 卡片 */
.pc-card { background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); margin-bottom: 16px; overflow: hidden; }
.pc-card-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--pc-border); font-size: 15px; font-weight: 600; }
.pc-card-head::before { content: ''; display: none; }
.pc-card-head .more { font-size: 13px; color: var(--pc-sub); font-weight: 400; }
.pc-card-body { padding: 18px; }

/* 工具栏 */
.pc-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--pc-border); }
.pc-toolbar .pc-btn-link { color: #5a6573; font-size: 14px; padding: 5px 12px; border-radius: 6px; transition: all .15s; }
.pc-toolbar .pc-btn-link:hover { color: var(--pc-primary); background: #eef6fe; }
.pc-toolbar .pc-btn-link.active { color: #fff; background: var(--pc-primary); font-weight: 500; }

/* 帖子列表项 */
.pc-thread { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--pc-border); transition: background .18s, box-shadow .18s; position: relative; }
.pc-thread:last-child { border-bottom: none; }
.pc-thread:hover { background: #f7fbff; }
.pc-thread:hover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pc-primary); }
.pc-thread-avatar { flex-shrink: 0; }
.pc-thread-avatar img { width: 46px; height: 46px; border-radius: 50%; transition: transform .2s; }
.pc-thread:hover .pc-thread-avatar img { transform: scale(1.06); }
.pc-thread-main { flex: 1; min-width: 0; }
.pc-thread-title { font-size: 16px; margin-bottom: 7px; font-weight: 500; }
.pc-thread-title a { color: var(--pc-text); transition: color .15s; }
.pc-thread-title a:hover { color: var(--pc-primary); }
.pc-thread-forum { color: var(--pc-link); font-weight: 400; }
.pc-thread-meta { font-size: 12.5px; color: var(--pc-sub); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pc-thread-meta span { display: inline-flex; align-items: center; gap: 3px; }
.pc-thread-reply { flex-shrink: 0; align-self: center; }
.pc-thread-reply .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; text-align: center; padding: 4px 10px; border-radius: 12px; background: #eef2f7; color: #7a8699; font-size: 13px; font-weight: 600; transition: all .15s; }
.pc-thread-reply .badge.hot { background: #0f88eb; color: #fff; }
.pc-tag { display: inline-block; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.pc-tag-top { background: #09c; color: #fff; }
.pc-tag-global { background: #ff9800; color: #fff; }
.pc-tag-essence { background: #f44336; color: #fff; }
.pc-tag-lock { background: #9e9e9e; color: #fff; }

/* 版块网格 */
.pc-forum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--pc-border); }
.pc-forum-item { background: #fff; display: flex; align-items: center; gap: 14px; padding: 18px; }
.pc-forum-item:hover { background: #f8fafc; }
.pc-forum-item img { width: 48px; height: 48px; border-radius: 50%; }
.pc-forum-item .name { font-size: 15px; color: var(--pc-text); font-weight: 500; }
.pc-forum-item .desc { font-size: 13px; color: var(--pc-sub); }
.pc-forum-item .count { font-size: 13px; color: var(--pc-sub); }

/* 侧栏列表 */
.pc-side-list { list-style: none; padding: 6px 0; margin: 0; }
.pc-side-list li { padding: 9px 20px; display: flex; justify-content: space-between; font-size: 14px; transition: background .15s; }
.pc-side-list li:hover { background: #f7fbff; }
.pc-side-list .num { color: var(--pc-sub); font-size: 13px; }
.pc-user-mini { display: flex; align-items: center; gap: 10px; padding: 7px 20px; transition: background .15s; }
.pc-user-mini:hover { background: #f7fbff; }
.pc-user-mini img { width: 32px; height: 32px; border-radius: 50%; }

/* 侧栏统计卡（图标+数字） */
.pc-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--pc-border); }
.pc-stat-item { background: #fff; text-align: center; padding: 18px 6px; }
.pc-stat-item .n { font-size: 22px; font-weight: 700; color: var(--pc-primary); line-height: 1.1; }
.pc-stat-item .l { font-size: 12px; color: var(--pc-sub); margin-top: 4px; }

/* 帖子详情 */
.pc-post { display: flex; gap: 16px; padding: 20px 18px; border-bottom: 1px solid var(--pc-border); }
.pc-post-author { width: 120px; flex-shrink: 0; text-align: center; }
.pc-post-author img { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 8px; }
.pc-post-author .name { font-weight: 600; font-size: 14px; }
.pc-post-author .role { font-size: 12px; color: var(--pc-primary); }
.pc-post-main { flex: 1; min-width: 0; }
.pc-post-content { font-size: 15px; line-height: 1.8; word-wrap: break-word; }
.pc-post-content img { border-radius: 6px; margin: 8px 0; }
.pc-post-content pre { background: #f5f7fa; padding: 12px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
.pc-post-content code { background: #f5f7fa; padding: 1px 5px; border-radius: 3px; }
.pc-post-content blockquote { border-left: 3px solid #ddd; padding-left: 12px; color: #777; margin: 8px 0; }
.pc-post-foot { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--pc-sub); }
.pc-post-foot button { background: none; border: none; cursor: pointer; color: var(--pc-sub); font-size: 13px; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.pc-post-foot button:hover { color: var(--pc-primary); }
.pc-post-foot button.active { color: var(--pc-primary); font-weight: 600; }

/* 表单 */
.pc-form-row { margin-bottom: 16px; }
.pc-form-row label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.pc-input, .pc-textarea, .pc-select { width: 100%; padding: 10px 14px; border: 1px solid #e0e4ea; border-radius: var(--pc-radius); font-size: 14px; outline: none; font-family: inherit; background: #fff; }
.pc-input:focus, .pc-textarea:focus, .pc-select:focus { border-color: var(--pc-primary); }
.pc-textarea { min-height: 160px; resize: vertical; }

/* 富文本编辑器容器 */
.pc-editor .ql-toolbar.ql-snow { border: 1px solid #e0e4ea; border-bottom: none; background: #f8fafc; }
.pc-editor .ql-container.ql-snow { border: 1px solid #e0e4ea; font-size: 15px; font-family: inherit; }
.pc-editor .ql-editor { min-height: 260px; }

/* 分页 */
.pc-pagination { display: flex; justify-content: center; gap: 6px; padding: 18px; }
.pc-pagination a, .pc-pagination span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e0e4ea; border-radius: var(--pc-radius); font-size: 14px; padding: 0 10px; background: #fff; color: #555; }
.pc-pagination a:hover { border-color: var(--pc-primary); color: var(--pc-primary); }
.pc-pagination .current { background: var(--pc-primary); color: #fff; border-color: var(--pc-primary); }

/* 空状态 */
.pc-empty { text-align: center; padding: 3rem; color: var(--pc-sub); }

/* 底部 */
.pc-footer { text-align: center; padding: 30px 16px; color: var(--pc-sub); font-size: 13px; }
.pc-footer a { color: var(--pc-sub); }

/* 提示条 */
.pc-alert { padding: 10px 14px; border-radius: var(--pc-radius); font-size: 14px; margin-bottom: 16px; }
.pc-alert-info { background: #e8f4fd; color: #0f88eb; }
.pc-alert-ok { background: #eaf7ea; color: #2d7a2d; }
.pc-alert-err { background: #fdecea; color: #b02a37; }

/* 站点公告条 */
.pc-announce { background: #fff8e6; border: 1px solid #ffe0a3; border-radius: var(--pc-radius); padding: 10px 16px; margin-top: 14px; font-size: 13px; color: #8a6d1a; }
.pc-announce-item { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.pc-announce-item svg { color: #d99e00; }

/* ===== 私信（仿 hy_message） ===== */
.msg-layout2 { display: grid; grid-template-columns: 260px 1fr; gap: 0; background: #fff; border-radius: var(--pc-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(20,40,80,.04), 0 6px 20px -12px rgba(20,40,80,.12); min-height: 560px; }
.msg-convos { border-right: 1px solid var(--pc-border); background: #fafbfd; }
.msg-convos-head { padding: 16px 20px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--pc-border); }
.msg-convos ul { list-style: none; margin: 0; padding: 0; }
.msg-convo { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pc-border); transition: background .15s; }
.msg-convo:hover { background: #f0f7fe; }
.msg-convo.active { background: #e8f3fd; }
.msg-convo img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.msg-convo-name { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.msg-convo-name span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pc-text); }
.msg-unread { background: #f44336; color: #fff; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.msg-convo-last { font-size: 12px; color: var(--pc-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.msg-chat { display: flex; flex-direction: column; }
.msg-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--pc-border); }
.msg-chat-head img { width: 34px; height: 34px; border-radius: 50%; }
.msg-chat-head span { flex: 1; font-weight: 600; font-size: 15px; }
.msg-chat-body { flex: 1; padding: 18px; overflow-y: auto; max-height: 420px; background: #f7f9fc; }
.msg-row { display: flex; margin-bottom: 10px; }
.msg-row.mine { justify-content: flex-end; }
.msg-bubble { max-width: 68%; padding: 9px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; background: #fff; border: 1px solid var(--pc-border); word-break: break-word; }
.msg-row.mine .msg-bubble { background: #0f88eb; color: #fff; border-color: transparent; }
.msg-chat-input { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--pc-border); }
.msg-chat-input .pc-input { flex: 1; }
.msg-chat-input .pc-btn { white-space: nowrap; }
@media (max-width: 900px) { .msg-layout2 { grid-template-columns: 1fr; } .msg-convos { border-right: none; border-bottom: 1px solid var(--pc-border); } }

/* 用户中心返回条 */
.uc-back { display: flex; align-items: center; gap: 6px; padding: 10px 20px; font-size: 13px; color: var(--pc-sub); border-bottom: 1px solid var(--pc-border); }
.uc-back:hover { color: var(--pc-primary); background: #f7fbff; }

/* ===== 用户中心（仿 hy_user） ===== */
.uc-wrap { display: flex; gap: 20px; margin-top: 20px; align-items: flex-start; }
.uc-aside { width: 260px; flex-shrink: 0; background: #fff; border-radius: var(--pc-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(20,40,80,.04), 0 6px 20px -12px rgba(20,40,80,.12); }
.uc-aside-avatar { text-align: center; padding: 26px 20px 18px; background: #0f88eb; color: #fff; }
.uc-aside-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5); margin-bottom: 10px; }
.uc-aside-avatar h2 { font-size: 18px; margin: 0 0 2px; font-weight: 600; }
.uc-aside-avatar .role { font-size: 12px; background: rgba(255,255,255,.22); padding: 1px 8px; border-radius: 10px; }
.uc-progress { margin: 14px 0 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.uc-progress span { display: block; height: 100%; background: #fff; border-radius: 3px; }
.uc-num-info { display: flex; margin-top: 16px; }
.uc-num-info > div { flex: 1; text-align: center; }
.uc-num-info .num { display: block; font-size: 17px; font-weight: 700; }
.uc-num-info .text { font-size: 11px; opacity: .8; }
.uc-menus ul { list-style: none; margin: 0; padding: 8px 0; }
.uc-menus a { display: flex; align-items: center; gap: 10px; padding: 12px 22px; font-size: 14px; color: #4a5568; transition: all .15s; }
.uc-menus a:hover { background: #f7fbff; color: var(--pc-primary); }
.uc-menus a.active { background: #eef6fe; color: var(--pc-primary); font-weight: 600; border-left: 3px solid var(--pc-primary); padding-left: 19px; }
.uc-main { flex: 1; min-width: 0; }
.uc-tabs { display: flex; gap: 4px; background: #fff; border-radius: var(--pc-radius); padding: 6px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20,40,80,.04); }
.uc-tabs a { padding: 8px 16px; border-radius: 6px; font-size: 14px; color: #5a6573; }
.uc-tabs a:hover { background: #f4f8fd; color: var(--pc-primary); }
.uc-tabs a.active { background: var(--pc-primary); color: #fff; font-weight: 500; }
.uc-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.uc-stat { background: #fff; border-radius: var(--pc-radius); padding: 20px; text-align: center; box-shadow: 0 1px 2px rgba(20,40,80,.04), 0 6px 20px -12px rgba(20,40,80,.12); transition: transform .2s; }
.uc-stat:hover { transform: translateY(-2px); }
.uc-stat .ico { color: var(--pc-primary); margin-bottom: 8px; display: flex; justify-content: center; }
.uc-stat .n { font-size: 24px; font-weight: 700; color: var(--pc-primary); line-height: 1.1; }
.uc-stat .l { font-size: 13px; color: var(--pc-sub); margin-top: 4px; }

@media (max-width: 900px) {
  .pc-main { flex-direction: column; }
  .pc-right { width: 100%; }
  .pc-nav { display: none; }
}
