@charset "utf-8";

/* 专题详情页基础归一化，避免公共样式影响专题组件的尺寸与间距。 */
*,
*::before,
*::after { box-sizing: border-box; }
html,
body,
main,
section,
header,
nav,
div,
h1,
h2,
p,
ul,
li { margin: 0; padding: 0; }
html,
body { min-width: 320px; background: #fff; color: #333; font: 14px/1.5 Arial, "Microsoft YaHei", sans-serif; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { border: 0; vertical-align: middle; }
button { font: inherit; cursor: pointer; }
body > main { width: 100%; background: #fff; }
.topic-hero { position: relative; width: 100%; overflow: hidden; background: #fff; }
.topic-hero-title { position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: 35px; }
.topic-hero-title h1 { height: 35px; margin-left: 50px; overflow: hidden; color: #fff; font-size: 16px; font-weight: 400; line-height: 35px; white-space: nowrap; text-overflow: ellipsis; }
.topic-back { position: absolute; top: 8px; left: 13px; display: block; width: 15px; height: 15px; border: 2px solid #fff; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.topic-cover { position: relative; max-height: 175px; padding-bottom: 57px; overflow: hidden; background: #222; }
.topic-cover::after { content: ""; position: absolute; inset: 0 0 57px; background: linear-gradient(to bottom, rgba(0,0,0,.42), transparent 45%, rgba(0,0,0,.58)); }
.topic-cover img { display: block; width: 100%; max-height: 175px; object-fit: cover; }
.topic-description { position: absolute; right: 98px; bottom: 39px; left: 10px; z-index: 2; max-height: 42px; overflow: hidden; color: #fff; font-size: 13px; line-height: 21px; }
.topic-description-button { position: absolute; right: 6px; bottom: 46px; z-index: 4; width: 80px; height: 24px; border: 0; border-radius: 4px; background: #358ff0; color: #fff; font-size: 12px; line-height: 24px; text-align: center; }
.topic-stats { box-sizing: border-box; height: 30px; padding: 0 12px; background: #efefef; color: #666; line-height: 30px; }
.topic-stats span { display: inline-block; position: relative; padding-left: 22px; }
.topic-count::before { content: ""; position: absolute; top: 9px; left: 1px; width: 13px; height: 10px; border: 2px solid #999; border-radius: 2px; }
.topic-count b { color: #358ff0; font-weight: 400; }
.topic-views { float: right; }
.topic-views::before { content: "♥"; position: absolute; left: 0; color: #999; font-size: 17px; }

.topic-section-title { position: relative; height: 40px; margin: 10px 0; border-bottom: 1px solid #ddd; background: #fff; line-height: 40px; }
.topic-section-title h2 { position: absolute; bottom: -1px; left: 10px; height: 40px; padding: 0 10px 0 5px; border-bottom: 2px solid #358ff0; font-size: 16px; font-weight: 700; }
.topic-section-title time { display: block; margin-right: 10px; overflow: hidden; color: #a7a7a7; font-size: 12px; text-align: right; white-space: nowrap; }
.topic-apps { width: 100%; overflow: hidden; }
.topic-apps li { position: relative; min-height: 58px; padding: 6px 5px 3px 10px; overflow: hidden; border-bottom: 1px solid #e8e8e8; background: #fff; }
.topic-app-main { display: block; overflow: hidden; }
.topic-app-main > img { display: block; float: left; width: 58px; height: 58px; margin-right: 10px; border-radius: 8px; object-fit: cover; }
.topic-app-info { display: block; padding-right: 72px; overflow: hidden; color: #777; }
.topic-app-info strong { display: block; height: 18px; overflow: hidden; color: #333; font-size: 16px; font-weight: 400; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.topic-stars { display: inline-block; margin-top: 5px; color: #ff9c28; font-size: 12px; letter-spacing: -1px; line-height: 14px; }
.topic-stars span { color: #ddd; }
.topic-app-info > time { margin-left: 10px; color: #777; font-size: 12px; }
.topic-app-meta { display: block; height: 16px; overflow: hidden; color: #777; font-size: 12px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.topic-app-meta em { margin: 0 6px; padding: 0 6px; border-right: 1px solid #d9d9d9; border-left: 1px solid #d9d9d9; font-style: normal; }
.topic-app-meta i { color: red; font-style: normal; }
.topic-install { position: absolute; top: 25px; right: 5px; width: 70px; height: 30px; border: 1px solid #358ff0; border-radius: 2px; color: #358ff0; font-size: 14px; line-height: 30px; text-align: center; }
.topic-app-badge { position: absolute; top: 1px; left: 1px; width: 28px; height: 17px; border-radius: 8px 0 8px 0; background: #ff7858; color: #fff; font-size: 10px; line-height: 17px; text-align: center; text-decoration: none; }

.topic-heading { height: 20px; margin: 10px 0 10px 10px; padding-left: 5px; border-left: 5px solid #3c82e1; font-size: 16px; font-weight: 400; line-height: 20px; }
.topic-guess { clear: both; overflow: hidden; border-bottom: 4px solid #e1e1e1; background: #fff; }
.topic-guess-scroll { margin: 0 10px; padding-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.topic-guess-scroll::-webkit-scrollbar { display: none; }
.topic-guess ul { display: flex; width: max-content; }
.topic-guess li { position: relative; width: 140px; margin-right: 10px; overflow: hidden; }
.topic-guess img { display: block; width: 140px; height: 80px; object-fit: cover; }
.topic-guess li span { display: block; width: 100%; height: 30px; overflow: hidden; color: #666; font-size: 14px; line-height: 30px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }

.topic-more { width: 100%; overflow: hidden; background: #fff; }
.topic-more > h2 { height: 15px; margin: 26px 0 9px 16px; color: #151515; font-size: 15px; font-weight: 400; line-height: 15px; }
.topic-more > ul { border-top: 1px solid #e6e6e6; }
.topic-more li { position: relative; box-sizing: border-box; width: 100%; height: 92px; overflow: hidden; border-bottom: 1px solid #e6e6e6; }
.topic-more-cover { display: block; float: left; width: 100px; height: 62px; margin: 15px 0 0 9px; }
.topic-more-cover img { display: block; width: 100px; height: 62px; border-radius: 6px; object-fit: cover; }
.topic-more-info { float: left; width: calc(100% - 155px); margin: 22px 0 0 11px; overflow: hidden; }
.topic-more-title { display: block; height: 16px; overflow: hidden; color: #1c1b1b; font-size: 15px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.topic-more-description { display: -webkit-box; height: 28px; margin-top: 6px; overflow: hidden; color: #a7a7a7; font-size: 11px; line-height: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.topic-more-enter { position: absolute; top: 38px; right: 14px; width: 12px; height: 12px; border: 2px solid #aaa; border-width: 2px 2px 0 0; transform: rotate(45deg); }

.footnav { width: 100%; height: 20px; margin-top: 20px; padding: 3px 0 8px; background: #f1f1f1; line-height: 20px; }
.footnav ul { overflow: hidden; }
.footnav li { float: left; width: 33.333%; text-align: center; }
.footnav a { color: #7e7e7e; font-size: 12px; }
.footcopy { padding: 10px 0; color: #8f8f8f; font-size: 12px; line-height: 25px; text-align: center; }
.footcopy a { color: #8f8f8f; }

.topic-description-dialog { position: fixed; top: 15%; left: 5%; z-index: 10001; box-sizing: border-box; width: 90%; max-height: 70%; padding: 18px 18px 52px; overflow-y: auto; border-radius: 4px; background: #fff; color: #333; font-size: 14px; line-height: 22px; }
.topic-description-dialog button { position: absolute; right: 18px; bottom: 12px; left: 18px; height: 30px; border: 0; border-radius: 3px; background: #358ff0; color: #fff; }
.topic-description-mask { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.6); }

@media (min-width: 640px) {
    .topic-cover img { max-height: 240px; }
    .topic-cover { max-height: 240px; }
}
