/* 对齐火投票帮助中心新版视觉；保留本项目语义化模板和共用导航。 */
* { box-sizing:border-box; }
body { margin:0; color:#343a40; background:#f3f6ff; font:14px/1.5 "Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.brand-main-jl,.brand-main-bmgj { --brand:#2866f4; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--brand); }
button,input { font:inherit; }
button,.button { cursor:pointer; }
button:disabled { cursor:default; opacity:.65; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid var(--brand); outline-offset:4px; }
img { max-width:100%; vertical-align:middle; }
h1,h2,h3,p { margin:0; }
.container { width:1200px; max-width:calc(100% - 40px); margin:0 auto; }
.button { display:inline-flex; align-items:center; justify-content:center; padding:9px 22px; border:0; border-radius:6px; background:var(--brand); color:#fff; }
.button:hover { background:#1f57dc; color:#fff; }
.help-hero { height:300px; overflow:hidden; background:#2866f4 url('img/help-center-banner.jpg') center/cover no-repeat; }
.help-banner-content { padding-top:55px; color:#fff; }
.help-banner-kicker { margin-bottom:14px; color:rgba(255,255,255,.9); font-size:14px; }
.help-hero h1 { font-size:34px; font-weight:500; line-height:48px; }
.help-banner-description { margin-top:12px; color:rgba(255,255,255,.82); font-size:14px; line-height:21px; }
.help-banner-button { display:inline-block; height:38px; margin-top:22px; padding:0 20px; border-radius:4px; background:#fff; color:#2866f4; font-size:14px; font-weight:600; line-height:38px; }
.help-banner-button:hover { color:#1f57dc; background:#f5f8ff; }
.help-main { min-height:600px; padding-top:14px; padding-bottom:70px; }
.breadcrumb { display:flex; align-items:center; gap:8px; min-height:36px; margin:0 0 10px; color:#8a90a2; font-size:13px; font-weight:400; line-height:20px; white-space:nowrap; }
.breadcrumb a { color:#606875; flex-shrink:0; }
.breadcrumb a:hover { color:var(--brand); }
.breadcrumb [aria-hidden] { color:#b9bec8; }
.breadcrumb [aria-current] { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.help-toolbar { display:flex; align-items:center; gap:16px; min-height:54px; margin-bottom:14px; }
.categories { display:flex; flex:1; align-items:center; gap:6px; min-width:0; overflow-x:auto; padding:4px 0; scrollbar-width:none; }
.categories::-webkit-scrollbar { display:none; }
.categories a { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; height:38px; padding:0 22px; border:1px solid #e1e5ed; border-radius:20px; background:#fff; color:#4a4f59; white-space:nowrap; }
.categories .active { border-color:#3167dc; background:#3167dc; color:#fff; }
.search { position:relative; flex:0 0 390px; height:44px; margin:0; }
.search input { width:100%; height:100%; min-width:0; padding:0 44px 0 14px; border:1px solid #dce2ec; border-radius:6px; background:#fff; color:#333; }
.search input::placeholder { color:#a4a6ab; }
.search button { position:absolute; top:0; right:0; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; border-radius:6px; background:transparent; }
.search button img { width:16px; height:16px; object-fit:contain; }
.help-columns { display:grid; grid-template-columns:minmax(0,1fr) 320px; align-items:start; gap:16px; }
.panel { min-width:0; border:0; border-radius:6px; background:#fff; }
.article-list { min-height:600px; padding:0 18px 18px; }
.article-item { position:relative; min-height:126px; padding:20px 108px 16px 0; border-bottom:1px solid #edf0f5; }
.article-summary { min-width:0; }
.article-summary h2 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:17px; font-weight:500; line-height:24px; color:#30343b; }
.description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; max-height:42px; overflow:hidden; margin:8px 0 10px; color:#8b95a7; font-size:14px; line-height:21px; overflow-wrap:anywhere; }
.article-info { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.meta { font-size:12px; color:#b0b6c1; font-weight:400; }
.tags { display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.tag { display:inline-block; padding:3px 10px; border-radius:11px; background:#eff6ff; color:#55a2ff; font-size:12px; line-height:16px; overflow-wrap:anywhere; }
.tag:hover { background:#e2efff; color:#2866f4; }
.article-stats { position:absolute; top:20px; right:0; text-align:right; line-height:18px; }
.view-stat { display:inline-flex; align-items:center; gap:4px; }
.view-stat img { width:14px; height:11px; opacity:.7; }
.article-stats .view-stat { display:flex; justify-content:flex-end; margin-top:8px; }
.help-sidebar { display:grid; gap:16px; min-width:0; }
.help-sidebar .panel { overflow:hidden; }
.help-sidebar h2 { display:flex; align-items:center; gap:8px; height:48px; padding:0 18px; border-bottom:1px solid #edf0f5; color:#30343b; font-size:16px; font-weight:700; }
.help-sidebar h2 img { width:19px; height:19px; }
.sidebar-article { display:block; min-height:98px; padding:14px 16px; }
.sidebar-article:hover { background:#fafcff; }
.sidebar-article h3 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:36px; margin-bottom:8px; color:#42464e; font-size:14px; font-weight:500; line-height:18px; overflow-wrap:anywhere; }
.sidebar-article:hover h3 { color:var(--brand); }
.latest-articles .sidebar-article h3 { font-weight:700; }
.sidebar-stats { display:flex; justify-content:space-between; align-items:center; line-height:26px; }
.help-sidebar .tags { padding:14px 12px; }
.muted { color:#858b98; font-size:14px; }
.help-sidebar .muted { padding:24px 16px; }
.empty { padding:50px 20px; text-align:center; color:#858b98; }
.empty img { display:block; width:170px; margin:0 auto 18px; }
.error-panel { margin:35px 0; }
.error-panel .button { margin-top:24px; }
.search-result { padding:8px 0; overflow-wrap:anywhere; }
.article-list > h2 { padding-top:18px; font-size:18px; }
.pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:20px; font-size:13px; }
.pagination a,.pagination > span { padding:6px 12px; border:1px solid #dce2ec; border-radius:4px; background:#fff; }
.pagination > span { border-color:#3167dc; background:#3167dc; color:#fff; }
.pagination a:hover { border-color:#3167dc; }
.article-detail { padding:28px 20px 24px; }
.article-heading { padding-bottom:18px; border-bottom:1px solid #edf0f5; }
.article-heading h1 { color:#30343b; font-size:28px; font-weight:700; line-height:36px; overflow-wrap:anywhere; }
.article-heading .article-info { justify-content:flex-start; align-items:center; flex-wrap:wrap; gap:6px 30px; margin-top:14px; color:#a4a6ab; line-height:18px; }
.article-content { padding:20px 0; overflow-wrap:anywhere; overflow-x:auto; color:#333; font:400 15px/1.9 "PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.article-content p { margin-top:16px; font-size:15px; line-height:1.9; }
.article-content h2 { margin:28px 0 12px; font-size:20px; line-height:30px; }
.article-content h3 { margin:22px 0 10px; font-size:17px; line-height:27px; }
.article-content h2,.article-content h3 { font-weight:700; scroll-margin-top:80px; }
.article-content strong,.article-content b { font-weight:700; }
.article-content img { max-width:100% !important; height:auto !important; margin:18px auto; }
.article-content section,.article-content video,.article-content iframe,.article-content embed,.article-content object { max-width:100% !important; }
.article-content iframe,.article-content video { width:100% !important; }
.article-content a { color:var(--brand); overflow-wrap:anywhere; word-break:break-word; }
.article-content table { display:block; width:100% !important; max-width:100%; overflow-x:auto; border-collapse:collapse; }
.article-content td,.article-content th { border:1px solid #ddd; padding:8px; }
.article-content pre { overflow-x:auto; white-space:pre-wrap; }
.article-content pre,.article-content code { max-width:100%; overflow-wrap:anywhere; }
.counts { display:flex; gap:22px; }
.like-action { padding:28px 0; text-align:center; }
.article-actions { display:flex; align-items:center; justify-content:center; gap:14px; }
.article-actions .button { width:141px; height:41px; padding:0 12px; border-radius:21px; font-size:14px; }
.article-actions .like-button { gap:6px; border:1px solid #2866f4; background:#fff; color:#2866f4; }
.like-button img { width:18px; height:18px; }
.like-action p { min-height:24px; margin-top:10px; color:#858b98; font-size:13px; }
.article-toc[hidden] { display:none; }
.help-sidebar .article-toc { padding:16px 16px 12px; }
.help-sidebar .article-toc h2 { color:#000; height:auto; margin-bottom:10px; padding:0 0 12px; line-height:24px; }
.article-toc ol { margin:0; padding:0; list-style:none; }
.article-toc a { display:block; padding:6px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#000; font-size:13px; line-height:20px; }
.article-toc a:hover,.article-toc a.active { color:var(--brand); }
.article-toc .toc-h3 { padding-left:16px; }
.poster { display:flex; gap:20px; padding:20px; margin-bottom:24px; border-radius:8px; background:#f5f7fb; }
.poster > img { width:100px; object-fit:contain; }
.poster h2 { font-size:19px; }
.poster p { margin:8px 0; color:#717985; font-size:14px; }
.help-footer { padding:25px 20px; border-top:1px solid #e7eaf0; color:#000; text-align:center; font-size:12px; }
.help-footer a { margin:0 4px; color:inherit; }
@media(max-width:900px) {
  .container { width:auto; max-width:calc(100% - 32px); }
  .help-banner-content { padding-left:4px; }
  .help-main { padding-top:12px; padding-bottom:40px; }
  .help-columns { grid-template-columns:minmax(0,1fr); gap:14px; }
  .help-toolbar { flex-direction:column; align-items:stretch; gap:10px; }
  .categories { flex:none; }
  .search { flex:none; width:100%; }
  .breadcrumb { flex-wrap:wrap; white-space:normal; }
  .breadcrumb [aria-current] { overflow:visible; overflow-wrap:anywhere; }
  .article-detail { padding:24px 20px; }
  .article-toc a { white-space:normal; overflow-wrap:anywhere; }
  .article-content h2,.article-content h3 { scroll-margin-top:130px; }
}
@media(max-width:767px) {
  .help-hero { height:210px; background-position:58% center; }
  .help-banner-content { width:100%; max-width:none; padding:24px 20px 0; }
  .help-banner-kicker { margin-bottom:7px; font-size:12px; }
  .help-hero h1 { font-size:26px; line-height:36px; }
  .help-banner-description { width:220px; margin-top:6px; font-size:12px; line-height:18px; }
  .help-banner-description br { display:none; }
  .help-banner-button { height:32px; margin-top:12px; padding:0 14px; font-size:12px; line-height:32px; }
  .categories a { padding:0 17px; }
  .article-item { min-height:0; padding:16px 0; }
  .article-summary h2 { font-size:16px; }
  .description { margin-bottom:8px; }
  .article-info { align-items:center; }
  .article-stats { position:static; flex:0 0 auto; margin-left:8px; }
  .article-stats .view-stat { margin-top:4px; }
  .article-content,.article-content p { font-size:15px; line-height:1.8; }
}
@media(max-width:600px) {
  .container { max-width:calc(100% - 24px); }
  .help-banner-content { max-width:none; }
  .help-banner-button { height:40px; padding:0 18px; font-size:14px; line-height:40px; }
  .article-info { align-items:flex-start; flex-direction:column; gap:8px; }
  .article-stats { margin-left:0; text-align:left; }
  .article-stats .view-stat { justify-content:flex-start; }
  .article-detail { padding:20px 15px; }
  .article-heading h1 { font-size:22px; line-height:1.45; }
  .article-content img { display:block; }
  .article-actions { gap:10px; }
  .article-actions .button { width:calc(50% - 5px); max-width:141px; }
  .poster { flex-direction:column; }
}
