/**
 * 表白墙首页样式
 * 版本: v1.0
 * 完整响应式设计
 * 手机端(<768px): 全宽
 * PC端(>1024px): 居中, max-width:600px
 */

/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 50%, #fce4ec 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ========== 头部样式 ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #66bb6a, #42a5f5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-box {
    position: relative;
    width: 180px;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.2);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* ========== 主内容区 ========== */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px;
}

/* ========== 帖子卡片样式 ========== */
.post-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-user-info {
    flex: 1;
    margin-left: 10px;
}

.post-nickname {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.admin-badge {
    background: linear-gradient(135deg, #ff9800, #ffa726);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 500;
}

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

.post-topic {
    display: inline-block;
    background: linear-gradient(135deg, #a5d6a7, #90caf9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.post-content {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ========== 媒体网格 ========== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.media-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.media-item .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 帖子操作区（点赞、评论、收藏、举报） ========== */
.post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: #66bb6a;
}

.action-btn.liked {
    color: #ec407a;
}

.action-btn.favorited {
    color: #ffa726;
}

.action-btn.favorited i {
    color: #ffa726;
}

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

/* ========== 评论预览 ========== */
.comments-preview {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    margin-top: 10px;
}

.comment-item {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.comment-nickname {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.comment-content {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.view-more {
    color: #66bb6a;
    font-size: 12px;
    cursor: pointer;
}

/* ========== 底部导航栏 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    z-index: 1000;
}

.nav-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 12px;
}

.nav-item:hover,
.nav-item.active {
    color: #66bb6a;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.publish {
    background: linear-gradient(135deg, #66bb6a, #42a5f5);
    color: white;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    margin-top: -18px;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.4);
}

.nav-item.publish i {
    font-size: 24px;
}

.nav-item.publish:hover {
    transform: scale(1.1);
}

/* ========== 所有弹窗默认 display:none ========== */
.publish-modal,
.auth-modal,
.comment-modal,
.report-modal,
.media-modal,
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

/* ========== 弹窗 .active 时 display:flex ========== */
.publish-modal.active,
.auth-modal.active,
.comment-modal.active,
.report-modal.active,
.media-modal.active,
.announcement-modal.active {
    display: flex;
}

/* ========== 发布弹窗样式 ========== */
.publish-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.publish-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.publish-title {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #66bb6a, #42a5f5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.publish-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.publish-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
    outline: none;
    border-color: #66bb6a;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    resize: none;
    min-height: 100px;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #66bb6a;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1);
}

/* ========== QQ头像预览 ========== */
.qq-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.qq-input-group .form-input {
    flex: 1;
}

.avatar-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #66bb6a;
}

/* ========== 验证码区域 ========== */
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.captcha-refresh {
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.captcha-refresh:hover {
    color: #66bb6a;
}

/* ========== 上传区域 ========== */
.upload-area {
    border: 2px dashed rgba(102, 187, 106, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #66bb6a;
    background: rgba(102, 187, 106, 0.05);
}

.upload-icon {
    font-size: 32px;
    color: #66bb6a;
    margin-bottom: 8px;
}

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

/* ========== 上传预览 ========== */
.upload-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #ef5350;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

/* ========== 发布按钮 ========== */
.publish-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #66bb6a, #42a5f5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.publish-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.publish-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 媒体预览弹窗 ========== */
.media-modal {
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
}

.media-modal-content {
    max-width: 90%;
    max-height: 90%;
}

.media-modal-content img,
.media-modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
}

/* ========== 评论弹窗样式 ========== */
.comment-modal {
    align-items: flex-end;
}

.comment-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px 24px 0 0;
    padding: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.comment-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.comment-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comment-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    max-height: 50vh;
}

.comment-list-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.comment-body {
    flex: 1;
}

.comment-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

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

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

.comment-reply-to {
    font-size: 12px;
    color: #42a5f5;
    margin-bottom: 4px;
}

.comment-reply-to i {
    margin-right: 4px;
}

.comment-reply-btn {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    display: inline-block;
    text-decoration: none;
}

.comment-reply-btn:hover {
    color: #42a5f5;
}

.comment-reply-btn i {
    margin-right: 4px;
}

.loading-comments,
.no-comments {
    text-align: center;
    padding: 40px;
    color: #999;
}

.comment-input-area {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 16px;
    flex-shrink: 0;
}

.comment-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.comment-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 14px;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    background: rgba(255, 255, 255, 0.9);
}

.comment-input:focus {
    outline: none;
    border-color: #66bb6a;
}

.comment-submit {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #66bb6a, #42a5f5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comment-submit:hover {
    transform: scale(1.05);
}

.comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-char-count {
    text-align: right;
    color: #999;
    font-size: 12px;
    margin-top: 6px;
}

/* ========== 举报弹窗样式 ========== */
.report-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.report-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reason-item:hover {
    background: rgba(102, 187, 106, 0.1);
}

.reason-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #66bb6a;
}

.reason-item span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.reason-item span i {
    color: #999;
}

/* ========== 登录/注册弹窗样式 ========== */
.auth-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-title i {
    color: #66bb6a;
}

.auth-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.auth-switch a {
    color: #66bb6a;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ========== 公告弹窗样式 ========== */
.announcement-modal {
    z-index: 2500;
}

.announcement-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.announcement-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.announcement-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.announcement-body {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ========== 广告滚动条样式 ========== */
.ad-scroll {
    background: linear-gradient(135deg, #ffa726, #ef5350);
    padding: 8px 0;
    overflow: hidden;
}

.ad-scroll-content {
    display: inline-block;
    animation: scroll 15s linear infinite;
    white-space: nowrap;
    color: white;
    font-size: 14px;
}

.ad-media {
    height: 24px;
    display: inline;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ========== 音乐控制按钮样式 ========== */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #66bb6a, #42a5f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.3);
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 187, 106, 0.4);
}

.music-control.playing {
    animation: musicPulse 1s ease infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.music-control.external-music {
    width: auto;
    padding: 0 12px;
    border-radius: 20px;
    gap: 6px;
}

.music-type-indicator {
    font-size: 12px;
    font-weight: 500;
}

/* ========== IP封禁页面样式 ========== */
.ban-page {
    text-align: center;
    padding: 80px 20px;
}

.ban-page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef5350, #e53935);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 36px;
}

.ban-page-title {
    color: #333;
    margin-bottom: 16px;
    font-size: 22px;
}

.ban-page-reason {
    color: #666;
    margin-bottom: 8px;
    font-size: 15px;
}

.ban-page-until {
    color: #999;
    margin-bottom: 24px;
    font-size: 14px;
}

.ban-page-hint {
    color: #bbb;
    font-size: 13px;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 16px;
}

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

/* ========== 动画效果 ========== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 187, 106, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 187, 106, 0.5);
}

/* ========== 响应式设计 ========== */

/* 手机端（<768px）：全宽 */
@media (max-width: 767px) {
    .header-title {
        font-size: 18px;
    }

    .search-box {
        width: 120px;
    }

    .search-input {
        padding: 8px 12px 8px 32px;
        font-size: 13px;
    }

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

    .upload-preview {
        grid-template-columns: repeat(3, 1fr);
    }

    .post-card {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 16px;
    }

    .post-avatar {
        width: 38px;
        height: 38px;
    }

    .post-nickname {
        font-size: 14px;
    }

    .post-content {
        font-size: 14px;
    }

    .nav-item.publish {
        width: 48px;
        height: 48px;
        margin-top: -16px;
    }

    .nav-item.publish i {
        font-size: 22px;
    }

    .post-actions {
        gap: 10px;
    }

    .action-btn {
        font-size: 12px;
    }

    .action-btn i {
        font-size: 14px;
    }

    .header {
        padding: 12px 16px;
    }

    .main-content {
        padding: 12px;
        padding-bottom: 80px;
    }

    .bottom-nav {
        padding: 8px 12px;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* 弹窗在手机端从底部滑出 */
    .publish-modal,
    .auth-modal,
    .report-modal {
        align-items: flex-end;
        justify-content: center;
    }

    .publish-content,
    .auth-content,
    .report-content {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
    }

    .comment-content {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 70vh;
    }

    .publish-modal .publish-content,
    .auth-modal .auth-content,
    .report-modal .report-content {
        animation: slideUpMobile 0.3s ease;
    }

    @keyframes slideUpMobile {
        from { opacity: 0; transform: translateY(100%); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 音乐控制按钮适配 */
    .music-control {
        top: 70px;
        width: 36px;
        height: 36px;
    }

    .music-control i {
        font-size: 14px;
    }

    .music-type-indicator {
        font-size: 10px;
    }

    .music-control.external-music {
        padding: 0 10px;
    }

    /* 广告滚动条适配 */
    .ad-scroll {
        padding: 6px 0;
    }

    .ad-scroll-content {
        font-size: 13px;
    }

    /* 公告弹窗适配 */
    .announcement-content {
        width: 92%;
        padding: 20px;
    }

    /* 验证码区域适配 */
    .captcha-group {
        flex-wrap: wrap;
    }

    .captcha-group .form-input {
        width: 100%;
    }

    .form-textarea {
        min-height: 80px;
    }
}

/* PC端（>1024px）：居中，max-width:600px */
@media (min-width: 1025px) {
    .header-content {
        max-width: 600px;
    }

    .main-content {
        max-width: 600px;
        padding: 20px;
        padding-bottom: 100px;
    }

    .nav-content {
        max-width: 600px;
    }

    .post-card {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 20px;
    }

    .nav-item.publish {
        width: 56px;
        height: 56px;
        margin-top: -20px;
    }

    .nav-item.publish i {
        font-size: 26px;
    }

    .bottom-nav {
        padding: 14px 20px;
    }

    /* PC端弹窗居中 */
    .publish-modal,
    .auth-modal,
    .report-modal,
    .comment-modal {
        align-items: center;
        justify-content: center;
    }

    .publish-modal .publish-content,
    .auth-modal .auth-content,
    .report-modal .report-content,
    .comment-modal .comment-content {
        border-radius: 24px;
        animation: fadeInScale 0.3s ease;
    }

    @keyframes fadeInScale {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .music-control {
        top: 80px;
    }
}

/* 平板端（768px-1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-content {
        max-width: 600px;
    }

    .main-content {
        max-width: 600px;
    }

    .nav-content {
        max-width: 600px;
    }

    .publish-content,
    .auth-content,
    .report-content {
        max-width: 480px;
    }

    .comment-content {
        max-width: 550px;
    }

    .music-control {
        top: 80px;
    }
}

/* 帖子封禁提示 */
.post-banned-notice { text-align:center; padding:30px 20px; background:linear-gradient(135deg,#fff5f5,#ffebee); border-radius:12px; margin:10px; }
.post-banned-notice .banned-icon { width:50px; height:50px; background:linear-gradient(135deg,#ef5350,#c62828); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; color:white; font-size:22px; }
.post-banned-notice .banned-text { color:#c62828; font-size:16px; font-weight:600; margin-bottom:6px; }
.post-banned-notice .banned-reason-text { color:#999; font-size:13px; margin-bottom:16px; }
.appeal-btn { background:linear-gradient(135deg,#42a5f5,#1e88e5); color:white; border:none; padding:10px 28px; border-radius:25px; font-size:14px; cursor:pointer; transition:all 0.3s; box-shadow:0 4px 15px rgba(66,165,245,0.3); }
.appeal-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(66,165,245,0.4); }

/* 用户封禁弹窗 */
.user-ban-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:10000; display:flex; align-items:center; justify-content:center; animation:fadeIn 0.3s; }
.user-ban-content { background:white; border-radius:20px; padding:40px 30px; max-width:360px; width:90%; text-align:center; animation:slideUp 0.4s; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.user-ban-icon { width:70px; height:70px; background:linear-gradient(135deg,#ef5350,#c62828); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; color:white; font-size:30px; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.user-ban-title { color:#c62828; font-size:20px; font-weight:700; margin-bottom:8px; }
.user-ban-desc { color:#666; font-size:14px; margin-bottom:16px; line-height:1.6; }
.user-ban-reason { background:#fff5f5; border-radius:10px; padding:12px 16px; margin-bottom:12px; color:#c62828; font-size:13px; }
.user-ban-time { color:#999; font-size:12px; margin-bottom:20px; }
.user-ban-close { background:linear-gradient(135deg,#666,#444); color:white; border:none; padding:10px 40px; border-radius:25px; font-size:14px; cursor:pointer; transition:all 0.3s; }
.user-ban-close:hover { background:linear-gradient(135deg,#555,#333); }

/* 申诉弹窗 */
.appeal-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:10000; display:flex; align-items:center; justify-content:center; animation:fadeIn 0.3s; }
.appeal-content { background:white; border-radius:20px; padding:30px; max-width:420px; width:90%; animation:slideUp 0.4s; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.appeal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.appeal-title { font-size:18px; font-weight:700; color:#333; }
.appeal-close { width:32px; height:32px; border-radius:50%; background:#f5f5f5; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#999; transition:all 0.3s; }
.appeal-close:hover { background:#eee; color:#333; }
.appeal-textarea { width:100%; min-height:120px; border:2px solid #e0e0e0; border-radius:12px; padding:12px; font-size:14px; resize:vertical; transition:border-color 0.3s; font-family:inherit; box-sizing:border-box; }
.appeal-textarea:focus { outline:none; border-color:#42a5f5; }
.appeal-submit { width:100%; padding:12px; background:linear-gradient(135deg,#42a5f5,#1e88e5); color:white; border:none; border-radius:25px; font-size:15px; cursor:pointer; margin-top:16px; transition:all 0.3s; box-shadow:0 4px 15px rgba(66,165,245,0.3); }
.appeal-submit:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(66,165,245,0.4); }
