/* ==========================================================================
   seobole.com 问答页样式（问题广场）
   主色：#1296db
   ========================================================================== */

/* ---------- 两栏宽度 ---------- */
.main-left {
    width: 778px;
}
.main-right {
    width: 302px;
    margin-left: 20px;
}

/* ---------- 面包屑 ---------- */
.list-crumb {
    padding: 12px 0 10px;
    font-size: 13px;
    color: #999;
}
.list-crumb a {
    color: #999;
    transition: color .2s;
}
.list-crumb a:hover {
    color: #1296db;
}
.list-crumb span {
    margin: 0 6px;
    color: #ccc;
}
.list-crumb .cur {
    color: #666;
    margin: 0;
}

/* ---------- 列表页头部 ---------- */
.ask-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #eef8fe, #f7fcff);
    border: 1px solid #dcedf9;
    border-radius: 8px;
    margin-bottom: 14px;
}
.ask-head-title {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}
.ask-head-desc {
    font-size: 13px;
    color: #7d8b98;
    line-height: 1.6;
    margin-top: 5px;
}
.ask-askbtn {
    flex: 0 0 auto;
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1296db, #0d7fbb);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(18, 150, 219, .28);
    transition: transform .2s, box-shadow .2s;
}
.ask-askbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 150, 219, .36);
}

/* ---------- 问题列表容器 ---------- */
.ask-listbox {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 8px 0 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.ask-items {
    padding: 0 6px;
}
.ask-item {
    display: flex;
    align-items: flex-start;
    padding: 18px 16px;
    border-bottom: 1px solid #f4f5f7;
    border-radius: 6px;
    transition: background .2s;
}
.ask-item:last-child {
    border-bottom: none;
}
.ask-item:hover {
    background: #f8fbfe;
}
.ask-pic {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    margin-right: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ask-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ask-body {
    flex: 1 1 auto;
    min-width: 0;
}
.ask-q {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    transition: color .2s;
}
.ask-item:hover .ask-q {
    color: #1296db;
}
.ask-q-text {
    vertical-align: middle;
}
.ask-tag {
    display: inline-block;
    vertical-align: middle;
    padding: 2px 9px;
    margin-right: 8px;
    font-size: 12px;
    border-radius: 4px;
    line-height: 18px;
    font-weight: 400;
}
.tag-done {
    color: #0d9488;
    background: #e6f7f4;
}
.tag-reward {
    color: #e8722a;
    background: #fef3e9;
}
.ask-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
    margin: 7px 0 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ask-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #a5adb6;
}
.ask-go {
    color: #b6bec6;
    transition: color .2s, transform .2s;
}
.ask-item:hover .ask-go {
    color: #1296db;
}

/* ---------- 问题详情：主体 ---------- */
.ask-main {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 26px 32px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.ask-main-head {
    margin-bottom: 14px;
}
.ask-title {
    display: inline;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    vertical-align: middle;
}
.ask-main-head .ask-tag {
    margin-right: 8px;
    vertical-align: middle;
}
.arc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    background: #f7f8fa;
    border-radius: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 22px;
}
.arc-meta em {
    font-style: normal;
    color: #1296db;
    font-weight: 600;
}
.ask-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    text-align: justify;
    word-wrap: break-word;
}
.ask-content p {
    margin: 0 0 16px;
}
.ask-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 16px auto;
}

/* ---------- 回答列表 ---------- */
.ask-answers {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 20px 26px 22px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.sec-title {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding-left: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: #1296db;
}
.answer-item {
    position: relative;
    padding: 16px 18px;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    margin-bottom: 12px;
}
.answer-item.answer-best {
    background: #f0faf8;
    border-color: #b8e6de;
}
.best-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 3px 12px;
    font-size: 12px;
    color: #fff;
    background: #0d9488;
    border-radius: 0 8px 0 8px;
}
.answer-content {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
    word-wrap: break-word;
}
.answer-content img {
    max-width: 100%;
    height: auto;
}
.answer-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e6eaee;
    font-size: 12px;
    color: #a5adb6;
}
.af-user {
    color: #1296db;
    font-weight: 600;
}
.caina {
    margin-left: auto;
    padding: 4px 14px;
    font-size: 12px;
    color: #fff;
    background: #1296db;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
}
.caina:hover {
    background: #0d7fbb;
}
.ask-empty {
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: #a5adb6;
}

/* ---------- 回答表单 ---------- */
.ask-formbox {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 20px 26px 24px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.ask-formbox .layui-form {
    margin: 0;
}
.ask-submit {
    display: inline-block;
    margin-top: 14px;
    padding: 0 34px;
    height: 42px;
    line-height: 42px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1296db, #0d7fbb);
    border: none;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(18, 150, 219, .28);
    transition: transform .2s, box-shadow .2s;
}
.ask-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(18, 150, 219, .36);
}

/* ---------- 右侧栏 ---------- */
.lside {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.lside-title {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 14px 16px 12px 28px;
    border-bottom: 1px solid #f0f0f0;
}
.lside-title::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #1296db;
}
.lside-list {
    padding: 6px 6px 10px;
}
.lside-list li {
    overflow: hidden;
    margin: 1px 0;
}
.lside-list li a {
    display: block;
    padding: 0 12px;
    font-size: 14px;
    color: #444;
    line-height: 38px;
    border-radius: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.lside-list li a:hover {
    background: #f2f9fe;
    color: #1296db;
}
.ask-side-box {
    padding: 16px 16px 18px;
    text-align: center;
}
.ask-side-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 14px;
}
.ask-side-btn {
    display: block;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1296db, #0d7fbb);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(18, 150, 219, .28);
    transition: transform .2s, box-shadow .2s;
}
.ask-side-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 150, 219, .36);
}

/* ---------- 分页 ---------- */
.list-page {
    padding: 20px 18px 0;
    text-align: center;
}
.list-page.layui-laypage {
    display: inline-block;
    margin: 0;
}
.list-page.layui-laypage a,
.list-page.layui-laypage span {
    border-radius: 6px;
    margin: 0 3px;
    border: 1px solid #e6eaee;
    color: #666;
    transition: all .2s;
}
.list-page.layui-laypage a:hover {
    color: #1296db;
    border-color: #1296db;
}
.list-page.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #1296db;
    border-radius: 6px;
}
.list-page.layui-laypage .layui-laypage-curr em {
    color: #fff;
}

/* ---------- 友情链接 ---------- */
.flink {
    padding: 16px 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 10px;
}
.flink h3 {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding-left: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
    border-bottom: none;
}
.flink h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #1296db;
}
.flink .links {
    display: block;
    padding: 0;
}
.flink .links a {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 8px 6px 0;
    font-size: 13px;
    color: #777;
    background: #f7f8fa;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.flink .links a:hover {
    background: #f2f9fe;
    color: #1296db;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1200px) {
    .container { width: 100%; padding: 0 10px; box-sizing: border-box; }
    .main-left  { width: calc(100% - 320px); }
    .main-right { width: 300px; margin-left: 20px; }
}
@media screen and (max-width: 900px) {
    .main-left,
    .main-right {
        width: 100%;
        float: none;
        margin-left: 0;
    }
    .main-right { margin-top: 14px; }
    .ask-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }
    .ask-askbtn { width: 100%; text-align: center; }
    .ask-item { flex-direction: column; padding: 14px 12px; }
    .ask-pic { width: 100%; height: 120px; margin: 0 0 10px; }
    .ask-q { font-size: 15px; }
    .ask-main { padding: 20px 18px 18px; }
    .ask-title { font-size: 19px; }
    .ask-answers,
    .ask-formbox { padding: 16px 14px 18px; }
    .arc-meta { gap: 10px 14px; font-size: 12px; padding: 10px 12px; }
}
