* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: "Microsoft YaHei"; background: #f3f3f3; color: #333; }
body { min-width: 1440px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.site-width { width: 1440px; margin: 0 auto; }

.site-header { width: 100%; background: #fff; }
.header-inner { height: 100px; display: flex; align-items: center; }
.logo { display: block; width: 165px; }
.logo img { display: block; width: 165px; height: 58px; object-fit: contain; }
.main-nav { height: 100%; margin-left: 66px; gap: 60px; display: flex; align-items: center; }
.main-nav a { position: relative; color: #222; font-size: 18px; white-space: nowrap; }
.main-nav a.active { color: #00c9e0; }
.main-nav a.active::after { position: absolute; left: 50%; bottom: -13px; content: ""; width: 32px; height: 3px; border-radius: 2px; background: #00c9e0; transform: translateX(-50%); }
.header-search { width: 330px; height: 40px; margin-left: auto; padding-right: 16px; display: flex; align-items: center; background: #f3f3f3; border-radius: 22px; }
.header-search input { height: 40px; margin-left: 5px; padding: 0 10px; flex: 1; border: 0; outline: 0; background: transparent; }
.header-search button { width: 20px; height: 20px; border: 0; background: transparent; }
.header-search button img { width: 16px; height: 17px; }
.search-button-text { display: none; }
.header-action { width: 70px; height: 34px; margin-left: 20px; border-radius: 20px; background: #00c9e0; color: #fff; font-size: 14px; font-weight: 600; line-height: 34px; text-align: center; }
.mobile-link { margin-left: 40px; font-size: 14px; }

.page-layout { padding-top: 10px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; }
.ask-panel { width: 890px; min-height: 860px; text-align: left; background: #fff; box-shadow: 0 1px 3px rgba(0, 66, 74, .4); }
.ask-types { height: 60px; margin-left: 20px; display: flex; align-items: center; white-space: nowrap; overflow-x: auto; border-bottom: 1px solid #f3f3f3; }
.ask-types a { margin-right: 30px; color: #333; font-size: 16px; }
.ask-types a:first-child { color: #00c9e0; }
.ask-detail { padding: 17px 20px 29px 19px; }
.ask-detail h1 { font-size: 14px; font-weight: 700; color: #444; }
.question-images { display: flex; margin-top: 17px; flex-wrap: wrap; }
.question-images a { margin-right: 10px; margin-bottom: 17px; }
.question-images img { width: 130px; height: 100px; object-fit: cover; }
.question-content { font-size: 12px; color: #999; line-height: 17px; }
.resource-link { display: flex; align-items: center; margin-top: 10px; font-weight: 400; }
.resource-link img { width: 20px; height: 20px; }
.resource-link span { padding-left: 5px; color: #0000ee; font-size: 14px; text-decoration: underline; }
.question-link-preview { margin-top: 6px; }
.question-link-preview-item { display: flex; align-items: flex-start; margin-top: 2px; color: #0969da; font-size: 12px; line-height: 17px; text-decoration: none; cursor: pointer; }
.question-link-preview-item:hover { color: #0550ae; }
.question-link-preview-dot { width: 16px; flex: 0 0 16px; color: #444; line-height: 17px; text-align: center; text-decoration: none; }
.question-link-preview-text { min-width: 0; margin-left: 5px; word-break: break-word; }
.answer-related-preview { margin-top: 0; }
.answer-related-preview-title { margin-top: 20px; margin-bottom: 10px; padding-top: 20px; border-top: 1px solid #f3f3f3; color: #000; font-size: 14px; font-weight: 700; }
.answer-related-preview-item { display: flex; align-items: center; margin-right: 20px; padding: 10px 0; border-bottom: 1px solid #f3f3f3; text-decoration: none; cursor: pointer; }
.answer-related-preview-icon { width: 16px; height: 14px; flex: 0 0 auto; }
.answer-related-preview-dot { width: 16px; flex: 0 0 16px; color: #222; text-align: center; }
.answer-related-preview-name { min-width: 0; margin-left: 10px; color: #444; font-size: 14px; }
.question-actions { margin-top: 9px; padding-bottom: 15px; display: flex; align-items: center; border-bottom: 1px solid #f7f7f7; }
.answer-button { width: 80px; height: 30px; border-radius: 15px; background: #00c9e0; color: #fff; font-size: 12px; line-height: 30px; text-align: center; }
.answer-icon { display: none; }
.collect-button { display: flex; align-items: center; border: 0; background: transparent; color: #999; }
.collect-button img { width: 16px; height: 16px; margin-left: 11px; }
.collect-button span { margin-left: 2px; font-size: 14px; }
.answer-sort { margin-top: 12px; display: flex; align-items: center; justify-content: flex-end; }
.answer-sort button { margin-left: 19px; border: 0; background: transparent; color: #999; font-size: 14px; }
.answer-sort button.active { color: #00c9e0; font-weight: 700; }
.answer-card { padding-bottom: 13px; border-bottom: 1.5px solid #f1f1f1; }
.answer-author { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.author-main { display: flex; align-items: center; }
.avatar { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; object-fit: cover; }
.avatar-empty { background: #eefbff; color: #00aebe; font-size: 10px; }
.author-main > div { margin-left: 11px; }
.author-name { color: #333; font-size: 14px; }
.author-intro { color: #999; font-size: 12px; }
.follow-button { width: 64px; height: 28px; border: 1px solid #00c9e0; border-radius: 14px; background: #fff; color: #00c9e0; font-size: 12px; line-height: 26px; }
.follow-button.is-followed { border-color: #999; color: #666; }
.gold-answer { height: 34px; margin-top: 18px; padding-right: 9px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(315deg, #eefbff 0%, #d0f7ff 100%); }
.gold-answer span { display: flex; align-items: center; color: #00c9e0; font-size: 12px; }
.gold-answer img { width: 49px; height: 49px; }
.gold-answer b { color: #ff8600; font-size: 12px; font-weight: 400; }
.answer-content { padding-top: 12px; color: #333; font-size: 13px; word-break: break-word; }
.answer-content img { max-width: 100%; height: auto; }
.publish-time { margin-top: 20px; color: #999; font-size: 10px; }
.endorse-row { display: flex; justify-content: flex-end; }
.endorse-control { height: 28px; display: flex; align-items: center; }
.endorse-control button { height: 28px; display: flex; align-items: center; border: 1px solid #999; background: #fff; color: #999; font-size: 12px; }
.endorse-control button:first-child { padding: 0 7px 0 10px; border-right: 0; border-radius: 14px 0 0 14px; }
.endorse-control button:last-child { margin-left: -1px; padding: 0 10px 0 7px; border-left: 0; border-radius: 0 14px 14px 0; }
.endorse-control button img { width: 13px; height: 13px; margin-right: 5px; }
.endorse-control i { width: .5px; height: 29px; background: #999; }
.endorse-control button.is-active { border-color: #00c9e0; color: #00c9e0; }
.endorse-control button.is-active + i, .endorse-control i:has(+ button.is-active) { background: #00c9e0; }
.answer-share-button { display: none; }
.comment-compose { min-height: 35px; margin-top: 41px; display: flex; align-items: center; }
.comment-compose strong { color: #333; font-size: 16px; }
.comment-compose > span { margin-left: 4px; padding-top: 7px; color: #333; font-size: 12px; }
.comment-compose input { height: 34px; margin: 0 20px 0 19px; padding: 0 14px; flex: 1; border: 1px solid #999; border-radius: 17px; outline: 0; }
.comment-compose > button { width: 70px; height: 34px; border: 0; border-radius: 17px; background: #00c9e0; color: #fff; font-size: 14px; font-weight: 500; }
.comment-item { margin: 20px 0 0 20px; padding-bottom: 4px; display: flex; border: 0; }
.comment-avatar { width: 34px; height: 35px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; object-fit: cover; }
.comment-body { padding: 2px 0 0 6px; flex: 1; }
.comment-meta { display: flex; align-items: center; }
.comment-meta strong { color: #333; font-size: 13px; }
.comment-meta > span { margin-left: 9px; color: #999; font-size: 10px; }
.comment-meta > button { margin-left: auto; display: flex; align-items: center; border: 0; background: transparent; color: #999; font-size: 12px; }
.comment-meta > button img { width: 16px; height: 16px; }
.comment-meta > button span { padding-left: 5px; }
.comment-meta > button.is-active { color: #999; }
.comment-text { margin-top: 5px; color: #666; font-size: 12px; }
.all-comments { margin: 14px 0 0 20px; display: inline-block; border: 0; background: transparent; color: #00c9e0; font-size: 12px; }
.no-more, .empty-answers { padding-top: 17px; color: #999; font-size: 12px; text-align: center; }

.latest-panel { width: 540px; padding-left: 20px; text-align: left; background: #fff; box-shadow: 0 1px 3px rgba(0, 66, 74, .4); }
.latest-panel h2 { padding: 17px 0 8px; font-size: 16px; font-weight: 700; }
.latest-item { padding: 6px 19px 11px 0; display: block; border-bottom: 1px solid #f3f3f3; }
.latest-item strong { overflow: hidden; display: -webkit-box; color: #444; font-size: 14px; font-weight: 500; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.latest-item > span { margin-top: 8px; display: flex; align-items: center; color: #999; font-size: 10px; }
.latest-item > span img { width: 18px; height: 18px; margin-right: 5px; object-fit: contain; }
.latest-item > span img:nth-of-type(2) { margin-left: 20px; }
.latest-empty { padding: 40px; color: #999; text-align: center; }

.site-footer { width: 100%; background: #fff; }
.footer-inner { height: 120px; display: flex; align-items: center; }
.footer-logo img { width: 180px; height: 56px; }
.footer-content { height: 56px; margin-left: 50px; padding-left: 48px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid #f3f3f3; }
.blogroll { display: flex; }
.blogroll strong { width: 56px; color: #666; font-size: 12px; font-weight: 400; text-align: left; }
.blogroll a { margin-left: 36px; color: #00c9e0; font-size: 12px; }
.records { display: flex; align-items: center; color: #999; font-size: 12px; text-align: left; }
.records img { width: 20px; height: 20px; }
.records a { margin-right: 5px; color: #999; }

.modal-mask { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); }
.modal-mask.is-active { display: flex; }
.account-modal { position: relative; width: 780px; height: 520px; display: flex; background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, .22); }
.account-modal-left { width: 320px; height: 100%; text-align: center; background: linear-gradient(179deg, #52d8e7 0%, #06bdd2 100%); }
.account-modal-left strong { display: block; padding-top: 63px; color: #fff; font-size: 20px; font-weight: 500; }
.account-modal-left img { width: 220px; height: 239px; margin-top: 20px; }
.account-modal-right { flex: 1; text-align: center; }
.account-logo { width: 150px; height: 47px; margin-top: 20px; background: #fff; }
.login-qr { min-height: 405px; }
.account-modal-right p { margin-top: 10px; }
.account-modal-right p span { color: #52d8e7; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 23px; height: 23px; border: 0; background: transparent; }
.modal-close img { width: 23px; height: 23px; }
.bind-modal { height: 500px; }
.bind-modal .account-modal-left img { margin-top: 85px; }
.bind-modal .account-logo { margin-top: 73px; }
.bind-form { width: 340px; margin: 50px 0 0 60px; text-align: left; }
.bind-form input { width: 260px; height: 34px; margin-top: 7px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; outline: 0; }
.bind-code-row { margin-top: 10px; display: flex; align-items: center; }
.bind-code-row input { margin-top: 0; }
.bind-code-row button { width: 86px; border: 0; background: transparent; color: #00c9e0; }
#saveBindPhone { width: 100px; height: 34px; margin: 50px 0 0 80px; border: 0; border-radius: 17px; background: #00c9e0; color: #fff; font-weight: 600; }
.ask-toast { position: fixed; top: 90px; left: 50%; z-index: 1200; display: none; min-width: 220px; max-width: 520px; padding: 12px 20px; border-radius: 4px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .16); color: #666; text-align: center; transform: translateX(-50%); }
.ask-toast.is-active { display: block; }
.ask-toast.success { color: #67c23a; }
.ask-toast.error { color: #f56c6c; }

::-webkit-scrollbar { height: 5px; }
::-webkit-scrollbar-track { background: #f3f3f3; }
::-webkit-scrollbar-thumb { background: #00c9e0; }

/* H5 问答详情页：以现有手机端问答详情的单栏布局为基准。 */
@media (max-width: 767px) {
  html, body { width: 100%; min-width: 0; background: #f3f3f3; }
  body { min-width: 0; }
  .site-width { width: 100%; }
  .site-header { position: sticky; top: 0; z-index: 20; height: 56px; }
  .header-inner { width: 100%; height: 56px; padding: 6px 15px 10px; }
  .logo, .main-nav, .header-action, .mobile-link { display: none; }
  .header-search { width: 100%; height: 36px; margin: 0; padding: 0 5px 0 7px; border-radius: 18px; background: rgba(216, 216, 216, .2); }
  .header-search::before { width: 20px; height: 20px; flex: 0 0 20px; content: ""; background: url("/static/wenda/assets/icon_search.png") center / 20px 20px no-repeat; }
  .header-search input { height: 36px; min-width: 0; margin-left: 3px; padding: 0 6px; font-size: 14px; }
  .header-search button { width: 49px; height: 26px; flex: 0 0 49px; border-radius: 13px; background: rgba(0, 201, 224, .2); color: #00c9e0; font-size: 14px; font-weight: 700; }
  .header-search button img { display: none; }
  .search-button-text { display: inline; }
  .page-layout { display: block; padding: 0; }
  .ask-panel { width: 100%; min-height: 0; box-shadow: none; }
  .ask-types, .latest-panel, .site-footer { display: none; }
  .ask-detail { padding: 15px 14px 0; }
  .ask-detail h1 { padding: 0 1px; font-size: 15px; line-height: 21px; color: #333; }
  .question-images { margin-top: 8px; }
  .question-images a { margin-right: 11px; margin-bottom: 8px; }
  .question-images img { width: 108px; height: 71px; border-radius: 5px; }
  .question-content { padding: 4px 1px 0; font-size: 12px; line-height: 18px; color: #999; word-break: break-word; }
  .resource-link { margin-top: 10px; }
  .resource-link img { width: 20px; height: 20px; }
  .resource-link span { font-size: 14px; }
  .question-link-preview { margin-top: 5px; }
  .question-link-preview-item { margin-top: 2px; font-size: 12px; line-height: 18px; }
  .question-link-preview-dot { line-height: 18px; }
  .answer-related-preview { margin-top: 0; }
  .answer-related-preview-title { margin-top: 9px; margin-bottom: 0; padding-top: 11px; border-top: 1px solid #f3f3f3; color: #333; font-size: 15px; }
  .answer-related-preview-item { align-items: flex-start; margin-right: 0; padding: 14px 0 15px; }
  .answer-related-preview-icon { width: 20px; height: 20px; }
  .answer-related-preview-dot { width: 20px; flex-basis: 20px; font-size: 16px; line-height: 22px; }
  .answer-related-preview-name { margin-left: 8px; font-size: 15px; line-height: 22px; }
  .question-actions { min-height: 53px; margin: 0 -14px; padding: 10px 15px 9px; justify-content: space-between; border-bottom: 0; background: #fff; }
  .answer-button { width: auto; height: 30px; display: flex; align-items: center; background: transparent; color: #999; font-size: 13px; line-height: 30px; }
  .answer-icon { width: 16px; height: 15px; margin-right: 6px; display: block; }
  .collect-button img { width: 16px; height: 16px; margin-left: 0; }
  .collect-button span { font-size: 13px; }
  /* 写回答操作区与回答排序之间使用小程序同款灰色分隔带。 */
  .answer-sort { height: 48px; margin: 0 -14px; padding: 0 15px; justify-content: flex-end; border-top: 10px solid #f3f3f3; background: #fff; }
  .answer-sort button { margin-left: 24px; font-size: 14px; }
  .answer-list { margin: 0 -14px; }
  .answer-card { padding: 0 15px 12px; border-bottom: 10px solid #f3f3f3; }
  .answer-author { margin-top: 0; padding-top: 12px; }
  .avatar { width: 35px; height: 35px; }
  .author-main > div { margin-left: 7px; }
  .author-name { font-size: 13px; }
  .author-intro { margin-top: 2px; font-size: 10px; }
  .follow-button { width: 60px; height: 27px; border-radius: 14px; font-size: 13px; line-height: 25px; }
  .gold-answer { height: 30px; margin-top: 10px; }
  .gold-answer img { width: 44px; height: 44px; }
  .gold-answer span, .gold-answer b { font-size: 12px; }
  .answer-content { padding-top: 11px; font-size: 13px; line-height: 20px; }
  .publish-time { margin-top: 10px; font-size: 10px; }
  .endorse-row { margin-top: 6px; align-items: center; justify-content: space-between; }
  .endorse-control { height: 28px; }
  .endorse-control button { font-size: 12px; }
  .answer-share-button { height: 28px; padding: 0 10px 0 9px; display: flex; align-items: center; border: 1px solid #999; border-radius: 14px; background: #fff; color: #999; font-size: 12px; }
  .answer-share-button img { width: 16px; height: 16px; margin-right: 3px; }
  .comment-compose { min-height: 39px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #f3f3f3; }
  .comment-compose strong { font-size: 15px; }
  .comment-compose > span { padding-top: 5px; }
  .comment-compose input { height: 34px; margin: 0 8px 0 12px; padding: 0 12px; border: 0; border-radius: 17px; background: #f7f7f7; font-size: 12px; }
  .comment-compose > button { width: 54px; height: 32px; border-radius: 16px; font-size: 13px; }
  .comment-item { margin: 14px 0 0; }
  .comment-avatar { width: 35px; height: 35px; flex-basis: 35px; }
  .comment-body { padding-left: 8px; }
  .comment-meta strong { font-size: 13px; }
  .comment-meta > span { margin-left: 7px; font-size: 10px; }
  .comment-text { margin-top: 4px; font-size: 12px; line-height: 18px; }
  .all-comments, .no-more, .empty-answers { padding: 16px 0 4px; margin: 0; font-size: 12px; }
  .modal-mask { padding: 15px; }
  .account-modal, .bind-modal { width: 100%; max-width: 390px; height: auto; min-height: 360px; }
  .account-modal-left { display: none; }
  .account-modal-right { min-height: 360px; }
  .login-qr { min-height: 270px; }
  .bind-form { width: auto; margin: 35px 25px 0; }
  .bind-form input { width: 100%; }
  #saveBindPhone { margin: 35px auto 0; display: block; }
}
