blob: d1968d441997898998a0653294944a7c991c289b [file] [log] [blame]
.group-detail {
padding: 2rem;
background: #fdf7f2;
font-family: 'Segoe UI', sans-serif;
color: #5e4638;
}
.group-title {
font-size: 2rem;
margin-bottom: 1.5rem;
border-bottom: 2px solid #eacfc0;
padding-bottom: 0.5rem;
}
.group-section {
margin-top: 5%;
}
.member-list {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.member-card {
background: #fff2ef;
border: 1px solid #f3d9d4;
border-radius: 10px;
padding: 1rem;
width: 120px;
text-align: center;
box-shadow: 2px 2px 5px #f0cfc9;
}
.member-card img {
width: 60px;
height: 60px;
border-radius: 50%;
margin-bottom: 0.5rem;
}
.post-list {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: -2%;
margin-left: -1%;
}
.post-card {
background: #fffaf9;
border-left: 5px solid #d8a79e;
padding: 1rem;
border-radius: 8px;
box-shadow: 1px 1px 6px #e3ccc6;
}
.post-card h3 {
color: #b56b5c;
margin-bottom: 0.5rem;
}
.post-card span {
display: block;
font-size: 0.85rem;
color: #8c6f63;
margin-top: 0.25rem;
}
.like-count {
font-size: 5rem;
vertical-align: middle;
display: flex;
align-items: center;
}
.group-section h2 {
color: #555;
margin-top: 0;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.post-card {
border: 1px solid #eee;
border-radius: 6px;
padding: 15px;
transition: box-shadow 0.3s;
}
.post-card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
/* .post-header {
margin-bottom: 10px;
} */
.post-title {
margin: 0 0 8px 0;
color: #333;
font-size: 1.1rem;
}
.author-avatar {
width: 70px;
height: 70px;
border-radius: 50%;
margin-right: 15px;
vertical-align: middle;
}
.comment-button:hover {
color: #40a9ff;
}
.comments-section {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #eee;
}
.comments-title {
font-size: 1rem;
color: #666;
margin-bottom: 10px;
}
.comment-item {
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #f5f5f5;
}
.comment-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 5px;
}
.comment-avatar {
width: 35px;
height: 35px;
border-radius: 50%;
}
.comment-author {
font-weight: bold;
color: #333;
}
.comment-time {
font-size: 0.8rem;
color: #999;
}
.comment-content {
color: #555;
margin-left: 45px;
}
.empty-message {
color: #999;
text-align: center;
padding: 20px 0;
}
/* GroupDetail.css */
.member-link {
text-decoration: none; /* 移除下划线 */
color: inherit; /* 继承父元素颜色 */
display: block; /* 使链接覆盖整个卡片 */
}
.member-card {
transition: transform 0.2s, box-shadow 0.2s;
cursor: pointer; /* 显示手型光标 */
}
.member-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 16px rgba(0,0,0,0.08);
border-color: #eacfc0; /* 悬停时边框颜色变化 */
}
.member-name {
margin-top: 8px;
white-space: nowrap; /* 防止名称换行 */
overflow: hidden;
text-overflow: ellipsis; /* 超出部分显示省略号 */
}
/* GroupDetail.css */
.post-actions-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin: 20px 0;
padding: 10px;
background-color: #fff8f5;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.create-post-btn {
background-color: #b56b5c;
color: white;
border: none;
border-radius: 4px;
padding: 10px 16px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s;
display: flex;
align-items: center;
}
.create-post-btn:hover {
background-color: #9c5a4c;
transform: translateY(-1px);
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.create-post-btn:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.login-hint {
color: #999;
font-style: italic;
margin: 0;
}
/* GroupDetail.css */
.post-list-header {
margin-bottom:2%;
}
.create-post-btn {
background-color: #b56b5c;
color: white;
border: none;
border-radius: 4px;
padding: 10px 16px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s;
display: flex;
align-items: center;
}
.create-post-btn:hover {
background-color: #9c5a4c;
transform: translateY(-1px);
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.create-post-btn:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.login-hint {
color: #999;
font-style: italic;
margin: 0;
padding: 8px 0;
}
/* 米棕色背景 + 深粉色按钮 */
.create-post-btn {
background-color: #d36c6c;
color: #fff;
border: none;
padding: 8px 16px;
font-size: 16px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s;
}
.create-post-btn:hover {
background-color: #b45555;
}
/* 对话框背景遮罩 */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(100, 80, 60, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
/* 对话框内容区 */
.modal-content {
background-color: #f5f0e6;
padding: 24px;
border-radius: 12px;
width: 90%;
max-width: 600px;
position: relative;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
animation: fadeIn 0.3s ease-out;
}
/* 关闭按钮 */
.modal-close {
position: absolute;
top: 10px;
right: 16px;
font-size: 24px;
background: none;
border: none;
color: #d36c6c;
cursor: pointer;
}
/* 动画效果 */
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}