
/* 顶部用户操作区 - 深色背景 */
.top-bar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 2px solid #667eea;
}

.top-links .service-link {
    color: #667eea;
}

.top-actions input[type="text"],
.top-actions input[type="password"] {
    border: 1px solid #4a5568;
    background: #2d3748;
}

.top-actions input:focus {
    border-color: #667eea;
}

.top-actions button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.top-actions .link-btn {
    color: #667eea;
}

/* Logo 区域 */
.logo-bar {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 3px solid #667eea;
}

.logo {
    color: #667eea;
}

.logo span {
    color: #2c3e50;
}

/* 主导航菜单 */
.main-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-item > a .badge {
    background: #ef4444;
    color: #fff;
}

.nav-item .submenu {
    border-top: 4px solid #667eea;
}

.nav-item .submenu a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.nav-item .submenu a .live-tag {
    color: #ef4444;
}

/* Banner 区 - 功能入口型 */
.main-banner .portal-btn {
    background: #667eea;
    color: #fff;
}

/* 消息通知 Banner */
.notice-banner {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.notice-banner-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.notice-banner-item:hover .notice-banner-title {
    color: #667eea;
}

.side-banner-item:nth-child(1) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.side-banner-item:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 左侧边栏 */
.block-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.menu-list a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.menu-list a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.menu-list a span.new {
    color: #ef4444;
}

/* 自定义内容 */
.content-header {
    background: #f8f8f8;
    border-bottom: 2px solid #667eea;
}

.content-header .more:hover {
    color: #667eea;
}

/* 消息通知新闻栏目 */
.notice-news {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.notice-news-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.notice-news-item:hover .notice-news-title {
    color: #667eea;
}

/* 直播列表 */
.live-item {
    border-left: 4px solid #667eea;
}

.live-status {
    background: #667eea;
    color: #fff;
}

.live-status.upcoming {
    background: #059669;
}

.live-score {
    color: #667eea;
}

/* 登录框 */
.login-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-input::placeholder {
    color: #999;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.login-links a {
    color: #667eea;
}

.remember-me input[type="checkbox"] {
    accent-color: #667eea;
}

/* 聊天室 */
.chat-user {
    color: #667eea;
}

.chat-text {
    color: #333;
}

.chat-time {
    color: #999;
}

.chat-input-area {
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

.chat-input {
    border: 1px solid #ddd;
}

.chat-input:focus {
    border-color: #667eea;
}

.chat-send {
    background: #667eea;
    color: #fff;
}

/* 活动专区 */
.activity-box {
    background: #fff;
    border: 1px solid #ddd;
}

.activity-item {
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:hover {
    background: #fafafa;
}

.activity-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.activity-info h5 {
    color: #333;
}

.activity-info p {
    color: #666;
}

/* 积分排行 */
.rank-item {
    border-bottom: 1px solid #e5e7eb;
}

.rank-num {
    background: #999;
    color: #fff;
}

.rank-item:nth-child(1) .rank-num {
    background: #ffd700;
}

.rank-item:nth-child(2) .rank-num {
    background: #c0c0c0;
}

.rank-item:nth-child(3) .rank-num {
    background: #cd7f32;
}

.rank-name {
    color: #333;
}

.rank-score {
    color: #667eea;
}

/* 底部区域 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #999;
    border-top: 3px solid #667eea;
}

.footer-section h4 {
    color: #fff;
    border-bottom: 2px solid #667eea;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #333;
}

/* 子导航栏样式 */
.sub-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sub-nav-item > a:hover,
.sub-nav-item > a.active {
    background: rgba(0,0,0,0.2);
    color: #fff;
}

/* 二级页面特定样式 */
.page-breadcrumb {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.page-breadcrumb a {
    color: #666;
}

.page-breadcrumb a:hover {
    color: #667eea;
}

.page-title {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px 15px;
}

.page-title h1 {
    color: #333;
}

.page-meta {
    color: #999;
}

.page-content {
    background: #fff;
    border: 1px solid #ddd;
}

.page-content h2 {
    color: #333;
    border-bottom: 1px solid #eee;
}

.page-content h3 {
    color: #333;
}

/* ========== 论坛板块样式 ========== */
/* 板块卡片样式 */
.board-card {
    background: #fff;
}

.board-header {
    background: #667eea;
    color: #fff;
}

.board-item {
    border-bottom: 1px solid #e5e7eb;
}

.board-item:hover {
    background: #f5f5f5;
}

.board-icon {
    background: #e0e7ff;
    color: #667eea;
}

.board-name a {
    color: #333;
}

.board-name a:hover {
    color: #667eea;
}

.board-desc {
    color: #999;
}

.board-stats {
    color: #999;
}

/* 帖子区块样式 */
.section-header {
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #ffffff 100%);
}

/* 选项卡导航样式 */
.tab-nav {
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

.tab-item:hover {
    color: #667eea;
    background: #fff;
    border-color: #e0e0e0;
    border-bottom-color: #fafafa;
}

.tab-item.active {
    color: #667eea;
    background: #fff;
    border-color: #667eea;
    border-bottom-color: #fff;
}

.result-count {
    color: #667eea;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 1px solid #667eea;
}

/* 帖子列表样式 */
.board-header {
    color: #333;
    border-top: 2px solid #667eea;
    border-bottom:1px solid #667eea;
    background: #fff;
}

.post-item-link:hover .post-item {
    background: #fafafa;
}

.post-item:hover {
    background: #fafafa;
}

/* 链接卡片样式 */
.link-item {
    background: #fff;
    border: 1px solid #e8e8e8;
}

.link-item:hover {
    border-color: #667eea;
}

.link-image {
    background: #f8f8f8;
}

.meta-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.meta-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #ced4da;
}

.meta-label {
    color: #666;
}

.meta-label svg {
    color: #667eea;
}

.meta-value {
    color: #333;
}

.link-actions {
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.link-actions a {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.link-actions a:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.post-id.large {
    color: #667eea;
}

.post-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.post-avatar.light {
    background: #e0e7ff;
}

.post-title a:hover {
    color: #667eea;
}

.badge-top {
    background: #e0e7ff;
    color: #667eea;
}

.badge-essence {
    background: #fee2e2;
    color: #dc2626;
}

.badge-lock {
    background: #f5f5f5;
    color: #757575;
}

/* 帖子详情页的post-meta样式 */
.stat-value.large {
    color: #ff6600;
}

/* 标签样式 */
.post-title a {
    color: #333;
    font-weight: bold;
}

.post-title .tag {
    display: inline-block;
	background: #ff6600;
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 2px;
    font-weight: normal;
}

.post-title .tag.news {
    background: #059669;
}

.post-title .tag.essence {
    background: #ef4444;
}

.post-title .tag.hot {
    background: #ea580c;
}

.post-title .tag.top {
    background: #667eea;
}

/* 快捷操作按钮 */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    background: #667eea;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #5568d3;
}

.action-btn.disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

/* 分页样式 */
.pagination {
    padding: 20px;
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.pagination span {
    border-color: transparent;
    cursor: default;
}

.pagination a:hover,
.pagination a.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 图集布局样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 15px;
}

.gallery-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

/* 活动列表样式 */
.active-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.active-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
}

.active-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.active-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.active-image {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
}

.active-image img {    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.active-item:hover .active-image img {
    transform: scale(1.1);
}

.activity-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.activity-status-ongoing {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.4);
}

.activity-status-ended {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    box-shadow: 0 3px 10px rgba(158, 158, 158, 0.4);
}

/* 活动图片遮罩层效果 */
.active-image::after {
    content: '已结束';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 已结束的活动始终显示遮罩层 */
.active-item.activity-ended .active-image::after {
    content: '已结束';
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

/* 进行中的活动悬停时显示查看详情 */
.active-item:not(.activity-ended):hover .active-image::after {
    content: '查看详情 +';
    opacity: 1;
    background: rgba(102, 126, 234, 0.7);
}

.active-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.active-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    height: auto;
    white-space: nowrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.active-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 12px;
}

.active-meta span {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-weight: 500;
    color: #495057;
    text-align: center;
}

/* 搜索框样式 */
.search-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    padding: 12px 32px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #5568d3;
}

/* 搜索提示 */
.tips-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.tips-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #667eea;
}

.tips-list {
    list-style: disc;
    padding-left: 20px;
    color: #666;
    line-height: 2;
}

/* 帖子详情样式 */
.post-detail {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.post-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* 帖子详情页的post-header特定样式 */
.post-detail .post-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.post-detail .post-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-detail .post-content {
    padding: 30px;
    max-width: 100%;
    overflow: hidden;
}

.post-detail .post-content p {
    margin-bottom: 15px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-detail .post-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-detail .post-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.post-detail .post-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* 帖子详情操作按钮优化 */
.post-actions .action-btn {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-actions .action-btn .icon {
    font-size: 16px;
    display: inline-block;
    line-height: 1;
}

.post-actions .action-btn .text {
    line-height: 1;
}

.post-actions .action-btn:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.post-actions .action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-actions .action-btn.liked {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #667eea;
    color: #667eea;
    font-weight: 500;
}

.post-actions .action-btn.disliked {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-color: #999;
    color: #666;
    font-weight: 500;
}

.post-actions .action-btn.dislike-btn:hover {
    border-color: #666;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 帖子导航按钮 */
.post-nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn .icon {
    font-size: 14px;
    line-height: 1;
}

.nav-btn .text {
    line-height: 1;
}

.nav-btn:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 回复列表样式 */
.reply-section {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}

.reply-section .section-header {
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(90deg, #fafafa 0%, #fff 100%);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    /* 重置继承的样式 */
    position: static;
    overflow: visible;
}

.reply-section .section-header::before {
    content: '💬';
    font-size: 18px;
}

.reply-section .section-header::after {
    /* 移除伪元素，避免与基础样式冲突 */
    display: none;
}

.reply-list {
    padding: 0;
}

.reply-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.reply-item:hover {
    background: linear-gradient(90deg, #fafafa 0%, #fff 100%);
    padding-left: 28px;
}

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

.reply-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
    font-weight: 600;
    border: 3px solid #e0e7ff;
}

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

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.reply-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.reply-header > div:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.reply-user {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-floor {
    font-size: 12px;
    color: #999;
    padding: 4px 8px;
/*    background: #f5f5f5;*/
    border-radius: 4px;
    font-weight: 500;
}

.reply-best {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reply-best::before {
    content: '🏆';
}

.reply-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.reply-content p:last-child {
    margin-bottom: 0;
}

.reply-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reply-action {
    padding: 6px 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reply-action:hover {
    background: #e0e7ff;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.reply-action:active {
    transform: translateY(0);
}

.reply-action.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

/* 回复框样式 */
.reply-box {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

.reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
}

.reply-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.reply-submit {
    margin-top: 15px;
}

.submit-btn {
    padding: 10px 30px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.submit-btn:hover {
    background: #5568d3;
}

/* 发帖表单样式 */
.post-form {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.form-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.form-title {
    font-size: 18px;
    font-weight: bold;
}

.form-body {
    padding: 30px;
}

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

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .required {
    color: #f44336;
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    min-height: 300px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 标签输入 */
.tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 42px;
}

.tags-input:focus-within {
    border-color: #667eea;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #e0e7ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
	display: inline-flex;
    align-items: center;
    gap: 6px;
	white-space: nowrap;
}

.tag-item .remove {
    cursor: pointer;
}

.tag-input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* 工具栏 */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tool-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.tool-btn:hover {
    background: #e0e7ff;
    border-color: #667eea;
}

/* 表单底部 */
.form-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.form-tips {
    font-size: 13px;
    color: #999;
}

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

.portal-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.portal-btn-primary {
    background: #667eea;
    color: #fff;
}

.portal-btn-primary:hover {
    background: #5568d3;
}

.portal-btn-default {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.portal-btn-default:hover {
    background: #f5f5f5;
}

/* 错误提示 */
.error-msg {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
    border-color: #f44336;
}

.form-group.has-error .error-msg {
    display: block;
}

/* 空状态和无结果 */
.empty,
.no-result {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-result {
    padding: 60px 20px;
}

.empty-icon,
.no-result-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.no-result-icon {
    margin-bottom: 20px;
}

.empty-text,
.no-result-text {
    font-size: 14px;
}

.no-result-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-result-tips {
    font-size: 14px;
}

/* 辅助样式类 */
.text-sm {
    font-size: 12px;
}

.text-base {
    font-size: 14px;
}

.text-gray-500 {
    color: #999;
}

.font-bold {
    font-weight: bold;
}

.mb-4 {
    margin-bottom: 15px;
}

.text-orange {
    color: #667eea;
}

/* 注册弹出层样式 */
.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

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

.register-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.35);
    width: 90%;
    max-width: 800px;
    animation: slideIn 0.4s ease-in-out;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 36px;
    line-height: 1;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.close-btn:hover {
    color: #764ba2;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.register-modal-body {
    padding: 40px 45px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
}

/* 表单两栏布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
/*    margin-bottom: 15px;*/
}

.form-column {
    display: flex;
    flex-direction: column;
}

/* 表单组样式 */
#registerForm .form-group {
    margin-bottom: 22px;
}

#registerForm .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    letter-spacing: 0.3px;
}

#registerForm .form-group .required {
    color: #667eea;
    margin-left: 2px;
}

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

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

#registerForm .form-group .required {
    color: #ff4d4f;
    margin-left: 2px;
}

#registerForm .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #ffffff;
    color: #2d3748;
}

#registerForm .form-group input::placeholder {
    color: #a0aec0;
    font-size: 13px;
}

#registerForm .form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-1px);
}

#registerForm .form-group input.error {
    border-color: #f56565;
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.15);
}

#registerForm .form-group input.success {
    border-color: #48bb78;
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.15);
}

#registerForm .form-group .form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #718096;
    font-weight: 400;
}

#registerForm .form-group .error-message {
    color: #f56565;
    font-size: 13px;
    display: block;
    background: #fff5f5;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 4px solid #f56565;
/*    margin-top: 12px;*/
    font-weight: 500;
}

#registerForm .form-actions {
    display: flex;
    gap: 16px;
/*    margin-top: 30px;*/
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

#registerForm .btn-submit,
#registerForm .btn-cancel {
    flex: 1;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

#registerForm .btn-submit {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#registerForm .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#registerForm .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

#registerForm .btn-submit:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#registerForm .btn-cancel {
    background: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

#registerForm .btn-cancel:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

#registerForm .btn-cancel:active {
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1200px) {
    .banner-section {
        grid-template-columns: 1fr;
    }

    .content-container {
        grid-template-columns: 1fr;
    }

    .left-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .banner-section {
        grid-template-columns: 1fr;
    }

    .side-banner {
        flex-direction: row;
    }

    .content-container {
        grid-template-columns: 1fr;
    }

    .left-sidebar {
        display: none;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .top-actions {
        display: none;
    }

    /* 移动端注册弹窗改为单栏布局 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .register-modal-header {
        padding: 20px 25px;
    }

    .register-modal-body {
        padding: 25px;
    }

    .register-modal-header h3 {
        font-size: 20px;
    }

    #registerForm .form-actions {
        margin-top: 20px;
        padding-top: 15px;
    }

    #registerForm .btn-submit,
    #registerForm .btn-cancel {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ========== 用户信息展示区样式 ========== */

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

#user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    transition: all 0.3s;
}

.user-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.user-name {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-actions {
    display: flex;
    gap: 12px;
}

.user-actions a {
    font-size: 13px;
    color: #999;
    transition: all 0.3s;
    padding: 4px 10px;
    border-radius: 3px;
}

.user-actions a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.user-actions a:first-child {
    color: #667eea;
    font-weight: 500;
}

.user-points-row {
    font-size: 16px;
    color: #666;
    padding: 8px 12px;
    background: linear-gradient(135deg, #eef0ff 0%, #e8ebff 100%);
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.user-points-row span {
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.user-btns-row {
    display: flex;
    gap: 12px;
    padding: 7px 0;
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.action-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.user-quick-row {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding-bottom: 4px ;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 24px;
    transition: all 0.3s;
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.quick-btn:hover {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    text-decoration: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

/* ========== 顶部用户信息区样式 ========== */

.top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 26px;
}

#top-login-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

#top-login-form input[type="text"],
#top-login-form input[type="password"] {
    padding: 4px 8px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    width: 100px;
}

#top-login-form input:focus {
    outline: none;
    border-color: #667eea;
}

#top-login-form button {
    padding: 4px 12px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: opacity 0.3s;
    border-radius: 3px;
}

#top-login-form button:hover {
    opacity: 0.9;
}

#top-user-info {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}

.user-welcome {
    color: #ccc;
}

.user-link {
    color: #667eea;
    font-weight: bold;
    transition: opacity 0.3s;
}

.user-link:hover {
	color: #ffffff !important;
    opacity: 0.8;
    text-decoration: underline;
}

.user-points {
    color: #ccc;
}

.user-points span {
    color: #667eea;
    font-weight: bold;
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    color: #fff;
	cursor: pointer;
}

.btn-primary:hover {
	color: #fff;
	background-color: #764ba2;
	border-color: #764ba2;
	cursor: pointer;
}

/* ========== 积分历史表格样式 ========== */

.portal-table thead {
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.portal-table thead th {
	color: #fff;
	font-weight: 600;
	padding: 12px 10px;
	text-align: left;
	font-size: 14px;
	border-bottom: 2px solid #5a67d8;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.portal-table tbody tr:hover {
	background: linear-gradient(90deg, #eef0ff 0%, #e8ebff 100%);
	transform: translateX(3px);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

