/* ============================================================
   阳阳财商优选 - 参照 centripetalforce.org 模板风格
   单栏居中白卡 + 米黄底色 + 垂直图文流 + 页脚友情链接
   ============================================================ */

:root {
  --text: #333;
  --text-light: #888;
  --link: #0f4c81;
  --link-hover: #c9a227;
  --accent: #c9a227;
  --border: #e8e2d0;
  --card: rgba(255, 255, 255, 0.92);
  --foot-bg: #4a3f2f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", serif;
  /* 米黄底，模拟目标站的背景图效果 */
  background-color: #f5eeda;
  background-image: linear-gradient(135deg, #f5eeda 0%, #efe3c4 55%, #e9dbb4 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

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

/* ---------- 全站顶部横幅图 ---------- */
.site-banner {
  width: 100%;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}
.site-banner a { display: block; }
.site-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 顶部极简条（保留基础导航可用性） ---------- */
.topbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #6b4f1d;
  letter-spacing: 1px;
}
.topbar .site-name .gold { color: var(--accent); }
.topbar .nav a {
  font-size: 0.9rem;
  color: #6b5b33;
  margin-left: 18px;
}
.topbar .nav a:hover, .topbar .nav a.active { color: var(--accent); font-weight: 600; }

/* ---------- 单栏主容器 ---------- */
.content {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 0 14px;
}
.card {
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(90, 70, 30, 0.1);
  padding: 28px 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.6);
}

/* 文章标题区 */
.art-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.art-head h1 { font-size: 1.55rem; line-height: 1.5; color: #4a3a14; margin-bottom: 8px; }
.art-head .meta { font-size: 0.82rem; color: var(--text-light); }
.art-head .meta .site { color: var(--accent); font-weight: 600; }

/* 正文 */
.art-body h2 { font-size: 1.2rem; color: #4a3a14; margin: 24px 0 10px; }
.art-body h3 { font-size: 1.08rem; color: #4a3a14; margin: 20px 0 8px; }
.art-body p { margin-bottom: 12px; }
.art-body ul, .art-body ol { margin: 0 0 12px 22px; }
.art-body li { margin-bottom: 6px; }
.art-body blockquote {
  border-left: 4px solid var(--accent);
  background: #faf3df;
  padding: 10px 14px;
  margin: 14px 0;
  color: #6b5b33;
}
.art-body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.92rem; }
.art-body th, .art-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.art-body th { background: #f7f0dc; color: #6b4f1d; }
.art-body .note {
  background: #f0f7ff; border: 1px solid #cfe0f2;
  padding: 10px 12px; border-radius: 6px;
  font-size: 0.88rem; color: #23425f; margin: 12px 0;
}

/* ---------- 文章/推荐流（垂直堆叠，图文混排风格） ---------- */
.stream { list-style: none; }
.stream-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.stream-item:last-child { border-bottom: none; }
.stream-item h2 { font-size: 1.12rem; line-height: 1.5; margin-bottom: 6px; }
.stream-item h2 a { color: #4a3a14; }
.stream-item h2 a:hover { color: var(--accent); }
.stream-item .excerpt { font-size: 0.92rem; color: #5a5344; }
.stream-item .excerpt .thumb {
  float: right;
  width: 110px;
  height: 74px;
  margin: 4px 0 6px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d9c48a, #b99b52);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
}
.stream-item .meta { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }

/* ---------- 商城推荐位（商品垂直流） ---------- */
.mall-box .mall-title {
  font-size: 1.1rem;
  color: #6b4f1d;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mall-box .mall-desc { font-size: 0.82rem; color: var(--text-light); margin-bottom: 14px; }
.prod-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fffdf7;
  position: relative;
}
.prod-item .ad-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #b03a2e;
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 3px;
}
.prod-item .p-thumb {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #e5d9b8, #cdb87e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.prod-item .p-info { flex: 1; }
.prod-item .p-name { font-size: 0.95rem; font-weight: 600; color: #333; margin-bottom: 4px; line-height: 1.5; }
.prod-item .p-price { color: #b03a2e; font-weight: 700; font-size: 1rem; }
.prod-item .p-price small { color: var(--text-light); font-weight: 400; font-size: 0.78rem; }
.prod-item .p-from { font-size: 0.78rem; color: var(--text-light); }
.prod-item .btn-buy {
  display: inline-block;
  margin-top: 6px;
  background: #8a6d26;
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 16px;
  border-radius: 4px;
}
.prod-item .btn-buy:hover { background: var(--accent); color: #fff; }

/* ---------- 页脚 ---------- */
.friend-links {
  background: var(--card);
  border-radius: 8px;
  padding: 16px 22px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.friend-links .fl-title { color: #6b4f1d; font-weight: 600; margin-bottom: 8px; }
.friend-links a { color: #6b5b33; margin: 0 6px; white-space: nowrap; }
.friend-links a:hover { color: var(--accent); }

.disclaimer {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 14px 22px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #7a6f56;
  text-align: center;
}

.foot {
  background: var(--foot-bg);
  color: #d8cfbc;
  padding: 24px 0 20px;
  margin-top: 26px;
  font-size: 0.82rem;
  text-align: center;
}
.foot a { color: #e5d9b8; }
.foot a:hover { color: var(--accent); }
.foot .copyright { margin-top: 8px; color: #a99c7e; font-size: 0.78rem; }

/* ---------- 通用 ---------- */
.empty-tip { color: var(--text-light); text-align: center; padding: 30px 0; }
.mt-16 { margin-top: 16px; }
code {
  background: #f0ead6;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  color: #8a6d26;
}

@media (max-width: 600px) {
  .card { padding: 20px 16px; }
  .art-head h1 { font-size: 1.3rem; }
  .topbar .nav a { margin-left: 10px; font-size: 0.84rem; }
  .stream-item .excerpt .thumb { width: 88px; height: 62px; }
}
