/* 独立专题页（不依赖站点 style.css）：页面与文章的独立版式 */
:root {
  --xi-bg: #f4f8fc;
  --xi-surface: #ffffff;
  --xi-ink: #10233c;
  --xi-ink-2: #334a63;
  --xi-muted: #6b7f95;
  --xi-line: #dce7f2;
  --xi-primary: #0b63c5;
  --xi-primary-dark: #084a96;
  --xi-radius: 16px;
  --xi-shadow: 0 18px 45px rgba(16, 35, 60, .10);
  --xi-wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--xi-ink);
  background: var(--xi-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--xi-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.xi-wrap {
  width: min(var(--xi-wrap), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- header ---------- */
.xi-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--xi-line);
}
.xi-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.xi-brand { display: flex; align-items: center; gap: 12px; color: var(--xi-ink); }
.xi-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b63c5, #38bdf8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}
.xi-brand strong { display: block; font-size: 17px; line-height: 1.3; }
.xi-brand small { display: block; color: var(--xi-muted); font-size: 12px; }
.xi-header-phone { text-align: right; line-height: 1.2; }
.xi-header-phone span { display: block; font-size: 12px; color: var(--xi-muted); }
.xi-header-phone a {
  font-size: 20px;
  font-weight: 800;
  color: var(--xi-ink);
  letter-spacing: .01em;
}
.xi-header-phone a:hover { color: var(--xi-primary); }

/* ---------- hero ---------- */
.xi-hero { position: relative; overflow: hidden; background: #0b1e33; color: #fff; }
.xi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(7, 22, 39, .95) 0%, rgba(7, 22, 39, .78) 48%, rgba(7, 22, 39, .45) 100%),
    var(--xi-hero-img, none);
  background-size: cover;
  background-position: center;
}
.xi-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 76px 0 64px;
}
.xi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--xi-primary);
  text-transform: uppercase;
}
.xi-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--xi-primary); }
.xi-hero .xi-eyebrow { color: #7dd3fc; }
.xi-hero .xi-eyebrow::before { background: #7dd3fc; }
.xi-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.22;
  letter-spacing: -.02em;
  color: #fff;
  word-break: keep-all;
}
.xi-sub {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 1.7vw, 19px);
  max-width: 680px;
}
.xi-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.xi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: .2s;
}
.xi-btn-primary {
  background: #fff;
  color: #0b1e33;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.xi-btn-primary:hover { transform: translateY(-1px); background: #eaf4ff; }
.xi-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}
.xi-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.xi-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.xi-points li {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
}
.xi-points strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }

/* ---------- sections ---------- */
.xi-section { padding: 56px 0; }
.xi-content { background: #fff; border-bottom: 1px solid var(--xi-line); }
.xi-prose { max-width: 850px; font-size: 16.5px; color: var(--xi-ink-2); }
.xi-prose > p:first-child { font-size: 18px; color: var(--xi-ink); }
.xi-prose h2 {
  margin: 42px 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--xi-ink);
}
.xi-prose h3 { margin: 30px 0 10px; font-size: 20px; color: var(--xi-ink); }
.xi-prose p { margin: 0 0 16px; }
.xi-prose ul,
.xi-prose ol { margin: 0 0 18px; padding-left: 24px; }
.xi-prose li { margin-bottom: 8px; }
.xi-prose strong { color: var(--xi-ink); }
.xi-prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--xi-primary);
  background: #f2f7ff;
  color: var(--xi-ink-2);
  border-radius: 0 10px 10px 0;
}
.xi-cta {
  margin: 36px 0 0;
  padding: 24px;
  border-radius: var(--xi-radius);
  background: linear-gradient(135deg, #0b63c5, #0e7fd6);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.xi-cta strong { display: block; font-size: 18px; }
.xi-cta p { margin: 4px 0 0; color: rgba(255, 255, 255, .84); font-size: 14px; }
.xi-cta a {
  background: #fff;
  color: var(--xi-primary);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- article archive ---------- */
.xi-articles { background: var(--xi-bg); }
.xi-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.xi-section-head h2 { margin: 8px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.xi-section-head p { margin: 0; color: var(--xi-muted); font-size: 14px; }
.xi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.xi-card {
  background: #fff;
  border: 1px solid var(--xi-line);
  border-radius: var(--xi-radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 35, 60, .05);
  display: flex;
  flex-direction: column;
}
.xi-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dbe7f5; }
.xi-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.xi-card:hover .xi-card-media img { transform: scale(1.04); }
.xi-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.xi-card-body time { color: var(--xi-muted); font-size: 12.5px; }
.xi-card-body h3 { margin: 8px 0 10px; font-size: 19px; line-height: 1.45; }
.xi-card-body h3 a { color: var(--xi-ink); }
.xi-card-body h3 a:hover { color: var(--xi-primary); }
.xi-card-body p { margin: 0 0 16px; color: var(--xi-ink-2); font-size: 14.5px; line-height: 1.7; }
.xi-card-link { margin-top: auto; font-weight: 700; font-size: 14px; }
.xi-empty {
  padding: 30px;
  background: #fff;
  border: 1px dashed var(--xi-line);
  border-radius: var(--xi-radius);
  color: var(--xi-muted);
  text-align: center;
}
.xi-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.xi-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--xi-line);
  color: var(--xi-ink-2);
  font-weight: 700;
  font-size: 14px;
}
.xi-page-btn:hover { border-color: var(--xi-primary); color: var(--xi-primary); }
.xi-page-btn.current { background: var(--xi-primary); border-color: var(--xi-primary); color: #fff; }
.xi-page-btn.disabled { opacity: .4; pointer-events: none; }

/* ---------- article page ---------- */
.xi-article { padding: 48px 0 64px; background: #fff; }
.xi-article-inner { max-width: 850px; }
.xi-crumb { font-size: 13px; color: var(--xi-muted); margin-bottom: 18px; }
.xi-crumb a { color: var(--xi-primary); }
.xi-article h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.xi-meta { color: var(--xi-muted); font-size: 13.5px; margin: 0 0 26px; }
.xi-cover { width: 100%; border-radius: var(--xi-radius); margin: 0 0 28px; box-shadow: var(--xi-shadow); }
.xi-related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--xi-line); }
.xi-related h2 { font-size: 26px; margin: 0 0 22px; }

/* ---------- footer ---------- */
.xi-footer { background: #0d1f35; color: rgba(255, 255, 255, .78); padding: 40px 0; }
.xi-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.xi-footer strong { color: #fff; display: block; font-size: 16px; margin-bottom: 4px; }
.xi-footer a { color: #fff; font-weight: 800; font-size: 20px; }
.xi-footer p { margin: 0; font-size: 13px; }
.xi-footer-right { text-align: right; }

@media (max-width: 900px) {
  .xi-points { grid-template-columns: 1fr; }
  .xi-grid { grid-template-columns: 1fr; }
  .xi-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 640px) {
  .xi-wrap { width: min(var(--xi-wrap), calc(100% - 28px)); }
  .xi-header-inner { min-height: 64px; }
  .xi-brand small { display: none; }
  .xi-header-phone a { font-size: 17px; }
  .xi-hero-inner { padding: 48px 0 40px; }
  .xi-hero h1 { word-break: normal; font-size: clamp(26px, 8vw, 30px); }
  .xi-actions .xi-btn { width: 100%; }
  .xi-section { padding: 40px 0; }
  .xi-cta { flex-direction: column; align-items: flex-start; }
  .xi-cta a { width: 100%; text-align: center; }
  .xi-footer-right { text-align: left; }
}
