/*
Theme Name: Xunfeng Review
Theme URI: https://www.xunfeng.xin/
Description: 基于 Twenty Twenty-Five 的寻峰服务器测评内容主题。
Author: Xunfeng
Template: twentytwentyfive
Version: 1.1.0
Text Domain: xunfeng-review
*/

:root {
  --xf-bg: #f5f7fa;
  --xf-paper: #fffdf8;
  --xf-surface: #ffffff;
  --xf-ink: #111827;
  --xf-text: #273142;
  --xf-muted: #687386;
  --xf-line: #d9e0ea;
  --xf-soft: #eef3f8;
  --xf-primary: #1f3a5f;
  --xf-accent: #b45309;
  --xf-green: #0f766e;
  --xf-radius: 6px;
  --xf-wrap: 1120px;
  --xf-shadow: 0 10px 28px rgba(17, 24, 39, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--xf-text);
  background: var(--xf-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.74;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--xf-primary); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text,
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff;
  background: var(--xf-primary);
  border-radius: var(--xf-radius);
}
.xf-wrap {
  width: min(var(--xf-wrap), calc(100% - 40px));
  margin: 0 auto;
}

.xf-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--xf-line);
  backdrop-filter: blur(10px);
}
.xf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.xf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}
.xf-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #c7d2e2;
  border-radius: 7px;
  background: #eef3f8;
  color: var(--xf-primary);
}
.xf-logo svg { width: 25px; height: 25px; stroke: currentColor; }
.xf-brand strong {
  display: block;
  color: var(--xf-ink);
  font-size: 18px;
  line-height: 1.15;
}
.xf-brand span span {
  display: block;
  margin-top: 3px;
  color: var(--xf-muted);
  font-size: 12px;
  line-height: 1.4;
}
.xf-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xf-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: #334155;
  border-radius: var(--xf-radius);
  font-size: 14px;
  font-weight: 650;
}
.xf-nav a:hover,
.xf-nav .current-menu-item > a {
  color: var(--xf-primary);
  background: var(--xf-soft);
}

.xf-hero {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, var(--xf-paper), rgba(255, 253, 248, 0));
  border-bottom: 1px solid rgba(217, 224, 234, .55);
}
.xf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: end;
}
.xf-hero-copy { max-width: 760px; }
.xf-kicker,
.xf-section-label {
  display: inline-flex;
  align-items: center;
  color: var(--xf-accent);
  font-size: 13px;
  font-weight: 750;
}
.xf-kicker { margin-bottom: 14px; }
.xf-hero h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--xf-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}
.xf-hero p {
  max-width: 690px;
  margin: 0;
  color: #455164;
  font-size: 18px;
}
.xf-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 620px;
  margin-top: 24px;
}
.xf-search input {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: #fff;
  color: var(--xf-ink);
  padding: 0 14px;
  font: inherit;
  outline: 0;
}
.xf-search input:focus {
  border-color: var(--xf-primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 95, .12);
}
.xf-btn,
.xf-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: var(--xf-radius);
  background: var(--xf-primary);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.xf-btn:hover,
.xf-search button:hover {
  background: #172b47;
  color: #fff;
}
.xf-btn--ghost {
  color: var(--xf-primary);
  background: #fff;
  border: 1px solid #b8c7d8;
}
.xf-btn--ghost:hover { color: #fff; }
.xf-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--xf-primary);
  font-weight: 700;
}

.xf-hero-note {
  padding: 20px;
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: var(--xf-surface);
  box-shadow: var(--xf-shadow);
}
.xf-lead-link {
  display: block;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--xf-line);
}
.xf-lead-link span,
.xf-lead-link small {
  display: block;
  color: var(--xf-muted);
  font-size: 13px;
}
.xf-lead-link strong {
  display: block;
  margin: 7px 0 10px;
  color: var(--xf-ink);
  font-size: 22px;
  line-height: 1.35;
}

.xf-section { padding: 34px 0; }
.xf-section--tight { padding: 22px 0 10px; }
.xf-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.xf-section h2,
.xf-page-title {
  margin: 4px 0 0;
  color: var(--xf-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}
.xf-section-head p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--xf-muted);
}

.xf-category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: #fff;
  overflow: hidden;
}
.xf-category-strip a {
  min-height: 96px;
  padding: 16px;
  border-right: 1px solid var(--xf-line);
}
.xf-category-strip a:last-child { border-right: 0; }
.xf-category-strip strong {
  display: block;
  color: var(--xf-ink);
  font-size: 17px;
  line-height: 1.25;
}
.xf-category-strip span {
  display: block;
  margin-top: 8px;
  color: var(--xf-muted);
  font-size: 13px;
}

.xf-front-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}
.xf-post-list {
  display: grid;
  gap: 12px;
}
.xf-post-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: #fff;
}
.xf-post-row .thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  background: var(--xf-soft);
}
.xf-post-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--xf-muted);
  font-size: 13px;
  line-height: 1.4;
}
.xf-post-row h3,
.xf-post-card h3 {
  margin: 7px 0 6px;
  color: var(--xf-ink);
  font-size: 21px;
  line-height: 1.34;
}
.xf-post-row p,
.xf-post-card p {
  margin: 0;
  color: #4b5565;
  font-size: 14px;
}
.xf-front-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}
.xf-side-block,
.xf-sidebar-box {
  padding: 18px;
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .04);
}
.xf-side-block h2,
.xf-sidebar-box h2,
.xf-sidebar-box h3 {
  margin: 0 0 12px;
  color: var(--xf-ink);
  font-size: 18px;
  line-height: 1.3;
}
.xf-side-block ul,
.xf-sidebar-box ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xf-side-block li,
.xf-sidebar-box li {
  color: #475569;
  font-size: 14px;
}
.xf-side-links {
  display: grid;
  gap: 8px;
}
.xf-side-links a {
  padding: 9px 0;
  border-bottom: 1px solid #edf1f5;
  color: #334155;
  font-weight: 650;
}
.xf-side-links a:last-child { border-bottom: 0; }

.xf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.xf-card,
.xf-article,
.xf-archive-intro {
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .04);
}
.xf-topic-card { padding: 18px; min-height: 220px; }
.xf-topic-card svg { width: 26px; height: 26px; stroke: var(--xf-primary); }
.xf-topic-card h3 { margin: 12px 0 8px; color: var(--xf-ink); font-size: 20px; line-height: 1.25; }
.xf-topic-card p { margin: 0 0 12px; color: var(--xf-muted); font-size: 14px; }
.xf-topic-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xf-topic-card li {
  position: relative;
  padding-left: 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}
.xf-topic-card li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--xf-accent);
}

.xf-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.xf-post-card {
  overflow: hidden;
}
.xf-post-card .thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--xf-soft);
}
.xf-post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xf-post-card .body { padding: 16px; }
.xf-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--xf-soft);
  color: var(--xf-primary);
  font-size: 12px;
  font-weight: 700;
}

.xf-main {
  width: min(var(--xf-wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}
.xf-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.xf-article {
  padding: clamp(22px, 4vw, 42px);
}
.xf-article h1 {
  margin: 10px 0 16px;
  color: var(--xf-ink);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}
.xf-article h2 { margin-top: 32px; color: var(--xf-ink); font-size: 25px; line-height: 1.3; }
.xf-article h3 { margin-top: 24px; color: var(--xf-ink); font-size: 20px; }
.xf-article p,
.xf-article li { color: #334155; }
.xf-article a {
  color: var(--xf-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.xf-article table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 15px;
}
.xf-article th,
.xf-article td {
  border: 1px solid var(--xf-line);
  padding: 10px;
  text-align: left;
}
.xf-article th { background: var(--xf-soft); }
.xf-article-featured {
  overflow: hidden;
  margin: 22px 0;
  border-radius: var(--xf-radius);
}
.xf-article-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.xf-archive-intro {
  padding: 22px;
  margin-bottom: 20px;
}
.xf-archive-intro p {
  max-width: 760px;
  color: var(--xf-muted);
}
.xf-point-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.xf-point-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #cbd7e6;
  border-radius: 999px;
  color: var(--xf-primary);
  background: var(--xf-soft);
  font-size: 13px;
  font-weight: 650;
}

.xf-empty {
  padding: 28px;
  color: var(--xf-muted);
  text-align: center;
  border: 1px dashed var(--xf-line);
  border-radius: var(--xf-radius);
  background: #fff;
}
.navigation.pagination {
  margin-top: 24px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--xf-line);
  border-radius: var(--xf-radius);
  background: #fff;
}
.page-numbers.current {
  color: #fff;
  background: var(--xf-primary);
  border-color: var(--xf-primary);
}

.xf-footer {
  padding: 34px 0;
  color: #cbd5e1;
  background: #111827;
}
.xf-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}
.xf-footer strong { color: #fff; }
.xf-footer a { color: #dbeafe; }
.xf-footer p {
  margin: 8px 0 0;
  color: #9ca3af;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .xf-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }
  .xf-nav { width: 100%; overflow-x: auto; }
  .xf-nav ul { width: max-content; min-width: 100%; }
  .xf-hero-grid,
  .xf-front-layout,
  .xf-content-layout,
  .xf-footer-grid { grid-template-columns: 1fr; }
  .xf-front-side { position: static; }
  .xf-category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xf-category-strip a { border-bottom: 1px solid var(--xf-line); }
  .xf-category-strip a:nth-child(2n) { border-right: 0; }
  .xf-grid,
  .xf-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xf-wrap,
  .xf-main { width: min(100% - 32px, var(--xf-wrap)); }
  .xf-brand { min-width: 0; }
  .xf-hero { padding: 30px 0 18px; }
  .xf-hero h1 { font-size: 36px; }
  .xf-hero p { font-size: 16px; }
  .xf-search,
  .xf-post-row,
  .xf-grid,
  .xf-post-grid,
  .xf-category-strip { grid-template-columns: 1fr; }
  .xf-search button { width: 100%; }
  .xf-category-strip a,
  .xf-category-strip a:nth-child(2n) { border-right: 0; }
  .xf-post-row { gap: 12px; padding: 12px; }
  .xf-post-row h3,
  .xf-post-card h3 { font-size: 19px; }
  .xf-section-head { display: block; }
}
