@charset "utf-8";
/* ============================================================
   AI·SEO内容工厂 配套前台模板 style.css
   设计：简洁现代 / 响应式 / 语义化 / 零外部依赖，兼顾 SEO 与 GEO
   ============================================================ */
:root{
  --brand:#1d5fd0; --brand-dark:#174aa6; --brand-soft:#eef4fe;
  --ink:#1f2733; --ink-2:#465062; --muted:#8a93a3;
  --line:#e7ebf1; --bg:#f5f7fa; --card:#ffffff;
  --ok:#1a9e63; --warn:#d98324; --radius:12px;
  --shadow:0 1px 2px rgba(20,40,80,.04),0 6px 20px rgba(20,40,80,.06);
  --w:1200px;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.75; font-size:16px;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--brand);text-decoration:none;transition:color .15s;}
a:hover{color:var(--brand-dark);}
img{max-width:100%;height:auto;border:0;display:block;}
ul,ol{list-style:none;}
h1,h2,h3,h4{line-height:1.35;font-weight:700;color:var(--ink);}
.container{max-width:var(--w);margin:0 auto;padding:0 18px;}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}

/* ---------- 顶部条 ---------- */
.topbar{background:#0f1b2d;color:#c4cedd;font-size:13px;}
.topbar .container{display:flex;justify-content:space-between;align-items:center;height:34px;}
.topbar a{color:#c4cedd;} .topbar a:hover{color:#fff;}
.topbar .tb-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar .tb-r{white-space:nowrap;}
.topbar .tb-r a{margin-left:16px;}

/* ---------- 站点头部与导航 ---------- */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;box-shadow:0 1px 0 rgba(20,40,80,.03);}
.site-header .container{display:flex;align-items:center;gap:26px;height:68px;}
.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;color:var(--ink);white-space:nowrap;}
.brand .logo{width:40px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--brand),#4b8bf0);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;letter-spacing:.5px;}
.brand small{display:block;font-size:12px;font-weight:400;color:var(--muted);letter-spacing:1px;}
.main-nav{display:flex;gap:4px;flex:1;}
.main-nav a{padding:8px 14px;border-radius:8px;color:var(--ink-2);font-size:15px;font-weight:500;}
.main-nav a:hover,.main-nav a.cur{background:var(--brand-soft);color:var(--brand);}
.search-box{display:flex;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:4px 6px 4px 14px;width:230px;}
.search-box input{border:0;background:transparent;outline:none;flex:1;font-size:14px;color:var(--ink);}
.search-box button{border:0;background:var(--brand);color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:14px;}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:8px;font-size:20px;width:40px;height:40px;cursor:pointer;}

/* ---------- 布局 ---------- */
.layout{display:grid;grid-template-columns:1fr 300px;gap:24px;margin:24px auto;align-items:start;}
.main-col{min-width:0;}
.side-col{display:flex;flex-direction:column;gap:18px;}

/* ---------- 首页首屏 ---------- */
.hero{background:linear-gradient(135deg,#000000,#000000);color:#fff;border-radius:var(--radius);padding:40px 38px;margin:24px 0;}
.hero h1{color:#fff;font-size:30px;margin-bottom:12px;}
.hero p{font-size:16px;color:#dbe6fb;max-width:720px;}
.hero .hero-tags{margin-top:18px;display:flex;flex-wrap:wrap;gap:8px;}
.hero .hero-tags a{background:rgba(255,255,255,.14);color:#fff;padding:5px 14px;border-radius:999px;font-size:13px;}
.hero .hero-tags a:hover{background:rgba(255,255,255,.28);}

.section-head{display:flex;align-items:center;justify-content:space-between;margin:6px 2px 14px;}
.section-head h2{font-size:20px;position:relative;padding-left:14px;}
.section-head h2::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:3px;background:var(--brand);}
.section-head .more{font-size:14px;color:var(--muted);}

/* ---------- 卡片 / 文章列表 ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);}
.card-pad{padding:20px 22px;}
.post-list{display:flex;flex-direction:column;}
.post-item{display:flex;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line);}
.post-item:last-child{border-bottom:0;}
.post-item .thumb{flex:0 0 168px;width:168px;height:112px;border-radius:10px;background:var(--brand-soft);overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--brand);font-size:13px;}
.post-item .thumb img{width:100%;height:100%;object-fit:cover;}
.post-item .pt-body{flex:1;min-width:0;}
.post-item h3{font-size:18px;margin-bottom:6px;}
.post-item h3 a{color:var(--ink);} .post-item h3 a:hover{color:var(--brand);}
.post-item .excerpt{color:var(--ink-2);font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.post-meta{margin-top:8px;font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:14px;align-items:center;}
.post-meta .cat{background:var(--brand-soft);color:var(--brand);padding:1px 10px;border-radius:999px;font-size:12px;}
.post-meta .tag-mini{color:var(--muted);}

/* 纯文字简洁列表（侧栏/排行） */
.simple-list li{display:flex;gap:8px;align-items:baseline;padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px;}
.simple-list li:last-child{border-bottom:0;}
.simple-list .idx{flex:0 0 20px;height:20px;line-height:20px;text-align:center;background:var(--bg);color:var(--muted);border-radius:5px;font-size:12px;}
.simple-list li:nth-child(1) .idx,.simple-list li:nth-child(2) .idx,.simple-list li:nth-child(3) .idx{background:var(--brand);color:#fff;}
.simple-list a{flex:1;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.simple-list a:hover{color:var(--brand);}
.simple-list .date{color:var(--muted);font-size:12px;white-space:nowrap;}

/* 标签云 */
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px;}
.tag-cloud a{display:inline-block;padding:5px 13px;background:var(--bg);border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--ink-2);}
.tag-cloud a:hover{background:var(--brand);border-color:var(--brand);color:#fff;}

/* ---------- 面包屑 ---------- */
.crumb{font-size:13px;color:var(--muted);margin:18px 0 0;}
.crumb a{color:var(--muted);} .crumb a:hover{color:var(--brand);}
.crumb span{margin:0 7px;color:#c6cdd8;}

/* ---------- 文章正文 ---------- */
.article-head{padding:26px 30px 0;}
.article-head h1{font-size:28px;margin-bottom:14px;}
.article-info{display:flex;flex-wrap:wrap;gap:16px;color:var(--muted);font-size:13px;padding-bottom:18px;border-bottom:1px solid var(--line);}
.article-body{padding:24px 30px 30px;font-size:16.5px;color:#2a323f;}
.article-body>p{margin:0 0 18px;}
.article-body h2{font-size:22px;margin:32px 0 14px;padding-left:12px;border-left:4px solid var(--brand);}
.article-body h3{font-size:18.5px;margin:24px 0 10px;}
.article-body ul,.article-body ol{margin:0 0 18px;padding-left:24px;}
.article-body ul li{list-style:disc;margin-bottom:6px;}
.article-body ol li{list-style:decimal;margin-bottom:6px;}
.article-body strong{color:var(--ink);font-weight:700;}
.article-body blockquote{margin:18px 0;padding:14px 18px;background:var(--brand-soft);border-left:4px solid var(--brand);border-radius:0 8px 8px 0;color:var(--ink-2);}
.article-body table{width:100%;border-collapse:collapse;margin:18px 0;font-size:15px;}
.article-body th,.article-body td{border:1px solid var(--line);padding:10px 12px;text-align:left;}
.article-body th{background:var(--bg);font-weight:700;}
.article-body img{border-radius:8px;margin:18px auto;}
/* FAQ 问答块（AI生成时带 class，前端据此输出 FAQPage 结构化数据） */
.faq-q{border-left:4px solid var(--ok)!important;background:#f2faf6;padding:10px 14px;border-radius:0 8px 8px 0;}
.faq-a{margin:0 0 18px;padding:0 14px 4px;color:var(--ink-2);}
.related-suggest{background:var(--bg);border:1px dashed var(--line);border-radius:10px;padding:14px 18px 14px 34px;margin:24px 0;}
.related-suggest li{list-style:disc!important;margin-bottom:4px;}
.article-tags{padding:0 30px 24px;}
.article-tags .tag-cloud a{font-size:13px;}
.article-nav{display:flex;justify-content:space-between;gap:14px;padding:18px 30px;border-top:1px solid var(--line);font-size:14px;flex-wrap:wrap;}
.article-nav a{color:var(--ink-2);} .article-nav a:hover{color:var(--brand);}

/* ---------- 分页 ---------- */
.pager{display:flex;gap:6px;justify-content:center;margin:26px 0;flex-wrap:wrap;}
.pager a,.pager b{min-width:38px;height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;border-radius:8px;color:var(--ink-2);font-size:14px;}
.pager b{background:var(--brand);border-color:var(--brand);color:#fff;}
.pager a:hover{border-color:var(--brand);color:var(--brand);}

/* ---------- 侧栏块标题 ---------- */
.side-box{padding:18px 20px;}
.side-box h3{font-size:16px;margin-bottom:12px;position:relative;padding-left:12px;}
.side-box h3::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:3px;background:var(--brand);}

/* ---------- 页脚 ---------- */
.site-footer{background:#0f1b2d;color:#9fb0c8;margin-top:34px;}
.site-footer .ft-main{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px;padding:38px 0 26px;}
.site-footer h4{color:#e7edf6;font-size:15px;margin-bottom:12px;}
.site-footer a{color:#9fb0c8;font-size:14px;line-height:2;} .site-footer a:hover{color:#fff;}
.site-footer .ft-nav,.site-footer .ft-tags{min-width:0;}
.site-footer .ft-about p{font-size:14px;line-height:1.9;}
.ft-bottom{border-top:1px solid #1e2c42;text-align:center;padding:16px;font-size:13px;color:#7485a0;}
.back-top{position:fixed;right:22px;bottom:30px;width:44px;height:44px;border-radius:50%;background:var(--brand);color:#fff;border:0;cursor:pointer;font-size:18px;display:none;box-shadow:var(--shadow);z-index:60;}

/* ---------- 织梦 pagelist 原生分页兼容 ---------- */
.pagelist{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;margin:8px 0;}
.pagelist li{list-style:none;}
.pagelist li a,.pagelist li.thisclass{min-width:38px;height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;border-radius:8px;color:var(--ink-2);font-size:14px;}
.pagelist li.thisclass,.pagelist li a:hover{background:var(--brand);border-color:var(--brand);color:#fff;}
/* 织梦面包屑 position 输出中的链接颜色 */
.crumb a{color:var(--muted);}

/* ---------- 404 / 搜索空 ---------- */
.nothing{text-align:center;padding:70px 20px;}
.nothing .big{font-size:60px;font-weight:800;color:var(--brand);}
.nothing p{color:var(--muted);margin:10px 0 22px;}
.btn{display:inline-block;background:var(--brand);color:#fff!important;padding:10px 26px;border-radius:999px;font-size:15px;}
.btn:hover{background:var(--brand-dark);}

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  .layout{grid-template-columns:1fr;}
  .site-footer .ft-main{grid-template-columns:1fr;gap:20px;}
  .search-box{display:none;}
}
@media (max-width:720px){
  body{font-size:15px;}
  .main-nav{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;flex-direction:column;padding:10px 18px;border-bottom:1px solid var(--line);box-shadow:var(--shadow);}
  .main-nav.open{display:flex;}
  .nav-toggle{display:block;margin-left:auto;}
  .post-item{flex-direction:column;}
  .post-item .thumb{flex-basis:auto;width:100%;height:170px;}
  .hero{padding:28px 22px;} .hero h1{font-size:23px;}
  .article-head{padding:20px 18px 0;} .article-head h1{font-size:22px;}
  .article-body{padding:18px;} .article-tags,.article-nav{padding-left:18px;padding-right:18px;}
}
