/* 移动端样式 - 适用于屏幕宽度小于等于768px的设备 */

/* 基础样式优化 */
body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 导航栏优化 */
.navbar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 12px 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100vw !important; /* 确保不超出视口宽度 */
}

.nav-center {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    display: flex !important;
    gap: 15px !important;
    min-width: max-content !important;
    padding-right: 20px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    overflow-x: auto !important; /* 启用水平滚动 */
    -webkit-overflow-scrolling: touch !important; /* iOS平滑滚动 */
    scrollbar-width: none !important; /* Firefox隐藏滚动条 */
    -ms-overflow-style: none !important; /* IE隐藏滚动条 */
    white-space: nowrap !important; /* 防止换行 */
    flex-wrap: nowrap !important; /* 防止换行 */
}

/* 隐藏Webkit浏览器的滚动条 */
.nav-center::-webkit-scrollbar {
    display: none !important;
}

/* 触摸手势优化 */
.nav-center {
    touch-action: pan-x !important; /* 只允许水平触摸滑动 */
    user-select: none !important; /* 防止文本选择 */
}

.nav-right {
    position: relative !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.navbar a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.navbar a.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    font-weight: 600;
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

/* 登录按钮样式 */
.login-btn {
    background-color: #3498db;
    color: #fff !important;
    padding: 5px 10px !important;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    font-size: 13px !important;
}

.login-btn:hover {
    background-color: #2980b9 !important;
    color: #fff !important;
}

/* 为详情页面添加顶部间距 */

/* 投稿页面背景 */

/* 统一容器样式 - 所有页面使用相同的紧凑间距 */
.container {
    max-width: 100%;
    margin: 8px auto !important;
    padding: 18px 12px !important;
    background: #f8f9fa;
    min-height: 100vh;
}

/* 浏览板块专用样式 - 缩小空隙 */

/* 个人板块专用样式 - 增加空隙 */

/* 个人页面容器 */

/* 审核页面样式 */

/* 操作日志页面样式 */

/* 审核详情页面样式 */

/* 卡片间距和阴影优化 */
.card, .post {
    margin-bottom: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

/* 卡片基础样式优化 */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 8px !important;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 12px !important;
    border: 1px solid #f0f0f0;
    position: relative;
}

.card-header {
    background-color: transparent;
    padding: 0 0 8px 0 !important;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.card-body {
    padding: 0 !important;
}

/* 页面标题样式调整 */

/* 标题字体优化 */
 h3 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
    font-weight: 600;
}

/* 帖子/悬赏卡片通用样式优化 */
.post {
    cursor: pointer;
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

/* 元数据样式优化 */

/* 图标样式 */

/* 悬赏标签样式 */

/* 详情页样式 */

/* 无数据样式 */

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 15px 0 !important;
    color: #7f8c8d;
    font-size: 12px !important;
}

/* 帖子容器优化 */

/* 发布成功页容器样式 */

/* 成功卡片样式 */

/* 成功图标样式 */

/* 标题样式 */

/* 消息文本样式 */

/* 按钮组容器 */

/* 按钮样式优化 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    font-size: 14px !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 帖子操作按钮容器 */

/* 不同按钮的颜色方案 */

/* 按钮悬停效果 */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* 用户中心布局 */
/* 提示信息样式 */
.alert {
    padding: 10px 12px !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px !important;
    margin-bottom: 20px;
}

/* 表单样式 */

/* 按钮样式 */

/* 用户信息展示 */

/* 审核页全局样式增强 */

/* 待审卡片样式 */

/* 类型徽章 */

/* 元数据样式 */

/* 内容预览 */

/* 操作按钮 */

/* audit action buttons */

/* Capsule Tabs for audit page */

/* audit capsule tabs */

/* 让 tabs 与列表留出空隙 */

/* 状态标签样式优化 */

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 20px !important;
    border-radius: 12px;
    max-width: 450px;
    width: 95%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    margin: 0 auto;
}

.modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px !important;
}

.modal-content p {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
    font-size: 14px !important;
}

/* 无数据样式增强 */

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 帖子卡片悬停效果增强 */
.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 按钮过渡效果 */
.btn {
    transition: all 0.3s ease;
}

.btn:active {
    transform: scale(0.95);
}

/* 禁用状态的按钮 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 模态框加载状态 */
.modal.loading {
    pointer-events: none;
}

.modal.loading .modal-content {
    position: relative;
}

.modal.loading .modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* 回退按钮样式 */

/* 登录提示样式 */

/* 固定在右下角的返回按钮 */

/* 移动端标题和管理员信息布局 */

/* 详细操作日志页面布局优化 */

/* 日志卡片容器 */

/* 超小屏幕适配 */

/* 审核详情页面移动端优化 */

/* 审核操作按钮区域 */

/* 审核按钮样式 */

/* 响应式布局 */

/* 投稿页面移动端优化 */

/* 帖子类型选择器 */

/* 表单字段 */

/* 匿名发布选项 */

/* 提交按钮 */

/* 悬赏和失物招领特定字段 */

/* 响应式调整 */

/* 超小屏幕适配 */
