/*
Theme Name: FreeXX AI Lab
Template: twentytwentyone
Description: FreeXX 内容站子主题：科技感首页 + 干净阅读版式
Version: 1.0
*/

:root{
  --fx-bg:#f5f7fb; --fx-ink:#101828; --fx-sub:#5a6b85;
  --fx-line:#e6ebf5; --fx-accent:#2b5cff; --fx-glow:#7ee7ff;
}
body, .site, #page { background: var(--fx-bg) !important; }

.site-header{
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--fx-line);
  padding-top:10px !important; padding-bottom:10px !important;
}
.site-title, .site-title a{ font-size:clamp(19px,2vw,25px) !important; letter-spacing:.2px; color:var(--fx-ink) !important; }
.site-description{ font-size:13px; color:#8a97ab; margin-top:2px; }
.primary-navigation a{ font-size:14px !important; }
.primary-navigation > div > ul > li > a{ padding:6px 10px !important; border-radius:8px; }
.primary-navigation > div > ul > li > a:hover{ background:#eef2fb; }

.fx{ max-width:1160px; margin:0 auto; padding:0 20px 40px; }

.fx-hero{
  position:relative; overflow:hidden; margin:28px 0 0; border-radius:26px;
  padding:60px 54px; display:grid; grid-template-columns:1.15fr .85fr;
  gap:44px; align-items:center; color:#fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(79,124,255,.55) 0%, transparent 62%),
    radial-gradient(700px 380px at 92% 110%, rgba(124,77,255,.45) 0%, transparent 60%),
    linear-gradient(158deg,#080d20 0%,#0f1735 52%,#0a1026 100%);
  box-shadow:0 24px 60px rgba(10,18,45,.22);
}
.fx-hero::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
}
.fx-hero > *{ position:relative; z-index:2; }

.fx-badge{
  display:inline-block; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px; letter-spacing:.18em; color:var(--fx-glow);
  border:1px solid rgba(126,231,255,.35); background:rgba(126,231,255,.08);
  padding:7px 14px; border-radius:999px;
}
.fx-hero h1{
  font-size:clamp(30px,4.4vw,52px); line-height:1.16; letter-spacing:-.02em;
  margin:22px 0 18px; font-weight:700; text-shadow:0 0 40px rgba(126,231,255,.18);
}
.fx-lead{ font-size:16.5px; line-height:1.9; color:rgba(255,255,255,.74); max-width:540px; margin:0 0 30px; }
.fx-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.fx-btn{ display:inline-block; padding:13px 26px; border-radius:11px; font-size:15px; font-weight:600; text-decoration:none !important; transition:transform .18s ease, box-shadow .18s ease, background .18s ease; }
.fx-btn-primary{ color:#fff !important; background:linear-gradient(100deg,#3f6bff 0%,#7c4dff 100%); box-shadow:0 10px 26px rgba(63,107,255,.35); }
.fx-btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 34px rgba(63,107,255,.45); }
.fx-btn-ghost{ color:#dbe7ff !important; border:1px solid rgba(219,231,255,.3); background:rgba(255,255,255,.04); }
.fx-btn-ghost:hover{ background:rgba(255,255,255,.09); transform:translateY(-2px); }

.fx-hero-code{
  border-radius:18px; border:1px solid rgba(126,231,255,.18);
  background:rgba(8,14,32,.55); backdrop-filter:blur(10px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.35);
  padding:22px 22px 12px;
}
.fx-hero-code::before{ content:"● ● ●"; display:block; font-size:10px; letter-spacing:6px; color:rgba(126,231,255,.45); margin-bottom:14px; }
.fx-hero-code pre{
  margin:0; background:none; border:none; padding:0;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12.5px; line-height:2; color:#c9d6f5; white-space:pre-wrap;
}
.fx-hero-code .c{ color:#5f7391; }
.fx-hero-code .k{ color:#7ee7ff; }
.fx-hero-code .s{ color:#9ee6a8; }

.fx-sec-head{ display:flex; align-items:baseline; justify-content:space-between; margin:66px 0 22px; }
.fx-sec-head h2{ font-size:24px; letter-spacing:-.01em; margin:0; color:var(--fx-ink); }
.fx-sec-head h2::before{ content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:linear-gradient(135deg,#3f6bff,#7c4dff); margin-right:10px; vertical-align:middle; box-shadow:0 0 12px rgba(63,107,255,.5); }
.fx-sec-head a{ font-size:13px; color:#8a97ab; text-decoration:none; }
.fx-sec-head a:hover{ color:var(--fx-accent); }

.fx-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.fx-card{ background:#fff; border:1px solid var(--fx-line); border-radius:18px; padding:24px 24px 20px; display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fx-card:hover{ transform:translateY(-4px); border-color:#cfe0ff; box-shadow:0 16px 40px rgba(24,45,110,.10); }
.fx-cat{ align-self:flex-start; font-size:12px; font-weight:600; letter-spacing:.02em; color:#2b5cff; background:#eaf0ff; padding:4px 10px; border-radius:7px; }
.fx-card h3{ font-size:18px; line-height:1.55; margin:14px 0 10px; letter-spacing:-.01em; }
.fx-card h3 a{ color:var(--fx-ink) !important; text-decoration:none !important; }
.fx-card h3 a:hover{ color:var(--fx-accent) !important; }
.fx-card p{ font-size:14px; line-height:1.8; color:var(--fx-sub); margin:0 0 18px; flex:1; }
.fx-meta{ font-size:12px; color:#9aa8bd; font-family:ui-monospace,Menlo,Consolas,monospace; border-top:1px dashed #eef1f7; padding-top:12px; }

.fx-cats{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.fx-cat-card{ display:block; background:#fff; border:1px solid var(--fx-line); border-radius:16px; padding:22px; text-decoration:none !important; transition:transform .2s, border-color .2s, box-shadow .2s; }
.fx-cat-card:hover{ transform:translateY(-3px); border-color:#cfe0ff; box-shadow:0 14px 32px rgba(24,45,110,.08); }
.fx-cat-card b{ display:block; color:var(--fx-ink); font-size:16px; margin-bottom:6px; }
.fx-cat-card span{ font-size:13px; color:#8a97ab; line-height:1.7; }

@media (max-width:900px){
  .fx-hero{ grid-template-columns:1fr; padding:40px 26px; gap:26px; }
  .fx-hero-code{ display:none; }
  .fx-lead{ font-size:15px; }
  .fx-sec-head{ margin-top:46px; }
}


/* 字体与细节修正 */
body, .site, .site-header, .fx, h1, h2, h3, h4, .site-title, .entry-title, p, a, li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
.fx-hero h1{ font-size: clamp(28px, 3.8vw, 46px); }
.fx-card p{
  display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:3; overflow:hidden;
}
.fx-card{ min-height: 234px; }
.fx-meta{ margin-top:auto; }

@media (max-width:900px){
  .fx-hero h1{ font-size: 30px; }
  .fx-card{ min-height: 0; }
}
