/* =======================================================================
   qa.css — 有问必答(攻略列表 + 攻略详情)样式 v2
   色板沿用品牌体系:红 #fb4a3e / 墨 #101214 / 灰 #939599 / 浅底 #f5f6f7
   ======================================================================= */

:root {
  --brand: #fb4a3e;
  --brand-d: #e23b30;
  --txt: #101214;
  --txt-2: #2a2b2e;
  --txt-3: #5c6066;
  --mute: #939599;
  --edge: #e8eaec;
  --edge-2: #f0f1f2;
  --wash: #f5f6f7;
  --link: #2f6bff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #fff; color: var(--txt);
  font-family: Poppins, "PingFang SC", "Microsoft YaHei", -apple-system,
               BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px; line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { border: 0; max-width: 100%; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jump { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; background: var(--txt); color: #fff; }
.jump:focus { left: 0; }

/* ---- 版心 ---- */
.cwrap { width: 72%; min-width: 960px; margin: 0 auto; }
@media screen and (min-width: 960px)  and (max-width: 1360px) { .cwrap { width: 79%; } }
@media screen and (min-width: 1360px) and (max-width: 1440px) { .cwrap { width: 63%; } }
@media screen and (min-width: 1440px) { .cwrap { width: 62.5%; } }

/* ---- 顶栏 ---- */
.bar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--edge-2);
}
.bar-in { display: flex; align-items: center; height: 70px; }
.brand { margin-right: 38px; white-space: nowrap; font-size: 21px; font-weight: 600; letter-spacing: -.5px; color: var(--txt); }
.brand i { font-style: normal; color: var(--brand); }
.bar-nav { display: flex; gap: 34px; white-space: nowrap; }
.bar-nav a { font-size: 16px; font-weight: 500; color: var(--txt); }
.bar-nav a:hover { color: var(--brand); }
.bar-nav a.here { color: var(--brand); font-weight: 600; }
.bar-flex { flex: 1; }
.bar-home { white-space: nowrap; font-size: 15px; color: var(--txt-3); }
.bar-home:hover { color: var(--brand); }

/* ---- 列表页头图 ---- */
.mast {
  padding: 132px 0 40px; text-align: center;
  background:
    radial-gradient(900px 260px at 50% -40px, #fff1ef 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #fbfcfd 0%, #fff 100%);
  border-bottom: 1px solid var(--edge-2);
}
.mast-t { font-size: 40px; font-weight: 600; line-height: 1.25; letter-spacing: -1px; }
.mast-t em { font-style: normal; color: var(--brand); }
.mast-p { margin: 14px auto 0; max-width: 720px; font-size: 16px; color: var(--txt-3); }

.seek {
  position: relative; display: flex; align-items: center;
  max-width: 620px; margin: 28px auto 0; padding: 4px 4px 4px 22px;
  border: 2px solid var(--txt); border-radius: 30px; background: #fff;
}
.seek-in { flex: 1; height: 46px; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--txt); font-family: inherit; }
.seek-in::placeholder { color: #b6b9bd; }
.seek-go {
  height: 46px; padding: 0 30px; border: 0; border-radius: 26px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 500; font-family: inherit;
}
.seek-go:hover { background: var(--brand-d); }
.seek-n { position: absolute; left: 0; bottom: -30px; font-size: 13px; color: var(--mute); }

/* ---- 两栏主体 ---- */
.body2 { display: flex; align-items: flex-start; gap: 46px; margin: 44px auto 90px; }
.cats { position: sticky; top: 96px; width: 216px; flex: 0 0 216px; }
.cats-t { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--mute); }
.cats-nav a {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px; padding: 10px 14px; border-radius: 10px;
  font-size: 15px; color: var(--txt-2); cursor: pointer;
}
.cats-nav a:hover { background: var(--wash); }
.cats-nav a.sel { background: #fff1ef; color: var(--brand); font-weight: 600; }
.cats-n { min-width: 26px; padding: 1px 8px; border-radius: 20px; background: var(--wash); font-size: 12px; text-align: center; color: var(--mute); }
.cats-nav a.sel .cats-n { background: #ffe1de; color: var(--brand); }
.cats-tip { margin-top: 22px; padding: 14px; border-radius: 10px; background: var(--wash); font-size: 12px; line-height: 1.7; color: var(--mute); }
.list { flex: 1; min-width: 0; }

/* ---- 分组标题 ---- */
.seg { margin-bottom: 40px; }
.seg-t { margin-bottom: 6px; padding-bottom: 12px; border-bottom: 2px solid var(--txt); font-size: 20px; font-weight: 600; }
.seg-t em { margin-left: 10px; font-style: normal; font-size: 13px; font-weight: 400; color: var(--mute); }

/* ---- 手风琴条目 ---- */
.item { border-bottom: 1px solid var(--edge); }
.item-q {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 18px 4px; background: none; border: 0; cursor: pointer;
  text-align: left; font-family: inherit;
}
.item-q:hover .item-t { color: var(--brand); }
.item-no {
  flex: 0 0 24px; height: 24px; margin-top: 2px; border-radius: 6px;
  background: var(--wash); font-size: 12px; line-height: 24px; text-align: center; color: var(--mute);
}
.item.on .item-no { background: var(--brand); color: #fff; }
.item-t { flex: 1; font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--txt); }
.item.on .item-t { color: var(--brand); }
.item-x { position: relative; flex: 0 0 16px; height: 16px; margin-top: 8px; }
.item-x::before, .item-x::after { content: ""; position: absolute; background: var(--mute); transition: transform .22s, opacity .22s; }
.item-x::before { left: 0; top: 7px; width: 16px; height: 2px; }
.item-x::after { left: 7px; top: 0; width: 2px; height: 16px; }
.item.on .item-x::before { background: var(--brand); }
.item.on .item-x::after { opacity: 0; transform: rotate(90deg); }
.item-b { display: none; padding: 0 4px 22px 40px; }
.item.on .item-b { display: block; }

.pub { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; font-size: 13px; color: var(--mute); }
.pub b { font-weight: 400; }
.pub .sep { width: 3px; height: 3px; border-radius: 50%; background: #d0d3d6; }

.sum { font-size: 15px; line-height: 1.85; color: var(--txt-2); }
.sum strong { font-weight: 600; color: var(--txt); }
.keys { margin: 12px 0 0; }
.keys li { position: relative; margin-bottom: 6px; padding-left: 18px; font-size: 14px; color: var(--txt-3); }
.keys li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.item-f { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.more {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 20px; border-radius: 20px;
  background: var(--txt); color: #fff; font-size: 14px; font-weight: 500;
}
.more:hover { background: var(--brand); }
.more::after { content: "›"; font-size: 16px; line-height: 1; }
.meta { font-size: 13px; color: var(--mute); }
.none { padding: 60px 0; text-align: center; font-size: 15px; color: var(--mute); }

/* ---- 分页 ---- */
.pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--edge); }
.pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--edge); border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 14px; color: var(--txt-2); cursor: pointer;
  transition: all .15s;
}
.pg:hover:not(:disabled):not(.cur) { border-color: var(--brand); color: var(--brand); }
.pg.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; cursor: default; }
.pg:disabled { background: var(--wash); color: #c4c7ca; cursor: not-allowed; }
.pg-gap { padding: 0 2px; color: var(--mute); }
.pg-note { margin-left: auto; font-size: 13px; color: var(--mute); }
@media screen and (max-width: 960px) { .pg-note { width: 100%; margin: 8px 0 0; text-align: center; } }

/* =======================================================================
   攻略详情页
   ======================================================================= */

/* 黑色信息条:圆形返回键 + 居中「发布时间 … 访问量 …」 */
.darkbar { position: relative; margin-top: 70px; padding: 26px 0; background: #000; color: #6b7075; text-align: center; }
.darkbar-m { font-size: 22px; font-weight: 400; line-height: 1.4; letter-spacing: .5px; color: #5b6165; }
.darkbar-m span { margin-left: 22px; }
.darkbar-back {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #e7e9ea; font-size: 17px; line-height: 1;
}
.darkbar-back:hover { background: rgba(255,255,255,.3); }
@media screen and (max-width: 1200px) { .darkbar-m { font-size: 17px; } }

.path { margin: 22px auto 0; font-size: 13px; color: var(--mute); }
.path a:hover { color: var(--brand); }
.path span { margin: 0 8px; color: #d0d3d6; }

.docrow { display: flex; align-items: flex-start; gap: 52px; margin: 22px auto 90px; }
.doc { flex: 1; min-width: 0; }
.doc-hd { padding-bottom: 22px; border-bottom: 1px solid var(--edge); }
.doc-cat { display: inline-block; margin-bottom: 16px; padding: 4px 14px; border-radius: 20px; background: #fff1ef; font-size: 13px; color: var(--brand); }
.doc-t { font-size: 32px; font-weight: 600; line-height: 1.4; letter-spacing: -.5px; }
.doc-info { margin-top: 14px; font-size: 13px; color: var(--mute); }
.doc-info i { margin: 0 8px; font-style: normal; color: #d0d3d6; }

.lead {
  margin: 24px 0 0; padding: 20px 22px; border-radius: 12px;
  background: var(--wash); border-left: 3px solid var(--brand);
  font-size: 16px; line-height: 1.9; color: var(--txt-2);
}
.lead strong { font-weight: 600; color: var(--txt); }

.anchor { position: sticky; top: 96px; width: 214px; flex: 0 0 214px; }
.anchor-t { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--mute); }
.anchor-nav a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--edge); font-size: 13px; line-height: 1.6; color: var(--txt-3); }
.anchor-nav a:hover { color: var(--brand); }
.anchor-nav a.here { border-left-color: var(--brand); color: var(--brand); font-weight: 500; }

.prose { font-size: 16px; line-height: 1.95; color: #23262a; }
.prose h2 { margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--brand); font-size: 23px; font-weight: 600; line-height: 1.4; color: var(--txt); scroll-margin-top: 90px; }
.prose h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; color: var(--txt); }
.prose p { margin-bottom: 16px; }
.prose strong { font-weight: 600; color: var(--txt); }
.prose a { border-bottom: 1px solid #cddaff; color: var(--link); }
.prose a:hover { border-bottom-color: #ffc9c4; color: var(--brand); }
.prose ul, .prose ol { margin: 0 0 18px; }
.prose ul li { position: relative; margin-bottom: 9px; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 5px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; margin-bottom: 9px; padding-left: 30px; counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: 5px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--txt); color: #fff; font-size: 12px; line-height: 21px; text-align: center;
}

.tbc { display: inline-block; margin: 0 2px; padding: 0 6px; border-radius: 4px; background: #fff6e5; font-size: 12px; color: #b06a00; vertical-align: 1px; }

.pic { margin: 26px 0; padding: 18px; border-radius: 14px; background: var(--wash); text-align: center; }
.pic img { display: inline-block; max-width: 100%; border-radius: 8px; background: #fff; }
.pic figcaption { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--mute); }

.tip { margin: 22px 0; padding: 16px 18px; border-radius: 10px; background: #f2f7ff; border-left: 3px solid var(--link); font-size: 14.5px; line-height: 1.85; color: #2c3238; }
.tip-warn { background: #fff7e8; border-left-color: #f0a020; }

.twrap { margin: 22px 0; overflow-x: auto; }
.grid-t { width: 100%; border-collapse: collapse; border: 1px solid var(--edge); font-size: 14px; }
.grid-t th, .grid-t td { padding: 11px 14px; border: 1px solid var(--edge); text-align: left; vertical-align: top; line-height: 1.7; }
.grid-t th { background: var(--wash); font-weight: 600; white-space: nowrap; }
.grid-t tbody tr:nth-child(2n) td { background: #fcfcfd; }

.cite { margin: 22px 0; padding: 14px 20px; border-left: 3px solid var(--edge); font-size: 15px; line-height: 1.9; color: var(--txt-3); }
.cite cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--mute); }

.refs { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--edge); }
.refs-t { margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.refs ol { counter-reset: r; }
.refs li { position: relative; margin-bottom: 8px; padding-left: 26px; counter-increment: r; font-size: 13.5px; line-height: 1.75; color: var(--txt-3); }
.refs li::before { content: "[" counter(r) "]"; position: absolute; left: 0; top: 0; font-size: 12px; color: var(--mute); }
.refs a { color: var(--link); word-break: break-all; }
.refs a:hover { color: var(--brand); }

.kws { margin-top: 30px; font-size: 13px; color: var(--mute); }
.kws-a {
  display: inline-block; margin: 4px 6px 0 0; padding: 4px 12px;
  border: 1px solid var(--edge); border-radius: 16px; background: #fff;
  font-size: 13px; color: var(--txt-2); text-decoration: none;
}
.kws-a:hover { border-color: var(--brand); color: var(--brand); }
.kws-cat { border-color: #ffd4cf; background: #fff5f3; color: var(--brand); }

.alsolike { margin-top: 40px; }
.als-t { margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.als-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.als-i { display: block; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--txt-2); }
.als-i:hover { border-color: var(--brand); color: var(--brand); }

.prevnext { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--edge); font-size: 14px; }
.prevnext a, .prevnext span { max-width: 46%; line-height: 1.6; color: var(--txt-3); }
.prevnext a:hover { color: var(--brand); }
.prevnext span { color: #c4c7ca; }
.prevnext a:last-child, .prevnext span:last-child { text-align: right; }

.tolist { display: inline-flex; align-items: center; gap: 6px; margin-top: 30px; height: 38px; padding: 0 22px; border: 1px solid var(--edge); border-radius: 20px; font-size: 14px; color: var(--txt-2); }
.tolist:hover { border-color: var(--brand); color: var(--brand); }

.colophon { margin-top: 40px; padding: 34px 20px 40px; background: var(--wash); font-size: 13px; line-height: 1.9; text-align: center; color: var(--mute); }
.colophon p { max-width: 900px; margin: 0 auto; }
.colophon a { color: var(--mute); text-decoration: underline; }
.colophon a:hover { color: var(--brand); }
.colophon-sub { margin-top: 10px; color: #b0b3b6; }

/* ---- 窄屏兜底 ---- */
@media screen and (max-width: 960px) {
  .cwrap, .bar-in, .body2, .docrow, .path { min-width: 0; width: auto; padding-left: 18px; padding-right: 18px; }
  .body2, .docrow { flex-direction: column; gap: 26px; }
  .cats, .anchor { position: static; width: auto; flex: none; }
  .mast { padding: 100px 18px 32px; }
  .mast-t { font-size: 28px; }
  .doc-t { font-size: 24px; }
  .als-list { grid-template-columns: 1fr; }
  .darkbar-m { font-size: 15px; }
  .item-b { padding-left: 4px; }
}

@media print {
  .bar, .anchor, .prevnext, .alsolike, .darkbar-back, .colophon { display: none; }
  .docrow { width: auto; min-width: 0; }
  .darkbar { padding: 8px 0; background: #fff; color: #000; }
  .darkbar-m { font-size: 13px; color: #444; }
}
