@charset "utf-8";
/* ============================================================
 * forum.css  江南美韵——锡剧讨论组 统一样式
 * 作用范围：论坛首页(/forum)、发表主题(/forumPost)、
 *           帖子详情(/forumshow/ID)，以及演员/剧团详情页
 *           "讨论"标签内的主题列表。
 * 设计语言：与全站一致的锡剧绿(#00a854)，白色卡片 + 轻投影，
 *           头像按用户名着色，回复用左侧树线表现楼层层级。
 * ============================================================ */

/* ---------- 顶部渐变横幅 ---------- */
.fhero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 30px 34px 26px;
    margin-bottom: 22px;
    color: #fff;
    background: linear-gradient(135deg, #07844a 0%, #00a854 55%, #36c478 100%);
    box-shadow: 0 8px 20px rgba(0, 168, 84, .22);
}
.fhero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.fhero::before {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -90px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.fhero h1 {
    position: relative;
    margin: 0 0 8px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fhero .module-icon { color: #fff; width: 30px; height: 30px; flex: none; }
.fhero-sub {
    position: relative;
    margin: 0 0 20px;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: .92;
}
.fnav { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.fnav a {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    -webkit-transition: all .2s;
    transition: all .2s;
}
.fnav a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.fnav a.active,
.fnav a.fnav-post {
    background: #fff;
    color: #0a8f4f;
    border-color: #fff;
    font-weight: 600;
}
.fnav a.fnav-post { box-shadow: 0 3px 10px rgba(0, 60, 30, .18); }

/* ---------- 统计条 ---------- */
.fstats { display: flex; gap: 16px; margin-bottom: 22px; }
.fstat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.fstat-ico {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fstat-info { display: flex; flex-direction: column; line-height: 1.25; }
.fstat-num { font-size: 22px; font-weight: 700; color: #222; }
.fstat-label { font-size: 13px; color: #999; margin-top: 2px; }

/* ---------- 头像 ---------- */
.favatar {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    -webkit-user-select: none;
    user-select: none;
}
.favatar.sm { width: 32px; height: 32px; font-size: 14px; }
.favatar.xs { width: 30px; height: 30px; font-size: 13px; }

/* ---------- 首页主题卡片 ---------- */
.flist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.ftopic {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    overflow: hidden;
    -webkit-transition: box-shadow .2s, -webkit-transform .2s;
    transition: box-shadow .2s, transform .2s;
}
.ftopic:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .09); -webkit-transform: translateY(-1px); transform: translateY(-1px); }
.ftopic-main { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.ftopic-body { min-width: 0; flex: 1; }
.ftopic-title {
    display: block;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ftopic-main:hover .ftopic-title { color: #00a854; }
.ftopic-meta { font-size: 13px; color: #999; display: flex; align-items: center; gap: 6px; }
.fmeta-user { color: #666; }
.fmeta-dot { color: #ccc; }
.ftopic-count {
    flex: none;
    margin-left: 12px;
    min-width: 64px;
    padding: 7px 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #00a854;
    background: #eef9f3;
    border-radius: 8px;
    line-height: 1.15;
}
.ftopic-count span { display: block; font-size: 12px; font-weight: 400; color: #7aa; }
.ftopic-count.zero { color: #aaa; background: #f5f5f5; }
.ftopic-count.zero span { color: #bbb; }

/* 卡片内回复树（紧凑） */
.fthread-card { border-top: 1px dashed #ececec; background: #fcfdfc; }
.fthread { margin: 0 0 0 20px; padding: 0 0 0 16px; border-left: 2px solid #e9f2ed; }
.fthread .fthread { border-left-color: #eef4f0; }
.freply { display: flex; gap: 10px; padding: 10px 16px; }
.freply-body { min-width: 0; flex: 1; }
.freply-title {
    display: block;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.freply-title:hover { color: #00a854; }
.freply-meta {
    margin-top: 3px;
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- 空状态 ---------- */
.fempty {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    text-align: center;
    padding: 54px 20px;
    margin-bottom: 40px;
}
.fempty-ico { color: #cfe6d9; margin-bottom: 14px; }
.fempty-text { color: #999; font-size: 15px; margin-bottom: 20px; }
.fempty-inline { padding: 30px 20px; }

/* ---------- 帖子详情 ---------- */
.fback { margin-bottom: 14px; }
.fback a { color: #888; font-size: 13px; }
.fback a:hover { color: #00a854; }
.fpost {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    padding: 24px 28px;
    margin-bottom: 22px;
}
.fpost-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 18px;
}
.fpost-who { min-width: 0; }
.fpost-title {
    margin: 0 0 4px;
    color: #222;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}
.fpost-submeta { font-size: 13px; color: #aaa; display: flex; gap: 8px; align-items: center; }
.fpost-hits {
    flex: none;
    margin-left: auto;
    font-size: 13px;
    color: #999;
    background: #f6f8f7;
    padding: 5px 14px;
    border-radius: 999px;
}
.fpost-body {
    color: #444;
    font-size: 15.5px;
    line-height: 1.9;
    word-break: break-word;
}
.fpost-body a, .ffloor-body a { color: #1a6eb0; }
.fpost-body a:hover, .ffloor-body a:hover { color: #00a854; }

.fsection-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}
.fsection-title::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #00a854;
}
.fsection-title .fsection-count {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

/* 楼层卡片 */
.ffloors { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.ffloor-node {
    background: #fff;
    border: 1px solid #eef2f0;
    border-radius: 10px;
    padding: 16px 20px;
    -webkit-transition: border-color .2s, box-shadow .2s;
    transition: border-color .2s, box-shadow .2s;
}
.ffloor-node:target { border-color: #9fd8bb; box-shadow: 0 0 0 3px rgba(0, 168, 84, .12); }
.ffloors > .ffloor-node { box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.fthread .ffloor-node {
    background: #fcfdfc;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 10px;
}
.ffloor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ffloor-user { color: #333; font-size: 14px; font-weight: 600; }
.ffloor-time { color: #aaa; font-size: 12px; }
.ffloor-no {
    margin-left: auto;
    flex: none;
    color: #bbb;
    font-size: 12px;
}
.ffloor-no:hover { color: #00a854; }
.ffloor-title {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.ffloor-title:hover { color: #00a854; }
.ffloor-body { color: #555; font-size: 14.5px; line-height: 1.85; word-break: break-word; }

/* ---------- 发帖 / 回复表单 ---------- */
.fcard {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    padding: 26px 30px;
    margin-bottom: 40px;
}
.fform { display: flex; flex-direction: column; gap: 18px; }
.fform-row { display: flex; flex-direction: column; gap: 7px; }
.fform-row label { color: #555; font-size: 14px; font-weight: 600; }
.fform-row label .frequired { color: #e04f3e; margin-left: 3px; }
.fform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.finput, .ftextarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    -webkit-transition: border-color .2s, box-shadow .2s;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.finput:focus, .ftextarea:focus {
    outline: none;
    border-color: #00a854;
    box-shadow: 0 0 0 3px rgba(0, 168, 84, .12);
}
.ftextarea { resize: vertical; min-height: 190px; line-height: 1.7; }
.fhint { font-size: 12px; color: #aaa; }
.fform-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fbtn {
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all .2s;
    transition: all .2s;
}
.fbtn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0a8f4f, #00a854);
    box-shadow: 0 4px 12px rgba(0, 168, 84, .28);
}
.fbtn-primary:hover { background: linear-gradient(135deg, #097d43, #00934a); }
.fbtn-ghost {
    color: #777;
    background: #f6f8f7;
    border: 1px solid #e3e8e5;
}
.fbtn-ghost:hover { background: #eef3f0; color: #555; }

/* ---------- 演员/剧团详情"讨论"标签列表 ---------- */
.fsimple-list { list-style: none; margin: 0; padding: 0; }
.fsimple-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
}
.fsimple-item:hover { background: #f5faf7; }
.fsimple-text { min-width: 0; flex: 1; }
.fsimple-title {
    display: block;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fsimple-item:hover .fsimple-title { color: #00a854; }
.fsimple-meta {
    margin-top: 3px;
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .fhero { padding: 24px 20px 20px; }
    .fhero h1 { font-size: 22px; }
    .fstats { gap: 10px; }
    .fstat { padding: 12px 14px; gap: 10px; }
    .fstat-ico { width: 38px; height: 38px; }
    .fstat-num { font-size: 18px; }
    .fstat-label { font-size: 12px; }
    .fpost, .fcard { padding: 20px 16px; }
    .fpost-title { font-size: 19px; }
    .fpost-head { flex-wrap: wrap; }
    .fpost-hits { margin-left: 0; }
    .fform-grid { grid-template-columns: 1fr; gap: 18px; }
    .fthread { margin-left: 10px; padding-left: 10px; }
    .ftopic-count { min-width: 54px; font-size: 16px; }
}

@media (max-width: 480px) {
    .fhero h1 { font-size: 19px; gap: 8px; }
    .fhero .module-icon { width: 26px; height: 26px; }
    .fhero-sub { font-size: 13px; }
    .fnav a { padding: 7px 16px; font-size: 13px; }
    .fstats { flex-direction: column; gap: 10px; }
    .fstat { padding: 12px 16px; }
    .ftopic-main { padding: 14px; gap: 10px; }
    .favatar { width: 36px; height: 36px; font-size: 15px; }
    .ftopic-title { font-size: 15px; }
    .ftopic-meta { font-size: 12px; }
    .fform-actions .fbtn { flex: 1; padding: 12px; }
}
