/* ============================================================
 * components.css — 徽章、按钮、分页、模态框、状态
 * ============================================================ */

/* 徽章 */
.forum-badge {
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'VT323', monospace;
    font-size: 0.84rem;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

.forum-badge-pin {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.forum-badge-highlight {
    background: rgba(224, 192, 96, 0.2);
    color: #e0c060;
    border: 1px solid rgba(224, 192, 96, 0.3);
}

.forum-badge-locked {
    background: rgba(150, 150, 150, 0.2);
    color: #999;
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.forum-badge-featured {
    background: rgba(124, 252, 0, 0.15);
    color: #7cfc00;
    border: 1px solid rgba(124, 252, 0, 0.3);
}

.forum-badge-category {
    color: #fff;
    border: none;
    font-size: 0.78rem;
}

/* 按钮 */
.forum-page .forum-btn,
.forum-modal .forum-btn,
.admin-container .forum-btn {
    padding: 6px 18px !important;
    border-radius: 2px !important;
    font-family: 'VT323', monospace !important;
    font-size: 1.14rem !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    border: 1px solid !important;
}

.forum-btn-submit {
    background: rgba(74, 140, 63, 0.8) !important;
    border-color: #5ca050 !important;
    color: #fff !important;
}

.forum-btn-submit:hover {
    background: rgba(92, 160, 80, 0.9) !important;
    border-color: #7cfc00 !important;
}

.forum-btn-cancel {
    background: transparent !important;
    border-color: rgba(184, 176, 160, 0.3) !important;
    color: #b8b0a0 !important;
}

.forum-btn-cancel:hover {
    border-color: #e0c060 !important;
    color: #e0c060 !important;
}

.forum-btn-danger {
    background: rgba(200, 60, 60, 0.6) !important;
    border-color: rgba(200, 60, 60, 0.8) !important;
    color: #ff8888 !important;
}

.forum-btn-danger:hover {
    background: rgba(200, 60, 60, 0.8) !important;
}

.forum-btn-new-post {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: rgba(74, 140, 63, 0.7);
    border: 1px solid #5ca050;
    border-radius: 2px;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.08rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.forum-btn-new-post:hover {
    background: rgba(92, 160, 80, 0.85);
    border-color: #7cfc00;
}

/* 分页 */
.forum-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    padding: 12px 0;
}

.forum-page-btn {
    padding: 4px 12px;
    background: rgba(22, 20, 17, 0.9);
    border: 1px solid rgba(224, 192, 96, 0.12);
    border-radius: 2px;
    color: #b8b0a0;
    font-family: 'VT323', monospace;
    font-size: 1.08rem;
    cursor: pointer;
    transition: all 0.15s;
}

.forum-page-btn:hover {
    border-color: #e0c060;
    color: #e0c060;
}

.forum-page-btn.active {
    background: rgba(224, 192, 96, 0.15);
    border-color: #e0c060;
    color: #e0c060;
}

.forum-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 模态框 */
.forum-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.forum-modal-content {
    position: relative;
    background: rgba(40, 35, 28, 0.98);
    border: 2px solid rgba(224, 192, 96, 0.3);
    border-radius: 2px;
    padding: 24px;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.forum-modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.forum-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 12px;
}
.forum-modal-header h3 { margin: 0; }
.forum-modal-close {
    font-size: 1.6rem;
    color: #b8b0a0;
    cursor: pointer;
    line-height: 1;
}
.forum-modal-close:hover { color: #e0c060; }

.forum-modal-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(224, 192, 96, 0.1);
}

.forum-modal-content h3 {
    font-family: 'VT323', monospace;
    font-size: 1.56rem;
    color: #e0c060;
    margin: 0 0 16px;
}

.forum-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.forum-editor-upload-modal {
    width: 460px;
}

.forum-editor-upload-help {
    margin-bottom: 10px;
    color: rgba(184, 176, 160, 0.75);
    font-size: 0.98rem;
    line-height: 1.5;
}

.forum-editor-upload-picked {
    margin-top: 8px;
    padding: 8px 10px;
    color: #e0d8c8;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(224, 192, 96, 0.12);
    font-size: 0.96rem;
}

.forum-editor-hide-mode-item {
    display: block;
    margin: 8px 0;
    color: #e0d8c8;
    font-size: 0.86rem;
}

.forum-editor-hide-mode-item input {
    margin-right: 6px;
}

/* 状态 */
.forum-user-info {
    font-family: 'VT323', monospace;
    font-size: 1.08rem;
    color: #7cfc00;
    padding: 0 8px;
}

.forum-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(184, 176, 160, 0.5);
    font-family: 'VT323', monospace;
    font-size: 1.32rem;
    background: rgba(22, 20, 17, 0.6);
    border: 1px dashed rgba(224, 192, 96, 0.1);
    border-radius: 2px;
}

.forum-loading {
    text-align: center;
    padding: 40px;
    color: rgba(224, 192, 96, 0.6);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

/* 管理操作按钮 */
.forum-admin-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.forum-admin-btn {
    padding: 3px 10px !important;
    font-size: 0.96rem !important;
    border: 1px solid rgba(224, 192, 96, 0.2) !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: #b8b0a0 !important;
    font-family: 'VT323', monospace !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.forum-admin-btn:hover {
    border-color: #e0c060 !important;
    color: #e0c060 !important;
}

.forum-admin-btn.danger {
    color: #ff6464 !important;
    border-color: rgba(255, 100, 100, 0.2) !important;
}

.forum-admin-btn.danger:hover {
    border-color: #ff6464 !important;
}

/* 点赞/收藏/关注 */
.forum-action-bar {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(224, 192, 96, 0.08);
    margin-top: 8px;
    justify-content: flex-end;
}

.forum-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(40, 35, 28, 0.8);
    border: 1px solid rgba(224, 192, 96, 0.1);
    border-radius: 2px;
    color: rgba(184, 176, 160, 0.6);
    font-family: 'VT323', monospace;
    font-size: 1.02rem;
    cursor: pointer;
    transition: all 0.15s;
}

.forum-action-btn svg {
    width: 16px;
    height: 16px;
}

.forum-action-btn:hover {
    border-color: rgba(224, 192, 96, 0.3);
    color: #d0c8b0;
}

.forum-action-btn.active {
    background: rgba(224, 192, 96, 0.12);
    border-color: rgba(224, 192, 96, 0.3);
    color: #e0c060;
}

/* 更新历史 */
.forum-updates-header {
    padding: 10px 0 6px;
    border-bottom: 1px solid rgba(224, 192, 96, 0.1);
    margin-bottom: 8px;
}

.forum-updates-header h3 {
    font-family: 'VT323', monospace;
    font-size: 1.32rem;
    color: #e0c060;
    margin: 0;
}

.forum-update-item {
    padding: 10px 12px;
    background: rgba(22, 20, 17, 0.6);
    border: 1px solid rgba(224, 192, 96, 0.08);
    border-radius: 2px;
    margin-bottom: 6px;
}

.forum-update-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.forum-update-version {
    padding: 1px 6px;
    background: rgba(124, 252, 0, 0.1);
    border: 1px solid rgba(124, 252, 0, 0.2);
    border-radius: 2px;
    color: #7cfc00;
    font-family: 'VT323', monospace;
    font-size: 0.96rem;
}

.forum-update-title {
    font-family: 'VT323', monospace;
    font-size: 1.08rem;
    color: #d0c8b0;
}

.forum-update-time {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: rgba(184, 176, 160, 0.4);
}

.forum-update-content {
    font-size: 1.02rem;
    color: #b8b0a0;
    line-height: 1.5;
}

.forum-updates-more {
    text-align: center;
    padding: 8px 0;
}

.forum-updates-more a {
    font-family: 'VT323', monospace;
    font-size: 1.02rem;
    color: rgba(124, 252, 0, 0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.forum-updates-more a:hover {
    color: #7cfc00;
}

/* 头像下拉菜单 */
.header-user-wrap {
    position: relative;
}

.header-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(40, 35, 28, 0.98);
    border: 1px solid rgba(224, 192, 96, 0.2);
    border-radius: 2px;
    z-index: 999;
    margin-top: 4px;
    width: 300px;
}

.header-dropdown.show {
    display: block;
}

.hd-tabs {
    display: flex;
    border-bottom: 1px solid rgba(224, 192, 96, 0.1);
}

.hd-tab {
    flex: 1;
    padding: 7px 0;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 0.96rem;
    color: rgba(184, 176, 160, 0.5);
    text-decoration: none;
    transition: all 0.15s;
    border-bottom: 2px solid transparent;
}

.hd-tab:hover {
    color: #e0c060;
}

.hd-tab.active {
    color: #e0c060;
    border-bottom-color: #e0c060;
}

.hd-list {
    max-height: 320px;
    overflow-y: auto;
}

.hd-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(224, 192, 96, 0.05);
}

.hd-notify-item:hover {
    background: rgba(224, 192, 96, 0.06);
}

.hd-notify-item.hd-unread {
    background: rgba(224, 192, 96, 0.08);
    position: relative;
}
.hd-notify-item.hd-unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e04040;
}
.hd-notify-item.hd-unread .hd-notify-text {
    color: #e8e0d0;
    font-weight: bold;
}

.hd-notify-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.hd-notify-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(224, 192, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0c060;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
}

.hd-notify-text {
    font-family: 'VT323', monospace;
    font-size: 0.96rem;
    color: #b8b0a0;
    line-height: 1.35;
    flex: 1;
}

.hd-loading, .hd-empty {
    padding: 20px;
    text-align: center;
    color: rgba(184, 176, 160, 0.4);
    font-family: 'VT323', monospace;
    font-size: 1.02rem;
}

.hd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(224, 192, 96, 0.1);
    padding: 6px 10px;
}

.hd-footer-btn {
    padding: 3px 10px;
    background: transparent;
    border: 1px solid rgba(224, 192, 96, 0.15);
    border-radius: 2px;
    color: rgba(184, 176, 160, 0.6);
    font-family: 'VT323', monospace;
    font-size: 0.96rem;
    cursor: pointer;
    transition: all 0.15s;
}

.hd-footer-btn:hover {
    border-color: #e0c060;
    color: #e0c060;
}

.hd-footer-links {
    display: flex;
    gap: 10px;
}

.hd-footer-link {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: rgba(184, 176, 160, 0.45);
    text-decoration: none;
    transition: color 0.15s;
}

.hd-footer-link:hover {
    color: #e0c060;
}

.header-unread-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    background: #ff4444;
    border-radius: 7px;
    color: #fff;
    font-size: 0.6rem;
    font-family: 'VT323', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 用户资料卡 popover */
.forum-user-popover {
    position: absolute;
    z-index: 9999;
    width: 300px;
    background: #1e1c18;
    border: 1px solid rgba(224, 192, 96, 0.15);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.forum-user-card {
    padding: 16px;
}

.forum-user-card-loading {
    padding: 30px;
    text-align: center;
    color: rgba(184, 176, 160, 0.5);
    font-family: 'VT323', monospace;
}

.fuc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.fuc-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(224, 192, 96, 0.2);
}

.fuc-name {
    font-family: 'VT323', monospace;
    font-size: 1.38rem;
    color: #e0c060;
}

.fuc-role {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: rgba(124, 252, 0, 0.7);
    margin-top: 2px;
}

.fuc-sig {
    font-size: 0.98rem;
    color: rgba(184, 176, 160, 0.6);
    font-style: italic;
    margin-bottom: 12px;
    padding: 6px 0;
    border-top: 1px solid rgba(224, 192, 96, 0.08);
}

.fuc-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(224, 192, 96, 0.1);
    border-bottom: 1px solid rgba(224, 192, 96, 0.1);
}

.fuc-stat {
    flex: 1;
    text-align: center;
    padding: 10px 0;
}

.fuc-stat-val {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 1.32rem;
    color: #e0c060;
}

.fuc-stat-label {
    font-family: 'VT323', monospace;
    font-size: 0.86rem;
    color: rgba(184, 176, 160, 0.5);
}

.fuc-meta {
    font-family: 'VT323', monospace;
    font-size: 0.94rem;
    color: rgba(184, 176, 160, 0.4);
    margin-top: 10px;
    text-align: center;
}

.fuc-actions {
    margin-top: 10px;
    text-align: center;
    border-top: 1px solid rgba(224, 192, 96, 0.08);
    padding-top: 10px;
}

.fuc-action-link {
    font-family: 'VT323', monospace;
    font-size: 1.02rem;
    color: #7cfc00;
    text-decoration: none;
}

.fuc-action-link:hover {
    text-decoration: underline;
}

.fuc-action-btn {
    display: inline-block;
    font-family: 'VT323', monospace;
    font-size: 0.96rem;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.fuc-action-btn:hover { opacity: 0.8; }
.fuc-btn-mute {
    color: #fff;
    background: rgba(224, 160, 32, 0.7);
}
.fuc-btn-ban {
    color: #fff;
    background: rgba(200, 50, 50, 0.7);
}

/* 附件下载区 */
.forum-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.forum-attach-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.forum-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-family: 'VT323', monospace;
    font-size: 0.98rem;
    color: #7cfc00;
    background: rgba(124, 252, 0, 0.08);
    border: 1px solid rgba(124, 252, 0, 0.2);
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.forum-attach-btn:hover {
    background: rgba(124, 252, 0, 0.15);
}

.forum-attach-btn.locked {
    color: #e0c060;
    background: rgba(224, 192, 96, 0.08);
    border-color: rgba(224, 192, 96, 0.2);
}

.forum-attach-btn.locked:hover {
    background: rgba(224, 192, 96, 0.15);
}

.forum-attach-downloads {
    font-family: 'VT323', monospace;
    font-size: 0.86rem;
    color: rgba(184, 176, 160, 0.4);
}

.forum-inline-file-link,
.forum-post-body .forum-inline-file-link,
.forum-update-content .forum-inline-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: #7cfc00;
    background: rgba(124, 252, 0, 0.08);
    border: 1px solid rgba(124, 252, 0, 0.18);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 0.98rem;
}

.forum-inline-file-link:hover {
    background: rgba(124, 252, 0, 0.15);
}

.forum-inline-file-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: #1a1612;
    background: #e0c060;
    border: 1px solid #c8a848;
    font-family: 'VT323', monospace;
    font-size: 0.98rem;
    cursor: pointer;
}

.forum-inline-file-buy:hover {
    background: #c8a848;
}

.forum-inline-file-missing {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    color: #b8b0a0;
    background: rgba(184, 176, 160, 0.08);
    border: 1px solid rgba(184, 176, 160, 0.12);
    font-family: 'VT323', monospace;
    font-size: 0.98rem;
}

/* 隐藏内容锁定块 */
.paid-content-block,
.hidden-content-block {
    border: 2px dashed rgba(224, 192, 96, 0.2);
    background: rgba(224, 192, 96, 0.05);
    padding: 12px;
    border-radius: 4px;
    margin: 12px 0;
}

.paid-content-block.locked,
.hidden-content-block.locked {
    border-color: rgba(224, 192, 96, 0.3);
    background: rgba(224, 192, 96, 0.08);
}

.hidden-content-block[data-hide-mode="comment"] {
    border-color: rgba(122, 156, 198, 0.35);
    background: rgba(122, 156, 198, 0.10);
}

.hidden-lock-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #e0d8c8;
    font-family: 'VT323', monospace;
    font-size: 1.08rem;
}

.hidden-lock-hint.paid {
    color: #e0c060;
}

.hidden-lock-hint.comment {
    color: #7a9cc6;
}

.forum-paid-buy-btn {
    padding: 4px 14px;
    font-family: 'VT323', monospace;
    font-size: 1.02rem;
    color: #1a1612;
    background: #e0c060;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.forum-paid-buy-btn:hover {
    background: #c8a848;
}

/* 账单 */
.hd-billing-balance {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(184,176,160,0.15);
    font-size: 1.02rem;
    color: #b8b0a0;
}
.hd-billing-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(184,176,160,0.08);
    font-size: 0.98rem;
    color: #b8b0a0;
}
.hd-billing-item:hover {
    background: rgba(184,176,160,0.05);
}
.hd-billing-desc {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-billing-amount {
    font-weight: bold;
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
}
.hd-billing-time {
    color: rgba(184,176,160,0.5);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 首页推荐 */
/* 首页推荐轮播 */
.forum-featured-section {
    margin-bottom: 16px;
}
.feat-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(224,192,96,0.12);
    background: rgba(0,0,0,0.2);
}
.feat-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.feat-carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    text-decoration: none;
    color: #b8b0a0;
    position: relative;
    overflow: hidden;
}
/* 动态背景图层：只在带 has-bg 的 slide 上生成，避免无图 slide 出现黑色遮罩挡住 fallback 渐变 */
.feat-carousel-slide.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--feat-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform;
    animation: featKenBurns 18s ease-in-out infinite alternate;
}
/* 左侧渐变遮罩层：保证文字在图上可读（与原 inline 渐变一致） */
.feat-carousel-slide.has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20,18,14,0.92) 40%, rgba(20,18,14,0.3));
    z-index: 1;
    pointer-events: none;
}
.feat-carousel-content {
    padding: 24px 28px;
    width: 55%;
    position: relative;
    z-index: 2;
}
/* Ken Burns：景深放大 + 轻微平移，18s 循环、alternate 反向避免跳帧 */
@keyframes featKenBurns {
    0% {
        transform: scale(1.06) translate(0%, 0%);
    }
    50% {
        transform: scale(1.14) translate(-1.5%, -1%);
    }
    100% {
        transform: scale(1.22) translate(1.2%, 1.2%);
    }
}
/* 尊重用户"减少动态效果"的系统偏好（无障碍） */
@media (prefers-reduced-motion: reduce) {
    .feat-carousel-slide.has-bg::before {
        animation: none;
        transform: scale(1.05);
    }
}
.feat-carousel-badge {
    display: inline-block;
    background: rgba(224,192,96,0.2);
    color: #e0c060;
    font-size: 0.84rem;
    padding: 2px 8px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.feat-carousel-title {
    font-size: 1.44rem;
    font-weight: bold;
    color: #e0c060;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feat-carousel-excerpt {
    font-size: 0.96rem;
    color: rgba(184,176,160,0.7);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feat-carousel-meta {
    font-size: 0.86rem;
    color: rgba(184,176,160,0.5);
}
.feat-carousel-dots {
    position: absolute;
    bottom: 10px;
    right: 16px;
    display: flex;
    gap: 6px;
}
.feat-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(224,192,96,0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.feat-carousel-dot.active {
    background: #e0c060;
}
.feat-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: rgba(224,192,96,0.7);
    border: none;
    cursor: pointer;
    font-size: 1.32rem;
    width: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.feat-carousel-arrow:hover {
    background: rgba(0,0,0,0.6);
    color: #e0c060;
}
.feat-arrow-left { left: 0; }
.feat-arrow-right { right: 0; }

/* 版区推荐大卡片轮播 */
.board-feat-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}
.board-feat-track {
    display: flex;
    transition: transform 0.4s ease;
}
.board-feat-slide {
    min-width: 100%;
    display: flex;
    gap: 12px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.board-feat-card {
    flex: 1;
    display: flex;
    gap: 14px;
    padding: 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(224,192,96,0.1);
    text-decoration: none;
    color: #b8b0a0;
    transition: background 0.15s;
    min-width: 0;
}
.board-feat-card:hover {
    background: rgba(224,192,96,0.08);
}
.board-feat-cover {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.board-feat-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.board-feat-name {
    font-size: 1.08rem;
    font-weight: bold;
    color: #e0c060;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.board-feat-desc {
    font-size: 0.9rem;
    color: rgba(184,176,160,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.board-feat-meta {
    font-size: 0.84rem;
    color: rgba(184,176,160,0.4);
}
.board-feat-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.board-feat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(224,192,96,0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.board-feat-dot.active {
    background: #e0c060;
}

/* 推荐设置弹窗 */
.feat-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feat-modal {
    background: #1e1c18;
    border: 1px solid rgba(224,192,96,0.2);
    padding: 20px 24px;
    min-width: 360px;
    max-width: 440px;
}
.feat-modal-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e0c060;
    margin-bottom: 16px;
}
.feat-modal-row {
    margin-bottom: 12px;
}
.feat-modal-row label {
    display: block;
    font-size: 0.96rem;
    color: rgba(184,176,160,0.7);
    margin-bottom: 4px;
}
.feat-modal-row input[type="number"],
.feat-modal-row input[type="text"] {
    width: 100%;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(224,192,96,0.15);
    color: #b8b0a0;
    font-size: 1.02rem;
    box-sizing: border-box;
}
.feat-modal-btn-sm {
    padding: 4px 10px;
    background: rgba(224,192,96,0.1);
    border: 1px solid rgba(224,192,96,0.2);
    color: #e0c060;
    cursor: pointer;
    font-size: 0.94rem;
}
.feat-modal-btn-sm:hover {
    background: rgba(224,192,96,0.2);
}
.feat-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}
.feat-modal-btn {
    padding: 6px 18px;
    border: none;
    cursor: pointer;
    font-size: 1.02rem;
}
.feat-btn-cancel {
    background: rgba(255,255,255,0.06);
    color: rgba(184,176,160,0.7);
}
.feat-btn-confirm {
    background: rgba(224,192,96,0.2);
    color: #e0c060;
}
.feat-btn-confirm:hover {
    background: rgba(224,192,96,0.3);
}

/* 版区展开 */
.forum-board-expanded {
    margin-bottom: 12px;
    border: 1px solid rgba(224,192,96,0.1);
    background: rgba(0,0,0,0.15);
}
.forum-board-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(224,192,96,0.1);
}
.forum-board-expanded-name {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e0c060;
    font-size: 1.14rem;
    font-weight: bold;
}
.forum-board-expanded-name:hover {
    color: #f0d080;
}
.forum-board-expanded-count {
    font-size: 0.94rem;
    color: rgba(184,176,160,0.5);
}
.forum-board-expanded-posts {
    padding: 4px 0;
}
.forum-board-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    text-decoration: none;
    color: #b8b0a0;
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(224,192,96,0.04);
    transition: background 0.1s;
}
.forum-board-post-item:hover {
    background: rgba(224,192,96,0.06);
}
.forum-board-post-item:last-child {
    border-bottom: none;
}
.forum-board-post-left {
    flex: 1;
    overflow: hidden;
    margin-right: 10px;
}
.forum-board-post-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.forum-board-post-excerpt {
    display: block;
    font-size: 0.86rem;
    color: rgba(184,176,160,0.45);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
.forum-board-post-meta {
    font-size: 0.9rem;
    color: rgba(184,176,160,0.45);
    white-space: nowrap;
}

/* 消息列表 */
.msg-list { margin-top: 8px; }
.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #b8b0a0;
    border-bottom: 1px solid rgba(224,192,96,0.06);
    transition: background 0.15s;
}
.msg-item:hover { background: rgba(224,192,96,0.06); }
.msg-unread { background: rgba(124,252,0,0.03); }
.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.msg-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(224,192,96,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0c060;
    font-size: 1.02rem;
    flex-shrink: 0;
}
.msg-body { flex: 1; min-width: 0; }
.msg-content {
    font-size: 1.06rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msg-meta {
    font-size: 0.9rem;
    color: rgba(184,176,160,0.45);
    margin-top: 4px;
}
.msg-type { color: rgba(224,192,96,0.6); }

/* 消息子分类Tab */
.profile-msg-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(224,192,96,0.1);
    padding-bottom: 8px;
}
.profile-msg-tab {
    font-size: 0.98rem;
    color: rgba(184,176,160,0.5);
    cursor: pointer;
    padding: 4px 8px;
}
.profile-msg-tab:hover { color: #b8b0a0; }
.profile-msg-tab.active {
    color: #e0c060;
    border-bottom: 2px solid #e0c060;
}

/* 成长等级：所有论坛页面统一使用 */
.forum-tier-bronze { --forum-tier-color: #c78a52; --forum-tier-bg: rgba(199, 138, 82, 0.12); }
.forum-tier-silver { --forum-tier-color: #b8c2cc; --forum-tier-bg: rgba(184, 194, 204, 0.12); }
.forum-tier-gold { --forum-tier-color: #e0c060; --forum-tier-bg: rgba(224, 192, 96, 0.13); }
.forum-tier-emerald { --forum-tier-color: #63d68b; --forum-tier-bg: rgba(99, 214, 139, 0.12); }
.forum-tier-diamond { --forum-tier-color: #80d8e8; --forum-tier-bg: rgba(128, 216, 232, 0.12); }

.forum-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
    padding: 1px 6px;
    border: 1px solid var(--forum-tier-color, #c78a52);
    border-radius: 2px;
    background: var(--forum-tier-bg, rgba(199, 138, 82, 0.12));
    color: var(--forum-tier-color, #c78a52);
    font-family: 'VT323', monospace;
    font-size: 0.94rem;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.forum-level-badge.compact {
    min-height: 17px;
    padding: 0 5px;
    gap: 3px;
    font-size: 0.86rem;
}

.forum-level-badge svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex: 0 0 auto;
}

.forum-level-badge.compact svg {
    width: 11px;
    height: 11px;
}

.forum-author-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    vertical-align: middle;
}

.forum-avatar-frame {
    border-color: var(--forum-tier-color, rgba(224, 192, 96, 0.15)) !important;
    box-shadow: 0 0 0 2px var(--forum-tier-bg, transparent);
}

.forum-growth-panel {
    width: 100%;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(224, 192, 96, 0.1);
}

.forum-growth-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-growth-experience,
.forum-growth-disabled {
    color: rgba(224, 216, 200, 0.72);
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

.forum-growth-experience {
    color: rgba(224, 216, 200, 0.78);
}

.forum-growth-track {
    height: 6px;
    margin: 8px 0 7px;
    overflow: hidden;
    border: 1px solid rgba(224, 192, 96, 0.12);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
}

.forum-growth-fill {
    display: block;
    height: 100%;
    max-width: 100%;
    background: var(--forum-tier-color, #c78a52);
    transition: width 0.2s ease;
}

.forum-growth-inline {
    margin: 8px 0 10px;
    padding: 9px 0 8px;
    border-top: 1px solid rgba(224, 192, 96, 0.08);
    border-bottom: 1px solid rgba(224, 192, 96, 0.08);
}

.forum-growth-inline-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.forum-growth-inline-experience,
.forum-growth-inline-status {
    font-family: 'VT323', monospace;
    white-space: nowrap;
}

.forum-growth-inline-experience {
    color: rgba(224, 216, 200, 0.78);
    font-size: 0.98rem;
}

.forum-growth-inline-track {
    display: block;
    width: 100%;
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    border: 1px solid rgba(224, 192, 96, 0.12);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.32);
}

.forum-growth-inline-status {
    display: block;
    margin-top: 4px;
    color: rgba(184, 176, 160, 0.58);
    font-size: 0.88rem;
    text-align: right;
}

.forum-clickable-profile:focus-visible {
    outline: 2px solid #e0c060;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .forum-growth-fill { transition: none; }
}

.fuc-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
