body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  word-break: break-word;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

#preloader {
  transition: opacity 0.28s ease, visibility 0.28s ease;
  animation: preloader-autohide 0s linear 10s forwards;
}

@keyframes preloader-autohide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Unify cover geometry to avoid uneven blank gaps when source images vary. */
.featured-post-item .featured-post-item-img,
.list-style-1 .list-style-1-img,
.grid-style-1 .grid-style-1-img,
.grid-style-2 .grid-style-2-img,
.listing-post .listing-post-thumbnail,
.listing-post-2 .listing-post-2-thumbnail,
.instagram-item .instagram-item-img,
.single-post-img {
  position: relative;
  overflow: hidden;
}

.featured-post-area .col-lg-8 .featured-post-item .featured-post-item-img {
  aspect-ratio: 16 / 9;
}

.featured-post-area .col-lg-4 .featured-post-item .featured-post-item-img {
  aspect-ratio: 2 / 1;
}

.list-style-1 .list-style-1-img,
.grid-style-1 .grid-style-1-img,
.grid-style-2 .grid-style-2-img {
  aspect-ratio: 16 / 10;
}

.listing-post .listing-post-thumbnail,
.listing-post-2 .listing-post-2-thumbnail {
  aspect-ratio: 4 / 3;
}

.instagram-item .instagram-item-img {
  aspect-ratio: 1 / 1;
}

/* Home section-specific cover standards:
   keep each block consistent even when source images differ. */
.cover-featured-main {
  aspect-ratio: 16 / 9 !important;
}

.cover-featured-side {
  aspect-ratio: 16 / 9 !important;
}

.cover-latest-main,
.cover-latest-grid,
.cover-channel-main {
  aspect-ratio: 16 / 10 !important;
}

.cover-thumb-card {
  aspect-ratio: 4 / 3 !important;
}

.cover-square {
  aspect-ratio: 1 / 1 !important;
}

.cover-sidebar-hot {
  aspect-ratio: 16 / 10 !important;
}

.cover-featured-main img,
.cover-featured-side img,
.cover-latest-main img,
.cover-latest-grid img,
.cover-channel-main img,
.cover-thumb-card img,
.cover-square img,
.cover-sidebar-hot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.home-channel-row {
  align-items: stretch;
}

.home-channel-col {
  display: flex;
  flex-direction: column;
}

.home-channel-main {
  display: flex;
  flex-direction: column;
}

.home-channel-main .grid-style-1-content {
  display: block;
  min-height: 0;
}

.home-channel-main-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.45;
  min-height: 0;
}

.home-channel-main-meta {
  margin-top: 8px;
}

.home-channel-list-item {
  align-items: stretch;
}

.home-channel-list-item .listing-post-2-thumbnail {
  flex: 0 0 34%;
  max-width: 34%;
  min-width: 34%;
}

.home-channel-list-item .listing-post-2-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-height: 94px;
}

.home-channel-list-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.45;
  min-height: 0;
}

.sidebar-hot-card {
  display: flex;
  flex-direction: column;
}

.sidebar-hot-card .grid-style-1-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 108px;
}

.sidebar-hot-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.45;
  min-height: 0;
}

.grid-style-2 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-style-2 .grid-style-2-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  padding: 12px 14px 14px;
}

.grid-style-2 .grid-style-2-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.grid-style-2 .grid-style-2-content p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.header-upper-links .site-brand-tip {
  color: #d1d5db;
  font-size: 12px;
  letter-spacing: 0;
}

.header-middle .logo-brand img {
  max-height: 56px;
  width: auto;
}

.header-social .dropdown-menu {
  min-width: 300px;
}

.header-social .dropdown-menu form {
  min-width: 260px;
}

.header-social .dropdown-menu .form-control {
  min-height: 42px;
}

.featured-post-item-img img,
.grid-style-1-img img,
.grid-style-2-img img,
.list-style-1-img img,
.listing-post-thumbnail img,
.listing-post-2-thumbnail img,
.sidebar-top-news-box-img img,
.single-post-img img,
.instagram-item-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.top-featured-fill .listing-post-2,
.index-left-fill .listing-post-2 {
  background: #fff;
}

.top-featured-fill .listing-post-2 .listing-post-2-thumbnail,
.index-left-fill .listing-post-2 .listing-post-2-thumbnail,
.container .row > .col-lg-4 .listing-post-2 .listing-post-2-thumbnail {
  flex: 0 0 34%;
  max-width: 34%;
  min-width: 34%;
}

.top-featured-fill .listing-post-2 .listing-post-2-content,
.index-left-fill .listing-post-2 .listing-post-2-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.top-featured-fill .listing-post-2 .listing-post-2-title a,
.index-left-fill .listing-post-2 .listing-post-2-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.6;
}

.featured-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-side-col .featured-side-item {
  margin-bottom: 0 !important;
}

.featured-post-item-img,
.grid-style-1-img,
.grid-style-2-img,
.list-style-1-img,
.listing-post-thumbnail,
.listing-post-2-thumbnail,
.sidebar-top-news-box-img,
.single-post-img {
  background: #f3f4f6;
}

.inner-page-title .page-title {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.pglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pglist a,
.pglist span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  color: #4b5563;
  font-size: 14px;
  background: #fff;
}

.pglist a:hover,
.pglist .thisclass,
.pglist .now-page {
  color: #fff;
  border-color: #dc3545;
  background: #dc3545;
}

.search-empty,
.list-empty,
.related-empty {
  color: #6b7280;
  background: #f8fafc;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 16px;
}

.trending-box.is-empty,
.category-widget.is-empty,
.tags-list.is-empty {
  color: #6b7280;
  background: #f8fafc;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 16px;
}

.trending-box.is-empty::before,
.category-widget.is-empty::before,
.tags-list.is-empty::before {
  content: "暂无内容，稍后更新";
}

.featured-post-carousel.is-empty,
.carousel-arrow-style-1.is-empty,
.instagram-carousel.is-empty {
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #f8fafc;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.featured-post-carousel.is-empty::before,
.carousel-arrow-style-1.is-empty::before,
.instagram-carousel.is-empty::before {
  content: "暂无文章，发布内容后会自动展示";
  color: #6b7280;
}

.row > .col-lg-6.col-md-6:only-child,
.row > .col-lg-4.col-md-6:only-child {
  flex: 0 0 100%;
  max-width: 100%;
}

.single-post-content .post-content-body {
  line-height: 1.9;
  color: #374151;
}

.single-post-content .post-content-body h2,
.single-post-content .post-content-body h3,
.single-post-content .post-content-body h4 {
  margin-top: 1.3em;
  margin-bottom: 0.6em;
  color: #111827;
}

.single-post-content .post-content-body p {
  margin-bottom: 1em;
}

.single-post-content .post-content-body blockquote {
  border-left: 4px solid #dc3545;
  background: #fff5f5;
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 6px;
}

.single-post-content .post-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.single-post-content .post-content-body table th,
.single-post-content .post-content-body table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
}

.single-post-content .post-content-body table th {
  background: #f9fafb;
}

.single-post-content .post-content-body ul,
.single-post-content .post-content-body ol {
  padding-left: 20px;
  margin: 0.8em 0;
}

.single-post-content .post-content-body a {
  color: #dc3545;
  text-decoration: underline;
}

.article-permalink {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  word-break: break-all;
}

.article-permalink strong {
  color: #111827;
}

.top-news-card .sidebar-top-news-box-img {
  min-height: 220px;
}

.single-post-meta-box .single-post-meta {
  flex-wrap: wrap;
  row-gap: 8px;
}

.featured-post-content .featured-post-title,
.list-style-1-content .list-style-1-title,
.grid-style-1-content .grid-style-1-title,
.grid-style-2-content .grid-style-2-title {
  line-height: 1.38;
}

.post-meta {
  flex-wrap: wrap;
  row-gap: 6px;
}

.steel-seo-box {
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #171b22 0%, #1f252f 100%);
  border: 1px solid rgba(255, 138, 61, 0.12);
}

.steel-seo-box-head h3 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 6px;
}

.steel-seo-box-head p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.steel-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.steel-seo-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, 0.24);
  background: rgba(255, 138, 61, 0.08);
  color: #ffd8c2;
  font-size: 13px;
}

.steel-seo-links a:hover {
  background: rgba(255, 138, 61, 0.18);
  color: #fff;
}

/* Homepage latest feature: stack image and text to avoid a large empty dark panel
   when seo_description is empty. */
.latest-feature-card {
  display: block;
  padding: 0;
  background-color: #1f2024;
}

.latest-feature-card .list-style-1-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7 !important;
}

.latest-feature-card .list-style-1-content {
  padding: 16px 18px 18px;
}

.latest-feature-card .list-style-1-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 18px !important;
  line-height: 1.45;
}

.latest-feature-card p[itemprop="description"] {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

@media (max-width: 1199px) {
  .featured-post-area {
    padding-top: 46px !important;
    padding-bottom: 28px !important;
  }

  .header-newsletter-link {
    display: none;
  }
}

@media (max-width: 991px) {
  .pt-50 {
    padding-top: 40px !important;
  }

  .pb-50 {
    padding-bottom: 40px !important;
  }

  .mb-50 {
    margin-bottom: 32px !important;
  }

  .featured-post-area {
    padding-top: 36px !important;
  }

  .header-middle .advertisement-banner {
    margin-top: 14px;
  }

  .header-middle .advertisement-banner img {
    width: 100%;
    height: auto;
  }

  .featured-post-item-img,
  .list-style-1-img,
  .single-post-img {
    min-height: 240px;
  }

  .sidebar {
    margin-top: 34px;
  }

  .featured-side-col {
    display: block;
  }

  .featured-side-col .featured-side-item {
    margin-bottom: 20px !important;
  }

  .latest-feature-card .list-style-1-img {
    min-height: 0;
  }

  .latest-feature-card .list-style-1-content {
    padding: 14px 16px 16px;
  }

  .home-channel-col {
    display: block;
  }

  .home-channel-main .grid-style-1-content,
  .home-channel-list-item .listing-post-2-content,
  .sidebar-hot-card .grid-style-1-content {
    min-height: 0;
  }

  .home-channel-list-item .listing-post-2-thumbnail {
    flex: 0 0 32%;
    max-width: 32%;
    min-width: 32%;
  }
}

@media (max-width: 767px) {
  .pt-50 {
    padding-top: 34px !important;
  }

  .pb-50 {
    padding-bottom: 34px !important;
  }

  .mb-50 {
    margin-bottom: 26px !important;
  }

  .mb-30 {
    margin-bottom: 20px !important;
  }

  .header-upper-links,
  .header-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .header-middle .logo-brand {
    text-align: center;
  }

  .header-middle .advertisement-banner {
    margin-top: 16px;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
  }

  .header-social .dropdown-menu {
    min-width: 240px;
  }

  .header-social .dropdown-menu form {
    min-width: 0;
  }

  .featured-post-item-img,
  .list-style-1-img,
  .single-post-img {
    min-height: 210px;
  }

  .featured-post-area .col-lg-4 .featured-post-item .featured-post-item-img {
    aspect-ratio: 16 / 9;
  }

  .single-post-content .post-single-title {
    font-size: 26px;
    line-height: 1.35;
  }

  .featured-post-content .font-size-32 {
    font-size: 24px !important;
  }

  .featured-post-content .font-size-20 {
    font-size: 19px !important;
  }

  .list-style-1-content p,
  .grid-style-2-content p {
    font-size: 14px;
    line-height: 1.75;
  }

  .single-post-content .post-content-body {
    font-size: 16px;
    line-height: 1.85;
  }

  .guestbook-shell {
    padding: 20px !important;
  }

  .sidebar {
    margin-top: 36px;
  }

  .inner-page-title .page-title {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .inner-page-title {
    padding-top: 34px !important;
    padding-bottom: 22px !important;
  }

  .inner-page-title .page-title {
    font-size: 22px;
    line-height: 1.3;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .post-meta,
  .single-post-meta {
    font-size: 12px;
  }

  .single-post-content .post-single-title {
    font-size: 22px;
  }

  .single-post-content .post-content-body {
    font-size: 15px;
  }

  .pglist a,
  .pglist span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* 36Kr-inspired industrial news portal skin */
:root {
  --kr-bg: #f6f7f9;
  --kr-surface: #ffffff;
  --kr-surface-soft: #f1f5f9;
  --kr-text: #101828;
  --kr-muted: #667085;
  --kr-line: #e5e7eb;
  --kr-line-strong: #d0d5dd;
  --kr-navy: #0f172a;
  --kr-blue: #0369a1;
  --kr-accent: #f26a21;
  --kr-accent-dark: #d94f12;
  --kr-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--kr-bg);
  color: var(--kr-text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--kr-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(242, 106, 33, 0.9);
  outline-offset: 2px;
}

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

@media (min-width: 1200px) {
  .container {
    max-width: 1180px;
  }
}

.kr-site-header {
  position: relative;
  z-index: 20;
  background: var(--kr-surface);
  color: var(--kr-text);
  border-bottom: 1px solid var(--kr-line);
}

.kr-topbar {
  background: var(--kr-navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.kr-topbar-inner,
.kr-mainbar-inner,
.kr-trendbar-inner {
  display: flex;
  align-items: center;
  min-width: 0;
}

.kr-topbar-inner {
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.kr-topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kr-topbar-links li {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
}

.kr-topbar-links li + li {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.kr-topbar-links a,
.kr-topbar-links span {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.kr-mainbar {
  background: var(--kr-surface);
  border-bottom: 1px solid var(--kr-line);
}

.kr-mainbar-inner {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr) auto;
  gap: 24px;
  padding: 18px 0;
}

.kr-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 52px;
}

.kr-logo img,
.kr-mobile-brand img {
  display: block;
  max-width: 230px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.kr-search {
  width: 100%;
  min-width: 0;
}

.kr-search form {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--kr-line-strong);
  border-radius: var(--kr-radius);
  background: var(--kr-surface);
}

.kr-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--kr-text);
  font-size: 14px;
  background: transparent;
}

.kr-search button {
  flex: 0 0 auto;
  min-width: 88px;
  border: 0;
  padding: 0 18px;
  background: var(--kr-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.kr-search button:hover {
  background: var(--kr-accent-dark);
}

.kr-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.kr-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--kr-line);
  border-radius: var(--kr-radius);
  color: var(--kr-text);
  font-size: 13px;
  font-weight: 700;
}

.kr-header-actions .kr-action-primary {
  border-color: var(--kr-navy);
  background: var(--kr-navy);
  color: #fff;
}

.kr-nav-wrap {
  background: var(--kr-surface);
  border-bottom: 1px solid var(--kr-line);
}

.kr-navbar {
  padding: 0;
  min-height: 46px;
}

.kr-mobile-brand {
  display: none;
}

.kr-nav-list {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.kr-navbar .nav-item {
  position: relative;
}

.kr-navbar .nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 15px !important;
  color: var(--kr-text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.kr-navbar .nav-item.active > .nav-link,
.kr-navbar .nav-link:hover {
  color: var(--kr-accent);
}

.kr-navbar .nav-item.active > .nav-link:after,
.kr-navbar .nav-link:hover:after {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 3px;
  content: "";
  background: var(--kr-accent);
}

.kr-navbar .dropdown-menu {
  margin-top: 0;
  border: 1px solid var(--kr-line);
  border-radius: 0 0 var(--kr-radius) var(--kr-radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.kr-navbar .dropdown-item {
  padding: 9px 16px;
  color: var(--kr-text);
  font-size: 14px;
}

.kr-navbar-toggler {
  border: 0;
  padding: 8px;
}

.kr-navbar-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--kr-text);
  border-radius: 999px;
}

.kr-trendbar {
  background: #fbfcfd;
  border-bottom: 1px solid var(--kr-line);
}

.kr-trendbar-inner {
  min-height: 38px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kr-trendbar-inner::-webkit-scrollbar {
  display: none;
}

.kr-trendbar-inner span {
  flex: 0 0 auto;
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 800;
}

.kr-trendbar-inner a {
  flex: 0 0 auto;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.kr-page {
  padding: 28px 0 52px;
}

.kr-home-hero {
  padding: 4px 0 34px;
}

.kr-home-layout,
.kr-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.kr-home-main,
.kr-content-main,
.kr-article-main {
  min-width: 0;
}

.kr-home-aside,
.kr-content-side {
  min-width: 0;
}

@media (min-width: 992px) {
  .kr-home-aside,
  .kr-content-side {
    position: sticky;
    top: 16px;
  }
}

.kr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kr-line);
}

.kr-section-head span,
.kr-archive-title span,
.kr-market-panel span {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--kr-accent);
  font-size: 12px;
  font-weight: 900;
}

.kr-section-head h1,
.kr-section-head h2,
.kr-archive-title h1,
.kr-market-panel h2 {
  margin: 0;
  color: var(--kr-text);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
}

.kr-section-head-main h1 {
  font-size: 28px;
}

.kr-section-head > a,
.kr-channel-title > a {
  flex: 0 0 auto;
  color: var(--kr-muted);
  font-size: 13px;
  font-weight: 800;
}

.kr-lead-article {
  display: grid;
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--kr-line);
  border-radius: var(--kr-radius);
  background: var(--kr-surface);
}

.kr-lead-media,
.kr-feed-thumb,
.kr-channel-img,
.kr-side-card-img,
.kr-article-cover {
  display: block;
  overflow: hidden;
  background: var(--kr-surface-soft);
}

.kr-lead-media {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.kr-lead-media img,
.kr-feed-thumb img,
.kr-channel-img img,
.kr-side-card-img img,
.kr-article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kr-lead-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kr-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(242, 106, 33, 0.1);
  color: var(--kr-accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.kr-lead-body h2 {
  margin: 12px 0 8px;
  color: var(--kr-text);
  font-size: 25px;
  line-height: 1.35;
  font-weight: 900;
}

.kr-lead-body h2 a,
.kr-feed-body h2 a,
.kr-channel-card a,
.kr-rank-list a,
.kr-flash-list a,
.kr-simple-list a,
.kr-side-card-title {
  color: var(--kr-text);
}

.kr-lead-body h2 a:hover,
.kr-feed-body h2 a:hover,
.kr-channel-card a:hover,
.kr-rank-list a:hover,
.kr-flash-list a:hover,
.kr-simple-list a:hover,
.kr-side-card-title:hover {
  color: var(--kr-accent);
}

.kr-lead-body p,
.kr-feed-body p,
.kr-market-panel p,
.kr-service-box p,
.kr-archive-title p {
  margin: 0;
  color: var(--kr-muted);
  font-size: 14px;
  line-height: 1.75;
}

.kr-meta,
.kr-feed-kicker,
.kr-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 600;
}

.kr-meta {
  margin-top: auto;
  padding-top: 14px;
}

.kr-feed-tabs {
  display: flex;
  gap: 10px;
  margin: 18px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.kr-feed-tabs::-webkit-scrollbar {
  display: none;
}

.kr-feed-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--kr-line);
  border-radius: 999px;
  background: var(--kr-surface);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.kr-feed-tabs a.active,
.kr-feed-tabs a:hover {
  border-color: var(--kr-navy);
  background: var(--kr-navy);
  color: #fff;
}

.kr-news-feed {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--kr-line);
  background: var(--kr-surface);
}

.kr-feed-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--kr-line);
  background: var(--kr-surface);
}

.kr-feed-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.kr-feed-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kr-feed-kicker {
  margin-bottom: 8px;
}

.kr-feed-kicker a {
  color: var(--kr-accent-dark);
  font-weight: 900;
}

.kr-feed-body h2 {
  margin: 0 0 8px;
  color: var(--kr-text);
  font-size: 19px;
  line-height: 1.42;
  font-weight: 900;
}

.kr-feed-body h2 a,
.kr-channel-feature h4 a,
.kr-side-card-title,
.kr-rank-list a,
.kr-flash-list a,
.kr-simple-list a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kr-feed-body h2 a,
.kr-channel-feature h4 a {
  -webkit-line-clamp: 2;
}

.kr-feed-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.kr-channel-section {
  padding: 22px 0 34px;
}

.kr-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.kr-channel-card,
.kr-side-section,
.kr-market-panel,
.kr-form-shell,
.kr-form-aside,
.kr-article-main {
  border: 1px solid var(--kr-line);
  border-radius: var(--kr-radius);
  background: var(--kr-surface);
}

.kr-channel-card {
  min-width: 0;
  padding: 16px;
}

.kr-channel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.kr-channel-title h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
}

.kr-channel-img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.kr-channel-feature h4 {
  margin: 10px 0 12px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}

.kr-channel-list,
.kr-simple-list,
.kr-flash-list,
.kr-side-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kr-channel-list li,
.kr-simple-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--kr-line);
}

.kr-channel-list li:before,
.kr-simple-list li:before {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--kr-accent);
  content: "";
}

.kr-channel-list a,
.kr-simple-list a {
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.kr-simple-list time {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--kr-muted);
  font-size: 12px;
}

.kr-market-section {
  padding: 10px 0 0;
}

.kr-market-panel {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #101828 0%, #1f2937 100%);
  color: #fff;
}

.kr-market-panel h2 {
  color: #fff;
}

.kr-market-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.kr-market-links,
.kr-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kr-market-links a,
.kr-service-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.kr-market-links a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kr-market-links a:hover {
  background: var(--kr-accent);
  border-color: var(--kr-accent);
  color: #fff;
}

.kr-sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.kr-side-section {
  padding: 16px;
}

.kr-side-section .kr-section-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.kr-side-section .kr-section-head h2,
.kr-service-box h2 {
  margin: 0;
  color: var(--kr-text);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
}

.kr-side-section .kr-section-head a {
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 800;
}

.kr-rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank-counter;
}

.kr-rank-list li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--kr-line);
  counter-increment: rank-counter;
}

.kr-rank-list li:last-child,
.kr-flash-list li:last-child,
.kr-side-card-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kr-rank-list li:before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--kr-surface-soft);
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 900;
  content: counter(rank-counter);
}

.kr-rank-list li:nth-child(1):before,
.kr-rank-list li:nth-child(2):before,
.kr-rank-list li:nth-child(3):before {
  background: var(--kr-accent);
  color: #fff;
}

.kr-rank-list a {
  grid-column: 2;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 800;
  -webkit-line-clamp: 2;
}

.kr-rank-list span {
  grid-column: 2;
  color: var(--kr-muted);
  font-size: 12px;
}

.kr-flash-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--kr-line);
}

.kr-flash-list time {
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 800;
}

.kr-flash-list a {
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 800;
  -webkit-line-clamp: 2;
}

.kr-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kr-tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--kr-line);
  border-radius: 999px;
  background: #fbfcfd;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.kr-tag-cloud a:hover {
  border-color: var(--kr-accent);
  background: rgba(242, 106, 33, 0.08);
  color: var(--kr-accent-dark);
}

.kr-rank-list.is-empty,
.kr-flash-list.is-empty,
.kr-tag-cloud.is-empty,
.kr-channel-list.is-empty,
.kr-simple-list.is-empty,
.kr-news-feed.is-empty,
.kr-channel-grid.is-empty,
.kr-mega-channel-grid.is-empty,
.kr-side-flash-grid.is-empty,
.kr-side-random-grid.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px;
  border: 1px dashed var(--kr-line-strong);
  border-radius: var(--kr-radius);
  background: #fbfcfd;
  color: var(--kr-muted);
  font-size: 14px;
  font-weight: 700;
}

.kr-rank-list.is-empty::before,
.kr-flash-list.is-empty::before,
.kr-tag-cloud.is-empty::before,
.kr-channel-list.is-empty::before,
.kr-simple-list.is-empty::before,
.kr-news-feed.is-empty::before,
.kr-channel-grid.is-empty::before,
.kr-mega-channel-grid.is-empty::before,
.kr-side-flash-grid.is-empty::before,
.kr-side-random-grid.is-empty::before {
  content: "暂无内容，稍后更新";
}

.kr-service-box {
  padding: 16px;
  background: #fbfcfd;
}

.kr-service-box p {
  margin: 8px 0 14px;
}

.kr-service-links a {
  border: 1px solid var(--kr-line);
  background: var(--kr-surface);
  color: var(--kr-text);
}

.kr-service-links a:hover {
  border-color: var(--kr-navy);
  background: var(--kr-navy);
  color: #fff;
}

.kr-side-card-list li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--kr-line);
}

.kr-side-card-img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.kr-side-card-title {
  color: var(--kr-text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  -webkit-line-clamp: 2;
}

.kr-side-card-list span {
  display: inline-flex;
  margin-top: 6px;
  color: var(--kr-muted);
  font-size: 12px;
}

.kr-archive-header {
  padding: 4px 0 24px;
}

.kr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--kr-muted);
  font-size: 13px;
  font-weight: 700;
}

.kr-breadcrumb a {
  color: var(--kr-muted);
}

.kr-archive-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--kr-line);
  border-radius: var(--kr-radius);
  background: var(--kr-surface);
}

.kr-archive-title h1 {
  font-size: 30px;
}

.kr-subcategory {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kr-subcategory a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--kr-line);
  border-radius: 999px;
  background: #fbfcfd;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.kr-subcategory a:hover {
  border-color: var(--kr-navy);
  background: var(--kr-navy);
  color: #fff;
}

.kr-list-section {
  padding-bottom: 8px;
}

.kr-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.kr-pagination a,
.kr-pagination span,
.pglist a,
.pglist span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--kr-line);
  border-radius: 6px;
  background: var(--kr-surface);
  color: var(--kr-text);
  font-size: 13px;
  font-weight: 800;
}

.kr-pagination a:hover,
.pglist a:hover,
.pglist .current,
.pglist span.current {
  border-color: var(--kr-navy);
  background: var(--kr-navy);
  color: #fff;
}

.kr-related-tags {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--kr-line);
  border-radius: var(--kr-radius);
  background: var(--kr-surface);
}

.kr-article-page {
  padding-top: 30px;
}

.kr-article-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.kr-article-main {
  padding: 28px;
}

.kr-article-title {
  margin: 14px 0 12px;
  color: var(--kr-text);
  font-size: 34px;
  line-height: 1.32;
  font-weight: 900;
}

.kr-article-meta {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--kr-line);
}

.kr-article-cover {
  aspect-ratio: 16 / 9;
  margin: 22px 0 26px;
  border-radius: var(--kr-radius);
}

.kr-article-body {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.kr-article-body p {
  margin: 0 0 1.1em;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.9;
}

.kr-article-body h2,
.kr-article-body h3,
.kr-article-body h4 {
  margin: 1.6em 0 0.65em;
  color: var(--kr-text);
  line-height: 1.45;
  font-weight: 900;
}

.kr-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 6px;
}

.kr-article-body table {
  display: block;
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.kr-article-body th,
.kr-article-body td {
  padding: 10px 12px;
  border: 1px solid var(--kr-line);
}

.kr-article-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--kr-line);
}

.kr-share-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--kr-muted);
  font-size: 13px;
  font-weight: 800;
}

.kr-share-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--kr-line);
  border-radius: 999px;
  background: #fbfcfd;
  color: var(--kr-text);
}

.kr-share-links a:hover {
  border-color: var(--kr-accent);
  color: var(--kr-accent-dark);
}

.kr-permalink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 6px;
  background: var(--kr-surface-soft);
  color: var(--kr-muted);
  font-size: 13px;
}

.kr-permalink a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--kr-text);
}

.kr-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.kr-prev-next a {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--kr-line);
  border-radius: var(--kr-radius);
  background: #fbfcfd;
  color: var(--kr-text);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 800;
}

.kr-prev-next span {
  display: block;
  margin-bottom: 6px;
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 900;
}

.kr-related-block {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--kr-line);
}

.kr-form-section {
  padding-bottom: 10px;
}

.kr-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.kr-form-shell {
  padding: 24px;
}

.kr-form-shell .item {
  margin-bottom: 16px;
}

.kr-form-shell label {
  display: block;
  margin-bottom: 7px;
  color: var(--kr-text);
  font-size: 14px;
  font-weight: 800;
}

.kr-form-shell label i {
  margin-left: 3px;
  color: var(--kr-accent);
  font-style: normal;
}

.kr-form-shell .input {
  overflow: hidden;
  border: 1px solid var(--kr-line-strong);
  border-radius: var(--kr-radius);
  background: var(--kr-surface);
}

.kr-form-shell .text,
.kr-form-shell textarea {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  color: var(--kr-text);
  font-size: 14px;
}

.kr-form-shell textarea {
  min-height: 150px;
  resize: vertical;
}

.kr-form-shell .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--kr-radius);
  background: var(--kr-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.kr-form-shell .submit:hover {
  background: var(--kr-accent);
}

.kr-form-aside {
  padding: 0;
}

.kr-site-footer {
  padding: 38px 0 0;
  border-top: 1px solid var(--kr-line);
  background: #101828;
  color: rgba(255, 255, 255, 0.72);
}

.kr-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.kr-footer-brand h2,
.kr-footer-col h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
}

.kr-footer-brand p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.kr-footer-brand a,
.kr-footer-col a,
.kr-footer-col span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.kr-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kr-footer-col li + li {
  margin-top: 8px;
}

.kr-footer-col a:hover,
.kr-footer-brand a:hover {
  color: #fff;
}

.kr-footer-bottom {
  margin-top: 30px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kr-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.scroll-top {
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  line-height: 38px;
  border-radius: 8px;
  background: var(--kr-navy);
}

.scroll-top:hover {
  background: var(--kr-accent);
}

@media (max-width: 1199px) {
  .kr-mainbar-inner {
    grid-template-columns: minmax(160px, 220px) minmax(260px, 1fr);
  }

  .kr-header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .kr-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .kr-home-layout,
  .kr-content-layout,
  .kr-article-layout,
  .kr-form-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-home-aside,
  .kr-content-side {
    position: static;
  }

  .kr-home-aside,
  .kr-content-side,
  .kr-form-aside {
    margin-top: 22px;
  }

  .kr-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .kr-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 0;
  }

  .kr-topbar-right {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .kr-topbar-right::-webkit-scrollbar {
    display: none;
  }

  .kr-mainbar-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }

  .kr-logo {
    justify-content: center;
  }

  .kr-logo img {
    max-height: 48px;
  }

  .kr-header-actions {
    display: none;
  }

  .kr-search input {
    height: 40px;
    font-size: 13px;
  }

  .kr-search button {
    min-width: 74px;
    padding: 0 12px;
    font-size: 13px;
  }

  .kr-navbar {
    justify-content: flex-end;
    min-height: 44px;
  }

  .kr-navbar .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }

  .kr-nav-list {
    align-items: stretch;
    padding: 8px 0 12px;
    border-top: 1px solid var(--kr-line);
  }

  .kr-navbar .nav-link {
    min-height: 38px;
    padding: 0 4px !important;
  }

  .kr-navbar .nav-item.active > .nav-link:after,
  .kr-navbar .nav-link:hover:after {
    display: none;
  }

  .kr-navbar .dropdown-menu {
    width: 100%;
    border-radius: var(--kr-radius);
    box-shadow: none;
  }

  .kr-page {
    padding-top: 20px;
  }

  .kr-lead-article,
  .kr-feed-card,
  .kr-market-panel,
  .kr-archive-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-lead-body h2 {
    font-size: 22px;
  }

  .kr-section-head-main h1,
  .kr-archive-title h1 {
    font-size: 24px;
  }

  .kr-feed-card {
    gap: 12px;
  }

  .kr-feed-thumb {
    aspect-ratio: 16 / 9;
  }

  .kr-subcategory {
    justify-content: flex-start;
    max-width: none;
  }

  .kr-article-main {
    padding: 20px;
  }

  .kr-article-title {
    font-size: 26px;
  }

  .kr-article-actions,
  .kr-prev-next {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-article-actions {
    flex-direction: column;
  }

  .kr-share-links {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .kr-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .kr-section-head h1,
  .kr-section-head h2 {
    font-size: 22px;
  }

  .kr-channel-grid,
  .kr-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-lead-article,
  .kr-channel-card,
  .kr-side-section,
  .kr-market-panel,
  .kr-archive-title,
  .kr-form-shell,
  .kr-service-box {
    padding: 14px;
  }

  .kr-feed-body h2 {
    font-size: 17px;
  }

  .kr-feed-body p {
    -webkit-line-clamp: 3;
  }

  .kr-article-title {
    font-size: 23px;
  }

  .kr-article-body,
  .kr-article-body p {
    font-size: 16px;
    line-height: 1.85;
  }

  .kr-permalink {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Grand homepage modules */
.kr-grand-home {
  padding-top: 0;
}

.kr-grand-hero {
  padding: 34px 0 46px;
  background: #eef2f6;
}

.kr-grand-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr) minmax(250px, 0.62fr);
  grid-template-areas:
    "copy lead briefs"
    "signals signals signals";
  gap: 18px;
  overflow: hidden;
  min-height: 560px;
  padding: 28px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #0b1220 0%, #162033 52%, #253044 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
}

.kr-grand-shell::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--kr-accent), #fbbf24 32%, #38bdf8 100%);
}

.kr-grand-copy,
.kr-grand-lead,
.kr-grand-briefs,
.kr-grand-signals {
  position: relative;
  z-index: 1;
}

.kr-grand-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 12px 14px 4px;
}

.kr-grand-copy span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffb978;
  font-size: 12px;
  font-weight: 900;
}

.kr-grand-copy h1 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 900;
}

.kr-grand-copy p {
  max-width: 470px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.85;
}

.kr-grand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.kr-grand-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.kr-grand-actions a:first-child {
  border-color: var(--kr-accent);
  background: var(--kr-accent);
}

.kr-grand-actions a:hover {
  border-color: #fff;
  background: #fff;
  color: var(--kr-navy);
}

.kr-grand-lead {
  grid-area: lead;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.kr-grand-media {
  display: block;
  min-height: 250px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.kr-grand-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kr-grand-lead-body {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.kr-grand-lead-body h2 {
  margin: 12px 0 8px;
  color: var(--kr-text);
  font-size: 25px;
  line-height: 1.35;
  font-weight: 900;
}

.kr-grand-lead-body h2 a {
  color: var(--kr-text);
}

.kr-grand-lead-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--kr-muted);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kr-grand-briefs {
  grid-area: briefs;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.kr-grand-brief {
  min-width: 0;
}

.kr-grand-brief a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kr-grand-brief span {
  color: #ffb978;
  font-size: 12px;
  font-weight: 900;
}

.kr-grand-brief strong {
  display: -webkit-box;
  margin: 14px 0;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.kr-grand-brief small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.kr-grand-brief a:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.kr-grand-signals {
  grid-area: signals;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
}

.kr-grand-signals a {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kr-grand-signals span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.kr-grand-signals strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.kr-grand-signals a:hover {
  border-color: var(--kr-accent);
  background: rgba(242, 106, 33, 0.18);
  color: #fff;
}

.kr-command-section {
  padding: 34px 0 38px;
  background: var(--kr-bg);
}

.kr-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.kr-command-main,
.kr-command-side {
  min-width: 0;
}

@media (min-width: 992px) {
  .kr-command-side {
    position: sticky;
    top: 16px;
  }
}

.kr-news-feed-panel {
  padding: 0 20px;
  border: 1px solid var(--kr-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.kr-mega-channel-section {
  padding: 12px 0 42px;
}

.kr-mega-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.kr-mega-channel-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--kr-line);
  border-radius: 16px;
  background: var(--kr-surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.kr-mega-channel-card:first-child {
  grid-column: span 2;
}

.kr-mega-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.kr-mega-channel-head h3 {
  margin: 0;
  color: var(--kr-text);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.kr-mega-channel-head > a {
  color: var(--kr-muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.kr-mega-feature {
  padding: 16px 18px 0;
}

.kr-mega-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--kr-surface-soft);
}

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

.kr-mega-feature h4 {
  margin: 14px 0 8px;
  color: var(--kr-text);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
}

.kr-mega-feature h4 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--kr-text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kr-mega-channel-card .kr-channel-list {
  padding: 0 18px 16px;
}

.kr-list-page .kr-archive-title {
  padding: 32px;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #0b1220 0%, #1f2937 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.kr-list-page .kr-archive-title h1,
.kr-list-page .kr-archive-title p {
  color: #fff;
}

.kr-list-page .kr-archive-title p {
  opacity: 0.72;
}

.kr-list-page .kr-subcategory a {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kr-list-page .kr-subcategory a:hover {
  border-color: var(--kr-accent);
  background: var(--kr-accent);
  color: #fff;
}

@media (max-width: 1199px) {
  .kr-grand-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    grid-template-areas:
      "copy lead"
      "briefs briefs"
      "signals signals";
  }

  .kr-grand-briefs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kr-mega-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .kr-grand-shell,
  .kr-command-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-grand-shell {
    grid-template-areas:
      "copy"
      "lead"
      "briefs"
      "signals";
    min-height: 0;
  }

  .kr-grand-copy h1 {
    font-size: 38px;
  }

  .kr-command-side {
    position: static;
  }
}

@media (max-width: 767px) {
  .kr-grand-hero {
    padding: 22px 0 30px;
  }

  .kr-grand-shell {
    padding: 18px;
    border-radius: 12px;
  }

  .kr-grand-copy h1 {
    font-size: 31px;
  }

  .kr-grand-copy p {
    font-size: 15px;
  }

  .kr-grand-briefs,
  .kr-grand-signals,
  .kr-mega-channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-grand-lead {
    grid-template-rows: auto;
  }

  .kr-grand-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .kr-grand-lead-body h2 {
    font-size: 22px;
  }

  .kr-news-feed-panel {
    padding: 0 14px;
    border-radius: 12px;
  }

  .kr-mega-channel-card:first-child {
    grid-column: span 1;
  }

  .kr-list-page .kr-archive-title {
    padding: 22px;
  }
}

@media (max-width: 575px) {
  .kr-grand-copy h1 {
    font-size: 28px;
  }

  .kr-grand-actions a {
    width: 100%;
  }

  .kr-grand-brief a,
  .kr-grand-signals a {
    padding: 14px;
  }
}

/* Functional image-card homepage */
.kr-card-home {
  padding-top: 0;
  background: #f4f6f8;
}

.kr-workbench {
  padding: 28px 0 34px;
}

.kr-workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.kr-workbench-head span,
.kr-card-purpose,
.kr-task-card span,
.kr-mini-head span,
.kr-scroll-card span,
.kr-side-media-card span {
  color: var(--kr-accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.kr-workbench-head h1 {
  max-width: 720px;
  margin: 0;
  color: var(--kr-text);
  font-size: 34px;
  line-height: 1.22;
  font-weight: 900;
}

.kr-workbench-head p {
  margin: 0;
  color: var(--kr-muted);
  font-size: 14px;
  line-height: 1.8;
}

.kr-live-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid var(--kr-line);
  border-radius: 10px;
  background: var(--kr-surface);
}

.kr-live-ticker strong {
  flex: 0 0 auto;
  color: var(--kr-text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.kr-ticker-window {
  min-width: 0;
  overflow: hidden;
}

.kr-ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: krTickerMove 34s linear infinite;
}

.kr-live-ticker:hover .kr-ticker-track {
  animation-play-state: paused;
}

.kr-ticker-track a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kr-text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.kr-ticker-track span {
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 900;
}

@keyframes krTickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.kr-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr) 310px;
  gap: 18px;
  align-items: stretch;
}

.kr-focus-card,
.kr-task-card,
.kr-mini-hot,
.kr-scroll-card,
.kr-side-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--kr-line);
  border-radius: 12px;
  background: var(--kr-surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.kr-focus-card {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
}

.kr-focus-img,
.kr-task-img,
.kr-mini-img,
.kr-scroll-img,
.kr-side-media-img {
  display: block;
  overflow: hidden;
  background: var(--kr-surface-soft);
}

.kr-focus-img {
  aspect-ratio: 16 / 10;
}

.kr-focus-img img,
.kr-task-img img,
.kr-mini-img img,
.kr-scroll-img img,
.kr-side-media-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.kr-focus-card:hover img,
.kr-task-card:hover img,
.kr-mini-item:hover img,
.kr-scroll-card:hover img,
.kr-side-media-card:hover img {
  transform: scale(1.045);
}

.kr-focus-body {
  padding: 18px;
}

.kr-focus-body h2 {
  margin: 10px 0 8px;
  color: var(--kr-text);
  font-size: 25px;
  line-height: 1.35;
  font-weight: 900;
}

.kr-focus-body h2 a,
.kr-task-card h3 a,
.kr-mini-item h3 a,
.kr-scroll-card h3 a,
.kr-side-media-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--kr-text);
  -webkit-box-orient: vertical;
}

.kr-focus-body h2 a,
.kr-task-card h3 a,
.kr-mini-item h3 a,
.kr-scroll-card h3 a,
.kr-side-media-card h3 a {
  -webkit-line-clamp: 2;
}

.kr-focus-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--kr-muted);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kr-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.kr-task-card {
  display: grid;
  grid-template-rows: 136px auto;
}

.kr-task-img {
  height: 136px;
}

.kr-task-card div {
  padding: 13px 14px 14px;
}

.kr-task-card h3 {
  margin: 7px 0 0;
  color: var(--kr-text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}

.kr-mini-hot {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.kr-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.kr-mini-head a {
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 900;
}

.kr-mini-scroll,
.kr-side-scroll {
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--kr-line-strong) transparent;
}

.kr-mini-scroll {
  max-height: 520px;
}

.kr-side-scroll {
  max-height: 460px;
}

.kr-mini-scroll::-webkit-scrollbar,
.kr-side-scroll::-webkit-scrollbar,
.kr-scroll-row::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.kr-mini-scroll::-webkit-scrollbar-thumb,
.kr-side-scroll::-webkit-scrollbar-thumb,
.kr-scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.kr-mini-item,
.kr-side-media-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--kr-line);
}

.kr-mini-item:last-child,
.kr-side-media-card:last-child {
  border-bottom: 0;
}

.kr-mini-img,
.kr-side-media-img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.kr-mini-item h3,
.kr-side-media-card h3 {
  margin: 5px 0 4px;
  color: var(--kr-text);
  font-size: 14px;
  line-height: 1.48;
  font-weight: 900;
}

.kr-side-media-card small,
.kr-scroll-card small {
  color: var(--kr-muted);
  font-size: 12px;
  font-weight: 700;
}

.kr-scroll-topic-section,
.kr-content-section {
  padding: 26px 0 36px;
}

.kr-scroll-row {
  display: grid;
  grid-auto-columns: minmax(240px, 280px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 0 16px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.kr-scroll-card {
  scroll-snap-align: start;
}

.kr-scroll-img {
  aspect-ratio: 16 / 10;
}

.kr-scroll-card div {
  padding: 14px;
}

.kr-scroll-card h3 {
  margin: 7px 0 8px;
  color: var(--kr-text);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
}

.kr-side-media-card {
  border-radius: 0;
  box-shadow: none;
}

.kr-card-home .kr-content-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

@media (max-width: 1199px) {
  .kr-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .kr-task-grid {
    grid-column: 1;
  }

  .kr-mini-hot {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 991px) {
  .kr-workbench-head,
  .kr-dashboard-grid,
  .kr-card-home .kr-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-mini-hot,
  .kr-task-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .kr-mini-scroll,
  .kr-side-scroll {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .kr-workbench {
    padding-top: 20px;
  }

  .kr-workbench-head h1 {
    font-size: 26px;
  }

  .kr-live-ticker {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .kr-task-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-focus-card {
    grid-template-rows: auto;
  }

  .kr-focus-body h2 {
    font-size: 21px;
  }

  .kr-scroll-row {
    grid-auto-columns: minmax(220px, 78vw);
  }
}

@media (max-width: 575px) {
  .kr-focus-body,
  .kr-mini-hot,
  .kr-scroll-card div {
    padding: 13px;
  }

  .kr-mini-item,
  .kr-side-media-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

/* Reduce scroll containers and use subtle card motion instead. */
.kr-card-home .kr-mini-scroll,
.kr-card-home .kr-side-scroll,
.kr-sidebar .kr-side-scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0;
  scrollbar-width: none;
}

.kr-card-home .kr-mini-scroll::-webkit-scrollbar,
.kr-card-home .kr-side-scroll::-webkit-scrollbar,
.kr-sidebar .kr-side-scroll::-webkit-scrollbar {
  display: none;
}

.kr-card-home .kr-scroll-row {
  display: grid;
  grid-auto-flow: initial;
  grid-auto-columns: initial;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.kr-card-home .kr-scroll-card {
  scroll-snap-align: none;
}

.kr-focus-card,
.kr-task-card,
.kr-mini-hot,
.kr-scroll-card,
.kr-side-section,
.kr-side-media-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.kr-focus-card,
.kr-task-card,
.kr-mini-hot,
.kr-scroll-card {
  animation: krCardEnter 0.46s ease-out both;
}

.kr-task-card:nth-child(2),
.kr-scroll-card:nth-child(2) {
  animation-delay: 0.05s;
}

.kr-task-card:nth-child(3),
.kr-scroll-card:nth-child(3) {
  animation-delay: 0.1s;
}

.kr-task-card:nth-child(4),
.kr-scroll-card:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes krCardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kr-focus-card:hover,
.kr-task-card:hover,
.kr-mini-hot:hover,
.kr-scroll-card:hover,
.kr-side-section:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 106, 33, 0.38);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.kr-focus-img,
.kr-task-img,
.kr-mini-img,
.kr-scroll-img,
.kr-side-media-img {
  position: relative;
}

.kr-focus-img::after,
.kr-task-img::after,
.kr-mini-img::after,
.kr-scroll-img::after,
.kr-side-media-img::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.36) 42%, transparent 68%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.kr-focus-card:hover .kr-focus-img::after,
.kr-task-card:hover .kr-task-img::after,
.kr-mini-item:hover .kr-mini-img::after,
.kr-scroll-card:hover .kr-scroll-img::after,
.kr-side-media-card:hover .kr-side-media-img::after {
  opacity: 1;
  transform: translateX(120%);
  transition: transform 0.62s ease, opacity 0.24s ease;
}

.kr-task-card,
.kr-scroll-card,
.kr-side-media-card {
  position: relative;
}

.kr-task-card::before,
.kr-scroll-card::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--kr-accent), #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.kr-task-card:hover::before,
.kr-scroll-card:hover::before {
  transform: scaleX(1);
}

@media (max-width: 1199px) {
  .kr-card-home .kr-scroll-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .kr-card-home .kr-scroll-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kr-ticker-track,
  .kr-focus-card,
  .kr-task-card,
  .kr-mini-hot,
  .kr-scroll-card {
    animation: none !important;
  }

  .kr-focus-card:hover,
  .kr-task-card:hover,
  .kr-mini-hot:hover,
  .kr-scroll-card:hover,
  .kr-side-section:hover {
    transform: none !important;
  }

  .kr-focus-img img,
  .kr-task-img img,
  .kr-mini-img img,
  .kr-scroll-img img,
  .kr-side-media-img img,
  .kr-focus-img::after,
  .kr-task-img::after,
  .kr-mini-img::after,
  .kr-scroll-img::after,
  .kr-side-media-img::after {
    transition: none !important;
    transform: none !important;
  }
}

/* Keep only the topic module horizontally scrollable. */
.kr-card-home .kr-scroll-row {
  display: grid;
  grid-auto-columns: minmax(250px, 292px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 16px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.kr-card-home .kr-scroll-row::-webkit-scrollbar {
  height: 8px;
}

.kr-card-home .kr-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.kr-card-home .kr-scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.kr-card-home .kr-scroll-card {
  scroll-snap-align: start;
}

.kr-scroll-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kr-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--kr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--kr-text);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kr-scroll-btn:hover {
  border-color: var(--kr-accent);
  background: var(--kr-accent);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .kr-card-home .kr-scroll-row {
    grid-auto-columns: minmax(220px, 78vw);
    grid-template-columns: none;
  }

  .kr-scroll-controls {
    align-self: flex-start;
  }
}

/* Header simplified: logo + search only, no top utility bar/actions. */
.kr-mainbar-inner {
  grid-template-columns: minmax(150px, 240px) minmax(280px, 1fr);
}

.kr-mainbar .kr-search {
  max-width: 760px;
}

@media (max-width: 767px) {
  .kr-mainbar-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .kr-mainbar .kr-search {
    max-width: none;
  }
}

/* Cleaner header: remove stacked horizontal divider lines. */
.kr-site-header {
  border-bottom: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.kr-mainbar,
.kr-nav-wrap,
.kr-trendbar {
  border-bottom: 0;
}

.kr-mainbar {
  padding-top: 2px;
}

.kr-nav-wrap {
  background: #fff;
}

.kr-trendbar {
  background: #fbfcfd;
}

.kr-trendbar-inner {
  min-height: 34px;
}

/* Larger primary menu. */
.kr-navbar {
  min-height: 58px;
}

.kr-navbar .nav-link {
  min-height: 58px;
  padding: 0 24px !important;
  font-size: 18px;
  font-weight: 900;
}

.kr-navbar .nav-item:first-child .nav-link {
  padding-left: 0 !important;
}

.kr-navbar .nav-item.active > .nav-link:after,
.kr-navbar .nav-link:hover:after {
  left: 24px;
  right: 24px;
}

.kr-navbar .nav-item:first-child.active > .nav-link:after,
.kr-navbar .nav-item:first-child .nav-link:hover:after {
  left: 0;
}

@media (max-width: 991px) {
  .kr-navbar .nav-link {
    padding: 0 15px !important;
    font-size: 16px;
  }

  .kr-navbar .nav-item:first-child .nav-link {
    padding-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .kr-navbar {
    min-height: 44px;
  }

  .kr-navbar .nav-link {
    min-height: 40px;
    padding: 0 6px !important;
    font-size: 15px;
  }
}
