/* ============================================================
   问答社区 · 前台样式
   ============================================================ */

/* ============================================================
   后台 Tab（问答管理页内）
   ============================================================ */
.qa-admin-tabs { /* 内联样式已处理 */ }
.qa-admin-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all .15s;
}
.qa-admin-tab:hover {
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}
.qa-admin-tab.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

/* ============================================================
   Hero
   ============================================================ */
.qa-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px 28px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.qa-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(99,102,241,.16), transparent 70%);
    filter: blur(16px);
    pointer-events: none;
}
.qa-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    min-width: 0;
}
.qa-hero-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
    flex-shrink: 0;
}
.qa-hero-icon svg { width: 26px; height: 26px; }
.qa-hero-info h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.qa-hero-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.qa-hero-info p b {
    color: #2563eb;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.qa-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
}
.qa-btn-ask {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
    line-height: 1;
    white-space: nowrap;
}
.qa-btn-ask:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .38);
    color: #fff;
    text-decoration: none;
}
.qa-btn-ask svg { width: 15px; height: 15px; }

/* ============================================================
   分类 Tab
   ============================================================ */
.qa-cat-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    margin-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.qa-cat-tabs::-webkit-scrollbar { height: 6px; }
.qa-cat-tabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.qa-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .15s;
    line-height: 1.3;
}
.qa-cat-tab:hover {
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}
.qa-cat-tab.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.qa-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255, 255, 255, .25);
    color: inherit;
    font-size: 11px;
    border-radius: 9px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.qa-cat-tab:not(.active) .qa-cat-count {
    background: #f1f5f9;
    color: #94a3b8;
}

/* ============================================================
   排序 Tab
   ============================================================ */
.qa-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.qa-tab {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all .15s;
    white-space: nowrap;
    line-height: 1.2;
}
.qa-tab:hover {
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}
.qa-tab.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}

/* ============================================================
   问题列表
   ============================================================ */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qa-item {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: all .25s cubic-bezier(.2, .8, .2, 1);
    overflow: hidden;
}
.qa-item::before {
    content: '';
    position: absolute;
    left: 0; top: 18px; bottom: 18px;
    width: 3px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(.3);
    transition: all .25s;
}
.qa-item:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    background: #fbfdff;
    box-shadow: 0 10px 28px rgba(37, 99, 235, .08);
}
.qa-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.qa-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 60px;
    flex-shrink: 0;
}
.qa-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    line-height: 1.2;
    transition: all .2s;
}
.qa-stat-box.highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.qa-stat-box.highlight .qa-stat-num { color: #2563eb; }
.qa-stat-num {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.qa-stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.qa-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.qa-item-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.qa-item-title a {
    font-size: 15.5px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.5;
    transition: color .15s;
    word-break: break-word;
}
.qa-item-title a:hover { color: #2563eb; text-decoration: none; }

.qa-badge-solved {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    background: #ecfdf5;
    color: #059669;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1.7;
    flex-shrink: 0;
    margin-top: 2px;
}
.qa-badge-solved svg { width: 11px; height: 11px; }

.qa-item-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.qa-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
    line-height: 1.6;
}
.qa-tag:hover {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
}
.qa-cat-badge {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all .15s;
    line-height: 1.6;
}
.qa-cat-badge:hover {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #5b21b6;
    text-decoration: none;
}

.qa-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12.5px;
    color: #94a3b8;
    flex-shrink: 0;
    min-width: 120px;
    text-align: right;
}
.qa-author {
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.qa-author::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    flex-shrink: 0;
}

.qa-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 14px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================================
   面包屑
   ============================================================ */
.qa-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.qa-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .15s;
}
.qa-breadcrumb a:hover { color: #2563eb; }
.qa-breadcrumb span { color: #cbd5e1; }

/* ============================================================
   问题详情
   ============================================================ */
.qa-question-card {
    display: flex;
    gap: 20px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    margin-bottom: 20px;
}
.qa-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
}
.qa-vote-btn {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all .2s;
    padding: 0;
    font-family: inherit;
}
.qa-vote-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-1px);
}
.qa-vote-btn.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.qa-vote-btn svg { width: 18px; height: 18px; }
.qa-vote-count {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.02em;
}

.qa-question-main {
    flex: 1;
    min-width: 0;
}
.qa-q-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -.01em;
    word-break: break-word;
}
.qa-q-body {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
    margin-bottom: 18px;
}
.qa-q-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.qa-q-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
    align-items: center;
}
.qa-q-meta b { color: #475569; font-weight: 600; }

.qa-q-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #f1f5f9;
    flex-wrap: wrap;
}
.qa-btn-edit,
.qa-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #475569;
}
.qa-btn-edit:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
}
.qa-btn-delete:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

/* ============================================================
   回答列表
   ============================================================ */
.qa-answers-section { margin-bottom: 24px; }
.qa-answers-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -.01em;
}
.qa-answers-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 2px;
}
.qa-answers-count {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 2px;
}

.qa-answer-item {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    margin-bottom: 12px;
    position: relative;
    transition: all .2s;
}
.qa-answer-item:hover {
    border-color: #dbeafe;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
.qa-answer-item.accepted {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%);
}
.qa-answer-item.accepted::before {
    content: '';
    position: absolute;
    left: 0; top: 20px; bottom: 20px;
    width: 3px;
    background: #059669;
    border-radius: 0 3px 3px 0;
}
.qa-answer-content { flex: 1; min-width: 0; }
.qa-accepted-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, .3);
    line-height: 1.6;
}
.qa-accepted-badge svg { width: 12px; height: 12px; }

.qa-a-body {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 14px;
    word-break: break-word;
}
.qa-a-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #94a3b8;
    padding-top: 12px;
    border-top: 1px dashed #f1f5f9;
    flex-wrap: wrap;
}
.qa-a-footer b { color: #64748b; font-weight: 600; }

.qa-btn-accept {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(5, 150, 105, .25);
    line-height: 1;
}
.qa-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, .35);
}

/* ============================================================
   回答框
   ============================================================ */
.qa-reply-box {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    padding: 24px 26px;
}
.qa-reply-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}
.qa-reply-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 2px;
}
.qa-reply-box textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.7;
    transition: all .15s;
    background: #fff;
}
.qa-reply-box textarea:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.qa-reply-box textarea::placeholder { color: #cbd5e1; }

.qa-reply-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.qa-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
    line-height: 1;
}
.qa-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
}

.qa-login-tip {
    text-align: center;
    padding: 32px 20px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
}
.qa-login-tip a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.qa-login-tip a:hover { text-decoration: underline; }

/* ============================================================
   发布/编辑提问页
   ============================================================ */
.qa-ask-box {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    padding: 30px 32px;
}
.qa-ask-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
    letter-spacing: -.01em;
}
.qa-ask-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 2px;
}
.qa-form-group { margin-bottom: 20px; }
.qa-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.qa-form-group label .required { color: #dc2626; margin-left: 2px; }
.qa-form-group input,
.qa-form-group select,
.qa-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    box-sizing: border-box;
    transition: all .15s;
    background: #fff;
    line-height: 1.6;
}
.qa-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.qa-form-group input:focus,
.qa-form-group select:focus,
.qa-form-group textarea:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.qa-form-group input::placeholder,
.qa-form-group textarea::placeholder { color: #cbd5e1; }
.qa-form-group textarea {
    min-height: 180px;
    resize: vertical;
}
.qa-form-hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: #94a3b8;
}
.qa-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
}
.qa-btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #fff;
    color: #475569;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    line-height: 1;
}
.qa-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    text-decoration: none;
}

/* ============================================================
   分页容器
   ============================================================ */
.qa-page-wrap { margin-top: 4px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .qa-hero { padding: 18px 20px; gap: 14px; }
    .qa-hero-icon { width: 42px; height: 42px; border-radius: 11px; }
    .qa-hero-icon svg { width: 20px; height: 20px; }
    .qa-hero-info h1 { font-size: 18px; }
    .qa-hero-info p { font-size: 12px; }
    .qa-btn-ask { padding: 9px 16px; font-size: 13px; }

    .qa-cat-tab { padding: 6px 12px; font-size: 13px; }
    .qa-tab { padding: 7px 12px; font-size: 13px; }

    .qa-item { padding: 14px 16px; gap: 12px; }
    .qa-stats { width: 48px; }
    .qa-stat-box { padding: 5px 3px; }
    .qa-stat-num { font-size: 13.5px; }
    .qa-stat-label { font-size: 10px; }
    .qa-item-title a { font-size: 14.5px; }
    .qa-item-meta { display: none; }

    .qa-question-card { padding: 18px 20px; gap: 14px; flex-direction: column; }
    .qa-vote-col {
        flex-direction: row;
        justify-content: flex-start;
        padding-top: 0;
    }
    .qa-vote-btn { width: 36px; height: 36px; }
    .qa-vote-count { font-size: 17px; }
    .qa-q-title { font-size: 18px; }
    .qa-q-footer { flex-direction: column; align-items: flex-start; }

    .qa-answer-item { padding: 16px 18px; gap: 14px; flex-direction: column; }
    .qa-answer-item .qa-vote-col {
        flex-direction: row;
        justify-content: flex-start;
        padding-top: 0;
    }

    .qa-reply-box { padding: 18px 20px; }
    .qa-ask-box { padding: 22px 20px; }
    .qa-ask-title { font-size: 16px; }
}

@media (max-width: 480px) {
    .qa-hero-info h1 { font-size: 16px; }
    .qa-hero-info p { font-size: 11.5px; }
    .qa-btn-ask { padding: 8px 14px; font-size: 12.5px; }
    .qa-btn-ask svg { width: 13px; height: 13px; }

    .qa-item-title a { font-size: 14px; }
    .qa-q-title { font-size: 17px; }
    .qa-a-body { font-size: 14px; }
}

/* ============================================================
   列表布局优化 · 新增样式
   - 作者/时间移到标题下方
   - 摘要单行截断
   - 头像色块 fallback
   ============================================================ */

/* 摘要单行 */
.qa-item-excerpt {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* 底部：头像 + 姓名 + 时间 */
.qa-item-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 2px;
    flex-wrap: wrap;
}

/* 作者块 */
.qa-item-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* 头像色块 fallback（无头像时显示首字母） */
.qa-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    font-family: inherit;
    text-transform: uppercase;
}

/* 姓名 */
.qa-author-name {
    color: #64748b;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分隔点 */
.qa-item-dot {
    color: #cbd5e1;
    user-select: none;
}

/* 时间 */
.qa-item-time {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

/* 隐藏旧版右侧 meta 列（保底兼容） */
.qa-item > .qa-item-meta { display: none !important; }

/* 响应式微调 */
@media (max-width: 768px) {
    .qa-item-excerpt { font-size: 12.5px; -webkit-line-clamp: 2; }
    .qa-item-foot { font-size: 12px; }
    .qa-item-author .qa-avatar-fallback { width: 18px; height: 18px; font-size: 10px; }
}

/* ============================================================
   回答操作按钮
   ============================================================ */
.qa-a-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.qa-a-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 12.5px;
    font-family: inherit;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    line-height: 1;
    white-space: nowrap;
}
.qa-a-action:hover {
    background: #eff6ff;
    color: #2563eb;
}
.qa-a-action.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
.qa-a-action svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ============================================================
   编辑回答模态框
   ============================================================ */
.qa-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.qa-modal-mask.show {
    display: flex;
    animation: qaModalFadeIn .2s ease-out;
}
@keyframes qaModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.qa-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 780px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .35);
    overflow: hidden;
    animation: qaModalSlideIn .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes qaModalSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qa-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
}
.qa-modal-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
}
.qa-modal-close {
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all .15s;
}
.qa-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}
.qa-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.qa-modal-body .lite-editor .le-wysiwyg { min-height: 260px; }
.qa-modal-foot {
    padding: 14px 26px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
    flex-shrink: 0;
}
.qa-modal-foot .qa-btn-submit {
    min-width: 110px;
    justify-content: center;
}
.qa-modal-foot .qa-btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式 */
@media (max-width: 640px) {
    .qa-modal-mask { padding: 12px; }
    .qa-modal { max-height: 96vh; border-radius: 12px; }
    .qa-modal-head { padding: 14px 18px; }
    .qa-modal-body { padding: 16px 18px; }
    .qa-modal-body .lite-editor .le-wysiwyg { min-height: 200px; }
    .qa-modal-foot { padding: 12px 18px; }
    .qa-a-action span { display: none; }
    .qa-a-action { padding: 6px 8px; }
}