/* ============================================================
   海南知焕网络科技有限公司 - 知焕动漫官网主样式
   ============================================================ */

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { border: 0; vertical-align: middle; }
button, input, textarea { font-family: inherit; outline: none; }

/* 版心 */
.wrap { width: 1200px; margin: 0 auto; }

/* ============================================================
   头部（Logo + 热线）
   ============================================================ */
.header-content {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.logo { display: flex; align-items: center; }
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4d4d, #e60012);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.logo-text { margin-left: 12px; }
.logo-text strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}
.logo-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #999;
  letter-spacing: 4px;
  margin-top: 3px;
}

/* 热线 */
.header-tel { display: flex; align-items: center; }
.header-tel .tel-ico {
  color: #e60012;
  margin-right: 12px;
  flex-shrink: 0;
}
.headRight_1 { font-size: 14px; color: #666; }
.headRight_2 { font-size: 24px; font-weight: 700; color: #e60012; margin-top: 2px; }

/* ============================================================
   导航条
   ============================================================ */
.header-rb {
  background: #fff;
  border-bottom: 1px solid #eee;
  min-width: 1200px;
  margin-top: 18px;
  position: relative;
  z-index: 9;
}
ul.nav { overflow: hidden; }
.nav-li {
  float: left;
  width: 150px;
  height: 61px;
  text-align: center;
  position: relative;
  border-right: 1px solid #eee;
}
.nav-a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 61px;
  font-size: 16px;
  color: #333;
  transition: color 0.3s;
}
/* 装饰线（当前页 / 悬停红条） */
.nav-li-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #e60012;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-li:hover .nav-a,
.nav-li.active .nav-a { color: #e60012; }
.nav-li:hover .nav-li-line,
.nav-li.active .nav-li-line { transform: scaleX(1); }

/* ============================================================
   侧边悬浮栏
   ============================================================ */
.sidebar {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  z-index: 99;
}
.sidebar-box {
  position: relative;
  height: 48px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e60012;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.sidebar-box:hover { background: #e60012; color: #fff; }
.sidebar-ico { display: flex; align-items: center; justify-content: center; }
.sidebar-ico svg { width: 22px; height: 22px; }
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
/* 电话悬停展开 */
.sidebar-dark1 {
  position: absolute;
  right: 62px;
  top: 0;
  height: 48px;
  background: #e60012;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.si3:hover .sidebar-dark1 { opacity: 1; visibility: visible; transform: translateX(0); }
.sidebar-dark1 a { color: #fff; font-size: 13px; font-weight: 600; }

/* ============================================================
   客户反馈弹窗
   ============================================================ */
.side-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.side-layer-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.sme-content {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 90%;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
}
.sme-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}
.sme-close:hover { color: #e60012; }
.sme-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 14px;
}
.support-p {
  font-size: 13px;
  color: #888;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 18px;
}
.support-p span { color: #e60012; font-weight: 600; }
.sf-input {
  width: 100%;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.sf-input:focus,
.sf-textarea:focus { border-color: #e60012; }
.sf-textarea {
  width: 100%;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
  margin-bottom: 16px;
}
.support-submit {
  display: block;
  width: 100%;
  height: 40px;
  background: #e60012;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.support-submit:hover { background: #c5000f; }

/* ============================================================
   轮播 Banner
   ============================================================ */
.banner {
  height: 520px;
  position: relative;
  overflow: hidden;
  background: #1f2430;
}
.banner-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.banner-slide.on { opacity: 1; }
.banner-slide .content {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}
.banner-slide h4 {
  font-size: 36px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}
.banner-slide p {
  font-size: 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 26px;
}
.banner-btn {
  display: inline-block;
  background: #e60012;
  color: #fff;
  font-size: 16px;
  padding: 12px 38px;
  border-radius: 24px;
  transition: background 0.3s, transform 0.3s;
}
.banner-btn:hover { background: #c5000f; transform: translateY(-2px); }

/* 分页圆点 */
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  z-index: 5;
}
.banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.banner-dots .dot.on { background: #e60012; }

/* ============================================================
   漫画作品区
   ============================================================ */
.page-main.home-main { padding: 60px 0; }
.index-title { text-align: center; }
.index-title h3 { font-size: 30px; font-weight: 700; color: #222; }
.index-title .title-sub {
  font-size: 14px;
  color: #bbb;
  font-weight: normal;
  margin-left: 8px;
}
.index-title-line {
  width: 60px;
  height: 4px;
  background: #e60012;
  border-radius: 2px;
  margin: 14px auto 0;
}
.index-title-p {
  font-size: 16px;
  color: #999;
  margin-top: 14px;
}

.do_picwrap { margin-top: 40px; }
.do_picwrap ul { display: flex; flex-wrap: wrap; }
.sycp1 {
  width: 282px;
  margin-right: 24px;
  margin-bottom: 30px;
}
.sycp1:nth-child(4n) { margin-right: 0; }
.sycptp { display: block; overflow: hidden; }
.sycptp img {
  width: 100%;
  height: 211px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sycptp:hover img { transform: scale(1.05); }
.sycp1 h5 {
  text-align: center;
  margin-top: 12px;
  font-size: 16px;
  font-weight: normal;
}
.sycp1 h5 a { color: #333; transition: color 0.3s; }
.sycp1 h5 a:hover { color: #e60012; }

/* ============================================================
   我们的优势
   ============================================================ */
.index-solution {
  background: #f5f6f8;
  padding: 60px 0;
}
.iso-content {
  position: relative;
  margin-top: 40px;
}
.adv-viewport { overflow: hidden; }
.adv-track {
  display: flex;
  transition: transform 0.7s ease;
}
.iso-box {
  flex: 0 0 calc((100% - 60px) / 4);
  margin-right: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  text-align: center;
  padding: 34px 20px 28px;
}
.iso-box-img {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fdeaea;
  color: #e60012;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iso-box-img svg { width: 44px; height: 44px; }
.iso-box h3 { font-size: 18px; color: #222; margin: 18px 0 10px; }
.iso-box p { font-size: 14px; color: #666; line-height: 1.8; }

/* 左右切换按钮 */
.adv-prev,
.adv-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.adv-prev { left: -22px; }
.adv-next { right: -22px; }
.adv-prev:hover,
.adv-next:hover {
  background: #e60012;
  border-color: #e60012;
  color: #fff;
}
.adv-prev svg,
.adv-next svg { width: 20px; height: 20px; }

/* ============================================================
   页脚
   ============================================================ */
.footer-content {
  background: #22262e;
  color: #fff;
  padding: 40px 0;
}
.footer-lb {
  display: flex;
  align-items: flex-start;
}
.footer-list { flex: 1; }
.footer-list h4 {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-list ul li { margin-bottom: 10px; }
.footer-list ul a {
  font-size: 14px;
  color: #9aa0ab;
  transition: color 0.3s;
}
.footer-list ul a:hover { color: #fff; }
.footer-list-line {
  width: 1px;
  background: #3a3f4a;
  align-self: stretch;
  margin: 0 50px;
}
.footer-list p {
  font-size: 14px;
  color: #9aa0ab;
  line-height: 2;
}
.footer-list p a { color: #9aa0ab; transition: color 0.3s; }
.footer-list p a:hover { color: #fff; }

/* 版权条 */
.footer-copyright {
  background: #1a1d24;
  text-align: center;
  font-size: 13px;
  color: #8a8f99;
  padding: 16px 0;
}
.footer-copyright a { color: #8a8f99; transition: color 0.3s; }
.footer-copyright a:hover { color: #fff; }

/* ============================================================
   进场动画
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease;
}
.anim.anim2 { transition-delay: 0.2s; }
.anim.anim-show {
  opacity: 1;
  transform: none;
}

/* ============================================================
   公共类（阅读页复用）
   ============================================================ */
/* 子页顶部横幅 */
.page-hero {
  background: linear-gradient(135deg, #283a83, #1f2430);
  color: #fff;
  text-align: center;
  padding: 50px 0;
}
.page-hero h2 { font-size: 28px; font-weight: 700; }
.page-hero p {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* 阅读区 */
.reader-wrap {
  max-width: 760px;
  margin: 40px auto;
}
.reader-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  text-align: center;
  padding-bottom: 20px;
}
.reader-imgs img {
  width: 100%;
  display: block;
  margin-bottom: 12px;
}
.reader-nav {
  text-align: center;
  margin: 30px 0;
}
.btn-nav {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #555;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-nav:hover {
  background: #e60012;
  border-color: #e60012;
  color: #fff;
}
.btn-nav.disabled {
  color: #bbb;
  background: #f5f5f5;
  border-color: #eee;
  pointer-events: none;
}
