/* ==========================================================================
   江山365 · 手机端样式表
   整改版 v1.0 — 2026-10-25
   说明：已移除全部第三方外链样式，改为本地内联/本地 CSS 引用。
   ========================================================================== */

:root {
  --c-text: #2c3038;
  --c-text-2: #6b7280;
  --c-text-3: #9aa1ac;
  --c-bg: #f5f6f8;
  --c-card: #ffffff;
  --c-border: #e8eaee;
  --c-brand: #2f6fd0;
  --c-brand-dark: #245ab0;
  --c-brand-soft: #eaf1fc;
  --c-warn-bg: #fff8e8;
  --c-warn-border: #f3d08a;
  --c-warn-text: #8a5a00;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .04);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  padding-bottom: 84px; /* 预留底部合规说明条空间 */
  overflow-x: hidden;
}

/* ---------- 顶部标题栏 ---------- */
.top {
  background: var(--c-brand);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex: 0 0 auto;
}

.top .slogan {
  font-size: 13px;
  opacity: .92;
  line-height: 1.4;
}

.top .slogan strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
}

/* ---------- 内容容器 ---------- */
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 12px 0;
}

/* ---------- 分类导航 ---------- */
.cat-nav {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 12px;
  margin-bottom: 12px;
}

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-grid a {
  display: inline-block;
  font-size: 13px;
  color: var(--c-brand);
  background: var(--c-brand-soft);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.cat-grid a:active { background: #dbe8fb; color: var(--c-brand-dark); }

/* ---------- 卡片 / 列表 ---------- */
.block {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.block-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-border);
}

.block-hd h2 {
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding-left: 11px;
}

.block-hd h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 15px;
  background: var(--c-brand);
  border-radius: 2px;
}

.block-hd .more {
  font-size: 12px;
  color: var(--c-text-3);
  text-decoration: none;
}

/* 新闻 / 更新列表 */
.news-list { list-style: none; }

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #f1f2f5;
  font-size: 14.5px;
}

.news-list li:last-child { border-bottom: 0; }

.news-list li .idx {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.news-list li .idx.hot { background: #fdecec; color: #d94b4b; }

.news-list li a {
  color: var(--c-text);
  text-decoration: none;
  line-height: 1.6;
}

.news-list li a:active { color: var(--c-brand); }

/* 段子条目 */
.joke-list { list-style: none; }

.joke-list li {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f2f5;
  font-size: 14.5px;
  line-height: 1.85;
}

.joke-list li:last-child { border-bottom: 0; }

.joke-list li .jtitle {
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
}

.joke-list li .jmeta {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 6px;
}

/* ---------- 公告条 ---------- */
.notice {
  background: var(--c-warn-bg);
  border: 1px solid var(--c-warn-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-warn-text);
}

.notice strong { color: #7a4e00; }

.notice ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.notice li { margin: 3px 0; }

/* ---------- 站点信息卡 ---------- */
.site-info {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.85;
}

.site-info h3 {
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.site-info a { color: var(--c-brand); text-decoration: none; }

.kv { margin: 0; }

.kv dt {
  float: left;
  clear: left;
  width: 76px;
  color: var(--c-text-3);
}

.kv dd {
  margin: 0 0 4px 76px;
  color: var(--c-text-2);
  word-break: break-all;
}

/* ---------- 底部合规说明条 ---------- */
.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
}

.footer-bar .row {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 11.5px;
  color: var(--c-text-3);
  line-height: 1.6;
}

.footer-bar a {
  color: var(--c-text-2);
  text-decoration: none;
}

.footer-bar a:active { color: var(--c-brand); }

.footer-bar .sep { color: #d8dbe0; }

/* ---------- 举报/违规处理入口 ---------- */
.report-entry {
  display: block;
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 12px;
  text-decoration: none;
}

.report-entry .re-t {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}

.report-entry .re-d {
  font-size: 12.5px;
  color: var(--c-text-3);
  line-height: 1.7;
}

/* ---------- 详情页 ---------- */
.article {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 12px;
}

.article h1 {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 600;
}

.article .meta {
  font-size: 12px;
  color: var(--c-text-3);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}

.article .body {
  font-size: 15.5px;
  line-height: 2;
  color: #33383f;
}

.article .body p { margin-bottom: 14px; }

.article .body .q {
  background: #fafbfc;
  border-left: 3px solid var(--c-brand);
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 0 6px 6px 0;
}

/* ---------- 关于/声明页 ---------- */
.doc {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 12px;
}

.doc h1 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.doc .upd {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.doc h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
  padding-left: 9px;
  border-left: 3px solid var(--c-brand);
  line-height: 1.4;
}

.doc h2:first-of-type { margin-top: 0; }

.doc p, .doc li {
  font-size: 14px;
  line-height: 1.9;
  color: #414851;
  margin-bottom: 6px;
}

.doc ul { padding-left: 20px; margin-bottom: 8px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 13px;
}

.doc table th, .doc table td {
  border: 1px solid var(--c-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.doc table th {
  background: #f7f9fc;
  font-weight: 600;
  white-space: nowrap;
}

.doc .tag {
  display: inline-block;
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 6px;
}

/* ---------- 返回顶部 ---------- */
.backtop {
  position: fixed;
  right: 14px;
  bottom: 92px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--c-brand);
  font-size: 19px;
  text-decoration: none;
  z-index: 60;
}

.backtop.show { display: flex; }

/* ---------- 响应式 ---------- */
@media (max-width: 360px) {
  .news-list li, .joke-list li { padding-left: 13px; padding-right: 13px; }
  .wrap { padding-left: 9px; padding-right: 9px; }
}
