/* 粤TV rem 适配 */
html {
  font-size: calc(100vw / 7.5);
  background: #f9f9f9;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 750px) {
  html {
    font-size: 100px;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", miui, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
  font-size: 12px;
  color: #000;
  background: #f9f9f9;
}

.page-shell {
  max-width: 7.5rem;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  border: 0;
  vertical-align: top;
}

/* 顶部 App 推广栏（对齐原站 footbar-container） */
.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 7.5rem;
  height: 55px;
  background: #fff;
  z-index: 100;
}

.top-bar-slide {
  height: 100%;
  position: relative;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
}

.top-bar .flex-left {
  flex: 1;
  min-width: 0;
  display: flex;
  margin-left: 20px;
}

.top-bar .itouchtv-logo {
  height: 38px;
  width: auto;
  max-width: none;
  display: inline-block;
}

.top-bar .flex-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 25px;
}

.open-app-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 25px;
  line-height: 1;
  padding: 0 0.16rem;
  box-sizing: content-box;
  background: #ff3232;
  color: #fff;
  font-size: 12px;
  border-radius: 12.5px;
  flex-shrink: 0;
}

.close-btn {
  position: relative;
  width: 50px;
  height: 25px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}

.close-btn::before {
  content: "\D7";
  color: #d8d8d8;
  font-size: 18px;
}

.top-bar-pagination {
  position: absolute;
  bottom: 0.08rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.top-bar-pagination .dot {
  display: inline-block;
  width: 0.08rem;
  height: 0.08rem;
  margin: 0 5px;
  border-radius: 50%;
  background: #666;
  opacity: 0.2;
  flex-shrink: 0;
  vertical-align: middle;
}

.top-bar-pagination .dot.active {
  width: 0.28rem;
  height: 0.08rem;
  border-radius: 0.04rem;
  background: #ff3332;
  opacity: 1;
}

.top-bar.hidden {
  display: none;
}

/* 文章主体 */
.article-page {
  padding-top: 55px;
  padding-bottom: 0;
  background: #fff;
}

.article-header {
  padding: 0.32rem 0.44rem 0;
}

.article-title {
  font-size: 0.46rem;
  font-weight: 700;
  line-height: 0.64rem;
  color: #282828;
  margin: 0;
}

.media-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0.16rem;
}

.media-info .flex-l {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.media-info .avatar {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.media-info .descr {
  margin-left: 0.16rem;
  min-width: 0;
}

.media-info .name {
  font-size: 0.28rem;
  color: #282828;
  line-height: 0.4rem;
  font-weight: 500;
}

.media-info .meta {
  display: flex;
  align-items: center;
  font-size: 0.24rem;
  color: #999;
  line-height: 0.34rem;
  margin-top: 0.04rem;
}

.media-info .meta .ipLocation {
  margin-right: 0.16rem;
}

.subscribe {
  flex-shrink: 0;
  width: 1.2rem;
  height: 0.5rem;
  line-height: 0.5rem;
  text-align: center;
  border: 1px solid #ededed;
  border-radius: 0.54rem;
  font-size: 0.24rem;
  color: #ff3232;
}

.tag-container {
  padding: 0 0.44rem;
  margin: 0.1rem 0 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  background: #f6f7f9;
  color: #3399ff;
  font-size: 0.24rem;
  padding: 0.12rem 0.2rem;
  border-radius: 0.24rem;
}

.tag img {
  width: 0.2rem;
  height: 0.28rem;
}

.article-content {
  padding: 0 0.44rem;
  font-size: 0.36rem;
  line-height: 0.594rem;
  color: #282828;
}

.article-content p {
  margin: 0;
}

.article-content .hero-img {
  width: 100%;
  display: block;
  margin-bottom: 0.2rem;
}

.article-content h2.section-title {
  font-size: 0.36rem;
  font-weight: 900;
  line-height: 0.594rem;
  color: #282828;
  margin: 0.4rem 0 0;
}

.article-content .editor {
  margin-top: 0.3rem;
  color: #282828;
}

/* 正文底部：点赞 + 报料 */
.bottom-descr {
  padding: 0.58rem 0.42rem 0.38rem;
  background: #fff;
}

.bottom-descr .like-container {
  margin: 0 auto;
}

.bottom-descr .container {
  text-align: center;
}

.bottom-descr .baoliao {
  display: inline;
  width: 100%;
  max-width: 100%;
  margin-top: 0.67rem;
  height: auto;
  vertical-align: top;
}

.like-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.16rem 0.34rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0.36rem;
  font-size: 0.24rem;
  font-weight: 700;
  color: #5a5a5a;
  gap: 0.08rem;
}

.like-container .icon {
  width: 0.32rem;
  height: 0.32rem;
  background: url("/assets/like-icon.png") no-repeat center;
  background-size: 100% 100%;
  position: relative;
  top: -0.02rem;
  flex-shrink: 0;
}

.like-container .like-count {
  font-size: 0.28rem;
  color: #999;
  font-weight: 400;
  line-height: 1;
}

/* 评论 */
.comment-list {
  background: #fff;
  border-bottom: 0.2rem solid #f2f3f4;
}

.comment-list .title {
  text-align: center;
  padding: 0.44rem 0 0.2rem;
  font-size: 0.36rem;
  font-weight: 700;
  color: #000;
}

.comment-list-container {
  padding: 0.24rem 0.44rem;
}

.comment-empty {
  text-align: center;
  padding: 0.64rem 0;
}

.comment-empty img {
  width: 1.28rem;
  height: 1.28rem;
  margin-bottom: 0.2rem;
}

.comment-empty p {
  font-size: 0.28rem;
  color: #999;
  margin: 0;
}

.comment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 0.2rem;
  padding: 0.24rem 0.16rem;
  background: #f5f5f5;
  border: 1px solid #f5f5f5;
  border-radius: 999px;
  color: #333;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.comment-btn-text {
  display: inline-block;
}

.comment-btn .more-icon {
  width: 0.24rem;
  height: 0.24rem;
  margin-left: 0.08rem;
  flex-shrink: 0;
}

/* 更多推荐 */
.recommend-section {
  background: #fff;
  padding: 0.4rem 0.44rem 0.2rem;
  border-top: 0.2rem solid #f2f3f4;
}

.recommend-section .top {
  font-size: 0.36rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 0.24rem;
}

.recommend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
  padding: 0.24rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-item .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recommend-item .title {
  font-size: 0.32rem;
  font-weight: 400;
  line-height: 0.5rem;
  color: #282828;
  margin: 0 0.22rem 0.12rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-item .title a {
  color: inherit;
  text-decoration: none;
}

.recommend-item .source-line {
  font-size: 0.22rem;
  line-height: normal;
}

.recommend-item .open-app {
  color: #39f;
  margin-right: 0.2rem;
}

.recommend-item .wename {
  color: #aaa;
}

.recommend-item .cover {
  position: relative;
  flex-shrink: 0;
  width: 2.16rem;
  border-radius: 0.16rem;
  overflow: hidden;
  background: #eee;
}

.recommend-item .cover.portrait {
  height: 3.2rem;
}

.recommend-item .cover.landscape {
  height: 1.44rem;
}

.recommend-item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommend-item .cover .time {
  position: absolute;
  left: 0.12rem;
  bottom: 0.12rem;
  font-size: 0.2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.04rem 0.1rem;
  border-radius: 0.08rem;
}

/* 底部 App 按钮 */
.bottom-more {
  box-sizing: border-box;
  background: #f5f5f5 url("/assets/h5-share-bottom.png") no-repeat 0 1.6rem;
  background-size: 7.5rem auto;
  padding: 0.6rem 1.95rem 1.1rem;
}

.app-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  height: 44px;
  padding: 0 15px;
  box-sizing: border-box;
  background: rgb(255, 50, 50);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.app-open-btn img {
  width: 16.8px;
  height: 16.8px;
  flex-shrink: 0;
}
