/* ===========================================================
   艺问艺答 · 知乎式版式（白底）
   结构：顶部搜索栏 + 频道栏 + 双栏（问答流 / 右栏）
   视觉：纯白底、细线分割、蓝色主色、无阴影无大圆角
   =========================================================== */
:root{
  --brand:#056de8;
  --brand-soft:#eaf2fe;
  --brand-line:#cfe0fa;
  --ink:#121212;
  --ink-2:#444;
  --ink-3:#8590a6;
  --line:#ebebeb;
  --line-soft:#f0f2f7;
  --bg:#fff;
  --card:#fff;
  --radius:4px;
  --radius-sm:4px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:15px/1.67 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%}
button{font-family:inherit}

/* ---------------- 顶栏 ---------------- */
.header{
  position:sticky;top:0;z-index:60;background:#fff;
  border-bottom:1px solid var(--line-soft);
}
.header-inner{
  max-width:1000px;margin:0 auto;padding:0 16px;
  height:52px;display:flex;align-items:center;gap:18px;
}
.brand{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.brand-mark{
  width:28px;height:28px;border-radius:4px;flex:0 0 28px;background:var(--brand);
  color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;
}
.brand-name{font-size:19px;font-weight:700;letter-spacing:.02em;color:#121212}
.search-form{flex:1;max-width:420px;position:relative}
.search-form input{
  width:100%;height:34px;border:1px solid var(--line);border-radius:3px;
  background:#f6f6f6;padding:0 12px 0 34px;font-size:14px;color:var(--ink);outline:none;transition:.15s;
}
.search-form input:focus{background:#fff;border-color:var(--brand-line);box-shadow:0 0 0 2px var(--brand-soft)}
.search-form .ico{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:14px;height:14px;opacity:.55}
.head-actions{margin-left:auto;display:flex;align-items:center;gap:4px}
.btn-ghost{font-size:14px;color:var(--ink-3);padding:6px 10px;border-radius:3px}
.btn-ghost:hover{color:var(--brand)}
.btn-primary{
  font-size:14px;font-weight:500;color:#fff;background:var(--brand);
  padding:0 16px;height:34px;line-height:34px;border-radius:3px;white-space:nowrap;border:0;cursor:pointer;
}
.btn-primary:hover{background:#0257bd}

/* ---------------- 频道栏 ---------------- */
.tabs{
  position:relative;display:flex;align-items:center;gap:0;overflow-x:auto;
  max-width:1000px;margin:0 auto;padding:0 16px;height:48px;
  border-bottom:1px solid var(--line-soft);scrollbar-width:none;
}
.tabs::-webkit-scrollbar{display:none}
.tabs a{
  flex:0 0 auto;font-size:15px;color:#8590a6;padding:0 0 0 0;margin-right:26px;
  height:48px;line-height:48px;white-space:nowrap;border-bottom:3px solid transparent;
  transition:color .15s,border-color .15s;
}
.tabs a:hover{color:#121212}
.tabs a.on{color:#121212;font-weight:600;border-bottom-color:#121212}
.tabs a.more{color:#8590a6;font-size:14px}
.tabs a:last-child{margin-right:0}
@media (max-width:900px){.tabs{gap:0}.tabs a{margin-right:20px;font-size:14.5px}}

/* ---------------- 布局 ---------------- */
.page{
  max-width:1000px;margin:0 auto;padding:0 16px 56px;
  display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:24px;align-items:start;
}
.page.full{grid-template-columns:minmax(0,1fr);max-width:748px}
.page>main{min-width:0;padding-top:4px}
.sidebar{position:sticky;top:64px;display:flex;flex-direction:column;gap:10px;padding-top:12px}
@media (max-width:900px){
  .page{grid-template-columns:minmax(0,1fr)}
  .sidebar{display:none}
  .search-form{max-width:200px}
}

/* ---------------- 内容块 ---------------- */
.card{background:#fff;border:0;border-radius:0}
.sidebar .card{border:1px solid var(--line);border-radius:4px;overflow:hidden}
.list-caption{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 0 12px;border-bottom:1px solid var(--line-soft);
  font-size:13px;color:var(--ink-3);
}
.list-caption b{color:#121212;font-weight:600;font-size:15px}

/* 问题条目 */
.qcard{padding:20px 0 18px;border-bottom:1px solid var(--line-soft)}
.qcard:last-child{border-bottom:0}
.qcard h2{
  margin:0 0 8px;font-size:18px;line-height:1.6;font-weight:700;letter-spacing:-.003em;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.qcard h2 a{color:#121212}
.qcard h2 a:hover{color:var(--brand)}
.qcard .excerpt{
  margin:0 0 12px;font-size:15px;line-height:1.72;color:#444;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.qcard .foot{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-3);flex-wrap:wrap}
.qcard .foot .sep{color:#d3d7dd}
.chip{
  display:inline-block;font-size:12px;color:#8590a6;background:#f6f6f6;
  padding:2px 8px;border-radius:3px;font-weight:400;
}
.chip.prov{color:#8590a6;background:#f6f6f6}

/* 归档 */
.arch-group{padding:0;border-bottom:1px solid var(--line-soft)}
.arch-group:last-child{border-bottom:0}
.arch-month{display:flex;align-items:baseline;gap:10px;padding:18px 0 10px;font-size:16px;font-weight:600;color:#121212}
.arch-month span{font-size:12.5px;font-weight:400;color:var(--ink-3)}
.arch-list{list-style:none;margin:0 0 14px;padding:0}
.arch-list li{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:15px;border-bottom:1px solid #f7f8fa}
.arch-list li:last-child{border-bottom:0}
.arch-list a{color:#121212}
.arch-list a:hover{color:var(--brand)}
.arch-meta{flex:0 0 auto;font-size:12.5px;color:var(--ink-3)}
.side-note{font-size:12.5px;color:var(--ink-3);line-height:1.75;margin-bottom:10px}
.side-more{font-size:12.5px;color:var(--brand)}
@media (max-width:640px){.arch-list li{flex-direction:column;gap:2px}}

.provgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:16px 0 22px}
.provitem{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--line);border-radius:4px;background:#fff}
.provitem:hover{border-color:var(--brand-line);background:#fbfdff}
.provitem b{font-size:14.5px;color:#121212}
.provitem span{font-size:12px;color:var(--ink-3)}
.dot:before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:#d3d7dd;vertical-align:2px;margin-right:6px}

/* ---------------- 问答详情 ---------------- */
.crumb{padding:14px 0 0;font-size:13px;color:var(--ink-3)}
.crumb a:hover{color:var(--brand)}

.q-block{padding:0 0 18px;border-bottom:1px solid var(--line-soft)}
.kicker{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:12.5px;color:var(--ink-3)}
.q-block h1{margin:0 0 12px;font-size:24px;line-height:1.45;font-weight:700;letter-spacing:-.01em}
.q-sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--ink-3)}
.follow-btn{
  margin-left:auto;display:inline-flex;align-items:center;gap:4px;
  border:0;color:#fff;background:var(--brand);font-size:13.5px;font-weight:500;
  padding:0 14px;height:32px;line-height:32px;border-radius:3px;cursor:pointer;
}
.follow-btn:hover{background:#0257bd}

.conclusion{
  margin-top:16px;background:#f8fafd;border-left:3px solid var(--brand);border-radius:0;
  padding:12px 16px 14px;
}
.conclusion .tag{display:block;font-size:12px;font-weight:600;color:var(--brand);margin-bottom:4px}
.conclusion p{margin:0;font-size:15px;line-height:1.8;color:#2a3346}
.conclusion b{color:#121212}

/* 回答 */
.answer{
  display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;
  padding:22px 0;border-bottom:1px solid var(--line-soft);
}
.answer:last-of-type{border-bottom:0}
.vote-rail{display:flex;flex-direction:column;align-items:center;padding-top:2px}
.vote-btn{
  width:40px;padding:6px 0 7px;border:0;border-radius:4px;background:#eaf2fe;
  display:flex;flex-direction:column;align-items:center;gap:2px;
  font-size:13px;font-weight:600;color:var(--brand);cursor:pointer;transition:.15s;
}
.vote-btn:hover{background:#dbe8fd}
.tri-up{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid currentColor}

.a-head{display:flex;align-items:center;gap:9px;margin-bottom:12px;flex-wrap:wrap}
.avatar{
  width:32px;height:32px;border-radius:50%;flex:0 0 32px;
  display:flex;align-items:center;justify-content:center;
  font-size:13.5px;font-weight:600;color:#fff;background:#b0b8c4;
}
.avatar.org{background:var(--brand)}
.a-name{font-size:14.5px;font-weight:600;color:#121212;line-height:1.4}
.a-badge{
  display:inline-block;font-size:11px;font-weight:600;color:var(--brand);
  background:var(--brand-soft);border-radius:3px;padding:1px 5px;margin-left:6px;vertical-align:1px;
}
.a-desc{width:100%;font-size:12.5px;color:var(--ink-3);line-height:1.6;margin-top:-2px;padding-left:41px}
.a-body{font-size:16px;line-height:1.9;color:#121212}
.a-body p{margin:0 0 15px}
.a-body p:last-child{margin-bottom:0}
.a-body strong{font-weight:600;color:#000}
.a-body ul{margin:0 0 15px;padding-left:21px}
.a-body li{margin-bottom:6px}
.a-foot{display:flex;align-items:center;gap:16px;margin-top:14px;font-size:13px;color:var(--ink-3)}
.a-foot .act{cursor:pointer}
.a-foot .act:hover{color:var(--brand)}
.a-foot .date{margin-left:auto;color:#c1c6cf}

/* 写回答 */
.editor{margin-top:6px;padding:20px 0 6px;border-top:1px solid var(--line-soft)}
.editor h3{margin:0 0 12px;font-size:15px;font-weight:600;color:#121212}
.editor textarea{
  width:100%;min-height:120px;padding:12px 14px;font:15px/1.8 inherit;color:#121212;
  border:1px solid var(--line);border-radius:4px;background:#fafafa;outline:none;resize:vertical;
}
.editor textarea:focus{background:#fff;border-color:var(--brand-line);box-shadow:0 0 0 2px var(--brand-soft)}
.editor .row{display:flex;align-items:center;gap:10px;margin-top:10px}
.editor .hint{font-size:12.5px;color:var(--ink-3)}
.editor button{
  margin-left:auto;height:34px;padding:0 18px;border:0;border-radius:3px;background:var(--brand);
  color:#fff;font-size:14px;cursor:pointer;
}
.editor button:hover{background:#0257bd}

/* 相关 */
.rel{padding:18px 0 4px}
.rel h3{margin:0 0 4px;font-size:15px;font-weight:600;color:#121212}
.rel ul{list-style:none;margin:0;padding:0}
.rel li a{display:flex;align-items:center;gap:8px;padding:10px 0;font-size:14.5px;line-height:1.6;color:#444;border-bottom:1px solid #f7f8fa}
.rel li:last-child a{border-bottom:0}
.rel li a:before{content:"";width:3px;height:3px;border-radius:50%;background:#d3d7dd;flex:0 0 3px}
.rel li a:hover{color:var(--brand)}

/* ---------------- 右栏 ---------------- */
.side-head{
  padding:12px 14px;border-bottom:1px solid var(--line-soft);
  font-size:14px;font-weight:600;color:#444;
}
.side-body{padding:12px 14px 14px;font-size:13px;line-height:1.85;color:var(--ink-3)}
.side-body p{margin:0 0 8px}
.side-body p:last-child{margin:0}
.side-body a.more{color:var(--brand);font-size:12.5px}
.hot-list{list-style:none;margin:0;padding:4px 0 6px}
.hot-list li{display:flex;gap:8px;padding:7px 14px;font-size:13.5px;line-height:1.6}
.hot-list li:hover{background:#fafafa}
.hot-num{flex:0 0 14px;font-weight:700;color:#c8ccd4;font-size:13px;line-height:1.65}
.hot-list li:nth-child(1) .hot-num{color:#f04142}
.hot-list li:nth-child(2) .hot-num{color:#ff8c1a}
.hot-list li:nth-child(3) .hot-num{color:#f5b800}
.hot-list a{color:#444;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hot-list a:hover{color:var(--brand)}
.cat-links{display:flex;flex-wrap:wrap;gap:6px}
.cat-links a{font-size:12.5px;color:#5a6478;background:#f6f6f6;padding:4px 10px;border-radius:3px}
.cat-links a:hover{color:var(--brand);background:var(--brand-soft)}

/* ---------------- 分页 ---------------- */
.pager{display:flex;justify-content:center;align-items:center;gap:6px;padding:24px 0 8px;font-size:14px}
.pager a,.pager span{
  min-width:34px;height:34px;line-height:32px;text-align:center;padding:0 10px;
  border:1px solid var(--line);border-radius:3px;color:#444;background:#fff;
}
.pager a:hover{color:var(--brand);border-color:var(--brand-line)}
.pager .cur{background:var(--brand);border-color:var(--brand);color:#fff}

/* ---------------- 关于 ---------------- */
.about-card{padding:24px 0 34px}
.about-card h1{font-size:24px;margin:14px 0 4px;letter-spacing:-.01em}
.about-card .lede{color:var(--ink-3);font-size:14px;margin:0 0 24px}
.about-card h2{font-size:16px;margin:26px 0 8px;font-weight:600}
.about-card p{font-size:15.5px;line-height:1.95;color:#333;margin:0 0 12px}

/* ---------------- 搜索 ---------------- */
.search-head{padding:20px 0 16px;border-bottom:1px solid var(--line-soft)}
.search-head h1{font-size:18px;margin:0;font-weight:600}
.search-head p{font-size:13px;color:var(--ink-3);margin:6px 0 0}
.s-box{display:flex;gap:8px;margin-top:14px}
.s-box input{flex:1;height:38px;border:1px solid var(--line);border-radius:3px;padding:0 14px;font-size:14px;outline:none;background:#fafafa}
.s-box input:focus{border-color:var(--brand-line);background:#fff;box-shadow:0 0 0 2px var(--brand-soft)}
.s-box button{height:38px;padding:0 20px;border:0;border-radius:3px;background:var(--brand);color:#fff;font-size:14px;cursor:pointer}
.s-box button:hover{background:#0257bd}
.s-hit{font-size:13px;color:var(--ink-3);margin-top:12px}
.s-hit b{color:var(--brand)}
.empty{padding:60px 20px;text-align:center;color:var(--ink-3);font-size:14px}

/* ---------------- 页脚 ---------------- */
.footer{border-top:1px solid var(--line-soft);background:#fff;margin-top:8px}
.footer-inner{max-width:1000px;margin:0 auto;padding:20px 16px 32px;font-size:12.5px;color:var(--ink-3);line-height:1.95}
.footer-inner p{margin:0 0 4px}
.footer-inner b{color:#444;font-weight:600}

/* ---------------- 弹层 / 提示 ---------------- */
.mask{
  position:fixed;inset:0;background:rgba(18,18,18,.45);z-index:200;
  display:none;align-items:center;justify-content:center;padding:20px;
}
.mask.on{display:flex}
.modal{
  width:100%;max-width:520px;background:#fff;border-radius:6px;padding:24px 24px 20px;
  box-shadow:0 8px 40px rgba(0,0,0,.16);
}
.modal h3{margin:0 0 4px;font-size:18px;font-weight:700}
.modal .tip{margin:0 0 16px;font-size:13px;color:var(--ink-3)}
.modal input,.modal textarea{
  width:100%;padding:11px 13px;font:15px/1.7 inherit;color:#121212;
  border:1px solid var(--line);border-radius:4px;background:#fafafa;outline:none;
}
.modal textarea{min-height:110px;resize:vertical;margin-top:10px}
.modal input:focus,.modal textarea:focus{background:#fff;border-color:var(--brand-line);box-shadow:0 0 0 2px var(--brand-soft)}
.modal .actions{display:flex;align-items:center;gap:10px;margin-top:14px}
.modal .actions .note{font-size:12.5px;color:var(--ink-3)}
.modal .actions .ok{
  margin-left:auto;height:36px;padding:0 20px;border:0;border-radius:3px;background:var(--brand);
  color:#fff;font-size:14px;cursor:pointer;
}
.modal .actions .ok:hover{background:#0257bd}
.modal .actions .cancel{border:0;background:none;color:var(--ink-3);font-size:14px;cursor:pointer}

.toast{
  position:fixed;left:50%;bottom:44px;transform:translate(-50%,10px);z-index:300;
  background:rgba(18,18,18,.9);color:#fff;font-size:14px;padding:11px 20px;border-radius:4px;
  opacity:0;pointer-events:none;transition:.22s;max-width:86vw;text-align:center;
}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------------- 移动端 ---------------- */
@media (max-width:640px){
  .header-inner{height:50px;gap:10px;padding:0 12px}
  .brand-name{display:none}
  .search-form{max-width:none}
  .btn-ghost{display:none}
  .btn-primary{padding:0 12px;font-size:13.5px;height:32px;line-height:32px}
  .tabs{height:44px;padding:0 12px}
  .tabs a{height:44px;line-height:44px;margin-right:20px;font-size:14.5px}
  .page{padding:0 12px 44px;gap:12px}
  .q-block h1{font-size:20px}
  .q-card h2{font-size:17px}
  .q-sub .follow-btn{margin-left:0;margin-top:4px}
  .answer{grid-template-columns:minmax(0,1fr);gap:0;padding:18px 0}
  .vote-rail{order:2;flex-direction:row;justify-content:flex-start;padding-top:14px}
  .vote-btn{flex-direction:row;gap:7px;width:auto;min-width:62px;justify-content:center;padding:6px 14px}
  .tri-up{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid currentColor}
  .answer-main{order:1}
  .a-desc{padding-left:0;margin-top:2px}
  .qcard{padding:16px 0 14px}
  .qcard h2{font-size:17px}
  .a-body{font-size:15.5px}
  .rel{padding:16px 0 4px}
}

.h1-inline{font-size:15px;font-weight:700;margin:0;display:inline;line-height:1.4}

