/* static/css/index.css */

.question-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-ul li {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0; /* 极细的边框 */
    border-radius: 4px;
    /* 动效：仅在悬停时轻微上浮 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* 让头像和内容左右布局 */
}

/* 鼠标悬停时的效果：轻微上浮，阴影加深 */
.question-ul li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #e0ded5;
}

/* 左侧头像区域 */
.side-question {
    width: 60px;
    margin-right: 20px;
    text-align: center;
}

.side-question-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 圆形头像 */
    border: 2px solid #f0f0f0; /* 给头像加个淡色边框 */
}

/* 右侧内容主体 */
.question-main {
    flex: 1; /* 占满剩余空间 */
    display: flex;
    flex-direction: column;
}

/* 标题样式 */
.question-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.question-title a {
    color: #2c2c2c;
}

.question-title a:hover {
    color: #b85c5c; /* 悬停变红 */
}

/* 内容摘要样式 */
.question-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
    /* 限制显示行数，超出省略（可选） */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 底部元数据（作者、时间） */
.question-detail {
    font-size: 12px;
    color: #999;
    border-top: 1px dashed #eee; /* 虚线分割，更像信纸 */
    padding-top: 10px;
    margin-top: auto;
    display: flex;
    justify_content: space-between;
}

.question-author {
    color: #4d8076; /* 作者名用竹青色 */
    margin-right: 15px;
}

.question-time {
    color: #aaa;
}

/* --- 侧边栏样式开始 --- */

.main-container {
    margin-top: 20px;
}

/* 侧边栏卡片通用样式 */
.sidebar-card {
    background-color: #ffffff;
    border: 1px solid #efeadd; /* 延续淡雅边框 */
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 卡片标题栏 */
.card-header-custom {
    padding: 15px 20px;
    background-color: #faf9f6; /* 极淡的米色底 */
    border-bottom: 1px solid #efeadd;
    font-family: "KaiTi", "楷体", serif;
    font-weight: bold;
    color: #4d8076; /* 竹青色 */
    font-size: 16px;
}

/* 卡片内容区 */
.card-body-custom {
    padding: 20px;
}

/* 1. 用户卡片特有样式 */
.user-avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    margin-bottom: 10px;
}

.user-signature {
    color: #999;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 15px;
}

.stat-num {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* 2. 侧边栏列表样式 */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-link {
    color: #555;
    font-size: 14px;
    display: block; /* 让链接占满一行 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 文字过长显示省略号 */
}

.sidebar-link:hover {
    color: #b85c5c; /* 悬停变丹砂红 */
}

/* 小圆点装饰 */
.badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ccc;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.sidebar-link:hover .badge-dot {
    background-color: #b85c5c;
}