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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

.logo img {
    height: 50px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 20px;
    cursor: pointer;
}

.login-button a {
    text-decoration: none;
    color: #4a90e2;
    font-weight: bold;
}

/* 内容区域样式 */
.content-area {
    padding: 20px 0;
}

.post-item {
    display: flex;
    padding: 15px 0;
}

.post-icon {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-content {
    flex: 1;
}

.post-title {
    font-size: 1.2rem;
    color: #4a90e2;
    margin-bottom: 5px;
}

.post-description {
    color: #666;
    font-size: 0.95rem;
}

.divider {
    height: 1px;
    background-color: #eaeaea;
    width: 100%;
}

/* 页脚样式 */
.site-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eaeaea;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
    }
    
    .post-icon {
        margin-bottom: 10px;
    }
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: inline-block;
}

.username {
    font-weight: bold;
    color: #4a90e2;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.username:hover {
    background-color: #f0f7ff;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.user-menu:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    /* 其他样式保持不变 */
}

.dropdown-content.show {
    display: block;
}

/* 移除悬停效果 */
.user-menu:hover .dropdown-content {
    display: none;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* 面向未来的标准属性 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4em;
    max-height: 4.2em; /* 降级方案 */
    word-break: break-word;
  }