/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 背景色 */
.bg-white {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

/* 文本对齐 */
.text-center { text-align: center }
.text-left { text-align: left }
.text-right { text-align: right }
.text-justify { text-align: justify }

/* 边距 - 更紧凑和实用的间距 */
.mg { margin: 0 }
.mg-10 { margin: 10px }
.mg-15 { margin: 15px }

.ml-5 { margin-left: 5px }
.ml-10 { margin-left: 10px }
.ml-15 { margin-left: 15px }

.mr-5 { margin-right: 5px }
.mr-10 { margin-right: 10px }
.mr-15 { margin-right: 15px }

.mt-5 { margin-top: 5px }
.mt-10 { margin-top: 10px }
.mt-15 { margin-top: 15px }

.mb-5 { margin-bottom: 5px }
.mb-10 { margin-bottom: 10px }
.mb-15 { margin-bottom: 15px }

/* 内边距 - 更合理的间距 */
.pd-5 { padding: 5px }
.pd-10 { padding: 10px }
.pd-15 { padding: 15px }

.pd-t-5 { padding-top: 5px }
.pd-t-10 { padding-top: 10px }
.pd-t-15 { padding-top: 15px }

.pd-b-0 { padding-bottom: 0 }
.pd-b-5 { padding-bottom: 5px }
.pd-b-10 { padding-bottom: 10px }

/* Flex布局 */
.flex { display: flex }
.flex-wrap { flex-wrap: wrap }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.items-center { align-items: center }
.justify-center { justify-content: center }
.justify-between { justify-content: space-between }

/* 间隔 */
.gap-5 { gap: 5px }
.gap-8 { gap: 8px }
.gap-10 { gap: 10px }

/* 通知提示 */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    z-index: 1000;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
}

.notification.show { display: block }
.notification.block { 
    color: #333;
    font-weight: 500;
}

.notification.success { background-color: rgba(40,167,69,0.9) }
.notification.error { background-color: rgba(220,53,69,0.9) }
.notification.info { background-color: rgba(23,162,184,0.9) }
.notification.warning { background-color: rgba(255,193,7,0.9) }

/* 模态框 */
.modal-container {
    z-index: 999;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-container .modal-content {
    width: 90%;
    max-width: 400px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 响应式处理 */
@media screen and (max-width: 768px) {
    .mg-15, .mg-20 { margin: 10px }
    .pd-15, .pd-20 { padding: 10px }
    
    .modal-container .modal-content {
        width: 95%;
        padding: 12px;
    }
}

.my-btn{outline:none;color:#333;border:none;font-size:12px;cursor:pointer;padding:5px 10px;margin-right:5px;border-radius:var(--radius-3);border:1px solid var(--border-color);background:#fff}.yanjiuhome_v2 .my-btn{padding:.5rem 1rem;margin-right:.5rem;font-size:14px;border:.1rem solid var(--border-color)}.my-btn.disabled{cursor:not-allowed;background-color:#ccc;border-color:#ccc}.my-btn:last-child{margin-right:0}.my-btn.active,.my-btn:hover{color:#fff;background-color:var(--button-color)}.comment-form{text-align:right;margin-top:10px}.comment-form .comment-input{width:100%;padding:10px;margin:10px 0;resize:vertical;box-sizing:border-box;border-radius:var(--radius-3);border:1px solid var(--border-color)}.comment-form .comment-input:focus,.comment-form .comment-input:hover{outline:none;border-color:var(--border-hover-color)}.comment-section{padding:15px;}.comment-section .comment{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #CCC}.comment-section .reply{margin-top:10px;padding-left:20px;border-left:3px solid var(--border-color)}.comment-section .buttons{text-align:right}.comment-section .buttons button:nth-child(2){margin-right:0}.text-orange{color:#ffb800}@media screen and (max-width:768px){.my-btn{padding:3px 8px}.layui-form-pane .layui-form-label,.layui-form-select dl dd{font-size:14px}.comment-section{font-size:16px}.comment-section .comment p{font-size:14px}}

/* 问答列表项 */
.qa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
}

.qa-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.qa-item:last-child {
    border-bottom: none;
}

/* 左侧内容区 */
.qa-content {
    flex: 1;
    min-width: 0; /* 防止文本溢出 */
}

.qa-title {
    font-size: 15px;
    font-weight: 400;
    color: #0f1419;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-status {
    font-size: 13px;
    color: #536471;
}

/* 右侧时间和按钮区 */
.qa-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.qa-time {
    font-size: 13px;
    color: #536471;
    white-space: nowrap;
}

.qa-button {
    padding: 6px 16px;
    font-size: 13px;
    color: #0f1419;
    background-color: #eff3f4;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qa-button:hover {
    background-color: #e1e8ea;
}

/* 标题样式 */
.section-title {
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 700;
    color: #0f1419;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* 响应式处理 */
@media screen and (max-width: 768px) {
    .bg-white {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .qa-item {
        padding: 10px 12px;
    }
    
    .qa-title {
        font-size: 14px;
    }
    
    .qa-status,
    .qa-time {
        font-size: 12px;
    }
    
    .qa-button {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .section-title {
        padding: 10px 12px;
        font-size: 18px;
    }
}

/* 通用边距类 */
.mb-10 { margin-bottom: 10px }
.mb-15 { margin-bottom: 15px }
.mb-20 { margin-bottom: 20px }

.mt-10 { margin-top: 10px }
.mt-15 { margin-top: 15px }
.mt-20 { margin-top: 20px }

.pd-10 { padding: 10px }
.pd-15 { padding: 15px }
.pd-20 { padding: 20px }

/* 评论区容器 */
.comment-section {
    margin: 20px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

/* 评论项 */
.comment-section .comment {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
}

.comment-section .comment:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.comment-section .comment:last-child {
    border-bottom: none;
}

/* 评论头部信息 */
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 15px;
    font-weight: 500;
    color: #0f1419;
}

.comment-time {
    font-size: 13px;
    color: #536471;
}

/* 评论内容 */
.comment-section .comment p {
    font-size: 15px;
    line-height: 1.5;
    color: #0f1419;
    margin: 4px 0;
}

/* 回复样式 */
.comment-section .reply {
    margin: 8px 0 0 32px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border-left: none;
}

/* 评论操作按钮 */
.comment-section .buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.comment-section .buttons button {
    padding: 6px 12px;
    font-size: 13px;
    color: #536471;
    background: none;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-section .buttons button:hover {
    color: var(--theme-color);
    background-color: rgba(var(--theme-color-rgb), 0.1);
}

/* 评论表单 */
.comment-form {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.comment-form .comment-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #0f1419;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-form .comment-input:focus {
    outline: none;
    border-color: var(--theme-color);
}

.comment-form .buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    gap: 8px;
}

.comment-form .submit-btn {
    padding: 8px 20px;
    font-size: 14px;
    color: #fff;
    background-color: var(--theme-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment-form .submit-btn:hover {
    opacity: 0.9;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .comment-section {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .comment-section .comment {
        padding: 10px 12px;
    }
    
    .comment-author {
        font-size: 14px;
    }
    
    .comment-time {
        font-size: 12px;
    }
    
    .comment-section .comment p {
        font-size: 14px;
    }
    
    .comment-section .reply {
        margin-left: 16px;
        padding: 10px;
    }
    
    .comment-form {
        padding: 12px;
    }
    
    .comment-form .comment-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .comment-form .submit-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}