/* ============================================================
 * 问答（论坛）模块 · 简洁扁平大留白覆盖层
 * 仅作用于 body 带问答类名的页面；不改动主题原文件。
 * 风格：浅色大留白、细边线、克制色彩、无投影无位移。
 * ============================================================ */

body.post-type-archive-ask,
body.tax-ask_cat,
body.single-ask,
body.po-ask,
body.ask-people {
    --fl-bg: #f6f7f9;
    --fl-card: #ffffff;
    --fl-line: #eceef1;
    --fl-line-soft: #f2f4f7;
    --fl-tx: #1f2733;
    --fl-tx2: #7a8494;
    --fl-tx3: #a6aebc;
    --fl-p: #1e73be;
    --fl-p-deep: #1a66a8;
    --fl-p-soft: #eef4fb;
    --fl-accent: #e6392f;
    --fl-r: 8px;
}

/* ---------- 容器与布局 ---------- */
body.post-type-archive-ask .b2-single-content,
body.tax-ask_cat .b2-single-content,
body.single-ask .b2-single-content,
body.po-ask .b2-single-content,
body.ask-people .b2-single-content {
    background: var(--fl-bg);
    gap: 20px;
}

/* 问答列表页侧边栏为空，隐藏并让主内容占满 */
body.post-type-archive-ask #secondary.widget-area,
body.tax-ask_cat #secondary.widget-area {
    display: none;
}
body.post-type-archive-ask .content-area,
body.tax-ask_cat .content-area {
    max-width: 100% !important;
    width: 100%;
}

body.post-type-archive-ask .content-area.ask-archive,
body.tax-ask_cat .content-area.ask-archive,
body.po-ask .ask-page #main.site-main,
body.ask-people main.ask-archive,
body.single-ask article.single-article,
body.single-ask .ask-write-answer-box,
body.single-ask .ask-answer-box {
    background: var(--fl-card);
    border: 1px solid var(--fl-line);
    border-radius: 10px;
    box-shadow: none;
}

/* ---------- 列表顶部 ---------- */
body.post-type-archive-ask .ask-top,
body.tax-ask_cat .ask-top {
    background: var(--fl-card);
    box-shadow: none;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--fl-line);
    overflow: visible;
}
body.post-type-archive-ask .ask-top .ask-search-box,
body.tax-ask_cat .ask-top .ask-search-box {
    padding: 24px 24px 0;
}
body.post-type-archive-ask .ask-top .ask-h1,
body.tax-ask_cat .ask-top .ask-h1,
body.post-type-archive-ask .ask-top h1,
body.tax-ask_cat .ask-top h1 {
    color: var(--fl-tx);
    font-size: 22px;
    font-weight: 600;
}
body.post-type-archive-ask .ask-top input,
body.tax-ask_cat .ask-top input {
    background: var(--fl-line-soft);
    border: 1px solid transparent;
    border-radius: var(--fl-r);
    color: var(--fl-tx);
    padding: 10px 14px;
    box-shadow: none;
}
body.post-type-archive-ask .ask-top input::placeholder,
body.tax-ask_cat .ask-top input::placeholder { color: var(--fl-tx3); }
body.post-type-archive-ask .ask-top input:focus,
body.tax-ask_cat .ask-top input:focus {
    background: var(--fl-card);
    border-color: var(--fl-p);
    box-shadow: none;
}
body.post-type-archive-ask .ask-search-input button.text,
body.tax-ask_cat .ask-search-input button.text { color: var(--fl-p); }

/* 标签页：文字下划线选中 */
body.post-type-archive-ask .ask-bar,
body.tax-ask_cat .ask-bar {
    margin: 0 24px;
    border-bottom: 1px solid var(--fl-line);
}
body.post-type-archive-ask .ask-bar span,
body.tax-ask_cat .ask-bar span {
    padding: 14px 4px;
    margin-right: 22px;
    border-radius: 0;
    color: var(--fl-tx2);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
body.post-type-archive-ask .ask-bar span:hover,
body.tax-ask_cat .ask-bar span:hover {
    background: none;
    color: var(--fl-p);
}
body.post-type-archive-ask .ask-bar .picked,
body.tax-ask_cat .ask-bar .picked {
    background: none;
    color: var(--fl-p);
    font-weight: 600;
    border-bottom-color: var(--fl-p);
    box-shadow: none;
}

/* ---------- 列表条目 ---------- */
body.post-type-archive-ask .ask-list .ask-item,
body.tax-ask_cat .ask-list .ask-item,
body.ask-people .ask-list .ask-item {
    padding: 20px 24px;
    background: var(--fl-card);
    border-top: 1px solid var(--fl-line);
    box-shadow: none;
    border-radius: 0;
    transition: background .18s ease;
    animation: none;
}
body.post-type-archive-ask .ask-item:hover,
body.tax-ask_cat .ask-item:hover,
body.ask-people .ask-list .ask-item:hover {
    background: #fafbfc;
    box-shadow: none;
    transform: none;
}
body.post-type-archive-ask .ask-item + .ask-item,
body.tax-ask_cat .ask-item + .ask-item,
body.ask-people .ask-item + .ask-item { border-top: 1px solid var(--fl-line); }

/* 统计：去掉灰底方块，纯数字 + 灰标签 */
body.post-type-archive-ask .ask-meta-left,
body.tax-ask_cat .ask-meta-left,
body.ask-people .ask-meta-left {
    gap: 14px;
    margin-right: 18px;
}
body.post-type-archive-ask .ask-answer-count,
body.tax-ask_cat .ask-answer-count,
body.ask-people .ask-answer-count,
body.post-type-archive-ask .ask-view-count,
body.tax-ask_cat .ask-view-count,
body.ask-people .ask-view-count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    margin-right: 0;
    gap: 2px;
}
body.post-type-archive-ask .ask-answer-count b,
body.tax-ask_cat .ask-answer-count b,
body.ask-people .ask-answer-count b,
body.post-type-archive-ask .ask-view-count b,
body.tax-ask_cat .ask-view-count b,
body.ask-people .ask-view-count b {
    font-size: 15px;
    font-weight: 600;
    color: var(--fl-tx);
}
body.post-type-archive-ask .ask-answer-count div:last-child,
body.tax-ask_cat .ask-answer-count div:last-child,
body.ask-people .ask-answer-count div:last-child,
body.post-type-archive-ask .ask-view-count div:last-child,
body.tax-ask_cat .ask-view-count div:last-child,
body.ask-people .ask-view-count div:last-child {
    font-size: 12px;
    color: var(--fl-tx2);
}
body.post-type-archive-ask .ask-answer-count.has,
body.tax-ask_cat .ask-answer-count.has,
body.ask-people .ask-answer-count.has { background: none; }
body.post-type-archive-ask .ask-answer-count.has b,
body.tax-ask_cat .ask-answer-count.has b,
body.ask-people .ask-answer-count.has b { color: var(--fl-p); }
body.post-type-archive-ask .ask-answer-count.best,
body.tax-ask_cat .ask-answer-count.best,
body.ask-people .ask-answer-count.best {
    background: var(--fl-p);
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
}
body.post-type-archive-ask .ask-answer-count.best b,
body.tax-ask_cat .ask-answer-count.best b,
body.ask-people .ask-answer-count.best b { color: #fff; }

/* 标题与标签 */
body.post-type-archive-ask .ask-title,
body.tax-ask_cat .ask-title,
body.ask-people .ask-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fl-tx);
}
body.post-type-archive-ask .ask-title a,
body.tax-ask_cat .ask-title a,
body.ask-people .ask-title a { color: var(--fl-tx); transition: color .18s ease; }
body.post-type-archive-ask .ask-title a:hover,
body.tax-ask_cat .ask-title a:hover,
body.ask-people .ask-title a:hover { color: var(--fl-p); text-decoration: none; }

body.post-type-archive-ask .ask-tags .ask-tag-item,
body.tax-ask_cat .ask-tags .ask-tag-item,
body.ask-people .ask-tags .ask-tag-item {
    background: var(--fl-p-soft);
    color: var(--fl-p);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    margin-right: 8px;
    transition: background .18s ease;
}
body.post-type-archive-ask .ask-tags .ask-tag-item:hover,
body.tax-ask_cat .ask-tags .ask-tag-item:hover,
body.ask-people .ask-tags .ask-tag-item:hover {
    background: #ddeaf7;
    color: var(--fl-p-deep);
}

body.post-type-archive-ask .ask-user-info,
body.tax-ask_cat .ask-user-info,
body.ask-people .ask-user-info,
body.post-type-archive-ask .ask-metas,
body.tax-ask_cat .ask-metas,
body.ask-people .ask-metas {
    opacity: 1;
    color: var(--fl-tx2);
    font-size: 12px;
}
body.post-type-archive-ask .ask-user-name,
body.tax-ask_cat .ask-user-name,
body.ask-people .ask-user-name { color: var(--fl-tx2); }

/* 静态兜底条目 */
body.post-type-archive-ask .document-row,
body.tax-ask_cat .document-row,
body.ask-people .document-row {
    background: var(--fl-card);
    border-top: 1px solid var(--fl-line);
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px;
    transition: background .18s ease;
}
body.post-type-archive-ask .document-row:hover,
body.tax-ask_cat .document-row:hover,
body.ask-people .document-row:hover { background: #fafbfc; box-shadow: none; transform: none; }
body.post-type-archive-ask .document-row h3 a,
body.tax-ask_cat .document-row h3 a { color: var(--fl-tx); }

/* ---------- 单帖 ---------- */
body.single-ask article.single-article { padding: 24px; }
body.single-ask .entry-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--fl-tx);
    line-height: 1.4;
}
body.single-ask .post-user-name b { color: var(--fl-tx); }
body.single-ask .user-title,
body.single-ask .ask-single-info .ask-metas,
body.single-ask .ask-footer { color: var(--fl-tx2); }

body.single-ask .answer-item {
    background: var(--fl-card);
    border: 1px solid var(--fl-line);
    border-radius: 10px;
    box-shadow: none;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: border-color .18s ease;
}
body.single-ask .answer-item:hover { border-color: #dde2e9; box-shadow: none; }
body.single-ask .answer-item .avatar,
body.single-ask .answer-top .avatar-parent { border-radius: 100%; }
body.single-ask .answer-name { color: var(--fl-tx); font-weight: 600; }
body.single-ask .answer-date,
body.single-ask .answer-footer-left,
body.single-ask .answer-footer-right { color: var(--fl-tx2); font-size: 12px; }

body.single-ask .answer-vote {
    background: var(--fl-line-soft);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--fl-tx2);
    transition: background .18s ease, color .18s ease;
}
body.single-ask .answer-vote.picked { background: var(--fl-p-soft); color: var(--fl-p); }
body.single-ask .answer-best { color: #2e9e5b; }

body.single-ask .ask-write-answer-box,
body.single-ask .ask-answer-box { padding: 20px 24px; }
body.single-ask .ask-answer-title h2 { font-size: 17px; font-weight: 600; color: var(--fl-tx); }

/* ---------- 提问页 ---------- */
body.po-ask .ask-page #main.site-main { padding: 24px; }
body.po-ask .reward,
body.po-ask .po-ask-cats,
body.po-ask .ask-search-user-input {
    background: var(--fl-card);
    border: 1px solid var(--fl-line);
    border-radius: var(--fl-r);
    box-shadow: none;
    padding: 16px;
}
body.po-ask .po-cat-item,
body.po-ask .register-cat {
    background: var(--fl-line-soft);
    border-radius: 6px;
    padding: 7px 14px;
    color: var(--fl-tx2);
    transition: background .18s ease, color .18s ease;
}
body.po-ask .po-cat-item:hover { background: #e6eaef; }
body.po-ask .po-cat-item.picked,
body.po-ask .register-cat.picked { background: var(--fl-p); color: #fff; }
body.po-ask .write-textarea,
body.po-ask .ask-search-user-input input,
body.po-ask .trix-input {
    background: var(--fl-line-soft);
    border: 1px solid transparent;
    border-radius: var(--fl-r);
    color: var(--fl-tx);
}
body.po-ask .write-textarea:focus,
body.po-ask .ask-search-user-input input:focus,
body.po-ask .trix-input:focus {
    background: var(--fl-card);
    border-color: var(--fl-p);
}
body.po-ask .reward-type span {
    border-radius: 6px;
    padding: 6px 14px;
    color: var(--fl-tx2);
    transition: background .18s ease, color .18s ease;
}
body.po-ask .reward-type span.picked.red { background: var(--fl-accent); color: #fff; }
body.po-ask .po-ask-right button {
    background: var(--fl-p);
    color: #fff;
    border: none;
    border-radius: var(--fl-r);
    padding: 9px 18px;
    font-weight: 600;
    box-shadow: none;
    transition: background .18s ease, opacity .18s ease;
}
body.po-ask .po-ask-right button:hover { background: var(--fl-p-deep); }
body.po-ask .po-ask-right button:active { opacity: .92; }

/* ---------- 求助者主页 ---------- */
body.ask-people .i-p-top {
    padding: 24px 24px 8px;
    margin: 0;
}
body.ask-people .people-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 100%;
    margin-right: 16px;
}
body.ask-people .ask-people-tab { padding: 0 24px; border-bottom: 1px solid var(--fl-line); }
body.ask-people .ask-people-tab span {
    padding: 14px 4px;
    margin-right: 22px;
    color: var(--fl-tx2);
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
body.ask-people .ask-people-tab span.picked {
    color: var(--fl-p);
    font-weight: 600;
    border-bottom-color: var(--fl-p);
}
body.ask-people main.ask-archive .box.b2-radius {
    background: var(--fl-card);
    border: 1px solid var(--fl-line);
    border-radius: 10px;
    box-shadow: none;
}

/* ---------- 按钮（仅问答作用域） ---------- */
body.post-type-archive-ask .button,
body.tax-ask_cat .button,
body.single-ask .button,
body.po-ask .button,
body.ask-people .button {
    border-radius: var(--fl-r);
    font-weight: 600;
    box-shadow: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
body.post-type-archive-ask .button:not(.empty):not(.text),
body.tax-ask_cat .button:not(.empty):not(.text),
body.single-ask .button:not(.empty):not(.text),
body.po-ask .button:not(.empty):not(.text),
body.ask-people .button:not(.empty):not(.text) {
    background: var(--fl-p);
    color: #fff;
}
body.post-type-archive-ask .button:not(.empty):not(.text):hover,
body.tax-ask_cat .button:not(.empty):not(.text):hover,
body.single-ask .button:not(.empty):not(.text):hover,
body.po-ask .button:not(.empty):not(.text):hover,
body.ask-people .button:not(.empty):not(.text):hover {
    background: var(--fl-p-deep);
    box-shadow: none;
    transform: none;
}
body.post-type-archive-ask .button:not(.empty):not(.text):active,
body.tax-ask_cat .button:not(.empty):not(.text):active,
body.single-ask .button:not(.empty):not(.text):active,
body.po-ask .button:not(.empty):not(.text):active,
body.ask-people .button:not(.empty):not(.text):active { opacity: .92; transform: none; }

body.post-type-archive-ask .button.empty,
body.tax-ask_cat .button.empty,
body.single-ask .button.empty,
body.po-ask .button.empty,
body.ask-people .button.empty {
    background: var(--fl-card);
    border: 1px solid #d6dde6;
    color: var(--fl-p);
}
body.post-type-archive-ask .button.empty:hover,
body.tax-ask_cat .button.empty:hover,
body.single-ask .button.empty:hover,
body.po-ask .button.empty:hover,
body.ask-people .button.empty:hover {
    background: var(--fl-p-soft);
    border-color: var(--fl-p);
}
body.post-type-archive-ask .button.text,
body.tax-ask_cat .button.text,
body.single-ask .button.text,
body.po-ask .button.text,
body.ask-people .button.text { background: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    body.post-type-archive-ask .ask-top .ask-search-box,
    body.tax-ask_cat .ask-top .ask-search-box { padding: 18px 16px 0; }
    body.post-type-archive-ask .ask-bar,
    body.tax-ask_cat .ask-bar,
    body.ask-people .ask-people-tab { margin: 0 16px; padding: 0; }
    body.post-type-archive-ask .ask-list .ask-item,
    body.tax-ask_cat .ask-list .ask-item,
    body.ask-people .ask-list .ask-item,
    body.post-type-archive-ask .document-row,
    body.tax-ask_cat .document-row { padding: 16px; }
    body.single-ask article.single-article,
    body.single-ask .ask-write-answer-box,
    body.single-ask .ask-answer-box,
    body.po-ask .ask-page #main.site-main { padding: 16px; }
}
