/* ============================================================
   DTR自动收录导航 · 绿白极简风模板样式（原生 CSS，无第三方依赖）
   版式基准：1400 版心 / 55 半透明吸顶头部 / 100 搜索留白
             浅灰底 + 白色圆角大卡 / 五列站点卡（图标+站名+简介）/ 240 右栏
   ============================================================ */

:root {
  --gw-primary: #22c55e;
  --gw-primary-d: #16a34a;
  --bg: #f4f5f7;
  --line: #e5e7eb;
  --line-soft: #f0f2f4;
  --soft: #f8f9fb;
  --txt: #383838;
  --mut: #8e959e;
  --link: #666f7a;
  --hot: #e74c3c;
  /* 卡片/头部底色统一走变量，夜间模式整组替换 */
  --card: #fff;
  --card-bd: #eee;
  --head-bg: rgba(255, 255, 255, .78);
  --head-bd: rgba(229, 231, 235, .8);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 1200px;
  background-color: var(--bg);
  color: var(--txt);
  font: 14px/1.6 "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

body * { box-sizing: border-box; }

html, body, h1, h2, h3, h4, h5, h6, div, dl, dt, dd, ul, ol, li, p,
blockquote, pre, table, th, td, form, input, button, textarea { margin: 0; padding: 0; }

/* 吸顶头部占位（重置规则必须在它之前） */
body { padding-top: 55px; display: flex; flex-direction: column; min-height: 100vh; }

fieldset, img, abbr { border: 0; }
i, cite, em, var, address, dfn { font-style: normal; }
h1, h2, h3, h4, h5, h6, small { font-size: 100%; }
textarea { overflow: auto; resize: none; }
label { cursor: default; }
a, button { cursor: pointer; }
h1, h2, h3, h4, h5, h6, em, strong, b { font-weight: bold; }
table { border-collapse: collapse; border-spacing: 0; }
caption, th { text-align: left; font-weight: normal; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--gw-primary-d); text-decoration: none; }
ul, ol, li { list-style: none; }

/* ---------- 骨架 ---------- */
.wrap,
.gw-wrap { max-width: 1400px; margin: 0 auto; padding: 0 10px; }
.wrap { padding: 24px 10px 30px; }
.fl { float: left; }
.fr { float: right; }
.clear { clear: both; }
.clearfix:after { content: " "; display: block; height: 0; clear: both; visibility: hidden; }
.br4 { border-radius: 12px; }
.card { background-color: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.model {
  margin-bottom: 18px; padding: 20px 22px;
  background-color: var(--card); border: 1px solid #eef0f2;
  border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.num { color: var(--gw-primary-d); padding: 0 2px; }
.sep { margin: 0 10px; color: #c7c6c6; font-size: 12px; }
#body { flex: 1 0 auto; padding-bottom: 20px; }

/* ---------- 头部：55 半透明吸顶 ---------- */
.gw-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 55px;
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--head-bd);
}
.gw-head-in { height: 55px; display: flex; align-items: center; gap: 22px; }
.gw-brand { flex: none; display: flex; align-items: center; gap: 8px; color: #333; }
.gw-brand b { font-size: 17px; font-weight: 600; white-space: nowrap; }
.gw-brand:hover b { color: var(--gw-primary-d); }
.gw-logo {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 50%; background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff; font-size: 17px; font-weight: 700;
}
.gw-logo img { width: 100%; height: 100%; object-fit: cover; }

.gw-nav { flex: 1; min-width: 0; height: 55px; display: flex; align-items: center; gap: 24px; overflow: hidden; }
.gw-nav a {
  position: relative; flex: none; display: flex; align-items: center; height: 55px;
  color: #666; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.gw-nav a:hover { color: var(--gw-primary-d); }
.gw-nav a.on { color: var(--gw-primary); }
.gw-nav a.on:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gw-primary); border-radius: 2px;
}

.gw-head-right { flex: none; display: flex; align-items: center; gap: 14px; }
.gw-hint { font-size: 13px; color: #666; white-space: nowrap; }
.gw-hint b { color: var(--gw-primary-d); font-weight: 500; }
.gw-post {
  height: 38px; line-height: 38px; padding: 0 20px;
  background: var(--gw-primary); border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .2s;
}
.gw-post:hover { background: var(--gw-primary-d); color: #fff; }
.gw-auth { font-size: 14px; color: #4b5563; white-space: nowrap; }
.gw-auth:hover { color: var(--gw-primary-d); }

/* ---------- 首页：搜索区 ---------- */
.gw-search { padding: 96px 0 26px; }
.gw-search-box {
  max-width: 800px; margin: 0 auto; height: 48px;
  display: flex; align-items: center; padding: 0 4px 0 22px;
  background: var(--card); border: 2px solid var(--gw-primary); border-radius: 999px;
  box-shadow: 0 6px 18px rgba(34, 197, 94, .12);
}
.gw-search-box input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  color: #333; font: 15px/1.6 inherit;
}
.gw-search-box input::placeholder { color: #9aa1a9; }
.gw-search-box button {
  flex: none; width: 40px; height: 40px; margin-left: 8px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gw-primary); border: 0; border-radius: 50%; color: #fff;
  transition: background .2s;
}
.gw-search-box button:hover { background: var(--gw-primary-d); }
.gw-search-box button svg { width: 19px; height: 19px; }
.gw-engines {
  max-width: 800px; margin: 16px auto 0;
  display: flex; justify-content: center; gap: 26px; font-size: 15px;
}
.gw-engines a { color: #555; }
.gw-engines a:hover { color: var(--gw-primary-d); }

/* ---------- 首页：可选横幅 / 广告 / 统计 ---------- */
.gw-hero { margin-bottom: 20px; padding: 18px 22px; background: var(--card); border: 1px solid var(--card-bd); border-radius: 16px; }
.gw-hero h1 { font-size: 22px; font-weight: 600; }
.gw-hero p { padding-top: 6px; color: var(--mut); font-size: 14px; }

.ad-img { margin: 0 0 20px; overflow: hidden; line-height: 0; border-radius: 16px; }
.ad-img img { display: block; width: 100%; }
.ad-row { margin: 16px 0; }
.ad-row ul { display: flex; gap: 16px; }
.ad-row li { flex: 1 1 0; overflow: hidden; line-height: 0; }
.ad-row li img { display: block; width: 100%; }
.ad { overflow: hidden; }

.stat-grid { display: flex; margin-bottom: 20px; }
.stat-grid .stat-cell { flex: 1 1 0; background-color: var(--card); border: 1px solid var(--line); border-left: none; padding: 16px 10px; text-align: center; }
.stat-grid .stat-cell:first-child { border-left: 1px solid var(--line); border-radius: 16px 0 0 16px; }
.stat-grid .stat-cell:last-child { border-radius: 0 16px 16px 0; }
.stat-grid .stat-cell .s-num { display: block; color: var(--gw-primary-d); font-size: 24px; font-weight: bold; line-height: 32px; }
.stat-grid .stat-cell .s-txt { display: block; padding-top: 4px; color: var(--mut); font-size: 13px; }
.stat-grid .stat-cell b { display: block; color: var(--gw-primary-d); font-size: 24px; font-weight: bold; line-height: 32px; }
.stat-grid .stat-cell > span { display: block; padding-top: 4px; color: var(--mut); font-size: 13px; }
.stat-grid .stat-cell a.s-num { text-decoration: none; }

/* ---------- 首页：左主区 + 右栏 ---------- */
.gw-layout { display: flex; align-items: flex-start; gap: 24px; padding-bottom: 26px; }
.gw-main {
  flex: 1 1 auto; min-width: 0;
  background: var(--card); border: 1px solid var(--card-bd); border-radius: 16px;
  padding: 22px 22px 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.gw-sec { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px dashed #eef0f2; }
.gw-sec:last-child { padding-bottom: 18px; margin-bottom: 0; border-bottom: none; }
.gw-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.gw-sec-head h4 {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 10px; color: #383838; font-size: 18px; font-weight: 600;
}
.gw-sec-head h4 i {
  position: relative; display: block; width: 18px; height: 18px; flex: none;
  border-radius: 6px; background: #e9f9ef;
}
.gw-sec-head h4 i:after {
  content: ""; position: absolute; left: 5px; top: 5px; right: 5px; bottom: 5px;
  border-radius: 3px; background: var(--gw-primary);
}
.gw-sec-head h4:after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 2px;
  border-radius: 2px; background: var(--gw-primary);
}
.gw-sec-more { display: flex; align-items: center; gap: 2px; padding-bottom: 10px; font-size: 13px; color: #999; }
.gw-sec-more em { font-style: normal; }
.gw-sec-more:hover { color: var(--gw-primary-d); }
.gw-rec-btn {
  height: 32px; line-height: 32px; padding: 0 16px;
  background: var(--gw-primary); border-radius: 8px;
  color: #fff !important; font-size: 13px; font-weight: 500;
}
.gw-rec-btn:hover { background: var(--gw-primary-d); }

.gw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gw-card {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px;
  background: #f8f9fb; border: 1px solid var(--line); border-radius: 10px;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.gw-card:hover {
  background: var(--card); border-color: #bbf7d0;
  box-shadow: 0 6px 16px rgba(34, 197, 94, .1); transform: translateY(-2px);
}
.gw-card .fav { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover; background: #f3f4f6; }
.gw-card .fav-null {
  width: 26px; height: 26px; flex: none; overflow: hidden;
  border-radius: 50%; background: #e9f9ef; color: var(--gw-primary-d);
  font-size: 12px; line-height: 26px; text-align: center;
}
.gw-c-txt { flex: 1; min-width: 0; overflow: hidden; }
.gw-c-txt strong {
  display: block; overflow: hidden; color: #383838;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; text-overflow: ellipsis;
}
.gw-card:hover .gw-c-txt strong { color: var(--gw-primary-d); }
.gw-card.is-red .gw-c-txt strong { color: var(--hot); }
.gw-c-txt p {
  margin-top: 1px; overflow: hidden; color: #999;
  font-size: 11px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis;
}

.gw-wz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.gw-wz li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #4b5563; }
.gw-wz li a:hover { color: var(--gw-primary-d); }

/* ---------- 首页：右侧栏 ---------- */
.gw-aside {
  flex: 0 0 240px; width: 240px;
  background: var(--card); border: 1px solid var(--card-bd); border-radius: 16px;
  padding: 18px 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  position: sticky; top: 75px;
}
.gw-submit {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; background: #fff7ed;
  border: 1px solid #fed7aa; border-radius: 12px;
  transition: box-shadow .2s;
}
.gw-submit:hover { box-shadow: 0 6px 16px rgba(249, 115, 22, .14); }
.gw-submit-ico {
  width: 32px; height: 32px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: #ffedd5; color: #f97316;
}
.gw-submit-ico svg { width: 19px; height: 19px; }
.gw-submit-txt strong { display: block; color: #ea580c; font-size: 15px; font-weight: 600; line-height: 1.3; }
.gw-submit-txt p { color: #b45309; font-size: 12px; line-height: 1.5; }

.gw-aside-sec { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #eef0f2; }
.gw-aside-tit { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: #383838; }
.gw-aside-tit span { position: relative; padding-left: 10px; }
.gw-aside-tit span:before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 2px; background: var(--gw-primary);
}
.gw-aside-tit a { font-size: 12px; font-weight: 400; color: #999; }
.gw-aside-tit a:hover { color: var(--gw-primary-d); }

.gw-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gw-cat {
  display: flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 8px;
  background: #f8f9fb; border: 1px solid var(--line); border-radius: 8px;
  color: #4b5563; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: all .2s;
}
.gw-cat:hover { border-color: var(--gw-primary); color: var(--gw-primary-d); background: #f3fbf6; }

.gw-aside-ad { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #eef0f2; overflow: hidden; border-radius: 10px; line-height: 0; }
.gw-aside-ad img { display: block; width: 100%; }

.gw-hot li { display: flex; align-items: center; gap: 8px; height: 31px; overflow: hidden; font-size: 13px; }
.gw-hot .n {
  flex: none; width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 4px; background: #f1f3f5; color: #6b7280; font-size: 11px;
}
.gw-hot .n.n1 { background: #ef4444; color: #fff; }
.gw-hot .n.n2 { background: #f97316; color: #fff; }
.gw-hot .n.n3 { background: #eab308; color: #fff; }
.gw-hot a { flex: 1; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.gw-hot a:hover { color: var(--gw-primary-d); }

/* 最近来访：图标 + 站名 + 最近一次点击时间 */
.gw-recent li { display: flex; align-items: center; gap: 8px; height: 31px; overflow: hidden; font-size: 13px; }
.gw-recent .fav { width: 18px; height: 18px; flex: none; border-radius: 50%; object-fit: cover; background: #f3f4f6; }
.gw-recent .fav-null {
  width: 18px; height: 18px; flex: none; overflow: hidden;
  border-radius: 50%; background: #e9f9ef; color: var(--gw-primary-d);
  font-size: 11px; line-height: 18px; text-align: center;
}
.gw-recent li a { flex: 1; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.gw-recent li a:hover { color: var(--gw-primary-d); }
.gw-recent .r-time { flex: none; color: #adaeb5; font-size: 12px; }

/* ---------- 页脚 ---------- */
.gw-flinks { margin-top: 20px; padding: 14px 0; background: var(--card); border-top: 1px solid var(--line); font-size: 13px; }
.gw-flinks .gw-wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.gw-flinks-tit { color: var(--txt); font-weight: 600; }
.gw-flinks a { color: var(--mut); }
.gw-flinks a:hover { color: var(--gw-primary-d); }

.gw-foot { margin-top: 20px; padding: 22px 0 26px; background: var(--card); border-top: 1px solid var(--line); text-align: center; }
.gw-flinks + .gw-foot { margin-top: 0; border-top: none; }
.gw-foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 13px; }
.gw-foot-nav a { color: #6b7280; }
.gw-foot-nav a:hover { color: var(--gw-primary-d); }
.gw-foot-copy { margin-top: 8px; font-size: 13px; color: #999; }
.gw-foot-beian { margin-top: 4px; }
.gw-foot-beian a { color: #999; font-size: 12px; }
.gw-foot-tip { margin-top: 6px; font-size: 12px; line-height: 1.8; color: #b5b5b5; }
.gw-foot .ad-foot { padding: 10px 0; }

/* ---------- 内页：左正文 + 右侧栏 ---------- */
.row-model { display: block; }
.left-model { float: left; width: calc(100% - 280px); padding-right: 20px; border-right: 1px solid var(--line); overflow: hidden; }
.left-model a { color: var(--gw-primary-d); }
.left-model a:hover { color: var(--hot); }
.right-model { float: right; width: 250px; padding-left: 20px; overflow: hidden; }

.place { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: #666; }
.place a { color: #666; }
.place a:hover { color: var(--gw-primary-d); }
.place .now { color: var(--txt); }
.place .ico-home {
  display: inline-block; width: 13px; height: 13px; margin-right: 4px; margin-bottom: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1 1 6h2v7h4V9h1v4h4V6h2z' fill='%2322c55e'/%3E%3C/svg%3E") no-repeat 0 0 / 13px 13px;
}

/* 列表条目：130×90 截图 + 右侧文字 */
.excerpts .view { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.excerpts .view:last-child { border-bottom: none; }
.excerpts .v-img { float: left; width: 130px; height: 90px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background-color: var(--card); }
.excerpts .v-img img { display: block; width: 130px; height: 90px; }
.excerpts .v-img .no-shot { display: block; width: 128px; height: 88px; line-height: 88px; color: #c7c6c6; font-size: 14px; text-align: center; }
.no-shot { display: block; color: #c7c6c6; text-align: center; line-height: inherit; }
.d-img .no-shot { display: block; width: 298px; height: 222px; line-height: 222px; font-size: 14px; }
.excerpts .v-txt { float: right; width: calc(100% - 150px); overflow: hidden; }
.excerpts .v-txt h2 { padding-bottom: 7px; font-size: 17px; font-weight: 500; line-height: 26px; overflow: hidden; }
.excerpts .v-txt h2 a { color: var(--txt); }
.excerpts .v-txt h2 a:hover { color: var(--gw-primary-d); }
.excerpts .v-txt p { height: 50px; color: var(--mut); font-size: 14px; line-height: 25px; overflow: hidden; }
.excerpts .v-txt .stat { padding-top: 10px; font-size: 13px; color: #666; }
.excerpts .v-txt .stat a { color: #666; }

/* 分页 */
.pageModel { margin: 20px 0; height: 30px; line-height: 30px; text-align: center; }
.pageModel a, .pageModel span {
  display: inline-block; margin: 0 5px; padding: 0 10px; height: 30px; line-height: 30px;
  background-color: var(--card); border: 1px solid var(--line); border-radius: 8px; color: #666;
}
.pageModel a:hover { background-color: var(--gw-primary); border-color: var(--gw-primary); color: #fff; }
.pageModel span.current { background-color: var(--gw-primary); border-color: var(--gw-primary); color: #fff; }
.pageModel span.disabled { color: var(--mut); }

/* 搜索结果：4 列图文卡片墙 */
.tag-model { width: auto; overflow: hidden; }
.tag-model a { color: var(--gw-primary-d); }
.tag-model a:hover { color: var(--hot); }
.tag-model .place { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: #666; }
.tag-model .place a { color: #666; }
.tag-model .place a:hover { color: var(--gw-primary-d); }
.tag-model .excerpts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tag-model .excerpts .view {
  width: auto; height: 338px; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background-color: var(--card); overflow: hidden;
}
.tag-model .excerpts .view:hover { border-color: #86efac; }
.tag-model .excerpts .view .v-img { float: none; width: 100%; height: 205px; padding: 5px; border: none; }
.tag-model .excerpts .view .v-img a { display: block; }
.tag-model .excerpts .view .v-img img { display: block; width: 100%; height: 195px; object-fit: cover; }
.tag-model .excerpts .view .v-img .no-shot { width: 100%; height: 195px; line-height: 195px; }
.tag-model .excerpts .view .v-con { float: none; width: auto; overflow: hidden; }
.tag-model .excerpts .view .v-con h2,
.tag-model .excerpts .view .v-con p,
.tag-model .excerpts .view .v-con .stat { padding: 0 10px; }
.tag-model .excerpts .view .v-con h2 { height: 40px; line-height: 40px; font-size: 16px; font-weight: 500; padding-bottom: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-model .excerpts .view .v-con h2 a { color: var(--txt); }
.tag-model .excerpts .view .v-con p { height: 46px; line-height: 23px; margin-bottom: 10px; font-size: 14px; color: var(--mut); overflow: hidden; }
.tag-model .excerpts .view .v-con .stat { height: 35px; line-height: 35px; background-color: #f6f8fa; border-top: 1px solid var(--line-soft); color: #b5b5b5; font-size: 12px; padding-top: 0; }
.tag-model .excerpts .view .v-con .stat a { color: #b5b5b5; }

/* 分类 chips 横排 */
.chips-row { margin-top: 5px; }
.chips-row li { float: left; margin: 0 10px 10px 0; }
.chips-row li a {
  display: block; height: 32px; line-height: 30px; padding: 0 16px;
  background-color: var(--soft); border: 1px solid var(--line); border-radius: 8px; color: var(--txt);
}
.chips-row li a:hover { border-color: var(--gw-primary); color: var(--gw-primary-d); }

/* ---------- 右侧栏 ---------- */
.side-box { margin-bottom: 18px; overflow: hidden; }
.side-box .s-tit {
  position: relative; padding: 0 0 10px 11px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; text-align: left;
}
.side-box .s-tit:before {
  content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 14px;
  border-radius: 2px; background-color: var(--gw-primary);
}
.side-box .s-tit a { color: var(--txt); }
.side-box .s-body { padding-bottom: 10px; overflow: hidden; }

.side-box ul.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.side-box ul.chips li { height: 30px; margin: 0; }
.side-box ul.chips li a {
  display: block; height: 30px; line-height: 30px; padding: 0 6px;
  background-color: var(--soft); border: 1px solid var(--line); border-radius: 8px;
  text-align: center; color: var(--txt); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.side-box ul.chips li a:hover,
.side-box ul.chips li a.hover { background-color: #eefbf3; border-color: var(--gw-primary); color: var(--gw-primary-d); font-weight: 500; }

.side-box ul.rank { padding-bottom: 10px; }
.side-box ul.rank li { padding: 2px 0; height: 30px; line-height: 30px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-box ul.rank li span { float: left; display: block; overflow: hidden; }
.side-box ul.rank li .r-no { width: 22px; height: 22px; margin: 4px 8px 0 0; line-height: 22px; border-radius: 4px; background-color: #f1f3f5; color: var(--txt); text-align: center; font-size: 12px; }
.side-box ul.rank li .r-no.n1 { background-color: #ef4444; color: #fff; }
.side-box ul.rank li .r-no.n2 { background-color: #f97316; color: #fff; }
.side-box ul.rank li .r-no.n3 { background-color: #eab308; color: #fff; }
.side-box ul.rank li .r-name { width: 145px; }
.side-box ul.rank li .r-name a { color: var(--txt); }
.side-box ul.rank li .r-name a:hover { color: var(--gw-primary-d); }
.side-box ul.rank li .r-num { float: right; color: var(--mut); font-size: 12px; }
.side-box ul.rank.new li .r-no.n1 { background-color: var(--gw-primary); color: #fff; }
.side-box ul.rank.new li .r-no.n2 { background-color: #4ade80; color: #fff; }
.side-box ul.rank.new li .r-no.n3 { background-color: #86efac; color: #fff; }

.side-box ul.vnav li { height: 34px; line-height: 34px; }
.side-box ul.vnav li a { display: block; height: 34px; line-height: 34px; padding: 0 12px; border-radius: 8px; color: var(--txt); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-box ul.vnav li a:hover,
.side-box ul.vnav li a.active { background-color: #eefbf3; color: var(--gw-primary-d); font-weight: 600; }

/* ---------- 站点详情 ---------- */
.detail-top { overflow: hidden; }
.detail-top .d-img { float: left; width: 300px; height: 224px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.detail-top .d-img img { display: block; width: 300px; height: 224px; }
.detail-top .d-txt { float: right; width: calc(100% - 320px); overflow: hidden; }
.detail-top .d-txt h1 { font-size: 20px; font-weight: 600; line-height: 37px; }
.detail-top .d-txt h1 a { color: var(--txt); }
.detail-top .d-txt h1 a:hover { color: var(--gw-primary-d); }
.detail-top .d-txt p { font-size: 15px; line-height: 37px; overflow: hidden; }
.detail-top .d-txt p .url { display: inline-block; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.detail-top .d-txt .d-ico { display: inline-block; width: 14px; height: 14px; margin-right: 6px; margin-bottom: -2px; background-repeat: no-repeat; background-size: 14px 14px; }
.detail-top .d-txt .i-url { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='5.6' fill='none' stroke='%23888' stroke-width='1.2'/%3E%3Cpath d='M1.4 7h11.2M7 1.4c2.2 2.2 2.2 9 0 11.2M7 1.4C4.8 3.6 4.8 10.4 7 12.6' fill='none' stroke='%23888' stroke-width='1.2'/%3E%3C/svg%3E"); }
.detail-top .d-txt .i-eye { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7s2.3-4.2 6-4.2S13 7 13 7s-2.3 4.2-6 4.2S1 7 1 7z' fill='none' stroke='%23888' stroke-width='1.2'/%3E%3Ccircle cx='7' cy='7' r='1.9' fill='%23888'/%3E%3C/svg%3E"); }
.detail-top .d-txt .i-out { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 11.5 11.5 2.5M11.5 2.5H6M11.5 2.5v5.5' fill='none' stroke='%23888' stroke-width='1.3'/%3E%3C/svg%3E"); }
.detail-top .d-txt .i-cat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.2 3h4.2l1.2 1.6h6.2V12H1.2z' fill='none' stroke='%23888' stroke-width='1.2'/%3E%3C/svg%3E"); }
.detail-top .d-txt .i-time { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='1.5' y='2.6' width='11' height='10.2' fill='none' stroke='%23888' stroke-width='1.2'/%3E%3Cpath d='M1.5 5.6h11M4.5 1.2v2.8M9.5 1.2v2.8' fill='none' stroke='%23888' stroke-width='1.2'/%3E%3C/svg%3E"); }
.detail-top .d-txt .go-btn {
  display: block; width: 120px; height: 30px; margin-top: 3px; border-radius: 15px;
  background-color: var(--gw-primary); color: #fff !important; text-align: center;
}
.detail-top .d-txt .num { color: var(--txt); }
.detail-top .d-txt .go-btn:hover { background-color: var(--gw-primary-d); }
.detail-top .d-txt .label { display: inline-block; margin-left: 6px; padding: 0 8px; height: 20px; line-height: 20px; border-radius: 10px; background-color: #fff2e8; color: var(--hot); font-size: 12px; vertical-align: 2px; }

.btn-group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.btn-group a, .btn-group span {
  display: inline-block; margin: 0 1.5%; padding: 0 20px; height: 35px; line-height: 35px;
  border-radius: 10px; font-size: 15px; text-align: center; overflow: hidden; transition: all .25s;
}
.btn-group .btn-fav { width: 170px; background-color: #f7f9fb; border: 1px solid #77c17a; color: #77c17a; }
.btn-group .btn-go { width: 170px; background-color: #f7f9fb; border: 1px solid var(--gw-primary); color: var(--gw-primary-d); }
.btn-group .btn-warn { background-color: #f7f9fb; border: 1px solid #b7b6b6; color: #adaaaa; }
.btn-group a:hover { background-color: var(--gw-primary); border-color: var(--gw-primary); color: #fff; }

/* 详情信息块 */
.m1 { margin-top: 20px; overflow: hidden; }
.m1 .m-tit {
  position: relative; height: auto; line-height: 24px; padding: 0 0 10px 11px;
  background: none; border: none; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
}
.m1 .m-tit::before { content: ""; position: absolute; left: 0; top: 5px; width: 3px; height: 14px; border-radius: 2px; background-color: var(--gw-primary); }
.m1 .m-body { padding: 14px 0 0; font-size: 15px; line-height: 32px; }
.m1 .m-body p { margin-bottom: 10px; }
.m1 .m-links { padding: 10px 15px 15px; font-size: 15px; }
.m1 .m-links ul li { float: left; height: 30px; line-height: 30px; margin-right: 10px; margin-top: 10px; }
.m1 .m-links ul li a { display: block; height: 30px; line-height: 30px; padding: 0 10px; border: 1px solid #cecece; border-radius: 8px; color: #b6b6b6; font-size: 13px; }
.m1 .m-links ul li a:hover { border-color: var(--gw-primary); color: var(--gw-primary-d); }

.m1 .m-table { background-color: var(--line); }
.m1 .m-table th, .m1 .m-table .th { background-color: var(--soft); text-align: left; padding-left: 12px; color: var(--mut); font-size: 13px; font-weight: 600; }
.m1 .m-table td { background-color: var(--card); text-align: left; padding: 5px 10px 5px 12px; }
.m1 .m-table th, .m1 .m-table td { font-size: 14px; line-height: 26px; }
.m1 .m-table .t-left { text-align: left; padding-left: 12px; }
.m1 .m-table td a { color: var(--txt); }
.m1 .m-table td a:hover { color: var(--gw-primary-d); }
.m1 .m-table .c-dom { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m1 .m-table .c-num { text-align: center; }
.m1 .m-table tr + tr td { border-top: 1px solid var(--line-soft); }

/* 同类站点 */
.relevant { margin-top: 24px; overflow: hidden; }
.relevant .r-tit {
  position: relative; height: auto; line-height: 24px; padding: 0 0 10px 11px;
  background: none; border: none; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; text-align: left;
}
.relevant .r-tit:before { content: ""; position: absolute; left: 0; top: 5px; width: 3px; height: 14px; border-radius: 2px; background-color: var(--gw-primary); }
.relevant .r-body { margin: 14px 0 0; overflow: hidden; }
.relevant .r-body ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.relevant .r-body ul li { height: auto; padding: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.relevant .r-body ul li:hover { border-color: var(--gw-primary); }
.relevant .r-body ul li a { display: block; text-align: center; color: var(--txt); }
.relevant .r-body ul li a img { width: 100%; height: 145px; object-fit: cover; display: block; }
.relevant .r-body ul li a .no-shot { display: block; height: 145px; line-height: 145px; color: #c7c6c6; }
.relevant .r-body ul li a span { display: block; height: 40px; line-height: 40px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.updown { margin-top: 20px; height: 40px; line-height: 40px; padding: 0 15px; overflow: hidden; background-color: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.updown div { width: 48%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.updown .after { float: right; text-align: right; }

.info-tit { height: 48px; line-height: 48px; border: 1px solid var(--line); border-bottom: none; border-radius: 16px 16px 0 0; font-size: 18px; font-weight: 600; text-align: center; background-color: var(--card); }
.info-body { padding: 20px; background-color: var(--card); border: 1px solid var(--line); border-top: none; border-radius: 0 0 16px 16px; line-height: 1.9; font-size: 15px; }
.info-body p { margin: 0 0 10px; }
.info-body .post-meta { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dotted #d9dee5; color: var(--mut); font-size: 14px; }
.info-body img { max-width: 100%; height: auto; }
.info-body h2, .info-body h3 { margin: 16px 0 8px; font-size: 18px; }
.info-body ul { list-style: disc; padding-left: 24px; }

/* ---------- 通用控件（登录 / 提交 / 用户中心 / 榜单）---------- */
.panel { background-color: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 15px; overflow: hidden; }
.panel-default { background-color: var(--card); border: 1px solid var(--line); }
.panel-heading { height: 45px; line-height: 45px; padding: 0 20px; background-color: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.panel-heading .panel-title { float: left; font-size: 15px; font-weight: 600; color: var(--txt); }
.panel-heading .panel-title-plain { font-size: 16px; }
.panel-heading .hd-right { float: right; font-size: 13px; color: var(--mut); }
.panel-heading .hd-right a { color: var(--gw-primary-d); }
.panel-body { padding: 20px; font-size: 14px; line-height: 1.8; color: var(--txt); }
.panel-body-flat, .panel-body.flat { padding: 0; }
.panel-body.article-text { font-size: 15px; line-height: 1.9; }
.panel-body.side-note { font-size: 14px; line-height: 26px; color: #666; }
.panel-body.side-note p { margin-bottom: 8px; }
.side-note-op { padding-top: 10px; }
.panel-404 { margin: 40px auto; max-width: 720px; text-align: center; }
.panel-404 h2 { padding: 2px 0 4px; font-size: 20px; font-weight: 600; color: var(--txt); }

.form-group { margin-bottom: 15px; overflow: hidden; }
.form .form-group:last-of-type { margin-bottom: 0; }
.form > .btn-block, .form > .btn-group { margin-top: 18px; }
.control-label { display: block; width: auto; height: auto; line-height: 1.6; padding: 0 0 6px; text-align: left; color: #666; }
.control-label .req { color: #e64545; margin-right: 3px; }
.form-bd { margin-left: 120px; }
.form-control { width: 100%; height: 34px; line-height: 34px; padding: 0 12px; background-color: var(--card); border: 1px solid #d9d9d9; border-radius: 10px; color: var(--txt); font: 14px/1.6 inherit; }
textarea.form-control { height: auto; padding: 8px 12px; }
.form-control:focus { border-color: var(--gw-primary); outline: none; }
.help-block { padding-top: 6px; color: var(--mut); font-size: 13px; line-height: 20px; }
.form-tip { padding: 0 0 15px; color: var(--mut); font-size: 13px; }

.btn { display: inline-block; height: 34px; line-height: 34px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; text-align: center; vertical-align: middle; }
.btn-primary { background-color: var(--gw-primary); border-color: var(--gw-primary); color: #fff; }
.btn-primary:hover { background-color: var(--gw-primary-d); border-color: var(--gw-primary-d); color: #fff; }
.btn-outline { background-color: var(--card); border-color: var(--gw-primary); color: var(--gw-primary-d); }
.btn-outline:hover { background-color: var(--gw-primary); color: #fff; }
.btn-default { background-color: var(--card); border-color: #d9d9d9; color: #666; }
.btn-default:hover { border-color: var(--gw-primary); color: var(--gw-primary-d); }
.btn-sm { height: 28px; line-height: 26px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 40px; line-height: 38px; padding: 0 26px; font-size: 15px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { background-color: #f5f5f5; border-color: #d9d9d9; color: #b5b5b5; }

.alert { padding: 12px 18px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.alert-success { background-color: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
.alert-danger { background-color: #fef0f0; border-color: #fbc4c4; color: #e64545; }
.alert-info { background-color: #f2fbf5; border-color: #c9f0d8; color: #15803d; }

.table { width: 100%; background-color: var(--card); }
.table th, .table td { padding: 10px 12px; font-size: 14px; line-height: 22px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background-color: var(--soft); font-weight: 500; color: #666; }
.table-info th { width: 110px; background-color: var(--soft); }
.table-striped tbody tr:nth-child(2n) { background-color: #fbfcfd; }
.table a { color: var(--gw-primary-d); }
.table-responsive { overflow-x: auto; }
.col-w90 { width: 90px; } .col-w100 { width: 100px; } .col-w110 { width: 110px; }
.col-w120 { width: 120px; } .col-w150 { width: 170px; } .col-w220 { width: 220px; } .col-w260 { width: 260px; }

.item-list li { padding: 10px 0; border-bottom: 1px dotted #d9dee5; overflow: hidden; line-height: 24px; }
.item-list li:last-child { border-bottom: none; }
.item-list li .li-idx { float: left; width: 26px; height: 24px; line-height: 24px; text-align: center; background-color: #f1f3f5; color: var(--txt); font-size: 13px; border-radius: 4px; margin-right: 8px; }
.item-list li .li-idx.li-top { background-color: var(--gw-primary); color: #fff; }
.item-list li .li-title { display: block; overflow: hidden; color: var(--txt); }
.item-list li .li-title a { color: var(--txt); }
.item-list li .li-title a:hover { color: var(--gw-primary-d); }
.item-list li .row-desc { color: var(--mut); font-size: 13px; line-height: 22px; overflow: hidden; }

.nav-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.nav-tabs li { margin-bottom: -1px; }
.nav-tabs li a { display: block; height: 38px; line-height: 38px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px 10px 0 0; color: var(--link); }
.nav-tabs li a:hover { color: var(--gw-primary-d); }
.nav-tabs li.active a { background-color: var(--card); border-color: var(--line); border-bottom-color: #fff; color: var(--gw-primary-d); font-weight: 600; }
.nav-tabs.v { display: block; border-bottom: none; }
.nav-tabs.v li { margin-bottom: 6px; }
.nav-tabs.v li a { border-radius: 8px; }
.nav-tabs.v li.active a { border-color: var(--gw-primary); border-bottom-color: var(--gw-primary); color: var(--gw-primary-d); }

.well { padding: 15px 18px; margin-top: 15px; background-color: var(--soft); border: 1px solid var(--line); border-radius: 12px; line-height: 26px; }
.well .well-title { padding-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--txt); }

.breadcrumb { padding: 12px 0; color: var(--mut); font-size: 14px; }
.breadcrumb li { display: inline-block; }
.breadcrumb li:after { content: " / "; color: #c7c6c6; padding: 0 6px; }
.breadcrumb li:last-child:after, .breadcrumb li.active:after { display: none; }
.breadcrumb li.active, .breadcrumb li a { color: var(--mut); }
.breadcrumb li.active { color: var(--txt); }

.progress { height: 8px; background-color: #eef0f2; border-radius: 4px; overflow: hidden; }
.progress .progress-bar { display: block; height: 8px; border-radius: 4px; background-color: var(--gw-primary); }

.label { display: inline-block; padding: 0 6px; height: 20px; line-height: 20px; border-radius: 3px; font-size: 12px; }
.label-success { background-color: #eefaf0; color: #52a93c; }
.label-warning { background-color: #fff2e8; color: var(--hot); }
.label-danger { background-color: #fef0f0; color: #e64545; }
.label-muted { background-color: #f2f2f2; color: var(--mut); }

.cols { display: block; }
.cols:after, .user-layout:after { content: ""; display: block; clear: both; }
.col-main { width: calc(100% - 285px); float: left; }
.col-side { width: 255px; float: right; }
.user-layout { display: block; }
.user-side { float: left; width: 200px; }
.user-main { float: right; width: calc(100% - 220px); }
.user-card { text-align: center; }
.user-card .avatar { display: inline-block; width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background-color: var(--gw-primary); color: #fff; font-size: 24px; }
.user-card .user-name { padding-top: 8px; font-size: 16px; font-weight: 600; }
.user-card .user-sub { color: var(--mut); font-size: 13px; }
.auth-panel { width: 420px; margin: 24px auto; }
.auth-site { text-align: center; padding-top: 0; padding-bottom: 16px; }
.auth-site a { color: var(--gw-primary-d); font-size: 22px; font-weight: bold; }
.auth-foot { padding-top: 12px; text-align: center; color: var(--mut); font-size: 13px; }
.list-group .list-group-item { padding: 10px 15px; border-bottom: 1px dotted #d9dee5; overflow: hidden; }
.list-group .list-group-item:last-child { border-bottom: none; }
.rule-list li { padding: 6px 0; line-height: 26px; }

.code-404 { font-size: 90px; font-weight: bold; color: var(--gw-primary); line-height: 1.1; text-align: center; }
.tip-404 { padding: 10px 0 20px; text-align: center; color: var(--mut); font-size: 15px; }
.ops-404 { text-align: center; }
.ops-404 .btn { margin: 0 5px; }

/* ---------- 全部导航：小标题 + 分类目录行 ---------- */
.m-tit-row {
  position: relative; padding: 0 0 10px 11px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600;
}
.m-tit-row:before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 14px; border-radius: 2px; background-color: var(--gw-primary); }
.m-tit-row .more { position: absolute; right: 0; bottom: 12px; font-size: 13px; font-weight: normal; color: var(--mut); }
.m-tit-row .more:hover { color: var(--gw-primary-d); }

.cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.cat-row:last-child { border-bottom: none; padding-bottom: 0; }
.cat-row dt { flex: none; width: 84px; font-size: 15px; font-weight: 600; }
.cat-row dt a { color: var(--txt); }
.cat-row dt a:hover { color: var(--gw-primary-d); }
.cat-row dd { flex: 0 0 160px; width: 160px; margin: 0; }
.cat-row dd a {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  background-color: var(--soft); border: 1px solid var(--line); border-radius: 8px;
  color: var(--txt); font-size: 14px; white-space: nowrap;
}
.cat-row dd a .cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cat-row dd a:hover { background-color: #eefbf3; border-color: var(--gw-primary); color: var(--gw-primary-d); }
.cat-row .fav { width: 18px; height: 18px; flex: none; border-radius: 50%; object-fit: cover; background-color: #eef0f2; }
.cat-row .fav-null { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background-color: #dcfce7; color: var(--gw-primary-d); font-size: 11px; font-weight: 600; }
.cat-row dd.more { flex: 0 0 auto; width: auto; }
.cat-row dd.more a { height: auto; padding: 0; border: none; background: none; color: var(--mut); font-size: 13px; }
.cat-row dd.more a:hover { background: none; color: var(--gw-primary-d); }

/* ---------- 兼容视图沿用的公共类名 ---------- */
.breadcrumb .crumb-right { float: right; color: var(--mut); }
.nav-tabs-page { flex-wrap: wrap; }
.nav-tabs-vertical { display: block; border-bottom: none; }
.nav-tabs-vertical li { margin-bottom: 6px; }
.nav-tabs-vertical li a { border-radius: 8px; }
.nav-tabs-vertical li.active a { border-color: var(--gw-primary); border-bottom-color: var(--gw-primary); color: var(--gw-primary-d); }
.article-body { font-size: 15px; line-height: 1.9; }
.article-body img { max-width: 100%; height: auto; }
.article-body p { margin: 0 0 10px; }
.article-body h2, .article-body h3 { margin: 16px 0 8px; font-size: 17px; }
.article-body ul { list-style: disc; padding-left: 24px; }
.excerpts .v-txt.full { float: none; width: 100%; }
.table-bordered, .table-bordered th, .table-bordered td { border: 1px solid var(--line); }
.table-contact td { line-height: 30px; }
.well-from { margin-top: 20px; }
.stat-grid-3 .stat-cell, .stat-grid-4 .stat-cell, .stat-grid-5 .stat-cell { flex: 1 1 0; }
.site-row { padding: 12px 0; border-bottom: 1px dotted #d9dee5; overflow: hidden; }
.site-row:last-child { border-bottom: none; }
.site-row .row-body { margin-left: 62px; overflow: hidden; }
.site-row .row-name { font-size: 15px; line-height: 24px; overflow: hidden; }
.site-row .row-name a { color: var(--txt); }
.site-row .row-name a:hover { color: var(--gw-primary-d); }
.site-row .row-desc { color: var(--mut); font-size: 13px; line-height: 22px; }
.site-row .row-op { float: right; line-height: 24px; }
.site-row-slim { padding: 8px 0; }
.form-foot { margin-top: 5px; }
.dots-bg { position: fixed; left: 0; top: 0; z-index: -1; width: 100%; height: 100%; }

/* ---------- 宽屏与窄屏 ---------- */
@media (min-width: 1500px) {
  .gw-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  body { min-width: 0; }
  .gw-hint { display: none; }
  .gw-nav { gap: 16px; }
  .gw-layout { flex-direction: column; }
  .gw-aside { width: 100%; flex: none; position: static; display: block; }
  .gw-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gw-wz { grid-template-columns: 1fr; }
  .left-model, .right-model, .col-main, .col-side, .user-main, .user-side { float: none; width: 100%; border-right: none; padding-right: 0; }
  .right-model { margin-top: 15px; }
  .excerpts .v-img { width: 120px; height: 90px; }
  .excerpts .v-img img { width: 120px; height: 90px; }
  .excerpts .v-txt { float: none; width: 100%; }
  .tag-model .excerpts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-model .excerpts .view { width: auto; height: auto; margin: 0; }
  .tag-model .excerpts .view .v-img { height: auto; padding: 5px; }
  .tag-model .excerpts .view .v-img img { width: 100%; height: auto; }
  .tag-model .excerpts .view .v-con p { height: auto; }
  .detail-top .d-img { float: none; width: 100%; max-width: 300px; margin: 0 auto; }
  .detail-top .d-txt { float: none; width: 100%; }
  .relevant .r-body ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { flex-wrap: wrap; }
  .stat-grid .stat-cell { flex: 1 1 45%; border-left: 1px solid var(--line); }
  .auth-panel { width: 100%; }
}
@media (max-width: 760px) {
  .gw-head-in { gap: 12px; }
  .gw-brand b { display: none; }
  .gw-nav { gap: 14px; overflow-x: auto; }
  .gw-post { padding: 0 14px; }
  .gw-search { padding-top: 40px; }
  .gw-engines { flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
  .gw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-model .excerpts { grid-template-columns: 1fr; }
}

/* ---------- 内页版式（绿白极简：实线分割 + 宽松留白，与密集风区分）---------- */
.place { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--mut); }
.left-model .place strong { color: var(--txt); }

/* 文章/站点列表：每条之间一条实线，标题、摘要、数据分三层 */
.excerpts .view { padding: 22px 0 24px; margin: 0; border-bottom: 1px solid var(--line); }
.excerpts .view:first-child { padding-top: 4px; }
.excerpts .view:last-child { border-bottom: none; padding-bottom: 6px; }
.excerpts .v-txt h2 { padding-bottom: 10px; font-size: 17.5px; font-weight: 600; line-height: 28px; }
.excerpts .v-txt h2 a { color: var(--txt); }
.excerpts .v-txt h2 a:hover { color: var(--gw-primary-d); }
.excerpts .v-txt p { height: auto; max-height: 52px; margin-bottom: 12px; color: var(--mut); line-height: 26px; }
.excerpts .v-txt .stat { padding-top: 0; font-size: 12.5px; color: var(--mut); }
.excerpts .v-img { border-radius: 12px; }
.excerpts .v-txt .label { margin-left: 8px; vertical-align: 3px; }

/* 文章详情：标题 / 元信息 / 正文 / 尾部逐段实线切开 */
.info-tit {
  height: auto; line-height: 1.55; padding: 8px 6px 18px;
  background: none; border: none; border-radius: 0; border-bottom: 1px solid var(--line);
  font-size: 23px; font-weight: 600; text-align: center;
}
.info-body { padding: 0 6px; background: none; border: none; border-radius: 0; font-size: 15px; line-height: 1.95; }
.info-body .post-meta {
  margin: 0 -6px 22px; padding: 12px 8px;
  background: var(--soft); border-bottom: 1px solid var(--line);
  color: var(--mut); font-size: 13px; text-align: center;
}
.info-body p { margin: 0 0 16px; }
.info-body h2, .info-body h3 { position: relative; margin: 30px 0 14px; padding-left: 12px; font-size: 18px; line-height: 1.5; }
.info-body h2::before, .info-body h3::before { content: ""; position: absolute; left: 0; top: 4px; width: 4px; height: 18px; border-radius: 2px; background: var(--gw-primary); }
.info-body ul, .info-body ol { margin: 0 0 16px; }
.info-body li { margin-bottom: 6px; }
.info-body img { max-width: 100%; height: auto; margin: 8px auto 18px; border-radius: 10px; }
.info-body blockquote { margin: 18px 0; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--gw-primary); border-radius: 0 8px 8px 0; color: var(--link); }
.info-body .well-from { margin: 22px 0 0; border-left: 3px solid var(--gw-primary); background: var(--soft); }
.info-body .dtr-art-acts { padding-top: 16px; border-top: 1px solid var(--line); }
.info-body .dtr-art-pn { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.updown { margin-top: 20px; padding: 0 16px; }
.relevant { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.relevant .r-body { margin-top: 16px; }

/* 侧栏：条目之间留缝，不再挤成一团 */
.side-box { margin-bottom: 22px; }
.side-box .s-tit { padding-bottom: 12px; margin-bottom: 14px; font-size: 15.5px; }
.side-box ul.rank li { height: auto; line-height: 30px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.side-box ul.rank li:last-child { border-bottom: none; }
.side-box ul.chips li a { height: 32px; line-height: 32px; }
.side-box ul.rank li .r-name { width: 132px; }

/* 站点详情 / 分类 / 榜单：块与块之间实线隔开 */
.m1 .m-tit, .relevant .r-tit { padding-bottom: 12px; }
.btn-group { margin-top: 24px; padding-top: 22px; }

/* ---------- 核心文章块跟随本模板卡片版式 ---------- */
:root{
  --dtr-art-surface:var(--card); --dtr-art-card-bd:1px solid var(--card-bd); --dtr-art-line:var(--line);
  --dtr-art-line-soft:#f0f2f4; --dtr-art-radius:16px; --dtr-art-shadow:0 1px 3px rgba(0,0,0,.04);
  --dtr-art-gap:0 0 16px; --dtr-art-ink:var(--txt); --dtr-art-muted:var(--mut); --dtr-art-muted-o:1;
  --dtr-art-soft:#f6f8fa; --dtr-art-accent:var(--gw-primary-d); --dtr-art-accent-ink:#fff;
  --dtr-art-hd-pad:14px 18px; --dtr-art-hd-fs:15px; --dtr-art-hd-fw:600; --dtr-art-hd-jc:flex-start;
  --dtr-art-hd-bg:transparent; --dtr-art-hd-bd-c:#f0f2f4; --dtr-art-hd-bar:""; --dtr-art-hd-bar-w:3px; --dtr-art-hd-bar-h:14px; --dtr-art-hd-bar-c:var(--gw-primary);
  --dtr-art-in-pad:14px 18px;
  --dtr-art-row-bd:1px dashed #f0f2f4; --dtr-art-row-pad:8px 0; --dtr-art-row-fs:14px;
  --dtr-art-num-bg:#f1f3f5; --dtr-art-num-c:#6b7280; --dtr-art-num-r:4px;
  --dtr-art-num-o:1; --dtr-art-num-fs:11px; --dtr-art-num-w:18px; --dtr-art-num-lh:18px;
}
body .dtr-art-num li:nth-child(1) .i{background:#ef4444;color:#fff}
body .dtr-art-num li:nth-child(2) .i{background:#f97316;color:#fff}
body .dtr-art-num li:nth-child(3) .i{background:#eab308;color:#fff}

/* ---------- 夜间模式：头部月亮按钮切换，选择记在 localStorage ---------- */
.gw-theme {
  flex: none; width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border: 0; border-radius: 10px; color: #666;
  transition: background .2s, color .2s;
}
.gw-theme:hover { background: #e5e7eb; color: var(--gw-primary-d); }
.gw-theme svg { width: 18px; height: 18px; display: block; }
.gw-theme .ico-moon { display: none; }
.gw-theme .ico-sun { display: block; }

html.gw-dark { color-scheme: dark; }
html.gw-dark {
  --bg: #121212;
  --line: #333;
  --line-soft: #2a2a2a;
  --soft: #2a2a2a;
  --txt: #e4e4e7;
  --mut: #a1a1aa;
  --link: #a1a1aa;
  --card: #1e1e1e;
  --card-bd: #333;
  --head-bg: rgba(26, 26, 26, .86);
  --head-bd: #333;
  /* 核心文章块变量跟随夜间色板 */
  --dtr-art-line-soft: #2a2a2a;
  --dtr-art-shadow: none;
  --dtr-art-soft: #2a2a2a;
  --dtr-art-hd-bd-c: #2a2a2a;
  --dtr-art-row-bd: 1px dashed #2a2a2a;
  --dtr-art-num-bg: #333;
  --dtr-art-num-c: #a1a1aa;
}
html.gw-dark .gw-brand, html.gw-dark .gw-brand b { color: var(--txt); }
html.gw-dark .gw-nav a { color: #a1a1aa; }
html.gw-dark .gw-nav a:hover, html.gw-dark .gw-nav a.on { color: #4ade80; }
html.gw-dark .gw-hint { color: #8b8b93; }
html.gw-dark .gw-hint b { color: #4ade80; }
html.gw-dark .gw-auth { color: #a1a1aa; }
html.gw-dark .gw-theme { background: #333; color: #e5e7eb; }
html.gw-dark .gw-theme:hover { background: #444; color: #fbbf24; }
html.gw-dark .gw-theme .ico-sun { display: none; }
html.gw-dark .gw-theme .ico-moon { display: block; }

html.gw-dark .gw-search-box { box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
html.gw-dark .gw-search-box input { color: var(--txt); }
html.gw-dark .gw-search-box input::placeholder { color: #6b7280; }
html.gw-dark .gw-engines a { color: #a1a1aa; }
html.gw-dark .gw-engines a:hover { color: #4ade80; }

html.gw-dark .gw-main, html.gw-dark .gw-aside, html.gw-dark .gw-hero { box-shadow: none; }
html.gw-dark .gw-sec { border-bottom-color: #2a2a2a; }
html.gw-dark .gw-sec-head h4 { color: var(--txt); }
html.gw-dark .gw-sec-head h4 i { background: rgba(34, 197, 94, .16); }
html.gw-dark .gw-sec-more { color: #8b8b93; }
html.gw-dark .gw-card { background: #262626; border-color: #333; }
html.gw-dark .gw-card:hover { background: #2e2e2e; border-color: #22c55e; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
html.gw-dark .gw-c-txt strong { color: var(--txt); }
html.gw-dark .gw-c-txt p { color: #8b8b93; }
html.gw-dark .gw-card .fav { background: #333; }
html.gw-dark .gw-card .fav-null { background: rgba(34, 197, 94, .16); color: #4ade80; }
html.gw-dark .gw-wz li a { color: #c3c3cb; }
html.gw-dark .gw-wz li a:hover { color: #4ade80; }

html.gw-dark .gw-aside { border-color: var(--card-bd); }
html.gw-dark .gw-submit { background: #2c2117; border-color: #513a1f; }
html.gw-dark .gw-submit-ico { background: #3a2a16; }
html.gw-dark .gw-submit-txt strong { color: #fb923c; }
html.gw-dark .gw-submit-txt p { color: #d6a35c; }
html.gw-dark .gw-aside-sec { border-top-color: #2a2a2a; }
html.gw-dark .gw-aside-tit { color: var(--txt); }
html.gw-dark .gw-aside-tit a { color: #8b8b93; }
html.gw-dark .gw-cat { background: #262626; border-color: #333; color: #c3c3cb; }
html.gw-dark .gw-cat:hover { background: rgba(34, 197, 94, .12); border-color: #22c55e; color: #4ade80; }
html.gw-dark .gw-hot .n { background: #333; color: #a1a1aa; }
html.gw-dark .gw-hot a { color: #c3c3cb; }
html.gw-dark .gw-hot a:hover { color: #4ade80; }
html.gw-dark .gw-recent li a { color: #c3c3cb; }
html.gw-dark .gw-recent li a:hover { color: #4ade80; }
html.gw-dark .gw-recent .r-time { color: #7c7c85; }
html.gw-dark .gw-recent .fav { background: #333; }
html.gw-dark .gw-recent .fav-null { background: rgba(34, 197, 94, .16); color: #4ade80; }

html.gw-dark .gw-flinks, html.gw-dark .gw-foot { box-shadow: none; }
html.gw-dark .gw-foot-nav a { color: #a1a1aa; }
html.gw-dark .gw-foot-copy, html.gw-dark .gw-foot-beian a { color: #8b8b93; }
html.gw-dark .gw-foot-tip { color: #6b7280; }

html.gw-dark .place, html.gw-dark .place a,
html.gw-dark .tag-model .place, html.gw-dark .tag-model .place a,
html.gw-dark .excerpts .v-txt .stat, html.gw-dark .excerpts .v-txt .stat a { color: #a1a1aa; }
html.gw-dark .place .now { color: var(--txt); }
html.gw-dark .pageModel a, html.gw-dark .pageModel span { background-color: #262626; border-color: #333; color: #c3c3cb; }
html.gw-dark .tag-model .excerpts .view { background-color: var(--card); border-color: #333; }
html.gw-dark .tag-model .excerpts .view .v-con .stat { background-color: #262626; border-top-color: #333; color: #8b8b93; }
html.gw-dark .tag-model .excerpts .view .v-con .stat a { color: #8b8b93; }
html.gw-dark .no-shot { color: #6b7280; }
html.gw-dark .side-box ul.chips li a:hover,
html.gw-dark .side-box ul.chips li a.hover,
html.gw-dark .side-box ul.vnav li a:hover,
html.gw-dark .side-box ul.vnav li a.active { background-color: rgba(34, 197, 94, .12); color: #4ade80; }
html.gw-dark .side-box ul.rank li .r-no { background-color: #333; color: #c3c3cb; }
html.gw-dark .chips-row li a:hover, html.gw-dark .cat-row dd a:hover { background-color: rgba(34, 197, 94, .12); color: #4ade80; }
html.gw-dark .cat-row .fav { background-color: #333; }
html.gw-dark .cat-row .fav-null { background-color: rgba(34, 197, 94, .16); color: #4ade80; }

html.gw-dark .detail-top .d-txt .label { background-color: #3a2a16; }
html.gw-dark .btn-group .btn-fav { background-color: #262626; }
html.gw-dark .btn-group .btn-go { background-color: #262626; }
html.gw-dark .btn-group .btn-warn { background-color: #262626; border-color: #4a4a4a; }
html.gw-dark .m1 .m-links ul li a { border-color: #444; color: #9aa1a9; }
html.gw-dark .m1 .m-table td { background-color: var(--card); }
html.gw-dark .m1 .m-table td a { color: var(--txt); }

html.gw-dark .panel-body.side-note, html.gw-dark .control-label,
html.gw-dark .btn-default, html.gw-dark .table th { color: #a1a1aa; }
html.gw-dark .form-control { border-color: #3a3a3a; }
html.gw-dark .alert-success { background-color: rgba(34, 197, 94, .12); border-color: #2f6b45; color: #4ade80; }
html.gw-dark .alert-danger { background-color: rgba(231, 76, 60, .14); border-color: #7f3a36; color: #f0847b; }
html.gw-dark .alert-info { background-color: rgba(34, 197, 94, .1); border-color: #2f6b45; color: #6ee7a0; }
html.gw-dark .label-success { background-color: rgba(34, 197, 94, .16); color: #4ade80; }
html.gw-dark .label-warning { background-color: #3a2a16; }
html.gw-dark .label-danger { background-color: rgba(231, 76, 60, .16); color: #f0847b; }
html.gw-dark .label-muted { background-color: #2a2a2a; }
html.gw-dark .table-striped tbody tr:nth-child(2n) { background-color: #232323; }
html.gw-dark .item-list li .li-idx { background-color: #333; color: #c3c3cb; }
html.gw-dark .btn[disabled] { background-color: #262626; border-color: #3a3a3a; color: #6b6b73; }
html.gw-dark .progress { background-color: #2a2a2a; }
