/**
 * Hubbs 论坛插件样式
 * Version: 1.0.0
 * Author: hyr
 */

/* 基础样式重置 */
.hubbs-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6f7;
}

.hubbs-page * {
    box-sizing: border-box;
}

.hubbs-page a {
    text-decoration: none;
    color: inherit;
}

.hubbs-page ul,
.hubbs-page ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 容器 */
.hubbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
.hubbs-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hubbs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.hubbs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #ff6b35;
}

.hubbs-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.hubbs-nav {
    display: flex;
    gap: 30px;
}

.hubbs-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.hubbs-nav-item:hover,
.hubbs-nav-item.active {
    background: #fff2ed;
    color: #ff6b35;
}

.hubbs-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hubbs-user {
    position: relative;
    display: inline-block;
}

.hubbs-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    transition: background 0.3s;
}

.hubbs-user-info:hover {
    background: #f5f5f5;
}

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

.hubbs-user-name {
    font-size: 14px;
    color: #333;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hubbs-user-arrow {
    font-size: 16px;
    color: #999;
    transition: transform 0.3s;
}

.hubbs-user:hover .hubbs-user-arrow {
    transform: rotate(180deg);
}

.hubbs-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 200;
    padding: 6px 0;
}

.hubbs-user:hover .hubbs-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hubbs-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.hubbs-dropdown-item:hover {
    background: #f5f5f5;
    color: #ff6b35;
}

.hubbs-dropdown-item i {
    font-size: 16px;
}

/* 搜索栏 */
.hubbs-search-bar {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.hubbs-search-box {
    display: flex;
    align-items: center;
    background: #f5f6f7;
    border-radius: 25px;
    padding: 0 5px 0 15px;
    max-width: 600px;
    margin: 0 auto;
}

.hubbs-search-box i {
    color: #999;
    font-size: 18px;
}

.hubbs-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 14px;
    outline: none;
}

.hubbs-search-btn {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.hubbs-search-btn:hover {
    background: #e55a2b;
}

/* 主布局 */
.hubbs-main {
    padding: 20px 0;
}

.hubbs-layout {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .hubbs-layout {
        grid-template-columns: 1fr;
    }
    
    .hubbs-sidebar-left,
    .hubbs-sidebar-right {
        display: none;
    }
}

/* 卡片 */
.hubbs-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 15px;
}

.hubbs-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.hubbs-card-header i {
    color: #ff6b35;
}

/* 左侧边栏 - 版块列表 */
.hubbs-section-list {
    padding: 10px 0;
}

.hubbs-section-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.hubbs-section-item i:first-child {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.hubbs-section-item:hover {
    background: #fff8f5;
    color: #ff6b35;
}

.hubbs-section-item.active {
    background: #fff2ed;
    color: #ff6b35;
    font-weight: 500;
}

.hubbs-section-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ff6b35;
}

.hubbs-section-arrow {
    margin-left: auto;
    font-size: 12px;
}

.hubbs-section-children {
    background: #fafafa;
}

.hubbs-section-child {
    display: block;
    padding: 10px 20px 10px 50px;
    color: #888;
    font-size: 13px;
    transition: all 0.3s;
}

.hubbs-section-child:hover,
.hubbs-section-child.active {
    color: #ff6b35;
    background: #fff5f0;
}

/* 中间内容区 */
.hubbs-content {
    min-width: 0;
}

/* 筛选栏 */
.hubbs-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hubbs-filter-tabs {
    display: flex;
    gap: 25px;
}

.hubbs-filter-tabs a {
    color: #666;
    font-size: 14px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.hubbs-filter-tabs a:hover,
.hubbs-filter-tabs a.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.hubbs-current-section {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff6b35;
    font-size: 14px;
    font-weight: 500;
}

/* 搜索结果提示 */
.hubbs-search-result {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1890ff;
    font-size: 14px;
}

.hubbs-search-result i {
    font-size: 16px;
}

.hubbs-clear-search {
    margin-left: auto;
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.hubbs-clear-search:hover {
    color: #ff6b35;
}

/* 帖子列表 */
.hubbs-post-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.hubbs-post-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    align-items: flex-start;
}

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

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

.hubbs-post-author {
    margin-right: 12px;
    flex-shrink: 0;
}

.hubbs-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.hubbs-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hubbs-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hubbs-post-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.hubbs-post-title:hover {
    color: #ff6b35;
}

.hubbs-post-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hubbs-post-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.hubbs-post-badge-top {
    background: #fff2ed;
    color: #ff6b35;
}

.hubbs-post-badge-essence {
    background: #fff7e6;
    color: #faad14;
}

.hubbs-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.hubbs-post-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
}

.hubbs-post-meta-item::after {
    content: '·';
    margin-left: 8px;
    color: #ddd;
}

.hubbs-post-meta-item:last-child::after {
    display: none;
}

.hubbs-post-author-name {
    color: #666;
}

.hubbs-post-section {
    color: #999;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.hubbs-post-time {
    color: #999;
}

.hubbs-post-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.hubbs-post-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #999;
    font-size: 12px;
}

.hubbs-post-stat i {
    font-size: 13px;
}

/* 空状态 */
.hubbs-empty {
    padding: 80px 20px;
    text-align: center;
    color: #999;
    background: #fff;
    border-radius: 12px;
}

.hubbs-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    color: #e0e0e0;
}

.hubbs-empty p {
    margin-bottom: 30px;
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

.hubbs-empty-tip {
    font-size: 13px;
    color: #999;
    margin-top: -20px;
    margin-bottom: 20px;
}

.hubbs-empty .hubbs-btn {
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.hubbs-empty .hubbs-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #ff7a45 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
    transform: translateY(-2px);
}

.hubbs-empty-small {
    padding: 50px 20px;
}

.hubbs-empty-small i {
    font-size: 48px;
}

/* 分页 */
.hubbs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
}

.hubbs-pagination-small {
    margin-top: 0;
    border-top: 1px solid #f5f5f5;
    border-radius: 0 0 12px 12px;
}

.hubbs-page-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    transition: all 0.3s;
}

.hubbs-page-btn:hover {
    background: #ff6b35;
    color: #fff;
}

.hubbs-page-numbers {
    display: flex;
    gap: 5px;
}

.hubbs-page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.hubbs-page-num:hover {
    background: #f5f5f5;
}

.hubbs-page-num.active {
    background: #ff6b35;
    color: #fff;
}

/* 右侧边栏 */

/* 网站名简介卡片 */
.hubbs-intro-card {
    padding: 0;
}

.hubbs-intro-card .hubbs-card-header {
    border-bottom: 1px solid #f0f0f0;
}

.hubbs-intro-content {
    padding: 15px 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.hubbs-intro-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 20px;
}

/* 社区数据卡片 */
.hubbs-stats-card {
    padding: 0;
}

.hubbs-stats-card .hubbs-card-header {
    border-bottom: 1px solid #f0f0f0;
}

.hubbs-stats-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
}

.hubbs-stats-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
}

.hubbs-stats-item:not(:last-child) {
    border-right: 1px solid #eee;
}

.hubbs-stats-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1.2;
}

.hubbs-stats-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.hubbs-community-card {
    padding: 20px;
}

.hubbs-community-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hubbs-community-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.hubbs-community-info h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.hubbs-community-info p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

.hubbs-community-stats {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 20px;
}

.hubbs-stat-item {
    text-align: center;
}

.hubbs-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.hubbs-stat-label {
    font-size: 12px;
    color: #999;
}

.hubbs-community-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hubbs-announcement {
    padding: 15px 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.hubbs-announcement-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.hubbs-announcement-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hubbs-announcement-item strong {
    display: block;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.hubbs-announcement-item p {
    margin: 0;
    color: #666;
}

/* 社区公告列表 */
.hubbs-announcement-list {
    padding: 10px 0;
}

.hubbs-announcement-link {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hubbs-announcement-link:last-child {
    border-bottom: none;
}

.hubbs-announcement-link:hover {
    background: #fff8f5;
    color: #ff6b35;
}

.hubbs-announcement-link i {
    color: #ff6b35;
    margin-right: 8px;
}

.hubbs-announcement-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #999;
    font-size: 13px;
}

.hubbs-announcement-empty i {
    font-size: 18px;
    margin-right: 8px;
}

/* 公告详情页 */
.hubbs-announcement-detail {
    padding: 30px;
}

.hubbs-announcement-detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.hubbs-announcement-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.4;
}

.hubbs-announcement-detail-meta {
    color: #999;
    font-size: 13px;
}

.hubbs-announcement-detail-meta i {
    margin-right: 5px;
}

.hubbs-announcement-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.hubbs-announcement-detail-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* 公告详情页 - 居中宽屏布局 */
.hubbs-announcement-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.hubbs-announcement-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.hubbs-announcement-detail {
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hubbs-announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hubbs-announcement-badge i {
    font-size: 14px;
}

.hubbs-announcement-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px;
    line-height: 1.4;
}

.hubbs-announcement-detail-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

.hubbs-announcement-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hubbs-announcement-time i {
    color: #ff6b35;
}

.hubbs-announcement-detail-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* 其他公告 */
.hubbs-announcement-others {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.hubbs-announcement-others-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.hubbs-announcement-others-header i {
    color: #ff6b35;
}

.hubbs-announcement-others-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hubbs-announcement-others-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    background: #f8f9fa;
}

.hubbs-announcement-others-item:hover {
    background: #fff5f2;
    color: #ff6b35;
}

.hubbs-announcement-others-item i {
    color: #ff6b35;
    font-size: 16px;
    flex-shrink: 0;
}

.hubbs-announcement-others-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 最新帖子 */
.hubbs-latest-posts {
    padding: 10px 0;
}

.hubbs-latest-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
}

.hubbs-latest-post-item:last-child {
    border-bottom: none;
}

.hubbs-latest-post-item:hover {
    background: #fff8f5;
}

.hubbs-latest-post-title {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.hubbs-latest-post-item:hover .hubbs-latest-post-title {
    color: #ff6b35;
}

.hubbs-latest-post-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* Markdown内容样式 */
.markdown-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
}

.markdown-body h1 {
    font-size: 2em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

.markdown-body h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

.markdown-body h3 {
    font-size: 1.25em;
}

.markdown-body p {
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body li {
    margin-bottom: 4px;
}

.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.markdown-body pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    margin-bottom: 16px;
}

.markdown-body pre code {
    padding: 0;
    background-color: transparent;
}

.markdown-body blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    margin: 0 0 16px 0;
}

.markdown-body table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
    width: 100%;
    overflow: auto;
}

.markdown-body table th,
.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}

.markdown-body table th {
    font-weight: 600;
    background-color: #f6f8fa;
}

.markdown-body table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

.markdown-body img {
    max-width: 100%;
    box-sizing: content-box;
    background-color: #fff;
    border-radius: 4px;
}

.markdown-body a {
    color: #ff6b35;
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

/* 按钮 */
.hubbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.hubbs-btn-primary {
    background: #ff6b35;
    color: #fff !important;
}

.hubbs-btn-primary:hover {
    background: #e55a2b;
    color: #fff !important;
}

.hubbs-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.hubbs-btn-secondary:hover {
    background: #e8e8e8;
}

.hubbs-btn-outline {
    background: transparent;
    border: 1px solid #ff6b35;
    color: #ff6b35;
}

.hubbs-btn-outline:hover {
    background: #ff6b35;
    color: #fff;
}

.hubbs-btn-block {
    width: 100%;
}

/* 帖子详情页 */
.hubbs-post-detail {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hubbs-post-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hubbs-post-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hubbs-post-detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.hubbs-post-detail-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hubbs-post-detail-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.hubbs-post-detail-time {
    font-size: 13px;
    color: #999;
}

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

.hubbs-post-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hubbs-post-action-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.hubbs-post-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.4;
}

.hubbs-post-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
}

.hubbs-post-detail-badge-top {
    background: #fff2ed;
    color: #ff6b35;
}

.hubbs-post-detail-badge-essence {
    background: #fff7e6;
    color: #faad14;
}

.hubbs-post-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

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

.hubbs-post-detail-stats {
    display: flex;
    gap: 20px;
}

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

.hubbs-post-detail-section-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff6b35;
    font-size: 14px;
}

/* 回复区域 */
.hubbs-replies-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    overflow: hidden;
}

.hubbs-replies-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f5f5f5;
}

.hubbs-replies-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hubbs-reply-list {
    padding: 0 25px;
}

.hubbs-reply-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.hubbs-reply-avatar {
    margin-right: 15px;
}

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

.hubbs-reply-content {
    flex: 1;
}

.hubbs-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.hubbs-reply-floor {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.hubbs-reply-body {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

.hubbs-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.hubbs-reply-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
}

.hubbs-reply-action:hover {
    color: #ff6b35;
}

/* 回复表单 */
.hubbs-reply-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hubbs-reply-form-header {
    margin-bottom: 20px;
}

.hubbs-reply-form-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hubbs-reply-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    outline: none;
    transition: border-color 0.3s;
}

.hubbs-reply-textarea:focus {
    border-color: #ff6b35;
}

.hubbs-reply-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.hubbs-reply-tip {
    font-size: 13px;
    color: #ff6b35;
}

.hubbs-login-to-reply {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hubbs-login-to-reply a {
    color: #ff6b35;
}

/* 作者卡片 */
.hubbs-author-card {
    padding: 20px;
}

.hubbs-author-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hubbs-author-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.hubbs-author-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
}

.hubbs-author-role {
    font-size: 12px;
    color: #ff6b35;
    background: #fff2ed;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 相关帖子 */
.hubbs-related-posts {
    padding: 10px 0;
}

.hubbs-related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s;
}

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

.hubbs-related-item:hover {
    background: #fafafa;
}

.hubbs-related-title {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.hubbs-related-count {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 发帖页面 */
.hubbs-new-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hubbs-new-post-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.hubbs-new-post-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.hubbs-required {
    color: #ff6b35;
}

.hubbs-form-select,
.hubbs-form-input,
.hubbs-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

/* Safari 浏览器 select 样式修复 */
.hubbs-form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 隐藏 IE 的默认下拉箭头 */
.hubbs-form-select::-ms-expand {
    display: none;
}

.hubbs-form-select:focus,
.hubbs-form-input:focus,
.hubbs-form-textarea:focus {
    border-color: #ff6b35;
}

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

.hubbs-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

/* 发帖指南 */
.hubbs-post-guide {
    padding: 15px 20px;
}

.hubbs-guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
}

.hubbs-guide-item i {
    color: #52c41a;
    font-size: 16px;
}

/* 游客标记 */
.hubbs-guest-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    background: #e6f7ff;
    color: #1890ff;
    margin-left: 6px;
}

.hubbs-guest-badge i {
    font-size: 10px;
}

.hubbs-guest-avatar {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.hubbs-post-detail-avatar.hubbs-guest-avatar {
    font-size: 20px;
}

.hubbs-author-avatar-large.hubbs-guest-avatar {
    font-size: 24px;
}

/* 个人中心页面 */
.hubbs-user-profile-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    padding: 40px 0;
    margin-bottom: 20px;
}

.hubbs-user-profile-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hubbs-user-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hubbs-user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hubbs-user-profile-info {
    flex: 1;
}

.hubbs-user-profile-name {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.hubbs-user-profile-bio {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}

.hubbs-user-profile-stats {
    display: flex;
    gap: 30px;
}

.hubbs-user-profile-stat {
    text-align: center;
}

.hubbs-user-profile-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #ff6b35;
}

.hubbs-user-profile-stat-label {
    font-size: 13px;
    color: #999;
}

/* 个人中心标签切换 */
.hubbs-profile-tabs {
    display: flex;
    gap: 5px;
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hubbs-profile-tabs a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.hubbs-profile-tabs a:hover {
    background: #f5f5f5;
    color: #333;
}

.hubbs-profile-tabs a.active {
    background: #fff2ed;
    color: #ff6b35;
    font-weight: 500;
}

/* 个人中心列表 */
.hubbs-profile-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.hubbs-profile-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

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

.hubbs-profile-item:hover {
    background: #fafafa;
}

.hubbs-profile-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.hubbs-profile-item-section {
    background: #fff2ed;
    color: #ff6b35;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.hubbs-profile-item-reply-to {
    color: #666;
}

.hubbs-profile-item-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
}

.hubbs-profile-item-title a {
    color: #333;
    transition: color 0.3s;
}

.hubbs-profile-item-title a:hover {
    color: #ff6b35;
}

.hubbs-profile-item-content {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.hubbs-profile-item-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.hubbs-profile-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 底部 */
.hubbs-footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 30px 0;
    margin-top: 40px;
}

.hubbs-footer-inner {
    text-align: center;
    color: #999;
    font-size: 13px;
}

.hubbs-footer-inner p {
    margin: 0;
}
