:root {
  --bg: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.74);
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #0f172a;
  --primary-2: #1e293b;
  --soft-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
  --strong-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  padding-top: 132px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container,
.header-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.header-bar {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--strong-shadow);
  outline: 1px solid rgba(15, 23, 42, 0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark,
.footer-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark::before,
.footer-brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 55%);
}

.brand-mark::after,
.footer-brand-mark::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  background: center / contain no-repeat url("../brand/junzhuo-logo-mark.svg");
}

.brand-mark svg,
.footer-brand-mark svg {
  display: none;
}

.brand-title,
.footer-brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.current {
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.nav-home-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-home-link:hover {
  background: #fff;
  color: var(--text);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost,
.btn-dark,
.btn-light,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: 0.25s ease;
}

.btn-ghost {
  height: 40px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.header-actions .btn-ghost.search-entry {
  gap: 8px;
  padding: 0 14px 0 12px;
  color: var(--text);
  border: 1px solid rgba(14, 165, 233, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.9) 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.header-actions .btn-ghost.search-entry::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z' stroke='%230369a1' stroke-width='1.8'/%3E%3Cpath d='m20 20-3.5-3.5' stroke='%230369a1' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn-ghost:hover {
  background: #f8fafc;
  color: var(--text);
}

.header-actions .btn-ghost.search-entry:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border-color: rgba(14, 165, 233, 0.24);
}

.header-actions .btn-ghost.lang-entry {
  gap: 8px;
  padding: 0 14px 0 12px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.header-actions .btn-ghost.lang-entry::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z' stroke='%2364758b' stroke-width='1.8'/%3E%3Cpath d='M3.8 9h16.4M3.8 15h16.4M12 3.4c2.1 2.25 3.2 5.28 3.2 8.6S14.1 18.35 12 20.6M12 3.4C9.9 5.65 8.8 8.68 8.8 12S9.9 18.35 12 20.6' stroke='%2364758b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.header-actions .btn-ghost.lang-entry:hover {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.34);
}

.btn-dark,
.btn-light {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.btn-dark {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.btn-dark:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.94);
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-light:hover {
  background: #fff;
  color: var(--text);
}

.btn-dark.large,
.btn-light.large {
  height: 48px;
  padding: 0 20px;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-nav.open {
  display: block;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-link:hover,
.mobile-link.current {
  background: #f8fafc;
  color: var(--text);
}

.mobile-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(14, 165, 233, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #64748b;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
}

.badge.subtle {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.page-hero {
  position: relative;
}

.page-hero-inner {
  position: relative;
  padding: 0 0 10px;
}

.page-hero-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.breadcrumb {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.breadcrumb a {
  color: #475569;
}

.breadcrumb-current {
  color: #1e293b;
}

.page-hero-copy {
  width: min(100%, 860px);
  margin: 24px auto 0;
}

.page-hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-align: center;
}

.page-hero-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  text-align: center;
}

.hint {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.section {
  padding: 88px 0;
}

#featured-news.section {
  padding-top: 28px;
}

.section.soft {
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  gap: 28px;
}

.section-head.center {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.section-head.split {
  justify-content: space-between;
  align-items: end;
}

.section-title {
  margin: 18px 0 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.section-desc {
  max-width: 720px;
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

.page-hero-copy p:empty,
.section-desc:empty {
  display: none;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  margin-top: 18px;
}

.featured-slot {
  min-width: 0;
}

.featured-card,
.highlight-card,
.post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.featured-image,
.post-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #edf2f7;
}

.image-link {
  display: block;
  width: 100%;
  color: inherit;
}

.featured-image {
  aspect-ratio: 16 / 7.4;
  max-height: 360px;
}

.post-image {
  aspect-ratio: 4 / 2.5;
  max-height: 240px;
}

.featured-image img,
.post-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.28s ease;
}

.featured-image:has(img[src*="news-20260415-website-upgrade"]),
.post-image:has(img[src*="news-20260415-website-upgrade"]) {
  aspect-ratio: 16 / 9;
  max-height: none;
  background: #f4f8fb;
}

.featured-image:has(img[src*="news-20260415-website-upgrade"]) img,
.post-image:has(img[src*="news-20260415-website-upgrade"]) img {
  object-fit: contain;
}

.featured-image:has(img[src*="news-20260415-website-upgrade"])::before,
.featured-image:has(img[src*="news-20260415-website-upgrade"])::after,
.post-image:has(img[src*="news-20260415-website-upgrade"])::before,
.post-image:has(img[src*="news-20260415-website-upgrade"])::after {
  display: none;
}

.image-link:hover .featured-image img,
.image-link:hover .post-image img {
  transform: scale(1.03);
}

.image-link:hover .featured-image:has(img[src*="news-20260415-website-upgrade"]) img,
.image-link:hover .post-image:has(img[src*="news-20260415-website-upgrade"]) img {
  transform: none;
}

.featured-image::after,
.post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(15,23,42,.12) 100%);
}

.featured-image::before,
.post-image::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: 1;
}

.image-chip,
.image-meta {
  position: absolute;
  z-index: 2;
}

.image-chip {
  left: 16px;
  top: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.08);
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
}

.image-meta {
  left: 16px;
  right: 16px;
  bottom: 14px;
}

.image-meta .title {
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.featured-body,
.post-body {
  padding: 28px;
}

.post-body {
  display: flex;
  flex-direction: column;
  height: auto;
}

.highlight-list {
  display: grid;
  gap: 16px;
}

.highlight-card {
  padding: 24px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #e0f2fe;
}

.date {
  color: var(--muted-2);
  font-size: 13px;
}

.featured-body h3,
.highlight-card h3,
.post-body h3 {
  margin: 18px 0 0;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.highlight-card h3 {
  font-size: 24px;
}

.post-body h3 {
  font-size: 24px;
}

.title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.title-link:hover {
  color: #0369a1;
}

.featured-body p,
.highlight-card p,
.post-body p {
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.85;
  font-size: 14px;
}

.post-body p {
  flex: 0 0 auto;
  font-size: 15.5px;
  line-height: 1.82;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.filter-chip {
  padding: 10px 16px;
  border: 1px solid rgba(148,163,184,.28);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.filter-chip:hover {
  background: #f8fafc;
  color: var(--text);
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}

.empty-state {
  margin-top: 32px;
  padding: 28px;
  border-radius: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
}

.empty-state h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.85;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.news-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.88);
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-link:hover {
  color: #0369a1;
  transform: translateX(2px);
}

.news-link-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0369a1;
  text-decoration: none;
}

.news-link-list:hover {
  color: #075985;
}

.post-card.hidden {
  display: none;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.page-btn,
.page-ellipsis {
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.page-btn {
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-btn:hover {
  background: #f8fafc;
  color: var(--text);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.page-btn.disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.page-btn.nav {
  padding: 0 18px;
}

.page-ellipsis {
  color: var(--muted-2);
}

.footer-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef7ff 36%, #0f172a 100%);
  border-top: 1px solid var(--line);
}

.footer-wrap {
  padding: 0 0 40px;
}

.footer-card {
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  padding: 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.footer-copy {
  max-width: 720px;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.9;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-nav {
  justify-content: flex-end;
  gap: 8px;
}

.footer-nav a {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 10px 16px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #94a3b8;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-record {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links {
  gap: 20px;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 1180px) {
  .featured-layout,
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .footer-top,
  .section-head.split {
    grid-template-columns: 1fr;
  }

  .section-head.split {
    display: grid;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container,
  .header-shell {
    width: min(var(--max), calc(100% - 20px));
  }

  .header-row {
    padding: 14px 16px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    display: none;
  }
  main {
    padding-top: 114px;
  }

  .page-hero {
    padding-bottom: 12px;
  }

  .page-hero-copy h1 {
    font-size: 38px;
  }

  .page-hero-copy p {
    font-size: 15px;
    line-height: 1.78;
  }

  .section-desc {
    font-size: 15px;
    line-height: 1.78;
  }

  .section-title {
    font-size: 34px;
    line-height: 1.12;
  }

  .featured-layout,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-column: auto;
  }

  .highlight-card,
  .featured-body,
  .post-body,
  .footer-card {
    padding: 22px;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 28px;
  }

  .filter-chip {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .post-meta {
    align-items: flex-start;
    gap: 8px;
  }

  .featured-body h3 {
    font-size: 26px;
  }

  .highlight-card h3 {
    font-size: 21px;
  }

  .post-body h3 {
    font-size: 19px;
  }

  .post-body p {
    font-size: 15px;
    line-height: 1.8;
  }

  .footer-copy {
    font-size: 13px;
    line-height: 1.85;
  }
}
