/* BBS 论坛样式 - 主站绿色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #06c360;
    text-decoration: none;
}

a:hover {
    color: #059653;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #06c360;
}

.logo-icon {
    font-size: 24px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #666;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #06c360;
    background: rgba(6, 195, 96, 0.1);
}

/* 主体 */
.main {
    padding: 20px 0;
    min-height: calc(100vh - 120px);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 统计栏 */
.stats-bar {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 20px;
    font-weight: bold;
    color: #06c360;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* 内容布局 */
.content-wrapper {
    display: flex;
    gap: 20px;
}

.forum-list {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
}

/* 论坛分类 */
.forum-category {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.forum-category:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06c360, #05a855);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-icon .icon-default {
    font-size: 24px;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.category-info h3 a {
    color: #333;
}

.category-info p {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-stats {
    display: flex;
    gap: 20px;
}

.category-stats .stat {
    text-align: center;
}

.category-stats .stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #06c360;
}

.category-stats .stat-name {
    font-size: 12px;
    color: #999;
}

/* 面板 */
.panel {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.panel-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 14px;
}

.panel-body {
    padding: 15px;
}

/* 搜索面板 */
.search-panel .panel-body {
    padding: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #4CAF50;
}

.search-type {
    padding: 9px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    outline: none;
}

.search-type:focus {
    border-color: #4CAF50;
}

.search-btn {
    padding: 10px 14px;
    background: #4CAF50;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #45a049;
}

.search-tips {
    margin-top: 8px;
    text-align: right;
}

.search-tips .tip-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.search-tips .tip-link:hover {
    color: #4CAF50;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-info .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-detail {
    display: flex;
    flex-direction: column;
}

.user-detail .username {
    font-weight: 500;
    color: #333;
}

.user-detail .user-level {
    font-size: 12px;
    color: #999;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.login-tip {
    text-align: center;
    color: #666;
}

.login-tip p {
    margin-bottom: 10px;
}

/* 帖子列表（侧边栏）*/
.topic-list {
    list-style: none;
}

.topic-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-list li:last-child {
    border-bottom: none;
}

.topic-list a {
    flex: 1;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.topic-list a:hover {
    color: #06c360;
}

.reply-count {
    color: #999;
    font-size: 12px;
}

.zan-count {
    color: #27ae60;
    font-size: 12px;
    margin-left: 8px;
}

.time {
    color: #999;
    font-size: 12px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #06c360;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover {
    background: #05a855;
    color: #fff;
}

.btn-primary {
    background: #06c360;
}

.btn-default {
    background: #f5f5f5;
    color: #666;
}

.btn-default:hover {
    background: #eee;
    color: #333;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* 面包屑 */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 15px;
    font-size: 13px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
}

/* 操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
}

.filter-tabs {
    display: flex;
    gap: 15px;
}

.filter-tabs a {
    padding: 6px 12px;
    border-radius: 4px;
    color: #666;
}

.filter-tabs a:hover,
.filter-tabs a.active {
    background: #06c360;
    color: #fff;
}

/* 帖子列表（主列表）*/
.topic-list-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.topic-list-container .topic-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.topic-list-container .topic-item:last-child {
    border-bottom: none;
}

.topic-list-container .topic-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.topic-list-container .topic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-list-container .topic-info {
    flex: 1;
    min-width: 0;
}

.topic-list-container .topic-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-list-container .topic-info h3 a {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-list-container .topic-meta {
    font-size: 12px;
    color: #999;
}

.topic-list-container .topic-meta span {
    margin-right: 10px;
}

.topic-stats {
    display: flex;
    gap: 15px;
}

.topic-stats .stat-reply,
.topic-stats .stat-view,
.topic-stats .stat-zan {
    text-align: center;
    min-width: 40px;
}

.topic-stats .stat-zan .num {
    color: #27ae60;
}

.topic-stats .num {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #06c360;
}

.topic-stats .label {
    font-size: 11px;
    color: #999;
}

.topic-last-reply {
    width: 80px;
    text-align: right;
    color: #999;
    font-size: 12px;
}

/* APP风格帖子卡片列表 */
.post-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.post-card.post-top {
    border: 2px solid #ff5722;
    background: linear-gradient(135deg, #fff8f6 0%, #fff 100%);
}

.post-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.post-time {
    color: #999;
    font-size: 12px;
}

.post-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.post-tag.tag-top {
    background: linear-gradient(135deg, #ff5722, #ff7043);
    color: #fff;
}

.post-tag.tag-jing {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #333;
}

.post-tag.tag-lock {
    background: #999;
    color: #fff;
}

.post-card-body {
    display: block;
    color: inherit;
    text-decoration: none;
}

.post-card-body:hover {
    text-decoration: none;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-content {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-images {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.post-image-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

/* 帖子媒体附件 */
.post-media-attachments {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.post-media-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.post-media-item:hover {
    background: #e8e8e8;
}

.post-media-item.video {
    background: #fff3e0;
    color: #e65100;
}

.post-media-item.audio {
    background: #e8f5e9;
    color: #2e7d32;
}

.post-media-icon {
    font-size: 14px;
}

/* 多图片展示 */
.post-images-grid {
    display: flex;
    gap: 4px;
    margin-top: 10px;
}

.post-images-grid.col-1 .post-image-thumb {
    width: 100%;
    max-width: 200px;
    height: 150px;
}

.post-images-grid.col-2 .post-image-thumb {
    width: calc(50% - 2px);
    height: 100px;
}

.post-images-grid.col-3 .post-image-thumb {
    width: calc(33.33% - 3px);
    height: 80px;
}

.post-card-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.post-stat {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-stat i {
    font-style: normal;
}

.post-last-reply {
    margin-left: auto;
    color: #999;
    font-size: 12px;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: normal;
}

.tag-top {
    background: #ff5722;
    color: #fff;
}

.tag-jing {
    background: #ffc107;
    color: #333;
}

.tag-lock {
    background: #999;
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
}

.pagination a:hover {
    background: #06c360;
    border-color: #06c360;
    color: #fff;
}

.pagination .current {
    background: #06c360;
    border-color: #06c360;
    color: #fff;
}

/* 版块列表 */
.bankuai-list {
    list-style: none;
}

.bankuai-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bankuai-list li:last-child {
    border-bottom: none;
}

.bankuai-list li a {
    color: #333;
}

.bankuai-list li.active a,
.bankuai-list li a:hover {
    color: #06c360;
}

/* 帖子详情 */
.topic-view {
    background: #fff;
    border-radius: 8px;
}

.topic-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.topic-header h1 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-header .topic-meta {
    font-size: 13px;
    color: #999;
}

.topic-header .topic-meta span {
    margin-right: 15px;
}

/* 帖子内容 */
.post {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* 回复头部 - 用于定位置顶按钮 */
.post-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.post-header .post-author {
    flex: 1;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author .author-info {
    display: flex;
    flex-direction: column;
}

.post-author .username {
    font-weight: 500;
    color: #333;
}

.post-author .floor {
    font-size: 12px;
    color: #999;
}

/* 置顶标记 */
.pinned-badge {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
}

/* 置顶按钮 - 文字按钮样式 */
.pin-btn {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
    text-decoration: none;
    vertical-align: middle;
    margin-left: 8px;
}

.pin-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
    color: #444;
}

.pin-btn.pinned {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
    border-color: #ff4757;
}

.pin-btn.pinned:hover {
    background: linear-gradient(135deg, #ff4757 0%, #ff5252 100%);
}

/* 回复操作区域 */
.reply-actions {
    margin-left: auto; /* 靠右对齐 */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 置顶回复样式 */
.post.reply-post.pinned {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
}

.post-content {
    line-height: 1.8;
    color: #333;
}

.post-extra {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    color: #666;
}

.post-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.post-actions .btn {
    background: #f5f5f5;
    color: #666;
}

.post-actions .btn:hover,
.post-actions .btn.active {
    background: #06c360;
    color: #fff;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* 回复区 */
.replies-section {
    padding: 0 20px;
}

.replies-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.replies-header h3 {
    font-size: 16px;
}

.reply-post {
    background: #fafafa;
    margin: 15px 0;
    border-radius: 8px;
}

/* 回复框 */
.reply-box {
    padding: 20px;
    background: #fff;
}

.reply-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.reply-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
}

.reply-box textarea:focus {
    outline: none;
    border-color: #06c360;
}

.form-actions {
    margin-top: 10px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.upload-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.upload-btn svg {
    flex-shrink: 0;
}

.image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.preview-item .remove-btn:hover {
    background: rgba(0,0,0,0.8);
}

.upload-loading {
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* 浮动回复框图片上传 */
.float-upload-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.upload-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
}

.upload-btn-sm:hover {
    background: #e0e0e0;
}

.image-preview-sm {
    display: flex;
    gap: 6px;
}

.preview-item-sm {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item-sm .remove-btn-sm {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.upload-loading-sm {
    padding: 10px;
    color: #999;
    font-size: 12px;
}

.locked-tip {
    padding: 20px;
    text-align: center;
    color: #999;
    background: #f5f5f5;
    margin: 15px;
    border-radius: 4px;
}

/* 空状态 */
.empty-tip {
    padding: 40px;
    text-align: center;
    color: #999;
}

/* 表单 */
.post-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
}

.post-form h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06c360;
}

.form-help {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 搜索 */
.search-page {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
}

.search-page h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #06c360;
}

.result-info {
    margin-bottom: 15px;
    color: #666;
}

.topic-excerpt {
    margin-top: 5px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* 用户中心 */
.user-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.user-card h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.user-card .user-id {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.user-card .user-stats {
    display: flex;
    gap: 20px;
}

.user-card .stat-item {
    text-align: center;
    padding: 0 15px;
    border-right: 1px solid #eee;
    border-right: none;
}

.user-card .value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #06c360;
}

.user-card .label {
    font-size: 12px;
    color: #999;
}

/* 提示框 */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* 底部 */
.footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 40px;
}

/* 响应式 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .stats-bar {
        flex-wrap: wrap;
    }
    
    .category-stats {
        display: none;
    }
    
    .topic-stats {
        display: none;
    }
    
    .topic-last-reply {
        display: none;
    }
    
    .nav {
        gap: 10px;
        font-size: 13px;
    }
    
    .user-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .user-card .user-stats {
        justify-content: center;
    }
}

/* ========== 板块详情头部 ========== */
.forum-header-card {
    background: linear-gradient(135deg, #06c360 0%, #059653 100%);
    border-radius: 12px;
    padding: 20px 24px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(6, 195, 96, 0.3);
}

.forum-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.forum-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.forum-header-info {
    flex: 1;
}

.forum-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.forum-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 4px 0 0 0;
}

.forum-header-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.forum-header-stats .stat-item {
    font-size: 14px;
    opacity: 0.95;
}

.forum-header-stats .stat-item i {
    margin-right: 4px;
    opacity: 0.8;
}

.forum-desc {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.forum-welcome {
    margin-bottom: 8px;
    opacity: 0.95;
}

.forum-rules {
    opacity: 0.9;
}

.forum-banzhu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.banzhu-label {
    font-size: 14px;
    opacity: 0.9;
}

.banzhu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.banzhu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    transition: background 0.2s;
}

.banzhu-item:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

.banzhu-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.5);
}

.banzhu-name {
    font-weight: 500;
}

/* ========== 侧边栏板块信息卡片（紧凑版） ========== */
.forum-header-card-compact {
    background: linear-gradient(135deg, #06c360 0%, #059653 100%);
    border-radius: 10px;
    padding: 14px;
    color: #fff;
}

.forum-header-card-compact .forum-header-main {
    margin-bottom: 10px;
}

.forum-header-card-compact .forum-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.forum-header-card-compact .forum-title {
    font-size: 16px;
    margin: 0;
}

.forum-header-card-compact .forum-subtitle {
    font-size: 12px;
    margin: 2px 0 0 0;
    opacity: 0.85;
}

.forum-header-card-compact .forum-header-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.forum-header-card-compact .forum-header-stats .stat-item {
    font-size: 12px;
}

.forum-header-card-compact .forum-desc {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.forum-header-card-compact .forum-welcome,
.forum-header-card-compact .forum-rules {
    font-size: 12px;
}

.forum-header-card-compact .forum-banzhu {
    margin-top: 8px;
}

.forum-header-card-compact .banzhu-label {
    font-size: 12px;
}

.forum-header-card-compact .banzhu-item {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px 2px 2px;
    border-radius: 16px;
    font-size: 11px;
}

.forum-header-card-compact .banzhu-avatar {
    width: 20px;
    height: 20px;
    border-width: 1px;
}

/* ========== 发帖图片上传 ========== */
.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
}

.image-upload-area.dragover {
    border-color: #06c360;
    background: rgba(6, 195, 96, 0.05);
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.upload-btn:hover {
    color: #06c360;
}

.upload-btn svg {
    opacity: 0.6;
}

.upload-btn span {
    font-size: 14px;
}

.uploaded-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.uploaded-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.uploaded-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-image-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uploaded-image-item .remove-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* ========== 多类型文件上传 ========== */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
}

.file-upload-area.dragover {
    border-color: #06c360;
    background: rgba(6, 195, 96, 0.05);
}

.upload-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.upload-tab {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.upload-tab:hover {
    border-color: #06c360;
    color: #06c360;
}

.upload-tab.active {
    background: #06c360;
    border-color: #06c360;
    color: #fff;
}

.upload-help {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    font-size: 11px;
    color: #999;
}

.uploaded-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.uploaded-file-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}

.uploaded-file-item.image-item {
    width: 80px;
    height: 80px;
}

.uploaded-file-item.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-file-item.attachment-item {
    display: flex;
    align-items: center;
    padding: 10px;
    min-width: 180px;
    max-width: 280px;
}

.uploaded-file-item .file-icon {
    font-size: 28px;
    margin-right: 10px;
}

.uploaded-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.uploaded-file-item .file-name {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.uploaded-file-item .file-size {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.uploaded-file-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uploaded-file-item.attachment-item .remove-btn {
    position: static;
    margin-left: 10px;
    flex-shrink: 0;
}

.uploaded-file-item .remove-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* ========== 上传进度条 ========== */
.upload-progress-wrapper {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    display: none;
}

.upload-progress-wrapper.active {
    display: block;
}

.upload-progress-item {
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.upload-progress-item:last-child {
    margin-bottom: 0;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.upload-progress-name {
    font-size: 13px;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.upload-progress-status {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.upload-progress-status.uploading {
    color: #06c360;
}

.upload-progress-status.complete {
    color: #06c360;
}

.upload-progress-status.error {
    color: #ff4d4f;
}

.upload-progress-bar {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #06c360, #00b578);
    border-radius: 3px;
    width: 0%;
    transition: width 0.2s ease;
}

.upload-progress-bar-fill.complete {
    background: #06c360;
}

.upload-progress-bar-fill.error {
    background: #ff4d4f;
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

/* ========== 板块徽章 ========== */
.bankuai-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}

.bankuai-badge .badge-icon {
    font-size: 20px;
}

.bankuai-badge .badge-name {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.bankuai-badge .badge-change {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.bankuai-badge .badge-change:hover {
    color: #fff;
}

/* ========== 板块选择Modal ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.bankuai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bankuai-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.bankuai-item:hover {
    border-color: #06c360;
    background: rgba(6, 195, 96, 0.05);
}

.bankuai-item.selected {
    border-color: #06c360;
    background: rgba(6, 195, 96, 0.1);
}

.bankuai-item .bankuai-icon {
    font-size: 18px;
}

.bankuai-item .bankuai-title {
    font-size: 14px;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图标样式（使用emoji代替）*/
.icon-document::before { content: "📄"; margin-right: 4px; }
.icon-today::before { content: "🕐"; margin-right: 4px; }
.icon-welcome::before { content: "👋"; margin-right: 4px; }
.icon-rules::before { content: "📋"; margin-right: 4px; }
.icon-crown::before { content: "👑"; margin-right: 4px; }

/* 移动端适配 */
@media (max-width: 768px) {
    .forum-header-card {
        padding: 16px;
        border-radius: 8px;
    }
    
    .forum-title {
        font-size: 18px;
    }
    
    .forum-logo {
        width: 48px;
        height: 48px;
    }
    
    .forum-header-stats {
        gap: 12px;
    }
}

/* 编辑按钮样式 */
.btn-edit {
    background: #1890ff !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.3);
}

.btn-edit:hover {
    background: #40a9ff !important;
}

/* 接单按钮 */
.btn-apply {
    background: linear-gradient(135deg, #ff8c00, #ff6b35) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.4);
    cursor: pointer;
}
.btn-apply:hover {
    background: linear-gradient(135deg, #ff9a2e, #ff7f50) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
}
.btn-apply.disabled {
    background: #ccc !important;
    color: #999 !important;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}
.btn-apply.applied {
    background: #52c41a !important;
    cursor: default;
    pointer-events: none;
}

/* 版主操作按钮 */
.mod-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin-left: 10px;
}

.mod-label {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.mod-btn {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mod-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.mod-btn.active {
    background: #e6f7ff;
    border-color: #1890ff;
    color: #1890ff;
}

.mod-ding.active {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.mod-jing.active {
    background: #fff8e1;
    border-color: #ffc107;
    color: #f57f17;
}

.mod-lock.active {
    background: #fafafa;
    border-color: #9e9e9e;
    color: #616161;
}

/* ========== 帖子附件展示 ========== */
.attachments-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.attachment-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.att-icon {
    font-size: 16px;
}

/* 图片网格 */
.attachment-images {
    margin-bottom: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-item .img-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 24px;
}

.image-item .img-error small {
    font-size: 11px;
    margin-top: 4px;
}

/* 音频播放器 */
.attachment-audios {
    margin-bottom: 20px;
}

.audio-player {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: white;
}

.audio-icon {
    font-size: 24px;
}

.audio-name {
    font-size: 14px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-player audio {
    width: 100%;
    height: 40px;
    border-radius: 20px;
}

.audio-player audio::-webkit-media-controls-panel {
    background: rgba(255,255,255,0.2);
}

/* 视频播放器 */
.attachment-videos {
    margin-bottom: 20px;
}

.video-player {
    margin-bottom: 15px;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.video-icon {
    font-size: 18px;
}

.video-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-player video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    background: #000;
}

/* 文件列表 */
.attachment-files {
    margin-bottom: 20px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.file-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.file-icon {
    font-size: 24px;
}

.file-name {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-download {
    font-size: 12px;
    color: #667eea;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

/* 图片预览弹窗 */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.image-preview-modal.show {
    display: flex;
}

.preview-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 3001;
}

.preview-close:hover {
    color: #ddd;
}

.preview-prev, .preview-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.preview-prev {
    left: 10px;
}

.preview-next {
    right: 10px;
}

.preview-prev:hover, .preview-next:hover {
    color: #ddd;
}

.preview-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.preview-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #45a049;
    transform: translateY(-3px);
}

/* ========== 分享游戏按钮 ========== */
.share-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    transition: all 0.2s;
}

.share-game-btn:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.share-game-btn svg {
    flex-shrink: 0;
}

/* 浮动回复框的分享按钮 */
.share-game-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
}

.share-game-btn-sm:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 分享游戏弹窗 ========== */
.share-game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.share-game-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 70vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.share-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.share-game-header h3 {
    font-size: 16px;
    margin: 0;
    color: #333;
}

.close-share-game {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-share-game:hover {
    color: #333;
}

.share-game-tabs {
    display: flex;
    padding: 12px 20px;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.share-game-tabs .tab-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.share-game-tabs .tab-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.share-game-tabs .tab-btn:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

.share-game-search {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.share-game-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.share-game-search input:focus {
    border-color: #667eea;
}

.share-game-search button {
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.share-game-search button:hover {
    background: #5a6fd6;
}

.share-game-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.search-tip {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.share-item:hover {
    background: #f5f5f5;
}

.share-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.share-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.share-item-info {
    flex: 1;
    min-width: 0;
}

.share-item-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-item-desc {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 遮罩层 */
.share-game-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1999;
}
