/* =========================================================
   移动端样式 - 深蓝灰 / 黑金高端主题（与 PC 统一）
   ========================================================= */
.mobile-page {
  background: #0d1117;
  color: #e8edf4;
  --ink-900:#0d1117;
  --ink-850:#121821;
  --ink-800:#171f2b;
  --ink-700:#1e2836;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);
  --txt:#e8edf4;
  --txt-2:#a9b4c4;
  --txt-3:#7d8a9d;
  --gold:#c9a961;
  --gold-2:#e3c98a;
}

/* ---------- 移动端头部 ---------- */
.mobile-page .m-header { display: block; }
.m-header {
  background: linear-gradient(180deg,#121821,#0d1117);
  border-bottom: 2px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.m-header-inner { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; }
.m-logo img { height: 36px; width: auto; display: block; background: #fff; border-radius: 4px; padding: 3px 7px; }
.m-title {
  margin-left: 2px; font-size: 15px; color: var(--gold-2);
  font-weight: 600; letter-spacing: .5px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ---------- 移动端底部导航（已按要求移除） ---------- */
.mobile-page .m-footer { display: none !important; }

/* ---------- 主体 ---------- */
.m-wrap { padding: 12px 12px 28px; }

/* 搜索 */
.m-search { display: flex; margin-bottom: 14px; border-radius: 6px; overflow: hidden; }
.m-search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-right: 0;
  background: var(--ink-800); color: var(--txt); outline: none; font-size: 13px;
}
.m-search input::placeholder { color: var(--txt-3); }
.m-search input:focus { border-color: var(--gold); }
.m-search button {
  width: 72px; height: 40px; background: var(--gold); color: #1a1608;
  border: 0; font-size: 14px; font-weight: 600; cursor: pointer;
}
/* 首页头部：logo 与搜索同排，垂直居中对齐 */
.m-header-search { flex: 1; min-width: 0; margin: 0; }
.m-header-search input { height: 36px; line-height: 36px; padding: 0 10px; font-size: 12px; border-radius: 4px 0 0 4px; }
.m-header-search button { width: 56px; height: 36px; font-size: 13px; border-radius: 0 4px 4px 0; }

/* ---------- 模块卡片 ---------- */
.m-card {
  background: var(--ink-800); border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 14px; overflow: hidden;
}
.m-card-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
}
.m-card-hd h2 {
  font-size: 15px; color: #fff; font-weight: 600; margin: 0;
  padding-left: 12px; position: relative; letter-spacing: .5px;
}
.m-card-hd h2::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; background: var(--gold); border-radius: 2px;
}
.m-card-hd a { color: var(--txt-3); font-size: 12px; text-decoration: none; }
.m-card-hd a:active { color: var(--gold); }
.m-card-bd { padding: 4px 14px 12px; }

/* ---------- 焦点头条 ---------- */
.m-hero {
  position: relative; display: block; border-radius: 8px; overflow: hidden;
  margin-bottom: 14px; background: var(--ink-700); border: 1px solid var(--line);
  text-decoration: none;
}
.m-hero img { width: 100%; height: 200px; object-fit: cover; display: block; filter: brightness(.82); }
.m-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6,9,14,.95) 0%, rgba(6,9,14,.25) 55%, transparent 100%);
}
.m-hero .m-hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 14px 14px; color: #fff; font-size: 16px;
  font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-hero .m-hero-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: var(--gold); color: #1a1608; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 2px; letter-spacing: 1px;
}
.m-hero.no-img { height: 120px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#1e2836,#0d1117); }
.m-hero.no-img::after { display: none; }
.m-hero.no-img .m-hero-text { position: static; font-size: 15px; text-align: center; color: var(--gold-2); }

/* ---------- 分类快捷入口 ---------- */
.m-quick { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink-800); }
.m-quick a {
  text-align: center; padding: 15px 4px 13px; color: var(--txt-2);
  font-size: 12px; text-decoration: none; border-right: 1px solid var(--line);
}
.m-quick a:last-child { border-right: 0; }
.m-quick a .ico {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0 auto 8px;
  font-size: 18px; font-weight: 600; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 50%;
  background: rgba(201,169,97,.06);
}
.m-quick a:active { background: rgba(201,169,97,.08); }

/* ---------- 图文列表项 ---------- */
.m-item { display: flex; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.m-item:last-child { border-bottom: 0; }
.m-item .thumb {
  width: 104px; height: 70px; object-fit: cover; border-radius: 5px;
  flex-shrink: 0; background: var(--ink-700);
}
.m-item .info { margin-left: 11px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-item .title {
  font-size: 14px; line-height: 1.5; color: var(--txt);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-item .meta { font-size: 11px; color: var(--txt-3); margin-top: auto; padding-top: 6px; }

/* ---------- 纯文字列表 ---------- */
.m-text-list { list-style: none; margin: 0; padding: 0; }
.m-text-list li {
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55;
  position: relative; padding-left: 13px;
}
.m-text-list li:last-child { border-bottom: 0; }
.m-text-list li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.m-text-list li a { color: var(--txt); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-text-list .date { color: var(--txt-3); font-size: 11px; float: right; margin-left: 8px; }

/* ---------- 图片瀑布流 ---------- */
.m-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-gallery-item { text-decoration: none; display: block; }
.m-gallery-item img { width: 100%; height: 108px; object-fit: cover; border-radius: 5px; background: var(--ink-700); }
.m-gallery-item p {
  font-size: 12px; color: var(--txt-2); margin: 6px 0 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 栏目页头部与切换 ---------- */
.m-page-head { background: var(--ink-800); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 0; margin-bottom: 14px; }
.m-page-head .crumb { color: var(--txt-3); font-size: 12px; }
.m-page-head .crumb a { color: var(--gold); text-decoration: none; }
.m-cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; -webkit-overflow-scrolling: touch; }
.m-cat-tabs::-webkit-scrollbar { display: none; }
.m-cat-tabs a {
  flex: 0 0 auto; padding: 7px 14px; font-size: 12px; color: var(--txt-2);
  background: var(--ink-700); border-radius: 16px; text-decoration: none; white-space: nowrap;
}
.m-cat-tabs a.active { background: var(--gold); color: #1a1608; font-weight: 600; }

/* ---------- 列表项 ---------- */
.m-list-item {
  display: block; position: relative; background: var(--ink-800);
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 100px 14px 14px;
  margin-bottom: 10px; min-height: 84px; text-decoration: none;
}
.m-list-item .title { font-size: 15px; line-height: 1.5; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-list-item .thumb { position: absolute; right: 12px; top: 14px; width: 78px; height: 56px; object-fit: cover; border-radius: 5px; background: var(--ink-700); }
.m-list-item .meta { color: var(--txt-3); font-size: 11px; margin-top: 8px; }
.m-empty { text-align: center; color: var(--txt-3); padding: 50px 0; font-size: 13px; }

/* ---------- 分页 ---------- */
.m-pagination {
  margin-top: 18px; padding: 18px 14px;
  background: var(--ink-800); border: 1px solid var(--line); border-radius: 8px;
}
.m-pager-nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.m-pager-btn {
  flex: 1; max-width: 128px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--ink-700); color: var(--gold);
  font-size: 13px; text-decoration: none; transition: all .18s ease;
}
.m-pager-btn .arr { font-size: 17px; line-height: 1; }
.m-pager-btn:hover { border-color: var(--gold); background: rgba(201,169,97,.1); }
.m-pager-btn.disabled { opacity: .35; pointer-events: none; }
.m-pager-current {
  min-width: 62px; text-align: center; font-size: 13px; color: var(--txt-3);
  font-variant-numeric: tabular-nums;
}
.m-pager-current b { color: var(--gold-2); font-size: 16px; font-weight: 700; }
.m-pager-total {
  margin-top: 14px; padding-top: 12px; text-align: center;
  border-top: 1px solid var(--line);
  color: var(--txt-3); font-size: 12px; letter-spacing: .3px;
}

/* =========================================================
   内容页 / 列表页（复用 PC 模板，深色主题覆盖）
   ========================================================= */
.mobile-page .page-wrap { padding: 12px 0 24px; }
.mobile-page .page-head { padding: 0 12px; }
.mobile-page .crumb { color: var(--txt-3); font-size: 12px; margin-bottom: 12px; }
.mobile-page .crumb a { color: var(--gold); text-decoration: none; }
.mobile-page .crumb span { margin: 0 5px; color: var(--txt-3); }
.mobile-page .page-desc { color: var(--txt-3); }

.mobile-page .panel,
.mobile-page .list-panel,
.mobile-page .article-panel,
.mobile-page .about-panel,
.mobile-page .related-panel {
  background: var(--ink-800); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px; margin-bottom: 12px;
}

/* 文章标题与元信息 */
.mobile-page .article-title { font-size: 21px; line-height: 1.45; color: #fff; font-weight: 600; margin: 0 0 14px; text-align: left; }
.mobile-page .article-meta {
  color: var(--txt-3); font-size: 12px; text-align: left;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.mobile-page .article-meta span { margin: 0 10px 0 0; }

/* 正文：深色背景浅色字，强制覆盖历史行内样式 */
.mobile-page .article-content,
.mobile-page .about-panel p {
  color: var(--txt-2) !important; font-size: 15px; line-height: 1.95;
  word-wrap: break-word;
}
.mobile-page .article-content p,
.mobile-page .article-content div,
.mobile-page .article-content span,
.mobile-page .article-content td,
.mobile-page .article-content strong,
.mobile-page .article-content font,
.mobile-page .article-content li,
.mobile-page .article-content table {
  color: var(--txt-2) !important; background-color: transparent !important;
  max-width: 100%;
}
.mobile-page .article-content a { color: var(--gold) !important; }
.mobile-page .article-content img { max-width: 100% !important; height: auto !important; display: block; margin: 14px auto; border-radius: 5px; }
.mobile-page .article-content p { margin: 0 0 14px; }
.mobile-page .about-panel p { text-indent: 2em; }

/* 区块标题（相关文章等） */
.mobile-page .related-panel .news-list { display: grid; grid-template-columns: 1fr; min-width: 0; }
.mobile-page .related-panel .news-item { min-width: 0; }
.mobile-page .sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mobile-page .sec-title .mark { width: 3px; height: 18px; background: var(--gold); border-radius: 2px; display: inline-block; }
.mobile-page .sec-title h2 { font-size: 16px; color: #fff; margin: 0; font-weight: 600; }
.mobile-page .sec-title .en { display: none; }
.mobile-page .news-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mobile-page .news-item:last-child { border-bottom: 0; }
/* 标题过长时不撑开页面：限制为单行、优雅省略，并处理无空格长串 */
.mobile-page .news-item a {
  color: var(--txt); text-decoration: none;
  flex: 1 1 auto; min-width: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  word-break: break-all;
}
.mobile-page .news-item .date { color: var(--txt-3); font-size: 11px; flex: 0 0 auto; white-space: nowrap; }
.mobile-page .back-links { text-align: center; padding: 16px 0; }
.mobile-page .back-links a { color: var(--gold); text-decoration: none; }

/* 列表页 */
.mobile-page .list-row { gap: 12px; padding: 13px 14px; border-bottom-color: var(--line); }
.mobile-page .list-row:last-child { border-bottom: 0; }
.mobile-page .list-row .thumb { width: 100px; height: 68px; }
.mobile-page .list-row h3 a { color: var(--txt); font-size: 15px; text-decoration: none; }
.mobile-page .list-row .summary { color: var(--txt-3); }
.mobile-page .list-row .meta { color: var(--txt-3); }
.mobile-page .page-title-bar { background: var(--ink-800); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; font-size: 15px; }
.mobile-page .pager a, .mobile-page .pager span { color: var(--gold); border-color: var(--line-strong); background: var(--ink-800); }
.mobile-page .pager .current { background: var(--gold); color: #1a1608; border-color: var(--gold); }

/* 搜索页 / 关于页 通用文字 */
.mobile-page .search-form input { background: var(--ink-700); border-color: var(--line-strong); color: var(--txt); width: 150px; }
.mobile-page .news-item a { color: var(--txt); }

/* ---------- 隐藏 PC 元素 ---------- */
.mobile-page .pc-header, .mobile-page .pc-footer { display: none !important; }
