/* ============================================================
   猫目 AI 工具导航 · 复刻演示样式
   全部为本项目手写样式，未复制原站任何 CSS 文件
   ============================================================ */
:root {
  --font: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --brand: #3f66ff;
  --brand-foreground: #fff;
  --background: #f8fafc;
  --foreground: #292e36;
  --card: #fff;
  --muted: #f5f6f8;
  --muted-foreground: #737b86;
  --accent: #e9edf2;
  --border: #e8eaee;
  --footer-bg: #000;
  --footer-fg: #fff;
  --footer-muted: #a3a3a3;
  --footer-hover: #8fa6ff;
  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(20, 30, 50, 0.04), 0 2px 8px rgba(20, 30, 50, 0.04);
  --shadow-pop: 0 8px 30px rgba(20, 30, 50, 0.14);
  --header-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.container { width: min(100% - 48px, 1480px); margin-inline: auto; }

/* ---------- 顶部推广条 ---------- */
.top-bar {
  height: 40px;
  background: linear-gradient(90deg, #0afdec, #8d28fc);
  color: #fff;
  font-size: 13px;
}
.top-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.top-bar-label {
  font-size: 11px;
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  opacity: 0.9;
  flex: none;
}
.top-bar-link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-bar-link strong { font-size: 14px; flex: none; }
.top-bar-sub { opacity: 0.92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bar-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  transition: background 0.18s;
}
.top-bar-link:hover .top-bar-action { background: rgba(255, 255, 255, 0.32); }

/* ---------- 头部导航 ---------- */
.masthead { position: sticky; top: 0; z-index: 50; }
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-btn {
  display: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  place-items: center;
  flex: none;
}
.menu-btn:hover { background: var(--muted); }
.wordmark { flex: none; display: flex; align-items: center; gap: 9px; }
.wordmark img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark span { font-size: 19px; font-weight: 700; letter-spacing: 1px; }

.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.desktop-nav a, .desktop-nav .nav-btn {
  font-size: 14px;
  color: #20242a;
  padding: 7px 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}
.desktop-nav a:hover, .desktop-nav .nav-btn:hover { background: var(--muted); }
.desktop-nav a.active { font-weight: 600; }
.nav-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 16px;
}
.nav-live {
  font-size: 10px;
  color: #e5484d;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.nav-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e5484d;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.header-search { margin-left: auto; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
  height: 36px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--muted-foreground);
  transition: border 0.18s, background 0.18s;
}
.search-box:focus-within { background: #fff; border-color: var(--brand); }
.search-box input { border: none; outline: none; background: transparent; width: 100%; font-size: 13px; color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.link-btn { font-size: 14px; color: var(--foreground); padding: 7px 10px; border-radius: 9px; }
.link-btn:hover { background: var(--muted); }
.primary-btn {
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: filter 0.18s;
}
.primary-btn:hover { filter: brightness(1.08); }
.ghost-btn {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.ghost-btn:hover { background: var(--muted); }

/* ---------- 三栏主体 ---------- */
.frame { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0 24px; align-items: start; }

/* 左侧边栏 */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100dvh - var(--header-h) - 32px);
  overflow-y: auto;
  padding: 16px 0 24px;
  scrollbar-width: thin;
}
.side-group { margin-bottom: 18px; }
.side-label {
  font-size: 12px;
  color: var(--muted-foreground);
  padding: 6px 12px 4px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--foreground);
  transition: background 0.15s;
}
.side-item:hover { background: var(--muted); }
.side-item.active { background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); font-weight: 600; }
.side-item svg { width: 18px; height: 18px; flex: none; }
.side-item .spacer { margin-left: auto; }

.recent-panel { margin: 4px 12px 18px; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.recent-panel h4 { font-size: 13px; margin-bottom: 6px; }
.recent-empty { font-size: 12px; color: var(--muted-foreground); }

.side-details { margin: 0 12px; }
.side-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}
.side-details summary::-webkit-details-marker { display: none; }
.side-details summary svg.chev { margin-left: auto; transition: transform 0.2s; }
.side-details[open] summary svg.chev { transform: rotate(180deg); }
.side-details .sub { margin: 4px 0 0 4px; }
.side-details .sub .side-item { height: 36px; font-size: 13px; color: var(--muted-foreground); }

.sidebar-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.sidebar-footer a { display: inline-block; font-size: 12px; color: var(--muted-foreground); margin: 3px 10px 3px 0; }
.sidebar-footer a:hover { color: var(--brand); }

/* ---------- 主内容 ---------- */
.main { min-width: 0; padding: 20px 0 40px; display: flex; flex-direction: column; gap: 28px; }

/* 焦点区 */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background: #142c57;
  color: #fff;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-img { position: absolute; right: 0; top: 0; bottom: 0; width: 54%; object-fit: cover; height: 100%; }
.slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 24, 52, 0.96) 34%, rgba(10, 24, 52, 0.25) 70%, rgba(10, 24, 52, 0.05));
  z-index: 1;
}
.slide-body { position: relative; z-index: 2; padding: 34px 36px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; max-width: 62%; }
.slide-tags { display: flex; gap: 8px; align-items: center; }
.slide-chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.slide-chip.hot { background: #ff5c38; border-color: transparent; font-weight: 600; }
.slide h2 { font-size: 26px; line-height: 1.3; }
.slide-more {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: #142c57;
  font-weight: 600;
  transition: transform 0.18s;
}
.slide-more:hover { transform: translateX(2px); }
.carousel-dots { position: absolute; z-index: 3; left: 36px; bottom: 14px; display: flex; gap: 6px; }
.carousel-dots button { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); transition: background 0.2s; }
.carousel-dots button.active { background: #fff; }

.stories { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 280px; }
.story {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.story:hover .story-img { transform: scale(1.04); }
.story::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 40, 0.05) 30%, rgba(8, 18, 40, 0.82));
}
.story-body { position: relative; z-index: 2; margin-top: auto; padding: 16px 18px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.story-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
}
.story-body h3 { font-size: 16px; }
.story-body p { font-size: 12px; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.story-go {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  width: fit-content;
  margin-top: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 快捷入口条 */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.strip-topic {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: transform 0.18s, box-shadow 0.18s;
}
.strip-topic:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.strip-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip-logo {
  position: absolute; z-index: 2; left: 10px; bottom: 10px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: grid; place-items: center;
  overflow: hidden;
}
.strip-logo img { width: 20px; height: 20px; object-fit: contain; }
.strip-name {
  position: absolute; z-index: 2; left: 48px; bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.strip-topic::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
}

/* 通用分区标题 */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; font-weight: 700; }
.section-head .sub { font-size: 12px; color: var(--muted-foreground); margin-left: 12px; font-weight: 400; }
.more-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px;
  color: var(--muted-foreground);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: color 0.15s, border 0.15s;
}
.more-link:hover { color: var(--brand); border-color: var(--brand); }

/* 热门工具 */
.hot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 11px;
  min-height: 82px;
  transition: background 0.18s;
}
.hot-card:hover { background: var(--muted); }
.hot-logo {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--muted);
  border: 1px solid var(--border);
}
.hot-logo img { width: 28px; height: 28px; object-fit: contain; }
.hot-meta { min-width: 0; }
.hot-meta b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-meta span {
  font-size: 12px;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 最新收录 */
.tools-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tools-head h2 { font-size: 19px; font-weight: 700; }
.tools-count { font-size: 13px; color: var(--muted-foreground); }
.tools-count b { color: var(--brand); font-weight: 700; }

.browse-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.all-cats {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}
.chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.tool-badge {
  position: absolute; z-index: 3;
  top: 10px; left: 10px;
  background: #ff5c38;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.tool-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  overflow: hidden;
}
.tool-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tool-cover .fallback-char {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 44px;
  font-weight: 800;
  color: rgba(63, 102, 255, 0.35);
}
.tool-body { display: flex; gap: 12px; padding: 14px 16px 6px; align-items: center; }
.tool-logo {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 11px;
  background: var(--muted);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.tool-logo img { width: 30px; height: 30px; object-fit: contain; }
.tool-logo .fallback-char { font-size: 17px; font-weight: 700; color: var(--brand); }
.tool-name { font-size: 15px; font-weight: 700; }
.tool-summary { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.tool-footer { display: flex; align-items: center; padding: 10px 16px 14px; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.tool-arrow { margin-left: auto; color: var(--muted-foreground); transition: color 0.15s, transform 0.15s; }
.tool-card:hover .tool-arrow { color: var(--brand); transform: translateX(2px); }
.tool-card.hidden { display: none; }

/* 内容横排（快讯 + 模型榜） */
.content-rail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: stretch; }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h3 { font-size: 16px; font-weight: 700; }
.panel-more { font-size: 12px; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 4px; }
.panel-more:hover { color: var(--brand); }

.news-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.news-item:last-of-type { border-bottom: none; }
.news-item a { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-item a:hover { color: var(--brand); }
.news-src { font-size: 12px; color: var(--muted-foreground); }

.rank-context { font-size: 12px; color: var(--muted-foreground); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.rank-context b { color: var(--foreground); }
.rank-pill {
  font-size: 11px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
  padding: 1px 8px;
  border-radius: 999px;
}
.model-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.model-row:last-of-type { border-bottom: none; }
.model-pos {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--muted);
  color: var(--muted-foreground);
}
.model-row:nth-child(2) .model-pos { background: #fff3e0; color: #f59e0b; }
.model-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-vendor { font-size: 12px; color: var(--muted-foreground); margin-left: auto; flex: none; }
.model-score { font-size: 14px; font-weight: 700; color: var(--brand); width: 44px; text-align: right; flex: none; }

/* 视频入口 */
.video-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  transition: box-shadow 0.18s;
}
.video-entry:hover { box-shadow: var(--shadow-card); }
.video-thumb {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3f66ff, #8d28fc);
  display: grid; place-items: center;
  color: #fff;
  flex: none;
}
.video-entry b { font-size: 15px; display: block; }
.video-entry span { font-size: 12px; color: var(--muted-foreground); }
.video-entry .go { margin-left: auto; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); margin-top: 20px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
  gap: 32px;
  padding: 44px 0 28px;
}
.footer-brand .wordmark span { color: #fff; }
.footer-brand p { font-size: 12px; color: var(--footer-muted); margin-top: 12px; max-width: 320px; }
.footer-col h5 { font-size: 13px; margin-bottom: 12px; color: #fff; }
.footer-col a { display: block; font-size: 13px; color: var(--footer-muted); padding: 4px 0; }
.footer-col a:hover { color: var(--footer-hover); }
.footer-follow { display: flex; gap: 12px; align-items: center; }
.footer-follow img { width: 84px; height: 84px; border-radius: 10px; background: #fff; padding: 4px; }
.footer-follow span { font-size: 12px; color: var(--footer-muted); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 26px;
  font-size: 12px;
  color: var(--footer-muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* 悬浮按钮 */
.float-bar { position: fixed; right: 18px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: grid; place-items: center;
  color: var(--muted-foreground);
  transition: color 0.15s, transform 0.15s;
}
.float-btn:hover { color: var(--brand); transform: translateY(-2px); }

/* 移动端抽屉 */
.overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 60; }
body.drawer-open .overlay { display: block; }

@media (max-width: 1280px) {
  .hot-grid { grid-template-columns: repeat(4, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .spotlight { grid-template-columns: 1fr; }
  .stories { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .desktop-nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 860px) {
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: 1fr; }
  .content-rail { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .hot-grid { grid-template-columns: 1fr 1fr; }
  .stories { grid-template-columns: 1fr; }
  .link-btn, .ghost-btn { display: none; }
  .footer-main { grid-template-columns: 1fr; }
}

/* ============================================================
   追加样式：子页面组件 / 用户系统 / 收藏 / 统计（20:51 功能升级）
   ============================================================ */
.side-ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.side-ico svg { width: 18px; height: 18px; }
.recent-item { height: 34px; font-size: 12px; color: var(--muted-foreground); }
.fav-btn { color: var(--muted-foreground); padding: 4px; border-radius: 8px; transition: color .15s; }
.fav-btn:hover, .fav-btn.active { color: #e5484d; }
.fav-btn svg { width: 18px; height: 18px; }

/* Toast */
.hu-toast {
  position: fixed; top: 18px; left: 50%; transform: translate(-50%, -80px);
  background: #14213d; color: #fff; font-size: 13px; padding: 10px 22px;
  border-radius: 999px; box-shadow: var(--shadow-pop); transition: transform .3s; z-index: 300;
}
.hu-toast.show { transform: translate(-50%, 0); }
.hu-toast.error { background: #c53535; }

/* 登录/注册弹窗 */
.hu-modal-mask {
  position: fixed; inset: 0; background: rgba(10,18,35,.5); z-index: 200;
  display: grid; place-items: center; padding: 20px;
}
.hu-modal {
  width: min(100%, 380px); background: #fff; border-radius: 16px;
  padding: 26px 24px; position: relative; box-shadow: var(--shadow-pop);
}
.hu-modal-close { position: absolute; right: 14px; top: 10px; font-size: 22px; color: var(--muted-foreground); }
.hu-auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.hu-auth-tab { flex: 1; padding: 9px; border-radius: 10px; font-size: 14px; background: var(--muted); }
.hu-auth-tab.active { background: var(--brand); color: #fff; font-weight: 600; }
.hu-field { display: block; margin-bottom: 12px; }
.hu-field span { font-size: 12px; color: var(--muted-foreground); display: block; margin-bottom: 5px; }
.hu-field input {
  width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 12px; font-size: 14px; outline: none;
}
.hu-field input:focus { border-color: var(--brand); }
.hu-auth-err { color: #e5484d; font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.hu-auth-submit { width: 100%; }
.hu-user-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff);
  padding: 7px 12px; border-radius: 10px;
}

/* 子页面通用 */
.page-searchbox { display: flex; gap: 10px; margin-bottom: 16px; }
.page-searchbox input {
  flex: 1; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 14px; font-size: 14px; outline: none; background: #fff;
}
.page-searchbox input:focus { border-color: var(--brand); }
.empty-tip {
  text-align: center; color: var(--muted-foreground); font-size: 14px;
  padding: 46px 0; background: var(--card); border: 1px dashed var(--border);
  border-radius: 14px;
}

/* 工具详情 */
.tool-detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.tool-detail-info { flex: 1; min-width: 220px; }
.tool-detail-info h1 { font-size: 22px; margin-bottom: 4px; }
.tool-detail-info p { color: var(--muted-foreground); font-size: 14px; }
.tool-detail-actions { display: flex; flex-direction: column; gap: 8px; }
.tool-detail-actions .btn-primary { text-align: center; text-decoration: none; font-size: 14px; }
.tool-detail-cover { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.tool-detail-cover img { width: 100%; object-fit: cover; }

/* 模型对比 */
.compare-selects { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.compare-selects select {
  flex: 1; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px; font-size: 14px; background: #fff; outline: none;
}
.compare-vs { font-weight: 800; color: var(--muted-foreground); font-style: italic; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  text-align: center; background: var(--card);
}
.compare-card.winner { border-color: var(--brand); box-shadow: 0 4px 18px rgba(63,102,255,.15); }
.compare-card h3 { font-size: 16px; margin-bottom: 4px; }
.compare-score { font-size: 34px; font-weight: 800; color: var(--brand); margin: 8px 0; }
.compare-diff { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--muted-foreground); }
.model-pick { font-size: 12px; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 3px; flex: none; }

/* 统计卡 */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; text-align: center;
}
.stat-card b { display: block; font-size: 22px; color: var(--brand); margin-bottom: 4px; word-break: break-all; }
.stat-card span { font-size: 12px; color: var(--muted-foreground); }

/* 专题 */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.topic-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.topic-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg,#eef2ff,#e0f2fe); overflow: hidden; position: relative; }
.topic-cover img { width: 100%; height: 100%; object-fit: cover; }
.topic-body { padding: 16px 18px; }
.topic-body h3 { font-size: 16px; margin-bottom: 4px; }
.topic-body p { font-size: 13px; color: var(--muted-foreground); margin-bottom: 10px; }
.topic-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.topic-tool { color: var(--brand) !important; border-color: color-mix(in srgb, var(--brand) 40%, #fff) !important; cursor: pointer; }

/* 视频 */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.video-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column;
}
.video-cover { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--muted); margin-bottom: 10px; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10,18,35,.25); color: #fff;
}
.video-play svg { width: 30px; height: 30px; }
.video-card b { font-size: 14px; }
.video-card .sub { font-size: 12px; color: var(--muted-foreground); }

/* 榜单选择 */
.model-row .model-pick input { accent-color: var(--brand); }

@media (max-width: 860px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
}

/* 搜索框图标尺寸约束（子页面 SVG 未带宽高属性） */
.search-box svg { width: 15px; height: 15px; flex: none; }

/* ============================================================
   追加样式：AI 快讯自动抓取（21:09）
   ============================================================ */
.news-live {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 1;
  color: #e5484d; border: 1px solid currentColor; border-radius: 999px;
  padding: 3px 7px; margin-right: 8px; vertical-align: 1px;
}
.news-live.pick { color: var(--brand); }
.news-item.auto { background: color-mix(in srgb, #e5484d 3%, #fff); }
.news-live-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted-foreground);
  background: var(--muted); border-radius: 10px; padding: 9px 14px; margin-bottom: 14px;
}
.feed-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.feed-toolbar .save-state { font-size: 13px; color: var(--muted-foreground); }
.feed-log-title { font-size: 14px; margin: 18px 0 8px; }
.feed-log { font-size: 13px; }
.feed-log-row { padding: 8px 12px; border-bottom: 1px dashed var(--border); }
.feed-log-row:last-child { border-bottom: none; }
.feed-log-time { color: var(--brand); font-weight: 600; margin-right: 10px; }
.form-hint { font-size: 12px; color: var(--muted-foreground); margin: 4px 0 10px; }

/* ============================================================
   追加样式：高科技认证弹窗 / 提交产品升级 / 广告合作（22:25）
   ============================================================ */

/* ---------- 高科技认证弹窗 ---------- */
.hx-mask {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(ellipse at 50% 30%, rgba(63,102,255,.18), rgba(5,8,20,.72) 60%);
  backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
}
.hx-panel {
  position: relative; width: min(100%, 400px);
  background: linear-gradient(160deg, #0d1226 0%, #0a0f1f 60%, #101731 100%);
  border: 1px solid rgba(99,130,255,.35);
  border-radius: 20px; padding: 30px 28px 22px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 24px 60px rgba(3,6,18,.7), 0 0 46px rgba(63,102,255,.22);
  overflow: hidden;
  animation: hxIn .32s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes hxIn { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
/* 霓虹光斑 + 扫描线装饰 */
.hx-deco {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(220px 160px at 85% -5%, rgba(124,92,255,.35), transparent 70%),
    radial-gradient(200px 150px at 0% 105%, rgba(0,209,255,.22), transparent 70%);
}
.hx-deco::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120,150,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hx-deco::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(99,130,255,.14), transparent);
  animation: hxScan 4.5s linear infinite;
}
@keyframes hxScan { 0% { top: -10%; } 100% { top: 110%; } }
.hx-close {
  position: absolute; right: 12px; top: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 10px;
  color: #8fa3d9; font-size: 20px; background: transparent;
}
.hx-close:hover { color: #fff; background: rgba(99,130,255,.18); }
.hx-brand { position: relative; text-align: center; margin-bottom: 18px; }
.hx-hex {
  width: 54px; height: 54px; margin: 0 auto 10px;
  display: grid; place-items: center; color: #9db4ff;
  background: linear-gradient(160deg, rgba(99,130,255,.2), rgba(99,130,255,.05));
  border: 1px solid rgba(99,130,255,.5); border-radius: 16px;
  box-shadow: 0 0 22px rgba(63,102,255,.45), inset 0 0 14px rgba(99,130,255,.2);
  animation: hxFloat 3.5s ease-in-out infinite;
}
@keyframes hxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hx-hex svg { width: 26px; height: 26px; }
.hx-brand b { display: block; color: #eef2ff; font-size: 19px; letter-spacing: 3px; }
.hx-brand span { font-size: 11px; color: #7f90c0; letter-spacing: 1px; }
/* 分段 tab + 滑块 */
.hx-tabs {
  position: relative; display: flex; margin-bottom: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(120,150,255,.22);
  border-radius: 12px; padding: 4px;
}
.hx-tab-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: linear-gradient(120deg, #4a68ff, #7c5cff);
  border-radius: 9px; transition: left .25s cubic-bezier(.3,.8,.3,1);
  box-shadow: 0 2px 14px rgba(74,104,255,.55);
}
.hx-tab { position: relative; z-index: 1; flex: 1; padding: 9px; font-size: 14px; color: #9fb0dd; font-weight: 600; }
.hx-tab.active { color: #fff; }
/* 输入框 */
.hx-field { position: relative; display: block; margin-bottom: 12px; }
.hx-field > svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #6f83bb; pointer-events: none;
}
.hx-field input {
  width: 100%; height: 44px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(120,150,255,.25);
  border-radius: 11px; padding: 0 40px 0 38px;
  color: #eef2ff; font-size: 14px; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.hx-field input::placeholder { color: #67729b; }
.hx-field input:focus {
  border-color: #6f8cff; background: rgba(99,130,255,.09);
  box-shadow: 0 0 0 3px rgba(99,130,255,.18), 0 0 18px rgba(99,130,255,.25);
}
.hx-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  color: #6f83bb; border-radius: 8px;
}
.hx-eye svg { width: 16px; height: 16px; }
.hx-eye.on, .hx-eye:hover { color: #9db4ff; }
/* 密码强度 */
.hx-strength {
  height: 4px; border-radius: 999px; margin: -4px 0 12px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.hx-strength i {
  display: block; height: 100%; width: 0;
  border-radius: 999px; transition: width .25s, background .25s;
}
.hx-strength i[data-level="1"] { width: 25%; background: #e5484d; }
.hx-strength i[data-level="2"] { width: 50%; background: #f5a623; }
.hx-strength i[data-level="3"] { width: 75%; background: #46c26e; }
.hx-strength i[data-level="4"] { width: 100%; background: linear-gradient(90deg, #46c26e, #00d1ff); }
.hx-err { color: #ff8085; font-size: 12px; min-height: 18px; margin-bottom: 6px; }
/* 提交按钮 */
.hx-submit {
  position: relative; width: 100%; height: 46px; overflow: hidden;
  border-radius: 12px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 4px;
  background: linear-gradient(120deg, #4a68ff, #7c5cff);
  box-shadow: 0 6px 20px rgba(74,104,255,.45);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.hx-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(74,104,255,.6); }
.hx-submit:disabled { opacity: .6; }
.hx-submit::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  animation: hxShine 2.6s ease-in-out infinite;
}
@keyframes hxShine { 0% { left: -60%; } 60%, 100% { left: 120%; } }
.hx-foot { text-align: center; font-size: 11px; color: #67729b; margin-top: 12px; }

/* ---------- 提交产品页升级 ---------- */
.submit-hero {
  text-align: center; padding: 26px 18px 22px;
  background: linear-gradient(160deg, #eef2ff 0%, #fdf4ff 55%, #eff6ff 100%);
  border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px;
}
.submit-hero h1 { font-size: 24px; margin-bottom: 6px; }
.submit-hero p { color: var(--muted-foreground); font-size: 14px; }
.submit-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.step { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted-foreground); }
.step.on { color: var(--brand); font-weight: 700; }
.step-num {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--border); color: var(--muted-foreground);
}
.step.on .step-num { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(63,102,255,.4); }
.step-line { width: 52px; height: 2px; background: var(--border); border-radius: 2px; }
.submit-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.submit-aside h3 { font-size: 14px; margin: 14px 0 8px; }
.submit-aside h3:first-child { margin-top: 0; }
.submit-rules { display: grid; gap: 8px; font-size: 13px; color: var(--muted-foreground); line-height: 1.6; }
.submit-success { text-align: center; padding: 26px 10px; }
.success-ico {
  width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #34c27c, #1fa960); border-radius: 999px;
  box-shadow: 0 8px 22px rgba(31,169,96,.45);
  animation: hxIn .35s cubic-bezier(.2,.9,.3,1.3);
}
.submit-success h3 { font-size: 17px; margin-bottom: 6px; }
.submit-success p { font-size: 13px; color: var(--muted-foreground); margin-bottom: 14px; }

/* ---------- 广告合作页 ---------- */
.ad-hero { margin-bottom: 16px; }
.ad-hero h2 { font-size: 22px; margin-bottom: 8px; }
.ad-hero > p { color: var(--muted-foreground); font-size: 14px; line-height: 1.8; }
.form-item select {
  width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 10px; font-size: 14px; background: #fff; outline: none;
}
.form-item select:focus { border-color: var(--brand); }
.ad-ok { color: #1a7f37; font-weight: 600; }

@media (max-width: 860px) {
  .submit-cols { grid-template-columns: 1fr; }
  .step-line { width: 28px; }
}

/* 表单通用（前台缺省，此前仅后台有定义导致表单挤压） */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px 16px; margin-bottom: 6px; }
.form-item { display: block; }
.form-item > span { display: block; font-size: 12px; color: var(--muted-foreground); margin-bottom: 5px; }
.form-item input, .form-item textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
  font-family: inherit; box-sizing: border-box;
}
.form-item input:focus, .form-item textarea:focus { border-color: var(--brand); }
.login-err { color: #e5484d; font-size: 12px; min-height: 14px; }

/* ============================================================
   追加样式：首页在线客服（AI 客服 + 人工客服）
   ============================================================ */
.cs-fab {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #7b5cff);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(63, 102, 255, 0.35);
  transition: transform .18s, box-shadow .18s;
}
.cs-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(63, 102, 255, 0.45); }
.cs-fab svg { width: 22px; height: 22px; }
.cs-fab-tip {
  position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  background: #14213d; color: #fff; font-size: 12px; padding: 5px 10px;
  border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.cs-fab-wrap { position: relative; }
.cs-fab-wrap:hover .cs-fab-tip { opacity: 1; }

.cs-panel {
  position: fixed; right: 18px; bottom: 80px; z-index: 90;
  width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 120px);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.cs-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.cs-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f0f4ff, #f7f5ff);
}
.cs-head-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), #7b5cff);
  color: #fff; display: grid; place-items: center;
}
.cs-head-logo svg { width: 18px; height: 18px; }
.cs-head-meta { min-width: 0; }
.cs-head-meta b { display: block; font-size: 14px; }
.cs-head-meta span { font-size: 11px; color: var(--muted-foreground); }
.cs-head-status {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #1a7f37;
}
.cs-head-status i { width: 7px; height: 7px; border-radius: 50%; background: #1a7f37; box-shadow: 0 0 0 3px rgba(26,127,55,.15); }
.cs-head-status.off { color: #b45309; }
.cs-head-status.off i { background: #b45309; box-shadow: 0 0 0 3px rgba(180,83,9,.15); }
.cs-close { flex: none; width: 26px; height: 26px; border-radius: 8px; color: var(--muted-foreground); font-size: 16px; display: grid; place-items: center; }
.cs-close:hover { background: var(--muted); color: var(--foreground); }

.cs-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; padding: 10px 12px 0; gap: 8px; }
.cs-tab {
  height: 34px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--muted-foreground); background: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.cs-tab svg { width: 15px; height: 15px; }
.cs-tab.active { background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(63,102,255,.3); }

/* AI 聊天区 */
.cs-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cs-msgs { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.cs-msg { display: flex; gap: 8px; max-width: 100%; }
.cs-msg.me { flex-direction: row-reverse; }
.cs-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13px;
}
.cs-msg.bot .cs-avatar { background: linear-gradient(135deg, var(--brand), #7b5cff); color: #fff; }
.cs-msg.me .cs-avatar { background: var(--accent); color: var(--muted-foreground); font-size: 11px; }
.cs-avatar svg { width: 16px; height: 16px; }
.cs-bubble {
  padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55;
  max-width: 240px; word-break: break-word;
}
.cs-msg.bot .cs-bubble { background: var(--muted); color: var(--foreground); border-top-left-radius: 4px; }
.cs-msg.me .cs-bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.cs-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.cs-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); opacity: .5; animation: csBlink 1.2s infinite; }
.cs-typing i:nth-child(2) { animation-delay: .2s; }
.cs-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes csBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }

.cs-quicks { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.cs-quick {
  font-size: 12px; color: var(--brand); background: rgba(63,102,255,.08);
  border: 1px solid rgba(63,102,255,.22); border-radius: 999px; padding: 4px 10px;
  transition: background .15s;
}
.cs-quick:hover { background: rgba(63,102,255,.16); }

.cs-inputbar { flex: none; display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.cs-input {
  flex: 1; height: 38px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px; font-size: 13px; font-family: inherit; background: var(--muted);
  outline: none; min-width: 0;
}
.cs-input:focus { border-color: var(--brand); background: #fff; }
.cs-send {
  flex: none; height: 38px; padding: 0 16px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  transition: opacity .15s;
}
.cs-send:hover { opacity: .9; }
.cs-send:disabled { opacity: .5; cursor: not-allowed; }

/* 人工客服区 */
.cs-human { flex: 1; overflow-y: auto; padding: 14px; display: none; flex-direction: column; gap: 12px; }
.cs-panel.human .cs-chat { display: none; }
.cs-panel.human .cs-human { display: flex; }
.cs-human.active { display: flex; }
.cs-card { background: var(--muted); border-radius: 12px; padding: 14px; font-size: 13px; }
.cs-card h4 { font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cs-card h4 svg { width: 15px; height: 15px; color: var(--brand); }
.cs-card p { color: var(--muted-foreground); line-height: 1.6; }
.cs-contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cs-contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
}
.cs-contact-row span { font-size: 13px; color: var(--foreground); min-width: 0; word-break: break-all; }
.cs-contact-row small { color: var(--muted-foreground); font-size: 11px; flex: none; }
.cs-copy {
  flex: none; font-size: 12px; color: var(--brand); background: rgba(63,102,255,.08);
  border-radius: 7px; padding: 4px 10px;
}
.cs-copy:hover { background: rgba(63,102,255,.16); }

.cs-form { display: flex; flex-direction: column; gap: 9px; }
.cs-form .cs-input { width: 100%; height: 40px; }
.cs-form textarea.cs-input { height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.cs-form-label { font-size: 12px; color: var(--muted-foreground); }
.cs-form-err { font-size: 12px; color: #c53535; min-height: 15px; }

@media (max-width: 640px) {
  .cs-panel { right: 8px; left: 8px; width: auto; }
}

/* ============================================================
   追加样式：AI 提交（自动填写 + 自动投放广告位）
   ============================================================ */
.ai-hero h2 { display: flex; align-items: center; gap: 8px; }
.ai-spark { color: var(--brand); font-size: 20px; }
.ai-hero { background: linear-gradient(135deg, #f0f4ff 0%, #f6f0ff 100%); border-color: rgba(63,102,255,.25); }
.ai-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-flow-step {
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: rgba(63,102,255,.1); border: 1px solid rgba(63,102,255,.3);
  border-radius: 999px; padding: 5px 14px;
}
.ai-flow-arrow { color: var(--muted-foreground); font-size: 13px; }

.ai-fill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #7b5cff);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(63,102,255,.3);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.ai-fill-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(63,102,255,.4); }
.ai-fill-btn:disabled { opacity: .6; cursor: wait; transform: none; }

.ai-typing { border-color: var(--brand) !important; background: rgba(63,102,255,.06) !important; }

.ai-current-ad {
  background: linear-gradient(90deg, rgba(10,253,236,.08), rgba(141,40,252,.08));
  border: 1px dashed rgba(141,40,252,.35);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6;
}
.ai-current-ad b { display: block; font-size: 14px; margin-top: 4px; }
.ai-current-ad p { margin-top: 2px; color: var(--muted-foreground); font-size: 12px; }

.ai-recent-list { display: flex; flex-direction: column; gap: 6px; }
.ai-recent-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--muted); border-radius: 8px; padding: 7px 10px; font-size: 12px;
}

/* ============================================================
   追加样式：微信扫码登录弹窗
   ============================================================ */
.hx-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px; color: rgba(255,255,255,.35); font-size: 11px;
}
.hx-divider::before, .hx-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.hx-wechat-btn {
  width: 100%; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(26, 173, 25, 0.12); border: 1px solid rgba(26, 173, 25, 0.4);
  color: #4ade80; font-size: 13px; font-weight: 600;
  transition: background .15s, transform .15s;
}
.hx-wechat-btn svg { width: 18px; height: 18px; }
.hx-wechat-btn:hover { background: rgba(26, 173, 25, 0.22); transform: translateY(-1px); }

.hx-wx-head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #4ade80; margin: 4px 0 16px;
}
.hx-wx-head svg { width: 22px; height: 22px; }
.hx-wx-head b { font-size: 15px; }
.hx-wx-qrbox {
  position: relative; width: 180px; height: 180px; margin: 0 auto;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 4px rgba(26,173,25,.15), 0 8px 24px rgba(0,0,0,.4);
  transition: transform .15s;
}
.hx-wx-qrbox:hover { transform: scale(1.03); }
.hx-wx-qrbox canvas { width: 100%; height: 100%; display: block; }
.hx-wx-qrmask {
  position: absolute; inset: 0; background: rgba(255,255,255,.96);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #111; font-size: 13px; font-weight: 600; cursor: pointer;
}
.hx-wx-qrmask.show { display: flex; }
.hx-wx-qrmask span { color: #1aad19; text-decoration: underline; }
.hx-wx-status { text-align: center; font-size: 13px; color: rgba(255,255,255,.65); margin-top: 14px; min-height: 18px; }
.hx-wx-status.ok { color: #4ade80; }
.hx-wx-status.warn { color: #fbbf24; }
.hx-wx-tip { text-align: center; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 8px; line-height: 1.5; }
.hx-wx-back {
  display: block; margin: 16px auto 0; padding: 6px 18px; border-radius: 999px;
  font-size: 12px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15); transition: background .15s;
}
.hx-wx-back:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================================================
   登录注册弹窗：高级简约风（覆盖此前的霓虹科技风）
   暖白纸张质感 · 墨色文字 · 香槟金点缀 · 衬线标题
   ============================================================ */
.hx-mask {
  background: rgba(28, 26, 22, 0.5);
  backdrop-filter: blur(14px) saturate(1.05);
}
.hx-panel {
  width: min(100%, 424px);
  background: #faf9f5;
  border: 1px solid rgba(40, 36, 28, 0.12);
  border-radius: 6px;
  padding: 38px 38px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 30px 90px rgba(20, 17, 12, 0.4);
}
.hx-panel::before {
  content: ""; position: absolute; top: 0; left: 38px; right: 38px; height: 2px;
  background: linear-gradient(90deg, transparent, #c3a46a 45%, #c3a46a 55%, transparent);
}
.hx-deco { display: none !important; }
.hx-close {
  right: 14px; top: 10px; border-radius: 50%;
  color: #9a9486; font-size: 22px; font-weight: 300;
}
.hx-close:hover { color: #24211b; background: rgba(0,0,0,.05); }

.hx-brand { margin-bottom: 28px; }
.hx-hex {
  width: 48px; height: 48px; margin: 0 auto 14px;
  color: #a58550; background: transparent;
  border: 1px solid #cbb187; border-radius: 50%;
  box-shadow: none; animation: none;
}
.hx-hex svg { width: 22px; height: 22px; }
.hx-brand b {
  color: #24211b; font-size: 23px; letter-spacing: 5px;
  font-family: Georgia, "Songti SC", "STSong", serif; font-weight: 600;
}
.hx-brand span { color: #a29b8c; font-size: 11px; letter-spacing: 2px; }

.hx-tabs {
  background: transparent; border: 1px solid transparent; border-bottom: 1px solid #e7e2d7;
  border-radius: 0; padding: 0; margin-bottom: 24px;
}
.hx-tab-ind { display: none !important; }
.hx-tab {
  padding: 0 0 12px; color: #a29b8c; font-size: 14px;
  font-weight: 500; letter-spacing: 2px;
}
.hx-tab.active {
  color: #24211b; font-weight: 600;
  border-bottom: 2px solid #24211b; margin-bottom: -1px;
}

.hx-field { margin-bottom: 14px; }
.hx-field > svg { left: 14px; color: #aaa396; }
.hx-field input {
  height: 46px; background: #fff; border: 1px solid #e4ded1;
  border-radius: 3px; padding: 0 42px 0 40px;
  color: #24211b; font-size: 14px;
}
.hx-field input::placeholder { color: #b7b0a2; }
.hx-field input:focus {
  border-color: #b3925c; background: #fff;
  box-shadow: 0 0 0 3px rgba(179, 146, 92, 0.1);
}
.hx-eye { color: #aaa396; }
.hx-eye.on, .hx-eye:hover { color: #5c564a; }

.hx-strength { background: #e7e2d7; }
.hx-strength i[data-level="1"] { background: #b36b5e; }
.hx-strength i[data-level="2"] { background: #c19045; }
.hx-strength i[data-level="3"] { background: #8a9d6b; }
.hx-strength i[data-level="4"] { background: linear-gradient(90deg, #8a9d6b, #4f7048); }
.hx-err { color: #b4544a; }

.hx-submit {
  height: 48px; border-radius: 3px; overflow: hidden;
  background: #24211b; color: #faf9f5;
  font-size: 14px; font-weight: 600; letter-spacing: 4px;
  box-shadow: none;
}
.hx-submit::after { display: none !important; }
.hx-submit:hover:not(:disabled) {
  background: #3b362d; transform: none;
  box-shadow: 0 8px 20px rgba(36, 33, 27, 0.18);
}
.hx-foot { color: #a29b8c; margin-top: 16px; }

.hx-divider { color: #b0a99b; margin: 22px 0 14px; }
.hx-divider::before, .hx-divider::after { background: #e7e2d7; }
.hx-wechat-btn {
  height: 46px; border-radius: 3px;
  background: #f2f4ee; border: 1px solid #dfe3d6;
  color: #3f6b4a; font-weight: 600;
}
.hx-wechat-btn:hover { background: #e8ece3; transform: none; }

.hx-wx-head { color: #3f6b4a; margin: 0 0 20px; }
.hx-wx-head b {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 18px; letter-spacing: 2px;
}
.hx-wx-qrbox {
  border-radius: 4px;
  box-shadow: 0 0 0 1px #e4ded1, 0 10px 28px rgba(30, 26, 18, 0.1);
}
.hx-wx-qrmask { background: rgba(250, 249, 245, 0.97); }
.hx-wx-qrmask span { color: #a5824c; }
.hx-wx-status { color: #6f685b; }
.hx-wx-status.ok { color: #3f6b4a; }
.hx-wx-status.warn { color: #a5763d; }
.hx-wx-tip { color: #aba496; }
.hx-wx-back {
  background: #f2f0ea; border: 1px solid #e4ded1;
  border-radius: 999px; color: #6f685b;
}
.hx-wx-back:hover { background: #e9e5da; color: #24211b; }

/* ============================================================
   AI 索引搜索：徽标 + 智能结果下拉
   ============================================================ */
.ai-search-badge {
  flex: none; display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 7px; border-radius: 6px;
  background: linear-gradient(120deg, #f5f0e5, #f9f6ed);
  border: 1px solid #ddcfb0; color: #9a7a43;
  font-size: 10px; font-weight: 700; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.ai-search-badge svg { width: 11px; height: 11px; flex: none; }
.ai-search-badge:hover { background: #efe6d2; border-color: #c3a46a; }

.ai-search-panel {
  position: absolute; z-index: 120; width: 380px; max-width: calc(100vw - 16px);
  background: #faf9f5; border: 1px solid rgba(40,36,28,.14);
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 20px 50px rgba(20,17,12,.26);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .15s, transform .15s;
  overflow: hidden;
}
.ai-search-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.ai-search-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 11px 14px; font-size: 12px; font-weight: 600; color: #24211b;
  border-bottom: 1px solid #e7e2d7;
}
.ai-search-mark { color: #b3925c; font-size: 14px; }
.ai-search-count { margin-left: auto; font-size: 10px; font-weight: 400; color: #a29b8c; }
.ai-search-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.ai-search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 5px; text-decoration: none;
  transition: background .12s;
}
.ai-search-item:hover { background: #f0ede4; }
.ai-search-ico {
  flex: none; width: 32px; height: 32px; border-radius: 6px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: #8a6d3c; background: #f0eadb; border: 1px solid #dfd3b8;
}
.ai-search-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ai-search-meta b { font-size: 13px; color: #24211b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-search-meta > span { font-size: 11px; color: #8f887a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-search-meta em { font-size: 10px; color: #a5824c; font-style: normal; }
.ai-search-empty { padding: 18px 14px; font-size: 12px; color: #8f887a; line-height: 1.7; }
.ai-search-more {
  display: block; padding: 10px 14px; text-align: center;
  font-size: 12px; color: #9a7a43; text-decoration: none;
  border-top: 1px solid #e7e2d7; background: #f6f3ea;
}
.ai-search-more:hover { background: #efe8d8; }

/* ============================================================
   个人中心（登录后落地页）· 高级简约暖色风
   ============================================================ */
.member-page { display: flex; flex-direction: column; gap: 22px; }

/* 未登录引导 */
.member-gate {
  text-align: center; padding: 76px 24px 84px;
  background: #faf9f5; border: 1px solid #e7e2d7; border-radius: 6px;
}
.member-gate-hex {
  width: 62px; height: 62px; margin: 0 auto 22px;
  display: grid; place-items: center; color: #a58550;
  border: 1px solid #cbb187; border-radius: 50%;
}
.member-gate-hex svg { width: 30px; height: 30px; }
.member-gate h2 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 22px; letter-spacing: 2px; color: #24211b; margin-bottom: 12px;
}
.member-gate p { color: #8f887a; font-size: 13px; line-height: 1.8; max-width: 420px; margin: 0 auto 26px; }
.member-gate-btn {
  display: inline-block; height: 44px; line-height: 44px; padding: 0 30px;
  background: #24211b; color: #faf9f5; border-radius: 3px;
  font-size: 14px; letter-spacing: 3px; font-weight: 600;
}
.member-gate-btn:hover { background: #3b362d; }

/* 顶部欢迎区 */
.member-hero {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 30px 34px;
  background: linear-gradient(120deg, #faf9f5, #f3efe6);
  border: 1px solid #e7e2d7; border-radius: 6px;
  overflow: hidden;
}
.member-hero::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #d9bd8a, #a58550);
}
.member-avatar {
  flex: none; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 600;
  color: #faf9f5; background: linear-gradient(135deg, #3b362d, #24211b);
  border: 2px solid #cbb187; box-shadow: 0 4px 14px rgba(36,33,27,.18);
}
.member-hero-main { min-width: 0; }
.member-hello { font-size: 12px; color: #a29b8c; letter-spacing: 1px; margin-bottom: 4px; }
.member-wave { color: #b3925c; margin-left: 6px; }
.member-hero h1 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 26px; letter-spacing: 2px; color: #24211b; margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.member-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.member-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #8f887a; }
.member-meta svg { width: 14px; height: 14px; }
.member-id { color: #a29b8c; font-family: ui-monospace, Menlo, monospace; }
.member-logout {
  margin-left: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 12px; color: #8f887a;
  border: 1px solid #e7e2d7; border-radius: 3px; background: #fff;
  transition: all .15s;
}
.member-logout svg { width: 14px; height: 14px; }
.member-logout:hover { color: #b4544a; border-color: #d8b7b2; background: #fdf6f5; }

/* 数据统计卡 */
.member-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.member-stat {
  padding: 20px 22px; background: #faf9f5;
  border: 1px solid #e7e2d7; border-radius: 6px;
}
.member-stat-n {
  font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 600;
  line-height: 1; margin-bottom: 8px;
}
.member-stat-label { font-size: 12px; color: #8f887a; letter-spacing: 1px; }
.mc-blue .member-stat-n { color: #4a6fa5; }
.mc-purple .member-stat-n { color: #7a6a9c; }
.mc-orange .member-stat-n { color: #b98a4b; }
.mc-green .member-stat-n { color: #5f8560; }

/* 快捷入口 */
.member-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.member-quick-item {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 16px; background: #fff; border: 1px solid #e7e2d7; border-radius: 6px;
  font-size: 13px; color: #24211b; transition: all .15s;
}
.member-quick-item:hover { border-color: #cbb187; box-shadow: 0 4px 14px rgba(36,33,27,.07); transform: translateY(-1px); }
.member-quick-ico {
  flex: none; width: 34px; height: 34px; border-radius: 5px;
  display: grid; place-items: center; color: #a58550; background: #f4efe4;
}
.member-quick-ico svg { width: 17px; height: 17px; }
.member-quick-arrow { width: 14px; height: 14px; margin-left: auto; color: #b7b0a2; }

/* 通用区块 */
.member-block {
  padding: 24px 26px 26px; background: #fff;
  border: 1px solid #e7e2d7; border-radius: 6px;
}
.member-block .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.member-block .section-head h2 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 18px; letter-spacing: 1px; color: #24211b;
}
.member-more {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: #a58550;
}
.member-more svg { width: 13px; height: 13px; }
.member-more:hover { color: #6f5730; }
.member-empty {
  padding: 28px 16px; text-align: center; font-size: 13px; color: #9a9486;
  background: #faf9f5; border: 1px dashed #e0dacd; border-radius: 4px;
}

/* 投稿列表 */
.member-sub-list { display: flex; flex-direction: column; gap: 2px; }
.member-sub-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-bottom: 1px solid #f0ede6;
}
.member-sub-item:last-child { border-bottom: none; }
.member-sub-icon {
  flex: none; width: 38px; height: 38px; border-radius: 5px;
  display: grid; place-items: center; font-size: 16px; font-weight: 600;
  color: #a58550; background: #f4efe4; border: 1px solid #e7dcc4;
}
.member-sub-body { min-width: 0; flex: 1; }
.member-sub-title { font-size: 14px; color: #24211b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-sub-sub { font-size: 11px; color: #9a9486; margin-top: 3px; }
.member-status {
  flex: none; font-size: 11px; padding: 4px 10px; border-radius: 20px; letter-spacing: 1px;
}
.st-pending { color: #a58550; background: #f6f0e3; }
.st-ok { color: #5f8560; background: #edf5ee; }
.st-no { color: #b4544a; background: #fbeef0; }

/* 后台开关 */
.switch-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: #5c564a; }
.switch-line input { width: 16px; height: 16px; accent-color: #b3925c; }

@media (max-width: 900px) {
  .member-stats, .member-quick { grid-template-columns: repeat(2, 1fr); }
  .member-hero { flex-wrap: wrap; }
  .member-logout { margin-left: 0; }
}

/* ============================================================
   顶部推广条 · 自动轮播（覆盖式）
   ============================================================ */
.top-bar { position: relative; overflow: hidden; }
.top-bar-inner { position: relative; gap: 0; }
.top-bar-track {
  position: relative; flex: 1; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.top-bar-item {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; text-decoration: none; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.top-bar-item.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.top-bar-item .top-bar-label.hot {
  background: rgba(255,255,255,.28); border-color: transparent; opacity: 1; font-weight: 600;
}
.top-bar-name { font-size: 14px; flex: none; font-weight: 600; }
.top-bar-item .top-bar-sub { max-width: 420px; }
.top-bar-item .top-bar-action:hover { background: rgba(255,255,255,.32); }
.top-bar.no-carousel .top-bar-item { position: relative; transform: none; }

/* 圆点指示器 */
.top-bar-dots {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 5px; z-index: 2;
}
.top-bar-dot {
  width: 6px; height: 6px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: all .25s;
}
.top-bar-dot.active { background: #fff; width: 16px; border-radius: 4px; }
.top-bar-dot:hover { background: rgba(255,255,255,.8); }

@media (max-width: 640px) {
  .top-bar-dots { display: none; }
  .top-bar-item .top-bar-sub { max-width: 180px; }
}

/* ========== 首页广告位（后台可控 · 可上下架） ========== */
.home-ads-section { margin-bottom: 26px; }
.home-ads-section[hidden] { display: none; }
.home-ads-section .section-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 17px;
  background: linear-gradient(180deg,#ff7a45,#ff4d2e); border-radius: 3px;
  margin-right: 9px; vertical-align: -2px;
}
.home-ads-section .ad-card { border-color: #ffe0d2; box-shadow: 0 1px 0 rgba(255,92,56,.06); }
.home-ads-section .ad-card:hover { border-color: #ffb794; box-shadow: 0 8px 26px rgba(255,92,56,.14); }
.home-ads-section .ad-badge { background: linear-gradient(135deg,#ff7a45,#ff3d1f); letter-spacing: .3px; }
.home-ads-section .tool-cover::after {
  content: "推广"; position: absolute; right: 8px; top: 8px; z-index: 3;
  font-size: 10px; color: #b0492a; background: rgba(255,255,255,.92);
  padding: 1px 7px; border-radius: 999px; border: 1px solid #ffd9c6;
}

/* ============================================================
   移动端兼容补强（≤768 / ≤480）
   ============================================================ */
@media (max-width: 768px) {
  .container { width: min(100% - 32px, 1480px); }
  body.drawer-open .sidebar {
    display: block; position: fixed; left: 0; top: 0; bottom: 0;
    width: 268px; background: #f8fafc; z-index: 70;
    padding: 18px 14px; overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
  }
  .slide-body { max-width: 100%; padding: 22px 20px; }
  .carousel-dots { left: 20px; }
  .header-actions { gap: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .float-bar { right: 12px; bottom: 16px; }
  .float-btn { width: 38px; height: 38px; border-radius: 10px; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 24px, 1480px); }
  .wordmark span { font-size: 15px; }
  .wordmark img { width: 28px; height: 28px; }
  .header-inner { gap: 8px; }
  .strip { gap: 10px; }
  .hot-grid { gap: 10px; }
  .spotlight { gap: 10px; }
  .hu-modal { padding: 22px 16px; }
  .hu-modal-mask { padding: 14px; }
}
