/* 资讯门户 v6.3.0 · class 前缀 np- */
:root {
  --np-accent: #00c07b;
  --np-accent-hover: #00a86a;
  --np-bg: #f5f5f5;
  --np-white: #ffffff;
  --np-text: #1a1a1a;
  --np-muted: #8a8888;
  --np-link: #333b55;
  --np-footer: #26304a;
  --np-border: #eeeeee;
  --np-shadow: 0 10px 20px 0 rgba(6, 11, 26, 0.05);
  --np-card-shadow: 0 4px 24px rgba(39, 100, 175, 0.1);
  --np-wrap: 1280px;
  --np-radius: 6px;
  --np-ease: 0.3s ease;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

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-accent);
}

ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

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

.np-main {
  padding: 16px 0 40px;
}

/* Header */
.np-topbar {
  height: 40px;
  background: var(--np-bg);
  color: #5d5b5b;
  font-size: 13px;
}

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

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

.np-topbar__links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.np-topbar__links a {
  color: #565656;
  padding: 0 10px;
  position: relative;
}

.np-topbar__links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  background: #adacac;
  transform: translateY(-50%);
}

.np-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--np-white);
  box-shadow: var(--np-shadow);
}

.np-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.np-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 64px;
}

.np-logo img {
  display: block;
  height: 45px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.np-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  margin-right: 12px;
}

.np-nav__item {
  position: relative;
}

.np-nav__link {
  display: block;
  padding: 0 15px;
  line-height: 64px;
  color: var(--np-text);
  white-space: nowrap;
  font-size: 14px;
}

.np-page-home .np-nav__item:first-child > .np-nav__link {
  color: var(--np-accent);
}

.np-nav__item:has(.np-nav__sub) > .np-nav__link {
  padding-right: 22px;
}

.np-nav__item:has(.np-nav__sub)::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 30px;
  border: 4px solid transparent;
  border-top-color: #999;
  pointer-events: none;
}

.np-nav__sub {
  position: absolute;
  left: 0;
  top: 85%;
  min-width: 140px;
  padding: 8px;
  background: var(--np-white);
  border-radius: 5px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 20;
}

.np-nav__item:hover > .np-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.np-nav__sub a {
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
}

.np-nav__sub a:hover {
  background: var(--np-bg);
  color: var(--np-accent);
}

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

.np-search-btn,
.np-menu-btn {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--np-text);
  font-size: 18px;
  padding: 6px;
  line-height: 1;
}

.np-user {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-user a {
  font-size: 14px;
  color: var(--np-text);
}

.np-user a.np-btn {
  background: var(--np-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 3px;
  line-height: 1;
}

.np-user a.np-btn:hover {
  background: var(--np-accent-hover);
  color: #fff;
}

.np-menu-btn {
  display: none;
}

.np-search {
  position: absolute;
  inset: 0;
  background: var(--np-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.2s ease;
}

.np-search.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.np-search form {
  display: flex;
  align-items: center;
  width: min(560px, calc(100% - 80px));
  background: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
}

.np-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
}

.np-search button[type="submit"] {
  border: 0;
  background: none;
  padding: 0 14px;
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.np-search__close {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  cursor: pointer;
  color: #b2bac2;
  font-size: 20px;
}

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

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

/* Hero + side covers */
.np-focus {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
}

.np-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #111;
  border-radius: 8px;
}

.np-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.np-hero:not(.is-ready) .np-hero__slide:first-of-type,
.np-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

.np-hero__slide:hover img {
  transform: scale(1.03);
}

.np-hero__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: #fff;
  padding: 28px 24px 20px;
  background: linear-gradient(to top, rgba(6, 6, 8, 0.82), rgba(6, 6, 8, 0));
  font-size: 22px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-hero__cap,
.np-hero__cap:hover {
  color: #fff;
}

.np-hero__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--np-ease);
}

.np-hero:hover .np-hero__btn {
  opacity: 1;
}

.np-hero__btn--prev {
  left: 12px;
}

.np-hero__btn--next {
  right: 12px;
}

.np-hero__dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.np-hero__dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
}

.np-hero__dots button.is-on {
  width: 30px;
  background: var(--np-accent);
  opacity: 1;
}

.np-focus__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 480px;
}

.np-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  min-height: 200px;
}

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

.np-cover:hover img {
  transform: scale(1.08);
}

.np-cover__tit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: #fff;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(6, 6, 8, 0.82), rgba(6, 6, 8, 0));
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-cover__tit,
.np-cover:hover .np-cover__tit {
  color: #fff;
}

.np-cover--side {
  min-height: 0;
  height: 100%;
}

.np-cover--side img {
  position: absolute;
  inset: 0;
}

.np-covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.np-covers .np-cover {
  height: 230px;
}

.np-covers--feature .np-cover {
  height: 260px;
}

.np-mix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-top: 14px;
}

.np-mix--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.np-mix--3 .np-mix__img {
  width: 108px;
  height: 80px;
}

.np-mix__item--stack {
  margin-top: 12px;
}

.np-bento {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  height: 300px;
  margin-top: 12px;
}

.np-bento__lg,
.np-bento__sm {
  height: 100%;
  min-height: 0;
}

.np-bento__lg img,
.np-bento__sm img {
  position: absolute;
  inset: 0;
}

.np-mosaic {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.np-mosaic__lg {
  height: 320px;
  min-height: 0;
}

.np-mosaic__lg img {
  position: absolute;
  inset: 0;
}

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

.np-mosaic__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.np-mosaic__sm {
  height: 118px;
  min-height: 118px;
}

.np-mosaic__sm img {
  position: absolute;
  inset: 0;
}

.np-sidehero {
  display: block;
  height: 168px;
  margin-bottom: 12px;
}

.np-sidehero img {
  position: absolute;
  inset: 0;
}

.np-mix__item {
  display: flex;
  gap: 14px;
  min-height: 108px;
}

.np-mix__img {
  width: 168px;
  height: 112px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

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

.np-mix__item:hover img {
  transform: scale(1.06);
}

.np-mix__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 4px;
}

.np-mix__title {
  font-size: 16px;
  font-weight: 600;
  color: #252525;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-mix__item:hover .np-mix__title {
  color: var(--np-accent);
}

.np-mix__excerpt {
  font-size: 13px;
  color: var(--np-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Panels */
.np-panel {
  background: var(--np-white);
  padding: 18px 18px 20px;
  margin-top: 16px;
  border-radius: 8px;
}

.np-tit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 8px 12px;
  margin-bottom: 4px;
}

.np-tit h3,
.np-tit a {
  font-size: 20px;
  font-weight: 600;
  color: #121212;
  line-height: 1.2;
}

.np-tit__more {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--np-muted) !important;
  flex-shrink: 0;
}

.np-tit__more:hover {
  color: var(--np-accent) !important;
}

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

.np-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.np-gallery__item {
  flex: 0 0 calc(16.666% - 9px);
  min-width: 0;
}

.np-gallery__item img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  display: block;
  transition: transform var(--np-ease);
}

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

.np-gallery__item h4 {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.np-gallery__item h4 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.np-split > .np-panel {
  margin-top: 0;
}

.np-mag {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-top: 8px;
}

.np-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.np-thumbs a {
  display: block;
  overflow: hidden;
}

.np-thumbs img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  transition: transform var(--np-ease);
}

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

.np-lines .np-lead {
  min-height: 90px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--np-border);
}

.np-lead h4 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-lead h4 a {
  color: #000;
}

.np-lead p {
  font-size: 13px;
  color: #8e8e8e;
  text-indent: 2em;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-lines li {
  height: 34px;
  line-height: 32px;
}

.np-lines li a,
.np-plain li a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #252525;
}

.np-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.np-duo li {
  flex: 0 0 calc(50% - 5px);
}

.np-duo img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  transition: transform var(--np-ease);
}

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

.np-duo p {
  margin-top: 8px;
  font-size: 14px;
}

.np-duo p a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 18px;
}

.np-plain {
  margin-top: 8px;
}

.np-plain li {
  padding: 4px 0;
}

.np-plain li a {
  height: 22px;
  line-height: 22px;
  font-size: 14px;
}

.np-links {
  background: #fdfdfd;
  padding: 16px;
  margin-top: 16px;
}

.np-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 8px;
}

.np-links__list a {
  position: relative;
  color: #999;
  font-size: 13px;
  padding: 0 12px 0 0;
  margin: 0 8px 8px 0;
}

.np-links__list a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  width: 1px;
  height: 10px;
  background: #999;
}

.np-links__list a:last-child::after {
  display: none;
}

/* Inner layout */
.np-crumb {
  padding: 8px 0 16px;
  color: #888;
  font-size: 13px;
}

.np-crumb a {
  color: #666;
}

.np-inner {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 16px;
}

.np-filter {
  background: var(--np-white);
  box-shadow: var(--np-card-shadow);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

.np-filter h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}

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

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

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

.np-news {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.np-card {
  display: flex;
  gap: 20px;
  background: var(--np-white);
  padding: 16px;
  border-radius: 8px;
  box-shadow: var(--np-card-shadow);
  transition: transform var(--np-ease), box-shadow var(--np-ease);
}

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

.np-card__img {
  width: 30%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.np-card__img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform var(--np-ease);
}

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

.np-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.np-card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 8px;
}

.np-card__title a {
  color: var(--np-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-card__excerpt {
  color: #878787;
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #a1a1a1;
  font-size: 13px;
  margin-top: 10px;
}

.np-card__meta a {
  color: #a1a1a1;
}

.np-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.np-widget {
  background: var(--np-white);
  padding: 18px;
  border-radius: var(--np-radius);
  box-shadow: var(--np-card-shadow);
}

.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;
  padding-top: 0;
}

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

.np-hot a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.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);
}

.np-pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 8px;
}

.np-pager ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.np-pager li {
  list-style: none;
}

.np-pager a,
.np-pager span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 10px;
  text-align: center;
  background: var(--np-white);
  border-radius: 4px;
  color: var(--np-text);
  box-shadow: var(--np-card-shadow);
}

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

/* Article */
.np-article {
  background: var(--np-white);
  padding: 30px;
  border-radius: var(--np-radius);
  box-shadow: var(--np-card-shadow);
  min-height: 420px;
  margin-bottom: 16px;
}

.np-article__title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
}

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

.np-article__cover {
  margin-bottom: 20px;
  text-align: center;
}

.np-article__cover img {
  max-width: 100%;
  border-radius: 5px;
}

.np-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #ffd9c5;
  border-radius: var(--np-radius);
  color: #555;
}

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

.np-article__body p {
  margin: 0 0 1.25rem;
  text-indent: 2em;
}

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

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

.np-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
}

.np-related li {
  flex: 0 0 calc(50% - 5px);
  position: relative;
  padding-left: 14px;
}

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

.np-related a {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single + form */
.np-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--np-border);
}

.np-form h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

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

.np-form input,
.np-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.np-form input:focus,
.np-form textarea:focus {
  border-color: var(--np-accent);
}

.np-form textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 12px;
}

.np-form__tip {
  font-size: 12px;
  color: var(--np-muted);
  margin-bottom: 12px;
}

.np-form button[type="submit"] {
  border: 0;
  background: var(--np-accent);
  color: #fff;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}

.np-form button[type="submit"]:hover {
  background: var(--np-accent-hover);
}

.np-empty {
  background: var(--np-white);
  text-align: center;
  padding: 60px 20px;
  color: var(--np-muted);
  border-radius: 8px;
}

.np-search-head {
  background: var(--np-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--np-card-shadow);
  margin-bottom: 16px;
}

.np-search-head em {
  color: var(--np-accent);
  font-style: normal;
  font-weight: 700;
}

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

.np-footer a {
  color: #fff;
}

.np-footer a:hover {
  color: var(--np-accent);
}

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

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

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

.np-footer__nav a:last-child::after {
  display: none;
}

.np-copy {
  color: #a7a7a7;
  line-height: 1.7;
}

.np-copy a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 6px;
}

.np-float {
  position: fixed;
  right: 12px;
  top: 68%;
  width: 60px;
  z-index: 80;
  background: #fff;
  box-shadow: 0 0 41px #e9e9e9;
  border-radius: 5px;
  padding: 8px 0;
}

.np-float a,
.np-float button {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  color: #373535;
  font-size: 12px;
}

.np-float i {
  display: block;
  font-size: 20px;
  color: #2d2c2c;
  margin-bottom: 2px;
}

.np-float a:hover,
.np-float button:hover,
.np-float a:hover i,
.np-float button:hover i {
  color: var(--np-accent);
}

.np-pop {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  width: 160px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transform-origin: right bottom;
  transition: all 0.2s ease;
  color: #333;
}

.np-float__item:hover .np-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.np-pop img {
  width: 100%;
  display: block;
}

.np-pop p {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
}

.np-backtop {
  display: none;
}

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

.np-float__item {
  position: relative;
}

/* Responsive */
@media (max-width: 991px) {
  .np-topbar {
    display: none;
  }

  .np-menu-btn {
    display: block;
  }

  .np-user {
    display: none;
  }

  .np-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    margin: 0;
    padding-top: 64px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 120;
  }

  .np-nav.is-open {
    transform: none;
  }

  .np-nav__item {
    border-bottom: 1px solid #f4f4f4;
  }

  .np-nav__link {
    line-height: 48px;
    padding: 0 24px;
  }

  .np-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: #f5f5f5;
    min-width: 0;
  }

  .np-nav__item.is-open > .np-nav__sub {
    display: block;
  }

  .np-focus,
  .np-split,
  .np-mag,
  .np-inner {
    grid-template-columns: 1fr;
  }

  .np-hero {
    height: 280px;
  }

  .np-focus__side {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px;
  }

  .np-covers .np-cover,
  .np-covers--feature .np-cover {
    height: 200px;
  }

  .np-mix {
    grid-template-columns: 1fr;
  }

  .np-mix--3 {
    grid-template-columns: 1fr;
  }

  .np-bento {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .np-bento__lg {
    grid-column: 1 / -1;
    height: 220px;
  }

  .np-bento__sm {
    height: 180px;
  }

  .np-mosaic {
    grid-template-columns: 1fr;
  }

  .np-mosaic__lg {
    height: 220px;
  }

  .np-gallery__item {
    flex: 0 0 calc(33.333% - 7px);
  }
}

@media (max-width: 768px) {
  .np-focus__side {
    grid-template-columns: 1fr;
    grid-template-rows: 160px 160px;
  }

  .np-covers .np-cover,
  .np-covers--feature .np-cover {
    height: 180px;
  }

  .np-hero__cap {
    font-size: 16px;
    padding: 16px 14px 14px;
  }

  .np-card {
    gap: 10px;
  }

  .np-card__img {
    width: 33%;
  }

  .np-card__img img {
    height: 90px;
  }

  .np-card__title {
    font-size: 16px;
  }

  .np-card__excerpt {
    display: none;
  }

  .np-article {
    padding: 18px 14px;
  }

  .np-article__title {
    font-size: 22px;
  }

  .np-form__row {
    grid-template-columns: 1fr;
  }

  .np-related li {
    flex: 0 0 100%;
  }

  .np-float {
    display: none;
  }
}
