/* GLW论坛样式 */

:root {
    --color-primary: #1E80FF;
    --color-primary-hover: #1565E0;
    --color-gray: #838486;
    --color-border: #e7eefb;
    --color-title-hover: #1E80FF;
    --color-card-item-bg:linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    --box-shadow-soft: 0 3px 8px rgba(76, 126, 255, 0.035);
}

body{
    background: #f5f7fd;
}

/* 去掉点击后的蓝色焦点样式（排除作者卡片按钮） */
a:focus, button:focus, input:focus, textarea:focus, select:focus,
.btn:focus, .btn:active,
a:focus:not(:hover), a:active:not(:hover) {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none;
}
a:active:not(.btn-author-follow):not(.btn-write-comment) {
    color: inherit !important;
}

/* 去掉顶部导航的 padding-top */
body {
    padding-top: 70px !important;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, "Helvetica Neue", "Source Han Sans SC", sans-serif;
    font-size: 16px;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ========== 导航栏样式 ========== */
.glw-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    height: 60px;
    overflow: visible;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.glw-navbar-inner {
    display: flex;
    align-items: center;
    height: 60px;
}

.glw-navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 66px;
    text-decoration: none;
    gap: 8px;
}

.glw-navbar-logo {
    height: 32px;
}

.glw-navbar-text {
    font-size: 14px;
    color: #1E80FF;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.glw-navbar-site {
    color: #222;
    font-weight: 700;
    margin-left: 6px;
    font-size: 20px;
    line-height: 1;
    font-style: oblique;
}

.glw-navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
}

.glw-nav-link {
    display: flex;
    padding: 0 14px;
    height: 70px;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
}

/* hover 和 active 状态 */
.glw-nav-link:hover,
.glw-nav-link.active {
    color: #1E80FF;
    font-weight: 700;
    text-decoration: none;
}

.glw-navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

/* 消息链接 */
.glw-message-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
}

.glw-message-link:hover {
    color: #1E80FF;
}

/* 消息徽章 */
.message-badge {
    position: absolute;
    top: 0;
    right: 2px;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: #f56565;
    color: #fff;
    font-weight: bold;
}

/* 登录按钮 - 实心蓝色 */
.glw-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 30px;
    padding: 0;
    background: #1E80FF;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.glw-btn-login:hover {
    background: #4DA3FF;
    color: #fff;
    text-decoration: none;
}

/* 注册按钮 - 白底蓝边 */
.glw-btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 30px;
    padding: 0;
    background: #fff;
    color: #1E80FF;
    border: 1px solid #1E80FF;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.glw-btn-register:hover {
    background: #1E80FF;
    color: #fff;
    text-decoration: none;
}

/* 用户下拉菜单 */
.glw-user-dropdown {
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.glw-user-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
    height: 100%;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.glw-user-toggle:hover {
    color: #1E80FF;
    text-decoration: none;
}

.glw-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #fff;
    border-top: solid 2px #1890FF;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    z-index: 1001;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.glw-user-dropdown:hover .glw-dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.glw-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.glw-dropdown-menu a:hover {
    color: #1E80FF;
    background: #E6F7FF;
}

.glw-dropdown-menu a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.glw-dropdown-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 4px 0;
}

.glw-forum {
    padding-top: 10px;
    padding-bottom: 20px;
}

/* 论坛头部 */
.forum-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.forum-header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}
.forum-header p {
    font-size: 14px;
    color: #999;
}

/* Banner 区域 */
.forum-banner {
    padding: 0 0 20px;
    position: relative;
}
.forum-banner .container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: url('/assets/addons/glwbbs/imgs/banner.jpg') center/cover no-repeat;
    padding: 40px 30px;
    text-align: center;
}
.forum-banner .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(15, 47, 162, 0.8) 100%);
}
.forum-banner .container > * {
    position: relative;
    z-index: 1;
}
.forum-banner h1 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 10px;
}
.forum-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 统计信息 */
.forum-stats {
    margin-bottom: 30px;
}
.stat-box {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}
.stat-box i {
    font-size: 24px;
    color: #337ab7;
    display: block;
    margin-bottom: 8px;
}
.stat-num {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: block;
}
.stat-label {
    font-size: 13px;
    color: #999;
}

/* 板块列表 */
.forum-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 20px;
}
.forum-section h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.forum-section h3 i {
    color: #337ab7;
    margin-right: 5px;
}

.board-group {
    margin-bottom: 0;
}
.board-header {
    font-size: 15px;
    font-weight: bold;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}
.board-header:hover {
    background: #f8f9fa;
}
.board-header i {
    color: #337ab7;
    margin-right: 5px;
}
.board-header a {
    color: #333;
    flex: 1;
    white-space: nowrap;
}
.board-header a:hover {
    color: #337ab7;
    text-decoration: none;
}
.board-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
    margin-right: 0;
}
.board-toggle {
    text-decoration: none;
    padding: 5px;
}
.board-toggle:hover {
    text-decoration: none;
}
.board-toggle[aria-expanded="true"] .board-arrow {
    transform: rotate(180deg);
}

.board-children {
    padding: 2px 0 8px 24px;
}
.board-child-link {
    display: block;
    padding: 4px 0;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.board-child-link:hover {
    color: #337ab7;
    text-decoration: none;
}

/* ========== 侧边栏导航 ========== */
.side-nav {
    background: #fff;
    border-radius: 8px;
    border: solid 1px var(--color-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 8px 0;
    margin-bottom: 30px;
}
.sidebar-col {
    position: sticky;
    top: 90px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;    
}
.side-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    margin: 2px 10px;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
}
.side-nav-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 15px;
    color: #888;
    transition: color 0.2s;
}
.child-nav-item {
    padding-left: 16px;
    /* font-size: 13px; */
}
.side-nav-item .side-nav-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
}
.side-nav-item .side-nav-icon-active {
    display: none;
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
}
.side-nav-item.active .side-nav-icon {
    display: none;
}
.side-nav-item.active .side-nav-icon-active {
    display: block;
}
.side-nav-item:hover {
    background: rgba(30,128,255,0.1);
    color: #1E80FF;
    text-decoration: none;
}
.side-nav-item:hover i {
    color: #1E80FF;
}
.side-nav-item.active {
    background: rgba(30,128,255,0.1);
    color: #1E80FF;
    font-weight: 600;
}
.side-nav-item.active i {
    color: #1E80FF;
}

/* ========== 首页 Banner ========== */
.index-banner {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #E8EEF6;
}
.index-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== 首页模块通用 ========== */
.index-module {
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.module-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 18px;
    font-weight: 600;
    color: #222324;
}
.module-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}
.module-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}
.module-icon-sm {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 4px;
    vertical-align: text-bottom;
    display: inline-block;
}
.module-icon-article { color: #1E80FF; }
.module-icon-post { color: #1E80FF; }
.module-icon-video { color: #1E80FF; }
.module-dot-article { background: #1E80FF; }
.module-dot-post { background: #1E80FF; }
.module-dot-video { background: #1E80FF; }
.module-more {
    font-size: 12px;
    color: #555657;
    text-decoration: none;
    transition: color 0.2s;
}
.module-more:hover {
    color: #1E80FF;
    text-decoration: none;
}
.module-empty {
    text-align: center;
    color: var(--color-gray);
    padding: 40px 0;
    font-size: 14px;
}

/* ========== 最新文章（横向卡片列表） ========== */
.article-list {
    display: flex;
    flex-direction: column;
}
.article-item {
    display: flex;
    gap: 20px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(86, 118, 255, .025);
}
.article-item:last-child {
    margin-bottom: 0;
}
.article-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}
.article-item-cover {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #F0F4F8;
}
.article-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-item-cover img:hover {
    transform: scale(1.02);
    transition: transform 0.3s;
}
.article-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #C8D4E0;
}
.article-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}
.article-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 24px;
    margin: 0 0 8px;
    display: block;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-item-title:hover {
    color: #1E80FF;
    text-decoration: none;
}
.article-item-summary {
    font-size: 12px;
    color: #555657;
    line-height: 18px;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-gray);
}
.article-item-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #555657;
    line-height: 1;
}
.article-author-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.article-item-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.article-tag {
    display: inline-block;
    background: #E6F0FF;
    color: #1E80FF;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.article-tag-featured {
    background: #FFF3E0;
    color: #FF9800;
}

/* ========== 技术论坛 - Feed 容器 ========== */
.feed-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 0 20px;
}

/* ========== 技术论坛 - Feed 工具栏 ========== */
.feed-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
}
.feed-tabs {
    display: flex;
    gap: 24px;
}
.feed-tab {
    font-size: 15px;
    color: #555657;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.feed-tab:hover {
    color: #333;
    text-decoration: none;
}
.feed-tab.active {
    color: #222;
    font-weight: 600;
    border-bottom-color: #1E80FF;
}
.feed-sort {
    display: flex;
    gap: 16px;
}
.feed-sort-btn {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.feed-sort-btn:hover {
    color: #333;
    text-decoration: none;
}
.feed-sort-btn.active {
    color: #222;
    font-weight: 600;
    border-bottom-color: #1E80FF;
}

/* ========== 技术论坛 - Feed 列表 ========== */
.feed-list {
    display: flex;
    flex-direction: column;
}
.feed-item {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.feed-item:last-child {
    border-bottom: none;
}
.feed-item:hover {
    text-decoration: none;
    color: inherit;
}
.feed-item-body {
    min-width: 0;
}
.feed-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-item-summary {
    font-weight: 400;
    font-size: 12px;
    color: #555657;
    line-height: 18px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    /* margin: 0 0 10px; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-gray);
}
.feed-item-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    line-height: 1;
}
.feed-item-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.feed-pagination {
    padding: 20px 0;
    text-align: center;
}

/* ========== 最新帖子（列表） ========== */
.post-feed-item {
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.post-feed-item:last-child {
    margin-bottom: 0;
}
.post-feed-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}
.post-feed-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    line-height: 24px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}
.post-feed-title:hover {
    color: var(--color-title-hover);
    text-decoration: none;
}
.post-feed-summary {
    font-size: 12px;
    color: #555657;
    line-height: 18px;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-feed-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #555657;
}
.post-feed-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.post-feed-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ========== 官方视频（3列网格） ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.video-card {
    display: block;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s, transform 0.15s;
    text-decoration: none;
    color: inherit;
}
.video-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.video-card-cover {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 258:172 */
    background: #F0F4F8;
    overflow: hidden;
}
.video-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-card-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #C8D4E0;
}
.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.video-card-play i {
    color: #fff;
    font-size: 16px;
    margin-left: 3px;
}
.video-card:hover .video-card-play {
    background: rgba(30,128,255,0.8);
}
.video-card-body {
    padding: 12px 14px 14px;
}
.video-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #222324;
    line-height: 22px;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-gray);
}

/* ========== 右侧栏通用 ========== */
.right-module {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.right-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.right-module-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #222324;
    line-height: 18px;
}
.right-module-title img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    object-fit: contain;
}

/* 产品试用 */
.trial-card {
    text-align: center;
}
.trial-cover {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #E8F4FF 0%, #F0F4F8 100%);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trial-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trial-name {
    text-align: left;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: #222324;
    margin: 0 0 8px;
}
.trial-name:hover {
    color: var(--color-title-hover);
    text-decoration: none;
}
.trial-desc {
    text-align: left;
    font-size: 13px;
    color: #555657;
    line-height: 22px;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trial-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}
.trial-badge {
    display: inline-block;
    background: #E6F0FF;
    color: #1E80FF;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}
.trial-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: #1E80FF;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 20px;
}
.trial-btn:hover {
    background: var(--color-primary-hover);
    color: #fff;
    text-decoration: none;
}

/* 活动报名 */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.event-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #F8FAFF;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.event-item:hover {
    background: #EDF4FF;
    text-decoration: none;
    color: inherit;
}
.event-status {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    height: fit-content;
    margin-top: 2px;
}
.event-status-open {
    background: #E8F5E9;
    color: #2E7D32;
}
.event-status-live {
    background: #FFF3E0;
    color: #E65100;
}
.event-info {
    flex: 1;
    min-width: 0;
}
.event-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: #999;
}
.event-meta i {
    margin-right: 3px;
}

/* 热门文章排名列表 */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rank-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
    background: var(--color-card-item-bg);
    box-shadow: var(--box-shadow-soft);
}
.rank-item:last-child {
    margin-bottom: 0;
}
.rank-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--color-title-hover);
}
.rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E0E0E0;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, #1EB4FF 0%, #1E80FF 100%);
    
}
/* .rank-num-1 { background: #FF6B35; }
.rank-num-2 { background: #FF8F65; }
.rank-num-3 { background: #FFB088; } */
.rank-title {
    flex: 1;
    font-size: 13px;
    color: #222324;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rank-title:hover {
    color: var(--color-title-hover);
    text-decoration: none;
}

/* 精选帖子 */
.featured-list {
    display: flex;
    flex-direction: column;
}
.featured-item {
    display: block;
    padding: 10px 8px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: box-shadow 0.2s;
    background: var(--color-card-item-bg);
    box-shadow: var(--box-shadow-soft);
}
.featured-item:last-child {
    margin-bottom: 0;
}
.featured-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    background: var(--color-card-item-bg);
}
.featured-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-title:hover {
    color: var(--color-title-hover);
    text-decoration: none;
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--color-gray);
}
.featured-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

/* 社群交流 */
.group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: box-shadow 0.2s;
    background: var(--color-card-item-bg);
}
.group-item:last-child {
    margin-bottom: 0;
}
.group-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.group-qr {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #F5F5F5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
    overflow: hidden;
}
.group-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.group-info {
    flex: 1;
    min-width: 0;
}
.group-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}
.group-name:hover {
    color: var(--color-title-hover);
    text-decoration: none;
}
.group-desc {
    font-size: 11px;
    color: var(--color-gray);
}
.group-join {
    flex-shrink: 0;
    padding: 4px 12px;
    background: #E6F0FF;
    color: #1E80FF;
    border-radius: 14px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.group-join:hover {
    background: #CCE0FF;
    text-decoration: none;
}

/* 热门兑换 */
.goods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.goods-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: box-shadow 0.2s;
    background: var(--color-card-item-bg);
}
.goods-item:last-child {
    margin-bottom: 0;
}
.goods-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}
.goods-cover {
    flex-shrink: 0;
    /* width: 60px; */
    height: 60px;
    background: #F5F5F5;
    border-radius: 6px;
    overflow: hidden;
}
.goods-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.goods-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
}
.goods-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.goods-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.goods-name:hover {
    color: var(--color-title-hover);
    text-decoration: none;
}
.goods-points {
    font-size: 12px;
    color: #FF6B35;
    font-weight: 600;
}
.board-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
}
.board-item:hover {
    background: #fafafa;
}
.board-icon {
    width: 40px;
    height: 40px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
.board-icon i {
    font-size: 18px;
    color: #337ab7;
}
.board-info h4 {
    margin: 0 0 3px;
    font-size: 14px;
}
.board-info h4 a {
    color: #333;
}
.board-info h4 a:hover {
    color: #337ab7;
}
.board-info p {
    margin: 0 0 3px;
    font-size: 12px;
}
.board-meta {
    font-size: 12px;
    color: #999;
}
.board-meta i {
    margin-right: 3px;
}

/* 子板块 */
.sub-boards {
    margin-bottom: 15px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sub-board-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 4px;
    color: #337ab7;
    font-size: 14px;
    transition: all 0.2s;
}
.sub-board-item i {
    margin-right: 6px;
}
.sub-board-item:hover {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
    text-decoration: none;
}
.sub-board-item .badge {
    background: #337ab7;
    color: #fff;
    margin-left: 6px;
    font-size: 11px;
    padding: 2px 6px;
}
.sub-board-item:hover .badge {
    background: #fff;
    color: #337ab7;
}

/* 板块头部 */
.board-header-box {
    margin-bottom: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.board-header-left {
    flex: 1;
}
.board-header-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px;
    color: #333;
}
.board-header-box h2 i {
    color: #337ab7;
    margin-right: 8px;
}
.board-header-box .board-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
}
.board-header-box .board-stats {
    font-size: 13px;
    color: #999;
}
.board-header-box .board-stats i {
    margin-right: 4px;
}
.board-header-right {
    flex-shrink: 0;
    margin-left: 20px;
}

/* 操作栏 */
.action-bar {
    margin-bottom: 15px;
}
.action-bar .btn {
    padding: 8px 20px;
    font-size: 14px;
}

/* 帖子列表（表格形式） */
.post-list-table {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}
.post-list-table .table {
    margin-bottom: 0;
}
.post-list-table th {
    background: #f8f8f8;
    font-weight: normal;
    color: #666;
    font-size: 13px;
}
.post-list-table td {
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}
.post-list-table tr:hover {
    background: #fafafa;
}
.post-list-table td a {
    color: #333;
}
.post-list-table td a:hover {
    color: #337ab7;
}
.post-list-table .label {
    margin-right: 5px;
    font-size: 11px;
    vertical-align: middle;
    padding: 3px 6px;
}
tr.post-top {
    background: #fff3e6 !important;
    border-left: 3px solid #ff9800;
}
tr.post-top td:first-child {
    padding-left: 12px;
}
tr.post-top-global {
    background: #fce4ec !important;
    border-left: 3px solid #e91e63;
}
tr.post-top-global td:first-child {
    padding-left: 12px;
}
tr.post-elite {
    background: #fffde6 !important;
    border-left: 3px solid #ffcc00;
}
tr.post-elite td:first-child {
    padding-left: 12px;
}
.post-list-table .label-danger {
    background-color: #ff4444;
}
.post-list-table .label-warning {
    background-color: #ff9900;
    color: #fff;
}
.post-list-table .label-info {
    background-color: #337ab7;
}
/* 热帖样式（回复数超过10） */
tr.post-hot td:first-child::after {
    content: 'HOT';
    display: inline-block;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 5px;
    vertical-align: middle;
}
/* 新帖样式（24小时内） */
tr.post-new td:first-child::after {
    content: 'NEW';
    display: inline-block;
    background: #52c41a;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 帖子列表（卡片形式） */
.post-list {
    /* container */
}
.post-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.post-item:last-child {
    border-bottom: none;
}
.post-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}
.post-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
}
.post-info h4 a {
    color: #333;
}
.post-info h4 a:hover {
    color: #337ab7;
}
.post-info h4 .label {
    margin-right: 5px;
    font-size: 11px;
}
.post-meta {
    font-size: 12px;
    color: #999;
}
.post-meta span {
    margin-right: 12px;
}
.post-meta i {
    margin-right: 3px;
}

/* 帖子详情 */
.post-detail {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 帖子头部 */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}
.post-header-left {
    flex: 1;
}
.post-header-left h1 {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #333;
}
.post-header-left .label {
    margin-right: 8px;
    font-size: 12px;
    vertical-align: middle;
}
.post-meta {
    font-size: 13px;
    color: #999;
}
.post-meta span {
    margin-right: 15px;
}
.post-meta i {
    margin-right: 3px;
}
.post-category {
    font-size: 12px;
    margin-left: 8px;
    font-weight: 400;
    opacity: 0.8;
}
.cat-0 { color: #e67e22; }
.cat-1 { color: #27ae60; }
.cat-2 { color: #2980b9; }
.cat-3 { color: #8e44ad; }
.post-header-right {
    flex-shrink: 0;
    margin-left: 20px;
}
.post-header-right .btn {
    margin-left: 8px;
}
.post-header-right .btn.active {
    background: #337ab7;
    color: #fff;
    border-color: #337ab7;
}
/* 分享弹窗 */
.share-wrapper {
    position: relative;
    display: inline-block;
}
.share-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 1000;
    min-width: 240px;
    width: 220px;
}
.share-wrapper:hover .share-popup {

}
.share-popup.show {
    display: block;
}
.share-qr {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}
.share-qr img, .share-qr canvas {
    max-width: 160px;
    width: 120px !important;
    height: 120px !important;
}
.share-link {
    display: flex;
    gap: 8px;
}
.share-link input {
    flex: 1;
    font-size: 12px;
}

/* 帖子主体（左右布局） */
.post-body {
    display: flex;
}
.post-author {
    width: 180px;
    padding: 20px;
    border-right: 1px solid #f0f0f0;
    text-align: center;
    flex-shrink: 0;
    background: #fafbfc;
}
.post-author .author-avatar {
    margin-bottom: 10px;
}
.post-author .author-avatar img {
    border: 2px solid #e8e8e8;
}
.post-author .author-name {
    margin-bottom: 5px;
}
.post-author .author-level {
    margin-bottom: 8px;
}
.post-author .author-level .label,
.reply-author .author-level .label {
    font-size: 11px;
    padding: 2px 8px;
    font-weight: normal;
    background: #f5f5f5;
    color: #888;
    border: 1px solid #e8e8e8;
}
.post-author .author-name a {
    font-weight: bold;
    color: #337ab7;
    font-size: 14px;
}
.post-author .author-info {
    font-size: 12px;
    color: #999;
}
.post-author .author-role {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f4fd;
    color: #337ab7;
    border-radius: 3px;
    font-size: 11px;
}
.post-content-wrapper {
    flex: 1;
    padding: 20px 25px;
    min-width: 0;
}
.post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    padding-bottom: 15px;
}
.post-content img {
    max-width: 100%;
    height: auto;
}

.post-tags {
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}
.post-tags .label {
    margin-right: 5px;
}

.post-actions {
    padding: 15px 0 0;
    border-top: 1px solid #f0f0f0;
}
.post-actions .btn {
    margin-right: 8px;
}
.post-actions .btn.active {
    background: #337ab7;
    color: #fff;
    border-color: #337ab7;
}

/* 回复区域 */
.reply-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
}
.reply-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.reply-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.reply-item:last-child {
    border-bottom: none;
}
.reply-author {
    width: 120px;
    text-align: center;
    flex-shrink: 0;
    padding-right: 15px;
}
.reply-author .author-avatar {
    margin-bottom: 8px;
}
.reply-author .author-avatar img {
    border: 2px solid #e8e8e8;
}
.reply-author .author-name a {
    font-weight: bold;
    color: #337ab7;
    font-size: 13px;
}
.reply-content-wrapper {
    flex: 1;
    min-width: 0;
}
.reply-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.reply-floor {
    font-size: 13px;
    font-weight: bold;
    color: #337ab7;
    margin-right: 15px;
}
.reply-time {
    font-size: 12px;
    color: #999;
}
.reply-time i {
    margin-right: 3px;
}
.reply-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}
.reply-quote {
    background: #f5f5f5;
    border-left: 3px solid #337ab7;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    border-radius: 0 4px 4px 0;
}
.reply-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}
.reply-actions a {
    color: #999;
    font-size: 13px;
    margin-right: 15px;
    transition: color 0.2s;
}
.reply-actions a:hover {
    color: #337ab7;
    text-decoration: none;
}
.reply-actions a.active {
    color: #337ab7;
}
.reply-actions .like-count {
    margin-left: 3px;
}

/* 回复表单 */
.reply-form-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
}
.reply-form-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 发帖表单 */
.create-post-form {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 25px;
}
.create-post-form h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 搜索 */
.search-box {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}
.search-box .form-control {
    margin-right: 5px;
}

/* 用户主页 */
.user-profile-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.user-avatar {
    margin-right: 20px;
}
.user-info {
    flex: 1;
}
.user-info h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 5px;
}
.user-stats {
    margin-top: 8px;
}
.user-stats span {
    margin-right: 20px;
    font-size: 14px;
    color: #666;
}
.user-stats strong {
    color: #333;
}

/* 热门帖子 */
.hot-posts {
    /* container */
}
.hot-post-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.hot-post-item:last-child {
    border-bottom: none;
}
.hot-rank {
    width: 22px;
    height: 22px;
    background: #337ab7;
    color: #fff;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}
.hot-post-item:nth-child(n+4) .hot-rank {
    background: #999;
}
.hot-post-item a {
    flex: 1;
    color: #333;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}
.hot-post-item a:hover {
    color: #337ab7;
    text-decoration: none;
}
.hot-post-item .text-muted {
    font-size: 12px;
    flex-shrink: 0;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    color: #555;
    font-size: 13px;
}
.tag-item:hover {
    background: #337ab7;
    color: #fff;
    text-decoration: none;
}
.tag-item .badge {
    background: rgba(255,255,255,0.3);
    font-size: 11px;
}

/* ========== 移动端退出按钮（桌面端隐藏） ========== */
.glw-logout-mobile {
    display: none;
}

/* ========== 下拉菜单包装（桌面端内联） ========== */
.glw-navbar-dropdown {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* ========== 汉堡菜单按钮（桌面端隐藏） ========== */
.glw-navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
    width: 38px;
    height: 38px;
}
.glw-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    position: absolute;
    left: 9px;
    transition: all 0.3s;
}
.glw-toggle-bar:nth-child(1) { top: 10px; }
.glw-toggle-bar:nth-child(2) { top: 18px; }
.glw-toggle-bar:nth-child(3) { top: 26px; }

/* ========== 响应式 ========== */

/* 平板 (768px - 991px) */
@media (max-width: 991px) {
    /* 首页：右侧栏移到主内容下方 */
    .col-md-3 {
        margin-top: 16px;
    }

    /* 视频网格 3列变2列 */
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 活动详情页：两列布局在平板上保持，但减小间距 */
    .act-hero-img,
    .act-hero-placeholder {
        height: 260px;
    }
}

/* 手机 (< 768px) */
@media (max-width: 768px) {
    .forum-header h1 { font-size: 22px; }

    /* ========== 导航栏：汉堡菜单 ========== */
    body {
        padding-top: 56px !important;
    }
    .glw-navbar {
        height: 56px;
    }
    .glw-navbar-inner {
        height: 56px;
    }
    .glw-navbar-brand {
        margin-right: auto;
    }

    /* 显示汉堡按钮 */
    .glw-navbar-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .glw-navbar-toggle.open .glw-toggle-bar:nth-child(1) {
        top: 18px;
        transform: rotate(45deg);
    }
    .glw-navbar-toggle.open .glw-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .glw-navbar-toggle.open .glw-toggle-bar:nth-child(3) {
        top: 18px;
        transform: rotate(-45deg);
    }

    /* 默认隐藏整个下拉容器 */
    .glw-navbar-dropdown {
        display: none;
    }

    /* 展开状态 */
    .glw-navbar.open .glw-navbar-dropdown {
        display: block;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1001;
        border-top: 1px solid #f0f0f0;
        padding: 8px 0;
    }
    .glw-navbar.open .glw-navbar-menu {
        display: flex;
        flex-direction: column;
    }
    .glw-navbar.open .glw-nav-link {
        height: 44px;
        padding: 0 20px;
        justify-content: flex-start;
        font-size: 15px;
    }
    .glw-navbar.open .glw-navbar-search {
        margin: 8px 16px 0;
        width: auto;
    }
    .glw-navbar.open .glw-search-input {
        width: 100%;
    }
    .glw-navbar.open .glw-navbar-right {
        display: flex;
        flex-direction: row;
        padding: 10px 20px;
        gap: 10px;
        border-top: 1px solid #f0f0f0;
        margin-top: 8px;
    }
    /* 移动端：隐藏消息按钮和完整下拉菜单，显示退出按钮 */
    .glw-navbar.open .glw-message-link {
        display: none;
    }
    .glw-navbar.open .glw-user-dropdown {
        display: none;
    }
    .glw-navbar.open .glw-logout-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 34px;
        padding: 0 16px;
        color: #666;
        font-size: 13px;
        text-decoration: none;
    }
    .glw-navbar.open .glw-logout-mobile:hover {
        color: #1E80FF;
        text-decoration: none;
    }
    .glw-navbar.open .glw-btn-login,
    .glw-navbar.open .glw-btn-register {
        flex: 1;
        height: 34px;
        font-size: 13px;
    }

    /* 搜索框自适应 */
    .glw-search-input {
        width: 140px;
    }
    .glw-navbar-search {
        margin-left: 4px;
    }

    /* ========== 布局 ========== */
    .glw-forum {
        padding-top: 50px;
    }
    .glw-forum .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* ========== 侧边栏 → 固定横向滚动导航条 ========== */
    .sidebar-col.glw-sidebar-fixed {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 998;
        width: 100% !important;
        max-width: 100%;
        float: none !important;
        padding: 0;
        margin: 0;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .sidebar-col.glw-sidebar-fixed .side-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
        margin: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
    }
    .sidebar-col.glw-sidebar-fixed .side-nav::-webkit-scrollbar { display: none; }
    .sidebar-col.glw-sidebar-fixed .side-nav-item {
        flex-shrink: 0;
        padding: 12px 14px;
        margin: 0;
        font-size: 14px;
        white-space: nowrap;
        border-radius: 0;
        color: #555;
        border-bottom: 2px solid transparent;
    }
    .sidebar-col.glw-sidebar-fixed .side-nav-item.active {
        color: #1E80FF;
        font-weight: 600;
        border-bottom-color: transparent;
        background: transparent;
    }
    .sidebar-col.glw-sidebar-fixed .side-nav-item i {
        display: none;
    }
    .sidebar-col.glw-sidebar-fixed .side-nav-item .side-nav-icon,
    .sidebar-col.glw-sidebar-fixed .side-nav-item .side-nav-icon-active {
        display: none;
    }
    /* 占位，防止内容被固定导航遮挡 */
    .glw-mobile-sidebar-placeholder {
        height: 0;
        margin: 0;
        padding: 0;
        padding-bottom: 20px;
    }

    /* ========== 文章卡片 ========== */
    .article-item {
        gap: 10px;
        padding: 10px;
    }
    .article-item-cover {
        width: 90px;
        height: 65px;
    }
    .article-item-title {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }
    .article-item-title:hover {
        color: var(--color-title-hover);
    }
    .article-item-summary {
        display: none;
    }
    .article-item-tags {
        display: none;
    }

    .post-feed-tags {
        display: none;
    }

    .post-feed-item {
        padding: 10px !important;
    }

    .recommend-item-tags{
        display: none !important;
    }
}

    /* ========== 帖子列表 ========== */
    .post-item { flex-direction: column; }
    .post-avatar { margin-bottom: 8px; }
    .post-feed-item {
        padding: 10px 0;
    }

    /* ========== Feed 工具栏 ========== */
    .feed-toolbar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }
    .feed-tabs {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .feed-tabs::-webkit-scrollbar { display: none; }
    .feed-sort {
        gap: 12px;
    }

    /* ========== 视频网格 ========== */
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .video-card-body {
        padding: 8px 10px 10px;
    }
    .video-card-title {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    .video-card-title:hover {
        color: var(--color-title-hover);
    }

    /* ========== 右侧栏（手机上移到内容下方） ========== */
    .col-md-3 {
        margin-top: 0;
    }
    .right-module {
        padding: 14px;
        margin-bottom: 12px;
    }

    /* 活动卡片行：两列变一列 */
    .act-side-row {
        flex-direction: column;
    }
    .act-side-hero {
        aspect-ratio: 280 / 150;
    }

    /* 热门排行等列表减少间距 */
    .rank-list, .featured-list, .goods-list, .group-list {
        gap: 4px;
    }

    /* ========== 帖子详情 ========== */
    .post-header {
        flex-direction: column;
    }
    .post-header-right {
        margin-left: 0;
        margin-top: 10px;
    }
    .post-body {
        flex-direction: column;
    }
    .post-author {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .post-author .author-avatar {
        margin-bottom: 0;
    }
    .post-author .author-avatar img {
        width: 45px;
        height: 45px;
    }
    .post-content-wrapper {
        padding: 15px;
    }
    .post-card {
        padding: 16px;
    }
    .post-card-title {
        font-size: 18px;
    }

    /* ========== 回复区域 ========== */
    .reply-item {
        flex-direction: column;
    }
    .reply-author {
        width: 100%;
        padding-right: 0;
        padding-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }
    .reply-author .author-avatar {
        margin-bottom: 0;
    }
    .reply-author .author-avatar img {
        width: 40px;
        height: 40px;
    }
    .reply-content-wrapper {
        padding-left: 0;
    }
    .reply-section, .reply-form-section {
        padding: 16px;
    }
    .comment-section {
        padding: 16px;
    }

    /* ========== 活动详情 ========== */
    .act-hero-img,
    .act-hero-placeholder {
        height: 200px;
    }
    .act-hero-title {
        font-size: 18px;
    }
    .act-hero-bar {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        font-size: 12px;
    }
    .act-detail-card, .act-apply-card {
        padding: 16px;
    }

    /* ========== 文章详情 ========== */
    .article-header {
        padding: 16px;
    }
    .article-title {
        font-size: 20px;
    }
    .article-content {
        padding: 16px;
    }
    .article-tags {
        padding: 12px 16px;
    }

    /* ========== 用户资料 ========== */
    .user-profile-card { flex-direction: column; text-align: center; }
    .user-avatar { margin-right: 0; margin-bottom: 15px; }
    .user-stats { text-align: center; }

    /* ========== 表单 ========== */
    .create-post-form {
        padding: 16px;
    }

    /* ========== Footer ========== */
    .glw-footer-content {
        flex-direction: row;
        gap: 24px;
        padding-bottom: 20px;
    }
    .glw-footer-links {
        gap: 30px;
        flex-wrap: wrap;
    }

    /* ========== Toast ========== */
    .glw-toast {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: 100%;
        transform: none;
    }

    /* ========== 分页 ========== */
    .pagination > li > a,
    .pagination > li > span {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Toast 通知 */
.glw-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 99999;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 90%;
    text-align: center;
}
.glw-toast-success { background: #5cb85c; }
.glw-toast-error { background: #d9534f; }
.glw-toast-info { background: #5bc0de; }
.glw-toast-warning { background: #f0ad4e; }

/* 用户主页 Tab 标签 */
.forum-section .nav-tabs {
    border-bottom: 2px solid #e8e8e8;
}
.forum-section .nav-tabs > li > a {
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 18px;
    border-radius: 0;
}
.forum-section .nav-tabs > li > a:hover {
    background: none;
    border-bottom-color: #ddd;
    color: #333;
}
.forum-section .nav-tabs > li.active > a,
.forum-section .nav-tabs > li.active > a:hover,
.forum-section .nav-tabs > li.active > a:focus {
    color: #337ab7;
    background: none;
    border: none;
    border-bottom: 2px solid #337ab7;
    margin-bottom: -2px;
}
.forum-section .post-item {
    padding: 12px 0;
}
.forum-section .post-item:hover {
    background: #f9f9f9;
}

/* ByteMD 编辑器样式修正 */
.bytemd {
    border: 1px solid #d0d7de;
    border-radius: 6px;
}
.bytemd .bytemd-toolbar {
    border-bottom: 1px solid #d0d7de;
}
/* 隐藏 Source Code（源代码/GitHub链接）按钮 */
.bytemd-toolbar-right button[title="源代码"],
.bytemd-toolbar-right button[title="Source code"],
.bytemd-toolbar-right a[title="源代码"],
.bytemd-toolbar-right a[title="Source code"] {
    display: none !important;
}

/* Markdown 渲染样式（帖子详情页） */
.markdown-body {
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
}
.post-content.markdown-body h1, .post-content.markdown-body h2,
.post-content.markdown-body h3, .post-content.markdown-body h4,
.post-content.markdown-body h5, .post-content.markdown-body h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}
.post-content.markdown-body h1 {
    font-size: 28px;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eee;
}
.post-content.markdown-body h2 {
    font-size: 22px;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eee;
}
.post-content.markdown-body h3 { font-size: 18px; }
.post-content.markdown-body h4 { font-size: 16px; }
.post-content.markdown-body h5 { font-size: 14px; }
.post-content.markdown-body h6 { font-size: 12px; }
.markdown-body p { margin-top: 0; margin-bottom: 1em; }
.markdown-body ul, .markdown-body ol { margin-bottom: 1em; padding-left: 2em; }
.markdown-body li { margin-bottom: 0.25em; }
.markdown-body blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #dfe2e5;
    background: #f8f8f8;
    color: #555;
}
.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0 2px;
    font-size: 90%;
    background: rgba(27,31,35,0.05);
    border-radius: 3px;
    font-family: Consolas, Monaco, "Courier New", monospace;
}
.markdown-body pre {
    margin: 1em 0;
    padding: 1em;
    overflow: auto;
    background: #f6f8fa;
    border-radius: 6px;
    line-height: 1.45;
}
.markdown-body pre code {
    padding: 0;
    margin: 0;
    font-size: 100%;
    background: none;
    border-radius: 0;
}
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.markdown-body table th, .markdown-body table td {
    border: 1px solid #dfe2e5;
    padding: 6px 13px;
}
.markdown-body table th {
    background: #f6f8fa;
    font-weight: 600;
}
.markdown-body table tr {
    background: #fff;
}
.markdown-body table tr:nth-child(2n) {
    background: #f6f8fa;
}
.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.markdown-body a {
    color: #0366d6;
    text-decoration: none;
}
.markdown-body a:hover {
    text-decoration: underline;
}
.markdown-body hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5em 0;
}
.markdown-body input[type="checkbox"] {
    margin-right: 0.5em;
}

/* ========== Footer 样式 ========== */
.glw-footer {
    /* background: #F2F3F5; */
    color: #666;
    padding: 40px 0 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}
.glw-footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.glw-footer-brand {
    max-width: 200px;
    display: flex;
    align-content: flex-start;
    flex-direction: column;
    align-items: center;
}
.glw-footer-logo {
    height: 40px;
    margin-bottom: 10px;
}
.glw-footer-title {
    height: 30px;
    margin-bottom: 0px;
}
.glw-footer-brand p {
    color: #555657;
    font-size: 14px;
    
}
.glw-footer-links {
    display: flex;
    gap: 118px;
}
.glw-footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}
.glw-footer-col a {
    display: block;
    color: #555657;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}
.glw-footer-col a:hover {
    color: #1E80FF;
}
.glw-footer-bottom {
    text-align: center;
    padding: 20px 0;
}
.glw-footer-bottom p {
    margin: 0;
    color: var(--color-gray);
    font-size: 13px;
}

@media (max-width: 768px) {
    .glw-footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .glw-footer-links{
        display: none;
    }
}

/* ========== 搜索框样式 ========== */
.glw-navbar-search {
    margin-left: 43px;
    display: flex;
    align-items: center;
}
.glw-navbar-search form {
    display: flex;
    align-items: center;
    position: relative;
}
.glw-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
    pointer-events: none;
}
.glw-search-input {
    width: 240px;
    height: 36px;
    padding: 0 12px 0 34px;
    border: none;
    border-radius: 18px;
    background: #F2F2F2;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.glw-search-input:focus {
    background: #F2F2F2;
    box-shadow: none;
}
.glw-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    width: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.glw-search-btn:hover {
    color: #1E80FF;
    background: rgba(24,144,255,0.08);
}

/* ========== 热门板块样式 ========== */
.hot-boards {
    display: flex;
    flex-direction: column;
}
.hot-board-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}
.hot-board-item:last-child {
    border-bottom: none;
}
.hot-board-item:hover {
    background: #f8f9fa;
    text-decoration: none;
}
.hot-board-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}
.hot-board-item:nth-child(1) .hot-board-rank {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.hot-board-item:nth-child(2) .hot-board-rank {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.hot-board-item:nth-child(3) .hot-board-rank {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.hot-board-info {
    display: flex;
    flex-direction: column;
}
.hot-board-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.hot-board-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ========== 快捷发帖卡片 ========== */
.quick-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}
.quick-post-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.quick-post-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.quick-post-header i {
    font-size: 24px;
    color: #0f2fa2;
}
.quick-post-card p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
}
.quick-post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
.quick-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
    color: #fff;
    text-decoration: none;
}
.quick-post-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}
.quick-post-tip a {
    color: #0f2fa2;
    text-decoration: none;
}
.quick-post-tip a:hover {
    text-decoration: underline;
}

/* ========== 面包屑样式 ========== */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 15px;
}
.breadcrumb > li > a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}
.breadcrumb > li > a:hover {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}
/* .breadcrumb > li + li::before {
    color: #999;
} */
.breadcrumb > .active {
    color: #000;
    font-weight: 700;
    font-size: 14px;
}

/* 我的学习统计 */
.my-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}
.my-stats .stat-num {
    color: #ff6b35;
}

/* ========== 分页样式 ========== */
.text-center {
    margin: 20px 0;
}
.pagination {
    margin: 0;
}
.pagination > li > a,
.pagination > li > span {
    color: #1E80FF;
    border-color: #ddd;
    padding: 8px 16px;
    font-size: 14px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    color: #fff;
    background-color: #1E80FF;
    border-color: #1E80FF;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #1E80FF;
    border-color: #1E80FF;
    color: #fff;
}
.pagination > .disabled > a,
.pagination > .disabled > span,
.pagination > .disabled > a:hover,
.pagination > .disabled > span:hover,
.pagination > .disabled > a:focus,
.pagination > .disabled > span:focus {
    color: #999;
}

/* ========== 消息中心样式 ========== */
.message-center-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 25px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.message-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.message-header h2 i {
    color: #0f2fa2;
    margin-right: 10px;
}

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

.message-nav-tabs {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.message-nav-tabs .nav-tabs {
    border-bottom: none;
}

.message-nav-tabs .nav-tabs li {
    margin-bottom: -1px;
}

.message-nav-tabs .nav-tabs li a {
    color: #666;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.message-nav-tabs .nav-tabs li.active a {
    color: #0f2fa2;
    background: #f8f9ff;
    border: 1px solid #eee;
    border-bottom-color: #fff;
}

.message-nav-tabs .nav-tabs li a:hover {
    color: #0f2fa2;
    background: #f8f9ff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.page-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

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

.message-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.message-nav a {
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
}

.message-nav a:hover {
    color: var(--color-primary-hover);
    background: #f8f9ff;
}

.message-nav a.active {
    color: var(--color-primary);
    background: #f8f9ff;
    border: 1px solid #e3e8f0;
}


.message-nav a i {
    font-size: 16px;
}

.message-nav a.active,
.message-nav a:hover {
    color: var;
    background: #e9f0fe;
}

.message-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.message-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    cursor: pointer;
}

.message-item:hover {
    background: #f8f9fa;
}

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

.message-item.read {
    background: #ffffff;
    opacity: 0.8;
}

.message-item.read:hover {
    background: #fafafa;
}

.message-item.unread {
    background: #f8f9ff;
    border-left: 3px solid #4285f4;
}

.message-item.unread:hover {
    background: #f0f4ff;
}

.message-checkbox {
    margin-right: 12px;
    margin-top: 4px;
}
.message-icon {
    margin-right: 12px;
    font-size: 18px;
    color: #ccc;
    min-width: 24px;
}

.message-item.unread .message-icon {
    color: #4285f4;
    font-weight: bold;
}

.message-item.read .message-icon {
    color: #999;
}

.message-content {
    flex: 1;
}

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

.message-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.message-item.unread .message-title {
    color: #0f2fa2;
    font-weight: 700;
}

.message-item.read .message-title {
    color: #666;
    font-weight: 500;
}

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

.message-text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 14px;
}

.message-item.unread .message-text {
    color: #555;
    font-weight: 500;
}

.message-item.read .message-text {
    color: #888;
}

.message-actions {
    margin-top: 12px;
}

.message-actions .btn {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-message i {
    margin-bottom: 15px;
    color: #ddd;
}

.text-primary {
    color: #0f2fa2 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* ========== 活动模块样式 ========== */
.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.activity-card {
    display: block;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}

.activity-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.activity-card-cover {
    position: relative;
    height: 160px;
    background: #f0f2f5;
    overflow: hidden;
}

.activity-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    color: #ccc;
}

.activity-card-type {
    position: absolute;
    top: 8px;
    right: 8px;
}

.activity-card-body {
    padding: 12px 14px;
}

.activity-card-title {
    font-size: 16px;
    line-height: normal;
    font-weight: 600;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-card-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.activity-card-meta i {
    margin-right: 3px;
}

.activity-detail-cover {
    margin-bottom: 10px;
}

/* ========== 活动详情页样式 ========== */
.act-hero {
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}

.act-hero-cover {
    position: relative;
}

.act-hero-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.act-hero-placeholder {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #ccc;
    background: #f0f2f5;
}

.act-hero-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.act-hero-status .label {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 4px;
}

.act-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}

.act-hero-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.act-hero-desc {
    font-size: 14px;
    margin: 0;
    opacity: .85;
    line-height: 1.5;
}

.act-hero-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    background: #fff;
    font-size: 13px;
    color: #666;
}

.act-hero-bar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.act-hero-bar i {
    margin-right: 4px;
    color: #999;
}

.act-hero-bar-action .btn {
    min-width: 120px;
}

.act-modal-title {
    color: #1E80FF;
    font-weight: 700;
    text-align: center;
}

.act-modal-desc {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.act-detail-card,
.act-apply-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.act-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.act-card-title i {
    margin-right: 6px;
    color: #1E80FF;
}

.act-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.act-detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #222;
}

.act-detail-content h3:first-child {
    margin-top: 0;
}

.act-detail-content p {
    margin: 8px 0;
}

.act-apply-form .form-group {
    margin-bottom: 12px;
}

.act-apply-form label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #555;
}

.act-apply-done {
    text-align: center;
    padding: 30px 10px;
}

.act-apply-status-text {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 6px;
    color: #333;
}

.act-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.act-progress-label {
    font-size: 14px;
    color: #333;
}

.act-progress-pct {
    font-size: 20px;
    font-weight: 700;
    color: #1E80FF;
}

.act-progress-bar-wrap {
    height: 10px;
    border-radius: 5px;
    background: #f0f0f0;
    margin-bottom: 10px;
}

.act-progress-bar-wrap .progress-bar {
    border-radius: 5px;
}

.act-progress-footer {
    margin-bottom: 0;
}

/* ========== 首页右侧活动模块样式 ========== */
.act-side-hero {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
    aspect-ratio: 280 / 175;
    text-decoration: none;
    color: inherit;
}

.act-side-hero:hover {
    text-decoration: none;
}

.act-side-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.act-side-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ccc;
    background: #f0f2f5;
}

.act-side-hero-badge {
    position: absolute;
    top: 10px;
    left: -3px;
}

.act-side-hero-badge .label {
    font-size: 10px;
    line-height: 10px;
    height: 10px;
    padding: 3px 6px;
}

.act-side-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}

.act-side-hero-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.act-side-hero-desc {
    font-size: 12px;
    opacity: .8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.act-side-row {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.act-side-card {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s;
    min-width: 0;
}

.act-side-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    text-decoration: none;
}

.act-side-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 134 / 89;
    overflow: hidden;
    background: #f0f2f5;
    border-radius: 6px;
}

.act-side-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.act-side-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
}

.act-side-card-badge {
    position: absolute;
    top: 6px;
    left: -3px;
}

.act-side-card-badge .label {
    font-size: 10px;
    line-height: 10px;
    height: 10px;
    padding: 3px 6px;
}

.act-side-card-body {
    padding-top: 6px;
}

.act-side-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.act-side-card-desc {
    font-size: 11px;
    color: var(--color-gray);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.act-side-card-meta {
    font-size: 11px;
    color: #999;
}

.act-side-tag {
    display: inline-block;
    font-size: 10px;
    line-height: 18px;
    height: 18px;
    color: var(--color-gray);
    background: rgba(0,0,0,0.04);
    border-radius: 2px;
    padding: 0 4px;
    margin-right: 4px;
}

.popover {
    max-width: 180px;
}
.popover-content {
    padding: 8px;
    text-align: center;
}

.glw-qr-popup {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    padding: 10px;
    display: none;
}
.glw-qr-popup.show {
    display: block;
}
.glw-qr-popup img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
}

/* ========== 帖子详情页（新版） ========== */

/* 帖子内容卡片 */
.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 30px;
    margin-bottom: 20px;
}
.post-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    line-height: 1.4;
}
.post-badge {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    font-weight: 500;
}
.badge-top { background: #ff4d4f; color: #fff; }
.badge-featured { background: #faad14; color: #fff; }

.post-card-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    padding-bottom: 20px;
}
.post-card-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}
.post-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:  0;
    /* border-top: 1px solid #f0f0f0; */
    flex-wrap: wrap;
    gap: 10px;
}
.post-card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.post-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #E6F0FF;
    color: #1E80FF;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    margin-bottom: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.post-tag:hover {
    background: #1E80FF;
    color: #fff;
    text-decoration: none;
}
.post-card-footer {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}
.post-card-footer .sep {
    margin: 0 8px;
    color: #ddd;
}

/* 评论区 */
.comment-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 25px 30px;
    margin-bottom: 20px;
}
.comment-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.comment-login-hint {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.comment-login-hint-avatar {
    flex-shrink: 0;
}
.comment-login-hint-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
}
.comment-login-hint-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #F5F5F5;
    border-radius: 8px;
    padding: 16px 20px;
    height: 108px;
}
.btn-login-hint {
    display: inline-block;
    padding: 8px 28px;
    background: #1E80FF;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
}
.btn-login-hint:hover { color: #fff; text-decoration: none; background: #4DA3FF; }
.comment-login-hint-body span { font-size: 12px; color: #666; white-space: nowrap; }

.comment-input-box {
    margin-bottom: 20px;
}
.comment-textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.comment-textarea:focus { border-color: #1E80FF; }
.comment-submit-row {
    margin-top: 10px;
    text-align: right;
}
.btn-comment-submit {
    display: inline-block;
    padding: 8px 24px;
    background: #1E80FF;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-comment-submit:hover { background: #4DA3FF; }
.reply-to-hint {
    background: #E6F7FF;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    color: #333;
}
.reply-to-hint a { color: #1E80FF; margin-left: 10px; }

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar { flex-shrink: 0; }
.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-body { flex: 1; min-width: 0; }
.comment-author-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.comment-author-name a { color: #222; }
.comment-author-name a:hover { color: #1E80FF; text-decoration: none; }
.comment-quote {
    background: #f5f5f5;
    /* border-left: 3px solid #1E80FF; */
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    border-radius: 0 4px 4px 0;
}
.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 8px;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}
.comment-time { color: var(--color-gray); }
.comment-action {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.comment-action:hover { color: #1E80FF; text-decoration: none; }
.comment-action i { margin-right: 3px; }

/* 右侧边栏通用卡片 */
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-card-title i {
    color: #1E80FF;
    margin-right: 6px;
}
.sidebar-list-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebar-list-item:last-child { border-bottom: none; }
.sidebar-list-item:hover { 
    /* background: #fafafa;  */
    text-decoration: none; 
}
.sidebar-item-title {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sidebar-item-title:hover { color: var(--color-title-hover); text-decoration: none; }
.sidebar-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-gray);
    margin-top: 4px;
}
.sidebar-item-meta i { margin-right: 3px; }

/* 作者卡片 */
.author-card {
    text-align: center;
}
.author-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    text-align: left;
}
.author-card-avatar {
    flex-shrink: 0;
}
.author-card-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.author-card-info {
    flex: 1;
    min-width: 0;
}
.author-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.author-card-name a { color: #222; }
.author-card-name a:hover { color: #1E80FF; text-decoration: none; }
.author-card-bio {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.author-card-stats {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    margin-bottom: 22px;
    /* padding: 12px 0; */
}
.author-card-stats .stat-item { text-align: center; }
.author-card-stats .stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.author-card-stats .stat-label {
    font-size: 12px;
    color: #999;
}
.author-card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    height: 36px;
}
.btn-author-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 16px;
    background: #fff;
    color: #1E80FF;
    border: 1px solid #1E80FF;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
/* .btn-author-follow:hover { background: #1E80FF; color: #fff; text-decoration: none; } */
.btn-write-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 16px;
    background: #1E80FF;
    color: #fff;
    border: 1px solid #1E80FF;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-write-comment:hover { background: #4DA3FF; border-color: #4DA3FF; text-decoration: none; color: #fff; }
.btn-write-comment i { margin-right: 4px; }

/* 关注和写评论按钮保持点击后的颜色 */
/* .btn-author-follow:active, .btn-write-comment:active {
    color: inherit !important;
}
.btn-author-follow:active {
    background: #1E80FF;
    color: #fff !important;
}
.btn-write-comment:active {
    background: #1E80FF;
    color: #fff !important;
} */

/* ========== 文章详情页 ========== */

/* 文章卡片容器 */
.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 30px;
    margin-bottom: 20px;
}

/* 文章头部 */
.article-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}
.article-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
    line-height: 1.4;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #999;
}
.article-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 500;
}
.author-avatar-xs {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* 文章正文 */
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}
.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 600;
    color: #222;
}
.article-content h1 { font-size: 22px; }
.article-content h2 { font-size: 19px; }
.article-content h3 { font-size: 17px; }
.article-content p {
    margin-bottom: 14px;
}

.article-tags {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

/* 文章右侧栏整体固定 */
.article-sidebar-col {
    position: sticky;
    top: 90px;
    align-self: flex-start;
    /*max-height: calc(100vh - 110px);*/
    overflow-y: auto;
}

/* 目录 TOC */
.toc-list {
    max-height: 400px;
    overflow-y: auto;
    padding-left: 2px;
}
.toc-item {
    display: block;
    padding: 6px 0 6px 10px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    border-left: 2px solid transparent;
    margin-left: 0;
}
.toc-item:link, .toc-item:visited, .toc-item:hover, .toc-item:active {
    color: #666;
    text-decoration: none;
}
.toc-item:hover { color: #1E80FF; text-decoration: none; }
.toc-item.active {
    color: #1E80FF;
    font-weight: 600;
    border-left-color: transparent;
    position: relative;
}
.toc-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 50%;
    background: #1E80FF;
    border-radius: 2px;
}
.toc-item:hover { color: #1E80FF; text-decoration: none; }
.toc-item.active {
    color: #1E80FF;
    font-weight: 600;
    /* background: #E6F7FF; */
    border-radius: 0 4px 4px 0;
    /* border-left: 2px solid #1E80FF; */
}
.toc-h1 { padding-left: 10px; font-size: 14px;}
.toc-h2 { padding-left: 22px; font-size: 13px;}
.toc-h3 { padding-left: 34px; font-size: 12px; }

/* 精选文章（仅作用于sidebar内） */
.sidebar-card .featured-list {}
.sidebar-card .featured-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
}
.sidebar-card .featured-item:last-child { 
    /* border-bottom: none;  */
}
.sidebar-card .featured-item:hover { text-decoration: none; }
.sidebar-card .featured-item-cover {
    flex-shrink: 0;
    width: 80px;
    height: 54px;
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-card .featured-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-card .featured-item-info { flex: 1; min-width: 0; }
.sidebar-card .featured-item-title {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sidebar-card .featured-item-date {
    display: block;
    font-size: 12px;
    color: var(--color-gray);
    margin-top: 4px;
}

/* 为你推荐 */
.recommend-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 25px 30px;
    margin-bottom: 20px;
}
.recommend-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.recommend-item {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s;
}
.recommend-item:last-child { border-bottom: none; }
.recommend-item:hover { 
    /* background: #fafafa;  */
    color: var(--color-title-hover);
    text-decoration: none; 
}
.recommend-item-top {
    margin-bottom: 8px;
}
.recommend-item-top{
    color: var(--color-title-hover);
}
.recommend-item-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
recommend-item-title:hover{
    color: var(--color-title-hover);
}
.recommend-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.recommend-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-gray);
}
.recommend-item-meta i { margin-right: 3px; }
.recommend-item-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}
.recommend-item-board {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    font-size: 11px;
}
.recommend-item-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #E6F7FF;
    color: #1E80FF;
    border-radius: 3px;
    font-size: 11px;
}

/* ========== 产品试用页样式 ========== */
.trial-hero {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f2f5;
}
.trial-hero-cover {
    position: relative;
}
.trial-hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.trial-hero-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #ccc;
    background: #f0f2f5;
}
.trial-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}
.trial-hero-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}
.trial-hero-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: .85;
    line-height: 1.5;
}

.trial-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 20px;
}
.trial-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}
.trial-section-line {
    width: 40px;
    height: 3px;
    background: #1E80FF;
    border-radius: 2px;
    margin-bottom: 16px;
}
.trial-download-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.trial-download-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.trial-download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 100px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    transition: all 0.2s;
}
.trial-download-btn i {
    font-size: 28px;
}
.trial-download-btn:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,47,162,0.3);
}

.trial-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}
.trial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}
.trial-content h1, .trial-content h2, .trial-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #222;
}

.trial-feedback-card {
    background: #fff;
    border: 1px solid #eee;
}
.trial-submit-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 6px;
    padding: 10px;
    font-size: 15px;
}
.trial-submit-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.trial-code-row {
    display: flex;
    gap: 10px;
}
.trial-code-row .form-control {
    flex: 1;
}
.trial-code-row .btn-send-code {
    flex-shrink: 0;
    white-space: nowrap;
    border-color: #0f2fa2;
    color: #0f2fa2;
}
.trial-code-row .btn-send-code:hover {
    background: #0f2fa2;
    color: #fff;
}

.trial-modal-title {
    color: #0f2fa2;
    font-weight: 700;
    text-align: center;
}
.trial-modal-desc {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .trial-hero-img, .trial-hero-placeholder {
        height: 200px;
    }
    .trial-hero-title {
        font-size: 20px;
    }
    .trial-section {
        padding: 16px;
    }
    .trial-download-btn {
        width: 100px;
        height: 85px;
        font-size: 13px;
    }
    .trial-download-btn i {
        font-size: 24px;
    }
    .trial-bottom .col-md-7,
    .trial-bottom .col-md-5 {
        margin-bottom: 16px;
    }
}
