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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    background-color: #3344AA;
    color: white;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 70px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.container {
    padding: 0 10px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    position: sticky;
    top: 50px;
    z-index: 101;
}

.search-input {
    flex: 1;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.clear-btn {
    margin-left: 10px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

/* 分类标签 */
.tabs {
    display: flex;
    background: #fff;
    padding: 10px 0;
    overflow-x: auto;
}

.tab-item {
    flex: 1;
    min-width: 60px;
    text-align: center;
    font-size: 14px;
    padding: 5px 0;
    color: #666;
    cursor: pointer;
}

.tab-item.active {
    color: #3344AA;
    font-weight: bold;
    border-bottom: 2px solid #3344AA;
}

/* 公告 */
.announcement {
    display: flex;
    align-items: center;
    background: #FFF3CD;
    padding: 10px;
    margin: 10px;
    border-radius: 6px;
}

.announcement-text {
    flex: 1;
    font-size: 13px;
    color: #856404;
}

/* 排序栏 */
.sort-bar {
    display: flex;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.sort-item {
    padding: 5px 15px;
    font-size: 13px;
    color: #666;
    border-radius: 15px;
    margin-right: 10px;
    cursor: pointer;
}

.sort-item.active {
    background: #3344AA;
    color: #fff;
}

/* 帖子列表 - 网格布局 */
.grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
}

.grid-item {
    position: relative;
}

.grid-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.grid-info {
    padding: 10px;
}

.grid-title {
    font-size: 14px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-stats {
    display: flex;
    font-size: 12px;
    color: #999;
}

.grid-stats span {
    margin-right: 10px;
}

.footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 3px;
    vertical-align: middle;
}

.grid-menu-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 3px 6px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

/* 帖子列表 - 标准布局 */
.post-list {
    padding: 0 10px;
}

.post-item {
    padding: 15px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background: #e0e0e0;
    object-fit: cover;
}

.post-avatar.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-text {
    font-size: 16px;
    color: #999;
}

.post-author {
    flex: 1;
}

.author-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}

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

.top-tag {
    background: #3344AA;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.menu-btn {
    padding: 5px;
    font-size: 20px;
    color: #999;
    margin-left: 5px;
    cursor: pointer;
}

.forward-label {
    background: #fff5f5;
    color: #3344AA;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.post-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.post-images {
    display: flex;
    margin-top: 10px;
    gap: 5px;
}

.post-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
}

.more-images {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.post-footer {
    display: flex;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.footer-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-right: 20px;
    cursor: pointer;
}

.footer-item span {
    margin-right: 3px;
}

/* 加载和空状态 */
.loading, .no-more, .empty-text {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.empty-state {
    padding: 40px 0;
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.tab-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    color: #999;
}

.tab-bar-item.active {
    color: #3344AA;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.tab-label {
    font-size: 10px;
}

/* 登录提示 */
.login-prompt {
    text-align: center;
    padding: 40px 20px;
}

.prompt-text {
    color: #666;
    margin-bottom: 20px;
}

.login-btn {
    background: #3344AA;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 发布表单 */
.publish-form {
    padding: 10px;
}

.page-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
}

.category-selector {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.category-selector .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.category-item.active {
    background: #3344AA;
    color: white;
}

.form-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.form-item .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    resize: vertical;
}

.upload-options {
    display: flex;
    gap: 20px;
}

.upload-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.user-icon {
    width: 32px;
    height: 32px;
}

.option-text {
    font-size: 13px;
    color: #666;
}

.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.image-item img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.delete-image, .delete-video {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 6px 0 6px;
    cursor: pointer;
}

.video-preview {
    margin-top: 15px;
    position: relative;
}

.video-preview video {
    width: 100%;
    max-height: 300px;
}

.visibility-options {
    display: flex;
    gap: 20px;
}

.visibility-options .option {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.visibility-options .option.active {
    background: #3344AA;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
    padding: 20px 0;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.draft-btn {
    background: #f0f0f0;
    color: #333;
}

.publish-btn {
    background: #3344AA;
    color: white;
}

/* 个人中心 */
.not-logged-in {
    padding: 40px 20px;
    text-align: center;
}

.guest-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.avatar-placeholder {
    font-size: 32px;
    color: #999;
}

.profile-content {
    padding: 10px;
}

.profile-header {
    padding: 20px;
    display: flex;
    align-items: center;
}

.profile-header .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header .avatar.avatar-placeholder .avatar-text {
    font-size: 24px;
}

.user-info {
    flex: 1;
}

.nickname {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.bio {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.edit-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #3344AA;
    color: #3344AA;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.menu-list {
    overflow: hidden;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

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

.menu-text {
    font-size: 14px;
}

.menu-arrow {
    font-size: 20px;
    color: #ccc;
}

.logout-section {
    padding: 20px;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #d9534f;
    font-size: 14px;
    cursor: pointer;
}

/* 详情页 */
.detail-content {
    padding: 10px;
}

.detail-header {
    background: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

.detail-body {
    background: white;
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 8px 8px;
}

.detail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.detail-images img {
    max-width: 100%;
    border-radius: 6px;
}

.detail-footer {
    display: flex;
    gap: 15px;
    padding: 15px 0;
}

.detail-footer .footer-item {
    font-size: 14px;
}

.comment-section {
    margin-top: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.comment-input-wrapper {
    display: flex;
    gap: 10px;
}

.comment-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.comment-send {
    background: #3344AA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.comments-list {
    margin-top: 15px;
}

.comment-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-author {
    font-weight: bold;
    font-size: 13px;
}

.comment-text {
    margin-top: 5px;
    font-size: 14px;
}

.comment-time {
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* 弹窗 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
}

.action-sheet {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 12px 12px 0 0;
    padding: 10px 0;
}

.action-sheet-item {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.action-sheet-item:last-child {
    border-bottom: none;
}

.action-sheet-cancel {
    margin-top: 10px;
    background: #f5f5f5;
    color: #333;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-weight: bold;
    font-size: 16px;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 15px;
}

/* 转发标签 */
.forward-label {
    background: #fff5f5;
    color: #3344AA;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* 收藏按钮激活状态 */
.favorite-btn.active img {
    filter: invert(25%) sepia(75%) saturate(5000%) hue-rotate(220deg) brightness(90%) contrast(110%);
}

/* 50%上传按钮布局 */
.upload-options-half {
    display: flex;
    gap: 10px;
}

.upload-options-half .upload-option {
    flex: 1;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-options-half .upload-option:hover {
    border-color: #3344AA;
}

.upload-options-half .option-icon {
    margin-bottom: 10px;
}

.upload-options-half .user-icon {
    width: 40px;
    height: 40px;
}

.upload-options-half .option-text {
    color: #666;
    font-size: 14px;
}

/* 转发弹窗 */
.forward-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    max-height: 80vh;
    overflow-y: auto;
}

.forward-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
}

.forward-modal-title {
    font-weight: bold;
    font-size: 16px;
}

.forward-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.forward-modal-body {
    padding: 15px;
}

.forward-preview {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.forward-preview-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.forward-preview-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forward-input-wrap {
    margin-bottom: 15px;
}

.forward-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    min-height: 80px;
    outline: none;
}

.forward-input:focus {
    border-color: #3344AA;
}

.forward-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.forward-image-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.forward-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.delete-forward-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #333;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.forward-video-wrap {
    position: relative;
    margin-bottom: 15px;
}

.forward-video {
    width: 100%;
    border-radius: 8px;
}

.delete-forward-video {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #333;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.forward-upload-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.forward-upload-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.forward-upload-option:hover {
    border-color: #3344AA;
}

.forward-upload-icon {
    width: 36px;
    height: 36px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions .cancel-btn,
.modal-actions .confirm-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.modal-actions .cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.modal-actions .confirm-btn {
    background: #3344AA;
    color: white;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* 想说的话 */
.content-card {
    padding: 20px;
}

.content-card .title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.words-content {
    margin-bottom: 20px;
}

.words-text {
    font-size: 15px;
    line-height: 2;
    color: #555;
    text-align: justify;
    margin: 0;
}

.signature {
    text-align: right;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

/* 建议与反馈弹窗 */
.feedback-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.feedback-modal-title {
    font-weight: bold;
    font-size: 16px;
}

.feedback-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.feedback-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.feedback-text {
    color: #333;
    font-size: 15px;
    margin-bottom: 15px;
}

.feedback-email {
    color: #3344AA;
    font-size: 16px;
    font-weight: 500;
}

/* 评论区样式 */
.comment-section {
    margin-top: 20px;
    padding: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.toggle-author {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    padding: 3px 8px;
    border-radius: 10px;
    background: #f5f5f5;
    cursor: pointer;
}

.toggle-author.active {
    color: #3344AA;
    background: #fff5f5;
}

.comment-item {
    display: flex;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.comment-avatar.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-name {
    font-size: 13px;
    color: #666;
    margin-right: 5px;
}

.author-tag {
    background: #3344AA;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    margin-right: 5px;
}

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

.delete-btn {
    margin-left: auto;
    font-size: 11px;
    color: #3344AA;
    cursor: pointer;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
}

.reply-to {
    color: #3344AA;
}

.comment-actions {
    margin-top: 5px;
}

.reply-btn {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

/* 回复列表 */
.reply-list {
    margin-top: 10px;
}

.expand-replies,
.collapse-replies {
    font-size: 12px;
    color: #666;
    padding: 5px 0;
    cursor: pointer;
}

.replies-container {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 10px;
    margin-top: 5px;
}

.reply-item {
    display: flex;
    margin-bottom: 10px;
}

.reply-item:last-child {
    margin-bottom: 0;
}

.reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.reply-avatar.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-content {
    flex: 1;
}

.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.reply-name {
    font-size: 12px;
    color: #666;
    margin-right: 4px;
}

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

.reply-text {
    font-size: 13px;
    line-height: 1.6;
}

.reply-actions {
    margin-top: 4px;
}

/* 所有可点击元素添加 pointer 光标 */
.expand-replies,
.collapse-replies,
.toggle-author,
.reply-btn,
.delete-btn,
.cancel-reply,
.send-reply,
.footer-item {
    cursor: pointer;
}

/* 内联图片样式 */
.inline-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

/* 内联视频样式 */
.inline-video {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.empty-comments {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 20px 0;
}

/* 详情页内容增加底部留白 */
#page-detail .detail-content {
    padding-bottom: 150px;
}

/* 禁止复制内容 */
body,
.post-text,
.detail-text,
.post-item,
.post-content,
.detail-content,
.post-title,
.post-body {
    user-select: none !important; /* 禁止选择 */
    -webkit-user-select: none !important; /* Safari */
    -moz-user-select: none !important; /* Firefox */
    -ms-user-select: none !important; /* IE10+ */
    -webkit-touch-callout: none !important;
}

/* 帖子分类/标签样式 */
.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.post-tag {
    font-size: 12px;
    color: #666;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 协作编辑样式 */
.collaboration-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-collaborator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.add-icon {
    font-size: 20px;
    font-weight: bold;
}

.collaborator-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.collaborator-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e8f4ff;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
}

.collaborator-remove {
    cursor: pointer;
    color: #999;
    font-weight: bold;
}

/* 搜索用户模态框 */
.search-user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 500;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.search-user-input {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 16px 16px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 帖子协作者显示 */
.post-collaborators {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.post-collaborator-tag {
    font-size: 12px;
    color: #666;
    background: #e8f4ff;
    padding: 4px 10px;
    border-radius: 12px;
}

/* 注册登录表单样式 */
.auth-form {
    width: 100%;
    padding: 20px 0;
}

.auth-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.email-input-wrapper {
    display: flex;
    gap: 10px;
}

.email-input-wrapper .input {
    flex: 7; /* 70% 宽度 */
}

.email-input-wrapper .send-code-btn {
    flex: 3; /* 30% 宽度 */
}

.send-code-btn {
    padding: 0 16px;
    background: #3344AA;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    background: #3344AA;
    color: white;
    padding: 14px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 16px;
    cursor: pointer;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.switch-link {
    color: #3344AA;
    cursor: pointer;
}

.divider {
    margin: 0 10px;
    color: #ddd;
}

/* 评论上传按钮样式 */
.comment-upload-btn {
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.comment-upload-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 评论区图片/视频预览样式 */
.comment-media-preview {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

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

.comment-media-item img,
.comment-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-media-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.comment-media-btn {
    display: flex;
    gap: 10px;
    margin-right: 10px;
}

.comment-media-btn-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
}

/* 回复输入区域 */
.reply-input-container {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    position: fixed;
    bottom: 60px; /* 在底部导航栏上方 */
    left: 0;
    right: 0;
    z-index: 100;
}

.reply-input {
    flex: 1;
    background: #f0f0f0;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    outline: none;
}

.cancel-reply {
    font-size: 12px;
    color: #999;
    margin: 0 10px;
    cursor: pointer;
}

.send-reply {
    background: #3344AA;
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 15px;
}

.filter-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab.active {
    background: #3344AA;
    color: #fff;
}

/* 帖子操作按钮 */
.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.delete {
    color: #3344AA;
}

.action-btn:hover {
    background: #e0e0e0;
}

/* 私密标签 */
.private-tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 编辑资料页面样式 */
.section {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.avatar-wrapper {
    display: flex;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-size: 24px;
    color: #999;
}

.avatar-edit {
    margin-left: 15px;
    background: #3344AA;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
}

.edit-profile .input,
.edit-profile .textarea {
    width: 100%;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    box-sizing: border-box;
    border: none;
    outline: none;
}

.edit-profile .textarea {
    min-height: 100px;
    resize: none;
}

.save-btn {
    width: 100%;
    background: #3344AA;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 15px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn:hover {
    background: #2a3a8a;
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    top: 60px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 500;
}

/* 详情页菜单按钮 */
.detail-menu-btn {
    margin-left: auto;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* 详情页菜单 */
.detail-menu {
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 1000;
}

.detail-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.detail-menu-item:hover {
    background: #f5f5f5;
}

/* PC端适配 */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .search-box {
        padding: 15px 20px;
    }
    
    .search-input {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .tab-item {
        font-size: 15px;
        padding: 8px 0;
    }
    
    .sort-item {
        padding: 6px 20px;
        font-size: 14px;
    }
    
    .grid-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cover {
        height: 200px;
    }
    
    .post-item {
        padding: 20px;
    }
    
    .post-avatar {
        width: 50px;
        height: 50px;
    }
    
    .post-text {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    
    .post-image {
        width: 150px;
        height: 150px;
    }
    
    .more-images {
        width: 150px;
        height: 150px;
    }
    
    .tab-bar {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 800px;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }
}

.content-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content-type-item {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.content-type-item.active {
    background: #3344AA;
    color: white;
}

@media (min-width: 1024px) {
    .grid-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
