/* ===== 全站基础样式（自研实现，复刻维度导航视觉风格） ===== */
@font-face {
  font-family: 'DingTalk JinBuTi';
  src: url('/assets/font/DingTalk-JinBuTi-subset.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f6f7f9;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-solid: #fff;
  --text: #31394d;
  --text-muted: #8a94a6;
  --border: rgba(135, 150, 175, 0.14);
  --theme: #79ca2e;
  --theme-light: rgb(162, 255, 75,  0.36);
  --btn-bg: rgba(195, 255, 95, 0.68);
  --btn-text: #212529;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
  --header-bg: rgba(255, 255, 255, 0.72);
  --muted-bg: #f2f3f5;
  --radius: 10px;
}
html.dark {
  --bg: #1c1e26;
  --card-bg: rgba(38, 41, 51, 0.92);
  --card-solid: #262933;
  --text: #d6dae2;
  --text-muted: #83899a;
  --border: rgba(160, 175, 200, 0.12);
  --theme: #5c93ff;
  --theme-light: rgb(162, 255, 75,  0.36);
  --shadow: none;
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(28, 30, 38, 0.75);
  --muted-bg: #2c2f3a;
}
html.warm {
  --bg: #fff6ef;
  --card-bg: #fff;
  --card-solid: #fff;
  --text: #3d2e24;
  --text-muted: #a08878;
  --border: rgba(200, 150, 120, 0.16);
  --theme: #F26855;
  --theme-light: rgba(242, 104, 85, 0.10);
  --shadow: 0 1px 3px rgba(180, 100, 60, 0.07);
  --shadow-hover: 0 6px 20px rgba(180, 100, 60, 0.12);
  --header-bg: #fff6ef;
  --muted-bg: #fef0e6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--theme); text-decoration: none; }
img { max-width: 100%; }
.line1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--text-muted); }
.card { background: var(--card-solid); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.tooltip-inner { max-width: 260px; }

/* ===== 头部 ===== */
.main-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 58px;
}
.header-inner { display: flex; align-items: center; height: 100%; }
.header-logo { flex-shrink: 0; }
.header-logo img { height: 34px; max-width: 120px; object-fit: contain; display: block; }
html.dark .logo-light { display: none; }
html:not(.dark) .logo-dark { display: none; }
.icon-fw { width: 1.25em; text-align: center; }
.icon-lg { font-size: 1.3em; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; flex-shrink: 0; }
.header-nav { margin-left: 10px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 6px 9px; border-radius: 8px; color: var(--text); font-size: 13.5px;
  transition: background 0.2s, color 0.2s;
}
.nav-menu > li > a i.mr-2 { margin-right: 2px !important; }
.nav-menu > li > a:hover, .nav-menu > li.active > a { background: var(--theme-light); color: var(--btn-text); }
.nav-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 150px;
  background: var(--card-solid); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14); border: 1px solid var(--border);
  list-style: none; margin: 0; padding: 8px 6px 6px; display: none; z-index: 10;
}
.nav-menu li.has-sub:hover > .sub-menu { display: block; }
.sub-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; white-space: nowrap; }
.sub-menu a:hover { background: var(--theme-light); color: var(--btn-text); }
.menu-item-image { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.header-tools { margin-right: 0; flex-shrink: 0; }
.header-tools .nav-menu > li > a { padding: 6px 8px; }
.header-tools .tool-item a { font-size: 16px; padding: 6px 8px; }
.header-mobile-btn { background: none; border: 0; color: var(--text); font-size: 22px; padding: 4px 8px; }
.mobile-menu { display: none; background: var(--card-solid); border-top: 1px solid var(--border); padding: 8px 16px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: block; }

/* ===== 搜索横幅 ===== */
.search-banner {
  margin-top: 58px; position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  padding: 19px 0 40px;
}
.search-banner-mask { position: absolute; inset: 0; background:#007bff; backdrop-filter: blur(2px); }
html.dark .search-banner-mask { background: rgba(0, 0, 0, 0.45); }
html.warm .search-banner-mask { background: rgba(255, 90, 90, 0.35); }
.weather-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.search-parallax { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sp-layer {
  position: absolute; bottom: 0; left: -70px; right: -70px;
  background-repeat: no-repeat; background-position: center bottom; will-change: transform;
}
.sp-1 { z-index: 4; height: 10px; background-image: url(/assets/images/top-1.png); }
.sp-2 { z-index: 3; height: 57px; background-image: url(/assets/images/top-2.png); }
.sp-3 { z-index: 2; height: 72px; background-image: url(/assets/images/top-3.png); background-position: calc(50% + 150px) bottom; }
.sp-4 { z-index: 1; height: 71px; background-image: url(/assets/images/top-4.png); }
html.dark .sp-1 { background-image: url(/assets/images/dark-1.png); }
html.dark .sp-2 { background-image: url(/assets/images/dark-2.png); }
html.dark .sp-3 { background-image: url(/assets/images/dark-3.png); }
html.dark .sp-4 { background-image: url(/assets/images/dark-4.png); }
.search-container { position: relative; z-index: 2; }
.search-box { max-width: 680px; }
.search-groups { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; justify-content: center; }
.search-groups::-webkit-scrollbar { display: none; }
.search-group-tab {
  padding: 5px 18px; border-radius: 20px; cursor: pointer; font-size: 14px;
  color: #fff; background: rgba(0, 0, 0, 0.22); white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.25); transition: background 0.2s;
}
.search-group-tab.active, .search-group-tab:hover { background: #fff; color: var(--theme); font-weight: 600; text-shadow: none; }
.search-form { display: flex; position: relative; }
.search-key {
  flex: 1; height: 46px; border-radius: 23px 0 0 23px !important; border: 0;
  padding: 0 22px; font-size: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #fff; color: #333;
}
.search-key:focus { outline: 0; box-shadow: 0 2px 16px rgba(0,0,0,.14); }
.search-submit-btn {
  width: 74px; height: 46px; border: 0; border-radius: 0 23px 23px 0;
  background: var(--btn-bg); color: var(--btn-text); font-size: 18px; cursor: pointer;
  transition: filter 0.2s;
}
.search-submit-btn:hover { filter: brightness(1.1); }
.search-terms-wrap { margin-top: 12px; }
.search-terms {
  display: none; gap: 6px; list-style: none; margin: 0; padding: 2px 0;
  overflow-x: auto; scrollbar-width: none; justify-content: center;
}
.search-terms::-webkit-scrollbar { display: none; }
.search-terms.active { display: flex; }
.search-term {
  padding: 4px 14px; border-radius: 16px; cursor: pointer; font-size: 12.5px; white-space: nowrap;
  color: #fff; background: rgba(0, 0, 0, 0.18); text-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: background 0.2s;
}
.search-term:hover { background: rgba(255, 255, 255, 0.9); color: var(--theme); text-shadow: none; }
.search-term.active { background: #fff; color: var(--theme); font-weight: 600; text-shadow: none; }

/* ===== 絮叨（树洞留言栏） ===== */
.murmur-row { display: flex; align-items: flex-start; margin: 14px 0; }
body.murmur-closed .home-content { margin-top: 10px; }
.bulletin-bar {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  padding: 6px 12px; font-size: 12.5px; color: var(--text-muted);
}
.murmur-bar { flex: 0 1 auto; width: 100%; max-width: 1110px; min-width: 0; }
.murmur-icon {
  font-size: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, #195bf6 0%, #ced6ff 99%, #6995ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.murmur-label {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--theme);
  padding: 1px 8px; border-radius: 10px; background: var(--theme-light); letter-spacing: 1px;
}
.murmur-viewport { position: relative; flex: 1; min-width: 0; height: 24px; overflow: hidden; }
.murmur-item {
  position: absolute; left: 0; right: 0; top: 0; height: 24px;
  display: flex; align-items: center; gap: 7px;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .6s ease;
}
.murmur-item.enter { transform: translateY(130%); opacity: 0; }
.murmur-item.leave { transform: translateY(-130%); opacity: 0; }
.murmur-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--muted-bg); }
.murmur-nick {
  flex-shrink: 0; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--theme); font-weight: 600;
}
.murmur-text {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #666; font-weight: 500; letter-spacing: .3px;
}
html.dark .murmur-text { color: var(--text-muted); }
.murmur-item.is-notice .murmur-text { color: #e17055; }
.murmur-item.is-notice .murmur-text:hover { color: #d63031; }
.murmur-time { flex-shrink: 0; font-size: 11.5px; color: var(--text-muted); }
.murmur-empty { color: var(--text-muted); font-size: 12.5px; }
.murmur-publish {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px;
  border: 1px solid var(--border); background: var(--muted-bg); color: var(--text-muted);
  border-radius: 14px; padding: 2px 11px; font-size: 12px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.murmur-publish:hover { background: var(--theme); border-color: var(--theme); color: #fff; }
.murmur-publish i { font-size: 13px; }
.murmur-close { color: #b2bec3; flex-shrink: 0; transition: color .3s, transform .3s; }
.murmur-close:hover { color: #ff4757; transform: rotate(90deg) scale(1.1); }
.murmur-bar.pulse { animation: murmurPulse 1.1s ease; }
@keyframes murmurPulse {
  0% { box-shadow: 0 0 0 0 rgba(121, 202, 46, .55); }
  100% { box-shadow: 0 0 0 16px rgba(121, 202, 46, 0); }
}
@media (max-width: 767.98px) {
  .murmur-bar { max-width: 100%; }
  .murmur-time, .murmur-label { display: none; }
}

/* ===== 主体布局 ===== */
.home-content { padding-bottom: 30px; }
.home-layout { display: flex; gap: 18px; align-items: flex-start; }
.home-sidebar { width: 115px; flex-shrink: 0; position: sticky; top: 72px; }
.sidebar-inner { max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: none; padding-right: 2px; }
.sidebar-inner::-webkit-scrollbar { display: none; }
.sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-item { margin-bottom: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 8px; padding: 8px 2px 8px 8px;
  border-radius: 9px; color: var(--text); font-size: 14px; transition: background .2s, color .2s;
}
.sidebar-link i { font-size: 16px; width: 20px; text-align: center; color: var(--text-muted); transition: color .2s; }
.sidebar-link:hover { background: var(--theme-light); color: var(--btn-text); }
.sidebar-link:hover i { color: var(--btn-text); }
.sidebar-link.active { color: var(--btn-text); background: var(--theme-light); font-weight: 500; }
.sidebar-link.active i { color: var(--btn-text); }
.sidebar-foot { margin-top: 14px; padding: 0 8px; }
.sidebar-apply {
  display: block; text-align: center; padding: 8px; border-radius: 9px; font-size: 13px;
  border: 1px dashed #555; color: var(--text-muted); transition: border-color .2s, color .2s;
}
.sidebar-apply:hover { border-color: var(--theme); color: var(--theme); }
.home-body { flex: 1; min-width: 0; }

/* ===== 内容卡片/分区 ===== */
.content-card {
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 16px;
  backdrop-filter: blur(6px);
}
/* 锚点定位时避开固定头部（58px）*/
.home-section, .welcome-card { scroll-margin-top: 70px; }
.card-head { margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.card-title { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; }
.card-title i { color: var(--theme); }
.section-tabs {
  display: flex; list-style: none; margin: 0 0 0 14px; padding: 0; gap: 2px;
  overflow-x: auto; scrollbar-width: none; flex: 0 1 750px; max-width: 750px;
}
.section-tabs::-webkit-scrollbar { display: none; }
.section-tab {
  padding: 5px 13px; border-radius: 17px; cursor: pointer; font-size: 13px;
  color: var(--text-muted); white-space: nowrap; transition: background .2s, color .2s;
}
.section-tab:hover { color: var(--btn-text); background: var(--theme-light); }
.section-tab.active { color: #fff; background: var(--theme); font-weight: 500; }
.btn-mini {
  font-size: 12.5px; color: var(--text-muted); padding: 4px 12px;
  border-radius: 15px; border: 1px solid var(--border); transition: border-color .2s, color .2s; white-space: nowrap;
}
.btn-mini:hover { color: var(--theme); border-color: var(--theme); }
.section-pane { display: none; }
.section-pane.active { display: block; }
.pane-loading { text-align: center; padding: 40px; color: var(--text-muted); }
.pane-loading::after { content: ''; display: inline-block; width: 18px; height: 18px; margin-left: 8px; border: 2px solid var(--theme); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-tip { padding: 30px; text-align: center; }

/* ===== 站点卡片网格 ===== */
.site-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .site-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .site-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 768px) { .site-grid.site-grid-rec { grid-template-columns: repeat(5, 1fr); } }
.site-card {
  position: relative; background: var(--card-solid); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.site-card:hover {
  border-color: var(--theme);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}
.site-body { position: relative; z-index: 1; display: flex; padding: 9px; gap: 9px; align-items: center; }
.site-media {
  position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.site-blur {
  position: absolute; left: -6px; top: -6px; width: 56px; height: 56px; border-radius: 50%;
  background-size: cover; background-position: center; z-index: 0;
  filter: blur(10px) opacity(70%); opacity: 0;
  transform: scale(0); transform-origin: center;
}
.site-card:hover .site-blur { animation: site-blur-ripple 1.5s ease-out infinite; }
@keyframes site-blur-ripple {
  0%   { transform: scale(.3); opacity: 0; }
  20%  { opacity: .6; }
  100% { transform: scale(2); opacity: 0; }
}
.site-icon {
  position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  object-fit: contain;
}
.site-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.site-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 22px; }
.site-card:hover .site-title { color: var(--theme); }
.site-desc { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-go {
  position: absolute; right: 8px; top: 6px; z-index: 2; color: var(--text-muted); font-size: 13px;
  opacity: 0; transform: rotate(0deg) scale(.5); transform-origin: center; padding: 2px 4px;
  transition: opacity .25s, transform .3s ease, color .25s;
}
.site-card:hover .site-go { opacity: 1; transform: rotate(45deg) scale(1); }
.site-go:hover { color: var(--theme); }
/* 推荐站点：左上角 45° 倾斜丝带角标 */
.site-card.recommended::before {
  content: '推荐'; position: absolute; left: -20px; top: 3px; z-index: 3;
  transform: rotate(-45deg); transform-origin: center;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 20px; min-width: 60px;
  font-size: 9px; line-height: 1.2; white-space: nowrap; text-align: center; color: #fff;
  background: linear-gradient(135deg, #f89250 10%, #f1404b 100%);
  box-shadow: 0 1px 4px rgba(241, 64, 75, .35);
}
.site-meta {
  display: flex; gap: 10px; padding: 0 10px 7px 60px; font-size: 11.5px; color: var(--text-muted);
}
.site-meta i { margin-right: 2px; }
.tooltip-inner { font-size: 12px; }

/* ===== 文章卡片 ===== */
.post-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; gap: 12px; background: var(--card-solid); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); transition: box-shadow .25s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-media { width: 128px; height: 86px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-title a:hover { color: var(--theme); }
.post-desc { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; display: flex; gap: 14px; font-size: 11.5px; padding-top: 6px; }

/* ===== 采集新闻列表（首页「新闻资讯」标签） ===== */
.news-list { max-width: 100%; display: grid; grid-template-columns: repeat(3, 310px); gap: 8px 10px; justify-content: start; }
.news-item {
  position: relative; display: block; min-width: 0; padding: 8px 11px; border-radius: var(--radius);
  background: var(--card-solid); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.news-item:hover { border-color: rgba(121, 202, 46, .55); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-body { display: block; color: inherit; text-decoration: none; }
.news-source { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 2px; padding-right: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item:hover .news-title { color: var(--theme); }
.news-meta { display: none; gap: 12px; font-size: 11.5px; margin-top: 3px; }
.news-meta i { margin-right: 3px; }
.news-go {
  position: absolute; right: 8px; top: 6px; color: var(--text-muted); font-size: 13px;
  opacity: 0; transition: opacity .25s, transform .25s; padding: 2px 4px; z-index: 2;
}
.news-item:hover .news-go { opacity: 1; }
.news-go:hover { color: var(--theme); transform: translateX(2px); }
@media (max-width: 767px) { .news-list { grid-template-columns: 1fr; } }

/* ===== 榜单（列数由 cols-N 决定） ===== */
.news-board { display: grid; gap: 12px; }
.news-board.cols-1 { grid-template-columns: 1fr; }
.news-board.cols-2 { grid-template-columns: repeat(2, 1fr); }
.news-board.cols-3 { grid-template-columns: repeat(3, 1fr); }
.news-board.cols-4 { grid-template-columns: repeat(4, 1fr); }
.news-rank { display: flex; flex-direction: column; height: 320px; background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.news-rank-head { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 6px; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.news-rank-head i { flex: 0 0 auto; width: 28px; height: 28px; line-height: 28px; text-align: center; font-size: 18px; }
.news-rank-icon { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; flex: 0 0 auto; }
.news-rank-head-main { flex: 1 1 auto; min-width: 0; height: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.news-rank-head-title { line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-rank-source { font-size: 10px; font-weight: 400; color: var(--text-muted); line-height: 12px; margin-top: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-rank-note { position: relative; flex: 0 0 auto; align-self: flex-start; line-height: 28px; font-size: 15px; font-weight: 600; color: var(--text); max-width: 45%; }
.news-rank-note-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-rank-note::after { content: ''; position: absolute; left: 0; right: 0; bottom: -11px; height: 3px; background: var(--text-muted); }
.news-rank-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 14px; }
.news-rank-body::-webkit-scrollbar { width: 3px; }
.news-rank-body::-webkit-scrollbar-track { background: transparent; }
.news-rank-body::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.news-rank-body.scrolling::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .28); }
html.dark .news-rank-body.scrolling::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .35); }
@supports not selector(::-webkit-scrollbar) {
  .news-rank-body { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .news-rank-body.scrolling { scrollbar-color: rgba(0, 0, 0, .28) transparent; }
  html.dark .news-rank-body.scrolling { scrollbar-color: rgba(255, 255, 255, .35) transparent; }
}
.news-rank-item { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text); text-decoration: none; font-size: 13.5px; line-height: 1.5; }
.news-rank-item:last-child { border-bottom: none; }
.news-rank-item:hover .news-rank-title { color: var(--theme); }
.news-rank-no { flex: 0 0 auto; min-width: 18px; text-align: center; font-weight: 700; font-style: italic; color: var(--text-muted); }
.news-rank-title { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .news-board.cols-1, .news-board.cols-2, .news-board.cols-3, .news-board.cols-4 { grid-template-columns: 1fr; } }

/* ===== 招聘 / 房屋 榜单条目（复用 news-rank 容器） ===== */
.rank-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text); text-decoration: none; }
.rank-item:last-child { border-bottom: none; }
.rank-no { flex: 0 0 auto; min-width: 18px; text-align: center; font-size: 13px; line-height: 1.5; font-weight: 700; font-style: italic; color: var(--text-muted); }
.rank-main { flex: 1 1 auto; min-width: 0; }
.rank-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item:hover .rank-title { color: var(--theme); }
.rank-specs { display: block; font-size: 12px; line-height: 1.4; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 推广卡片 ===== */
.promo-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); font-family: 'DingTalk JinBuTi', sans-serif; }
.promo-bgimg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat; background-position: top right; background-size: 90px 90px; }
.promo-info { position: relative; z-index: 1; min-width: 0; }
.promo-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.promo-title strong { background: linear-gradient(transparent 62%, var(--hl, rgba(62,123,250,.4)) 62%); padding: 0 2px; }
.promo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-content: flex-start; }
.promo-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(15px); border: 1px solid rgb(242 244 247); transition: all 0.3s ease; flex: 1 1 auto; min-width: 180px; max-width: 100%; box-sizing: border-box; }
.promo-link:hover { background: #fff; transform: translateY(-2px); }
.promo-link img { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; }
.promo-link strong { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-link span { font-size: 12px; color: #666; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-link span i { font-size: 12px; opacity: 0.7; transition: transform .3s; }
.promo-link:hover span i { transform: translateX(2px); opacity: 1; }
html.dark .promo-card { background: #2d2e2f !important; }
html.dark .promo-link { background: #24262a; border-color: rgb(242 244 247 / 10%); }
html.dark .promo-link:hover { background: #1c1e22; }
html.dark .promo-link span { color: #afb2b9; }
@media (max-width: 768px) {
  .promo-title { font-size: 15px; margin-bottom: 10px; }
  .promo-link { padding: 6px 10px; }
  .promo-link img { width: 20px; height: 20px; }
}

/* ===== 弹窗（优惠码窗口） ===== */
.star-window { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; }
.star-window.open { display: flex; }
.star-window-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); }
.star-window-body {
  position: relative; width: min(420px, calc(100vw - 30px));
  background: var(--card-solid); border-radius: 16px; padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.star-window-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.star-window-nav { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.star-window-nav li { padding: 4px 14px; border-radius: 15px; font-size: 12.5px; cursor: pointer; background: var(--muted-bg); color: var(--text-muted); transition: background .2s, color .2s; }
.star-window-nav li.active { background: var(--theme); color: #fff; }
.star-window-main { position: relative; }
.star-window-close { position: absolute; right: -8px; top: -8px; color: var(--text-muted); font-size: 16px; z-index: 3; }
.star-window-close:hover { color: #ff4757; }
.star-window-pane { display: none; text-align: center; }
.star-window-pane.active { display: block; }
.star-window-img { position: relative; display: inline-block; }
.star-window-img > img { max-width: 240px; max-height: 300px; border-radius: 10px; }
.qr-logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center;
}
.qr-logo img { width: 34px; height: 34px; object-fit: contain; }
.star-window-content { margin-top: 12px; font-size: 13px; color: var(--text-muted); text-align: left; line-height: 1.8; }
.star-window-content .highlight-01 { background: linear-gradient(transparent 60%, rgba(253, 184, 19, 0.45) 60%); color: var(--text); font-weight: 600; }

/* ===== Ctrl+D / 友链 ===== */
.ctrld-bar {
  text-align: center; padding: 14px; font-size: 13px; color: var(--text-muted);
  background: var(--card-bg); border-radius: var(--radius); margin-bottom: 16px;
}
.ctrld-bar span, .ctrld-bar kbd { color: var(--theme); font-weight: 600; }
.friendlink-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.friendlink-list a { color: var(--text-muted); transition: color .2s; }
.friendlink-list a:hover { color: var(--theme); }

/* ===== 页脚 ===== */
.main-footer { background: var(--card-solid); border-top: 1px solid var(--border); margin-top: 30px; }
.main-footer .footer { text-align: center; padding: 18px 0; }
@media (min-width: 768px) { .main-footer .footer { text-align: left; } }
.footer-brand { display: flex; align-items: center; gap: 16px; text-align: left; }
.footer-logo-img { width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.footer-desc { color: var(--text-muted); line-height: 1.8; }
.footer-social { display: flex; gap: 10px; justify-content: center; }
@media (min-width: 768px) { .footer-social { justify-content: flex-end; } }
.social-btn {
  width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--muted-bg); color: var(--text-muted); font-size: 16px; transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--theme); color: #fff; transform: translateY(-2px); }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 768px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--theme); }
.footer-copyright { text-align: center; padding: 14px; color: var(--text-muted); border-top: 1px solid var(--border); }
.footer-copyright a { color: var(--text-muted); }
.footer-copyright a:hover { color: var(--theme); }

/* ===== 我的常用（自定义导航） ===== */
.welcome-card { padding: 0 16px !important; height: 50px; display: flex; align-items: center; }
.welcome-bar { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; }
.welcome-title { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.welcome-title i { color: #3aa757; font-size: 20px; }
.welcome-items { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.custom-nav-empty { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.custom-item {
  flex: 0 0 auto; max-width: 100%; overflow: hidden;
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  background: var(--card-solid); border: 1px solid var(--border); border-radius: 17px;
  font-size: 15px; white-space: nowrap; position: relative; transition: border-color .2s;
  height: 34px; box-sizing: border-box;
}
.custom-item:hover { border-color: var(--theme); }
.custom-ico { flex-shrink: 0; font-size: 15px; line-height: 1; }
.custom-item a:not(.custom-del) { color: var(--text-main); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.custom-item:hover a:not(.custom-del) { color: var(--theme); }
.custom-item .custom-del { font-size: 12px; color: #b2bec3; flex-shrink: 0; transition: color .3s, transform .3s; }
.custom-item .custom-del:hover { color: #ff4757; transform: rotate(90deg) scale(1.1); }
.custom-ico img { width: 16px; height: 16px; border-radius: 2px; object-fit: contain; vertical-align: middle; }

/* 添加常用网站弹窗 */
.custom-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.custom-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.custom-modal-box {
  position: relative; width: 420px; max-width: 92vw; background: var(--card-solid);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); overflow: hidden;
}
.custom-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.custom-modal-head h5 { margin: 0; font-size: 16px; font-weight: 600; }
.custom-modal-close { color: var(--text-muted); font-size: 18px; padding: 2px 6px; border-radius: 4px; transition: background .2s; }
.custom-modal-close:hover { background: var(--muted-bg); color: var(--text-main); }
.custom-modal-body { padding: 18px; }
.custom-form-row { margin-bottom: 14px; }
.custom-form-row:last-child { margin-bottom: 0; }
.custom-form-row label { display: block; font-size: 13px; color: var(--text-main); margin-bottom: 6px; font-weight: 500; }
.custom-input {
  width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; background: var(--card-solid); color: var(--text-main);
  transition: border-color .2s;
}
.custom-input:focus { outline: none; border-color: var(--theme); }
.custom-icon-preview {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--muted-bg); margin-right: 10px; vertical-align: middle;
}
.custom-icon-preview img { width: 24px; height: 24px; object-fit: contain; }
.custom-icon-default { font-size: 20px; }
.custom-modal-foot { padding: 0 18px 18px; display: flex; justify-content: flex-end; }
.custom-modal-foot .btn-primary { min-width: 80px; height: 34px; font-size: 14px; color: #fff; }

/* ===== 内页（分类/详情/搜索/单页） ===== */
.sub-banner { margin-top: 58px; padding: 30px 0 22px; background: linear-gradient(135deg, var(--theme) 0%, #6995ff 100%); color: #fff; }
.sub-banner h1 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.sub-banner p { margin: 0; opacity: .85; font-size: 13px; }
.sub-content { padding: 20px 0 40px; }
.page-card { background: var(--card-solid); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.page-card h2 { font-size: 18px; margin: 22px 0 10px; }
.page-card p { line-height: 1.9; color: var(--text-muted); }
/* ===== 内容详情页：左正文 + 右推广卡片（竖排） ===== */
.detail-layout { display: flex; gap: 16px; align-items: flex-start; }
.detail-main { flex: 1 1 auto; min-width: 0; }
.detail-side { flex: 0 0 340px; width: 340px; }
.promo-grid.promo-grid-side { grid-template-columns: 1fr; }
.detail-side .promo-card { box-shadow: var(--shadow); }
.detail-main .site-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .detail-main .site-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) {
  .detail-layout { flex-direction: column; }
  .detail-side { flex: 1 1 auto; width: 100%; }
}
.pagination-wrap { display: flex; justify-content: center; margin-top: 22px; }
.pagination .page-link { background: var(--card-solid); border-color: var(--border); color: var(--text-muted); }
.pagination .page-item.active .page-link { background: var(--theme); border-color: var(--theme); color: #fff; }
.site-detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.site-detail-icon { width: 74px; height: 74px; border-radius: 16px; object-fit: contain; background: var(--muted-bg); padding: 8px; }
.site-detail-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.btn-visit {
  display: inline-flex; align-items: center; gap: 6px; background: var(--btn-bg); color: var(--btn-text);
  padding: 8px 22px; border-radius: 20px; font-size: 14px; transition: filter .2s;
}
.btn-visit:hover { filter: brightness(1.08); color: var(--btn-text); }
.detail-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.site-screenshot-img {
  display: block; width: 100%; max-width: 720px; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s;
}
.site-screenshot-img:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* ===== 移动端 ===== */
@media (max-width: 767.98px) {
  .home-sidebar { display: none; }
  .search-banner { padding: 30px 0 26px; }
  .content-card { padding: 13px; }
  .card-head { gap: 6px; }
  .section-tabs { margin-left: 0; order: 3; flex-basis: 100%; }
  .post-media { width: 104px; height: 70px; }
}

/* ===== 懒加载占位 ===== */
.lazy, .lazy-bg { transition: opacity .3s; }
img.lazy:not(.loaded) { opacity: 0; }
img.lazy.loaded { opacity: 1; }

/* ===== 絮叨发布框（A4 纸） ===== */
.murmur-editor {
  position: fixed; right: 26px; bottom: 0; z-index: 1500; width: 336px;
  opacity: 0; pointer-events: none;
  transform: translateY(26px) scale(.96); transform-origin: bottom right;
  transition: opacity .26s ease, transform .34s cubic-bezier(.2, .85, .3, 1);
}
.murmur-editor.open { opacity: 1; pointer-events: auto; transform: none; }
.murmur-editor.instant { transition: none; }
.me-paper {
  background: var(--card-solid); border: 1px solid var(--border); border-bottom: 0;
  border-radius: 14px 14px 0 0; padding: 12px 14px 12px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .2);
}
.me-head { display: flex; align-items: center; margin-bottom: 8px; }
.me-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.me-title i { color: var(--theme); }
.me-close { margin-left: auto; color: var(--text-muted); font-size: 14px; transition: color .2s, transform .2s; }
.me-close:hover { color: #ff4757; transform: rotate(90deg); }
.me-user { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px dashed var(--border); margin-bottom: 9px; }
.me-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--muted-bg); flex-shrink: 0; }
.me-user-id { min-width: 0; }
.me-nick { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-hint { line-height: 1.4; }
.me-content {
  display: block; width: 100%; aspect-ratio: 1 / 1.414; min-height: 150px;
  max-height: calc(100vh - 290px);
  border: 1px solid var(--border); border-radius: 8px; padding: 0 12px;
  font-size: 13.5px; line-height: 26px; resize: none; color: var(--text);
  background-color: var(--card-solid);
  background-image: repeating-linear-gradient(to bottom, transparent 0 25px, var(--border) 25px 26px);
  background-attachment: local;
  transition: border-color .2s, box-shadow .2s;
}
.me-content:focus { outline: 0; border-color: var(--theme); box-shadow: 0 0 0 3px var(--theme-light); }
.me-content::placeholder { color: var(--text-muted); }
.me-foot { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.me-emoji, .me-submit {
  border: 1px solid var(--border); background: var(--muted-bg); color: var(--text-muted);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, filter .2s;
}
.me-emoji { width: 32px; height: 30px; border-radius: 9px; font-size: 16px; line-height: 1; }
.me-emoji:hover { color: var(--theme); border-color: var(--theme); }
.me-count { margin-left: auto; }
.me-submit {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 15px;
  padding: 5px 16px; font-size: 12.5px; background: var(--btn-bg); color: var(--btn-text); border-color: transparent;
}
.me-submit:hover { filter: brightness(1.06); }
.me-submit:disabled { opacity: .6; cursor: not-allowed; }
.me-emoji-panel {
  position: absolute; left: 0; bottom: 38px; z-index: 5; width: 252px; max-height: 156px;
  overflow-y: auto; display: none; grid-template-columns: repeat(7, 1fr); gap: 2px;
  background: var(--card-solid); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16); padding: 8px;
}
.me-emoji-panel.open { display: grid; }
.me-emoji-item { font-size: 18px; text-align: center; cursor: pointer; border-radius: 6px; padding: 2px 0; transition: background .15s, transform .15s; }
.me-emoji-item:hover { background: var(--theme-light); transform: scale(1.18); }
@media (max-width: 767.98px) {
  .murmur-editor { right: 0; left: 0; width: auto; }
  .me-paper { border-radius: 14px 14px 0 0; }
  .me-content { max-height: 42vh; }
}

/* ===== 全局提示 toast ===== */
#nav-toast {
  position: fixed; left: 50%; top: 76px; z-index: 3000; max-width: 82vw;
  transform: translate(-50%, -14px); opacity: 0; pointer-events: none;
  background: rgba(30, 34, 44, .93); color: #fff; font-size: 13px;
  padding: 9px 20px; border-radius: 20px; box-shadow: 0 8px 26px rgba(0, 0, 0, .26);
  transition: opacity .25s ease, transform .25s ease;
}
#nav-toast.show { opacity: 1; transform: translate(-50%, 0); }
#nav-toast.err { background: rgba(200, 60, 60, .94); }

/* ===== 头部登录 / 用户菜单 ===== */
.user-tool { position: relative; }
.user-tool.shake { animation: shakeX .6s ease; }
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.user-entry { display: flex; align-items: center; gap: 5px; }
.header-tools .user-tool > a.user-entry { font-size: 13px; }
.header-tools .user-tool > a.user-entry > i { font-size: 16px; }
.user-entry-name { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-avatar-sm { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--muted-bg); }
.login-pop, .user-pop {
  position: absolute; top: calc(100% + 9px); right: -8px; z-index: 1200; display: none;
  background: var(--card-solid); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
}
.login-pop.open, .user-pop.open { display: block; animation: popIn .2s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.login-pop { width: 272px; padding: 12px 14px 14px; }
.login-pop-arrow {
  position: absolute; top: -5px; right: 18px; width: 9px; height: 9px;
  background: var(--card-solid); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.user-pop { width: 190px; padding: 8px; }
.user-pop-head { display: flex; align-items: center; gap: 9px; padding: 6px 6px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-pop-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--muted-bg); }
.user-pop-id { min-width: 0; }
.user-pop-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.user-pop-item:hover { background: var(--theme-light); color: var(--btn-text); }

/* ===== 登录 / 注册表单（弹窗与页面共用） ===== */
.auth-tabs { display: flex; gap: 4px; list-style: none; margin: 0 0 12px; padding: 3px; background: var(--muted-bg); border-radius: 9px; }
.auth-tabs li { flex: 1; text-align: center; padding: 5px 0; font-size: 12.5px; border-radius: 7px; cursor: pointer; color: var(--text-muted); transition: background .2s, color .2s; }
.auth-tabs li.active { background: var(--card-solid); color: var(--theme); font-weight: 600; box-shadow: var(--shadow); }
.login-pane { display: none; }
.login-pane.active { display: block; }
.lp-field { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding: 7px 2px; transition: border-color .2s; }
.lp-field:focus-within { border-color: var(--theme); }
.lp-field i { color: var(--text-muted); font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.lp-field input { flex: 1; min-width: 0; border: 0; background: none; font-size: 13px; color: var(--text); padding: 0; }
.lp-field input:focus { outline: 0; }
.lp-field input::placeholder { color: var(--text-muted); }
.lp-tip { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
.lp-tip.ok { color: var(--theme); }
.lp-msg { font-size: 12px; line-height: 1.6; min-height: 18px; margin-top: 8px; }
.lp-msg.err { color: #d63031; }
.lp-msg.ok { color: var(--theme); }
.lp-msg a { text-decoration: underline; }
.lp-submit {
  width: 100%; margin-top: 10px; padding: 8px 0; border: 0; border-radius: 19px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-text); font-size: 13.5px; font-weight: 600; transition: filter .2s;
}
.lp-submit:hover { filter: brightness(1.06); }
.lp-submit:disabled { opacity: .6; cursor: not-allowed; }
.lp-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 11px; font-size: 12px; }
.lp-links a { color: var(--text-muted); }
.lp-links a:hover { color: var(--theme); }
body.page-user #login-pop { display: none !important; }

/* ===== 个人中心 ===== */
.user-guest-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.user-guest { flex: 1 1 300px; padding: 40px 26px; }
.user-guest h4 { font-size: 17px; font-weight: 600; }
.guest-icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-light); color: var(--theme);
}
.auth-box-page { flex: 0 0 320px; padding: 22px 24px 24px; }
.auth-box-page.shake { animation: shakeX .6s ease; }
@media (max-width: 767.98px) { .auth-box-page { flex: 1 1 100%; } }

.user-layout { display: flex; gap: 18px; align-items: flex-start; }
.user-main { flex: 1; min-width: 0; }
.user-side { width: 250px; flex-shrink: 0; }
.user-side .page-card { padding: 18px; }
@media (max-width: 991.98px) {
  .user-layout { flex-direction: column-reverse; }
  .user-side { width: 100%; display: flex; gap: 14px; flex-wrap: wrap; }
  .user-side .page-card { flex: 1 1 240px; }
}
.profile-row { display: flex; gap: 22px; align-items: flex-start; }
.avatar-box { position: relative; flex-shrink: 0; }
.avatar-box img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; background: var(--muted-bg); border: 2px solid var(--border); }
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--theme); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); transition: transform .2s;
}
.avatar-edit:hover { transform: scale(1.1); }
.profile-fields { flex: 1; min-width: 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pf-grid .pf-full { grid-column: 1 / -1; }
.pf-grid .form-group { margin-bottom: 12px; }
.pf-grid .form-control { background: var(--card-solid); border-color: var(--border); color: var(--text); font-size: 13px; }
.pf-grid .form-control:disabled { background: var(--muted-bg); color: var(--text-muted); }
@media (max-width: 767.98px) {
  .profile-row { flex-direction: column; align-items: center; }
  .pf-grid { grid-template-columns: 1fr; }
}
.pwd-form { max-width: 400px; }
.pwd-form .form-control { background: var(--card-solid); border-color: var(--border); color: var(--text); font-size: 13px; }

.my-murmur-list { display: flex; flex-direction: column; gap: 10px; }
.mm-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px;
  background: var(--muted-bg); border-radius: 10px; border-left: 3px solid var(--theme);
}
.mm-item.wait { border-left-color: #f0a020; }
.mm-item.deny { border-left-color: #c0c6d0; opacity: .78; }
.mm-main { flex: 1; min-width: 0; }
.mm-content { font-size: 13.5px; line-height: 1.75; word-break: break-word; }
.mm-meta { margin-top: 4px; }
.mm-meta i { margin-right: 3px; }
.mm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.mm-status { font-size: 11.5px; padding: 1px 9px; border-radius: 10px; background: rgba(121, 202, 46, .18); color: #5a9c1c; white-space: nowrap; }
.mm-status.wait { background: rgba(240, 160, 32, .18); color: #b57611; }
.mm-status.deny { background: rgba(150, 158, 172, .2); color: var(--text-muted); }
html.dark .mm-status { color: #a8e063; }
html.dark .mm-status.wait { color: #f5c56b; }
html.dark .mm-status.deny { color: var(--text-muted); }
.mm-del { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.mm-del:hover { color: #ff4757; }
.murmur-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }

.ucm-avatar { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; background: var(--muted-bg); margin-bottom: 10px; }
.ucm-name { font-size: 15px; font-weight: 600; }
.ucm-bio { line-height: 1.7; padding: 8px 0; border-top: 1px dashed var(--border); }
.ucm-stats { display: flex; justify-content: space-around; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--border); }
.ucm-stats div { text-align: center; }
.ucm-stats strong { display: block; font-size: 17px; color: var(--theme); }
.ucm-stats span { font-size: 11.5px; color: var(--text-muted); }
.ucm-title { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.ucm-title i { color: var(--theme); }
.ucm-rules { margin: 0; padding-left: 18px; line-height: 2; }

/* 求职招聘栏目 */
.jobs-section .card-head { margin-bottom: 12px; }
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 10px;
  justify-content: start;
}
.job-item {
  position: relative;
  display: block;
  min-width: 0;
  padding: 8px 11px;
  border-radius: var(--radius);
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.job-item:hover {
  border-color: rgba(121, 202, 46, .55);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.job-body {
  display: block;
  color: inherit;
  text-decoration: none;
}
.job-meta {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
  padding-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-item:hover .job-title {
  color: var(--theme);
}
.job-go {
  position: absolute;
  right: 8px;
  top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  padding: 2px 4px;
  z-index: 2;
}
.job-item:hover .job-go {
  opacity: 1;
}
.job-go:hover {
  color: var(--theme);
  transform: translateX(2px);
}

@media (max-width: 767px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

/* 房屋租售栏目 */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 110px);
  gap: 8px 10px;
}
.house-item {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  overflow: hidden;
}
.house-item:hover {
  border-color: rgba(121, 202, 46, .55);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.house-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 8px 11px;
  color: inherit;
  text-decoration: none;
}
.house-source {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.house-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  margin-bottom: 2px;
}
.house-item:hover .house-title {
  color: var(--theme);
}
.house-specs {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.house-price {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e85d2c;
  margin-top: 2px;
}
.house-go {
  position: absolute;
  right: 8px;
  top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  padding: 2px 4px;
  z-index: 2;
}
.house-item:hover .house-go {
  opacity: 1;
}
.house-go:hover {
  color: var(--theme);
  transform: translateX(2px);
}

@media (max-width: 767px) {
  .houses-grid {
    grid-template-columns: 1fr;
  }
}
