
:root {
  --bg: #f4f7fb;
  --surface: #fff;
  --surface-soft: #f8fbff;
  --text: #172033;
  --muted: #667085;
  --line: #e4ebf3;
  --brand: #2b63c6;
  --brand-soft: #eaf1ff;
  --accent: #ff7a18;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 3px 12px rgba(16, 24, 40, 0.05);
  --radius: 8px;
  --radius-lg: 10px;
  --container: 1240px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
body.is-scrolled header .header {
  box-shadow: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
img { display: block; max-width: 100%; }
* { box-sizing: border-box; }
.wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.container, .footer .footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.clear { clear: both; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  position: relative;
  z-index: 1000;
  margin: 0 0 14px;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
header .header {
  max-width: var(--container) !important;
  margin: 0 auto;
  padding: 12px 22px 8px;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "logo search"
    "nav nav";
  align-items: center;
  gap: 12px 18px;
  background: transparent !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
header .logo {
  grid-area: logo;
  min-width: 0;
  width: clamp(128px, 11vw, 172px);
}
header .logo a {
  display: block;
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding-left: 0;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  font-size: 0;
  font-weight: 800;
  color: transparent !important;
  line-height: 0;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
}
header .navBtn { display: none; }
header .searchform {
  grid-area: search;
  width: 100%;
  max-width: 330px;
  justify-self: end;
}
header .searchform form {
  display: flex;
  align-items: stretch;
  width: 100%;
}
header .searchform .input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line) !important;
  border-right: none !important;
  background: #fff;
  border-radius: 999px 0 0 999px !important;
  overflow: hidden;
}
header .searchform .input:focus-within {
  border-color: rgba(43, 99, 198, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(43, 99, 198, 0.12);
}
header .searchform .text {
  width: 100%;
  height: 100%;
  border: none !important;
  background: transparent !important;
  padding: 0 18px !important;
  color: var(--text);
}
header .searchform .submit {
  width: 48px;
  height: 44px;
  border: none !important;
  border-radius: 0 999px 999px 0 !important;
  background: var(--brand) !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
header .searchform .submit:hover {
  background: #1f54b2 !important;
  transform: translateY(-1px);
}
header .nav {
  grid-area: nav;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  background: transparent !important;
  border: none;
  border-radius: 0;
  overflow: visible !important;
}
header .nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 2px;
}
header .nav ul::-webkit-scrollbar { display: none; }
header .nav li {
  width: auto !important;
  padding: 0;
  position: relative;
}
header .nav li a {
  display: block;
  padding: 8px 0 9px !important;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent !important;
  color: #42526b !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
header .nav li a:hover,
header .nav li.cur > a {
  color: var(--brand) !important;
  border-bottom-color: var(--brand);
  box-shadow: none;
}
header .nav li a::after { display: none !important; }
header .nav > ul > li > ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow);
  z-index: 20;
}
header .nav > ul > li:hover > ul { display: grid !important; }
header .nav li li {
  width: auto !important;
  float: none !important;
  padding: 0;
}
header .nav li li a {
  display: block;
  padding: 10px 12px !important;
  border-radius: 8px;
  white-space: nowrap;
  text-align: left;
  background: transparent !important;
}
header .nav li li a:hover {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a { color: var(--brand) !important; }
.breadcrumb em {
  color: #c4ccda;
  margin: 0 4px !important;
  font-style: normal;
}
.breadcrumb .current-title,
.breadcrumb .keyword,
.breadcrumb .tag-name {
  color: var(--text);
  font-weight: 600;
}
h1.page-title {
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  border: none !important;
  position: relative;
}
h1.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}

.hero-section, .category-section, .main .content, .single-content, .guestbook-content, .post, .search-item, .news-list-item, .featured-article, .hot-search, .related-articles, .sidebar .widget, .sidebar .widget-tags, .sidebar-widget {
  animation: fadeRise .55s ease both;
}
.hero-section { margin: 0 0 18px; }
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(310px, .95fr);
  gap: 16px;
  align-items: stretch;
}
.hero-slider {
  position: relative;
  min-height: 410px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item {
  height: 100%;
}
.hero-slider .owl-item {
  display: flex;
}
.hero-slider .hero-slide {
  width: 100%;
  height: 100%;
}
.hero-slider .hero-slide > a {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-slider .slide-media {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr);
  gap: 8px;
  padding: 8px;
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
  min-height: 270px;
}
.hero-slider .slide-media.slide-media-single {
  grid-template-columns: minmax(0, 1fr);
}
.hero-slider .hero-image {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
  background: #e8eef8;
}
.hero-slider .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.hero-slider .hero-slide:hover .hero-image img {
  transform: scale(1.04);
}
.hero-slider .hero-image-full {
  min-height: 270px;
}
.hero-slider .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 16px 18px;
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 100%);
  border: 1px solid rgba(43, 99, 198, 0.08);
}
.hero-slider .hero-copy-thumb {
  display: block;
  margin: 10px 0 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eef8;
  aspect-ratio: 16 / 10;
}
.hero-slider .hero-copy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider .hero-copy-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(43, 99, 198, .14);
  font-size: 12px;
  font-weight: 600;
}
.hero-slider .hero-copy-title {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 800;
  color: var(--text);
}
.hero-slider .hero-copy-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slider .slide-body {
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.hero-slider .slide-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(43, 99, 198, .14);
  font-size: 12px;
  font-weight: 600;
}
.hero-slider .slide-title {
  margin: 10px 0 0;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--text);
}
.hero-slider .slide-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--brand) !important;
  border: none !important;
  box-shadow: var(--shadow-soft);
}
.hero-slider .owl-nav button.owl-prev { left: 16px; }
.hero-slider .owl-nav button.owl-next { right: 16px; }
.hero-slider .owl-dots {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 7px;
}
.hero-slider .owl-dot span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
}
.hero-slider .owl-dot.active span {
  width: 26px;
  background: #fff;
}
.hero-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 410px;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.sidebar-header h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 10px;
  background: var(--brand);
  border-radius: 999px;
  vertical-align: middle;
}
.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hot-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hot-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hot-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.hot-item:nth-child(1) .hot-num {
  background: #ffebe3;
  color: #d9480f;
}
.hot-item:nth-child(2) .hot-num {
  background: #fff3c6;
  color: #b45309;
}
.hot-item:nth-child(3) .hot-num {
  background: #dcfce7;
  color: #15803d;
}
.hot-info {
  min-width: 0;
  flex: 1;
}
.hot-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.hot-title:hover { color: var(--brand); }
.hot-date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.category-section { margin-top: 18px; }
.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, .88fr);
  gap: 16px;
  align-items: stretch;
}
.category-main, .category-sidebar {
  min-width: 0;
}
.category-main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.category-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.category-header, .tags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
}
.category-header h2, .tags-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  position: relative;
  padding-left: 14px;
  line-height: 1.2;
}
.category-header h2::before, .tags-header h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--brand);
  border-radius: 999px;
}
.category-header .more {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.category-header .more:hover {
  background: var(--brand);
  color: #fff;
}
.featured-article {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.featured-img {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: #edf2f7;
}
.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.featured-article:hover .featured-img img { transform: scale(1.04); }
.featured-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.featured-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}
.featured-title a:hover { color: var(--brand); }
.featured-desc {
  color: var(--muted);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.cat-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.cat-tag:hover {
  background: var(--brand);
  color: #fff;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 15px;
  box-shadow: var(--shadow-soft);
  min-height: 154px;
  display: flex;
  flex-direction: column;
}
.news-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}
.news-title a:hover { color: var(--brand); }
.news-desc {
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.news-meta .cat-tag { margin-right: auto; }
.sticky-wrapper {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.recommend-box, .sidebar-tags, .sidebar-widget, .sidebar .widget, .sidebar .widget-tags, .single-sidebar .sidebar-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.recommend-box .category-header,
.sidebar-tags .tags-header,
.sidebar-widget .widget-header {
  padding: 14px 15px 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.recommend-list {
  list-style: none;
  margin: 0;
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recommend-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.recommend-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recommend-item .num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}
.recommend-item:nth-child(1) .num {
  background: #ffebe3;
  color: #d9480f;
}
.recommend-item:nth-child(2) .num {
  background: #fff3c6;
  color: #b45309;
}
.recommend-item:nth-child(3) .num {
  background: #dcfce7;
  color: #15803d;
}
.rec-info {
  min-width: 0;
  flex: 1;
}
.rec-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}
.rec-title:hover { color: var(--brand); }
.rec-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.tags-list, .keyword-list {
  width: 100%;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 8px;
}
.tag-item, .keyword-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: #41516b;
  font-size: 13px;
  line-height: 1.3;
  min-width: 0;
  min-height: 34px;
  word-break: break-word;
}
.tag-item:nth-child(6n + 1),
.keyword-item:nth-child(6n + 1) { background: #eef4ff; color: #1d4ed8; }
.tag-item:nth-child(6n + 2),
.keyword-item:nth-child(6n + 2) { background: #fff4e8; color: #b45309; }
.tag-item:nth-child(6n + 3),
.keyword-item:nth-child(6n + 3) { background: #e9f9ef; color: #15803d; }
.tag-item:nth-child(6n + 4),
.keyword-item:nth-child(6n + 4) { background: #f3edff; color: #6d28d9; }
.tag-item:nth-child(6n + 5),
.keyword-item:nth-child(6n + 5) { background: #ffecef; color: #be123c; }
.tag-item:nth-child(6n + 6),
.keyword-item:nth-child(6n + 6) { background: #fef9c3; color: #a16207; }
.tag-item:hover,
.keyword-item:hover {
  background: var(--brand-soft) !important;
  border-color: rgba(43, 99, 198, .25);
  color: var(--brand) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(43, 99, 198, 0.10);
}

.sidebar .widget-tags .tags-list,
.sidebar .widget-tags .keyword-list,
.sidebar .sidebar-widget .tags-list,
.sidebar .sidebar-widget .keyword-list,
.sidebar-tags .tags-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sidebar .widget-tags .tag-item,
.sidebar .widget-tags .keyword-item,
.sidebar .sidebar-widget .tag-item,
.sidebar .sidebar-widget .keyword-item,
.sidebar-tags .tag-item {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  min-height: 36px;
  padding: 7px 10px;
  overflow: hidden;
}
.sidebar-tags .tags-list {
  padding: 12px;
  align-content: start;
}
.sidebar-tags .tag-item,
.sidebar-tags .keyword-item,
.sidebar .widget-tags .tag-item,
.sidebar .widget-tags .keyword-item,
.sidebar .sidebar-widget .tag-item,
.sidebar .sidebar-widget .keyword-item {
  white-space: normal;
  line-height: 1.45;
}

.main {
  float: left !important;
  width: calc(100% - 332px) !important;
  min-width: 0;
}
.main .content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 0;
  overflow: hidden;
}
.istop {
  padding: 15px 18px !important;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.istop i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ea580c !important;
  color: #fff;
  font-style: normal;
  font-size: 12px !important;
}
.istop a {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--text) !important;
  margin-left: 0 !important;
}
.istop a:hover { color: var(--brand) !important; }
.news-list-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.news-list-item:hover { background: #f8fbff; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item .item-thumb {
  flex: 0 0 180px;
  width: 180px;
  height: 110px;
  overflow: hidden;
  border-radius: var(--radius);
}
.news-list-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.news-list-item:hover .item-thumb img { transform: scale(1.04); }
.news-list-item .item-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-list-item .item-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}
.news-list-item .item-title a:hover { color: var(--brand); }
.news-list-item .item-desc {
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
}
.news-list-item .item-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.news-list-item .item-meta .cat-tag { margin-right: auto; }
.search-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.search-item:hover { background: #f8fbff; }
.search-item .item-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}
.search-item .item-title a:hover { color: var(--brand); }
.search-item .item-desc {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-item .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.search-item .item-meta .cat-tag { margin-right: auto; }
.hot-search {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.hot-search h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.hot-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hot-search-list a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: #41516b;
}
.hot-search-list a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.sidebar {
  float: right !important;
  width: 320px !important;
  position: sticky !important;
  top: 18px !important;
  background: transparent !important;
}
.sidebar .widget,
.sidebar .widget-tags,
.sidebar .divPost,
.sidebar .widget-related,
.sidebar .widget-hot,
.sidebar .related-list,
.sidebar .hot-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.sidebar .widget h2,
.sidebar .widget-title,
.sidebar .widget h3,
.sidebar .widget .boxtitle,
.sidebar .sidebar-title {
  margin: 0 !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar .widget h2::before,
.sidebar .widget-title::before,
.sidebar .widget h3::before,
.sidebar .widget .boxtitle::before,
.sidebar .sidebar-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}
.sidebar .divPost ul,
.sidebar .widget ul,
.sidebar .related-list,
.sidebar .hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .divPost li,
.sidebar .widget li,
.sidebar .related-list li,
.sidebar .hot-list li {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--line) !important;
}
.sidebar .divPost li:last-child,
.sidebar .widget li:last-child,
.sidebar .related-list li:last-child,
.sidebar .hot-list li:last-child {
  border-bottom: none !important;
}
.sidebar .divPost li:hover,
.sidebar .widget li:hover,
.sidebar .related-list li:hover,
.sidebar .hot-list li:hover {
  background: #f8fbff;
}
.sidebar .divPost li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sidebar .divPost .num,
.sidebar .hot-list .num,
.sidebar .related-list .num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}
.sidebar .divPost li:nth-child(1) .num,
.sidebar .hot-list li:nth-child(1) .num,
.sidebar .related-list li:nth-child(1) .num {
  background: #ffebe3;
  color: #d9480f;
}
.sidebar .divPost li:nth-child(2) .num,
.sidebar .hot-list li:nth-child(2) .num,
.sidebar .related-list li:nth-child(2) .num {
  background: #fff3c6;
  color: #b45309;
}
.sidebar .divPost li:nth-child(3) .num,
.sidebar .hot-list li:nth-child(3) .num,
.sidebar .related-list li:nth-child(3) .num {
  background: #dcfce7;
  color: #15803d;
}
.sidebar .divPost .info { flex: 1; min-width: 0; }
.sidebar .divPost h3 {
  margin: 0 !important;
  padding-left: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
}
.sidebar .divPost h3 a,
.sidebar .related-list li a,
.sidebar .hot-list li a {
  color: var(--text) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar .divPost h3 a:hover,
.sidebar .related-list li a:hover,
.sidebar .hot-list li a:hover {
  color: var(--brand) !important;
}
.sidebar .divPost p,
.sidebar .related-list .item-date {
  margin: 4px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}
.sidebar .widget-tags .tags-list,
.sidebar .tags-list {
  padding: 14px;
}
.sidebar .keyword-list {
  padding: 14px;
}

.single-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.single-main { min-width: 0; }
.single-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}
.single-content .title {
  text-align: left !important;
  font-size: 30px !important;
  line-height: 1.35 !important;
  margin: 0 0 18px !important;
  padding: 0 0 12px !important;
  border: none !important;
  position: relative;
}
.single-content .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}
.single-summary, .article-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.8;
}
.single-cover, .article-cover { margin: 0 0 18px; }
.single-cover img, .article-cover img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.single-content .entry, .entry {
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #2f3b50 !important;
}
.single-content .entry h2, .single-content .entry h3, .single-content .entry h4,
.entry h2, .entry h3, .entry h4 {
  color: var(--text) !important;
  font-weight: 700;
  margin-top: 1.8em !important;
  margin-bottom: 0.8em !important;
}
.single-content .entry h2, .entry h2 {
  font-size: 22px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  padding-bottom: 0;
  border-bottom: none;
}
.single-content .entry a, .entry a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px dashed rgba(43, 99, 198, .5);
}
.single-content .entry a:hover, .entry a:hover {
  color: #1f54b2;
  border-bottom-style: solid;
}
.single-content .entry blockquote, .entry blockquote {
  background: #f9fbff !important;
  border-left: 3px solid var(--brand) !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 15px 20px !important;
  margin: 20px 0 !important;
  font-style: normal !important;
  color: var(--muted);
}
.single-content .entry img, .entry img {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
  margin: 15px 0;
}
.single-content .entry ul, .single-content .entry ol, .entry ul, .entry ol {
  padding-left: 1.5em !important;
  margin: 1em 0 !important;
}
.single-content .entry li, .entry li {
  margin-bottom: 0.4em;
  line-height: 1.8;
}
.single-content .entry table, .entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.single-content .entry table th, .single-content .entry table td,
.entry table th, .entry table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
.single-content .entry table th, .entry table th {
  background: #f9fbff;
  font-weight: 700;
}

.single-sidebar .sticky-wrapper {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-widget .widget-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.sidebar-widget .widget-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget .widget-header h3::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--brand);
  border-radius: 999px;
}
.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  cursor: pointer;
}
.action-btn:hover {
  background: var(--brand-soft);
  border-color: rgba(43, 99, 198, .22);
}
.post .title {
  font-size: 32px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin-bottom: 10px !important;
}
.post .meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  text-align: left !important;
  border-bottom: none !important;
  padding: 10px 0 0 !important;
  margin-bottom: 18px !important;
  background: transparent;
}
.post .meta span {
  color: var(--muted) !important;
  font-size: 13px !important;
  padding: 0 !important;
}
.post .meta span::before { display: none !important; }
.tags, .keyword-cloud {
  background: #f8fbff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 14px 16px !important;
  margin: 18px 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tags .tags-title, .keyword-cloud .tags-title {
  color: var(--muted) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin: 0 !important;
  float: none !important;
}
.tags ul, .keyword-cloud .keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.tags li, .keyword-cloud .keyword-item-wrap {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.tags li a, .keyword-cloud a {
  background: #fff !important;
  color: var(--brand) !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 13px;
  border: 1px solid var(--line);
  display: inline-flex;
}
.tags li a:hover, .keyword-cloud a:hover {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand);
}
.article-url {
  padding: 12px 15px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
#postnavi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  background: transparent;
}
#postnavi .prev, #postnavi .next {
  padding: 14px 16px !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  float: none !important;
  width: auto !important;
  font-size: 14px;
  color: var(--muted);
}
#postnavi a { color: var(--brand) !important; }
.related, .related-articles {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 18px;
  padding: 18px 20px;
}
.related .boxtitle, .related-articles h3 {
  margin: 0 0 14px;
  font-size: 18px !important;
  color: var(--text) !important;
  font-weight: 800;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
}
.related ul, .related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.related li, .related-articles li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.related li:hover, .related-articles li:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.related li:last-child, .related-articles li:last-child { border-bottom: 1px solid var(--line); }
.related li a, .related-articles li a {
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.related li a:hover, .related-articles li a:hover { color: var(--brand); }
.guestbook-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}
.guestbook-content .title {
  text-align: left !important;
  font-size: 28px !important;
  line-height: 1.35 !important;
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  border: none !important;
  position: relative;
}
.guestbook-content .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}
.postbottom {
  text-align: left !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  margin-bottom: 25px !important;
  margin-left: 0 !important;
  padding: 12px 15px;
  background: #f8fbff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
}
#comment .item { margin-bottom: 18px !important; }
#comment label {
  font-size: 14px !important;
  color: var(--text) !important;
  font-weight: 700;
  margin-bottom: 8px;
  display: block !important;
  float: none !important;
  height: auto !important;
  line-height: 1.5 !important;
}
#comment label i {
  color: #ef4444 !important;
  margin-left: 3px;
}
#comment .input {
  margin-left: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  transition: all .2s ease;
  overflow: hidden;
  background: #fff;
}
#comment .input:focus-within {
  border-color: rgba(43, 99, 198, .45) !important;
  box-shadow: 0 0 0 3px rgba(43, 99, 198, .1);
}
#comment .text, #comment textarea {
  width: 100% !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  border: none !important;
  background: transparent !important;
  color: var(--text);
  box-sizing: border-box;
}
#comment textarea {
  min-height: 160px;
  resize: vertical;
}
#comment .submit {
  width: auto !important;
  min-width: 180px;
  padding: 12px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: var(--shadow-soft);
}
#comment .submit:hover {
  background: #1f54b2 !important;
  transform: translateY(-1px);
}

.footer {
  width: 100% !important;
  margin: 24px 0 0 !important;
  background: #fff;
  border-top: 1px solid var(--line);
  color: #5f6d80;
  font-size: 13px;
  position: relative;
  overflow: visible;
}
.footer .footer-inner { padding: 28px 20px 20px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.footer-nav-col {
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  min-width: 0;
}
.footer-nav-col h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  display: inline-flex;
}
.footer-nav-col h3 a { color: var(--text); }
.footer-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-col li {
  margin: 0;
  padding: 5px 0;
}
.footer-nav-col li a {
  display: block;
  color: #5f6d80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-nav-col li a:hover {
  color: var(--brand);
  transform: translateX(2px);
}
.footer-nav-col li.more-link a {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.footer-bottom {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 0 0;
}
.footer .copyright p {
  margin: 0;
  color: #6b7280;
  text-align: center;
  line-height: 1.8;
}
.footer .seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.footer .seo-links a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: #54657c !important;
}
.footer .seo-links a:hover {
  background: var(--brand-soft);
  color: var(--brand) !important;
}
.footer .other a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand) !important;
}
.footer .other a:hover { background: var(--brand-soft); }

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

@media (max-width: 1240px) {
  .container, .footer .footer-inner, header .header, header .nav { max-width: 100%; }
}
@media (max-width: 1080px) {
  .hero-row, .category-row, .single-row { grid-template-columns: 1fr; }
  .sticky-wrapper, .single-sidebar .sticky-wrapper, .sidebar {
    position: static !important;
    top: auto !important;
  }
  .main {
    width: 100% !important;
    float: none !important;
  }
  .sidebar {
    width: 100% !important;
    float: none !important;
    margin-top: 18px;
  }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  header .header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "search"
      "nav";
    row-gap: 12px;
    padding: 10px 14px 8px;
  }
  header .searchform {
    max-width: none;
    justify-self: stretch;
  }
  header .nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .hero-slider, .hero-slider .hero-slide { min-height: 320px; }
  .hero-slider .slide-media {
    min-height: 180px;
    gap: 6px;
    padding: 6px;
  }
  .hero-slider .hero-image-full {
    min-height: 180px;
  }
  .hero-slider .hero-copy {
    padding: 14px;
  }
  .hero-slider .hero-copy-thumb {
    margin-top: 8px;
  }
  .hero-slider .hero-copy-title {
    font-size: 18px;
  }
  .hero-slider .slide-body {
    padding: 14px 14px 16px;
  }
  .hero-slider .slide-title { font-size: 20px; }
  .hero-slider .slide-desc { font-size: 13px; }
  .news-list { grid-template-columns: 1fr; }
  .featured-article, .news-list-item { grid-template-columns: 1fr; }
  .news-list-item .item-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  h1.page-title, .single-content .title, .guestbook-content .title, .post .title { font-size: 24px !important; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container, .footer .footer-inner, header .header, header .nav {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-sidebar, .recommend-box, .sidebar-tags, .main .content, .single-content, .guestbook-content, .post, .hot-search, .related-articles, .related, .sidebar .widget, .sidebar .widget-tags, .sidebar-widget {
    border-radius: 6px;
  }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-slider .slide-media {
    min-height: 150px;
  }
  .hero-slider .hero-image-full {
    min-height: 150px;
  }
  .hero-slider .hero-copy-title {
    font-size: 17px;
  }
  .hero-slider .slide-title { font-size: 18px; }
  .hero-slider .slide-desc {
    -webkit-line-clamp: 2;
  }
  .pglist a, .pglist span {
    min-width: 30px;
    height: 30px;
    padding: 0 10px !important;
  }
}
