@charset "utf-8";
/* ==========================================================================
   AI 营销观察 · 主题样式
   设计基调：财经媒体的克制感 + 数据密度。白底、细分隔线、单一蓝色强调。
   ========================================================================== */

:root {
  --ink: #16181c;
  --ink-2: #3d434b;
  --muted: #6b7280;
  --faint: #9aa1ab;
  --line: #e6e8eb;
  --line-2: #f0f1f3;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef4fb;
  --accent: #185fa5;
  --accent-2: #2f5597;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
input, button, textarea { font-family: inherit; font-size: inherit; }
.clear { clear: both; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部 ---------- */
.site-hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.hd-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; letter-spacing: .5px;
}
.logo-tx { display: flex; flex-direction: column; line-height: 1.15; }
.logo-tx b { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.logo-tx em { font-style: normal; font-size: 10px; color: var(--faint); letter-spacing: .8px; text-transform: uppercase; }

.nav { flex: 1 1 auto; min-width: 0; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.nav > ul > li > a:hover { background: var(--bg-2); color: var(--accent); }

.nav ul ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
  z-index: 60;
}
.nav li:hover > ul { display: block; }
.nav ul ul li a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.nav ul ul li a:hover { background: var(--bg-2); }

.hd-search { display: flex; align-items: center; flex: 0 0 auto; }
.hd-search input {
  width: 148px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  background: var(--bg-2);
  color: var(--ink);
  outline: none;
  transition: border-color .16s, background .16s;
}
.hd-search input:focus { background: #fff; border-color: var(--accent); }
.hd-search button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.hd-search button:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ---------- 数据条 ---------- */
.ticker { background: var(--bg-3); border-bottom: 1px solid #dbe7f4; }
.ticker-in {
  display: flex; align-items: center; gap: 12px;
  height: 38px; font-size: 12.5px; color: #2c4a6b;
  overflow: hidden;
}
.ticker-tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  background: var(--accent); color: #fff;
  border-radius: 4px; font-size: 11px; letter-spacing: .5px;
}
.ticker-tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-line { flex: 1 1 auto; height: 1px; background: #cfdff0; min-width: 20px; }
.ticker-note { flex: 0 0 auto; color: var(--accent); font-size: 12px; }

/* ---------- 布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 52px;
  padding-top: 34px;
  padding-bottom: 56px;
  align-items: start;
}
.main { min-width: 0; }

.page-hd { padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.page-hd h1 { font-size: 28px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; }
.page-sub { margin-top: 7px; font-size: 13px; color: var(--muted); }

/* 首页开篇：用主张代替重复站名 */
.hero-hd { padding: 26px 0 20px; border-bottom: 2px solid var(--ink); }
.hero-hd .hd-kicker {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-hd h1 { font-size: 31px; line-height: 1.32; letter-spacing: -.6px; }
.hero-hd .page-sub { margin-top: 10px; font-size: 13.5px; line-height: 1.8; max-width: 640px; }

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; }

.item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .16s;
}
.item:hover { background: #fcfcfd; }

.item-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--faint);
  margin-bottom: 7px;
}
.item-cat { color: var(--accent); font-weight: 500; }
.item-cat:hover { text-decoration: underline; }
.dot { color: #c8ccd2; }
.badge {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fdf1e7; color: #9a5b1c;
  font-size: 11px;
}

.item-t { font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -.1px; }
.item-t a { transition: color .16s; }

.item-x {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Z-Blog 摘要可能带 HTML 标签，逐层清掉默认边距 */
.item-x p, .item-x div { margin: 0 0 4px; }
.item-x p:last-child, .item-x div:last-child { margin-bottom: 0; }
.item-x br { display: none; }
.item-x strong, .item-x b { font-weight: 600; color: var(--ink-2); }

.item-foot { display: flex; gap: 14px; margin-top: 9px; font-size: 12px; color: var(--faint); }

/* 首页首条加重 */
.list .item:first-child { padding-top: 24px; }
.list .item:first-child .item-t { font-size: 22px; line-height: 1.4; letter-spacing: -.3px; }
.list .item:first-child .item-x { font-size: 14px; -webkit-line-clamp: 3; }

/* ---------- 空状态 ---------- */
.empty { padding: 56px 0; text-align: center; }
.empty h3 { font-size: 16px; font-weight: 600; }
.empty p { margin: 8px 0 18px; font-size: 13px; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  transition: background .16s, border-color .16s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--accent); }
.btn-ghost:hover { background: var(--bg-3); color: var(--accent-2); }

/* ---------- 分页 ---------- */
.pagebar-wrap { margin-top: 30px; }
.pagebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.pagebar a, .pagebar span {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 30px;
  padding: 0 9px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.pagebar a:hover { border-color: var(--accent); color: var(--accent); }
.pagebar span.now-page, .pagebar .now-page {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ---------- 文章 ---------- */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); margin-bottom: 16px; }
.crumb a:hover { color: var(--accent); }
.crumb em { font-style: normal; color: var(--muted); }

.post-hd { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.post-cat {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.post-t { font-size: 30px; font-weight: 600; line-height: 1.34; letter-spacing: -.6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; font-size: 12.5px; color: var(--faint); }

.prose { font-size: 16px; line-height: 1.9; color: #23262b; }
.prose > * + * { margin-top: 18px; }
.prose p { margin: 0; }
.prose h2 {
  margin-top: 38px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.2px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.prose h3 { margin-top: 30px; font-size: 17px; font-weight: 600; }
.prose h4 { margin-top: 24px; font-size: 15.5px; font-weight: 600; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--faint); }
.prose img { border-radius: 8px; margin: 6px 0; }
.prose blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
}
.prose blockquote p:first-child { margin-top: 0; }
.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f2f3f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  color: #b5305a;
}
.prose pre {
  padding: 16px 18px;
  background: #1d2026;
  color: #e6e8eb;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose hr { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }

.prose table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.prose th, .prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--bg-2); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.prose tr:last-child td { border-bottom: 1px solid var(--line); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.post-tags a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  transition: all .16s;
}
.post-tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-3); }

.post-foot { margin-top: 28px; padding: 16px 18px; background: var(--bg-2); border-radius: 8px; }
.post-copy p { font-size: 12.5px; line-height: 1.8; color: var(--muted); }

/* ---------- 侧栏 ---------- */
.side { display: flex; flex-direction: column; gap: 20px; }
.side .widget {
  padding: 18px 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side .widget h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.side .widget h3::before {
  content: "";
  display: inline-block;
  width: 3px; height: 12px;
  margin-right: 7px;
  vertical-align: -1px;
  border-radius: 2px;
  background: var(--accent);
}
.side .widget ul li { padding: 6px 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.side .widget ul li::before { content: "·"; color: var(--faint); margin-right: 6px; }
.side .widget ul li a:hover { color: var(--accent); }
.side .widget p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.side .widget img { border-radius: 6px; }

/* ---------- 侧栏：Z-Blog 原生模块（dl.function 结构）适配 ---------- */
.side > dl.function {
  margin: 0;
  padding: 16px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side .function_t {
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--ink);
  line-height: 1.4;
}
.side .function_t::before {
  content: "";
  display: inline-block;
  width: 3px; height: 11px;
  margin-right: 7px;
  vertical-align: -1px;
  border-radius: 2px;
  background: var(--accent);
}
.side .function_c {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.side .function_c ul { margin: 0; padding: 0; }
.side .function_c ul li {
  position: relative;
  padding: 5px 0 5px 13px;
  font-size: 13.5px;
  line-height: 1.6;
  border-bottom: 1px solid var(--line-2);
}
.side .function_c ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.side .function_c ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--faint);
}
.side .function_c ul li a { display: inline-block; }
.side .function_c ul li a:hover { color: var(--accent); }
.side .function_c p { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.75; }
.side .function_c p:last-child { margin-bottom: 0; }

/* 模块内的搜索表单 */
.side .function_c form { display: flex; gap: 6px; margin: 0; }
.side .function_c input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  background: var(--bg-2);
}
.side .function_c input[type="text"]:focus { border-color: var(--accent); background: #fff; }
.side .function_c input[type="submit"] {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .16s;
}
.side .function_c input[type="submit"]:hover { background: var(--accent-2); }

/* 站点信息 / 友情链接 */
.side .function_c .link-item { display: block; }
.side #divStatistics li { display: flex; justify-content: space-between; }

/* 日历（保留结构但收紧，避免表格撑破侧栏） */
.side #tbCalendar { width: 100%; border-collapse: collapse; font-size: 12px; }
.side #tbCalendar caption { padding-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.side #tbCalendar th, .side #tbCalendar td { padding: 3px 0; text-align: center; color: var(--muted); }
.side #tbCalendar td a { color: var(--accent); font-weight: 600; }

/* 对资讯站无意义或数据为空的默认模块：直接隐藏，避免拉长侧栏 */
#divCalendar,
#divContorPanel,
#divComments,
#divArchives,
#divFavorites { display: none !important; }

/* ---------- 评论：Z-Blog 原生结构（#divCommentPost）适配 ---------- */
#divCommentPost {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
#divCommentPost .posttop {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.1px;
}
#divCommentPost .posttop a { color: var(--ink); }
#divCommentPost #cancel-reply small { font-size: 12.5px; font-weight: 400; color: var(--accent); }
#frmSumbit p {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 6px;
}
#frmSumbit p > label { font-size: 12.5px; color: var(--muted); letter-spacing: .2px; }
#frmSumbit input.text, #frmSumbit textarea.text {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.65;
  outline: none;
  transition: border-color .16s, background .16s;
}
#frmSumbit input.text:focus, #frmSumbit textarea.text:focus { border-color: var(--accent); background: #fff; }
#frmSumbit textarea.text { min-height: 96px; resize: vertical; }
#frmSumbit input.button {
  padding: 9px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s;
}
#frmSumbit input.button:hover { background: var(--accent-2); }
#divCommentPost .postbottom { margin: 14px 0 0; font-size: 12.5px; color: var(--faint); }

/* 评论列表 */
#divCommentPost ul.msg, #divCommentPost .commentlist { margin: 0; padding: 0; }
#cmts h3, #cmts .cmt-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
#cmts .commentlist li, #cmts .comment { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
#cmts .commentname, #cmts .comment-author { font-size: 13px; font-weight: 600; }
#cmts .commenttime, #cmts .comment-date { font-size: 12px; color: var(--faint); }
#cmts .commentbody, #cmts .comment-content { margin-top: 6px; font-size: 14px; line-height: 1.8; }
#cmts .commentbody p { margin: 0 0 8px; }
#cmts textarea, #cmts input[type="text"] {
  width: 100%;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: var(--bg-2);
}
#cmts textarea:focus, #cmts input[type="text"]:focus { border-color: var(--accent); background: #fff; }
#cmts textarea { min-height: 96px; resize: vertical; }
#cmts button, #cmts input[type="submit"] {
  margin-top: 10px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
#cmts button:hover, #cmts input[type="submit"]:hover { background: var(--accent-2); }

/* ---------- 404 ---------- */
.nf { padding: 90px 0 110px; text-align: center; }
.nf-code { font-size: 76px; font-weight: 600; letter-spacing: -3px; color: var(--bg-3); line-height: 1; }
.nf h1 { margin-top: 6px; font-size: 24px; font-weight: 600; }
.nf p { margin: 10px 0 22px; font-size: 14px; color: var(--muted); }
.nf-links { display: flex; gap: 10px; justify-content: center; }

/* ---------- 页脚 ---------- */
.site-ft { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 26px; }
.ft-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 30px; }
.ft-desc { margin-top: 14px; max-width: 280px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.ft-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.ft-col h5 { font-size: 12px; font-weight: 600; margin-bottom: 10px; color: var(--ink); letter-spacing: .3px; }
.ft-col a { display: block; padding: 3px 0; font-size: 12.5px; color: var(--muted); }
.ft-col a:hover { color: var(--accent); }
.ft-bt {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
}
.ft-bt a { color: var(--faint); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .side { flex-direction: row; flex-wrap: wrap; }
  .side .widget { flex: 1 1 260px; }
  .ft-top { grid-template-columns: 1fr; gap: 30px; }
  .ft-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .hd-in { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .nav > ul { gap: 0; }
  .nav > ul > li > a { padding: 5px 9px; font-size: 13px; }
  .hd-search { margin-left: auto; }
  .hd-search input { width: 112px; }
  .ticker-note, .ticker-line { display: none; }
  .wrap { padding: 0 18px; }
  .layout { padding-top: 24px; }
  .page-hd h1 { font-size: 22px; }
  .list .item:first-child .item-t { font-size: 19px; }
  .item-t { font-size: 16.5px; }
  .post-t { font-size: 23px; }
  .prose { font-size: 15.5px; line-height: 1.85; }
  .prose h2 { font-size: 19px; margin-top: 30px; }
  .side { flex-direction: column; }
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
}
