/* ============================================================
   AI 发现 · Dark Tech Neon 皮肤
   由「AI 发现核心」插件加载，不修改主题文件，主题升级不丢样式。
   ============================================================ */

:root {
  --aid-bg: #080B14;
  --aid-bg-soft: #0B1020;
  --aid-surface: #101625;
  --aid-surface-2: #172033;
  --aid-blue: #38BDF8;
  --aid-purple: #8B5CF6;
  --aid-pink: #EC4899;
  --aid-text: #F8FAFC;
  --aid-text-2: #94A3B8;
  --aid-border: #263247;
  --aid-success: #22C55E;
  --aid-warning: #F59E0B;
  --aid-radius: 16px;
  --aid-radius-sm: 10px;
  --aid-shadow: 0 18px 48px -24px rgba(56, 189, 248, .35);
  --aid-font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 基础层 ---------- */
html { scroll-behavior: smooth; }

body,
body.home,
body.archive,
body.single,
body.aidev-en {
  --bs-body-bg: var(--aid-bg);
  --bs-body-color: var(--aid-text);
  --bs-border-color: var(--aid-border);
  background-color: var(--aid-bg) !important;
  color: var(--aid-text);
  font-family: var(--aid-font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(56, 189, 248, .16), transparent 62%),
    radial-gradient(680px 380px at 88% 4%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(620px 360px at 52% 100%, rgba(236, 72, 153, .09), transparent 65%);
}

body > * { position: relative; z-index: 1; }

a { color: var(--aid-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: #7dd3fc; }

::selection { background: rgba(56, 189, 248, .28); color: #fff; }

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

.container { max-width: 1200px; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0f1a; }
::-webkit-scrollbar-thumb { background: #1e2a3e; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2b3a53; }

/* ---------- 头部 ---------- */
.site-header,
.aidev-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 11, 20, .78) !important;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--aid-border);
}

.site-header .navbar,
.aidev-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header .logo-wrapper img,
.aidev-logo {
  max-height: 40px;
}

.aidev-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--aid-text);
  letter-spacing: .01em;
}

.aidev-logo:hover { color: #fff; }

.aidev-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
  color: #04070E;
  background: linear-gradient(135deg, var(--aid-blue), var(--aid-purple));
  box-shadow: 0 0 0 1px rgba(248, 250, 252, .12), 0 8px 22px -10px rgba(56, 189, 248, .9);
}

.aidev-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.aidev-nav a {
  color: var(--aid-text-2);
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.aidev-nav a:hover { color: var(--aid-text); }

.aidev-nav a.aidev-lang {
  color: var(--aid-text);
  padding: 6px 14px;
  border: 1px solid var(--aid-border);
  border-radius: 999px;
  background: var(--aid-surface);
}

.aidev-nav a.aidev-lang:hover {
  border-color: rgba(56, 189, 248, .5);
  color: var(--aid-blue);
}

/* 主题导航 */
.site-header .navbar-nav .nav-link,
.site-header .navbar-nav > li > a {
  color: var(--aid-text-2) !important;
  font-size: .95rem;
  font-weight: 500;
  padding: .5rem .1rem !important;
  transition: color .18s ease;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link.active,
.site-header .navbar-nav > li > a:hover {
  color: var(--aid-text) !important;
}

.site-header .navbar-nav .current-menu-item > a,
.site-header .navbar-nav .current-menu-ancestor > a {
  color: var(--aid-blue) !important;
}

.site-header .dropdown-menu {
  background: var(--aid-surface);
  border: 1px solid var(--aid-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  padding: 8px;
}

.site-header .dropdown-menu .dropdown-item {
  color: var(--aid-text-2);
  border-radius: 8px;
  padding: 8px 12px;
}

.site-header .dropdown-menu .dropdown-item:hover {
  background: var(--aid-surface-2);
  color: var(--aid-text);
}

/* 头部搜索 */
.navbar-search .search-form,
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-search .search-form input[type="search"],
.navbar-search .search-form input[type="text"],
.search-form input[type="search"],
.search-form input[type="text"] {
  background: var(--aid-surface) !important;
  border: 1px solid var(--aid-border) !important;
  color: var(--aid-text) !important;
  border-radius: 999px !important;
  padding: .5rem 1rem !important;
  font-size: .9rem;
  min-width: 200px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.navbar-search .search-form input:focus,
.search-form input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, .6) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}

.navbar-search .search-form button,
.search-form button,
.search-form .btn {
  border-radius: 999px !important;
  padding: .5rem 1.1rem !important;
  border: none;
  color: #04070E;
  font-weight: 600;
  font-size: .9rem;
  background: linear-gradient(135deg, var(--aid-blue), var(--aid-purple));
  white-space: nowrap;
}

/* 移动端切换按钮 */
.site-header .navbar-toggler {
  border: 1px solid var(--aid-border);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--aid-text);
  background: var(--aid-surface);
}

/* ---------- 首页 hero 区块（主题里的搜索模块） ---------- */
.home-widget.home-search-box {
  margin: 0 0 8px;
}

.home-widget.home-search-box .container,
.home-widget .widget-inner {
  padding-top: 0;
}

.home-search-box h1,
.home-search-box .h1,
.home-search-box .title {
  color: var(--aid-text);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ---------- 卡片 ---------- */
.posts-warp,
.aidev-grid {
  display: grid;
  gap: 20px;
}

.aidev-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.card,
.post-item,
.entry-card,
.posts-warp .col,
.posts-warp > div {
  background: transparent;
  border: 0;
}

.posts-warp .card,
.post-item .card,
.archive-item,
.entry-card-inner {
  background: linear-gradient(180deg, var(--aid-surface), var(--aid-bg-soft));
  border: 1px solid var(--aid-border);
  border-radius: var(--aid-radius);
  overflow: hidden;
  height: 100%;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.posts-warp .card:hover,
.post-item .card:hover,
.archive-item:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, .45);
  box-shadow: var(--aid-shadow);
}

.posts-warp .card-body,
.post-item .card-body { padding: 16px 18px 18px; }

.posts-warp .card-title,
.post-item .card-title,
.posts-warp .entry-title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--aid-text);
}

.posts-warp .card-title a,
.post-item .card-title a,
.entry-title a { color: var(--aid-text); }

.posts-warp .card-title a:hover,
.post-item .card-title a:hover,
.entry-title a:hover { color: var(--aid-blue); }

.posts-warp .entry-desc,
.posts-warp .card-text,
.post-item .entry-desc,
.entry-desc {
  color: var(--aid-text-2);
  font-size: .88rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-media,
.posts-warp .entry-media {
  background: linear-gradient(135deg, rgba(56, 189, 248, .14), rgba(139, 92, 246, .14));
  border-bottom: 1px solid var(--aid-border);
}

.entry-media img { object-fit: cover; }

.entry-cat-dot,
.posts-warp .entry-cat-dot {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--aid-blue);
  background: rgba(56, 189, 248, .1);
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 999px;
  padding: 2px 9px;
}

.entry-meta,
.posts-warp .entry-meta {
  color: var(--aid-text-2);
  font-size: .78rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.entry-meta a { color: var(--aid-text-2); }

/* ---------- 按钮 ---------- */
.btn,
button.btn,
a.btn,
.wp-block-button__link {
  border-radius: var(--aid-radius-sm) !important;
  font-weight: 600;
  font-size: .9rem;
  padding: .58rem 1.15rem !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary,
.btn-gradient,
a.btn-primary {
  color: #04070E !important;
  border: none !important;
  background: linear-gradient(135deg, var(--aid-blue), var(--aid-purple)) !important;
  box-shadow: 0 12px 30px -14px rgba(56, 189, 248, .85);
}

.btn-primary:hover,
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -14px rgba(139, 92, 246, .9);
}

.btn-outline-primary,
.btn-outline-secondary {
  color: var(--aid-text) !important;
  border: 1px solid var(--aid-border) !important;
  background: var(--aid-surface) !important;
}

.btn-outline-primary:hover {
  border-color: rgba(56, 189, 248, .55) !important;
  color: var(--aid-blue) !important;
}

/* ---------- 正文排版 ---------- */
.single .entry-content,
.aidev-prose {
  color: #CBD5E1;
  font-size: 1.02rem;
  line-height: 1.95;
}

.single .entry-content h2,
.aidev-prose h2 {
  color: var(--aid-text);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.2rem 0 .9rem;
  padding-left: 14px;
  border-left: 3px solid var(--aid-blue);
  line-height: 1.5;
}

.single .entry-content h3,
.aidev-prose h3 {
  color: var(--aid-text);
  font-size: 1.15rem;
  font-weight: 650;
  margin: 1.8rem 0 .7rem;
}

.single .entry-content h4,
.aidev-prose h4 {
  color: var(--aid-text);
  font-size: 1rem;
  margin: 1.4rem 0 .5rem;
}

.single .entry-content p,
.aidev-prose p { margin: 0 0 1.15rem; }

.single .entry-content a,
.aidev-prose a {
  color: var(--aid-blue);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, .35);
  text-underline-offset: 3px;
}

.single .entry-content ul,
.single .entry-content ol,
.aidev-prose ul,
.aidev-prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}

.single .entry-content li,
.aidev-prose li { margin-bottom: .5rem; }

.single .entry-content li::marker,
.aidev-prose li::marker { color: var(--aid-blue); }

.single .entry-content blockquote,
.aidev-prose blockquote {
  margin: 1.6rem 0;
  padding: 14px 20px;
  background: var(--aid-surface);
  border-left: 3px solid var(--aid-purple);
  border-radius: 0 12px 12px 0;
  color: var(--aid-text-2);
}

.single .entry-content code,
.aidev-prose code {
  background: var(--aid-surface-2);
  border: 1px solid var(--aid-border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .88em;
  color: #7dd3fc;
}

.single .entry-content pre,
.aidev-prose pre {
  background: #0A0F1A;
  border: 1px solid var(--aid-border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.7;
}

.single .entry-content pre code {
  border: 0;
  background: none;
  padding: 0;
  color: #dbeafe;
}

.single .entry-content img,
.aidev-prose img {
  border-radius: 12px;
  border: 1px solid var(--aid-border);
}

.single .entry-content table,
.aidev-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: .92rem;
}

.single .entry-content th,
.aidev-prose th {
  background: var(--aid-surface-2);
  color: var(--aid-text);
  font-weight: 600;
  text-align: left;
}

.single .entry-content th,
.single .entry-content td,
.aidev-prose th,
.aidev-prose td {
  border: 1px solid var(--aid-border);
  padding: 10px 14px;
}

/* 文章标题区 */
.single .entry-header,
.single-header {
  padding: 8px 0 4px;
}

.single .entry-title,
.single h1.entry-title {
  color: var(--aid-text);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}

/* 侧栏 */
.sidebar .widget,
.widget-area .widget {
  background: var(--aid-surface);
  border: 1px solid var(--aid-border);
  border-radius: var(--aid-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.sidebar .widget-title,
.widget-area .widget-title {
  color: var(--aid-text);
  font-size: .95rem;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--aid-border);
}

.sidebar .widget a,
.widget-area .widget a { color: var(--aid-text-2); }

.sidebar .widget a:hover,
.widget-area .widget a:hover { color: var(--aid-blue); }

/* ---------- 分页 ---------- */
.pagination,
.navigation.pagination,
.aidev-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 36px 0 8px;
}

.pagination .page-numbers,
.aidev-pager .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--aid-border);
  background: var(--aid-surface);
  color: var(--aid-text-2);
  font-size: .9rem;
  font-weight: 600;
}

.pagination .page-numbers:hover,
.aidev-pager .page-numbers:hover {
  border-color: rgba(56, 189, 248, .5);
  color: var(--aid-blue);
}

.pagination .page-numbers.current,
.aidev-pager .page-numbers.current {
  color: #04070E;
  border-color: transparent;
  background: linear-gradient(135deg, var(--aid-blue), var(--aid-purple));
}

/* ---------- 页脚 ---------- */
.site-footer,
footer.site-footer {
  margin-top: 64px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--aid-border);
  background: rgba(11, 16, 32, .6);
  color: var(--aid-text-2);
  font-size: .88rem;
}

.site-footer a { color: var(--aid-text-2); }
.site-footer a:hover { color: var(--aid-blue); }

.site-footer .widget-title { color: var(--aid-text); font-size: .92rem; }

/* ---------- 表单控件（全站） ---------- */
input[type="text"], input[type="search"], input[type="email"], input[type="url"],
input[type="password"], input[type="number"], textarea, select {
  background: var(--aid-surface) !important;
  border: 1px solid var(--aid-border) !important;
  color: var(--aid-text) !important;
  border-radius: var(--aid-radius-sm) !important;
}

input::placeholder, textarea::placeholder { color: #64748B !important; }

/* ============================================================
   AI 发现自定义组件
   ============================================================ */

.aidev-main { padding-bottom: 24px; }

.aidev-section { padding: 40px 0 8px; }
.aidev-section-first { padding-top: 36px; }

.aidev-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.aidev-section-head h2,
.aidev-section > h1 {
  color: var(--aid-text);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.aidev-more { font-size: .9rem; font-weight: 600; }

.aidev-lead {
  color: var(--aid-text-2);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 0 26px;
}

/* Hero */
.aidev-hero {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--aid-border);
}

.aidev-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 50, 71, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 50, 71, .35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.aidev-hero .container { position: relative; z-index: 2; }

.aidev-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  max-width: 900px;
  background: linear-gradient(120deg, #F8FAFC 6%, #7dd3fc 48%, #a78bfa 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aidev-hero-sub {
  color: var(--aid-text-2);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.85;
  max-width: 700px;
  margin: 0 0 30px;
}

.aidev-search {
  display: flex;
  gap: 10px;
  max-width: 660px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--aid-border);
  background: rgba(16, 22, 37, .82);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -30px rgba(56, 189, 248, .55);
}

.aidev-search input[type="search"] {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  color: var(--aid-text) !important;
  padding: .7rem 1.1rem !important;
  font-size: .98rem;
}

.aidev-search input:focus { outline: none; box-shadow: none !important; }

.aidev-search button {
  border: none;
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  color: #04070E;
  background: linear-gradient(135deg, var(--aid-blue), var(--aid-purple));
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.aidev-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -14px rgba(139, 92, 246, .95);
}

/* 卡片 */
.aidev-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  min-height: 100%;
  border-radius: var(--aid-radius);
  border: 1px solid var(--aid-border);
  background: linear-gradient(180deg, var(--aid-surface), var(--aid-bg-soft));
  color: var(--aid-text);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.aidev-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, .45);
  box-shadow: var(--aid-shadow);
  color: var(--aid-text);
}

.aidev-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aidev-card-logo,
.aidev-logo-fallback {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--aid-border);
  background: var(--aid-surface-2);
}

.aidev-logo-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--aid-blue);
  background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(139, 92, 246, .18));
}

.aidev-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aid-text);
  line-height: 1.35;
  margin: 0;
}

.aidev-card-cat {
  font-size: .76rem;
  color: var(--aid-text-2);
  margin-top: 2px;
}

.aidev-card-desc {
  color: var(--aid-text-2);
  font-size: .88rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.aidev-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.aidev-card-link {
  font-size: .85rem;
  font-weight: 650;
  color: var(--aid-blue) !important;
  margin-left: auto;
}

/* 徽章 / 芯片 */
.aidev-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.aidev-badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.aidev-badge-free { color: #4ADE80; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); }
.aidev-badge-freemium { color: #7dd3fc; background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .35); }
.aidev-badge-paid { color: #fbbf24; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
.aidev-badge-open_source { color: #c4b5fd; background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .38); }
.aidev-badge-unknown { color: var(--aid-text-2); background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .28); }

.aidev-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--aid-text-2);
  background: var(--aid-surface-2);
  border: 1px solid var(--aid-border);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

/* 详情页工具条 */
.aidev-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 30px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--aid-border);
  background: linear-gradient(135deg, rgba(23, 32, 51, .95), rgba(16, 22, 37, .95));
}

.aidev-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.aidev-verified { font-size: .76rem; color: #64748B; }

.aidev-cta {
  margin-left: auto;
  display: inline-block;
  padding: .62rem 1.3rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 700;
  color: #04070E !important;
  background: linear-gradient(135deg, var(--aid-blue), var(--aid-purple));
  box-shadow: 0 14px 34px -16px rgba(56, 189, 248, .95);
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.aidev-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -16px rgba(139, 92, 246, .95);
  color: #04070E !important;
}

/* 详情页布局 */
.aidev-crumb {
  font-size: .82rem;
  color: #64748B;
  margin-bottom: 20px;
}

.aidev-crumb a { color: var(--aid-text-2); }
.aidev-crumb a:hover { color: var(--aid-blue); }

.aidev-detail-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--aid-border);
}

.aidev-detail-logo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--aid-border);
  background: var(--aid-surface-2);
  flex: 0 0 auto;
}

.aidev-detail-head h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  color: var(--aid-text);
}

.aidev-detail-tagline {
  color: var(--aid-text-2);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 14px;
}

.aidev-detail-head .aidev-cta { margin: 14px 0 0; }

.aidev-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 40px;
  align-items: start;
}

.aidev-side {
  position: sticky;
  top: 92px;
  padding: 20px;
  border-radius: var(--aid-radius);
  border: 1px solid var(--aid-border);
  background: var(--aid-surface);
}

.aidev-side h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--aid-text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--aid-border);
}

.aidev-side dl { margin: 0; }

.aidev-side dt {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748B;
  margin-top: 12px;
}

.aidev-side dt:first-child { margin-top: 0; }

.aidev-side dd {
  margin: 3px 0 0;
  font-size: .9rem;
  color: var(--aid-text);
}

.aidev-side-link {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--aid-border);
  font-size: .86rem;
  font-weight: 600;
}

/* 搜索 / 无结果 */
.aidev-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--aid-text-2);
  border: 1px dashed var(--aid-border);
  border-radius: var(--aid-radius);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .aidev-detail-body { grid-template-columns: 1fr; gap: 28px; }
  .aidev-side { position: static; }
  .aidev-hero { padding: 60px 0 46px; }
}

@media (max-width: 768px) {
  .aidev-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .aidev-header-inner { min-height: 60px; gap: 14px; }
  .aidev-nav { gap: 14px; font-size: .9rem; }
  .aidev-search { flex-direction: column; border-radius: 18px; padding: 10px; }
  .aidev-search input[type="search"] { padding: .6rem .8rem !important; }
  .aidev-search button { width: 100%; border-radius: 12px; }
  .aidev-detail-head { flex-direction: column; gap: 16px; }
  .aidev-toolbar { flex-direction: column; align-items: stretch; }
  .aidev-cta { margin-left: 0; text-align: center; }
}

@media (max-width: 480px) {
  .aidev-grid { grid-template-columns: 1fr; }
  .aidev-hero h1 { font-size: 1.85rem; }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 首页短代码组件（v1.0.1） ---------- */
.aidev-eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aid-blue);
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.aidev-hero-home { padding: 72px 0 56px; text-align: left; }
.aidev-hotwords { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.aidev-hotwords a {
  font-size: .84rem;
  color: var(--aid-text-2);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--aid-border);
  background: rgba(23,32,51,.6);
}
.aidev-hotwords a:hover { color: var(--aid-blue); border-color: rgba(56,189,248,.45); }

.aidev-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin: 44px 0 8px;
}
.aidev-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-radius: var(--aid-radius);
  border: 1px solid var(--aid-border);
  background: linear-gradient(180deg, var(--aid-surface), var(--aid-bg-soft));
  color: var(--aid-text);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.aidev-cat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aid-blue), var(--aid-purple), var(--aid-pink));
  opacity: .55;
}
.aidev-cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,.45);
  box-shadow: var(--aid-shadow);
  color: var(--aid-text);
}
.aidev-cat-icon { font-size: 1.35rem; line-height: 1; margin-bottom: 6px; }
.aidev-cat-name { font-size: 1.02rem; font-weight: 700; }
.aidev-cat-count { font-size: .78rem; color: var(--aid-blue); font-weight: 600; }
.aidev-cat-sample { font-size: .78rem; color: #64748B; margin-top: 4px; line-height: 1.5; }

.aidev-section-sub { color: var(--aid-text-2); font-size: .88rem; margin: 2px 0 0; }

.aidev-rank { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.aidev-rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--aid-border);
  background: rgba(16,22,37,.72);
}
.aidev-rank-no {
  display: grid; place-items: center;
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 8px;
  font-size: .8rem; font-weight: 800;
  color: #04070E;
  background: linear-gradient(135deg, var(--aid-blue), var(--aid-purple));
}
.aidev-rank-name { color: var(--aid-text); font-weight: 600; font-size: .95rem; }
.aidev-rank-meta { margin-left: auto; font-size: .78rem; color: var(--aid-text-2); }

.aidev-about { max-width: 820px; padding-bottom: 48px; }
.aidev-about p { color: var(--aid-text-2); line-height: 1.9; font-size: .95rem; }

@media (max-width: 992px) { .aidev-cats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .aidev-cats { grid-template-columns: 1fr; } .aidev-hero-home { padding: 48px 0 40px; } }

/* ---- 工具图标（本地托管 favicon）---- */
.aidev-card-logo { object-fit: contain; padding: 6px; background: #fff; border-color: rgba(255,255,255,.16); }
.aidev-card-logo-fallback { padding: 0; object-fit: unset; background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(139,92,246,.22)); color: #DBEAFE; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.aidev-detail-logo { object-fit: contain; padding: 10px; background: #fff; border-color: rgba(255,255,255,.16); }

/* ---- 分类 / 搜索归档页 ---- */
.aidev-archive { padding: 32px 0 56px; }
.aidev-archive-head { margin-bottom: 18px; }
.aidev-archive-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--aid-text); }
.aidev-archive-sub { margin: 0; color: var(--aid-text-2); font-size: .95rem; }
.aidev-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; padding: 10px 12px; border: 1px solid var(--aid-border); border-radius: 14px; background: rgba(16,22,37,.62); }
.aidev-filters, .aidev-sorts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aidev-filter, .aidev-sort { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: .875rem; color: var(--aid-text-2); text-decoration: none; border: 1px solid transparent; transition: .16s ease; }
.aidev-filter:hover, .aidev-sort:hover { color: var(--aid-text); background: rgba(56,189,248,.1); }
.aidev-filter.is-on, .aidev-sort.is-on { color: #06121F; background: linear-gradient(135deg, #38BDF8, #8B5CF6); font-weight: 700; }
.aidev-empty { padding: 56px 0; text-align: center; color: var(--aid-text-2); }
.aidev-empty a { color: #7DD3FC; }
.aidev-pager { margin-top: 30px; display: flex; justify-content: center; }
.aidev-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; margin: 0 3px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--aid-border); color: var(--aid-text-2); text-decoration: none; font-size: .9rem; }
.aidev-pager .page-numbers.current { background: linear-gradient(135deg, #38BDF8, #8B5CF6); color: #06121F; font-weight: 700; border-color: transparent; }
.aidev-pager .page-numbers:hover { color: var(--aid-text); border-color: #38BDF8; }

/* ---- 详情页工具栏图标 ---- */
.aidev-toolbar-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.aidev-toolbar-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; padding: 5px; background: #fff; border: 1px solid rgba(255,255,255,.15); flex: none; }
@media (max-width: 620px) { .aidev-toolbar { flex-direction: column; align-items: stretch; gap: 12px; } .aidev-toolbar .aidev-cta { text-align: center; justify-content: center; } }

/* ---- 指南文章列表 ---- */
.aidev-articles { display: grid; gap: 16px; }
.aidev-article { padding: 22px 24px; border: 1px solid var(--aid-border); border-radius: 16px; background: linear-gradient(180deg, var(--aid-surface), var(--aid-bg-soft)); }
.aidev-article h2 { margin: 0 0 6px; font-size: 1.18rem; line-height: 1.45; }
.aidev-article h2 a { color: var(--aid-text); text-decoration: none; }
.aidev-article h2 a:hover { color: #7DD3FC; }
.aidev-article-meta { margin: 0 0 10px; font-size: .8rem; color: var(--aid-text-2); }
.aidev-article-desc { margin: 0 0 12px; color: var(--aid-text-2); line-height: 1.85; font-size: .95rem; }



