/* Portal homepage only. Keep these rules scoped so the restored site header is untouched. */
body#nv_portal.pg_index {
  --portal-width: 1200px;
  --portal-gap: 30px;
  --portal-accent: #1ea65c;
}

body#nv_portal.pg_index .container {
  width: min(var(--portal-width), calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
  box-sizing: border-box;
}
/* The live DIY output can close .row early, so the stable container owns the columns. */
body#nv_portal.pg_index .container.pad-top35 {
  display: grid;
  grid-template-columns: minmax(0, 900px) 270px;
  gap: var(--portal-gap);
  align-items: start;
}
body#nv_portal.pg_index .container.pad-top35 > .row {
  display: contents;
}
body#nv_portal.pg_index .container.pad-top35 .main-mid {
  grid-column: 1;
  min-width: 0;
}
body#nv_portal.pg_index .container.pad-top35 .main-left {
  grid-column: 2;
  min-width: 0;
}
body#nv_portal.pg_index .main-mid,
body#nv_portal.pg_index .main-left {
  float: none;
  width: auto;
  min-width: 0;
  padding-left: 0;
}
body#nv_portal.pg_index .visible-lg-block {
  display: block;
}
body#nv_portal.pg_index .portal-main-left {
  box-sizing: border-box;
}
body#nv_portal.pg_index .portal-main-right {
  box-sizing: border-box;
}
body#nv_portal.pg_index .pad-top35 { padding-top: 25px; }
body#nv_portal.pg_index .pad-top15 { padding-top: 15px; }
body#nv_portal.pg_index .mar-btn15 { margin-bottom: 15px; }

/* Small Bootstrap subset formerly supplied by a global 120 KB stylesheet. */
body#nv_portal.pg_index .dropdown { position: relative; }
body#nv_portal.pg_index .dropdown-toggle:focus { outline: 0; }
body#nv_portal.pg_index .caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
body#nv_portal.pg_index .dropdown-menu {
  position: absolute;
  z-index: 60;
  display: none;
  min-width: 160px;
  list-style: none;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(20, 30, 40, 0.12);
  box-sizing: border-box;
}
body#nv_portal.pg_index .dropdown:hover > .dropdown-menu,
body#nv_portal.pg_index .dropdown:focus-within > .dropdown-menu {
  display: block !important;
}
body#nv_portal.pg_index .form-group { margin-bottom: 15px; }

/* Homepage article stream. */
body#nv_portal.pg_index .article-wrap { padding: 10px 0 !important; }
body#nv_portal.pg_index .newslist {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body#nv_portal.pg_index .news-list {
  display: flex !important;
  float: none;
  width: 100%;
  gap: 20px;
  margin: 0 !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}
body#nv_portal.pg_index .news-list:hover { background: #fafafa; }
body#nv_portal.pg_index .article-wrap .news-img,
body#nv_portal.pg_index .news-list .news-img {
  position: relative;
  flex: 0 0 240px;
  float: none;
  width: 240px;
  height: 160px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body#nv_portal.pg_index .news-list .news-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.35s ease;
}
body#nv_portal.pg_index .news-list:hover .news-img img { transform: scale(1.04); }
body#nv_portal.pg_index .article-wrap .news-info,
body#nv_portal.pg_index .news-list .news-info {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 160px;
  margin-left: 0;
  padding-right: 8px;
}
body#nv_portal.pg_index .news-info dl,
body#nv_portal.pg_index .news-info dt,
body#nv_portal.pg_index .news-info dd {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
body#nv_portal.pg_index .news-info dt { margin-bottom: 8px; }
body#nv_portal.pg_index .news-info dt a {
  display: -webkit-box;
  float: none;
  width: auto;
  max-height: 56px;
  overflow: hidden;
  color: #1e293b !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body#nv_portal.pg_index .news-info dd.text {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body#nv_portal.pg_index .news-info .news_bot {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  width: auto;
  margin-top: 12px;
  padding: 0;
  color: #94a3b8;
}
body#nv_portal.pg_index .news-info .tags a {
  color: #059669;
  background: #ecfdf5;
  border: 0;
}

/* Recommendation sections. */
body#nv_portal.pg_index .product-recomend {
  margin-top: 28px;
  padding: 40px 20px !important;
  background: #f8fafc;
  border-radius: 16px;
}
body#nv_portal.pg_index .recommend-wrap {
  margin: 20px 0 !important;
  padding: 20px 15px !important;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
  box-sizing: border-box;
}
body#nv_portal.pg_index .recommend-wrap .section-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body#nv_portal.pg_index .recommend-wrap .row {
  display: flex !important;
  flex-wrap: wrap;
  margin: 0 -8px !important;
  padding: 0 !important;
}
body#nv_portal.pg_index .recommend-wrap [class*="col-"] {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  margin-bottom: 15px !important;
  padding: 0 8px !important;
  box-sizing: border-box;
}
body#nv_portal.pg_index .video-item {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #000 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
body#nv_portal.pg_index .video-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
}
body#nv_portal.pg_index .video-item img {
  display: block !important;
  width: 100% !important;
  height: 290px !important;
  object-fit: cover !important;
}
body#nv_portal.pg_index .video-text {
  position: absolute !important;
  inset: auto 0 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 85px !important;
  padding: 20px 12px 15px !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5) 70%, transparent) !important;
  box-sizing: border-box;
}
body#nv_portal.pg_index .video-text h5 {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1200px) and (min-width: 769px) {
  body#nv_portal.pg_index .container.pad-top35 {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  body#nv_portal.pg_index .main-mid > .cl:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px;
  }
  body#nv_portal.pg_index .main-mid > .cl:first-child::before,
  body#nv_portal.pg_index .main-mid > .cl:first-child::after {
    display: none;
    content: none;
  }
  body#nv_portal.pg_index .portal-main-left,
  body#nv_portal.pg_index .portal-main-right {
    float: none !important;
    width: auto !important;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  body#nv_portal.pg_index .container.pad-top35 {
    display: block;
  }
  body#nv_portal.pg_index .container.pad-top35 > .row {
    display: block;
  }
  body#nv_portal.pg_index .container {
    width: 100%;
    padding-right: 8px;
    padding-left: 8px;
  }
  body#nv_portal.pg_index .container.pad-top35 { padding-top: 10px; }
  body#nv_portal.pg_index .portal-main-left {
    float: none !important;
    width: 100% !important;
  }
  body#nv_portal.pg_index .portal-main-right,
  body#nv_portal.pg_index .main-left,
  body#nv_portal.pg_index .visible-lg-block.main-left {
    display: none !important;
  }
  body#nv_portal.pg_index .news-list {
    gap: 12px;
    padding: 15px 2px !important;
  }
  body#nv_portal.pg_index .article-wrap .news-img,
  body#nv_portal.pg_index .news-list .news-img {
    flex-basis: 120px;
    width: 120px;
    height: 85px;
    border-radius: 8px;
  }
  body#nv_portal.pg_index .article-wrap .news-info,
  body#nv_portal.pg_index .news-list .news-info {
    min-height: 85px;
    padding-right: 0;
  }
  body#nv_portal.pg_index .news-info dt a {
    max-height: 44px;
    font-size: 16px !important;
    line-height: 1.35 !important;
  }
  body#nv_portal.pg_index .news-info dd.text { display: none; }
  body#nv_portal.pg_index .news-info .news_bot {
    gap: 4px 8px;
    margin-top: 5px;
    font-size: 11px;
  }
  body#nv_portal.pg_index .news-info .name { display: none; }
  body#nv_portal.pg_index .news-tab .dropdown-menu {
    right: 0;
    left: auto !important;
    width: min(92vw, 447px);
  }
  body#nv_portal.pg_index .product-recomend {
    padding: 20px 10px !important;
    border-radius: 0;
  }
  body#nv_portal.pg_index .recommend-wrap { padding: 15px 10px !important; }
  body#nv_portal.pg_index .recommend-wrap [class*="col-"] {
    flex-basis: 50% !important;
    max-width: 50% !important;
    padding: 0 6px !important;
  }
  body#nv_portal.pg_index .video-item img { height: 190px !important; }
  body#nv_portal.pg_index .video-text { min-height: 70px !important; }
  body#nv_portal.pg_index .video-text h5 { font-size: 13px !important; }
}

@media (max-width: 480px) {
  body#nv_portal.pg_index .recommend-wrap [class*="col-"] {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
  body#nv_portal.pg_index .video-item img { height: 220px !important; }
}

/* Keep all right-column modules together even when a DIY block emits extra </div> tags. */
body#nv_portal.pg_index .container.pad-top35 .portal-home-sidebar {
  grid-column: 2;
  min-width: 0;
  width: 270px;
}
body#nv_portal.pg_index .portal-home-sidebar > .main-left,
body#nv_portal.pg_index .portal-home-sidebar > .sticky-wrapper {
  width: 100% !important;
  min-width: 0;
}
@media (max-width: 1200px) and (min-width: 769px) {
  body#nv_portal.pg_index .container.pad-top35 .portal-home-sidebar {
    width: 250px;
  }
}
@media (max-width: 768px) {
  body#nv_portal.pg_index .container.pad-top35 .portal-home-sidebar {
    display: none !important;
  }
}

/* Normalize the restored DIY modules at the top of the homepage sidebar. */
body#nv_portal.pg_index .portal-home-sidebar {
  align-self: start;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}
body#nv_portal.pg_index .portal-home-sidebar .main-left,
body#nv_portal.pg_index .portal-home-sidebar .main-left > .cl,
body#nv_portal.pg_index .portal-home-sidebar .area,
body#nv_portal.pg_index .portal-home-sidebar .frame,
body#nv_portal.pg_index .portal-home-sidebar .column,
body#nv_portal.pg_index .portal-home-sidebar .block,
body#nv_portal.pg_index .portal-home-sidebar .dxb_bc,
body#nv_portal.pg_index .portal-home-sidebar #mar-left,
body#nv_portal.pg_index .portal-home-sidebar #mar-left-sticky-wrapper {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
body#nv_portal.pg_index .portal-home-sidebar .main-left,
body#nv_portal.pg_index .portal-home-sidebar #mar-left-sticky-wrapper,
body#nv_portal.pg_index .portal-home-sidebar .tabs-wrap01 {
  margin-right: 0;
  margin-left: 0;
}
body#nv_portal.pg_index .portal-home-sidebar #mar-left {
  right: auto !important;
  left: auto !important;
}
body#nv_portal.pg_index .portal-home-sidebar .tabs-wrap01,
body#nv_portal.pg_index .portal-home-sidebar .fast-section,
body#nv_portal.pg_index .portal-home-sidebar .fast-section .list,
body#nv_portal.pg_index .portal-home-sidebar .fast-section .list .wrap {
  width: 100%;
  max-width: 100%;
}
body#nv_portal.pg_index .portal-home-sidebar .nav-tabs {
  display: table;
  width: 100%;
  margin: 0;
  padding: 0;
  table-layout: fixed;
  list-style: none;
  border: 0;
}
body#nv_portal.pg_index .portal-home-sidebar .nav-tabs > li {
  display: table-cell;
  float: none;
  width: 100%;
  margin: 0;
  vertical-align: top;
}
body#nv_portal.pg_index .portal-home-sidebar .nav-tabs > li > a {
  display: block;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
  line-height: 20px;
  box-sizing: border-box;
}

/* X5 theme-owned portal homepage modules. */
body#nv_portal.pg_index .main-mid > .cl:first-child {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
}
body#nv_portal.pg_index .portal-main-left {
  flex: 0 0 650px;
  width: 650px !important;
}
body#nv_portal.pg_index .portal-main-right {
  flex: 0 0 240px;
  width: 240px !important;
}
body#nv_portal.pg_index .banner {
  position: relative;
  width: 650px;
  height: 340px;
  overflow: hidden;
  background: #111;
}
body#nv_portal.pg_index .banner .carousel-inner,
body#nv_portal.pg_index .banner .pic,
body#nv_portal.pg_index .banner .item {
  width: 100%;
  height: 340px;
  margin: 0;
  padding: 0;
}
body#nv_portal.pg_index .banner .item {
  position: relative;
  overflow: hidden;
}
body#nv_portal.pg_index .banner .item img {
  display: block;
  width: 100% !important;
  height: 340px !important;
  object-fit: cover;
}
body#nv_portal.pg_index .banner .item .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 48%);
}
body#nv_portal.pg_index .banner .carousel-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 22px;
  background: rgba(0,0,0,.34);
  text-align: center;
}
body#nv_portal.pg_index .banner .carousel-caption a {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
body#nv_portal.pg_index .banner .carousel-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 64px;
  margin-top: -32px;
  color: #fff;
  font-size: 34px;
  line-height: 64px;
  text-align: center;
  background: rgba(0,0,0,.18);
}
body#nv_portal.pg_index .banner .carousel-control.left { left: 0; }
body#nv_portal.pg_index .banner .carousel-control.right { right: 0; }

body#nv_portal.pg_index .techgg-hero-side {
  display: grid;
  height: 340px;
  grid-template-rows: repeat(2, 165px);
  gap: 10px;
}
body#nv_portal.pg_index .techgg-hero-side .tt-item,
body#nv_portal.pg_index .hero-side-link {
  position: relative;
  display: block;
  width: 240px;
  height: 165px;
  overflow: hidden;
  background: #17202b;
}
body#nv_portal.pg_index .hero-side-link::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.84));
}
body#nv_portal.pg_index .hero-side-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
body#nv_portal.pg_index .hero-side-link:hover img { transform: scale(1.04); }
body#nv_portal.pg_index .hero-side-category {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 5px 12px;
  color: #fff;
  font-size: 12px;
  background: #159bea;
}
body#nv_portal.pg_index .techgg-hero-side .tt-item:nth-child(2) .hero-side-category {
  background: #f97316;
}
body#nv_portal.pg_index .hero-side-link strong {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body#nv_portal.pg_index .portal-home-sidebar .sidebar-card {
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}
body#nv_portal.pg_index .portal-home-sidebar .sidebar-title,
body#nv_portal.pg_index .portal-home-sidebar .sidebar-section-title {
  margin: 0;
  padding: 14px 18px;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  border-bottom: 2px solid #1ea65c;
}
body#nv_portal.pg_index .portal-home-sidebar .sidebar-title {
  color: #1ea65c;
  text-align: center;
  border: 0;
}
body#nv_portal.pg_index .brief-list {
  max-height: 440px;
  margin: 0;
  padding: 0 14px;
  overflow: hidden;
  list-style: none;
}
body#nv_portal.pg_index .brief-list li {
  position: relative;
  padding: 15px 4px 14px 14px;
  border-bottom: 1px solid #edf0f2;
}
body#nv_portal.pg_index .brief-list li::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: #2db56f;
}
body#nv_portal.pg_index .brief-list a {
  display: -webkit-box;
  overflow: hidden;
  color: #343a40;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body#nv_portal.pg_index .brief-list time {
  display: block;
  margin-top: 6px;
  color: #b3b7bc;
  font-size: 12px;
}
body#nv_portal.pg_index .cooperation-card {
  padding-bottom: 18px !important;
}
body#nv_portal.pg_index .cooperation-card img {
  display: block;
  width: auto;
  max-width: 230px;
  height: auto;
  margin: 20px auto 0;
}

body#nv_portal.pg_index .comments-tab ul {
  display: flex;
  height: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #e5e7eb;
}
body#nv_portal.pg_index .comments-tab li {
  flex: 1;
  height: 40px;
  color: #666;
  font-size: 17px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
}
body#nv_portal.pg_index .comments-tab li.hit {
  color: #1ea65c;
  border-bottom: 2px solid #1ea65c;
}
body#nv_portal.pg_index .sidebar-comments .pane {
  display: none;
  min-height: 80px;
  border: 0;
  background: #fff;
}
body#nv_portal.pg_index .latest-comments-block { padding: 0 14px; }
body#nv_portal.pg_index .lcb-item {
  padding: 15px 0;
  border-bottom: 1px solid #edf0f2;
}
body#nv_portal.pg_index .lcb-meta {
  display: flex;
  align-items: center;
  min-width: 0;
}
body#nv_portal.pg_index .lcb-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-right: 9px;
  border-radius: 50%;
  object-fit: cover;
}
body#nv_portal.pg_index .lcb-username {
  overflow: hidden;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#nv_portal.pg_index .lcb-date {
  margin-left: auto;
  color: #b2b5ba;
  font-size: 11px;
}
body#nv_portal.pg_index .lcb-message {
  margin: 10px 0 7px;
  padding: 9px 10px;
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 6px;
  background: #f5f6f7;
}
body#nv_portal.pg_index .lcb-article {
  display: block;
  overflow: hidden;
  color: #94999f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#nv_portal.pg_index .lcb-article:hover { color: #1ea65c; }
body#nv_portal.pg_index .sidebar-empty {
  margin: 0;
  padding: 24px 12px;
  color: #aaa;
  text-align: center;
}

body#nv_portal.pg_index .latest-topic-item {
  padding: 14px;
  border-bottom: 1px solid #edf0f2;
}
body#nv_portal.pg_index .latest-topic-item img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}
body#nv_portal.pg_index .latest-topic-item h4 {
  margin: 10px 0 5px;
  font-size: 15px;
  line-height: 1.5;
}
body#nv_portal.pg_index .latest-topic-item h4 a { color: #27313d; }
body#nv_portal.pg_index .latest-topic-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #8b929a;
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1200px) and (min-width: 769px) {
  body#nv_portal.pg_index .portal-main-left {
    flex: 1 1 auto;
    width: auto !important;
  }
  body#nv_portal.pg_index .portal-main-right {
    flex: 0 0 220px;
    width: 220px !important;
  }
  body#nv_portal.pg_index .banner { width: 100%; }
  body#nv_portal.pg_index .techgg-hero-side .tt-item,
  body#nv_portal.pg_index .hero-side-link { width: 220px; }
}
@media (max-width: 768px) {
  body#nv_portal.pg_index .main-mid > .cl:first-child { display: block; }
  body#nv_portal.pg_index .banner,
  body#nv_portal.pg_index .banner .carousel-inner,
  body#nv_portal.pg_index .banner .pic,
  body#nv_portal.pg_index .banner .item,
  body#nv_portal.pg_index .banner .item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}

/* Discuz friend links: populated from common_friendlink. */
body#nv_portal.pg_index .techgg-friendlinks {
  box-sizing: border-box;
  margin-top: 34px;
  margin-bottom: 24px;
  padding: 24px 26px 20px;
  border: 1px solid #edf0f2;
  border-radius: 12px;
  background: #fff;
}
body#nv_portal.pg_index .friendlinks-heading {
  display: flex;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ecef;
}
body#nv_portal.pg_index .friendlinks-heading h3 {
  position: relative;
  margin: 0;
  color: #26313b;
  font-size: 20px;
  font-weight: 700;
}
body#nv_portal.pg_index .friendlinks-heading h3::after {
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 64px;
  height: 3px;
  content: "";
  border-radius: 2px;
  background: #22ad68;
}
body#nv_portal.pg_index .friendlinks-heading span {
  margin-left: 12px;
  color: #a0a7ae;
  font-size: 12px;
  letter-spacing: 1px;
}
body#nv_portal.pg_index .friendlinks-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body#nv_portal.pg_index .friendlinks-logo-grid li { min-width: 0; }
body#nv_portal.pg_index .friendlinks-logo-grid a {
  display: flex;
  box-sizing: border-box;
  height: 82px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  color: #6b737b;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background: #fafbfc;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body#nv_portal.pg_index .friendlinks-logo-grid a:hover {
  color: #179b58;
  border-color: #bde7cf;
  box-shadow: 0 8px 22px rgba(28, 145, 82, .09);
  transform: translateY(-2px);
}
body#nv_portal.pg_index .friendlinks-logo-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
body#nv_portal.pg_index .friendlinks-logo-grid span {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#nv_portal.pg_index .friendlinks-text-list {
  display: flex;
  margin: 14px 0 0;
  padding: 13px 0 0;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  border-top: 1px dashed #e1e5e8;
}
body#nv_portal.pg_index .friendlinks-text-list a {
  color: #707981;
  font-size: 13px;
}
body#nv_portal.pg_index .friendlinks-text-list a:hover { color: #1ea65c; }

@media (max-width: 1200px) and (min-width: 769px) {
  body#nv_portal.pg_index .friendlinks-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  body#nv_portal.pg_index .techgg-friendlinks {
    width: auto;
    margin: 24px 10px 18px;
    padding: 18px 12px 16px;
    border-radius: 9px;
  }
  body#nv_portal.pg_index .friendlinks-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body#nv_portal.pg_index .friendlinks-logo-grid a {
    height: 74px;
    padding: 8px 10px;
  }
  body#nv_portal.pg_index .friendlinks-logo-grid img { max-height: 36px; }
  body#nv_portal.pg_index .friendlinks-text-list { gap: 7px 16px; }
}

/* Reserved homepage advertising positions below 深度·推荐. */
body#nv_portal.pg_index .techgg-ad-section {
  box-sizing: border-box;
  margin-top: 34px;
  padding: 28px 24px 26px;
  border: 1px solid #e8ecef;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfa 0%, #f4f7f6 100%);
}
body#nv_portal.pg_index .techgg-ad-heading {
  display: flex;
  margin-bottom: 20px;
  padding-left: 14px;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #20aa67;
}
body#nv_portal.pg_index .techgg-ad-heading h2 {
  margin: 0;
  color: #1f2b35;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
body#nv_portal.pg_index .techgg-ad-heading span {
  color: #8b959e;
  font-size: 12px;
  letter-spacing: .08em;
}
body#nv_portal.pg_index .techgg-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body#nv_portal.pg_index .techgg-ad-slot {
  position: relative;
  display: flex;
  min-width: 0;
  aspect-ratio: 3 / 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  color: #6d7880;
  border: 1px dashed #b9d8c8;
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(34, 173, 104, .035), rgba(34, 173, 104, .1)),
    repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255, 255, 255, .72) 12px, rgba(255, 255, 255, .72) 24px);
}
body#nv_portal.pg_index .techgg-ad-slot::after {
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 92px;
  height: 92px;
  content: "";
  border: 1px solid rgba(32, 170, 103, .14);
  border-radius: 50%;
}
body#nv_portal.pg_index .techgg-ad-index {
  position: absolute;
  top: 9px;
  left: 10px;
  color: #24a967;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
body#nv_portal.pg_index .techgg-ad-slot strong {
  color: #34423b;
  font-size: 16px;
  font-weight: 700;
}
body#nv_portal.pg_index .techgg-ad-slot small {
  margin-top: 4px;
  color: #95a09a;
  font-size: 11px;
}

@media (max-width: 768px) {
  body#nv_portal.pg_index .techgg-ad-section {
    width: auto;
    margin: 24px 10px 0;
    padding: 20px 12px;
  }
  body#nv_portal.pg_index .techgg-ad-heading {
    margin-bottom: 15px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  body#nv_portal.pg_index .techgg-ad-heading h2 { font-size: 19px; }
  body#nv_portal.pg_index .techgg-ad-grid { grid-template-columns: 1fr; }
  body#nv_portal.pg_index .techgg-ad-slot {
    min-height: 96px;
    aspect-ratio: auto;
  }
}

/* Article stream heading and tag-cloud control. */
body#nv_portal.pg_index .tabBar { position: relative; }
body#nv_portal.pg_index .techgg-stream-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  height: 58px;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8edf0;
}
body#nv_portal.pg_index .techgg-stream-toolbar .hd,
body#nv_portal.pg_index .techgg-stream-toolbar .main-tit02,
body#nv_portal.pg_index .techgg-stream-toolbar .navslider,
body#nv_portal.pg_index .techgg-stream-toolbar .navslider ul {
  height: 58px;
  margin: 0;
  padding: 0;
}
body#nv_portal.pg_index .techgg-stream-toolbar .navslider ul {
  display: flex;
  align-items: stretch;
  list-style: none;
}
body#nv_portal.pg_index .techgg-stream-toolbar .navslider li {
  position: relative;
  display: flex;
  padding: 0 18px;
  align-items: center;
  color: #25313b;
  font-size: 20px;
  font-weight: 800;
  cursor: default;
}
body#nv_portal.pg_index .techgg-stream-toolbar .navslider li:first-child { padding-left: 0; }
body#nv_portal.pg_index .techgg-stream-toolbar .navslider li.on::after,
body#nv_portal.pg_index .techgg-stream-toolbar .navslider li:first-child::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 3px 3px 0 0;
  background: #20ac68;
}
body#nv_portal.pg_index .techgg-tagcloud { position: relative; }
body#nv_portal.pg_index .techgg-tagcloud-toggle {
  display: inline-flex;
  height: 34px;
  padding: 0 14px;
  align-items: center;
  gap: 6px;
  color: #168f54;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid #76d4a4;
  border-radius: 18px;
  background: #f7fffa;
}
body#nv_portal.pg_index .techgg-tagcloud-toggle:hover,
body#nv_portal.pg_index .techgg-tagcloud.is-open .techgg-tagcloud-toggle {
  color: #fff;
  border-color: #20ac68;
  background: #20ac68;
}
body#nv_portal.pg_index .techgg-tagcloud-toggle .caret { transition: transform .2s ease; }
body#nv_portal.pg_index .techgg-tagcloud.is-open .caret { transform: rotate(180deg); }
body#nv_portal.pg_index .techgg-tagcloud-menu {
  position: absolute;
  z-index: 80;
  top: 43px;
  right: 0;
  display: none;
  width: 420px;
  padding: 18px;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  border: 1px solid #e4ebe7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(24, 45, 34, .14);
}
body#nv_portal.pg_index .techgg-tagcloud:hover .techgg-tagcloud-menu,
body#nv_portal.pg_index .techgg-tagcloud:focus-within .techgg-tagcloud-menu,
body#nv_portal.pg_index .techgg-tagcloud.is-open .techgg-tagcloud-menu { display: grid; }
body#nv_portal.pg_index .techgg-tag-group {
  min-width: 0;
  padding: 11px;
  border-radius: 7px;
  background: #f6f9f7;
}
body#nv_portal.pg_index .techgg-tag-group strong {
  display: block;
  margin-bottom: 9px;
  color: #27342e;
  font-size: 13px;
}
body#nv_portal.pg_index .techgg-tag-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body#nv_portal.pg_index .techgg-tag-group a {
  padding: 4px 7px;
  color: #607069;
  font-size: 12px;
  border-radius: 4px;
  background: #fff;
}
body#nv_portal.pg_index .techgg-tag-group a:hover { color: #159557; }
body#nv_portal.pg_index .techgg-tag-intro {
  color: #698078;
  font-size: 12px;
  line-height: 1.65;
  background: linear-gradient(145deg, #eaf9f1, #f7fbf9);
}
body#nv_portal.pg_index .techgg-tag-intro span { display: block; }

/* Compact category flags on the two secondary hero cards. */
body#nv_portal.pg_index .techgg-hero-side .tt-item,
body#nv_portal.pg_index .hero-side-link { border-radius: 7px; }
body#nv_portal.pg_index .hero-side-category {
  top: 9px;
  left: 9px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 768px) {
  body#nv_portal.pg_index .techgg-stream-toolbar {
    height: 52px;
    margin-top: 12px;
    padding: 0 4px;
  }
  body#nv_portal.pg_index .techgg-stream-toolbar .hd,
  body#nv_portal.pg_index .techgg-stream-toolbar .main-tit02,
  body#nv_portal.pg_index .techgg-stream-toolbar .navslider,
  body#nv_portal.pg_index .techgg-stream-toolbar .navslider ul { height: 52px; }
  body#nv_portal.pg_index .techgg-stream-toolbar .navslider li { font-size: 18px; }
  body#nv_portal.pg_index .techgg-tagcloud-menu {
    right: -4px;
    width: min(92vw, 420px);
    grid-template-columns: 1fr;
  }
}

/* Scrollable 7x24 feed keeps the sidebar card height stable. */
body#nv_portal.pg_index .sidebar-briefs .brief-list {
  max-height: 365px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #9bd4b7 transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
body#nv_portal.pg_index .sidebar-briefs .brief-list::-webkit-scrollbar { width: 5px; }
body#nv_portal.pg_index .sidebar-briefs .brief-list::-webkit-scrollbar-track { background: transparent; }
body#nv_portal.pg_index .sidebar-briefs .brief-list::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #9bd4b7;
}

/* Explicit carousel arrows replace the removed Bootstrap glyph font. */
body#nv_portal.pg_index .banner .carousel-control {
  display: flex;
  width: 38px;
  height: 58px;
  margin-top: -29px;
  align-items: center;
  justify-content: center;
  opacity: .72;
  border-radius: 0 7px 7px 0;
  background: rgba(12, 18, 15, .4);
  transition: opacity .2s ease, background-color .2s ease;
}
body#nv_portal.pg_index .banner .carousel-control.right { border-radius: 7px 0 0 7px; }
body#nv_portal.pg_index .banner .carousel-control:hover {
  opacity: 1;
  background: rgba(20, 172, 104, .88);
}
body#nv_portal.pg_index .techgg-carousel-arrow {
  display: block;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-2px);
}

/* Column authors shown in the second comments tab. */
body#nv_portal.pg_index .column-author-list {
  margin: 0;
  padding: 5px 14px 10px;
  list-style: none;
}
body#nv_portal.pg_index .column-author-list li + li { border-top: 1px solid #edf0f2; }
body#nv_portal.pg_index .column-author-list a {
  display: flex;
  min-width: 0;
  padding: 12px 0;
  align-items: center;
  color: #344039;
}
body#nv_portal.pg_index .column-author-list img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
}
body#nv_portal.pg_index .column-author-list span {
  display: block;
  min-width: 0;
  margin-left: 10px;
}
body#nv_portal.pg_index .column-author-list strong,
body#nv_portal.pg_index .column-author-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#nv_portal.pg_index .column-author-list strong {
  color: #2d3933;
  font-size: 13px;
}
body#nv_portal.pg_index .column-author-list small {
  margin-top: 3px;
  color: #98a19c;
  font-size: 11px;
}
body#nv_portal.pg_index .column-author-list i {
  margin-left: auto;
  padding: 3px 6px;
  color: #169759;
  font-size: 10px;
  font-style: normal;
  border-radius: 4px;
  background: #ebf8f1;
}
body#nv_portal.pg_index .column-author-list a:hover strong { color: #159557; }

@media (max-width: 768px) {
  body#nv_portal.pg_index .banner .carousel-control {
    width: 34px;
    height: 50px;
    margin-top: -25px;
    opacity: .82;
  }
  body#nv_portal.pg_index .techgg-carousel-arrow { font-size: 36px; }
}
