/* 桌游知识问答栏目 */

.htp-body {
    background: #f5f5f5;
}

.htp-page {
    max-width: 1200px;
    width: 100%;
    margin: 24px auto 48px;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

.htp-header {
    margin-bottom: 20px;
}

.htp-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    margin: 0;
}

.htp-page-lead {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin: 12px 0 0;
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.htp-related__intro {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 14px;
}

.htp-game-card {
    display: grid;
    grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.htp-game-card__cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    background: #f3f4f6;
}

.htp-game-card__name {
    font-size: 1.15rem;
    margin: 0 0 8px;
}

.htp-game-card__name a {
    color: #1d4ed8;
    text-decoration: none;
}

.htp-game-card__name a:hover {
    text-decoration: underline;
}

.htp-game-card__meta,
.htp-game-card__stars,
.htp-game-card__more {
    margin: 6px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.htp-game-card__more a {
    color: #059669;
    font-weight: 600;
}

.htp-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
    line-height: 1.75;
    font-size: 16px;
    color: #333;
}

.htp-content p {
    margin: 0 0 14px;
}

/* 知识正文末尾统一规范提示（较正文小一号、浅灰；70% 宽虚线框居中） */
.htp-disclaimer-wrap {
    width: 70%;
    max-width: 70%;
    margin: 1.75em auto 0;
    padding: 12px 14px;
    border: 1px dashed #aaa;
    box-sizing: border-box;
}

.htp-disclaimer {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #888;
    font-weight: normal;
}

@media (max-width: 480px) {
    .htp-disclaimer-wrap {
        width: 70%;
        max-width: 70%;
        padding: 10px 10px;
    }

    .htp-disclaimer {
        font-size: 13px;
        line-height: 1.7;
    }
}

.htp-related {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px 20px;
    margin-top: 8px;
}

.htp-related__h2 {
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: #111827;
}

.htp-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.htp-related__list li {
    border-bottom: 1px solid #f3f4f6;
}

.htp-related__list li:last-child {
    border-bottom: 0;
}

.htp-related__list a {
    display: block;
    padding: 10px 4px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.htp-related__list a:hover {
    text-decoration: underline;
}

.htp-related__t {
    display: inline;
    margin-right: 8px;
}

.htp-related__g {
    display: inline;
    color: #6b7280;
    font-size: 13px;
}

.htp-related--boardgame {
    max-width: 1200px;
    margin: 28px auto 12px;
    padding: 16px 20px;
}

/* 知识页底部：相关问题（仅标题，每行 3 条） */
.htp-knowledge-foot {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px 24px 28px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.htp-knowledge-foot--grid {
    padding: 18px 16px 22px;
}

.htp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
    width: 100%;
}

.htp-related-grid__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 3em;
    padding: 10px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-sizing: border-box;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
}

.htp-related-grid__cell:hover {
    border-color: #f98206;
    color: #f98206;
}

@media (max-width: 640px) {
    .htp-related-grid {
        gap: 8px 6px;
    }

    .htp-related-grid__cell {
        font-size: 12px;
        padding: 8px 4px;
        min-height: auto;
    }
}

/* 列表页 */
.htp-list-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 24px auto 48px;
    padding: 0 20px;
    box-sizing: border-box;
}

.htp-list-h1 {
    font-size: 28px;
    font-weight: normal;
    margin: 0 0 20px;
    color: #333;
    text-align: center;
    font-family: pingfang, "Microsoft Yahei", "PingFang SC", sans-serif;
}

.htp-list-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.htp-list-item__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}

.htp-list-item__title:hover {
    text-decoration: underline;
}

.htp-list-item__game {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.htp-list-item__ex {
    margin: 8px 0 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.htp-list-empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.htp-pagebar {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.htp-pagebar a,
.htp-pagebar b {
    padding: 6px 10px;
    border-radius: 6px;
}

.htp-pagebar a {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #2563eb;
    text-decoration: none;
}

.htp-pagebar b {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 640px) {
    .htp-game-card {
        grid-template-columns: 1fr;
    }

    .htp-game-card__cover {
        max-width: 240px;
    }
}
