/* ============================================================
   qn01社区
   ============================================================ */

/* ---------- 论坛自定义 ---------- */
.top-bar {
    background-color: #e0f0ee;
    padding: 6px 15px;
    font-size: 13px;
    color: #2c5e5a;
    border-bottom: 1px solid #b8d9d6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar-right{
    display: flex;
    gap: 8px;
    align-items: center;
}
.top-bar-right .lr_click{
    cursor: pointer;
}

.top-bar a {
    color: #1f6e6a;
    font-weight: 500;
}

.top-bar a:hover {
    color: #0e4b47;
    text-decoration: underline;
}

form #editor-container{
    border: 1px solid #CCC;
    border-radius: 5px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-badge {
    background-color: #68bcba;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ---------- 焦点图轮播 ---------- */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: #dbe9f7;
    max-height: 200px;
}
.hero-banner__slide { position: relative; text-align: center; }
.hero-banner__img {
    width: 100%; max-height: 200px;
    object-fit: cover; display: block; vertical-align: top;
}
.hero-banner__caption {
    display: block; width: 100%;
    position: absolute; bottom: 0; left: 0;
    height: 32px; line-height: 32px; padding: 0 12px;
    background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.1));
    color: #fff; text-align: left; font-size: 14px;
}
.hero-banner__dots {
    position: absolute; bottom: 8px; right: 12px;
    z-index: 1; display: flex; gap: 6px;
}
.hero-banner__dot {
    display: inline-block; width: 6px; height: 6px;
    border-radius: 6px; background: rgba(255,255,255,0.5);
    text-indent: -9999px; overflow: hidden;
}
.hero-banner__dot--active { background: #fff; }

/* ---------- 滚动公告条 ---------- */
.ticker-bar {
    height: 39px; padding: 0 7px;
    background: #E4E4E4; overflow: hidden;
    display: flex; align-items: center; gap: 5px;
}
.ticker-bar__label {
    height: 20px; padding: 0 5px;
    background: #2b73df; color: #FFF;
    line-height: 20px; font-size: 12px;
    flex-shrink: 0; border-radius: 2px;
}
.ticker-bar__label a { color: #fff; }
.ticker-bar__text {
    flex: 1; font-size: 13px; color: #646464;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker-bar__text a { color: #000; }

/* ---------- 公告卡片 ---------- */
.notice-card {
    margin: 8px;
    border: 1px solid #dfdfdf;
    border-radius: 3px;
    padding: 7px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.notice-card__item {
    font-size: 12px; color: #ff3000;
    height: 25px; line-height: 25px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.notice-card__desc {
    font-size: 15px; line-height: 25px;
    color: #3f3f3f; text-indent: 2em;
}

/* ---------- 区块标题（左侧蓝条 + 右侧更多） ---------- */
.section-header {
    height: 20px; padding: 10px 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.section-header__title {
    border-left: 7px solid #2b73df;
    height: 20px; line-height: 20px;
    padding-left: 5px; color: #2b73df; font-weight: 600;
}
.section-header__more {
    height: 20px; line-height: 20px;
    color: #000; font-size: 13px;
}
.section-header__more a { color: #000; }

/* ---------- 功能模块网格（版块入口） ---------- */
.module-grid {
    margin: 7px 8px;
    border: 1px solid #EDEDED;
    border-radius: 5px;
    background: #fff;
    display: flex; flex-wrap: wrap; overflow: hidden;
}
.module-grid__item {
    height: 59px; overflow: hidden;
    width: 50%; position: relative;
    border-bottom: 1px solid #EDEDED;
}
.module-grid__item:nth-child(odd) { border-right: 1px solid #EDEDED; }
.module-grid__link { display: block; position: relative; height: 100%; }
.module-grid__link:hover { background: #FFFAF3; }
.module-grid__icon {
    padding: 10px; width: 40px; height: 40px;
    float: left; display: flex; align-items: center;
    justify-content: center; font-size: 22px;
}
.module-grid__body {
    position: absolute; top: 0; right: 0; bottom: 0; left: 60px;
    padding-right: 8px;
}
.module-grid__title {
    display: block; height: 30px; line-height: 34px;
    color: #000; font-size: 15px;
}
.module-grid__desc {
    color: #767676; font-size: 11px; line-height: 20px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ---------- 主题行（帖子列表） ---------- */

.thread-row,
.thread-row--alt {
    background: #FFF;
    font-size: 13px; color: #999;
    margin: 8px 0; padding: 8px 10px;
    border: 1px solid #D8D8D8; border-radius: 2px;
    line-height: 25px;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}
.thread-row:hover,
.thread-row--alt:hover {
    background: #f9f9f9; border-color: #c3d9f5;
}
.thread-row__title {
    display: flex; align-items: flex-start;
    gap: 6px; flex-wrap: wrap; padding-bottom: 2px;
}
.thread-row__title a {
    color: #333; font-size: 16px; font-weight: 600;
    line-height: 1.5; word-break: break-word; flex: 1;
}
.thread-row__title a:hover { color: #006cbf; }

/* ---------- 热门版块卡片 ---------- */
.forum-board {
    margin: 8px;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}
.forum-board__header {
    height: 40px; background: #FBFCFF;
    border-bottom: 1px solid #BDBDBD;
    line-height: 40px; padding-left: 20px;
    font-size: 16px; font-weight: bold; color: #333;
}
.forum-board__row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e4e4e4;
    position: relative; transition: background 0.2s;
}
.forum-board__row:last-child { border-bottom: none; }
.forum-board__row:hover { background: #FFFAF3; }
.forum-board__icon {
    width: 40px; height: 40px; border-radius: 3px;
    background: #eaf3ff; display: flex;
    align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.forum-board__name {
    font-size: 16px; font-weight: bold;
    color: #333; line-height: 1.4;
}
.forum-board__stats {
    font-size: 12px; color: #CCC;
    margin-left: auto; text-align: right; line-height: 1.4;
}
.forum-board__stats em { font-style: normal; color: #999; }
.forum-board__stats i { margin: 0 4px; }
.forum-board__today {
    position: absolute; top: 6px; right: 10px;
    background: #2b73df; color: #fff;
    font-size: 11px; padding: 0 5px;
    border-radius: 3px; line-height: 18px;
    border: 1px solid #257EB9;
}

/* ---------- 按钮行（快捷操作） ---------- */
.btn-row { padding: 4px 8px; margin: 8px 0; }
.btn-row--4 { overflow: hidden; }
.btn-row--4 .btn-row__item {
    width: 25%; float: left;
    border: 1px solid #dbdbdb; border-right: none;
    display: block; height: 32px; line-height: 32px;
    text-align: center; color: #555;
    font-size: 14px; text-shadow: 2px 2px rgba(255,255,255,0.3);
    background: linear-gradient(top, #ffffff, #f1f3f6);
    background: -webkit-linear-gradient(top, #ffffff, #f1f3f6);
}
.btn-row--4 .btn-row__item:last-of-type { border-right: 1px solid #dbdbdb; }
.btn-row--4 .btn-row__item:hover { color: #2b73df; }

/* ---------- 提示条 ---------- */
.notice-tip {
    line-height: 24px; margin: 10px 8px;
    border: 1px solid #b3def4; background: #f6fcff;
    color: #f48a6e; padding: 6px 8px;
    border-radius: 3px; font-size: 13px;
    display: flex; align-items: center; gap: 6px;
}


/* ---------- 移动端适配 ---------- */
@media (max-width: 600px) {
    body { box-shadow: none; }
    .hero-banner, .hero-banner__img { max-height: 160px; }
    .hero-banner__caption { font-size: 13px; height: 28px; line-height: 28px; }
    .ticker-bar { height: 36px; }
    .notice-card { margin: 6px; }
    .module-grid { margin: 6px; }
    .module-grid__item { height: 55px; }
    .module-grid__title { font-size: 14px; line-height: 30px; height: 30px; }
    .thread-row, .thread-row--alt { margin: 6px 0; padding: 10px 10px 8px; }
    .thread-row__title a { font-size: 15px; }
    .forum-board { margin: 6px; }
    .forum-board__row { padding: 10px; }
    .forum-board__name { font-size: 15px; }
    .btn-row { padding: 4px 6px; }
    .btn-row--4 .btn-row__item {
        width: 50%; border-right: 1px solid #dbdbdb;
        border-top: 1px solid #dbdbdb;
    }
    .btn-row--4 .btn-row__item:nth-child(odd) { border-left: 1px solid #dbdbdb; }
    .btn-row--4 .btn-row__item:first-child,
    .btn-row--4 .btn-row__item:nth-child(2) { border-top: none; }
}

/* load */
.load-more{
    text-align: center;
    margin-top: 10px;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 600px) {
    .board-nav { margin: 6px; padding: 8px 10px; }
}
/* ====================================================================
帖子
========================================================================*/

 /* ---------- 帖子正文 ---------- */
.thread-content .thread-content__quote {
    background: #f7fafd;
    border-left: 3px solid #b3d4f5;
    padding: 10px 14px;
    margin: 12px 0;
    color: #666;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}
.thread-content .thread-content__record {
    text-align: right;
    color: #9c9c9c;
    font-size: 12px;
    border-top: 1px dotted #ddd;
    margin-top: 16px;
    padding-top: 10px;
}

/* ---------- 上/下一条导航 ---------- */
.post-nav {
    margin: 0 8px 10px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    overflow: hidden;
}
.post-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f4f8;
}
.post-nav__item:last-child {
    border-bottom: none;
}
.post-nav__item .label {
    font-size: 12px;
    color: #fff;
    background: #12B1CF;
    padding: 2px 8px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 18px;
}
.post-nav__item--next .label {
    background: #68D115;
}
.post-nav__item a {
    color: #555;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-nav__item a:hover {
    color: #2b73df;
}
.post-nav__item .arrow {
    color: #ccc;
    font-size: 16px;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 600px) {
    .thread-author {
        margin: 8px 6px;
        padding: 10px 12px;
        gap: 10px;
    }
    .thread-author__avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .thread-author__name {
        font-size: 16px;
    }
    .thread-author__meta {
        font-size: 11px;
        gap: 8px;
    }
    .thread-author__follow a {
        font-size: 12px;
        padding: 3px 11px;
    }
    .thread-attach {
        margin: 0 6px 8px;
        padding: 8px 12px;
    }
    .post-nav {
        margin: 0 6px 8px;
    }
    .post-nav__item {
        padding: 9px 14px;
        font-size: 13px;
    }
}