* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff; color: #000;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 16px; }
/* 品牌区 + 通栏菜单（与首页一致） */
.site-header { background: #fff; }
.header-inner { max-width: 1152px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #000; }
.brand-seal {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #7e22ce; color: #7e22ce; font-size: 24px; font-weight: 700;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.brand-domain { font-size: 12px; color: #666; letter-spacing: 1px; }
/* 顶部搜索 */
.hd-search { position: relative; width: 300px; margin-left: auto; }
.hd-search form { display: flex; }
.hd-search input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 1px solid #cfcfe0; border-right: none; border-radius: 19px 0 0 19px; font-size: 14px; outline: none; }
.hd-search input:focus { border-color: #4a3f78; }
.hd-search button { height: 38px; padding: 0 20px; border: none; background: linear-gradient(90deg, #4a3f78, #2f4a6e); color: #fff; border-radius: 0 19px 19px 0; font-size: 14px; cursor: pointer; }
.hd-sug { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.1); display: none; max-height: 320px; overflow-y: auto; z-index: 60; }
.hd-sug a { display: block; padding: 9px 16px; color: #333; text-decoration: none; font-size: 14px; }
.hd-sug a:hover { background: #f5f3fa; color: #7e22ce; }
.nav-bar { position: sticky; top: 0; z-index: 50; }
.nav-bar-inner { max-width: 1120px; margin: 0 auto; display: flex; background: linear-gradient(90deg, #4a3f78, #2f4a6e); }
.nav-bar-inner a {
  flex: 1; text-align: center; padding: 12px 0;
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s;
}
.nav-bar-inner a:last-child { border-right: none; }
.nav-bar-inner a:hover { background: rgba(255, 255, 255, 0.12); }
.nav-bar-inner a.on { background: rgba(255, 255, 255, 0.18); font-weight: 700; }
/* 手机版汉堡菜单（电脑版隐藏） */
.nav-burger { display: none; border: none; cursor: pointer; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 12px; background: transparent; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.hd-search-toggle { display: none; border: none; background: transparent; padding: 6px; cursor: pointer; margin-left: auto; align-items: center; }
.nav-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #443e74; z-index: 49; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22); grid-template-columns: repeat(4, 1fr); }
.nav-panel.open { display: grid; }
.nav-panel a { text-align: center; padding: 13px 0; color: #fff; text-decoration: none; font-size: 14px; border-right: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.nav-panel a.on { background: rgba(255, 255, 255, 0.16); font-weight: 700; }
/* 面包屑与正文 */
.bread { font-size: 13px; color: #888; margin: 22px 0 6px; }
.bread a { color: #7e22ce; text-decoration: none; }
/* 两栏布局：正文卡片 + 侧边推荐 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; margin: 14px 0 56px; }
.main-col { min-width: 0; }
.article { border: 1px solid #e7e2f2; border-radius: 12px; padding: 26px 30px 30px; background: #fff; }
.side { display: flex; flex-direction: column; gap: 20px; }
.side-box { border: 1px solid #e7e2f2; border-radius: 12px; overflow: hidden; background: #fff; }
.side-box h3 { font-size: 16px; padding: 12px 16px; background: #faf8fd; border-bottom: 1px solid #eee9f7; color: #4a3f78; }
.side-box ul { list-style: none; padding: 12px 16px 14px; display: flex; flex-wrap: wrap; }
.side-box li { width: 50%; padding: 5px 0 5px 12px; position: relative; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-box li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; background: #7e22ce; border-radius: 1px; }
.side-box a { color: #333; text-decoration: none; }
.side-box a:hover { color: #7e22ce; }
.side-box.recent li { width: 100%; }
.article h1 { font-size: 28px; margin: 14px 0 14px; text-align: center; }
.art-meta { text-align: center; font-size: 13px; color: #999; padding: 10px 0; border-top: 1px solid #eee; border-bottom: 1px dashed #ddd; margin-bottom: 24px; }
.art-meta span { margin: 0 10px; }
.ad-cs { background: #faf7ff; border: 1px solid #e4d7f5; border-radius: 10px; margin: 24px 0; overflow: hidden; }
.ad-cs .tabs { display: flex; border-bottom: 1px solid #ecdff9; background: #f3ecfc; }
.ad-cs .tab { flex: 1; padding: 10px 6px; text-align: center; cursor: pointer; font-size: 13px; color: #666; border-bottom: 2px solid transparent; white-space: nowrap; }
.ad-cs .tab.on { color: #7e22ce; background: #faf7ff; border-bottom-color: #7e22ce; font-weight: 600; }
.ad-cs .tab .hot { font-size: 11px; color: #e11d48; margin-left: 2px; }
.ad-cs .panel { display: none; align-items: center; gap: 16px; padding: 18px 16px; flex-wrap: wrap; }
.ad-cs .panel.on { display: flex; }
.ad-cs .p-icon { font-size: 34px; }
.ad-cs .p-main { flex: 1; min-width: 150px; }
.ad-cs .p-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ad-cs .p-desc { font-size: 13px; color: #666; line-height: 1.6; }
.ad-cs .p-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ad-cs .p-tags span { font-size: 12px; padding: 3px 10px; border-radius: 4px; }
.ad-cs .t-old { color: #999; background: #f1eef6; text-decoration: line-through; }
.ad-cs .t-now { color: #e11d48; background: #fdeef2; font-weight: 600; }
.ad-cs .t-acc { color: #b45309; background: #fdf3e0; }
.ad-cs .t-good { color: #a21caf; background: #fbeffc; }
.ad-cs .p-act { text-align: center; }
.ad-cs .p-count { font-size: 12px; color: #888; margin-bottom: 6px; }
.ad-cs .p-count b { color: #16a34a; }
.ad-cs .p-btn { display: inline-block; padding: 9px 24px; border-radius: 20px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.ad-side { margin: 0; }
.ad-side .tab { font-size: 12px; padding: 9px 2px; }
.ad-side .panel { padding: 14px 14px 16px; }
.ad-side .panel.on { display: block; text-align: center; }
.ad-side .p-icon { font-size: 32px; }
.ad-side .p-title { margin: 4px 0; }
.ad-side .p-desc { margin-bottom: 10px; }
.ad-side .p-tags { justify-content: center; margin-bottom: 12px; }
.ad-side .p-count { margin-bottom: 8px; }
.ad-side .p-btn { display: block; padding: 10px 0; }
@media (max-width: 600px) {
  .ad-cs .tab { font-size: 12px; padding: 9px 4px; }
  .ad-cs .panel { gap: 8px 10px; padding: 14px 12px; }
  .ad-cs .p-icon { font-size: 30px; }
  .ad-cs .p-main { min-width: 0; }
  .ad-cs .p-title { font-size: 15px; }
  .ad-cs .p-desc { font-size: 12px; }
  .ad-cs .p-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .ad-cs .p-count { margin-bottom: 0; }
  .ad-cs .p-btn { padding: 8px 18px; font-size: 13px; }
  .ad-cs .p-tags { order: 5; flex-basis: 100%; border-top: 1px dashed #e8ddf5; padding-top: 10px; }
}
.article h2 { font-size: 20px; margin: 30px 0 12px; }
.article p { font-size: 15px; line-height: 1.9; color: #333; margin-bottom: 12px; }
.article ul { margin: 0 0 12px; padding-left: 2px; list-style: none; }
.article ul li { font-size: 15px; line-height: 1.9; color: #333; padding-left: 16px; position: relative; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: #7e22ce; }
.scene-list a { color: #333; text-decoration: none; border-bottom: 1px dashed #bbb; }
.scene-list a:hover { color: #7e22ce; border-color: #7e22ce; }
/* 上一篇下一篇 */
.pn { margin: 30px 0 0; padding-top: 16px; border-top: 1px dashed #ddd; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.pn span { color: #999; }
.pn a { color: #333; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn a:hover { color: #7e22ce; }
/* 相关推荐 */
.rel { margin: 20px 0 0; border: 1px solid #e7e2f2; border-radius: 12px; padding: 20px 30px 24px; background: #fff; }
.rel h2 { font-size: 20px; margin: 0 0 12px; }
.rel-links { display: flex; flex-wrap: wrap; }
.rel-links a { width: 50%; box-sizing: border-box; font-size: 15px; color: #333; text-decoration: none; padding: 6px 12px 6px 14px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-links a::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; background: #7e22ce; border-radius: 1px; }
.rel-links a:hover { color: #7e22ce; }
/* 页脚 */
.site-footer { border-top: 1px solid #eaeaea; padding: 32px 16px 40px; text-align: center; }
.f-brand { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.f-slogan { color: #555; font-size: 14px; margin-bottom: 12px; }
.f-disclaimer { color: #888; font-size: 12px; max-width: 720px; margin: 0 auto 10px; line-height: 1.8; }
.f-copy { color: #888; font-size: 12px; }
@media (max-width: 768px) {
  .brand-seal { width: 38px; height: 38px; font-size: 20px; }
  .brand-name { font-size: 20px; }
  .hd-search { display: none; }
  .hd-search.show { display: block; flex: 0 1 240px; min-width: 0; width: auto; margin: 0 0 0 auto; order: 2; }
  .header-inner .hd-search-toggle { display: flex; order: 3; }
  .header-inner.searching .hd-search-toggle { display: none; }
  .hd-search input { height: 34px; font-size: 16px; padding: 0 10px; }
  .hd-search button { height: 34px; width: 44px; padding: 0; font-size: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/17px 17px no-repeat, linear-gradient(90deg, #4a3f78, #2f4a6e); }
  .hd-sug { top: 40px; }
  .nav-bar-inner { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-bar-inner::-webkit-scrollbar { display: none; }
  .nav-bar { display: flex; }
  .nav-bar-inner { flex: 1; min-width: 0; justify-content: flex-start; }
  .nav-burger { display: flex; }
  .nav-bar { background: linear-gradient(90deg, #4a3f78, #2f4a6e); }
  .nav-bar-inner a { display: none; }
  .nav-bar-inner a:nth-child(1), .nav-bar-inner a:nth-child(3), .nav-bar-inner a:nth-child(4), .nav-bar-inner a:nth-child(5) { display: block; flex: 1 1 0; text-align: center; font-size: 14px; padding: 11px 0; white-space: nowrap; }
  .article h1 { font-size: 22px; }
  .container { padding: 0 8px; }
  .article { padding: 20px 16px 24px; }
  .rel { padding: 16px 16px 20px; }
  .pn { flex-direction: column; gap: 8px; }
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .article h2 { font-size: 18px; }
  .rel-links a { width: 100%; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .nav-bar-inner a:nth-child(6), .nav-bar-inner a:nth-child(7) { display: block; flex: 1 1 0; text-align: center; font-size: 14px; padding: 11px 0; white-space: nowrap; }
}
@media (min-width: 601px) and (max-width: 768px) {
  .nav-bar-inner a:nth-child(8), .nav-bar-inner a:nth-child(9) { display: block; flex: 1 1 0; text-align: center; font-size: 14px; padding: 11px 0; white-space: nowrap; }
}
