/* 行业权威知识网站 — 公开前台样式 */
:root {
  --theme: #1e40af;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --card: #f3f4f6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --font: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--theme); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--theme); color: #fff; padding: 8px 16px; z-index: 9999;
}
.skip-link:focus { left: 0; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.site-brand { display: flex; flex-direction: column; color: inherit; text-decoration: none !important; }
.site-brand-name { font-size: 1.15rem; font-weight: 700; color: var(--theme); }
.site-brand-tag { font-size: 12px; color: var(--muted); margin-top: 2px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.site-nav-link { font-size: 14px; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none !important; }
.site-nav-link:hover, .site-nav-link.active { color: var(--theme); border-bottom-color: var(--theme); }
.site-nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 18px; cursor: pointer; }

.site-hero {
  position: relative;
  color: var(--text);
  padding: 44px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.site-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(147, 197, 253, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(165, 180, 252, 0.28), transparent 50%),
    linear-gradient(105deg, #eef6ff 0%, #e8eefc 42%, #e4e7fb 100%);
}
.site-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 70%, rgba(59, 130, 246, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 55%, rgba(99, 102, 241, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.08) 0 1.5px, transparent 3px);
  background-size: 48px 48px, 64px 64px, 36px 36px;
  pointer-events: none;
}
.site-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
}
.site-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.06);
  font-size: 13px;
  color: #475569;
  backdrop-filter: blur(6px);
}
.site-hero-stats strong { color: #1e3a8a; font-weight: 700; }
.site-hero-stats-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
}
.site-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4.5vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 16em;
  background: linear-gradient(100deg, #1d4ed8 0%, #3730a3 55%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-hero-sub {
  margin: 0 0 10px;
  max-width: 560px;
  font-size: 1.05rem;
  color: #475569;
}
.site-hero-ai {
  font-size: 14px;
  color: #64748b;
  max-width: 640px;
  margin: 0 0 22px;
}
.site-search-form {
  display: flex;
  width: 100%;
  max-width: 640px;
  gap: 0;
  background: #fff;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
}
.site-search-form input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 14px 18px;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.site-search-form button {
  border: none;
  background: var(--theme);
  color: #fff;
  font-weight: 600;
  padding: 0 22px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.site-search-form button:hover { filter: brightness(1.05); }
.site-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.site-hero-tags a {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
  text-decoration: none !important;
}
.site-hero-tags a:hover {
  border-color: var(--theme);
  color: var(--theme);
  background: #fff;
}

.site-home-main { padding-bottom: 8px; }

.site-entity {
  padding: 40px 0 48px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.site-entity-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 650;
}
.site-entity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}
@media (max-width: 720px) {
  .site-entity-grid { grid-template-columns: 1fr; }
}
.site-entity-item {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.site-entity-item dt {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.site-entity-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.site-entity-more {
  margin: 14px 0 0;
  font-size: 13px;
}
.site-entity-more a { text-decoration: underline; text-underline-offset: 2px; }

.site-cat-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px;
}
.site-cat-pills a {
  background: var(--card); border: 1px solid var(--border); padding: 6px 14px;
  border-radius: 999px; font-size: 13px; color: var(--text); text-decoration: none !important;
}
.site-cat-pills a:hover { border-color: var(--theme); color: var(--theme); background: #fff; }

.site-section { margin: 36px 0; }
.site-section-head h2 { margin: 0 0 6px; font-size: 1.35rem; }
.site-section-head h2 a { color: inherit; text-decoration: none !important; }
.site-section-head p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.site-grid-compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.site-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.site-card:hover { background: #eef0f3; box-shadow: 0 8px 24px rgba(15,23,42,0.06); transform: translateY(-2px); }
.site-card-link { display: block; padding: 20px; color: inherit; text-decoration: none !important; height: 100%; }
.site-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--theme); }
.site-card-title { margin: 8px 0; font-size: 1.05rem; line-height: 1.45; }
.site-card-excerpt { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.site-card-meta { margin-top: 14px; font-size: 12px; color: var(--muted); display: flex; gap: 12px; }

.site-list {
  display: flex; flex-direction: column; gap: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.site-list-item { border-bottom: 1px solid var(--border); }
.site-list-item:last-child { border-bottom: none; }
.site-list-link {
  display: flex; gap: 20px; align-items: flex-start; padding: 18px 20px;
  color: inherit; text-decoration: none !important;
}
.site-list-link:hover { background: #eef0f3; }
.site-list-main { flex: 1; min-width: 0; }
.site-list-title { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.45; }
.site-list-excerpt {
  margin: 0; font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.site-list-aside {
  flex-shrink: 0; min-width: 96px; text-align: right; font-size: 12px; color: var(--muted);
}
.site-list-cat {
  display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--theme); text-transform: uppercase;
}
.site-list-date { display: block; white-space: nowrap; }

.site-page-header { padding: 32px 0 16px; }
.site-page-header h1 { margin: 8px 0; font-size: 1.75rem; }
.site-page-desc { color: var(--muted); max-width: 640px; }
.site-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.site-article-wrap { padding: 24px 0 48px; }
.site-article {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 36px; box-shadow: var(--shadow); max-width: 820px;
}
.site-article-cat { font-size: 12px; font-weight: 700; color: var(--theme); text-decoration: none !important; }
.site-article-header h1 { margin: 12px 0 14px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; }
.site-article-meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; color: var(--muted);
}
.site-article-meta li { display: flex; align-items: center; }
.site-article-meta li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: #cbd5e1; margin-right: 16px; flex-shrink: 0;
}
.site-meta-label {
  display: inline-block; margin-right: 4px;
  font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: .02em;
}
.site-article-body { font-size: 1.02rem; line-height: 1.8; margin-top: 0; padding-top: 28px; border-top: 1px solid var(--border); }

.site-article-byline { margin: 20px 0 24px; }
.site-byline-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.site-byline-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; min-width: 0;
}
.site-byline-sep {
  width: 1px; background: var(--border); align-self: stretch; margin: 12px 0;
}
.site-byline-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.site-byline-icon--author { background: rgba(30, 64, 175, .1); color: var(--theme); }
.site-byline-icon--org { background: rgba(14, 116, 144, .1); color: #0e7490; }
.site-byline-content { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.site-byline-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8;
}
.site-byline-title {
  font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.4;
  word-break: break-word;
}
.site-byline-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.site-byline-badge {
  display: inline-flex; align-self: flex-start; margin-top: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--theme);
  background: rgba(30, 64, 175, .08); border: 1px solid rgba(30, 64, 175, .15);
}
.site-byline-notes {
  margin-top: 10px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; line-height: 1.65; color: var(--text);
}
.site-byline-note { margin: 0; }
.site-byline-note + .site-byline-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.site-byline-note-label {
  display: inline-block; margin-right: 6px;
  font-size: 11px; font-weight: 700; color: #94a3b8;
}
.site-byline-link {
  display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}

.site-article-body h2, .site-article-body h3 { margin-top: 1.6em; color: #111827; }
.site-article-body p { margin: 1em 0; }
.site-article-body ul, .site-article-body ol { padding-left: 1.4em; }
.site-article-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.site-article-body th, .site-article-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.site-article-body blockquote { border-left: 4px solid var(--theme); margin: 1em 0; padding: 8px 16px; color: var(--muted); background: #f9fafb; }

.site-faq-block {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
}
.site-faq-title { margin: 0 0 1em; font-size: 1.35rem; }
.site-faq-item {
  margin: 0 0 1.2em;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.site-faq-q { margin: 0 0 8px; font-size: 1.05rem; color: #111827; }
.site-faq-a { color: var(--text); }
.site-faq-a p { margin: .6em 0; }

.site-article-source { margin-top: 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; }

/* 文章尾部转化钩子 */
.article-hook {
  margin-top: 32px; padding: 20px 20px 16px; border-radius: var(--radius);
  max-width: 820px;
}
.article-hook--dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0; border-left: 4px solid #3b82f6;
}
.article-hook--classic {
  background: #f8fafc; border: 1px solid var(--border); border-left: 4px solid var(--theme);
  color: #334155;
}
.article-hook-items { display: flex; flex-direction: column; gap: 16px; }
.article-hook-item { display: block; }
.article-hook-title {
  display: block; font-size: 1rem; font-weight: 600; line-height: 1.45;
  color: inherit; text-decoration: none !important;
}
.article-hook--dark .article-hook-title { color: #f1f5f9; }
.article-hook--dark .article-hook-title:hover { color: #93c5fd; }
.article-hook--classic .article-hook-title { color: var(--theme); }
.article-hook-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; opacity: 0.88; }
.article-hook-desc p { margin: 0.4em 0; }
.article-hook-desc a { color: inherit; text-decoration: underline; }
.article-hook--dark .article-hook-desc a { color: #93c5fd; }
.article-hook-foot {
  margin: 16px 0 0; padding-top: 12px; font-size: 12px; line-height: 1.5;
  border-top: 1px solid rgba(148, 163, 184, 0.35); opacity: 0.75;
}
.article-hook--classic .article-hook-foot { border-top-color: var(--border); color: var(--muted); }

.site-related { margin-top: 40px; }
.site-related h2 { font-size: 1.1rem; margin-bottom: 16px; }

.site-topic-cluster {
  margin-top: 36px; padding: 22px 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--border); border-radius: 14px;
}
.site-cluster-head { margin-bottom: 16px; }
.site-cluster-title { margin: 0 0 6px; font-size: 1.1rem; color: #0f172a; }
.site-cluster-topic { margin: 0; font-size: 13px; color: var(--muted); }
.site-cluster-pillar {
  padding: 14px 16px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
}
.site-cluster-pillar-label {
  display: inline-block; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--theme);
}
.site-cluster-pillar-link {
  display: inline-block; font-size: 15px; text-decoration: none !important;
}
.site-cluster-pillar-link strong { color: #0f172a; }
.site-cluster-pillar-link:hover strong { color: var(--theme); }
.site-cluster-pillar-desc { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.site-cluster-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.site-cluster-list li {
  padding: 12px 14px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
}
.site-cluster-list a {
  font-weight: 600; font-size: 14px; color: #0f172a; text-decoration: none !important;
}
.site-cluster-list a:hover { color: var(--theme); }
.site-cluster-item-desc {
  margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.site-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; justify-content: center; }
.site-pagination a {
  display: inline-block; min-width: 36px; text-align: center; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; text-decoration: none !important;
}
.site-pagination a.active, .site-pagination a:hover { background: var(--theme); color: #fff; border-color: var(--theme); }

.site-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.site-empty-hint { font-size: 14px; }
.site-result-count { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.site-footer {
  background: #fff; border-top: 1px solid var(--border); margin-top: 48px;
  padding: 32px 0; font-size: 13px; color: var(--muted);
}
.site-footer-about { max-width: 640px; margin-bottom: 12px; }
.site-footer-copy { margin: 0 0 8px; }
.site-footer-meta a { color: var(--muted); }

@media (max-width: 768px) {
  .site-nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; flex-direction: column; align-items: flex-start;
  }
  body.nav-open .site-nav { display: flex; }
  .site-header-inner { position: relative; flex-wrap: wrap; }
  .site-article { padding: 24px 20px; }
  .site-byline-panel { grid-template-columns: 1fr; }
  .site-byline-sep { width: auto; height: 1px; margin: 0 16px; }
  .site-article-meta li + li::before { display: none; }
  .site-topic-cluster { padding: 18px 16px; }
  .site-list-link { flex-direction: column; gap: 10px; }
  .site-list-aside { text-align: left; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-card { transition: none; }
}
