/* ============================================================
   问舟科技 | 安徽AI数字营销&企业服务资讯网
   全站统一样式：语义化纯净排版 / 零页面噪音 / 深浅色双主题
   ============================================================ */

:root {
  --bg: #f3f7fb;
  --card: #ffffff;
  --text: #1c1e21;
  --muted: #5f6670;
  --accent: #2f9cf0;
  --accent-2: #6ec3ff;
  --accent-soft: #e9f4fe;
  --border: #e3e6ea;
  --footer-bg: #171a1f;
  --footer-text: #b7bcc4;
}

/* ========== 主题色（多巴胺 7 套，可随时切换，默认海洋蓝对齐 wzgeo.cn） ========== */
[data-color="default"] { --accent: #4cab7c; --accent-2: #8fd6ae; --accent-soft: #e8f6ef; }
[data-color="ocean"]   { --accent: #2f9cf0; --accent-2: #6ec3ff; --accent-soft: #e9f4fe; }
[data-color="sunset"]  { --accent: #f2704d; --accent-2: #ffb37b; --accent-soft: #fdeee7; }
[data-color="aurora"]  { --accent: #a355e8; --accent-2: #e07bd0; --accent-soft: #f5ebfc; }
[data-color="forest"]  { --accent: #2e9e5b; --accent-2: #67c98a; --accent-soft: #e7f5ec; }
[data-color="neon"]    { --accent: #5a5af0; --accent-2: #8f7bff; --accent-soft: #ecebfe; }
[data-color="candy"]   { --accent: #f26ba7; --accent-2: #ffb0c8; --accent-soft: #fdeaf3; }

[data-theme="dark"][data-color="default"] { --accent: #6cc79b; --accent-soft: #16281f; }
[data-theme="dark"][data-color="ocean"]   { --accent: #5cb6f5; --accent-soft: #12273c; }
[data-theme="dark"][data-color="sunset"]  { --accent: #f58e6d; --accent-soft: #332017; }
[data-theme="dark"][data-color="aurora"]  { --accent: #c184f0; --accent-soft: #2a1c38; }
[data-theme="dark"][data-color="forest"]  { --accent: #58bd82; --accent-soft: #14271c; }
[data-theme="dark"][data-color="neon"]    { --accent: #8b8bf5; --accent-soft: #1c1c38; }
[data-theme="dark"][data-color="candy"]   { --accent: #f58cbc; --accent-soft: #331a26; }

[data-theme="dark"] {
  --bg: #121417;
  --card: #1b1e23;
  --text: #e6e8eb;
  --muted: #9aa0a8;
  --accent: #6ea8ff;
  --accent-soft: #1e2c45;
  --border: #2c3138;
  --footer-bg: #0c0e11;
  --footer-text: #8b919b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-brand {
  padding: 26px 0 18px;
}

.site-brand h1,
.site-brand .brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.site-brand .brand-name a { color: var(--text); }
.site-brand .brand-name a:hover { text-decoration: none; color: var(--accent); }

.site-brand .brand-name .divider { color: var(--border); margin: 0 8px; font-weight: 400; }

.site-brand .brand-sub {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 4px;
}

/* 主导航 */
.main-nav {
  border-top: 1px solid var(--border);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.main-nav li a {
  display: block;
  padding: 13px 16px;
  color: var(--text);
  font-size: .95rem;
  border-bottom: 2px solid transparent;
}

.main-nav li a:hover { color: var(--accent); text-decoration: none; }

.main-nav li a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.main-nav li.nav-toggle { margin-left: 4px; }

.main-nav li.nav-palette { margin-left: auto; position: relative; }

/* 主题色选择器（仿 wzgeo.cn，可随时切换） */
.palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
}

.palette-btn:hover { color: var(--accent); border-color: var(--accent); }

.palette-current {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block;
}

.palette-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  width: 236px;
  box-shadow: 0 10px 32px rgba(20, 30, 50, .14);
}

.palette-title {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}

.palette-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 2px;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .72rem;
  color: var(--muted);
  padding: 5px 0;
  border-radius: 8px;
}

.swatch i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}

.swatch:hover { background: var(--accent-soft); }

html[data-color="default"] .swatch[data-color="default"],
html[data-color="ocean"]   .swatch[data-color="ocean"],
html[data-color="sunset"]  .swatch[data-color="sunset"],
html[data-color="aurora"]  .swatch[data-color="aurora"],
html[data-color="forest"]  .swatch[data-color="forest"],
html[data-color="neon"]    .swatch[data-color="neon"],
html[data-color="candy"]   .swatch[data-color="candy"] {
  color: var(--accent);
  font-weight: 600;
}

html[data-color="default"] .swatch[data-color="default"] i,
html[data-color="ocean"]   .swatch[data-color="ocean"] i,
html[data-color="sunset"]  .swatch[data-color="sunset"] i,
html[data-color="aurora"]  .swatch[data-color="aurora"] i,
html[data-color="forest"]  .swatch[data-color="forest"] i,
html[data-color="neon"]    .swatch[data-color="neon"] i,
html[data-color="candy"]   .swatch[data-color="candy"] i {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
}

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 主体布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0 40px;
}

.layout.single { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }

/* ---------- 文章列表 ---------- */
.post-list { list-style: none; }

.post-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.post-item h2 {
  font-size: 1.18rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--accent); text-decoration: none; }

.post-meta {
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 8px;
}

.post-meta .cat { color: var(--accent); }

.post-excerpt {
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: .88rem;
  color: var(--muted);
}

.pagination a,
.pagination .current {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}

.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination a:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- 文章详情页 ---------- */
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 40px;
}

.article-card > h1 {
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-meta {
  color: var(--muted);
  font-size: .84rem;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.article-meta .cat { color: var(--accent); }
.article-meta span + span::before { content: "·"; margin: 0 8px; color: var(--border); }

/* 独立摘要区块（大模型优先提取） */
.article-abstract {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 26px;
}

.article-abstract .abstract-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.article-abstract p { font-size: .93rem; color: var(--text); }

/* 正文 */
.article-body h2 {
  font-size: 1.28rem;
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

.article-body h3 {
  font-size: 1.08rem;
  margin: 22px 0 8px;
}

.article-body p { margin-bottom: 14px; font-size: .96rem; }

.article-body ul,
.article-body ol { margin: 0 0 14px 24px; font-size: .96rem; }

.article-body li { margin-bottom: 6px; }

/* 标签 */
.article-tags {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--muted);
}

.article-tags a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 12px;
  margin: 4px 6px 0 0;
  color: var(--muted);
}

.article-tags a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- 侧边栏 ---------- */
.sidebar-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.sidebar-section h2 {
  font-size: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}

.sidebar-section ul { list-style: none; }

.sidebar-section li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .88rem;
  line-height: 1.55;
}

.sidebar-section li:last-child { border-bottom: none; }

.sidebar-section li a { color: var(--text); }
.sidebar-section li a:hover { color: var(--accent); }

.sidebar-section li time {
  display: block;
  color: var(--muted);
  font-size: .75rem;
}

/* ---------- 归档页 ---------- */
.archive-group { margin-bottom: 28px; }

.archive-group > h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.archive-group ul { list-style: none; }

.archive-group li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: .93rem;
}

.archive-group li time { color: var(--muted); font-size: .8rem; flex-shrink: 0; }

/* ---------- 关于我们 ---------- */
.about-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 34px;
  margin-bottom: 22px;
}

.about-block h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.about-block p { margin-bottom: 12px; color: var(--text); }
.about-block dl { display: grid; grid-template-columns: 110px 1fr; row-gap: 10px; font-size: .94rem; }
.about-block dt { color: var(--muted); }
.about-block dd { color: var(--text); }

/* ---------- 页头（列表页标题） ---------- */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 1.45rem; }
.page-head p { color: var(--muted); font-size: .88rem; margin-top: 4px; }

/* ---------- 底部 Footer（GEO权重核心） ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 34px 0 26px;
  margin-top: 20px;
  font-size: .85rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-footer h2 {
  color: #e8eaed;
  font-size: .95rem;
  margin-bottom: 12px;
}

/* 隐藏式后台入口：页脚企业名即管理后台入口，视觉上与普通文字无异 */
.site-footer h2 a.footer-home-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-footer h2 a.footer-home-link:hover { color: #fff; }

.site-footer p { margin-bottom: 8px; line-height: 1.9; }

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }

.footer-copy {
  padding-top: 18px;
  text-align: center;
  color: var(--footer-text);
  font-size: .8rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .article-card { padding: 24px 22px; }
  .theme-toggle { margin: 8px 0; }
}
