/* 动态模块 */
.feed-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--cm-primary) 0%, #00b5bf 100%);
    color: #fff;
}

.feed-page-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.feed-page-publish {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.feed-main-tabs {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    background: transparent;
    border-bottom: none;
}

.feed-tabs-bar {
    background: #fff;
    border-bottom: 1px solid var(--cm-border);
}

.feed-main-tab {
    font-size: 15px;
    color: var(--cm-text-secondary);
    text-decoration: none;
    padding-bottom: 8px;
    position: relative;
}

.feed-main-tab.active {
    color: var(--cm-primary);
    font-weight: 600;
}

.feed-main-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--cm-primary);
    border-radius: 1px;
}

.feed-location-bar {
    background: #fff;
    border-bottom: 1px solid var(--cm-border);
}

.feed-location-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    background: transparent;
    font-size: 13px;
    color: var(--cm-text-muted);
    border-bottom: none;
}

.feed-location-retry {
    margin-left: 12px;
    border: none;
    background: none;
    color: var(--cm-primary);
    padding: 0;
    cursor: pointer;
}

.feed-category-nav {
    background: #fff;
    border-bottom: 1px solid var(--cm-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.feed-category-scroll {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    white-space: nowrap;
}

.feed-category-item {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--cm-text-secondary);
    background: var(--cm-bg);
    text-decoration: none;
}

.feed-category-item.active {
    background: var(--cm-primary-light);
    color: var(--cm-primary);
    font-weight: 500;
}

.feed-list {
    padding: 12px 0;
}

.feed-item {
    display: flex;
    gap: 12px;
    background: var(--cm-card-bg);
    border-radius: var(--cm-radius);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--cm-shadow);
}

.feed-item-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.feed-item-avatar img,
.feed-item-avatar .rec-img-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.feed-item-body {
    flex: 1;
    min-width: 0;
}

.feed-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.feed-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--cm-primary);
    text-decoration: none;
}

.btn-feed-delete {
    border: none;
    background: none;
    color: var(--cm-text-muted);
    padding: 4px 8px;
}

.feed-item-text {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cm-text);
    text-decoration: none;
    margin-bottom: 8px;
    word-break: break-word;
}

.feed-item-images {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
}

.feed-item-images.grid-1 {
    grid-template-columns: 1fr;
    max-width: 200px;
}

.feed-item-images.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feed-item-images.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.feed-img-wrap {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--cm-bg);
}

.feed-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-item-video video,
.feed-detail-video video {
    width: 100%;
    max-height: 280px;
    border-radius: var(--cm-radius-sm);
    background: #000;
}

.feed-item-meta {
    font-size: 12px;
    color: var(--cm-text-muted);
    margin-bottom: 8px;
}

.feed-loc {
    margin-left: 8px;
    color: var(--cm-primary);
}

.feed-distance {
    margin-left: 8px;
    color: var(--cm-text-muted);
}

.feed-item-actions {
    display: flex;
    gap: 16px;
}

.btn-feed-vote,
.btn-feed-comment {
    border: none;
    background: none;
    color: var(--cm-text-muted);
    font-size: 13px;
    padding: 0;
    text-decoration: none;
}

.btn-feed-vote.active {
    color: var(--cm-primary);
}

.feed-load-more-wrap {
    padding: 8px 0 24px;
}

/* 详情页 */
.feed-detail-page {
    padding: 12px 0 24px;
}

.feed-detail-card {
    background: var(--cm-card-bg);
    border-radius: var(--cm-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--cm-shadow);
}

.feed-detail-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.feed-detail-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.feed-detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-detail-name {
    font-size: 16px;
    font-weight: 600;
}

.feed-detail-time {
    font-size: 12px;
    color: var(--cm-text-muted);
}

.feed-detail-content {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    word-break: break-word;
}

.feed-detail-images {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.feed-detail-images.grid-1 { grid-template-columns: 1fr; }
.feed-detail-images.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feed-detail-images.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feed-detail-tags {
    margin-bottom: 12px;
}

.feed-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--cm-primary);
    margin-right: 8px;
}

.feed-detail-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--cm-border);
    font-size: 14px;
    color: var(--cm-text-muted);
}

.feed-stat-comment .fa {
    margin-right: 4px;
}

/* 评论 */
.feed-comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.feed-comment-form textarea {
    margin-bottom: 0;
    resize: vertical;
    width: 100%;
}

.feed-comment-form .btn {
    align-self: flex-end;
    flex-shrink: 0;
}

.feed-comment-list {
    margin-top: 4px;
}

.feed-comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cm-border);
}

.feed-comment-item:last-child {
    border-bottom: none;
}

.feed-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-comment-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feed-comment-text {
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.feed-comment-time {
    font-size: 12px;
    color: var(--cm-text-muted);
    margin-top: 4px;
}

/* 发布页 */
.feed-post-page {
    padding: 12px 0 24px;
}

.feed-post-textarea {
    border: none;
    box-shadow: none;
    font-size: 16px;
    padding: 0;
    resize: none;
}

.feed-upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-upload-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.feed-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-upload-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    line-height: 18px;
    font-size: 14px;
    padding: 0;
}

.feed-upload-add {
    width: 80px;
    height: 80px;
    border: 1px dashed var(--cm-border);
    border-radius: 8px;
    background: var(--cm-bg);
    color: var(--cm-text-muted);
    font-size: 24px;
}

.privacy-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.privacy-opt {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}
