/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-size: 24px; font-weight: bold; color: #000; }
.logo a { text-decoration: none; color: inherit; }
.nav { display: flex; gap: 20px; }
.nav a { text-decoration: none; color: #666; font-weight: 500; }
.nav a.active,
.nav a:hover { color: #000; }

/* 主内容 */
.main { padding: 60px 0; min-height: 70vh; }
.hero { text-align: center; padding: 80px 0; }
.hero h2 { font-size: 48px; margin-bottom: 20px; color: #000; }
.hero p { font-size: 18px; color: #666; }

/* 列表样式 */
.news-item, .book-item, .weibo-item { background: #fff; margin: 20px 0; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.news-item h3, .book-item h3 { margin-bottom: 10px; }
.news-item a, .book-item h3 { color: #000; text-decoration: none; }
.news-item a:hover { text-decoration: underline; }
.date, .time { color: #999; font-size: 14px; }

/* 论坛模块样式 */
.forum-sections, .latest-topics {
    margin-top: 40px;
}

.forum-board-list, .topic-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-board {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.forum-board h4 {
    margin-bottom: 8px;
}

.forum-board h4 a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
}

.forum-board h4 a:hover {
    text-decoration: underline;
}

.topic-count {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.topic-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topic-item h4 a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
}

.topic-item h4 a:hover {
    text-decoration: underline;
}

.topic-meta {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.topic-meta span {
    display: flex;
    align-items: center;
}

/* 同城模块样式 */
.local-news, .local-events {
    margin-top: 40px;
}

.local-item, .event-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.local-item h4, .event-item h4 {
    margin-bottom: 10px;
    color: #000;
}

.local-item p, .event-item p {
    color: #666;
    margin-bottom: 10px;
}

.event-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
}

.time {
    color: #999;
    font-size: 14px;
}

/* 家族模块样式 */
.family-list {
    margin-top: 40px;
}

.family-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.family-item h4 {
    margin-bottom: 10px;
    color: #000;
}

.family-desc {
    color: #666;
    margin-bottom: 12px;
    font-size: 14px;
}

.family-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
}

.family-meta span {
    display: flex;
    align-items: center;
}

/* 贴吧模块样式 */
.hot-tieba, .latest-posts {
    margin-top: 40px;
}

.tieba-item, .post-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tieba-item h4, .post-item h4 {
    margin-bottom: 10px;
    color: #000;
}

.tieba-item h4 a, .post-item h4 a {
    text-decoration: none;
    color: #000;
}

.tieba-item h4 a:hover, .post-item h4 a:hover {
    text-decoration: underline;
}

.tieba-desc {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.tieba-meta, .post-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tieba-meta span, .post-meta span {
    display: flex;
    align-items: center;
}

.post-meta span {
    font-size: 13px;
}

/* 家园模块样式 */
.user-homes {
    margin-top: 40px;
}

.home-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.user-avatar {
    font-size: 48px;
    margin-bottom: 10px;
}

.home-item h4 {
    margin-bottom: 8px;
    color: #000;
}

.user-bio {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.user-stats {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.user-stats span {
    display: flex;
    align-items: center;
}

/* 空间模块样式 */
.user-spaces {
    margin-top: 40px;
}

.space-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.space-item .user-avatar {
    font-size: 48px;
    margin-bottom: 10px;
}

.space-item h4 {
    margin-bottom: 8px;
    color: #000;
}

.user-mood {
    font-style: italic;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
}

.user-active {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.space-stats {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.space-stats span {
    display: flex;
    align-items: center;
}


/* 页脚 */
.footer { background: #000; color: #fff; text-align: center; padding: 20px 0; margin-top: 60px; }
