@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
.comment-card { | |
max-width: 700px; | |
margin: 20px auto; | |
border-radius: 8px; | |
box-shadow: 0 4px 12px rgb(0 0 0 / 0.1); | |
background: #fff; | |
padding: 16px; | |
} | |
.comment-textarea { | |
border-radius: 6px; | |
resize: none; | |
font-size: 16px; | |
} | |
.text-right { | |
text-align: right; | |
} | |
.mt-2 { | |
margin-top: 0.5rem; | |
} | |
.mt-6 { | |
margin-top: 1.5rem; | |
} | |
.comment-time { | |
font-size: 12px; | |
color: #888; | |
margin-left: 8px; | |
white-space: nowrap; | |
} | |
.comment-username { | |
font-weight: 600; | |
color: #1890ff; | |
user-select: none; | |
} | |
.comment-content { | |
font-size: 14px; | |
line-height: 1.5; | |
color: #333; | |
white-space: pre-wrap; | |
} | |
/* 头像带蓝色边框 */ | |
.avatar-with-border { | |
border: 2px solid #1890ff !important; | |
border-radius: 50% !important; | |
} | |
body { | |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
background-color: #fffaf5; | |
} | |
/* 全局动画效果 */ | |
.transition { | |
transition: all 0.3s ease; | |
} | |
/* 卡片阴影效果 */ | |
.shadow-lg { | |
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); | |
} | |
.shadow-md { | |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); | |
} | |
/* 圆角 */ | |
.rounded-xl { | |
border-radius: 1rem; | |
} | |
.rounded-lg { | |
border-radius: 0.75rem; | |
} | |
/* 渐变背景 */ | |
.bg-gradient-to-r { | |
background-size: 200% auto; | |
transition: background-position 0.5s ease; | |
} | |
.bg-gradient-to-r:hover { | |
background-position: right center; | |
} | |
/* 表单输入框动画 */ | |
input:focus, | |
textarea:focus { | |
transform: translateY(-1px); | |
} | |
/* 卡片悬停效果 */ | |
.bg-white:hover { | |
transform: translateY(-3px); | |
} | |
/* 响应式调整 */ | |
@media (max-width: 768px) { | |
.text-xl { | |
font-size: 1.25rem; | |
} | |
.text-2xl { | |
font-size: 1.5rem; | |
} | |
.p-6 { | |
padding: 1.25rem; | |
} | |
.p-12 { | |
padding: 2rem; | |
} | |
.grid-cols-2 { | |
grid-template-columns: 1fr; | |
} | |
} |