/* 指职客官网全局样式 — 手机端优先 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #d92b2b; --red-d: #b31e1e; --ink: #1a1d23; --sub: #5a6470; --line: #ececf0;
  --bg: #f7f7f9; --card: #fff;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 顶部导航 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar .wrap { display: flex; align-items: center; height: 56px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--red); }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { padding: 6px 12px; font-size: 14px; color: var(--sub); border-radius: 8px; }
.nav a:hover, .nav a.on { color: var(--red); background: #fdf0f0; }
.nav a.cta { background: var(--red); color: #fff; font-weight: 600; }
.nav a.cta:hover { background: var(--red-d); }

/* 首屏 */
.hero { background: linear-gradient(160deg, #fff 60%, #fdf0f0); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: .5px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p.sub { margin-top: 14px; font-size: 15px; color: var(--sub); max-width: 640px; }
.hero .btns { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-d); }
.btn.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.stats { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; }
.stats .st b { font-size: 24px; color: var(--red); font-weight: 800; }
.stats .st span { display: block; font-size: 12.5px; color: var(--sub); margin-top: 2px; }

/* 板块 */
.sec { padding: 44px 0; }
.sec h2 { font-size: 22px; font-weight: 800; text-align: center; }
.sec .lead { text-align: center; color: var(--sub); font-size: 14px; margin: 8px auto 0; max-width: 620px; }
.grid3 { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 .ic { width: 34px; height: 34px; border-radius: 10px; background: #fdf0f0; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.card p { margin-top: 8px; font-size: 13.5px; color: var(--sub); }
.card ul { margin: 10px 0 0 18px; font-size: 13.5px; color: var(--sub); }
.card ul li { margin-bottom: 4px; }

/* 问答 */
.faq { margin-top: 26px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 14px 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; }
.faq summary::before { content: "Q"; width: 22px; height: 22px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-right: 10px; flex-shrink: 0; }
.faq details .a { padding: 0 16px 14px 48px; font-size: 14px; color: var(--sub); }

/* 文章列表 */
.plist { margin-top: 26px; }
.plist a.item { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.plist a.item:hover { border-color: var(--red); }
.plist .t { font-size: 16px; font-weight: 700; }
.plist .d { font-size: 13px; color: var(--sub); margin-top: 6px; }
.plist .m { font-size: 12px; color: #9aa2ad; margin-top: 8px; }
.plist .m .tag { color: var(--red); background: #fdf0f0; border-radius: 6px; padding: 1px 8px; margin-right: 8px; }

/* 文章页 */
.crumbs { font-size: 12.5px; color: #9aa2ad; padding: 14px 0 0; }
.crumbs a:hover { color: var(--red); }
article.post { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; margin: 14px 0 30px; }
article.post h1 { font-size: 24px; line-height: 1.4; font-weight: 800; }
article.post .meta { font-size: 12.5px; color: #9aa2ad; margin: 10px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
article.post h2 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--red); }
article.post h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 8px; }
article.post p { margin: 10px 0; font-size: 15px; color: #333a44; }
article.post ul, article.post ol { margin: 10px 0 10px 22px; font-size: 15px; color: #333a44; }
article.post li { margin-bottom: 6px; }
article.post table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
article.post th, article.post td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
article.post th { background: #fafafb; }
article.post .hl { background: #fdf7f0; border: 1px solid #f5e3c8; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
article.post .tldr { background: #fdf0f0; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 16px 0; }

/* 底部 CTA 与页脚 */
.ctaband { background: var(--red); color: #fff; padding: 38px 0; text-align: center; }
.ctaband h2 { font-size: 22px; font-weight: 800; }
.ctaband p { margin-top: 8px; font-size: 14px; opacity: .92; }
.ctaband .btn { margin-top: 18px; background: #fff; color: var(--red); }
.footer { background: #17191f; color: #8b93a1; padding: 34px 0 22px; font-size: 13px; }
.footer .cols { display: grid; grid-template-columns: 1fr; gap: 22px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .beian { margin-top: 24px; padding-top: 16px; border-top: 1px solid #262a33; text-align: center; font-size: 12px; line-height: 2; }

@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer .cols { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  article.post { padding: 36px 44px; }
}

/* ---- 移动端 topbar 适配 ---- */
@media (max-width: 768px) {
  .topbar .wrap { gap: 8px; }
  .nav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 6px 8px; font-size: 13px; white-space: nowrap; flex: none; }
}
