* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    padding-bottom: 60px; /* 给底部导航留空间 */
    min-height: 100vh;
}

/* 顶部搜索栏 */
.search-bar {
    padding: 12px 15px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    border-radius: 20px;
    padding: 8px 15px;
}

.city-selector {
    display: flex;
    align-items: center;
    padding-right: 10px;
    border-right: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

.city-selector i {
    font-size: 12px;
    margin-left: 4px;
}

.search-input {
    flex: 1;
    padding: 0 10px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.search-input::placeholder {
    color: #999;
}

/* 精选照片轮播 */
.photo-carousel {
    padding: 15px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.photo-carousel::-webkit-scrollbar {
    display: none;
}

.photo-item {
    display: inline-block;
    width: 70vw;
    height: 150px;
    border-radius: 12px;
    margin-right: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-author {
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 金刚区 */
.icon-group {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: #fff;
    margin-bottom: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f9eb;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    color: #67c23a;
}

.icon-text {
    font-size: 12px;
    color: #666;
}

/* 公告区域 */
.announcement {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 0;
}

.announcement-icon {
    color: #f56c6c;
    margin-right: 8px;
}

.announcement-text {
    font-size: 14px;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 推荐标签 */
.tag-group {
    padding: 10px 15px;
    background-color: #fff;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tag-group::-webkit-scrollbar {
    display: none;
}

.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f5f5;
    border-radius: 15px;
    margin-right: 8px;
    font-size: 12px;
    color: #666;
}

/* 帖子列表 */
.post-list {
    padding: 0 15px;
}

.post-item {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #eee;
    background-size: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: #999;
}

.follow-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    border: 1px solid #67c23a;
    color: #67c23a;
    background-color: transparent;
}

.follow-btn.followed {
    color: #999;
    border-color: #ddd;
}

.post-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-footer {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #f5f5f5;
}

.action-btn {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 12px;
}

.action-btn i {
    margin-right: 4px;
    font-size: 16px;
}