/* 社区热门界面卡片样式 */
.community-hot-section {
    margin-top: 30px;
    margin-bottom: 50px;
}

.community-hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #4caf50;
}

.community-hot-title {
    display: flex;
    align-items: center;
    color: #4caf50;
    font-size: 24px;
    margin: 0;
}

.community-hot-title i {
    margin-right: 10px;
    color: #4caf50;
}

.view-more-link {
    color: #4caf50;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.view-more-link:hover {
    color: #fff;
    text-shadow: 0 0 5px #4caf50;
}

/* 卡片容器 */
.hot-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 热门卡片样式 */
.hot-post-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: block;
    text-decoration: none;
}

.hot-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
}

.hot-post-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.hot-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.hot-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-post-user-info {
    flex: 1;
}

.hot-post-username {
    color: #fff;
    font-weight: bold;
    margin: 0 0 3px 0;
    font-size: 16px;
}

.hot-post-id {
    color: #aaa;
    font-size: 12px;
}

.hot-post-body {
    padding: 15px;
    min-height: 60px;
}

.hot-post-content {
    color: #ddd;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-post-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(76, 175, 80, 0.1);
}

.hot-post-stats {
    display: flex;
    gap: 15px;
}

.hot-post-stat {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 13px;
}

.hot-post-stat i {
    margin-right: 5px;
    font-size: 14px;
}

.hot-post-likes i {
    color: #ff4757;
}

.hot-post-comments i {
    color: #4caf50;
}

/* 光效边框 */
.hot-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent, transparent, #4caf50);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.hot-post-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #4caf50, transparent, #4caf50, transparent);
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 0%; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hot-posts-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hot-posts-container {
        grid-template-columns: 1fr;
    }
}

/* 鼠标悬停光效 */
.glow-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 添加标题输入和显示样式 */
.title-input-group {
    margin-bottom: 15px;
}

.title-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.title-input-wrapper:focus-within {
    border-color: #4caf50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
    background-color: rgba(0, 0, 0, 0.6);
}

.title-icon {
    position: absolute;
    left: 12px;
    color: #4caf50;
    font-size: 18px;
}

.post-title-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-title-input:focus {
    outline: none;
}

.post-title-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.post-title-display {
    margin: 0;
    color: #4caf50;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 0;
    line-height: 1.4;
}

.post-title-container {
    margin-bottom: 15px;
    border-left: 3px solid #4caf50;
    padding-left: 15px;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: 0 8px 8px 0;
    padding: 5px 15px 5px 15px;
    position: relative;
}

.title-quote {
    font-size: 14px;
    margin-right: 5px;
    color: rgba(76, 175, 80, 0.7);
    vertical-align: top;
} 