/* ============ 宗门社区页专属样式 ============ */
.comm-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* ---- 双榜 ---- */
.boards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0 22px;
}
.board-card { margin: 0; }

/* ---- 英杰堂 ---- */
.hero-hall { margin-bottom: 22px; }
.hall-note { margin: -6px 0 14px; font-size: 12px; color: #b39a82; }
.month-table { display: flex; flex-direction: column; gap: 8px; }
.month-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #faf5ef;
    border: 1px solid #f0e4d8;
    font-size: 13px;
    color: #5d564d;
    flex-wrap: wrap;
}
.month-row.now {
    background: linear-gradient(to right, #fff6ec, #fdf0dd);
    border-color: #f5dcbc;
    font-weight: bold;
    color: #c05a24;
}
.m-name { min-width: 110px; color: #a4703a; letter-spacing: 1px; }
.month-row.now .m-name { color: #fd7161; }
.m-cell { flex: 1; min-width: 180px; }
.m-cell b { color: #fd7161; font-size: 15px; }

/* ---- 弹幕墙 ---- */
.wall-card { margin-bottom: 22px; }
.wall-tip { font-size: 11px; color: #c9a06a; font-weight: normal; letter-spacing: 0; }
.danmaku-stage {
    position: relative;
    height: 150px;
    border-radius: 14px;
    background:
        radial-gradient(1.5px 1.5px at 20% 30%, #f0dccb, transparent),
        radial-gradient(1.5px 1.5px at 70% 60%, #f0dccb, transparent),
        radial-gradient(1.5px 1.5px at 45% 80%, #f0dccb, transparent),
        linear-gradient(160deg, #fdf6f0, #f9eddd);
    border: 1.5px dashed #f0dccb;
    overflow: hidden;
    margin-bottom: 12px;
}
.danmaku {
    position: absolute;
    left: 100%;
    white-space: nowrap;
    font-size: 15px;
    font-weight: bold;
    font-family: "ZCOOL KuaiLe", "楷体", 黑体, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .8);
    animation: danmakuRun linear forwards;
    pointer-events: none;
}
.danmaku.mine { font-size: 17px; }
@keyframes danmakuRun {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100vw - 100%)); }
}
.wall-input { display: flex; gap: 12px; margin-bottom: 14px; }
.wall-input input {
    flex: 1;
    border: 1.5px solid #f0dccb;
    border-radius: 50px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 14px;
    color: #4a3a28;
    background: #fdf6f0;
    outline: none;
    transition: border-color .2s;
}
.wall-input input:focus { border-color: #fd7161; }
.wall-input .hero-btn { padding: 10px 26px; font-size: 14px; }
.wall-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wall-item {
    font-size: 12.5px;
    color: #8a7a66;
    background: #faf5ef;
    border: 1px solid #f0e4d8;
    border-radius: 50px;
    padding: 6px 14px;
}
.wall-item.mine {
    color: #fd7161;
    border-color: #f5cfa8;
    background: #fff6ec;
}

/* ---- 常驻道友 ---- */
.npc-title {
    margin: 0 0 14px;
    font-size: 15px;
    color: #4a3a28;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.npc-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #fd7161, #fdc33f);
}
.npc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.npc-card {
    perspective: 800px;
    height: 190px;
    cursor: pointer;
}
.npc-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .55s cubic-bezier(.34, 1.2, .64, 1);
    transform-style: preserve-3d;
}
.npc-card:hover .npc-flip { transform: rotateY(180deg); }
.npc-front, .npc-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
}
.npc-front {
    background: #fff;
    border: 1.5px solid #f0e4d8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.npc-front i { font-style: normal; font-size: 36px; }
.npc-front b { font-size: 15px; color: #4a3a28; margin-top: 8px; }
.npc-front span { font-size: 11px; color: #e09a2f; margin: 3px 0 8px; letter-spacing: 1px; }
.npc-front p { margin: 0; font-size: 11.5px; color: #a89a86; line-height: 1.5; }
.npc-back {
    background: linear-gradient(150deg, #fff4e4, #fdeccd);
    border: 1.5px solid #f2d8a8;
    transform: rotateY(180deg);
}
.npc-back p { margin: 0; font-size: 12px; color: #8a6a43; line-height: 1.7; }

@media (max-width: 900px) {
    .boards { grid-template-columns: 1fr; }
    .npc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 真实道友标记 */
.real-dot {
    font-style: normal;
    font-size: 9px;
    color: #6ccb8f;
    vertical-align: 2px;
    margin-left: 2px;
}
.my-race { color: #a4703a; font-size: 12px; }

/* 鱼币榜图标（避免新 emoji 在老字体下缺字） */
.board-coin {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: -4px;
    margin-right: 2px;
}

/* ============ 摸鱼真人活动台 / 宗主引导 / 榜单空态 ============ */
.feed-hall { margin-bottom: 24px; }
.hall-note { font-size: 12px; color: #b3a89a; margin: -8px 0 14px; }
.feed-mode { font-size: 12px; font-weight: normal; color: #9b8db1; margin-left: 10px; letter-spacing: .5px; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-card { background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 3px 12px rgba(0, 0, 0, .04); }
.feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feed-tag { font-size: 11px; color: #fff; padding: 3px 10px; border-radius: 50px; letter-spacing: 1px; flex-shrink: 0; }
.t-搞笑 { background: linear-gradient(to right, #fd7161, #f0906a); }
.t-技巧 { background: linear-gradient(to right, #e09a2f, #f4c95d); }
.t-公告 { background: linear-gradient(to right, #9c3223, #c86a4f); }
.t-投稿 { background: linear-gradient(to right, #6aab7f, #8cc7a1); }
.feed-author { font-size: 14px; color: #4a3a28; }
.feed-time { font-size: 11px; color: #c9bba7; margin-left: auto; }
.feed-text { margin: 0; font-size: 14px; color: #5d564d; line-height: 1.8; }
.like-btn {
    margin-top: 10px;
    border: 1.5px solid #f0dccb;
    background: #fdf6f0;
    border-radius: 50px;
    padding: 5px 16px;
    font-family: inherit;
    font-size: 12px;
    color: #b39a82;
    cursor: pointer;
    transition: all .2s;
}
.like-btn:hover { border-color: #fd7161; color: #fd7161; }
.like-btn.liked { background: linear-gradient(to right, #fd7161, #fdc33f); border-color: transparent; color: #fff; }

.rank-empty { font-size: 12px; color: #c9bba7; text-align: center; padding: 10px 0 4px; }
.rank-title {
    font-style: normal;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(135deg, #f0b13d, #e04b3a);
    padding: 1px 7px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: 1px;
}
.hall-empty { font-size: 12px; color: #c9bba7; text-align: center; padding: 12px 0 4px; }
.wall-item.empty { color: #c9bba7; }

/* 宗主引导卡：单卡居中放大 */
.npc-solo { display: flex; justify-content: center; }
.npc-solo .npc-card { width: 300px; max-width: 90vw; height: 210px; }
.guide-acts { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.guide-acts a {
    display: block;
    font-size: 12px;
    color: #8a5a2f;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .08);
}
.guide-acts a:hover { color: #e09a2f; }
