/* 社区论坛样式 */

/* 覆盖主布局的容器限制 */
.cl-app-forum .main-content-container {
    max-width: 100% !important;
}

.cl-app-forum .main-content-container-inner {
    max-width: 100% !important;
    padding: 0 !important;
}

.cl-app-forum .timeline-container-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.cl-app-forum .timeline-container-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.forum-container {
    background: linear-gradient(180deg, #0a1929 0%, #0f2537 100%);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 顶部导航栏 */
.forum-container .timeline-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.95) 0%, rgba(10, 15, 26, 0.98) 100%);
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.forum-container .go-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.forum-container .go-back-link:hover {
    color: #00bfff;
}

.forum-container .go-back-link .material-icons {
    font-size: 20px;
}

/* 搜索框 */
.forum-searchbar {
    background: transparent;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.forum-searchbar .keyword-input {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.forum-searchbar .keyword-input input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(0, 191, 255, 0.2) !important;
    border-radius: 6px;
    padding: 10px 15px 10px 40px;
    color: #e2e8f0 !important;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.forum-searchbar .keyword-input input:focus {
    border-color: #00bfff !important;
    box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.1);
}

.forum-searchbar .keyword-input input::placeholder {
    color: #94a3b8 !important;
}

.keyword-input__left-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    z-index: 1;
}

.forum-searchbar__form {
    max-width: 600px;
    margin: 0 auto;
}

/* 三栏布局 */
.forum-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* 左侧边栏 - 频道列表 */
.forum-sidebar-left {
    width: 240px;
    flex-shrink: 0;
}

.channel-list {
    background: transparent;
    border-radius: 8px;
    padding: 15px;
    position: sticky;
    top: 80px;
}

.btn-create-channel {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #00bfff 0%, #0080cc 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.2);
}

.btn-create-channel:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.channel-section {
    margin-bottom: 20px;
}

.channel-section__title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.channel-list__items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
}

.channel-item:hover {
    background: rgba(0, 191, 255, 0.08);
    color: #e2e8f0;
}

.channel-item.active {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
}

.channel-icon {
    font-size: 18px;
}

.channel-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.channel-icon-small {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    margin-right: 4px;
}

.channel-name {
    font-size: 14px;
    font-weight: 500;
}

.channel-count {
    font-size: 12px;
    color: #64748b;
    margin-left: auto;
}

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

/* 中间主区域 - 帖子流 */
.forum-main {
    flex: 1;
    min-width: 0;
}

/* 发帖框 */
.forum-container .post-composer {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%) !important;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.post-composer__header {
    display: flex;
    gap: 10px;
}

.forum-container .post-composer__header textarea {
    flex: 1;
    border: 1px solid rgba(0, 191, 255, 0.2) !important;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    background: rgba(15, 23, 42, 0.8) !important;
    color: #e2e8f0 !important;
}

.forum-container .post-composer__header textarea::placeholder {
    color: #94a3b8 !important;
}

.post-composer__header textarea:focus {
    outline: none;
    border-color: #00bfff;
}

.post-composer__options {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-options {
    display: flex;
    gap: 10px;
}

.forum-container .btn-option {
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(0, 191, 255, 0.15) !important;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8 !important;
}

.forum-container .btn-option:hover {
    background: rgba(0, 191, 255, 0.12) !important;
}

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

.forum-container .btn-cancel {
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(0, 191, 255, 0.15) !important;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #94a3b8 !important;
}

.forum-container .btn-cancel:hover {
    background: rgba(0, 191, 255, 0.12) !important;
}

.btn-submit {
    padding: 8px 20px;
    background: linear-gradient(135deg, #00bfff 0%, #0080cc 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-submit:hover {
    filter: brightness(1.1);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 排序选项 */
.forum-container .post-sort {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%) !important;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    border: 1px solid rgba(0, 191, 255, 0.2) !important;
}

.forum-container .sort-btn {
    padding: 6px 16px;
    background: transparent !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #d4d4d8 !important;
}

.forum-container .sort-btn:hover {
    background: rgba(0, 191, 255, 0.08) !important;
}

.forum-container .sort-btn.active {
    background: rgba(0, 191, 255, 0.15) !important;
    color: #00bfff !important;
    font-weight: 500;
}

/* 帖子列表 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-card__header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.post-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.channel-name {
    color: #e2e8f0;
}

.separator {
    margin: 0 5px;
}

.post-card__content {
    margin-bottom: 12px;
}

.post-card__content p {
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d8;
    margin: 0;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

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

.post-card__footer {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 191, 255, 0.2);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
}

.post-action:hover {
    background: rgba(0, 191, 255, 0.1);
}

.post-action.active {
    color: #00bfff;
}

/* 右侧边栏 */
.forum-sidebar-right {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.widget-title {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hot-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hot-channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.hot-channel-item:hover {
    background: #f5f5f5;
}

.hot-channel-item .channel-icon {
    font-size: 24px;
}

.hot-channel-item .channel-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.channel-info {
    flex: 1;
}

.channel-info .channel-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

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

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1976d2;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

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

.empty-state__icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 20px;
}

.btn-load-more {
    padding: 10px 30px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #e2e8f0;
}

.btn-load-more:hover {
    background: rgba(0, 191, 255, 0.1);
}

/* 响应式 */
@media (max-width: 1200px) {
    .forum-sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .forum-layout {
        flex-direction: column;
        padding: 10px;
    }
    
    .forum-sidebar-left {
        width: 100%;
        position: static;
    }
    
    .channel-list {
        position: static;
    }
    
    .post-images {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==================== 帖子详情页样式 ==================== */

.forum-post-detail-container {
    background: linear-gradient(180deg, #0a1929 0%, #0f2537 100%);
    min-height: 100vh;
}

.post-detail-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.post-detail-main {
    flex: 1;
    min-width: 0;
}

/* 帖子详情卡片 */
.post-detail-card {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.post-channel-info {
    margin-bottom: 15px;
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #94a3b8;
    transition: background 0.2s;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.channel-link:hover {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
}

.post-detail-header {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.post-detail-header .user-avatar {
    width: 48px;
    height: 48px;
}

.post-detail-header .user-info {
    flex: 1;
}

.post-detail-header .user-name {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-badge {
    color: #1976d2;
    font-size: 14px;
}

.post-detail-header .post-time {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.post-actions-menu {
    position: relative;
}

.btn-menu {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
}

.btn-menu:hover {
    background: #f5f5f5;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #1a2e3b;
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    z-index: 10;
}

.dropdown-menu button {
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #e2e8f0;
}

.dropdown-menu button:hover {
    background: rgba(0, 191, 255, 0.1);
}

.post-detail-content {
    margin-bottom: 20px;
}

.post-detail-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #d4d4d8;
    margin: 0 0 15px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-detail-content .post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.post-detail-content .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.post-detail-content .post-image:hover {
    transform: scale(1.02);
}

.post-detail-stats {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
}

.stat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.2s;
}

.stat-btn:hover {
    background: rgba(0, 191, 255, 0.1);
}

.stat-btn.active {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.15);
}

/* 回复区域 */
.replies-section {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.replies-header {
    margin-bottom: 20px;
}

.replies-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

/* 回复输入框 */
.reply-composer {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.reply-composer .user-avatar {
    width: 40px;
    height: 40px;
}

.reply-input-wrapper {
    flex: 1;
}

.reply-input-wrapper textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.reply-input-wrapper textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.reply-options {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* 回复列表 */
.replies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reply-item {
    padding: 15px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.reply-header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.reply-header .user-avatar {
    width: 36px;
    height: 36px;
}

.reply-header .user-info {
    flex: 1;
}

.reply-header .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.reply-header .reply-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.floor-number {
    font-size: 12px;
    color: #94a3b8;
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.reply-content {
    margin-bottom: 10px;
}

.reply-quote {
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.6);
    border-left: 3px solid #00bfff;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.quote-author {
    color: #00bfff;
    font-weight: 500;
}

.quote-content {
    color: #94a3b8;
    margin-left: 5px;
}

.reply-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d8;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.reply-images {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

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

.reply-footer {
    display: flex;
    gap: 15px;
}

.reply-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.reply-action:hover {
    background: rgba(0, 191, 255, 0.1);
}

.reply-action.active {
    color: #00bfff;
}

/* 右侧边栏 */
.post-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-post-item {
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.related-post-item:hover {
    background: rgba(0, 191, 255, 0.1);
}

.related-post-title {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta {
    font-size: 12px;
    color: #94a3b8;
}

.related-post-meta span {
    margin-right: 5px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .post-detail-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .post-detail-layout {
        padding: 10px;
    }
    
    .post-detail-card,
    .replies-section {
        padding: 15px;
    }
    
    .post-detail-content .post-images {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==================== 模态框样式 ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #1a2e3b;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
}

.btn-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

.form-control:focus {
    outline: none;
    border-color: #00bfff;
}

.form-control::placeholder {
    color: #64748b;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 191, 255, 0.1);
    color: #e2e8f0;
}

.btn-primary {
    background: #1976d2;
    color: #fff;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* 待审核频道样式 */
.channel-item.pending {
    opacity: 0.7;
}

.badge-pending {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 10px;
    background: #ffc107;
    color: #fff;
    border-radius: 3px;
    font-weight: 500;
}


/* 频道图标上传区域 */
.icon-upload-area {
    margin-top: 8px;
}

.icon-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.btn-remove-icon:hover {
    background: rgba(0, 0, 0, 0.8);
}

.btn-remove-icon .material-icons {
    font-size: 16px;
}

.icon-upload-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.icon-upload-placeholder:hover {
    border-color: #1976d2;
    background: #f0f7ff;
}

.icon-upload-placeholder .upload-icon {
    font-size: 48px;
    color: #999;
    margin-bottom: 12px;
}

.icon-upload-placeholder .upload-icon .material-icons {
    font-size: 48px;
}

.icon-upload-placeholder p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.icon-upload-placeholder small {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 0 20px;
}


/* 评论区域 */
.post-replies {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.replies-list {
    margin-bottom: 16px;
}

.reply-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

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

.reply-username {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

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

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

.reply-input-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.reply-input-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

.reply-input:focus {
    border-color: #1890ff;
}

.btn-submit-reply {
    padding: 8px 20px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-reply:hover {
    background: #40a9ff;
}


/* ============================================
   搜索页面
   ============================================ */
.search-tabs {
	display: flex;
	gap: 0;
	padding: 0 20px;
	background: transparent;
	border-bottom: 1px solid rgba(0, 191, 255, 0.2);
	margin-bottom: 20px;
}

.search-tab {
	padding: 12px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: #94a3b8;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s;
}

.search-tab:hover {
	color: #e2e8f0;
}

.search-tab.active {
	color: #00bfff;
	border-bottom-color: #00bfff;
	font-weight: 500;
}

.search-results {
	padding: 0 20px;
}

.search-section {
	margin-bottom: 30px;
}

.search-section-title {
	font-size: 18px;
	font-weight: 600;
	color: #e2e8f0;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #00bfff;
}

.channel-results {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.channel-result-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 15px;
	background: rgba(15, 23, 42, 0.8);
	border-radius: 8px;
	border: 1px solid rgba(0, 191, 255, 0.2);
	cursor: pointer;
	transition: all 0.2s;
}

.channel-result-item:hover {
	border-color: #00bfff;
	box-shadow: 0 2px 8px rgba(0, 191, 255, 0.1);
}

.channel-result-item .channel-icon-img {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}

.channel-result-item .channel-icon {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	background: rgba(15, 23, 42, 0.6);
	border-radius: 8px;
	flex-shrink: 0;
}

.channel-result-info {
	flex: 1;
	min-width: 0;
}

.channel-result-name {
	font-size: 16px;
	font-weight: 600;
	color: #e2e8f0;
	margin-bottom: 5px;
}

.channel-result-desc {
	font-size: 14px;
	color: #94a3b8;
	margin-bottom: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.channel-result-stats {
	font-size: 13px;
	color: #64748b;
}

.post-stat {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #94a3b8;
	font-size: 14px;
}

.post-stat span:first-child {
	font-size: 18px;
}


/* ============================================
   搜索下拉框
   ============================================ */
.forum-searchbar {
	position: relative;
}

.search-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	max-width: 600px;
	background: #1a2e3b;
	border: 1px solid rgba(0, 191, 255, 0.2);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	margin-top: 5px;
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
}

.search-dropdown-loading,
.search-dropdown-empty {
	padding: 20px;
	text-align: center;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.spinner-small {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-top-color: #00bfff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.search-dropdown-results {
	padding: 5px 0;
}

.search-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 15px;
	cursor: pointer;
	transition: background 0.2s;
}

.search-result-item:hover {
	background: rgba(0, 191, 255, 0.1);
}

.search-result-icon {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.search-result-icon-emoji {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	background: rgba(15, 23, 42, 0.6);
	border-radius: 6px;
	flex-shrink: 0;
}

.search-result-info {
	flex: 1;
	min-width: 0;
}

.search-result-name {
	font-size: 14px;
	font-weight: 500;
	color: #e2e8f0;
	margin-bottom: 2px;
}

.search-result-desc {
	font-size: 12px;
	color: #94a3b8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.keyword-input__left-icon {
	cursor: pointer;
}


/* ============================================
   互动通知面板样式
   ============================================ */

.interactions-panel {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.interactions-panel__header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #00bfff 0%, #0080cc 100%);
    color: #fff;
}

.interactions-panel__icon {
    font-size: 20px;
    margin-right: 8px;
}

.interactions-panel__title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.btn-clear-all {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-all:hover {
    background: rgba(255, 255, 255, 0.3);
}

.interactions-panel__list {
    max-height: 400px;
    overflow-y: auto;
}

.interaction-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    transition: background 0.2s;
    cursor: pointer;
}

.interaction-item:hover {
    background: rgba(0, 191, 255, 0.1);
}

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

.interaction-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.interaction-content {
    flex: 1;
    min-width: 0;
}

.interaction-text {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.interaction-text .user-name-holder {
    font-weight: 600;
    color: #00bfff;
}

.interaction-post-title {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.interaction-post-title a {
    color: #94a3b8;
    text-decoration: none;
}

.interaction-post-title a:hover {
    color: #00bfff;
    text-decoration: underline;
}

.interaction-time {
    font-size: 12px;
    color: #64748b;
}

/* 帖子卡片未读标记 */
.post-card.has-unread {
    border-left: 3px solid #00bfff;
}

.unread-badge {
    display: inline-flex;
    align-items: center;
    color: #ff4757;
    font-size: 12px;
    margin-left: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .interactions-panel {
        margin: 10px;
    }
    
    .interactions-panel__list {
        max-height: 300px;
    }
    
    .interaction-avatar {
        width: 36px;
        height: 36px;
    }
}


/* ============================================
   个人资料页面 - 论坛点赞区域样式
   ============================================ */

/* 外层包装器 - 完全独立的容器 */
.profile-forum-likes-wrapper {
	width: 100%;
	display: block;
	background: transparent;
	min-height: 200px;
}

/* 论坛点赞容器 */
.forum-likes-container {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: 16px;
	background: transparent;
}

/* 论坛帖子卡片 - 整个卡片可点击 */
.forum-likes-container .forum-post-card {
	background: linear-gradient(135deg, rgba(26, 42, 58, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
	border: 1px solid rgba(0, 191, 255, 0.2);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	transition: all 0.2s ease;
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.forum-likes-container .forum-post-card:hover {
	box-shadow: 0 4px 12px rgba(0, 191, 255, 0.15);
	border-color: #00bfff;
	transform: translateY(-2px);
}

.forum-likes-container .forum-post-card__header {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.forum-likes-container .forum-post-card__header .user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 12px;
	object-fit: cover;
	flex-shrink: 0;
}

.forum-likes-container .forum-post-card__header .user-info {
	flex: 1;
	min-width: 0;
}

.forum-likes-container .forum-post-card__header .user-name {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
	line-height: 1.3;
}

.forum-likes-container .forum-post-card__header .user-name span {
	color: #e2e8f0;
	text-decoration: none;
}

.forum-likes-container .forum-post-card:hover .forum-post-card__header .user-name span {
	color: #00bfff;
}

.forum-likes-container .forum-post-card__header .post-meta {
	font-size: 13px;
	color: #94a3b8;
	display: flex;
	align-items: center;
	gap: 6px;
	line-height: 1.3;
}

.forum-likes-container .forum-post-card__header .channel-name {
	font-weight: 500;
	color: #00bfff;
}

.forum-likes-container .forum-post-card__header .separator {
	color: rgba(255, 255, 255, 0.2);
}

.forum-likes-container .forum-post-card__content {
	display: block;
	text-decoration: none;
	color: inherit;
	margin-bottom: 12px;
}

.forum-likes-container .forum-post-card__content p {
	font-size: 15px;
	line-height: 1.5;
	color: #d4d4d8;
	margin: 0 0 12px 0;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.forum-likes-container .forum-post-card__content .post-images {
	display: grid;
	gap: 8px;
	margin-top: 12px;
	position: relative;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.forum-likes-container .forum-post-card__content .post-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e1e8ed;
	display: block;
}

.forum-likes-container .forum-post-card__content .more-images {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
}

.forum-likes-container .forum-post-card__footer {
	border-top: 1px solid #e1e8ed;
	padding-top: 12px;
	margin-top: 12px;
}

.forum-likes-container .forum-post-card__footer .post-stats {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.forum-likes-container .forum-post-card__footer .stat-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #657786;
	line-height: 1;
}

.forum-likes-container .forum-post-card__footer .stat-item svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.forum-likes-container .forum-post-card__footer .stat-item span {
	font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.forum-likes-container {
		padding: 8px;
	}
	
	.forum-likes-container .forum-post-card {
		padding: 12px;
		border-radius: 8px;
	}

	.forum-likes-container .forum-post-card__header .user-avatar {
		width: 36px;
		height: 36px;
	}

	.forum-likes-container .forum-post-card__content p {
		font-size: 14px;
	}

	.forum-likes-container .forum-post-card__content .post-image {
		height: 150px;
	}

	.forum-likes-container .forum-post-card__footer .post-stats {
		gap: 16px;
	}

	.forum-likes-container .forum-post-card__footer .stat-item {
		font-size: 13px;
	}
}


/* ============================================
   管理员操作按钮样式
   ============================================ */

.admin-actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.admin-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	color: #666;
}

.admin-action-btn:hover {
	background: #f5f5f5;
}

.admin-action-btn.delete {
	color: #ff4d4f;
	border-color: #ffccc7;
}

.admin-action-btn.delete:hover {
	background: #fff1f0;
	border-color: #ff4d4f;
}

.admin-action-btn.ban {
	color: #fa8c16;
	border-color: #ffd591;
}

.admin-action-btn.ban:hover {
	background: #fff7e6;
	border-color: #fa8c16;
}

.admin-action-btn .material-icons {
	font-size: 18px;
}


/* ============================================
   禁言对话框样式
   ============================================ */

.ban-modal {
	max-width: 480px;
}

.ban-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px;
	background: #f7f7f7;
	border-radius: 8px;
	margin-bottom: 20px;
}

.ban-user-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.ban-user-name {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.duration-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.duration-btn {
	padding: 10px;
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	color: #666;
}

.duration-btn:hover {
	background: #e8e8e8;
	border-color: #d0d0d0;
}

.duration-btn.active {
	background: #fff7e6;
	border-color: #fa8c16;
	color: #fa8c16;
	font-weight: 600;
}

.btn-danger {
	background: #ff4d4f;
	color: #fff;
}

.btn-danger:hover {
	background: #ff7875;
}

.btn-danger:disabled {
	background: #ffccc7;
	cursor: not-allowed;
}


/* ============================================
   管理员面板 - 禁言用户列表
   ============================================ */

.banned-users-section {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid #f0f0f0;
}

.banned-users-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.banned-user-card {
	background: rgba(15, 23, 42, 0.8);
	border: 1px solid rgba(0, 191, 255, 0.2);
	border-left: 4px solid #ff4d4f;
	border-radius: 8px;
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 15px;
}

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

.banned-user-info {
	flex: 1;
	min-width: 0;
}

.banned-user-name {
	font-size: 15px;
	font-weight: 600;
	color: #e2e8f0;
	margin-bottom: 4px;
}

.banned-user-reason {
	font-size: 13px;
	color: #94a3b8;
	margin-bottom: 4px;
}

.banned-user-time {
	font-size: 12px;
	color: #64748b;
}

.ban-expires {
	font-size: 13px;
	color: #fa8c16;
	font-weight: 500;
	padding: 4px 10px;
	background: rgba(250, 140, 22, 0.1);
	border-radius: 4px;
	white-space: nowrap;
}

.btn-unban {
	padding: 8px 16px;
	background: #52c41a;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.btn-unban:hover {
	background: #73d13d;
}

.empty-banned-list {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

.empty-banned-list .material-icons {
	font-size: 48px;
	color: #d9d9d9;
	margin-bottom: 10px;
}


/* 响应式 */
@media (max-width: 768px) {
	.duration-options {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.banned-user-card {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.ban-expires,
	.btn-unban {
		width: 100%;
		text-align: center;
	}
}

/* 可点击元素样式 */
.clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.clickable:hover {
    opacity: 0.8;
}

.post-card__header .user-avatar.clickable {
    cursor: pointer;
}

.post-card__header .user-avatar.clickable:hover {
    opacity: 0.85;
    transform: scale(1.05);
    transition: all 0.2s;
}

.post-card__header .user-name.clickable {
    cursor: pointer;
}

.post-card__header .user-name.clickable:hover {
    color: #1976d2;
}

.reply-avatar.clickable {
    cursor: pointer;
}

.reply-avatar.clickable:hover {
    opacity: 0.85;
    transform: scale(1.05);
    transition: all 0.2s;
}

.reply-username.clickable {
    cursor: pointer;
}

.reply-username.clickable:hover {
    color: #1976d2;
}


/* 发帖图片预览 */
.post-images-preview {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 15px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 6px;
}

.preview-image-item {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid #e0e0e0;
}

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

.btn-remove-image {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s;
}

.btn-remove-image:hover {
	background: rgba(0, 0, 0, 0.8);
}

.btn-remove-image .material-icons {
	font-size: 16px;
}


/* 分享弹窗样式 - 美化版 */
.share-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: none; /* 默认隐藏 */
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.2s ease-out;
}

/* 显示状态 */
.share-modal[style*="display: flex"],
.share-modal[style*="display:flex"] {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.share-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
    animation: fadeIn 0.2s ease-out;
}

.share-modal-content {
    position: relative !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 100000 !important;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

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

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    border-bottom: none;
}

.share-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-modal-header h3::before {
    content: '🔗';
    font-size: 24px;
}

.share-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.share-modal-body {
    padding: 28px;
}

.share-modal-body p {
    color: #536471;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.share-link-box {
    display: flex;
    gap: 12px;
    align-items: stretch;
    background: #f7f9fa;
    padding: 8px;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
}

.share-link-box:focus-within {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 4px rgba(29, 161, 242, 0.1);
}

.share-link-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.8);
    outline: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.share-link-box input:focus {
    background: rgba(15, 23, 42, 0.9);
}

.share-link-box .copy-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
    position: relative;
    overflow: hidden;
}

.share-link-box .copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-link-box .copy-btn:hover {
    background: linear-gradient(135deg, #0d8bd9 0%, #0a7bc4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.4);
}

.share-link-box .copy-btn:active::before {
    width: 300px;
    height: 300px;
}

.share-link-box .copy-btn:active {
    transform: translateY(0);
}

/* 复制成功提示动画 */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.share-link-box .copy-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: successPulse 0.3s ease-out;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        max-width: none;
        margin: 0 10px;
    }
    
    .share-modal-header {
        padding: 20px 20px;
    }
    
    .share-modal-header h3 {
        font-size: 18px;
    }
    
    .share-modal-body {
        padding: 20px;
    }
    
    .share-link-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-link-box .copy-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .share-modal-content {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .share-link-box {
        background: #2d2d2d;
        border-color: #3d3d3d;
    }
    
    .share-link-box input {
        background: #1a1a1a;
        color: #ffffff;
    }
}


/* 广告位样式 */
.ad-banner-container {
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
}

.ad-banner-editable {
	position: relative;
}

.ad-banner-link img,
.ad-banner-editable > a > img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	transition: transform 0.3s, box-shadow 0.3s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-banner-link:hover img,
.ad-banner-editable > a:hover > img {
	transform: scale(1.02);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ad-edit-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	opacity: 0;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.ad-edit-btn:hover {
	background: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
}

.ad-banner-editable:hover .ad-edit-btn {
	opacity: 1;
}

.ad-placeholder {
	background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
	border: 2px dashed #ccc;
	border-radius: 12px;
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ad-placeholder:hover {
	background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
	border-color: #999;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ad-placeholder .material-icons {
	font-size: 48px;
	color: #999;
	margin-bottom: 10px;
}

.ad-placeholder p {
	color: #666;
	font-size: 14px;
	margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.ad-banner-container {
		margin-bottom: 15px;
	}
	
	.ad-edit-btn {
		width: 36px;
		height: 36px;
		opacity: 1;
	}
	
	.ad-placeholder {
		padding: 30px 15px;
		min-height: 120px;
	}
	
	.ad-placeholder .material-icons {
		font-size: 36px;
	}
}
