﻿@charset "UTF-8";
html {
  font-size: 16px;
}

body {
  background: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  font-family: "Open Sans", "open_sans", "Lucida Grande", "Verdana", "Pingfang SC", "Pingfang TC", "Hiragino Sans GB", "Microsoft YaHei", Cardo, STSong, "Songti SC", SimSun, "PingFang SC", "Microsoft YaHei", 微软雅黑, STXihei, 华文细黑, serif;
  margin: 0px auto;
  -webkit-font-smoothing: antialiased;
}

/* 大容器 */
.contenter-wrap {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px auto;
}

/* 导航头 */
.contenter-wrap-nav {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  position: fixed;
  height: 3.5rem;
  top: 0;
  z-index: 999;
  line-height: 3.5rem;
  justify-content: center;
  align-items: center;
  background-color: #ff4170;
  border-bottom: 1px solid #ff4170;
  padding: 0 3.2rem 0 3.2rem;
}

.tab_box {
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: center;
  margin-left: 5.5rem;
}
.tab_box .font_style {
  font-size: 0.96rem;
  font-family: PingFangSC, PingFang SC;
  font-weight: 600;
  color: #ffffff;
}
.tab_box .ellipsis_box {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab_box .tab_left_box {
  width: 80%;
  display: flex;
  justify-content: left;
  align-items: center;
}
.tab_box .tab_right_box {
  width: 20%;
  display: flex;
  justify-content: right;
  align-items: center;
  line-height: 1.7rem;
  text-align: center;
}
.tab_box .tab_right_box .login_btn {
  width: 4rem;
  height: 1.8rem;
  background: #ffffff;
  border-radius: 0.24rem;
  margin-left: 0.24rem;
  color: #ff4170;
  line-height: 1.8rem;
}
.tab_box .tab_right_box .register_btn {
  width: 4rem;
  height: 1.8rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.23);
  border-radius: 0.24rem;
  border: 0.04rem solid #ffffff;
}
.tab_box .tab_right_box .loginOut_btn {
  width: 4.48rem;
  height: 1.8rem;
  border-radius: 0.24rem;
  border: 0.04rem solid #ffffff;
  margin-left: 0.5rem;
  line-height: 1.8rem;
}
.tab_box .tab_right_box .login_name {
  width: 7rem;
  text-align: right;
}

ul li a {
  color: #fff;
  padding: 0.9375rem 1.25rem;
  font-size: 1rem;
  font-weight: bold;
}

ul li .home {
  padding: 0.9375rem 2.25rem;
}

.currentPage {
  font-size: 0.48rem;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  background: #fff;
}

.currentPage a {
  color: #ff1a53;
}

.logo_box {
  width: 10.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.5rem;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.92rem;
}

.logo {
  width: 2.12rem;
  height: 2.12rem;
  margin-right: 0.48rem;
}

/* 内容 */
.contenter-wrap-content {
  width: 100%;
  margin-top: 3.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 左上角三条杠一开始不显示 */
.nav-btn {
  display: none;
}

.navButtons {
  position: fixed;
  right: 20px;
  z-index: 9999;
  bottom: 20px;
}

.prev {
  background: #222 url("https://cdn.xqapi.cn/website/hsleu_com/prev.png") no-repeat 13px 12px;
  width: 45px;
  height: 45px;
  margin-top: 6px;
  border-radius: 3px;
  display: block;
  cursor: pointer;
}

.next {
  background: #222 url("https://cdn.xqapi.cn/website/hsleu_com/next.png") no-repeat 13px 12px;
  width: 45px;
  height: 45px;
  margin-top: 6px;
  border-radius: 3px;
  display: block;
  cursor: pointer;
}

/* ========== 最新动态列表 ========== */
.ln-main {
  width: 85%;
  margin: 0 auto;
  padding: 32px 0 48px;
  flex: 1;
}

.ln-item {
  display: flex;
  background: #fdf1f4;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ln-item:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 24px rgba(255, 65, 112, 0.28);
}

.ln-item:active {
  transform: scale(1.005);
  box-shadow: 0 10px 32px rgba(255, 65, 112, 0.4);
}

.ln-item-img {
  width: 140px;
  height: 105px;
  flex-shrink: 0;
  margin-right: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.ln-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ln-item-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ln-item-title {
  font-size: 19px;
  font-weight: bold;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ln-item-summary {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ln-item-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ln-item-source {
  font-size: 14px;
  color: #333;
}

.ln-item-time {
  font-size: 13px;
  color: #999;
}

/* 空状态 */
.ln-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  color: #999;
  font-size: 15px;
}

.ln-empty img {
  width: 180px;
  height: auto;
  margin-bottom: 16px;
}

/* 分页 */
.ln-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  user-select: none;
}

.ln-page-btn {
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  margin: 0 4px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.ln-page-btn:hover {
  color: #ff4170;
  border-color: #ff4170;
}

.ln-page-btn.active {
  background: #ff4170;
  border-color: #ff4170;
  color: #fff;
}

.ln-page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #f0f0f0;
}

.ln-page-btn.disabled:hover {
  color: #ccc;
  border-color: #f0f0f0;
}

/* 左右翻页箭头（page_navigation_arrows.png 为向下箭头，旋转使用） */
.ln-page-btn-prev,
.ln-page-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ln-page-arrow {
  width: 12px;
  height: auto;
  display: block;
}

.ln-page-btn-prev .ln-page-arrow {
  transform: rotate(90deg);
}

.ln-page-btn-next .ln-page-arrow {
  transform: rotate(-90deg);
}

.ln-page-btn.disabled .ln-page-arrow {
  opacity: 0.35;
}

/* 每页条数下拉框 */
.ln-page-size-select {
  margin: 0 8px;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid #f0d4dc;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fff url("../images/page_navigation_arrows.png") no-repeat right 10px center;
  background-size: 12px auto;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
}

.ln-page-size-select:hover,
.ln-page-size-select:focus {
  border-color: #ff4170;
}

.ln-page-jump {
  display: flex;
  align-items: center;
  margin-left: 8px;
  font-size: 13px;
  color: #666;
}

.ln-page-jump input {
  width: 44px;
  height: 30px;
  margin: 0 6px;
  border: 1px solid #f0d4dc;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  color: #333;
  outline: none;
}

.ln-page-jump input:focus {
  border-color: #ff4170;
}

/* ========== 最新动态详情 ========== */
.ln-detail-main {
  width: 85%;
  margin: 0 auto;
  padding: 24px 0 48px;
  flex: 1;
}

.ln-detail-back {
  display: inline-block;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  margin-bottom: 16px;
}

.ln-detail-back:hover {
  color: #ff4170;
}

.ln-detail-title {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
}

.ln-detail-meta {
  margin-top: 14px;
  background: #fdf1f4;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
  color: #999;
}

.ln-detail-meta span {
  margin-right: 24px;
}

.ln-detail-meta a {
  color: #1e6fff;
  text-decoration: underline;
  word-break: break-all;
}

.ln-detail-content {
  margin-top: 20px;
  background: #fdf1f4;
  border-radius: 8px;
  padding: 28px 32px;
  font-size: 15px;
  color: #333;
  line-height: 1.9;
  overflow: hidden;
  word-break: break-word;
}

.ln-detail-content p {
  margin: 12px 0;
}

/* 代码块：保持不换行，容器内横向滚动（与后台编辑器一致） */
.ln-detail-content pre {
  max-width: 100%;
  overflow-x: auto;
  background: #f8f4f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 12px 0;
}

.ln-detail-content pre code {
  white-space: pre;
  word-break: normal;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
}

/* 行内代码 */
.ln-detail-content code {
  word-break: break-all;
}

/* 表格：超宽时整体横向滚动 */
.ln-detail-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.ln-detail-content table td,
.ln-detail-content table th {
  border: 1px solid #e8d4da;
  padding: 6px 12px;
  white-space: nowrap;
}

/* 富文本渲染兜底样式：旧内容不带居中样式时也能居中 */
.ln-detail-content [data-w-e-type="video"] {
  text-align: center;
}

.ln-detail-content video {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.ln-detail-content img {
  max-width: 100%;
}

.ln-detail-origin {
  margin-top: 24px;
  font-size: 14px;
  color: #333;
}

.ln-detail-origin a {
  color: #1e6fff;
  text-decoration: underline;
  word-break: break-all;
}


@media screen and (max-width: 768px) {
  .contenter-wrap-nav {
    width: 92%;
    border-bottom: none;
    height: auto;
    display: none;
    padding: 50px 50px 0;
  }
  .contenter-wrap-nav li {
    border-right: none;
    box-sizing: border-box;
    line-height: 54px;
    text-align: left;
    border-bottom: 1px solid #f8e8e3;
  }
  .contenter-wrap-nav li a {
    font-size: 16px;
  }
  .nav-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    background: #eab4a2;
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 999;
    overflow: hidden;
  }
  .nav-btn-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 5px;
  }
  .nav-btn-icon > span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    margin-top: 5px;
  }
  .contenter-wrap-content {
    margin-top: 0;
  }
  .ln-item-img {
    width: 100px;
    height: 76px;
  }
  .ln-item-title {
    font-size: 16px;
  }
  .ln-detail-content {
    padding: 16px;
  }
}
