/* =====================================================================
   Sveev AI · 流体渐变 · 飞书风格列表模板（gradient-templates2）
   背景 / 顶部导航 / 移动端抽屉 由 ../styles/gradient.css + components.css 提供，
   本文件只负责「飞书风格」信息密集列表布局 + 科技感装饰，全部本地资源、离线可用。
   ===================================================================== */

:root {
  --fs-border: rgba(109, 93, 246, 0.16);
  --fs-border-strong: rgba(109, 93, 246, 0.4);
  --fs-soft: rgba(109, 93, 246, 0.07);
  --fs-shadow: 0 18px 46px rgba(60, 50, 130, 0.08);
  --fs-shadow-hover: 0 24px 60px rgba(109, 93, 246, 0.2);
  --fs-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fs-side-w: 244px;
  --fs-ink-3: #a7a3c8;
}

/* ---------- 科技感：横向扫描线（仅本目录使用，避免污染共享样式） ---------- */
.fs-scan {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    180deg,
    rgba(109, 93, 246, 0.05) 0px,
    rgba(109, 93, 246, 0.05) 1px,
    transparent 1px,
    transparent 7px
  );
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

/* ================= 主容器 ================= */
.fs-page {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 70px;
}
.fs-shell {
  display: grid;
  grid-template-columns: var(--fs-side-w) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* ================= 左侧导航（飞书式） ================= */
.fs-side {
  position: sticky;
  top: 88px;
  padding: 16px 14px;
  border-radius: 20px;
}
.fs-side-group + .fs-side-group {
  margin-top: 18px;
}
.fs-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--fs-ink-3);
  text-transform: uppercase;
  padding: 0 10px 8px;
}
.fs-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fs-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-sub);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fs-side-link .fs-side-ico {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex: none;
}
.fs-side-link .fs-side-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-side-link .fs-side-count {
  flex: none;
  font-family: var(--fs-mono);
  font-size: 11.5px;
  color: var(--fs-ink-3);
}
.fs-side-link:hover {
  background: var(--fs-soft);
  color: var(--accent);
}
.fs-side-link.is-active {
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.16), rgba(0, 184, 212, 0.14));
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--fs-border-strong);
  padding: 8px 9px;
}
.fs-side-link.is-active .fs-side-count {
  color: var(--accent);
}
.fs-side-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.1), rgba(0, 184, 212, 0.08));
  border: 1px solid var(--fs-border);
}
.fs-side-card b {
  font-size: 12.5px;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}
.fs-side-card p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}
.fs-side-card .fs-track {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.fs-side-card .fs-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* 付费资源卡片（single-aitool.php 左侧） */
.fs-side-card--pay {
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.12), rgba(0, 184, 212, 0.1));
  border: 1px solid rgba(109, 93, 246, 0.18);
  box-shadow: 0 10px 28px rgba(109, 93, 246, 0.1);
}
.fs-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.fs-pay-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.fs-pay-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 10px rgba(109, 93, 246, 0.25);
}
.fs-pay-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.fs-pay-price {
  font-size: 26px;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.8px;
}
.fs-pay-original {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}
.fs-pay-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sub);
}
.fs-pay-progress {
  margin-bottom: 14px;
}
.fs-pay-progress .fs-track {
  margin-top: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.85);
}
.fs-pay-progress-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-sub);
  text-align: right;
}
.fs-side-card__info {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(109, 93, 246, 0.12);
  font-size: 12px;
  color: var(--text-sub);
}
.fs-side-card__info p {
  margin: 0 0 4px;
}
.fs-side-card__info p:last-child {
  margin-bottom: 0;
}
.fs-side-card__info a {
  color: var(--accent);
  text-decoration: none;
}
.fs-side-card__info a:hover {
  text-decoration: underline;
}
.fs-pay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.6;
}
.fs-pay-meta + .fs-pay-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(109, 93, 246, 0.15);
}
.fs-pay-meta span {
  color: var(--text-sub);
  font-size: 11.5px;
  flex-shrink: 0;
}
.fs-pay-meta strong {
  color: var(--text-main);
  font-weight: 700;
  margin-left: auto;
}
.fs-pay-meta a {
  margin-left: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  text-decoration: none;
  flex-shrink: 0;
}
.fs-pay-meta a:hover {
  text-decoration: none;
  opacity: 0.9;
}
.fs-pay-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.fs-pay-link-row strong {
  font-size: 12.5px;
  color: var(--text-main);
}
.fs-pay-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(109, 93, 246, 0.22);
}
.fs-pay-copy svg {
  width: 13px;
  height: 13px;
}
.fs-pay-copy:hover {
  opacity: 0.9;
}
.fs-pay-link-content {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(109, 93, 246, 0.12);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-main);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.fs-pay-link-tip {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-sub);
}
.fs-side-card__actions {
  margin-top: 12px;
}
.fs-side-card__actions .fs-btn,
.fs-side-card--pay form .fs-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
}
.fs-side-card__actions .fs-btn:disabled {
  background: #e0e0e0;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
}

/* ================= 右侧主区 ================= */
.fs-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 面包屑 */
.fs-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
}
.fs-crumb a {
  color: var(--accent);
  text-decoration: none;
}
.fs-crumb a:hover {
  text-decoration: underline;
}
.fs-crumb .sep {
  opacity: 0.45;
}
.fs-crumb .cur {
  color: var(--text-main);
  font-weight: 600;
}

/* 页面头部 */
.fs-head {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border-radius: 22px;
  border: 1px solid var(--fs-border);
  background:
    radial-gradient(circle at 92% 4%, rgba(0, 184, 212, 0.14), transparent 52%),
    radial-gradient(circle at 2% 100%, rgba(255, 126, 179, 0.12), transparent 52%),
    linear-gradient(135deg, #ffffff 0%, #f7f6ff 60%, #effbff 100%);
  box-shadow: var(--fs-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.fs-head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
}
.fs-head::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 93, 246, 0.2), transparent 66%);
  pointer-events: none;
}
.fs-title {
  font-size: clamp(23px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 8px;
}
.fs-title span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.fs-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 640px;
}
.fs-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* 按钮 */
.fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s, background 0.24s;
}
.fs-btn:active {
  transform: translateY(1px) scale(0.99);
}
.fs-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(109, 93, 246, 0.3);
}
.fs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(109, 93, 246, 0.42);
}
.fs-btn-ghost {
  background: rgba(109, 93, 246, 0.08);
  color: var(--text-main);
  border-color: var(--fs-border-strong);
}
.fs-btn-ghost:hover {
  background: rgba(109, 93, 246, 0.16);
  transform: translateY(-2px);
}

/* ================= 信息统计条 ================= */
.fs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fs-stat {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--fs-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--fs-shadow);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s, box-shadow 0.26s;
}
.fs-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}
.fs-stat:hover {
  transform: translateY(-4px);
  border-color: var(--fs-border-strong);
  box-shadow: var(--fs-shadow-hover);
}
.fs-stat .fs-stat-label {
  font-size: 12.5px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.fs-stat .fs-stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  font-family: var(--fs-mono);
}
.fs-stat .fs-stat-trend {
  font-size: 12px;
  margin-top: 9px;
  color: var(--fs-ink-3);
}
.fs-stat .fs-stat-trend.up {
  color: #0f9d76;
}
.fs-stat .fs-stat-trend.down {
  color: #d9488c;
}
.fs-stat .fs-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  position: absolute;
  right: 14px;
  bottom: 14px;
  opacity: 0.8;
}
.fs-stat .fs-spark i {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

/* ================= 工具栏 ================= */
.fs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--fs-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--fs-shadow);
}
.fs-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--fs-border);
}
.fs-search .fs-search-ico {
  color: var(--fs-ink-3);
  display: inline-flex;
}
.fs-search .fs-search-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fs-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
}
.fs-search input::placeholder {
  color: var(--fs-ink-3);
}
.fs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.fs-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--fs-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fs-chip:hover {
  color: var(--accent);
  border-color: var(--fs-border-strong);
}
.fs-chip.is-active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(109, 93, 246, 0.28);
}
.fs-toolbar-spacer {
  flex: 1 1 auto;
}
.fs-select {
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--fs-border);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  outline: none;
}
.fs-view {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: rgba(109, 93, 246, 0.08);
  border: 1px solid var(--fs-border);
}
.fs-view-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}
.fs-view-btn.is-active {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(60, 50, 130, 0.14);
}

/* ================= 通用列表容器 ================= */
.fs-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--fs-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--fs-shadow);
  overflow: hidden;
}
.fs-list-head {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-sub);
  background: linear-gradient(180deg, rgba(109, 93, 246, 0.07), rgba(109, 93, 246, 0));
  border-bottom: 1px solid var(--fs-border);
}

/* ---------- 文章列表（密集行） ---------- */
.fs-list--article .fs-list-head,
.fs-list--article .fs-row {
  grid-template-columns: 38px minmax(0, 1fr) 158px 108px 96px;
}
.fs-row {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(109, 93, 246, 0.1);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
.fs-row:last-child {
  border-bottom: none;
}
.fs-row:hover {
  background: rgba(109, 93, 246, 0.05);
}
.fs-idx {
  font-family: var(--fs-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--fs-ink-3);
}
.fs-row:hover .fs-idx {
  color: var(--accent);
}
.fs-row-main {
  min-width: 0;
}
.fs-row-main h4 {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fs-row:hover .fs-row-main h4 {
  color: var(--accent);
}
.fs-row-main p {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fs-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.fs-tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #5b4be0;
  background: rgba(109, 93, 246, 0.1);
  border: 1px solid rgba(109, 93, 246, 0.22);
  white-space: nowrap;
}
.fs-tag.blue {
  color: #0789a0;
  background: rgba(0, 184, 212, 0.1);
  border-color: rgba(0, 184, 212, 0.26);
}
.fs-tag.pink {
  color: #d9488c;
  background: rgba(255, 126, 179, 0.12);
  border-color: rgba(255, 126, 179, 0.3);
}
.fs-tag.gold {
  color: #a97520;
  background: rgba(214, 158, 62, 0.13);
  border-color: rgba(214, 158, 62, 0.3);
}
.fs-tag.dim {
  color: var(--text-sub);
  background: rgba(31, 35, 64, 0.05);
  border-color: rgba(31, 35, 64, 0.12);
}
.fs-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fs-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.fs-author .fa-txt {
  min-width: 0;
}
.fs-author .fa-name {
  font-size: 12.5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-author .fa-sub {
  font-size: 11px;
  color: var(--fs-ink-3);
}
.fs-col-stat {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.6;
}
.fs-col-stat b {
  color: var(--text-main);
  font-family: var(--fs-mono);
}
.fs-time {
  font-size: 12px;
  color: var(--fs-ink-3);
  font-family: var(--fs-mono);
  text-align: right;
}
.fs-time .fs-status {
  display: inline-block;
  margin-top: 5px;
  font-family: inherit;
}
.fs-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.fs-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.fs-status.pub {
  color: #0f9d76;
  background: rgba(15, 157, 118, 0.1);
}
.fs-status.draft {
  color: #a97520;
  background: rgba(214, 158, 62, 0.14);
}
.fs-status.review {
  color: #0789a0;
  background: rgba(0, 184, 212, 0.12);
}

/* 紧凑模式（视图切换） */
.fs-list--article.is-compact .fs-row {
  padding: 9px 18px;
}
.fs-list--article.is-compact .fs-row-main p,
.fs-list--article.is-compact .fs-row-tags {
  display: none;
}

/* ---------- 图片列表（网格） ---------- */
.fs-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 18px;
}
.fs-img-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fs-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s, box-shadow 0.26s;
}
.fs-img-card:hover {
  transform: translateY(-5px);
  border-color: var(--fs-border-strong);
  box-shadow: var(--fs-shadow-hover);
}
.fs-img-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}
.fs-img-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.34), transparent 46%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 8px);
}
.fs-img-thumb .fs-img-ico {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(31, 35, 64, 0.25));
}
.fs-img-thumb .fs-img-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 20, 45, 0.42);
  backdrop-filter: blur(4px);
}
.fs-img-thumb .fs-img-size {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--fs-mono);
  color: #fff;
  background: rgba(20, 20, 45, 0.42);
  backdrop-filter: blur(4px);
}
.fs-img-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fs-img-body h4 {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-img-body p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fs-img-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(109, 93, 246, 0.1);
  padding-top: 10px;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--fs-ink-3);
}
.fs-img-foot .fs-img-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 图文列表（图文流） ---------- */
.fs-feed {
  display: flex;
  flex-direction: column;
  padding: 6px 18px;
}
.fs-feed-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(109, 93, 246, 0.1);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
.fs-feed-item:last-child {
  border-bottom: none;
}
.fs-feed-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: rgba(255, 255, 255, 0.92);
}
.fs-feed-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.3), transparent 48%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 8px);
}
.fs-feed-thumb .fs-img-ico {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(31, 35, 64, 0.25));
}
.fs-feed-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fs-feed-body h4 {
  font-size: 17px;
  color: var(--text-main);
  line-height: 1.4;
}
.fs-feed-item:hover .fs-feed-body h4 {
  color: var(--accent);
}
.fs-feed-body p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fs-feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--fs-ink-3);
  margin-top: auto;
}
.fs-feed-meta .fs-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.fs-feed-meta b {
  color: var(--accent);
  font-family: var(--fs-mono);
}

/* 空结果 */
.fs-empty {
  display: none;
  padding: 46px 20px;
  text-align: center;
  color: var(--text-sub);
  font-size: 13.5px;
}
.fs-empty.is-show {
  display: block;
}

/* ================= 分页 ================= */
.fs-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--fs-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--fs-shadow);
}
.fs-pager-info {
  font-size: 12.5px;
  color: var(--text-sub);
  font-family: var(--fs-mono);
}
.fs-pager-info b {
  color: var(--accent);
}
.fs-pager-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fs-pg {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--fs-border);
  cursor: pointer;
  transition: all 0.2s;
}
.fs-pg:hover:not(.is-active):not(:disabled) {
  border-color: var(--fs-border-strong);
  color: var(--accent);
}
.fs-pg.is-active {
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px rgba(109, 93, 246, 0.3);
}
.fs-pg:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fs-pg-dots {
  color: var(--fs-ink-3);
  padding: 0 2px;
  font-size: 13px;
}

/* ================= 页脚链接（复用流体渐变） ================= */
.fs-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}
.fs-foot-links a {
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--fs-border);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.22s;
}
.fs-foot-links a:hover {
  color: var(--accent);
  border-color: var(--fs-border-strong);
  transform: translateY(-2px);
}

/* ================= 总览页专用 ================= */
.fs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.fs-tpl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--fs-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--fs-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s, box-shadow 0.26s;
}
.fs-tpl-card:hover {
  transform: translateY(-6px);
  border-color: var(--fs-border-strong);
  box-shadow: var(--fs-shadow-hover);
}
.fs-tpl-card .fs-tpl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fs-tpl-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(109, 93, 246, 0.16), rgba(0, 184, 212, 0.14));
  border: 1px solid var(--fs-border);
}
.fs-tpl-card h3 {
  font-size: 17px;
  color: var(--text-main);
}
.fs-tpl-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  flex: 1;
}
.fs-tpl-card .fs-tpl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(109, 93, 246, 0.1);
  padding-top: 13px;
  font-size: 12px;
  color: var(--fs-ink-3);
}
.fs-tpl-card .fs-tpl-go {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

/* ================= 响应式：平板 / 手机 ================= */
@media (max-width: 1120px) {
  .fs-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .fs-side {
    position: static;
    padding: 12px;
  }
  .fs-side-group + .fs-side-group {
    margin-top: 10px;
  }
  .fs-side-title {
    display: none;
  }
  .fs-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .fs-side-link,
  .fs-side-link.is-active {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 13px;
  }
  .fs-side-link .fs-side-count {
    margin-left: 2px;
  }
  .fs-side-card {
    display: none;
  }
}

@media (max-width: 1024px) {
  .fs-list--article .fs-list-head,
  .fs-list--article .fs-row {
    grid-template-columns: 34px minmax(0, 1fr) 108px;
  }
  .fs-list--article .fs-head-author,
  .fs-list--article .fs-col-stat {
    display: none;
  }
  .fs-list-head .fs-head-author,
  .fs-list-head .fs-col-stat {
    display: none;
  }
}

@media (max-width: 900px) {
  .fs-page {
    padding: 20px 16px 60px;
  }
  .fs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fs-feed-item {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .fs-head {
    padding: 22px 20px;
    border-radius: 20px;
  }
  .fs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .fs-stat {
    padding: 13px 14px;
  }
  .fs-stat .fs-stat-value {
    font-size: 22px;
  }
  .fs-stat .fs-spark {
    display: none;
  }
  .fs-toolbar {
    gap: 9px;
  }
  /* 列表行堆叠为卡片 */
  .fs-list--article .fs-list-head {
    display: none;
  }
  .fs-list--article .fs-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 15px 15px;
  }
  .fs-list--article .fs-col-stat,
  .fs-list--article .fs-time,
  .fs-list--article .fs-head-author {
    display: none;
  }
  .fs-list--article .fs-row-main p {
    -webkit-line-clamp: 2;
  }
  .fs-img-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 14px;
  }
  .fs-img-thumb {
    font-size: 32px;
  }
  .fs-feed {
    padding: 4px 15px;
  }
  .fs-feed-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .fs-feed-thumb {
    font-size: 36px;
  }
  .fs-feed-body h4 {
    font-size: 15.5px;
  }
  .fs-pager {
    justify-content: center;
  }
  .fs-pager-info {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .fs-stats {
    grid-template-columns: 1fr 1fr;
  }
  .fs-head-actions .fs-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  .fs-img-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================================
   登录弹窗（footer.php 调用 · 飞书风格）
   结构与交互：feishu.js 的 initLoginModal()
   登录方式与插件 member_itwuyu/templates/login.php 保持一致：
   微信扫码 / 手机号登录 / 账号登录 / APP登录
   ===================================================================== */
.fs-login-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
}
.fs-login-modal.is-open {
  display: block;
}
.fs-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 58, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fs-login-modal__card {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  margin: 5vh auto 0;
  padding: 26px 26px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--fs-border);
  box-shadow: 0 28px 70px rgba(60, 50, 130, 0.22);
  animation: fsLoginIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fsLoginIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fs-login-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--fs-soft);
  color: var(--text-sub);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fs-login-modal__close:hover {
  background: rgba(109, 93, 246, 0.14);
  color: var(--accent);
}
body.fs-login-open {
  overflow: hidden;
}

/* ---------- 头部 ---------- */
.fs-login-head {
  margin-bottom: 18px;
  padding-right: 34px;
}
.fs-login-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--fs-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.fs-login-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.fs-login-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ---------- 登录方式：分段控件 ---------- */
.fs-login-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(109, 93, 246, 0.06);
  border: 1px solid var(--fs-border);
}
.fs-login-tab {
  flex: 1;
  padding: 9px 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-sub);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.fs-login-tab:hover {
  color: var(--accent);
}
.fs-login-tab.is-active {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 6px 16px rgba(109, 93, 246, 0.16);
}

/* ---------- 面板 ---------- */
.fs-login-pane {
  display: none;
}
.fs-login-pane.is-active {
  display: block;
  animation: fsLoginPane 0.22s ease;
}
@keyframes fsLoginPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 表单 ---------- */
.fs-login-field {
  display: block;
  margin-bottom: 14px;
}
.fs-login-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
}
.fs-login-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--fs-border);
  background: #fbfaff;
  font: inherit;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.fs-login-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.14);
}
.fs-login-input::placeholder {
  color: #b3aecf;
}
.fs-login-code {
  display: flex;
  gap: 10px;
}
.fs-login-code .fs-login-input {
  flex: 1;
  min-width: 0;
}
.fs-login-codebtn {
  flex: none;
  min-width: 118px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px dashed var(--fs-border-strong);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
}
.fs-login-codebtn:hover {
  background: var(--fs-soft);
}
.fs-login-btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(109, 93, 246, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.fs-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(109, 93, 246, 0.4);
}
.fs-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.fs-login-row {
  display: flex;
  justify-content: flex-end;
  margin: 2px 0 12px;
}
.fs-login-link {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
}
.fs-login-link:hover {
  text-decoration: underline;
}
.fs-login-error {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(229, 72, 77, 0.08);
  border: 1px solid rgba(229, 72, 77, 0.24);
  color: #c62a2f;
  font-size: 13px;
  line-height: 1.6;
}
.fs-login-error.is-show {
  display: block;
}
.fs-login-tip {
  margin: 0;
  font-size: 12.5px;
  color: var(--fs-ink-3);
}

/* ---------- 微信扫码 ---------- */
.fs-login-qr {
  text-align: center;
}
.fs-login-qr-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  height: 188px;
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--fs-border);
  background: #fbfaff;
}
.fs-login-qr-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.fs-login-qr-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.fs-login-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(109, 93, 246, 0.25);
  border-top-color: var(--accent);
  animation: fsLoginSpin 0.8s linear infinite;
}
@keyframes fsLoginSpin {
  to {
    transform: rotate(360deg);
  }
}
.fs-login-qr-err {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #c62a2f;
}
.fs-login-qr-state {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.fs-login-qr-state.is-ok {
  color: #07c160;
}
.fs-login-qr-state.is-error {
  color: #c62a2f;
}
.fs-login-qr-refresh {
  display: none;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--fs-border-strong);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.fs-login-qr-refresh:hover {
  background: var(--fs-soft);
}
.fs-login-qr-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- 未开放方式的占位 ---------- */
.fs-login-holder {
  padding: 26px 12px;
  text-align: center;
}
.fs-login-holder-ico {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1;
}
.fs-login-holder-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}
.fs-login-holder-tip {
  margin: 0;
  font-size: 12.5px;
  color: var(--fs-ink-3);
}

/* ---------- 底部协议 ---------- */
.fs-login-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--fs-border);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--fs-ink-3);
}
.fs-login-foot a {
  color: var(--accent);
  text-decoration: none;
}
.fs-login-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .fs-login-modal__card {
    margin-top: 3vh;
    padding: 22px 18px 16px;
    border-radius: 18px;
  }
  .fs-login-title {
    font-size: 20px;
  }
  .fs-login-tabs {
    flex-wrap: wrap;
  }
  .fs-login-tab {
    flex: 1 1 40%;
  }
  .fs-login-code {
    flex-direction: column;
  }
  .fs-login-codebtn {
    padding: 10px 14px;
  }
}
