.feed-page .feed-title {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 0;
    background: #fff;
}

.feed-page .tabs-header {
    display: flex;
    padding: 15px;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #fff;
    font-size: 15px;
    font-weight: bold;
}

.feed-page .tabs-header button {
    min-width: 44px;
    min-height: 30px;
    color: var(--text-main);
}

.feed-page .tabs-header button.active {
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.feed-page .post-card {
    margin-bottom: 10px;
    padding: 15px;
    background: #fff;
}

.feed-page .post-header {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    justify-content: space-between;
}

.feed-page .post-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feed-page .post-user .avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    margin: 0;
}

.feed-page .post-user strong {
    font-size: 14px;
}

.feed-page .level-tag {
    margin: 0;
    background: orange;
    color: #fff;
}

.feed-page .post-time {
    color: var(--text-sub);
    font-size: 12px;
}

.feed-page .post-content {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.feed-page .post-detail-link {
    display: block;
    color: inherit;
}

.feed-page .post-images {
    display: flex;
    gap: 10px;
}

.feed-page .post-img {
    width: 100px;
    max-width: calc((100vw - 50px) / 3);
    height: 100px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #ddd;
    object-fit: cover;
}

.feed-page .post-actions {
    display: flex;
    margin-top: 15px;
    gap: 30px;
}

.feed-page .post-actions button {
    min-height: 32px;
    color: var(--text-sub);
    font-size: 13px;
}

.feed-page .post-actions i {
    margin-right: 5px;
    font-size: 15px;
}

.feed-page .post-actions button.active {
    color: var(--primary-color);
}

.feed-page .fab {
    position: fixed;
    right: max(20px, calc((100vw - 750px) / 2 + 20px));
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 10;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 71, 114, 0.4);
    color: #fff;
    font-size: 20px;
}

.feed-create-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px 12px calc(76px + env(safe-area-inset-bottom));
    background: var(--bg-color);
}

.feed-create-page .feed-compose,
.feed-create-page .feed-image-section {
    border-radius: 8px;
    background: #fff;
}

.feed-create-page .feed-compose {
    padding: 14px;
}

.feed-create-page .feed-compose textarea {
    display: block;
    width: 100%;
    min-height: 176px;
    padding: 0;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.7;
}

.feed-create-page .feed-compose textarea::placeholder {
    color: #aaa;
}

.feed-create-page .feed-compose-meta {
    display: flex;
    min-height: 24px;
    margin-top: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-sub);
    font-size: 11px;
}

.feed-create-page .feed-compose-meta > span:first-child {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #c87900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-create-page .feed-compose-meta b,
.feed-create-page .feed-image-heading b {
    font-weight: normal;
}

.feed-create-page .feed-image-section {
    margin-top: 10px;
    padding: 14px;
}

.feed-create-page .feed-image-heading {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
}

.feed-create-page .feed-image-heading strong {
    color: var(--text-main);
    font-size: 13px;
}

.feed-create-page .feed-image-heading span {
    color: var(--text-sub);
    font-size: 11px;
}

.feed-create-page .feed-image-grid {
    display: grid;
    margin-top: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.feed-create-page .feed-image-picker,
.feed-create-page .feed-image-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f3f5;
}

.feed-create-page .feed-image-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #c8c8c8;
    color: #999;
    cursor: pointer;
    font-size: 22px;
}

.feed-create-page .feed-image-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.feed-create-page .feed-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-create-page .feed-image-preview::after {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    content: "上传中";
    font-size: 11px;
}

.feed-create-page .feed-image-preview.uploading::after {
    display: flex;
}

.feed-create-page .feed-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 11px;
}

.feed-create-page .feed-create-footer {
    position: fixed;
    right: max(0px, calc((100vw - 750px) / 2));
    bottom: 0;
    left: max(0px, calc((100vw - 750px) / 2));
    z-index: 20;
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.feed-create-page .feed-publish-button {
    width: 100%;
    min-height: 40px;
    border-radius: 20px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.feed-create-page .feed-publish-button:disabled {
    background: #d8d8d8;
    color: #fff;
}

.feed-create-page .feed-publish-result {
    padding: 92px 24px 30px;
    color: var(--text-sub);
    text-align: center;
}

.feed-create-page .feed-publish-result > span {
    display: inline-flex;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecf8f1;
    color: #2f9e66;
    font-size: 24px;
}

.feed-create-page .feed-publish-result strong {
    display: block;
    color: var(--text-main);
    font-size: 16px;
}

.feed-create-page .feed-publish-result p {
    margin-top: 8px;
    font-size: 12px;
}

.feed-create-page .feed-publish-result a {
    display: inline-flex;
    min-width: 118px;
    min-height: 38px;
    margin-top: 24px;
    padding: 7px 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 13px;
}
