/* fxd.zone 资讯站公共样式 —— 白底 + 紫色点缀（对齐项目浅色审美：扁平、4px圆角、少渐变） */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-page: #f7f6fa;          /* 页面底色：近白微紫 */
  --bg-card: #ffffff;          /* 卡片白 */
  --bg-soft: #f1eef7;          /* 次级底（标签/代码块） */
  --text-main: #2a2a3a;
  --text-sub: #77768c;
  --accent: #7c5cbf;           /* 项目紫 */
  --accent-soft: rgba(124, 92, 191, 0.08);
  --border: #e6e3ef;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-page);
  /* 白底 + 主题色透明纹路（细点阵，极淡） */
  background-image: radial-gradient(rgba(124, 92, 191, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text-main);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ===== 页头 ===== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-size: 16px; font-weight: 600; }
.brand-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
}
.header-right { margin-left: auto; font-size: 12px; color: var(--text-sub); }

/* ===== 目录页 ===== */
.catalog { max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }

.catalog-hero {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 26px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.catalog-hero h1 { font-size: 22px; margin-bottom: 6px; }
.catalog-hero p { font-size: 13px; color: var(--text-sub); }

.section { margin-bottom: 30px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title h2 { font-size: 16px; }
.section-title .count {
  font-size: 11px;
  color: var(--text-sub);
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 1px 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px;
  display: block;
  color: var(--text-main);
  transition: box-shadow 0.15s, transform 0.15s;
}
.article-card:hover {
  box-shadow: 0 4px 14px rgba(124, 92, 191, 0.12);  /* 轻盈悬浮阴影 */
  transform: translateY(-2px);
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.article-card h3 { font-size: 15px; margin-bottom: 6px; line-height: 1.5; }
.article-card .summary {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 10px;
}
.card-meta { font-size: 11px; color: var(--text-sub); display: flex; gap: 12px; }

.empty-hint {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 18px;
  text-align: center;
}

/* ===== 文章页 ===== */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }

.back-link { font-size: 13px; display: inline-block; margin-bottom: 18px; }

.article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 30px;
}
.article .meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.article h1 { font-size: 22px; line-height: 1.5; margin-bottom: 8px; }
.article .date { font-size: 12px; color: var(--text-sub); margin-bottom: 26px; }

.article-body h2 {
  font-size: 17px;
  margin: 28px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);   /* 竖线只作标题装饰，非分隔符 */
}
.article-body p { font-size: 14px; margin-bottom: 12px; }
.article-body ul, .article-body ol {
  font-size: 14px;
  margin: 0 0 12px 22px;
}
.article-body li { margin-bottom: 6px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.article-body th { background: var(--bg-soft); font-weight: 600; }
.article-body blockquote {
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-main);
  margin: 14px 0;
}
.article-body strong { color: var(--accent); }

.demo-banner {
  background: #fff7e8;
  border: 1px solid #f0dfb8;
  color: #a07d2f;
  font-size: 12px;
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 18px;
  text-align: center;
}

/* ===== 首页 Hero（痛点标语） ===== */
.hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 30px;
  margin-bottom: 30px;
  text-align: center;
}
.hero h1 { font-size: 26px; margin-bottom: 10px; letter-spacing: 0.5px; }
.hero p { font-size: 14px; color: var(--text-sub); max-width: 560px; margin: 0 auto 20px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 4px;
}
.btn-ghost {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: 4px;
}

/* ===== 能力卡 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.feature-card:hover {
  box-shadow: 0 4px 14px rgba(124, 92, 191, 0.12);
  transform: translateY(-2px);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }

/* ===== 三步开打 ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  position: relative;
}
.step-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.step-card h3 { font-size: 15px; margin-bottom: 6px; }
.step-card p { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ===== 结尾转化区（小程序 + 服务号双卡） ===== */
.cta-final {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-text h2 { font-size: 17px; margin-bottom: 8px; }
.cta-text p { font-size: 13px; color: var(--text-sub); }
.qr-placeholder {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.6;
}

.qr-img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ===== 页脚（含备案信息） ===== */
.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
}
.site-footer .footer-copy { margin-bottom: 6px; }
.site-footer .filing {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .filing a { color: var(--text-sub); font-size: 11px; }
.site-footer .filing a:hover { color: var(--accent); opacity: 1; }

@media (max-width: 720px) { .cta-final { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
  .catalog, .article-wrap { padding-top: 20px; }
  .article { padding: 22px 18px; }
  .article h1 { font-size: 19px; }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 21px; }
  .cta-card { padding: 20px 18px; }
}
