:root {
  --np-brand: #aa20ff;
  --np-brand-dark: #8300d3;
  --np-blue: #206be7;
  --np-footer: #26304a;
  --np-bg: #ffffff;
  --np-muted-bg: #f5f5f5;
  --np-white: #ffffff;
  --np-text: #262626;
  --np-link: #333b55;
  --np-heading: #121212;
  --np-muted: #878787;
  --np-border: #e8e8e8;
  --np-shadow: 0 4px 24px rgba(39, 100, 175, 0.1);
  --np-container: 1200px;
  --np-radius: 6px;
  --np-ease: 0.25s ease;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft Yahei", "PingFang SC", "Hiragino Sans GB", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--np-text);
  background: var(--np-bg);
  text-align: left;
}

.page-inner {
  text-align: left;
}

img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: var(--np-link); text-decoration: none; transition: color var(--np-ease); }
a:hover { color: var(--np-brand); }
ul, ol { list-style: none; }
button, input { font-family: inherit; outline: none; }
h1, h2, h3, h4 { font-weight: 600; color: var(--np-heading); line-height: 1.4; }

.np-container {
  width: 100%;
  max-width: var(--np-container);
  margin: 0 auto;
  padding: 0 16px;
}

.np-section { padding: 20px 0; }

/* Header */
.np-header {
  background: #fff;
  box-shadow: 0 10px 20px 0 rgba(6, 11, 26, 0.05);
  position: relative;
  z-index: 50;
}

.np-topbar {
  background: var(--np-muted-bg);
  color: #5d5b5b;
  font-size: 13px;
}

.np-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 16px;
}

.np-topbar__text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.np-topbar__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.np-topbar__actions a {
  color: #565656;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 3px;
}

.np-topbar__actions a:hover { color: var(--np-brand); }

.np-btn-pub {
  background: var(--np-blue);
  color: #fff !important;
  padding: 5px 14px !important;
}

.np-btn-pub:hover { background: var(--np-brand); color: #fff !important; }

.np-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.np-brand { display: flex; align-items: center; min-width: 0; }

.np-logo { display: flex; align-items: center; height: 56px; }
.np-logo img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }

.np-slogan {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  color: #666;
  font-size: 13px;
  max-width: 380px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-slogan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 36px;
  background: rgba(158, 165, 184, 0.35);
  transform: translateY(-50%);
}

.np-slogan strong {
  display: block;
  color: #121212;
  font-size: 15px;
  margin-bottom: 4px;
}

.np-search { min-width: 280px; flex: 0 0 320px; }

.np-search form {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
}

.np-search input[type="text"] {
  flex: 1;
  border: 0;
  background: transparent;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--np-text);
}

.np-search button {
  border: 0;
  background: transparent;
  height: 40px;
  padding: 0 16px;
  cursor: pointer;
  color: #555;
  font-size: 14px;
}

.np-search button:hover { color: var(--np-brand); }

.np-menu {
  background: var(--np-brand);
}

.np-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.np-nav a {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 50px;
  padding: 0 20px;
  white-space: nowrap;
  width:120px;
  text-align: center;
}

.np-nav a:hover,
.np-nav .on a,
.np-nav li.active a {
  color: #fff;
  background: var(--np-brand-dark);
}

.np-nav .np-nav__pub a {
  background: var(--np-brand-dark);
  font-weight: 600;
}

.np-toggle,
.np-overlay { display: none; }

/* Focus 1+4 */
.np-focus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 0 8px;
}

.np-focus__big,
.np-focus__small a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}

.np-focus__big img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.np-focus__small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.np-focus__small img {
  width: 100%;
  height: 169px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.np-focus a:hover img { transform: scale(1.05); }

.np-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 16px;
  color: #fff;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.38);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Section head */
.np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.np-head__title {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.np-head__title:hover { color: var(--np-brand); }

.np-head__more {
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: #f2f2f2;
  color: #111;
  font-size: 18px;
  margin-left: 12px;
}

.np-head__more:hover { background: #e4e2e2; color: #111; }

.np-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 8px;
}

.np-bar span {
  font-size: 22px;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 34px;
}

.np-bar a { color: #999; font-size: 14px; font-weight: 500; }

/* Cover columns */
.np-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.np-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.np-cover { margin-top: 4px; }

.np-cover__pic {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 8px;
}

.np-cover__pic img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.np-cover__pic:hover img { transform: scale(1.05); }

.np-cover li.img-li,
.np-cover .img-li {
  padding: 0;
  list-style: none;
}

.np-cover .img-li::before { display: none; }

.np-cover li {
  position: relative;
  padding: 10px 0 10px 14px;
}

.np-cover .img-li:hover { background: transparent; }

.np-cover li:hover { background: #f8f8f8; }

.np-cover li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 4px;
  height: 4px;
  background: #999;
}

.np-cover li a {
  display: block;
  color: #191919;
  font-size: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Featured + list */
.np-feature {
  display: flex;
  gap: 12px;
  padding-top: 12px;
}

.np-feature__img {
  width: 115px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.np-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.np-feature:hover img { transform: scale(1.05); }

.np-feature__body { min-width: 0; position: relative; flex: 1; }

.np-feature__title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-feature__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 12px;
  color: #828282;
}

/* Feed cards */
.np-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.np-feed--2 { grid-template-columns: repeat(2, 1fr); }
.np-feed--4 { grid-template-columns: repeat(4, 1fr); }
.np-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform var(--np-ease), box-shadow var(--np-ease);
}

.np-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2rem rgba(31, 45, 61, 0.12);
}

.np-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.np-card:hover img { transform: scale(1.04); }

.np-card__title {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 14px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
}

.np-card__meta {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  color: #999;
  font-size: 12px;
}

.np-card:hover .np-card__title { color: var(--np-brand); }

/* Links */
.np-links {
  border-top: 1px solid #e3e3e3;
  padding: 16px 0 8px;
}

.np-links h3 { font-size: 16px; margin-bottom: 12px; }

.np-links a {
  display: inline-block;
  color: #999;
  margin: 0 16px 10px 0;
  font-size: 13px;
}

/* Footer */
.np-footer {
  background: var(--np-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}

.np-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

.np-footer__nav a {
  position: relative;
  color: #fff;
  padding: 0 14px;
  margin: 4px 0;
}

.np-footer__nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: #a7a7a7;
  transform: translateY(-50%);
}

.np-footer__copy p { line-height: 1.8; }
.np-footer__copy a { color: rgba(255, 255, 255, 0.7); margin: 0 4px; }
.np-footer__copy a:hover { color: #fff; }

/* Float */
.np-float {
  position: fixed;
  right: 12px;
  bottom: 80px;
  width: 60px;
  z-index: 40;
}

.np-float__box {
  background: #fff;
  box-shadow: 0 0 24px #e9e9e9;
  border-radius: 5px;
  padding: 8px 0;
  text-align: center;
}

.np-float__item { position: relative; padding: 8px 4px; cursor: pointer; }

.np-float__item span { display: block; font-size: 12px; color: #373535; margin-top: 2px; }

.np-float__item:hover span,
.np-float__item:hover .np-ico { color: var(--np-brand); }

.np-float__pop {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  padding: 14px 16px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--np-ease);
  text-align: left;
}

.np-float__item:hover .np-float__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.np-float__pop h4 { font-size: 16px; margin-bottom: 6px; color: var(--np-heading); }
.np-float__pop p { font-size: 13px; color: #8b8b8c; line-height: 1.5; }
.np-float__pop strong { color: var(--np-brand); font-size: 18px; }

.np-top {
  display: none;
  margin-top: 10px;
  background: var(--np-brand);
  color: #fff;
  border: 0;
  border-radius: 5px;
  width: 100%;
  height: 44px;
  cursor: pointer;
  font-size: 13px;
}

.np-top.is-show { display: block; }

.np-ico {
  display: inline-block;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  color: #2d2c2c;
}

/* Inner layout */
.np-page {
  background: #f7f8fa;
  min-height: 50vh;
  padding: 20px 0 40px;
  text-align: left;
}

.np-main,
.np-side,
.np-panel,
.np-article,
.np-item,
.np-item__body,
.np-item__title,
.np-item__excerpt,
.np-item__meta,
.np-article__title,
.np-article__meta,
.np-article__body,
.np-article__body p,
.np-article__body div,
.np-single__title,
.np-single__body,
.np-single__body p,
.np-single__body div,
.np-crumb,
.np-related,
.np-contact {
  text-align: left;
}

.np-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #3b3b3b;
  margin-bottom: 16px;
}

.np-crumb a { color: #3b3b3b; }
.np-crumb a:hover { color: var(--np-brand); }

.np-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.np-main,
.np-side,
.np-panel {
  background: #fff;
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
}

.np-main { padding: 24px; min-height: 400px; }
.np-side { padding: 20px; }
.np-panel { padding: 28px 32px; }

.np-side__tit {
  position: relative;
  padding-left: 12px;
  font-size: 17px;
  margin-bottom: 12px;
}

.np-side__tit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--np-brand);
  transform: translateY(-50%);
}

.np-hot { counter-reset: hot; }

.np-hot li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #f7f7f7;
  counter-increment: hot;
}

.np-hot li:first-child { border-top: 0; }

.np-hot a {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--np-link);
}

.np-badge {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
  background: #474749;
  font-weight: 700;
}

.np-badge::before { content: counter(hot); }

.np-hot li:nth-child(1) .np-badge { background: linear-gradient(to right, #ff7955, #ee0918); }
.np-hot li:nth-child(2) .np-badge { background: linear-gradient(to right, #ffb784, #ff9143); }
.np-hot li:nth-child(3) .np-badge { background: linear-gradient(to right, #f5ccaf, #e6af87); }

/* List items */
.np-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f4f4f4;
}

.np-item:last-child { border-bottom: 0; }

.np-item__img {
  flex: 0 0 220px;
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
}

.np-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.np-item:hover .np-item__img img { transform: scale(1.04); }

.np-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.np-item__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-item__excerpt {
  color: var(--np-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.np-item__meta { margin-top: auto; color: #a1a1a1; font-size: 13px; }

/* Article */
.np-article__title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
}

.np-article__meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f4f4ff;
}

.np-article__meta span { margin-right: 14px; }

.np-article__body {
  font-size: 16px;
  line-height: 1.85;
  color: #262626;
  overflow: hidden;
  word-wrap: break-word;
}

.np-article__body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
  border-radius: 5px;
}

.np-article__body p,
.np-article__body div,
.np-article__body h1,
.np-article__body h2,
.np-article__body h3,
.np-article__body h4,
.np-single__body p,
.np-single__body div,
.np-single__body h1,
.np-single__body h2,
.np-single__body h3 {
  margin-bottom: 1.1em;
  text-align: left !important;
}

.np-contact {
  margin: 16px 0;
  padding: 12px 16px;
  background: #f7f8fa;
  border-radius: 6px;
  color: #555;
  font-size: 14px;
}

.np-contact a { color: var(--np-brand); }

.np-prenext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.np-prenext a,
.np-prenext span {
  display: block;
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--np-shadow);
  border-radius: 6px;
  color: var(--np-link);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.np-prenext em {
  display: block;
  font-style: normal;
  color: #ccc;
  font-size: 12px;
  margin-bottom: 4px;
}

.np-related { margin-top: 20px; }

.np-related li {
  position: relative;
  padding: 8px 0 8px 14px;
}

.np-related li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--np-brand);
}

/* Search */
.np-searchbox {
  background: #fff;
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
  padding: 28px;
  margin-bottom: 20px;
  text-align: left;
}

.np-searchbox h1 { font-size: 22px; margin-bottom: 16px; }

.np-searchbox form {
  display: flex;
  max-width: 560px;
  margin: 12px 0 0;
  background: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
}

.np-searchbox input[type="text"] {
  flex: 1;
  border: 0;
  background: transparent;
  height: 46px;
  padding: 0 16px;
}

.np-searchbox button {
  border: 0;
  background: var(--np-brand);
  color: #fff;
  padding: 0 22px;
  cursor: pointer;
}

.np-empty { text-align: center; color: #6c757d; padding: 60px 20px; }

/* Pagination — EyouCMS pagelist */
.np-pager {
  text-align: left;
  padding: 24px 0 8px;
  clear: both;
}

.np-pager a,
.np-pager span,
.np-pager li {
  display: inline-block;
  margin: 0 6px 8px 0;
}

.np-pager a,
.np-pager span {
  padding: 8px 16px;
  border-radius: 3px;
  background: #fff;
  box-shadow: var(--np-shadow);
  color: #3b3b3b;
  font-weight: 700;
}

.np-pager a:hover,
.np-pager .active,
.np-pager .thisclass,
.np-pager span.current {
  background: var(--np-brand);
  color: #fff;
}

.np-pager ul {
  display: block;
  padding: 0;
  margin: 0;
}

/* Single */
.np-single__title { font-size: 26px; margin-bottom: 16px; text-align: left; }
.np-single__body { font-size: 16px; line-height: 1.85; text-align: left; }
.np-single__body img { max-width: 100%; height: auto; }

.np-subnav { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

.np-subnav a {
  padding: 6px 14px;
  background: #eff1f5;
  border-radius: 4px;
  color: #6b6b6d;
  font-size: 13px;
}

.np-subnav a:hover,
.np-subnav a.on,
.np-subnav .active a {
  background: var(--np-brand);
  color: #fff;
}

/* User widget in topbar */
.np-user { display: flex; align-items: center; gap: 8px; }
.np-user li { list-style: none; }

/* Responsive */
@media (max-width: 1024px) {
  .np-focus { grid-template-columns: 1fr; }
  .np-focus__big img { height: 280px; }
  .np-cols-3,
  .np-cols-2 { grid-template-columns: 1fr; }
  .np-feed { grid-template-columns: repeat(2, 1fr); }
  .np-layout { grid-template-columns: 1fr; }
  .np-slogan { display: none; }
  .np-search { flex: 1; min-width: 0; }
}

@media (max-width: 768px) {
  .np-topbar { display: none; }

  .np-toggle {
    display: block;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
  }

  .np-toggle span,
  .np-toggle::before,
  .np-toggle::after {
    content: "";
    display: block;
    height: 2px;
    width: 22px;
    background: #111;
    margin: 5px auto;
  }

  .np-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    z-index: 80;
    overflow: auto;
    background: #fff;
  }

  .np-menu.is-open { display: block; }

  .np-nav { flex-direction: column; align-items: stretch; padding: 56px 0 24px; }

  .np-nav a {
    color: #1a1a1a;
    line-height: 44px;
    border-bottom: 1px solid #f5f5f5;
  }

  .np-nav a:hover,
  .np-nav .on a,
  .np-nav li.active a {
    color: #fff;
  }

  .np-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 70;
  }

  .np-overlay.is-open { display: block; }

  .np-site { padding: 8px 0; }
  .np-logo img { height: 40px; }
  .np-search { display: none; }

  .np-focus__small { grid-template-columns: 1fr 1fr; gap: 8px; }
  .np-focus__small img { height: 110px; }
  .np-focus__big img { height: 200px; }
  .np-head__title { font-size: 24px; }
  .np-feed,
  .np-feed--2 { grid-template-columns: 1fr 1fr; }
  .np-card img { height: 120px; }
  .np-item { flex-direction: column; }
  .np-item__img { flex: none; width: 100%; height: 180px; }
  .np-prenext { grid-template-columns: 1fr; }
  .np-article__title { font-size: 22px; }
  .np-float { width: 50px; }
  .np-float__item span { display: none; }
}
