/* ============================================================
   副业研究所 - 网站样式
   说明：这是一个纯静态网站，你不需要改这个文件也能用。
   想换颜色，只改下面 :root 里的几个变量即可。
   ============================================================ */
:root {
  --brand: #16a34a;          /* 主色：成长绿（想换蓝色就改成 #2563eb） */
  --brand-dark: #15803d;
  --ink: #1f2933;            /* 正文深色字 */
  --muted: #6b7280;          /* 次要灰色字 */
  --bg: #ffffff;             /* 页面背景 */
  --bg-soft: #f6f8f7;        /* 浅灰区块背景 */
  --line: #e5e7eb;           /* 分割线 */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 800; font-size: 20px; color: var(--brand); letter-spacing: .5px; }
.logo span { color: var(--ink); }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  transition: .2s; cursor: pointer; border: none;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #f0faf3 0%, #ffffff 100%); }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 800; margin-bottom: 18px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tag {
  display: inline-block; font-size: 13px; color: var(--brand-dark);
  background: #dcfce7; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; font-weight: 600;
}

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 32px; }

/* ---------- 分类卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card .ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- 项目卡片 ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s;
}
.project:hover { transform: translateY(-4px); border-color: var(--brand); }
.project .thumb {
  height: 150px; background: linear-gradient(135deg, var(--brand) 0%, #4ade80 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 800;
}
.project .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: 12px; color: var(--brand-dark); background: #dcfce7; padding: 3px 10px; border-radius: 999px; }
.project h3 { font-size: 18px; margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 14px; flex: 1; }
.project .more { margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- 广告 / 联盟推广位 ---------- */
.ad-box {
  border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 28px;
  text-align: center; color: var(--muted); background: #fff;
}
.ad-box .label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #94a3b8; }
.ad-box .big { font-size: 18px; color: var(--ink); margin-top: 6px; font-weight: 600; }

/* ---------- 微信引流区 ---------- */
.lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.lead h2 { font-size: 28px; margin-bottom: 14px; }
.lead p { color: var(--muted); margin-bottom: 20px; }
.qr {
  width: 180px; height: 180px; margin: 0 auto; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; padding: 10px;
}

/* 微信名片（头像 + 昵称 + 微信号） */
.wx-head { display: flex; align-items: center; gap: 14px; }
.wx-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); background: #e5e7eb;
}
.wx-name { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.wx-id { font-size: 14px; color: var(--muted); margin-top: 2px; }
.wx-id strong { color: var(--brand); letter-spacing: .3px; }
.wx-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.copy-tip { font-size: 13px; color: var(--muted); }

/* 二维码卡片 */
.qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 18px 14px; text-align: center; width: fit-content; margin: 0 auto;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}
.qr-box img { display: block; width: 220px; height: 220px; border-radius: 10px; }
.qr-cap { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 文章页 ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.article h1 { font-size: 32px; line-height: 1.3; margin-bottom: 18px; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article p { margin-bottom: 16px; font-size: 16px; }
.article .note {
  background: #fffbeb; border-left: 4px solid #f59e0b; padding: 14px 18px;
  border-radius: 8px; color: #92400e; font-size: 15px; margin: 20px 0;
}
.article .back { display: inline-block; margin-top: 30px; color: var(--brand); font-weight: 600; }

/* 文章底部引流卡（二维码） */
.article-qr {
  display: flex; gap: 18px; align-items: center; margin: 38px 0 0;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 16px; padding: 18px;
}
.article-qr img {
  width: 132px; height: 132px; border-radius: 10px; background: #fff; flex: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}
.article-qr-text strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.article-qr-text span {
  display: block; font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
@media (max-width: 520px) {
  .article-qr { flex-direction: column; text-align: center; }
  .article-qr img { width: 150px; height: 150px; }
}

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #cbd5e1; padding: 40px 0; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer a { color: #93c5fd; }
.footer .dis { max-width: 560px; line-height: 1.6; color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 30px; }
  .nav-links { display: none; }
  .wx-head { justify-content: center; text-align: left; }
  .wx-actions { justify-content: center; }
  .qr-box img { width: 200px; height: 200px; }
}
