/* 好物优选 hao.yayaxuan.cn 共享样式 (Hugo 版) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #1f2430;
  line-height: 1.7;
}

/* ── 顶栏 ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eef0f5;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.site-logo { font-size: 19px; font-weight: 700; color: #1f2430; text-decoration: none; }
.site-logo span { color: #5b6ef5; }
.nav { display: flex; gap: 22px; }
.nav a { color: #475467; text-decoration: none; font-size: 14px; }
.nav a:hover { color: #5b6ef5; }
.nav a.active { color: #5b6ef5; font-weight: 600; }

/* ── 主容器 ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px 56px; }

/* ── 首页 Hero ── */
.hero { padding: 46px 0 36px; text-align: center; }
.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero p { color: #667085; font-size: 16px; max-width: 640px; margin: 0 auto; }

/* ── 文章列表 ── */
.section-title { font-size: 18px; margin: 34px 0 16px; padding-left: 10px; border-left: 4px solid #5b6ef5; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.article-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f5;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16, 24, 40, 0.09); border-color: rgba(91, 110, 245, 0.25); }
.article-card .tag {
  display: inline-block;
  font-size: 12px;
  color: #4a5bd6;
  background: rgba(91, 110, 245, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.article-card h3 { font-size: 17px; margin-bottom: 8px; color: #1f2430; }
.article-card p { font-size: 13.5px; color: #667085; line-height: 1.7; }
.article-card .meta { margin-top: 12px; font-size: 12px; color: #98a2b3; }

/* ── 文章页 ── */
.article { max-width: 760px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #98a2b3; margin-bottom: 18px; }
.breadcrumb a { color: #98a2b3; text-decoration: none; }
.breadcrumb a:hover { color: #5b6ef5; }
.article h1 { font-size: 28px; line-height: 1.4; margin-bottom: 10px; }
.article .post-meta { font-size: 13px; color: #98a2b3; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid #eef0f5; }
.article .post-meta span { margin-right: 16px; }
.article h2 { font-size: 20px; margin: 34px 0 14px; padding-left: 10px; border-left: 4px solid #5b6ef5; }
.article h3 { font-size: 16px; margin: 22px 0 10px; }
.article p { margin-bottom: 14px; font-size: 15px; color: #344054; }
.article ul, .article ol { margin: 0 0 14px 22px; }
.article li { margin-bottom: 8px; font-size: 15px; color: #344054; }
/* 移动端表格横向滚动，避免破版 */
.article table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14px; white-space: nowrap; }
.article th, .article td { border: 1px solid #eef0f5; padding: 10px 12px; text-align: left; white-space: normal; }
.article th { background: #f9fafb; color: #1f2430; }
.article strong { color: #1f2430; }
.article .tip {
  background: rgba(91, 110, 245, 0.06);
  border: 1px solid rgba(91, 110, 245, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
  color: #475467;
}

/* ── 推广声明 ── */
.disclosure {
  margin-top: 40px;
  padding: 14px 18px;
  background: #f9fafb;
  border-radius: 12px;
  font-size: 12.5px;
  color: #98a2b3;
  line-height: 1.8;
}

/* ── 关于页 ── */
.about-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #eef0f5;
  padding: 34px;
}
.about-card h1 { font-size: 26px; margin-bottom: 16px; }
.about-card h2 { font-size: 18px; margin: 24px 0 10px; color: #1f2430; }
.about-card p, .about-card li { font-size: 15px; color: #475467; margin-bottom: 10px; }
.about-card ul { margin-left: 20px; }
.about-card a { color: #5b6ef5; }

/* ── 页脚 ── */
.site-footer { border-top: 1px solid #eef0f5; background: #fff; padding: 26px 0; }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #98a2b3;
}
.footer-inner a { color: #98a2b3; text-decoration: none; margin-left: 16px; }
.footer-inner a:hover { color: #5b6ef5; }

@media (max-width: 640px) {
  .hero h1 { font-size: 25px; }
  .article h1 { font-size: 22px; }
  .article-grid { grid-template-columns: 1fr; }
  .header-inner { height: 54px; }
}
