/* =========================================================
   没节操网址导航 · 子频道公共样式 channel.css
   适用 more/ 目录全部频道页（body.channel-page）
   毛玻璃主题 · 浅/深双主题（跟随首页 localStorage: app-theme）
   设计令牌对齐首页 css/app.css（冷调科技绿）
   ========================================================= */

@charset "UTF-8";

/* ===== 设计令牌（浅色） ===== */
:root {
  --ch-text: #172322;
  --ch-text-soft: #526463;
  --ch-text-mute: #819392;
  --ch-accent: #07c160;
  --ch-accent-press: #06ad56;
  --ch-accent-ink: #057a3d;
  --ch-accent-weak: rgba(7, 193, 96, 0.1);

  /* 大块玻璃面板（顶栏 / 面包屑 / 简介） */
  --ch-glass-panel: rgba(246, 250, 250, 0.72);
  /* 小卡片玻璃材质，对齐首页 --fav-glass */
  --ch-fav-glass: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.82),
    rgba(234, 247, 241, 0.34)
  );
  --ch-glass-border: rgba(255, 255, 255, 0.78);
  --ch-border: rgba(30, 70, 69, 0.09);
  --ch-border-strong: rgba(30, 70, 69, 0.16);
  --ch-tile: #ffffff;

  --ch-shadow-panel:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 34px -22px rgba(20, 57, 56, 0.35);
  --ch-shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 7px 16px -11px rgba(9, 74, 45, 0.28);
  --ch-shadow-card-hover:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 12px 24px -13px rgba(9, 74, 45, 0.42),
    0 16px 32px -18px rgba(7, 193, 96, 0.28);

  --ch-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ch-sans:
    "LXGW WenKai Screen", "LXGW WenKai", "Microsoft YaHei", -apple-system,
    "PingFang SC", sans-serif;
  --ch-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ===== 设计令牌（深色 · 显式切换） ===== */
:root[data-theme="dark"] {
  --ch-text: #e8eaee;
  --ch-text-soft: #a3abb8;
  --ch-text-mute: #7c8593;
  --ch-accent: #07c160;
  --ch-accent-press: #20cc73;
  --ch-accent-ink: #35d783;
  --ch-accent-weak: rgba(7, 193, 96, 0.14);

  --ch-glass-panel: rgba(22, 26, 34, 0.62);
  --ch-fav-glass: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  --ch-glass-border: rgba(255, 255, 255, 0.12);
  --ch-border: rgba(255, 255, 255, 0.07);
  --ch-border-strong: rgba(255, 255, 255, 0.14);
  --ch-tile: #232833;

  --ch-shadow-panel:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 36px -22px rgba(0, 0, 0, 0.8);
  --ch-shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px -12px rgba(0, 0, 0, 0.72);
  --ch-shadow-card-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px -14px rgba(0, 0, 0, 0.9),
    0 16px 32px -20px rgba(7, 193, 96, 0.32);
}

/* ===== 设计令牌（深色 · 跟随系统） ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --ch-text: #e8eaee;
    --ch-text-soft: #a3abb8;
    --ch-text-mute: #7c8593;
    --ch-accent: #07c160;
    --ch-accent-press: #20cc73;
    --ch-accent-ink: #35d783;
    --ch-accent-weak: rgba(7, 193, 96, 0.14);

    --ch-glass-panel: rgba(22, 26, 34, 0.62);
    --ch-fav-glass: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.03)
    );
    --ch-glass-border: rgba(255, 255, 255, 0.12);
    --ch-border: rgba(255, 255, 255, 0.07);
    --ch-border-strong: rgba(255, 255, 255, 0.14);
    --ch-tile: #232833;

    --ch-shadow-panel:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 16px 36px -22px rgba(0, 0, 0, 0.8);
    --ch-shadow-card:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 8px 18px -12px rgba(0, 0, 0, 0.72);
    --ch-shadow-card-hover:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 14px 28px -14px rgba(0, 0, 0, 0.9),
      0 16px 32px -20px rgba(7, 193, 96, 0.32);
  }
}

/* ===== 基础重置（本文件仅频道页加载，可安全使用全局选择器） ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
ul,
ol,
li,
dl,
dd,
dt,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
img {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  border: 0;
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: var(--ch-text);
  transition: color 0.2s var(--ch-ease);
}

a:hover,
a:focus {
  color: var(--ch-accent-ink) !important;
  text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: 100%;
}

input,
button,
textarea,
select {
  font-family: inherit;
  outline: none;
}

::selection {
  background: var(--ch-accent-weak);
  color: var(--ch-accent-ink);
}

/* 滚动条美化 */
.channel-page ::-webkit-scrollbar {
  width: 9px;
  height: 8px;
}

.channel-page ::-webkit-scrollbar-track-piece {
  background-color: transparent;
}

.channel-page ::-webkit-scrollbar-thumb {
  background-color: rgba(120, 140, 138, 0.45);
  border-radius: 7px;
}

.channel-page ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 140, 138, 0.7);
}

/* ===== 页面底色：固定渐变光斑，衬托毛玻璃 ===== */
.channel-page {
  position: relative;
  min-height: 100vh;
  color: var(--ch-text);
  font-family: var(--ch-sans);
  background:
    radial-gradient(
      1100px 520px at 88% -12%,
      rgba(7, 193, 96, 0.14),
      transparent 62%
    ),
    radial-gradient(
      900px 520px at -8% 16%,
      rgba(96, 165, 250, 0.13),
      transparent 60%
    ),
    radial-gradient(
      820px 480px at 50% 112%,
      rgba(255, 196, 84, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #eef4f1 0%, #e6eeec 100%);
  background-attachment: fixed;
  transition: color 0.3s var(--ch-ease);
}

:root[data-theme="dark"] .channel-page {
  background:
    radial-gradient(
      1100px 520px at 88% -12%,
      rgba(7, 193, 96, 0.1),
      transparent 62%
    ),
    radial-gradient(
      900px 520px at -8% 16%,
      rgba(80, 130, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      820px 480px at 50% 112%,
      rgba(255, 196, 84, 0.05),
      transparent 60%
    ),
    linear-gradient(180deg, #0d0f13 0%, #10131a 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .channel-page {
    background:
      radial-gradient(
        1100px 520px at 88% -12%,
        rgba(7, 193, 96, 0.1),
        transparent 62%
      ),
      radial-gradient(
        900px 520px at -8% 16%,
        rgba(80, 130, 255, 0.1),
        transparent 60%
      ),
      radial-gradient(
        820px 480px at 50% 112%,
        rgba(255, 196, 84, 0.05),
        transparent 60%
      ),
      linear-gradient(180deg, #0d0f13 0%, #10131a 100%);
  }
}

/* ===== 自研网格系统（替代 Bootstrap 3.3.7 + 4.4.1 grid） ===== */
.channel-page {
  font-size: 14px;
  line-height: 1.5;
}

.channel-page .container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.channel-page .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.channel-page .col {
  position: relative;
  flex: 1 1 0%;
  width: 100%;
  max-width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

/* 默认每行 2 列；≥576px 3 列；≥768px 4 列；≥992px 6 列 */
.channel-page .row-cols-2 > .col {
  flex: 0 0 50%;
  max-width: 50%;
}

@media (min-width: 576px) {
  .channel-page .container {
    max-width: 540px;
  }

  .channel-page .row-cols-sm-3 > .col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 768px) {
  .channel-page .container {
    max-width: 720px;
  }

  .channel-page .row-cols-md-4 > .col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 992px) {
  .channel-page .container {
    max-width: 960px;
  }

  .channel-page .row-cols-lg-6 > .col {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
}

@media (min-width: 1200px) {
  .channel-page .container {
    max-width: 1140px;
  }
}

/* 文本对齐工具类 */
.channel-page .text-right {
  text-align: right;
}

.channel-page .text-center {
  text-align: center;
}

/* 内容层置于光斑之上 */
.channel-page .container,
.channel-page nav {
  position: relative;
  z-index: 1;
}

/* ===== 顶部栏：整块玻璃 ===== */
.channel-page .header {
  display: flex;
  align-items: center;
  gap: 18px;
  height: auto;
  margin-top: 26px;
  padding: 14px 22px;
  background: var(--ch-glass-panel);
  border: 1.5px solid var(--ch-glass-border);
  border-radius: 20px;
  box-shadow: var(--ch-shadow-panel);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.channel-page .header > a {
  flex: 0 0 auto;
  line-height: 0;
}

/* 品牌 Logo（与首页 .brand 同款内联 SVG） */
.channel-page .header .brand {
  display: flex;
  align-items: center;
  color: var(--ch-text);
}

.channel-page .brand-logo {
  width: auto;
  height: 44px;
  display: block;
  overflow: visible;
}

.channel-page .brand-logo-emblem {
  transform-origin: 38px 38px;
  transition: transform 0.35s var(--ch-ease);
}

.channel-page .brand-logo-ring-back,
.channel-page .brand-logo-ring,
.channel-page .brand-logo-ring-highlight,
.channel-page .brand-logo-fall-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.channel-page .brand-logo-ring-back {
  stroke: var(--ch-accent-weak);
}

.channel-page .brand-logo-ring {
  stroke: var(--ch-accent);
  filter: drop-shadow(0 3px 3px rgba(7, 85, 48, 0.18));
}

.channel-page .brand-logo-ring-highlight {
  stroke: rgba(255, 255, 255, 0.5);
}

.channel-page .brand-logo-fall-line {
  stroke: #ffb545;
}

.channel-page .brand-logo-fragment-shape,
.channel-page .brand-logo-domain-dot {
  fill: #ffb545;
}

.channel-page .brand-logo-fragment {
  transform-origin: 61px 58px;
  transition: transform 0.35s var(--ch-ease);
}

.channel-page .brand-logo-word {
  fill: var(--ch-text);
  font-family:
    "ZCOOL KuaiLe", "LXGW WenKai Screen", "Microsoft YaHei", sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
}

.channel-page .brand-logo-word-accent {
  fill: var(--ch-accent-ink);
}

.channel-page .brand-logo-domain {
  fill: var(--ch-text-mute);
  font-family: var(--ch-mono);
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.channel-page .brand:hover .brand-logo-emblem {
  transform: rotate(-4deg);
}

.channel-page .brand:hover .brand-logo-fragment {
  transform: translateY(3px) rotate(8deg);
}

.channel-page .header .top-title {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ch-text-soft);
}

.channel-page #time {
  float: none;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 15px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--ch-accent-ink);
  background: var(--ch-accent-weak);
  border: 1px solid color-mix(in srgb, var(--ch-accent) 28%, transparent);
  border-radius: 999px;
}

/* ===== 面包屑：玻璃胶囊 ===== */
.channel-page .breadcrumb-nav {
  margin-top: 14px;
}

.channel-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 9px 18px;
  font-size: 13px;
  background: var(--ch-glass-panel);
  border: 1.5px solid var(--ch-glass-border);
  border-radius: 999px;
  box-shadow: var(--ch-shadow-panel);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.channel-page .breadcrumb > li {
  color: var(--ch-text-mute);
}

.channel-page .breadcrumb > li + li::before {
  content: "/";
  padding: 0 8px;
  color: var(--ch-border-strong);
}

.channel-page .breadcrumb a {
  color: var(--ch-text-soft);
}

.channel-page .breadcrumb a:hover {
  color: var(--ch-accent-ink) !important;
}

.channel-page .breadcrumb > .active {
  color: var(--ch-accent-ink);
  font-weight: 700;
}

/* ===== 频道简介：玻璃卡片 ===== */
.channel-page .ai-intro,
.channel-page .channel-intro {
  margin-top: 14px;
}

.channel-page .ai-intro p,
.channel-page .channel-intro p {
  margin: 0;
  padding: 16px 22px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ch-text-soft);
  background: var(--ch-glass-panel);
  border: 1.5px solid var(--ch-glass-border);
  border-radius: 16px;
  box-shadow: var(--ch-shadow-panel);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.channel-page .ai-intro strong,
.channel-page .channel-intro strong {
  color: var(--ch-accent-ink);
  font-weight: 700;
}

/* 提示条 */
.channel-page .waring {
  width: 100%;
  padding: 10px 16px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ch-text-soft);
  background: color-mix(in srgb, #ffb545 16%, var(--ch-glass-panel));
  border: 1px solid color-mix(in srgb, #ffb545 32%, transparent);
  border-radius: 12px;
}

/* ===== 分区标题：绿色竖标 + 贯穿细线 ===== */
.channel-page .title {
  height: auto;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  /* 保持 .container 的 auto 居中；左右各 7px 与书签卡片列边缘对齐 */
  margin: 28px auto 2px;
  padding: 0 7px;
  border: 0;
}

/* Bootstrap3 给 .container::before 注入 clearfix 占位，flex 化后会成为首个
   flex item 并产生一个 gap 位移，这里移除它 */
.channel-page .title::before {
  content: none;
}

.channel-page .title h2,
.channel-page .title > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ch-text);
}

.channel-page .title h2::before,
.channel-page .title > span:first-child::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 19px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2dd47a, var(--ch-accent));
  box-shadow: 0 2px 8px -2px rgba(7, 193, 96, 0.6);
}

.channel-page .title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--ch-border-strong), transparent);
}

.channel-page .title .remark {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ch-accent-ink);
}

/* ===== 书签玻璃卡片 ===== */
.channel-page .main {
  margin-top: 12px;
}

.channel-page .main .col {
  margin-bottom: 14px;
  padding: 0 7px;
}

.channel-page .main .col .box-link {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 13px 15px;
  overflow: hidden;
  background: var(--ch-fav-glass);
  border: 1.5px solid var(--ch-glass-border);
  border-radius: 14px;
  box-shadow: var(--ch-shadow-card);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  transition:
    transform 0.22s var(--ch-ease),
    border-color 0.22s var(--ch-ease),
    box-shadow 0.22s var(--ch-ease),
    background 0.22s var(--ch-ease);
}

.channel-page .main .col .box-link:hover,
.channel-page .main .col .box-link:focus {
  transform: translateY(-4px);
  background: var(--ch-fav-glass);
  border-color: color-mix(in srgb, var(--ch-accent) 42%, transparent);
  box-shadow: var(--ch-shadow-card-hover);
}

.channel-page .main .box-img {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.channel-page .main .box-img img {
  float: none;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 9px;
  object-fit: cover;
  background: var(--ch-tile);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 6px -3px rgba(16, 24, 40, 0.28);
}

.channel-page .main .box-img .name {
  float: none;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  max-width: 100%;
  color: var(--ch-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s var(--ch-ease);
}

/* 站点名下方主色细线，悬停从中心展开（同首页 fav-grid） */
.channel-page .main .box-img .name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--ch-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ch-ease);
}

.channel-page .main .box-link:hover .name,
.channel-page .main .box-link:focus .name {
  color: var(--ch-accent-ink);
}

.channel-page .main .box-link:hover .name::after,
.channel-page .main .box-link:focus .name::after {
  transform: scaleX(1);
}

/* 双行卡片描述文字 */
.channel-page .main .box-text {
  margin-top: 3px;
  height: 22px;
  max-width: 100%;
  overflow: hidden;
  color: var(--ch-text-mute);
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* NEW 角标 */
.channel-page .main .col .box-link .new {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 30px;
  height: 14px;
  float: none;
  background: linear-gradient(135deg, #2dd47a, var(--ch-accent));
  border-radius: 4px;
}

/* ===== 页脚：与首页 site-footer 同款排版（品牌行 + 免责声明 + 版权行） ===== */
.channel-page .site-footer {
  margin-top: 44px;
  padding: 0 15px 32px;
  color: var(--ch-text-mute);
  font-size: 12px;
}

.channel-page .footer-inner {
  padding: 20px 4px 0;
  border-top: 1px solid var(--ch-border);
}

.channel-page .site-footer a,
.channel-page .site-footer .footer-icp {
  color: var(--ch-text-soft);
  transition: color 0.16s var(--ch-ease);
}

.channel-page .footer-privacy {
  margin-left: auto;
}

.channel-page .site-footer a:hover {
  color: var(--ch-accent-ink) !important;
}

.channel-page .footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.channel-page .footer-brand-link {
  flex: 0 0 auto;
}

.channel-page .footer-brand-link .brand-logo {
  height: 34px;
}

.channel-page .footer-tagline {
  margin: 0;
  max-width: 620px;
  color: var(--ch-text-soft);
  font-size: 12.5px;
  line-height: 1.75;
}

.channel-page .footer-disclaimer {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--ch-border);
  border-radius: 10px;
  background: #f6f9f9;
  color: var(--ch-text-mute);
  font-size: 12px;
  line-height: 1.9;
}

:root[data-theme="dark"] .channel-page .footer-disclaimer {
  background: #14171d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"])
    .channel-page
    .footer-disclaimer {
    background: #14171d;
  }
}

.channel-page .footer-disclaimer strong {
  color: var(--ch-text-soft);
  font-weight: 600;
}

.channel-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
}

/* 右下角悬浮挂件（旧版咸鱼） */
.channel-page .sakana-box {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 80;
}

/* ===== 响应式 ===== */
@media only screen and (max-width: 768px) {
  .channel-page .header {
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
  }

  .channel-page .brand-logo {
    height: 38px;
  }

  .channel-page .header .top-title {
    font-size: 14px;
  }

  .channel-page .title {
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .channel-page #time {
    display: none;
  }

  .channel-page .site-footer {
    padding: 0 15px 28px;
  }

  .channel-page .footer-inner {
    padding-top: 16px;
  }

  .channel-page .footer-brand {
    gap: 10px;
  }

  .channel-page .footer-tagline {
    flex-basis: 100%;
    font-size: 12px;
    line-height: 1.7;
  }

  .channel-page .footer-disclaimer {
    font-size: 11.5px;
    line-height: 1.8;
  }

  .channel-page .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-page .footer-bottom .footer-privacy {
    margin-left: 0;
  }
}

/* 尊重系统动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .channel-page *,
  .channel-page *::before,
  .channel-page *::after {
    transition: none !important;
  }
}
