/* ABOUTME: 找找AI · 博客风格导航首页样式 */

/* ============ 字体（经 CN 域名引入，利于国内访问） ============ */
@import url("https://fonts.googleapis.cn/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

/* ============ 基础 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #f4f6f9;
  --card: #ffffff;
  --ink: #17202e;
  --ink-2: #77829b;
  --red: #2563eb;
  --red-deep: #1d4ed8;
  --line: #e3e8f0;
  --black: #0f172a;
  --heading: "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif-en: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --term: #22c55e; /* 终端绿 */
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

/* ============ 报头（刊头 · 终端风格） ============ */
.masthead {
  padding: 18px 0 12px;
  border-bottom: 3px double #dbe3f0;
  margin-bottom: 18px;
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 1.5px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  color: var(--red);
  flex: 0 0 auto;
  margin-bottom: var(--bh-fix, 0);
}

.brand-cn {
  letter-spacing: 2px;
}

.brand-en {
  color: var(--red);
  letter-spacing: 0.5px;
}

.masthead-meta {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}

.meta-date {
  letter-spacing: 0.5px;
}

.meta-rss {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-2);
  transition: color 0.15s;
}

.meta-rss:hover {
  color: var(--red);
}

/* 菜单条 */
.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.menu a {
  position: relative;
  font-size: 13px;
  padding: 6px 12px;
  color: var(--ink);
  letter-spacing: 0.3px;
  transition: color 0.15s, background 0.15s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.menu a:hover {
  color: var(--red-deep);
  background: #f5f8ff;
}

.menu a:hover::after {
  transform: scaleX(1);
}

.menu-spacer {
  flex: 1;
}

.menu-updated {
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--serif-en);
}

.menu-updated.has-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-updated.has-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--term);
}


/* ============ 首页安全提示 ============ */
.safety-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #d7e3f8;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: #f7faff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.safety-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 4px;
  background: #eef4ff;
  color: var(--red-deep);
}

.safety-text {
  flex: 1;
  min-width: 0;
}

.safety-text strong {
  display: inline-block;
  margin-right: 10px;
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  border-radius: 3px;
  background: #eef4ff;
  color: var(--red-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 1px;
}

.safety-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 -4px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.safety-close:hover {
  border-color: #bfdbfe;
  background: #eef4ff;
  color: var(--red-deep);
}

.safety-close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.safety-close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .safety-notice {
    align-items: flex-start;
    gap: 9px;
    padding: 10px;
  }

  .safety-icon {
    width: 26px;
    height: 26px;
    padding: 5px;
  }

  .safety-text strong {
    margin-right: 6px;
  }

  .safety-close {
    width: 26px;
    height: 26px;
    margin-top: -3px;
  }
}

/* ============ 两栏布局 ============ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 68fr) minmax(0, 30fr);
  gap: 18px;
  align-items: start;
}

.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* ============ 卡片 ============ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
}

/* 栏目标题 */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sec-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
  padding-left: 10px;
  position: relative;
}

.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--red);
}

.sec-count {
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--serif-en);
}

.sec-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-2);
  transition: color 0.15s;
}

.sec-more:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ============ AI 网址导航 ============ */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
}

.nav-cat {
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}

.nav-cat:first-child,
.nav-cat:nth-child(2) {
  border-top: 0;
}

.cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cat-name::before {
  content: "▍";
  color: var(--red);
  font-size: 12px;
}

.cat-n {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-2);
}

.cat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.cat-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 3px;
  transition: background 0.15s;
}

.cat-list li:hover {
  background: rgba(37, 99, 235, 0.05);
}

.cat-list a {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.15s;
}

.cat-list a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cat-list .desc {
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 站点宣传 + 广告区（报头下方） ============ */
.hero {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin: 0 0 18px;
}

.hero-left {
  position: relative;
  overflow: hidden;
  flex: 1 1 68%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(132deg, #eaf1ff 0%, #f6faff 46%, #ffffff 100%);
  border: 1px solid #dbe6f8;
  border-radius: 4px;
  padding: 18px 20px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* 淡网格底纹：填补留白，向右上淡出 */
.hero-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 110% at 100% 0%, #000 0%, transparent 60%);
  mask-image: radial-gradient(120% 110% at 100% 0%, #000 0%, transparent 60%);
  pointer-events: none;
}

.hero-left > * {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.ht-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.hero-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.35;
  color: var(--black);
  letter-spacing: 0.5px;
  margin: 0;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
  box-shadow: inset 0 -0.32em 0 rgba(37, 99, 235, 0.14);
}

.hero-desc {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
}

/* 内容方向标签 */
.hero-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  list-style: none;
}

.hero-feats li {
  position: relative;
  padding: 3px 10px 3px 23px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.hero-feats li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--term);
}

.hero-feats li:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: #f2f6ff;
  color: var(--red-deep);
}

/* 数据指标（紧凑单行） */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(37, 99, 235, 0.22);
  font-size: 12px;
  color: var(--ink-2);
}

.hero-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 14px;
  border-left: 1px solid rgba(37, 99, 235, 0.16);
}

.hero-meta span:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta strong {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--red-deep);
}

.hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--serif-en);
}

.hu-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--term);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3px;
  padding: 11px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-hero span[aria-hidden] {
  transition: transform 0.15s ease;
}

.btn-hero:hover span[aria-hidden] {
  transform: translateX(2px);
}

.btn-primary {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
}

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red-deep);
  background: #f2f6ff;
}

/* 首页宣传区主按钮：淡蓝底，降低视觉重量 */
.hero .btn-primary {
  background: #e8f0ff;
  border-color: #c7dafc;
  color: var(--red-deep);
}

.hero .btn-primary:hover {
  background: #dbe8ff;
  border-color: #a9c6f8;
  box-shadow: none;
}

@media (max-width: 640px) {
  .hero-left {
    padding: 15px 15px 13px;
  }

  .hero-title {
    font-size: 21px;
  }

  .hero-feats li {
    font-size: 11px;
    padding: 3px 8px 3px 21px;
  }

  .hero-meta span {
    padding: 0 9px;
  }

  .hero-meta strong {
    font-size: 14px;
  }

  .hero-updated {
    display: none;
  }
}

.hero-ad {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
}

.hero-ad .ad-box-inner {
  flex: 1;
}

/* ============ 常用 AI 工具导航（报头与主体之间） ============ */
.quick-nav {
  margin: 0 0 18px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}
.tool-item:hover {
  border-color: var(--red);
  background: #f2f6ff;
}
.tool-logo {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
  display: block;
}
.tool-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tool-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.tool-desc {
  min-width: 0;
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.tool-item:hover .tool-name {
  color: var(--red);
}

/* ============ 分类导航（报头下方全宽） ============ */
.cats-bar {
  padding: 14px 16px;
  margin: 18px 0;
}

.cats-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.cats-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
  padding-left: 10px;
  position: relative;
}

.cats-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--red);
}

.cats-count {
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--serif-en);
}

/* ============ 全部分类（53 个编号分类平铺） ============ */
.cat-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-index li a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
  transition: all 0.15s;
}

.cat-index li a:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--card);
}

.cat-index .ci-n {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--red-deep);
  transition: color 0.15s;
}

.cat-index li a:hover .ci-n {
  color: var(--red);
}

/* ============ 友情连接 ============ */
.friends {
  margin: 0 0 18px;
}

.friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.friend-list li a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  color: var(--ink);
  background: var(--card);
  white-space: nowrap;
  transition: all 0.15s;
}

.friend-list li a:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--paper);
}

/* ============ 广告位（通栏横幅） ============ */
.ad {
  margin: -8px 0 -8px;
  border: 1px dashed #b9cdf2;
  border-radius: 8px;
  background: linear-gradient(90deg, #e7effd 0%, #f1f6fe 55%, #fafcff 100%);
  transition: border-color 0.15s ease;
}
.ad:hover {
  border-color: #7ea4ee;
}
.ad-full {
  margin: 18px 0;
}
.ad-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 7px;
  text-decoration: none;
  min-height: 62px;
}
.ad-flag {
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  letter-spacing: 1px;
}
.ad-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.ad-icon svg {
  width: 22px;
  height: 22px;
}
.ad-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ad-title {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.2px;
}
.ad-desc {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-cta {
  flex: 0 0 auto;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1;
  padding: 9px 15px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.ad-inner:hover .ad-cta {
  background: #bfdbfe;
}

/* ============ 侧栏广告模块（腾讯云） ============ */
.ad-box {
  position: relative;
  border: 1px dashed #c7d4ee;
  border-radius: 10px;
  background: linear-gradient(180deg, #eaf1ff 0%, #f7faff 55%, #fbfdff 100%);
  padding: 18px 14px 12px;
  text-align: center;
}
.ad-box-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
}
.ad-box-inner {
  display: block;
  text-decoration: none;
}
.ad-box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
  color: var(--red);
  margin-bottom: 14px;
}
.ad-box-icon svg {
  width: 30px;
  height: 30px;
}
.ad-box-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 auto 8px;
}
.ad-box-desc {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ad-box-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 10px 24px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.ad-box-inner:hover .ad-box-btn {
  background: #1d4ed8;
}
.ad-box-copy {
  margin: 12px 0 2px;
  font-size: 10px;
  color: #99a1b3;
}

/* ============ 朋友圈快讯 ============ */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

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

.news-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

.news-time {
  font-family: var(--serif-en);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  flex-shrink: 0;
  width: 46px;
}

.news-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 5px;
  line-height: 16px;
  transition: all 0.15s;
}

.news-tag.hot {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.news-body {
  font-size: 13px;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  transition: color 0.15s;
}

.news-item:hover .news-body {
  color: var(--red);
}

/* ============ 问答 ============ */
.qa-list {
  display: flex;
  flex-direction: column;
}

.qa-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.qa-item:last-child {
  border-bottom: 0;
}

.qa-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

.qa-q {
  font-size: 13px;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  transition: color 0.15s;
}

.qa-q:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 首页 · 问答模块（与分享文章同款列表质感） */
.qa .sec-count {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fafbfd;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3px;
}

.qa .qa-item {
  align-items: flex-start;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--line);
  border-radius: 3px;
}

.qa .qa-item:hover {
  background: #f7faff;
}

.qa .qa-q {
  font-weight: 500;
  line-height: 1.55;
  color: rgba(23, 32, 46, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qa .qa-item:hover .qa-q {
  color: var(--red-deep);
}

.qa .qa-q:hover {
  text-decoration: none;
}


/* ============ 侧边栏 · 软件下载 ============ */
.soft .sec-count {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fafbfd;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3px;
}

.soft-group {
  margin-bottom: 14px;
}

.soft-group:last-child {
  margin-bottom: 0;
}

.soft-group-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.soft-group-name::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--red);
}

.soft-group-name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.soft-list {
  display: flex;
  flex-direction: column;
}

.soft-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-bottom: 1px dashed var(--line);
  border-radius: 3px;
  transition: background 0.15s;
}

.soft-item:hover {
  background: #f7faff;
}

.soft-item:last-child {
  border-bottom: 0;
}

.soft-logo {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--card);
  flex-shrink: 0;
}

.soft-info {
  flex: 1;
  min-width: 0;
}

.soft-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.soft-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s;
}

.soft-item:hover .soft-name {
  color: var(--red-deep);
}

.soft-tag {
  font-size: 10px;
  color: var(--red-deep);
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 3px;
  background: #eef4ff;
  padding: 0 5px;
  line-height: 15px;
}

.soft-desc {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soft-dl {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 3px;
  color: var(--red-deep);
  background: var(--card);
  transition: all 0.15s;
}

.soft-dl:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

/* ============ 分享文章 ============ */
.art-list {
  display: flex;
  flex-direction: column;
}

.art-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.art-item:last-child {
  border-bottom: 0;
}

.art-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

.art-title {
  font-size: 13px;
  color: var(--ink);
  transition: color 0.15s;
}

.art-title:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.art-meta {
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--serif-en);
}

/* 首页 · 分享文章模块（仅 .share 作用域） */
.share .sec-count {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fafbfd;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3px;
}

.share .art-item {
  position: relative;
  gap: 4px;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--line);
  border-radius: 3px;
}

.share .art-item:hover {
  background: #f7faff;
}

.share .art-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(23, 32, 46, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share .art-item:hover .art-title {
  color: var(--red-deep);
}

.share .art-title:hover {
  text-decoration: none;
}

/* ============ 标签 ============ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
  transition: all 0.15s;
}

.tag:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--card);
}

.tags-note {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* ============ 浮动侧边面板（热门 AI / 常用 AI） ============ */
.float-panel {
  position: fixed;
  top: 80px;
  z-index: 60;
  width: 122px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
  padding: 10px 10px 8px;
}
.float-left {
  left: max(12px, calc((100vw - 1180px) / 2 - 140px));
}
.float-right {
  right: max(12px, calc((100vw - 1180px) / 2 - 140px));
}

/* 左侧浮动面板：推荐 / 最新 上下两块 */
.fp-block + .fp-block {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.float-title {
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
}

.float-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: -2px -2px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.float-close:hover {
  color: var(--red-deep);
  background: #eef4ff;
  border-color: #bfdbfe;
}

.float-close svg {
  width: 10px;
  height: 10px;
}
.float-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.float-list li + li {
  border-top: 1px dashed var(--line);
}
.float-list a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 0;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}
.float-list a:hover {
  color: var(--red);
}

/* 中屏以下隐藏浮动面板，避免遮挡主内容（≥1460px 时留白区足以容纳面板并贴合主体） */
@media (max-width: 1459px) {
  .float-panel {
    display: none;
  }
}

/* ============ 浮动广告边栏（详情页 / 列表页 / 个性主页共用，只放广告） ============ */
.float-ad {
  position: fixed;
  top: 170px;
  z-index: 59;
  width: 172px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float-ad-l {
  left: max(12px, calc((100vw - 1180px) / 2 - 192px));
}
.float-ad-r {
  right: max(12px, calc((100vw - 1180px) / 2 - 192px));
}
.fa-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px dashed #c7d4ee;
  border-radius: 10px;
  background: linear-gradient(180deg, #eaf1ff 0%, #f7faff 55%, #fbfdff 100%);
  padding: 30px 12px 14px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.fa-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.14);
}
.fa-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
}
.fa-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
  margin-bottom: 10px;
}
.fa-title {
  display: block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 4px;
}
.fa-desc {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 10px;
}
.fa-btn {
  display: inline-block;
  font-size: 12px;
  color: var(--red-deep);
  border: 1px solid #bfdbfe;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 12px;
  border-radius: 6px;
}
@media (max-width: 1589px) {
  .float-ad {
    display: none;
  }
}

/* ============ 页脚 ============ */
.footer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.1px;
  color: var(--ink-2);
}

.footer a {
  transition: color 0.15s, text-decoration-color 0.15s;
}

.footer a:hover {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-legal > p:first-child {
  color: var(--ink);
  font-weight: 500;
}

.footer-legal > p:first-child a {
  font-weight: 600;
}

.footer-links {
  font-family: var(--sans);
  letter-spacing: 0.2px;
}

.footer-links a {
  color: var(--ink);
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.footer-beian a:hover {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-beian svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
/* 公安备案徽标：原图 62×67，按真实比例展示，避免被压扁 */
.footer-beian img.beian-badge {
  width: auto;
  height: 15px;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.footer-beian a:hover .beian-badge {
  opacity: 1;
}

.site-runtime {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* ============ 文章内容页（article.html） ============ */
.post-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 30px 30px;
}

.post-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.post-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red-deep);
  border: 1px solid var(--red);
  background: rgba(37, 99, 235, 0.06);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.post-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.35;
  color: var(--black);
  margin: 0 0 12px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-en);
  font-size: 12px;
  color: var(--ink-2);
}

.post-meta .pm-author {
  font-family: var(--mono);
}

.post-meta .pm-dot {
  opacity: 0.5;
}

/* 正文排版 */
.post-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.post-body h2 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--black);
  margin: 28px 0 10px;
  padding-left: 10px;
  position: relative;
}

.post-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background: var(--red);
}

.post-body h3 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  margin: 22px 0 8px;
}

.post-body p {
  margin: 0 0 14px;
}

.post-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--red-deep);
}

.post-body ul,
.post-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

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

.post-body li::marker {
  color: var(--red);
}

.post-body blockquote {
  margin: 0 0 16px;
  padding: 8px 14px;
  border-left: 3px solid var(--red);
  background: rgba(37, 99, 235, 0.04);
  color: var(--ink-2);
  font-size: 13px;
}

.post-body code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--red-deep);
}

.post-body pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #0f172a;
  color: #dbeafe;
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.post-body strong {
  color: var(--black);
}

.post-body img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 6px 0 14px;
}

/* 上/下篇 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 6px;
}

.post-nav a {
  font-size: 13px;
  color: var(--ink);
  transition: color 0.15s;
}

.post-nav a:hover {
  color: var(--red);
}

.post-back {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 6px 14px;
  border-radius: 3px;
  margin-top: 2px;
  transition: all 0.15s;
}

.post-back:hover {
  color: var(--red);
  border-color: var(--red);
}

/* 正文下方的独立标签、相关阅读与文章导航模块 */
.post-tags {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.post-section-title {
  flex: 0 0 auto;
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.8;
  color: var(--black);
}

.post-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--red);
}

.post-related .post-section-title {
  margin-bottom: 8px;
}

.post-nav.post-module {
  margin-top: 0;
  padding-top: 14px;
  border-top: 0;
}

/* ============ 两栏内容页（content.html） ============ */
.content-layout {
  margin-bottom: 18px;
}

.content-ad-side {
  position: sticky;
  top: 18px;
  align-self: start;
}

/* 文章与快讯详情页：参考线上内容结构，仅作用于这两个页面 */
.detail-page .post-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-page .detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12px;
}

.detail-page .detail-breadcrumb a:hover {
  color: var(--red);
}

.detail-page .detail-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.detail-page .post-head.detail-panel {
  margin: 0;
  padding: 22px 24px 18px;
}

.article-page .post-body.detail-panel {
  padding: 22px 24px;
}

.detail-page .detail-side {
  top: 80px;
}

.detail-page .post-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px;
}

.detail-page .detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.detail-page .detail-copyright {
  color: var(--ink-2);
  font-size: 12px;
}

.detail-page .post-nav.detail-panel {
  margin: 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
}

.detail-page .post-related.detail-panel,
.flash-page .flash-related.detail-panel {
  padding: 16px 20px;
}

.flash-page .flash-post {
  padding: 20px 24px;
}

.flash-page .flash-detail-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.flash-page .flash-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 12px;
}

.flash-page .flash-kicker .post-cat {
  margin-bottom: 0;
}

.flash-page .flash-out-link {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  text-decoration: none;
}

.flash-page .flash-source {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
}

.flash-page .flash-related-list li + li {
  border-top: 1px solid var(--line);
}

.flash-page .flash-related-list a {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  transition: color 0.15s;
}

.flash-page .flash-related-list a:hover {
  color: var(--red);
}

/* 问答详情：沿用快讯结构，增加问 / 答标识 */
.qa-page .qa-post {
  padding: 20px 24px;
}

.qa-page .qa-title-row,
.qa-page .qa-answer {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.qa-page .qa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.qa-page .qa-title-row .post-title {
  margin-bottom: 10px;
}

.qa-page .qa-question-desc {
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.qa-page .qa-badge-answer {
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
  color: var(--red-deep);
}

.qa-page .qa-related.detail-panel {
  padding: 16px 20px;
}

.qa-page .qa-related-list li + li {
  border-top: 1px solid var(--line);
}

.qa-page .qa-related-list a {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  transition: color 0.15s;
}

.qa-page .qa-related-list a:hover {
  color: var(--red);
}

/* 通用栏目列表分页 */
.column-page .column-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.column-page .column-pagination a,
.column-page .column-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12px;
}

.column-page .column-pagination a:hover,
.column-page .column-pagination span[aria-current="page"] {
  border-color: var(--red);
  color: var(--red);
}

.column-page .column-pagination span[aria-current="page"] {
  background: var(--red);
  color: #fff;
}

.column-page .column-pagination .page-ellipsis {
  border-color: transparent;
  background: transparent;
}

/* 通用栏目列表：增强内容层次与阅读间距 */
.column-page .list-card {
  padding: 0;
  overflow: hidden;
}

.column-page .list-head {
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 18px 20px;
  background: var(--card);
}

.column-page .list-count {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.column-page .list-ol {
  padding: 4px 20px;
}

.column-page .list-item {
  align-items: center;
  gap: 14px;
  margin: 0 -8px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.column-page .list-item:last-child {
  border-bottom: 0;
}

.column-page .list-item:hover {
  background: rgba(37, 99, 235, 0.035);
}

.column-page .li-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.column-page .list-item:hover .li-n {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: var(--red);
}

.column-page .li-main a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.column-page .li-sub {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.column-page .li-meta {
  font-family: var(--sans);
}

.column-page .li-meta .li-tag {
  padding: 2px 7px;
  font-family: var(--sans);
  font-size: 11px;
  white-space: nowrap;
}

.column-page .li-meta .li-time {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .column-page .list-head {
    padding: 16px;
  }

  .column-page .list-ol {
    padding: 4px 12px;
  }

  .column-page .list-item {
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 0;
  }

  .column-page .li-n {
    min-width: 26px;
    width: 26px;
    height: 26px;
  }

  .column-page .li-main a {
    font-size: 13px;
  }

  .column-page .li-sub {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 560px) {
  .qa-page .qa-post {
    padding: 18px 16px;
  }
}

/* 文章与快讯阅读体验：仅调整样式，不改变页面结构 */
.article-page .detail-panel,
.flash-page .detail-panel {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.article-page .post-head.detail-panel {
  padding: 24px 26px 18px;
}

.article-page .post-title,
.flash-page .post-title {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: wrap;
}

.article-page .post-title .post-origin,
.qa-page .post-title .post-origin,
.flash-page .post-title .post-origin {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 5px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 3px;
  background: rgba(37, 99, 235, 0.07);
  color: var(--red-deep);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  vertical-align: 2px;
}

.article-page .post-meta {
  margin-top: 8px;
  font-family: var(--sans);
}

.article-page .post-body.detail-panel {
  padding: 28px 30px 32px;
}

.article-page .post-body,
.flash-page .flash-post-body {
  font-size: 15px;
  line-height: 1.9;
}

.article-page .post-body p {
  margin-bottom: 18px;
}

.article-page .post-body h2 {
  margin: 34px 0 14px;
  padding-left: 12px;
  font-size: 20px;
  line-height: 1.5;
}

.article-page .post-body blockquote,
.flash-page .flash-post-body blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border-radius: 0 3px 3px 0;
  font-size: 14px;
  line-height: 1.8;
}

.article-page .post-body ul,
.article-page .post-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.article-page .post-body li {
  margin-bottom: 8px;
}

.article-page .post-body pre {
  margin: 20px 0;
  padding: 16px 18px;
  line-height: 1.75;
}

.article-page .post-actions,
.article-page .post-nav.detail-panel {
  padding: 16px 22px;
}

.article-page .post-related.detail-panel,
.flash-page .flash-related.detail-panel {
  padding: 20px 22px;
}

.article-page .post-related .art-item {
  padding: 12px 0;
}

.article-page .post-related .art-title {
  font-size: 14px;
  font-weight: 500;
}

.flash-page .flash-post {
  padding: 26px 28px;
}

.flash-page .flash-detail-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.flash-page .flash-kicker {
  margin-bottom: 8px;
}

.flash-page .flash-post-body p {
  margin-bottom: 16px;
}

.flash-page .flash-out-link {
  font-weight: 600;
}

.flash-page .flash-source {
  margin-top: 20px;
  padding-top: 14px;
}

.flash-page .flash-related-list a {
  margin: 0 -8px;
  padding: 12px 8px;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.15s, background 0.15s;
}

.flash-page .flash-related-list a:hover {
  background: rgba(37, 99, 235, 0.035);
}

@media (max-width: 560px) {
  .article-page .post-title,
  .flash-page .post-title {
    font-size: 18px;
  }

  .article-page .post-body,
  .flash-page .flash-post-body {
    font-size: 14px;
    line-height: 1.85;
  }

  .article-page .post-body h2 {
    margin: 26px 0 12px;
    font-size: 18px;
  }

  .article-page .post-body pre {
    padding: 14px;
    font-size: 11px;
  }

  .article-page .post-actions,
  .article-page .post-nav.detail-panel,
  .article-page .post-related.detail-panel,
  .flash-page .flash-related.detail-panel {
    padding: 16px;
  }
}

@media (max-width: 1023px) {
  .detail-page .detail-side {
    position: static;
  }
}

@media (max-width: 560px) {
  .detail-page .post-head.detail-panel,
  .article-page .post-body.detail-panel,
  .flash-page .flash-post {
    padding: 18px 16px;
  }

  .detail-page .post-nav.detail-panel {
    flex-direction: column;
  }
}

/* ============ 网址详情页（site.html） ============ */
.site-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 30px;
}

.site-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--card);
  flex: 0 0 auto;
}

.site-identity {
  flex: 1;
  min-width: 220px;
}

.site-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  margin: 0 0 6px;
}

.site-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red-deep);
  border: 1px solid var(--red);
  background: rgba(37, 99, 235, 0.06);
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 400;
}

.site-desc {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
}

.site-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 4px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.site-btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.site-btn.ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.site-btn.ghost:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--card);
}

.site-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 20px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.site-meta-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.site-meta-list .sm-key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}

.site-meta-list .sm-val {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.site-meta-list .sm-val a {
  color: var(--red);
}

.site-meta-list .sm-val a:hover {
  text-decoration: underline;
}

.site-section {
  padding: 18px 30px 22px;
}

.site-section h2 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  padding-left: 10px;
  position: relative;
  margin: 0 0 12px;
}

.site-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--red);
}

.site-section p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 10px;
}

.site-rel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-rel a {
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 4px 12px;
  border-radius: 3px;
  transition: all 0.15s;
}

.site-rel a:hover {
  color: var(--red);
  border-color: var(--red);
}

.site-back {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 6px 14px;
  border-radius: 3px;
  transition: all 0.15s;
}

.site-back:hover {
  color: var(--red);
  border-color: var(--red);
}

@media (max-width: 560px) {
  .post {
    padding: 18px 16px 22px;
  }
  .post-title {
    font-size: 21px;
  }
  .site-card,
  .site-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-head {
    gap: 12px;
  }
  .site-logo {
    width: 52px;
    height: 52px;
  }
  .site-name {
    font-size: 19px;
  }
}

/* ============ 软件详情页补充 ============ */
.site-feats {
  margin: 0;
  padding-left: 20px;
}
.site-feats li {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.site-feats li::marker {
  color: var(--red);
}

/* ============ 问答详情页回答列表 ============ */
.post-comments {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 16px;
}
.pc-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  margin: 0 0 14px;
}
.pc-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.pc-author {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red-deep);
}
.pc-time {
  font-family: var(--serif-en);
  font-size: 11px;
  color: var(--ink-2);
}
.pc-item p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

/* ============ 列表页通用 ============ */
.list-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.list-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
}
.list-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.list-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--black);
  padding-left: 10px;
  position: relative;
}
.list-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--red);
}
.list-count {
  font-size: 11px;
  color: var(--ink-2);
  font-family: var(--serif-en);
}
/* 列表条目：左侧编号，右侧内容 */
.list-ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--line);
}
.list-item.has-icon {
  align-items: center;
}
.list-item > .sg-icon {
  flex: 0 0 auto;
}
.list-item:last-child {
  border-bottom: none;
}
.li-n {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  min-width: 26px;
}
.li-main {
  flex: 1;
  min-width: 0;
}
.li-main a {
  font-size: 13px;
  color: var(--ink);
  transition: color 0.15s;
}
.li-main a:hover {
  color: var(--red);
}
.li-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.li-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif-en);
  font-size: 11px;
  color: var(--ink-2);
}
.li-meta .li-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--red-deep);
  border: 1px solid #bfdbfe;
  background: rgba(37, 99, 235, 0.05);
  padding: 1px 6px;
  border-radius: 3px;
}
.li-meta .li-time {
  white-space: nowrap;
}
/* 列表页分组小标题 */
.list-group {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  margin: 14px 0 4px;
  padding-left: 8px;
  position: relative;
}
.list-group:first-child {
  margin-top: 0;
}
.list-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
/* 网址导航网格列表 */
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.site-grid-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  padding: 8px 10px;
  transition: all 0.15s;
  min-width: 0;
}
.site-grid-item:hover {
  border-color: var(--red);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}
.sg-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.sg-text {
  min-width: 0;
  flex: 1;
}
.sg-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-name:hover {
  color: var(--red);
}
.sg-desc {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .li-meta .li-time {
    display: none;
  }
}

/* ============ AI 个性主页（start.html，聚合常用搜索 + 常用 AI 网站） ============ */
.home-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 26px 28px;
  text-align: center;
}
.home-brand {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--black);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.home-brand svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}
.home-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
/* 搜索框 */
.home-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.hs-select {
  border: none;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-family: var(--sans);
  padding: 9px 6px 9px 10px;
  border-right: 1px solid var(--line);
  appearance: none;
  outline: none;
  cursor: pointer;
}
.hs-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink);
  padding: 9px 12px;
  outline: none;
  min-width: 0;
}
.hs-input::placeholder {
  color: #a7b1c6;
}
.hs-go {
  border: none;
  border-left: 1px solid var(--line);
  background: var(--card);
  color: var(--red);
  font-size: 13px;
  font-family: var(--sans);
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hs-go:hover {
  background: var(--red);
  color: #fff;
}
.home-search-tip {
  font-size: 11px;
  color: var(--ink-2);
  margin: 0;
}
/* 常用 AI 网站快捷入口 */
.home-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 18px;
}
.home-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ha-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
  transition: all 0.15s;
  min-width: 0;
}
.ha-item:hover {
  border-color: var(--red);
  background: rgba(37, 99, 235, 0.04);
}
.ha-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.ha-text {
  min-width: 0;
}
.ha-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ha-desc {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .home-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hero {
    padding: 24px 16px 20px;
  }
  .home-brand {
    font-size: 24px;
  }
}

/* start.html 与首页一致的两栏骨架 */
.start-page .home-hero {
  padding: 26px 24px 22px;
  text-align: left;
}

.start-page .home-brand {
  justify-content: flex-start;
  font-size: 24px;
}

.start-page .home-sub {
  margin: 8px 0 18px;
}

.start-page .home-search {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.start-page .content-ad-side {
  top: 80px;
}

@media (max-width: 1023px) {
  .start-page .content-ad-side {
    position: static;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 1023px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .col-side {
    order: 2;
  }

  .content-ad-side {
    position: static;
  }

  .nav-grid {
    gap: 12px;
  }

  .hero {
    flex-direction: column;
  }

  .hero-title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 20px;
  }

  .brand-logo {
    width: 19px;
    height: 19px;
    margin-bottom: 0;
  }

  .masthead-meta {
    font-size: 12px;
  }

  .nav-grid,
  .cat-list {
    grid-template-columns: 1fr;
  }

  .nav-cat:nth-child(n) {
    border-top: 1px dashed var(--line);
  }

  .card {
    padding: 12px;
  }

  .sec-count {
    display: none;
  }

  .ad-desc {
    display: none;
  }

  .ad-cta {
    font-size: 12px;
    padding: 8px 12px;
  }

  .ad-inner {
    gap: 10px;
    padding: 12px 12px 10px;
  }

  .ad-icon {
    width: 36px;
    height: 36px;
  }

  .ad-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ============ 新版两栏页面（v2/）专用补充 ============ */
.v2-page .sg-icon,
.v2-page .site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--red-deep);
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1;
}

.v2-page .sg-icon {
  font-size: 10px;
}

.v2-page .site-logo {
  font-size: 18px;
  letter-spacing: -0.5px;
}

.v2-page .post-comments {
  border-top: 0;
  margin-top: 0;
  padding-top: 14px;
}

.v2-page .post-back,
.v2-page .site-back {
  align-self: flex-start;
}

/* ============ 返回顶部按钮（首页） ============ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 36px;
  z-index: 61;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink-2);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, color 0.15s, border-color 0.15s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  color: var(--red);
  border-color: var(--red);
}

.back-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .back-top {
    right: 14px;
    bottom: 20px;
    width: 36px;
    height: 36px;
  }
}

/* ============ Cookie 使用选择（首页） ============ */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  width: calc(100% - 32px);
  max-width: 760px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-copy {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.cookie-copy p {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-btn {
  min-width: 68px;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.cookie-btn:focus-visible,
.cookie-close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.cookie-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cookie-close:hover {
  border-color: var(--line);
  background: var(--paper);
  color: var(--red-deep);
}

.cookie-close svg {
  width: 16px;
  height: 16px;
}

.cookie-reject:hover {
  border-color: var(--red);
  background: var(--paper);
  color: var(--red-deep);
}

.cookie-accept {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.cookie-accept:hover {
  opacity: 0.88;
}

@media (max-width: 640px) {
  .cookie-consent {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-btn {
    flex: 1;
    min-height: 38px;
  }
}

/* ============ 首页顶栏 V6（导航工具条 · 吸顶） ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.tb-inner {
  display: flex;
  align-items: center;
  gap: 12px 26px;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 60px;
  padding: 0 18px;
  flex-wrap: wrap;
}

.tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tb-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
}

.tb-mark svg {
  width: 14px;
  height: 14px;
}

.tb-name {
  font-family: var(--heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}

.tb-ai {
  margin-left: 2px;
  color: var(--red);
}

.tb-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.tb-nav a {
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #2b3446;
  transition: background 0.1s, color 0.1s;
}

.tb-nav a:hover {
  background: #f1f5fd;
  color: var(--red);
}

.tb-nav a[aria-current="page"] {
  background: #eaf1ff;
  color: var(--red-deep);
  font-weight: 600;
}

.tb-side {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.tb-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .tb-date-year {
    display: none;
  }
}

.tb-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #cfe0fb;
  border-radius: 0;
  background: #f7faff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tb-cta span {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.15s;
}

.tb-cta:hover {
  background: #eaf1ff;
  border-color: var(--red);
  color: var(--red-deep);
}

.tb-cta:hover span {
  transform: translateX(2px);
}

@media (max-width: 759px) {
  .tb-inner {
    min-height: 52px;
    padding: 0 18px;
    gap: 4px 14px;
  }

  .tb-date {
    display: none;
  }

  .tb-name {
    font-size: 19px;
  }

  .tb-nav a {
    padding: 4px 7px;
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .tb-cta {
    display: none;
  }

  .tb-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* ============ 深浅色切换按钮 ============ */
.tb-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #6b7688;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tb-theme:hover {
  background: #f1f5fd;
  color: var(--red);
}

.tb-theme:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.tb-theme svg {
  width: 16px;
  height: 16px;
}

.tb-theme .ico-moon {
  display: none;
}

html[data-theme="dark"] .tb-theme {
  color: #94a3bb;
}

html[data-theme="dark"] .tb-theme:hover {
  background: #1e2836;
  color: #dbe7ff;
}

html[data-theme="dark"] .tb-theme .ico-sun {
  display: none;
}

html[data-theme="dark"] .tb-theme .ico-moon {
  display: block;
}

/* ============ 深色主题 ============ */
html[data-theme="dark"] {
  --paper: #0e1420;
  --card: #151d2b;
  --ink: #dfe6f2;
  --ink-2: #8b98ae;
  --line: #263140;
  --black: #f0f5ff;
  --red: #4f8ef7;
  --red-deep: #a8c8ff;
}

html[data-theme="dark"] body {
  background: var(--paper);
  color: var(--ink);
}

/* 顶栏 */
html[data-theme="dark"] .topbar {
  background: #121a27;
  border-bottom-color: #212c3b;
}

html[data-theme="dark"] .tb-nav a {
  color: #b9c4d6;
}

html[data-theme="dark"] .tb-nav a:hover {
  background: #1e2836;
  color: #fff;
}

html[data-theme="dark"] .tb-nav a[aria-current="page"] {
  background: #1c3157;
  color: #cfe0ff;
}

html[data-theme="dark"] .tb-date {
  color: #8593a9;
}

html[data-theme="dark"] .tb-cta {
  background: #16233a;
  border-color: #2b4570;
  color: #a8c8ff;
}

html[data-theme="dark"] .tb-cta:hover {
  background: #1b2b47;
  border-color: #4f8ef7;
}

/* 宣传区 */
html[data-theme="dark"] .hero-left {
  background: linear-gradient(132deg, #131e33 0%, #131b28 55%, #141b26 100%);
  border-color: #26344a;
  box-shadow: none;
}

html[data-theme="dark"] .hero-left::before {
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.12) 1px, transparent 1px);
}

html[data-theme="dark"] .hero-tag {
  background: rgba(79, 142, 247, 0.12);
  border-color: rgba(79, 142, 247, 0.4);
  color: #a8c8ff;
}

html[data-theme="dark"] .hero-title em {
  box-shadow: inset 0 -0.32em 0 rgba(79, 142, 247, 0.22);
}

html[data-theme="dark"] .hero-feats li {
  background: #182233;
  border-color: #2a374a;
  color: #b9c4d6;
}

html[data-theme="dark"] .hero-feats li:hover {
  background: #1d2b42;
  border-color: #3f6bd0;
  color: #dbe7ff;
}

html[data-theme="dark"] .hero .btn-primary {
  background: #1b3055;
  border-color: #2f4d80;
  color: #cfe0ff;
}

html[data-theme="dark"] .hero .btn-primary:hover {
  background: #22406f;
  border-color: #4f8ef7;
}

html[data-theme="dark"] .btn-ghost {
  background: transparent;
  border-color: #334054;
  color: #dfe6f2;
}

html[data-theme="dark"] .btn-ghost:hover {
  background: #1b2433;
  border-color: #4f8ef7;
  color: #a8c8ff;
}

/* 卡片与通用块 */
html[data-theme="dark"] .card,
html[data-theme="dark"] .ad-box,
html[data-theme="dark"] .ad,
html[data-theme="dark"] .ad-inner,
html[data-theme="dark"] .cats-bar,
html[data-theme="dark"] .friends,
html[data-theme="dark"] .float-panel,
html[data-theme="dark"] .back-top {
  background: var(--card);
  border-color: var(--line);
}

html[data-theme="dark"] .ad-box {
  background: linear-gradient(180deg, #17233a 0%, #151d2b 100%);
}

html[data-theme="dark"] .tool-item {
  background: var(--card);
  border-color: var(--line);
}

html[data-theme="dark"] .tool-item:hover {
  background: #1b2536;
  border-color: #3f6bd0;
}

html[data-theme="dark"] .tool-logo,
html[data-theme="dark"] .ad-box-icon {
  background: #1c2637;
  border-color: #2a374a;
}

html[data-theme="dark"] .cat-list li:hover {
  background: rgba(79, 142, 247, 0.1);
}

html[data-theme="dark"] .cat-index li a {
  background: #1b2536;
  border-color: #2b3748;
  color: #cfd9e8;
}

html[data-theme="dark"] .cat-index li a:hover {
  background: #22314c;
  border-color: var(--red);
  color: #dbe7ff;
}

html[data-theme="dark"] .friend-list li a:hover {
  background: rgba(79, 142, 247, 0.1);
}

/* 快讯 / 问答 / 软件 / 文章列表 */
html[data-theme="dark"] .news-item:hover,
html[data-theme="dark"] .qa-item:hover,
html[data-theme="dark"] .soft-item:hover,
html[data-theme="dark"] .art-item:hover,
html[data-theme="dark"] .share .art-item:hover,
html[data-theme="dark"] .qa .qa-item:hover,
html[data-theme="dark"] .float-list a:hover {
  background: #1a2332;
}

html[data-theme="dark"] .share .art-title,
html[data-theme="dark"] .qa .qa-q {
  color: #d5deee;
}

html[data-theme="dark"] .share .art-item:hover .art-title,
html[data-theme="dark"] .qa .qa-item:hover .qa-q {
  color: #a8c8ff;
}

html[data-theme="dark"] .tag {
  background: #1a2433;
  border-color: #2b3648;
  color: #c2cddd;
}

html[data-theme="dark"] .tag:hover {
  background: #1d3055;
  border-color: #3f6bd0;
  color: #cfe0ff;
}

html[data-theme="dark"] .news-tag,
html[data-theme="dark"] .soft-tag,
html[data-theme="dark"] .ad-box-flag,
html[data-theme="dark"] .ad-flag {
  background: rgba(79, 142, 247, 0.16);
  border-color: rgba(79, 142, 247, 0.35);
  color: #a8c8ff;
}

html[data-theme="dark"] .soft-logo {
  background: #1c2637;
  border-color: #2a374a;
}

html[data-theme="dark"] .soft-dl {
  border-color: #2b4570;
  color: #a8c8ff;
}

html[data-theme="dark"] .soft-dl:hover {
  background: #22406f;
  border-color: #4f8ef7;
  color: #fff;
}

/* 页脚 */
html[data-theme="dark"] .footer {
  border-top-color: var(--line);
}

html[data-theme="dark"] .footer a {
  color: #b9c4d6;
}

html[data-theme="dark"] .footer a:hover {
  color: #a8c8ff;
}

/* ============ 深色主题 · 广告位 ============ */
html[data-theme="dark"] .ad {
  border-color: #2b4570;
  background: linear-gradient(90deg, #16243f 0%, #131c2b 58%, #121a27 100%);
}

html[data-theme="dark"] .ad:hover {
  border-color: #4f8ef7;
}

html[data-theme="dark"] .ad-flag,
html[data-theme="dark"] .ad-box-flag {
  background: #1b2941;
  border-color: #2b4570;
  color: #9db4d6;
}

html[data-theme="dark"] .ad-icon,
html[data-theme="dark"] .ad-box-icon {
  background: #18243a;
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: none;
  color: #7fb0ff;
}

html[data-theme="dark"] .ad-title {
  color: #e8eefb;
}

html[data-theme="dark"] .ad-desc {
  color: #93a2bb;
}

html[data-theme="dark"] .ad-cta {
  background: rgba(79, 142, 247, 0.16);
  color: #bcd6ff;
}

html[data-theme="dark"] .ad-inner:hover .ad-cta {
  background: rgba(79, 142, 247, 0.28);
}

html[data-theme="dark"] .ad-box {
  border-color: #2a3f66;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(79, 142, 247, 0.16) 0%, transparent 62%),
    linear-gradient(180deg, #16223a 0%, #141c2b 100%);
}

html[data-theme="dark"] .ad-box-title {
  color: #e8eefb;
}

html[data-theme="dark"] .ad-box-desc {
  color: #93a2bb;
}

html[data-theme="dark"] .ad-box-btn {
  background: #2f63c8;
  color: #fff;
}

html[data-theme="dark"] .ad-box-inner:hover .ad-box-btn {
  background: #3f79e6;
}

html[data-theme="dark"] .ad-box-copy {
  color: #6f7d94;
}
