:root {
  --background: #f8f5f2;
  --background-soft: #feefe8;
  --foreground: #232323;
  --muted: #4e5454;
  --muted-2: #7c8484;
  --card: rgba(255, 255, 254, 0.92);
  --card-solid: #fffffe;
  --primary: #078080;
  --primary-deep: #056b6b;
  --primary-soft: rgba(7, 128, 128, 0.12);
  --secondary: #fffffe;
  --secondary-soft: rgba(255, 255, 254, 0.7);
  --accent: #f45d48;
  --accent-strong: #d94e3b;
  --accent-soft: rgba(244, 93, 72, 0.14);
  --border: rgba(35, 35, 35, 0.08);
  --border-strong: rgba(35, 35, 35, 0.14);
  --shadow-sm: 0 12px 28px rgba(35, 37, 37, 0.06);
  --shadow: 0 24px 60px rgba(35, 37, 37, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--foreground);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(7, 128, 128, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(244, 93, 72, 0.08), transparent 24%),
    linear-gradient(180deg, #f8f5f2 0%, #f8f5f2 62%, #feefe8 100%);
}

body.mobile-menu-open {
  overflow: hidden;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

.site-main {
  padding: 0 0 64px;
}

.pagebg,
.blank,
.blank100,
.clear,
.f_l,
.f_r,
.mt20 {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled .menu {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-strong);
  background: rgba(248, 245, 242, 0.92);
}

.menu {
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(248, 245, 242, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--content-width), calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links > li {
  position: relative;
}

.has-sub-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: #3c4343;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links > li > a:hover,
#topnav_current {
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.72));
  color: var(--foreground) !important;
}

.has-sub-nav:hover .sub-nav,
.has-sub-nav:focus-within .sub-nav {
  display: block;
}

.sub-nav {
  position: absolute;
  top: 100%;
  margin-top: 12px;
  left: 0;
  display: none;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 254, 0.98);
  box-shadow: var(--shadow-sm);
}

.sub-nav li {
  width: 100%;
}

.sub-nav li a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #3c4343;
}

.sub-nav li a:hover {
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.75));
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search_bar {
  position: relative;
  width: 260px;
  min-width: 260px;
  height: 46px;
}

.search_bar .input {
  width: 100%;
  height: 100%;
  padding: 0 56px 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 254, 0.96);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search_bar .input:focus {
  border-color: rgba(7, 128, 128, 0.4);
  box-shadow: 0 0 0 4px rgba(7, 128, 128, 0.12);
  background: #fffffe;
}

.search_ico {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--card-solid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search_ico span {
  font-size: 20px;
  line-height: 1;
}

.mobile-trigger,
.mobile-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 254, 0.9);
  color: var(--foreground);
  cursor: pointer;
}

.mobile-trigger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--foreground);
}

.mobile-trigger {
  flex-direction: column;
  gap: 4px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(35, 37, 37, 0.22);
  padding: 20px 16px;
}

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

.mobile-nav-inner {
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  margin-left: auto;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 254, 0.98), rgba(248, 245, 242, 0.98));
  box-shadow: var(--shadow);
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-brand img {
  width: 40px;
  height: 40px;
}

.mobile-nav-brand strong {
  display: block;
  font-size: 16px;
}

.mobile-nav-brand span {
  font-size: 12px;
  color: var(--muted);
}

.mobile-close {
  display: inline-flex;
  font-size: 22px;
  line-height: 1;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-search input,
.mobile-search button {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.mobile-search input {
  padding: 0 14px;
}

.mobile-search button {
  padding: 0 16px;
  background: var(--primary);
  color: var(--card-solid);
  cursor: pointer;
}

.mobile-link,
.mobile-group summary,
.mobile-group-body a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
}

.mobile-link,
.mobile-group {
  background: rgba(255, 255, 254, 0.94);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.mobile-group summary {
  cursor: pointer;
  font-weight: 600;
}

.mobile-group-body {
  padding: 0 8px 10px;
}

.mobile-group-body a {
  color: #475569;
}

.page-shell,
.timeline-shell,
.single-page-shell,
.home-shell,
.inside-article {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 28px auto 0;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.home-shell,
.timeline-shell,
.single-page-shell,
.inside-article {
  display: block;
}

.hero-grid,
.page-hero,
.article-hero {
  margin-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 24px;
  min-height: 460px;
}

.hero-copy-card,
.hero-feature-card,
.hero-secondary-card,
.section-card,
.blogs,
.side-card,
.page-hero,
.newsview,
.single-page-card,
.timeline-card,
.empty-card,
.empty-state-card,
.nextinfo,
.otherlink,
.news_pl,
.article-reading-toc-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.hero-copy-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 254, 0.12), transparent 34%),
    linear-gradient(145deg, #056b6b 0%, #078080 58%, #0b9898 100%);
  color: #fffffe;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy-card h1,
.page-hero h1,
.empty-state-card h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-copy-card p,
.page-hero p,
.empty-state-card p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
}

.page-hero p,
.empty-state-card p {
  color: var(--muted);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-metrics div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-inline-link {
  width: fit-content;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
}

.hero-feature-card,
.hero-secondary-card {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-feature-card {
  min-height: 100%;
}

.hero-feature-card img,
.hero-secondary-card img,
.blogpic img,
.rank-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-card::after,
.hero-secondary-card::after,
.rank-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 37, 37, 0.06), rgba(35, 37, 37, 0.74));
}

.hero-feature-overlay,
.hero-secondary-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 24px;
}

.hero-feature-overlay span,
.hero-secondary-overlay span,
.category-pill,
.page-hero-stat-label,
.side-card-head span,
.article-hero-extra {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 254, 0.18);
  font-size: 12px;
  color: #fffffe;
}

.hero-feature-overlay h2 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.hero-feature-overlay p,
.hero-secondary-overlay h3 {
  margin-top: 10px;
}

.hero-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-secondary-card {
  min-height: 220px;
}

.section-card,
.section-header-card,
.page-hero {
  padding: 24px 26px;
}

.section-header-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header-card-merged {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.section-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-header-card h2,
.side-card-head h2,
.otherlink h2,
.news_pl h2,
.article-reading-toc-title,
.news_title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-header-card p,
.rank-feature p,
.side-about-card p,
.timeline-body p,
.news_about,
.otherlink li,
.news_pl .gbko,
.article-reading-toc-empty,
.article-hero-extra {
  color: var(--muted);
}

.ghost-link,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
  background: var(--primary);
  color: #fffffe;
  border-color: transparent;
}

.ghost-link {
  background: rgba(255, 255, 254, 0.72);
}

.ghost-link:hover,
.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

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

.blogs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.blogpic {
  overflow: hidden;
  border-radius: 20px;
  min-height: 170px;
  background: linear-gradient(145deg, rgba(7, 128, 128, 0.18), rgba(244, 93, 72, 0.16));
}

.blogpic img {
  transition: transform 0.5s ease;
}

.blogs:hover .blogpic img,
.rank-feature:hover img,
.hero-feature-card:hover img,
.hero-secondary-card:hover img {
  transform: scale(1.04);
}

.blog-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.category-pill {
  background: var(--primary);
  color: #fffffe;
  font-weight: 700;
}

.blogtitle {
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.28;
}

.blogtitle a {
  color: var(--foreground);
}

.blogtext {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.bloginfo {
  margin-top: auto;
  padding-top: 16px;
}

.bloginfo ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bloginfo li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(7, 128, 128, 0.08);
  color: #3f4848;
  font-size: 13px;
}

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

.side-card {
  padding: 20px;
}

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

.side-card-head span,
.page-hero-stat-label {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.rank-feature {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 200px;
  border-radius: 20px;
}

.rank-feature > div {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 18px;
  color: #fff;
}

.rank-feature strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.rank-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 128, 128, 0.06);
}

.rank-list a {
  flex: 1;
  color: var(--foreground);
}

.rank-list span {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.tags a,
.article-reading-toc-list a {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-cloud a,
.tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 128, 128, 0.08);
  color: #364040;
}

.tag-cloud a:hover,
.tags a:hover,
.article-reading-toc-list a:hover,
.article-reading-toc-list a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.side-about-card {
  position: relative;
  overflow: hidden;
}

.side-logo {
  width: 180px;
  margin-bottom: 14px;
}

.side-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.side-contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(7, 128, 128, 0.06);
  color: #3c4343;
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(7, 128, 128, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 254, 0.96), rgba(248, 245, 242, 0.96));
}

.page-hero-copy {
  max-width: 760px;
}

.page-hero .eyebrow {
  background: var(--accent-soft);
  color: var(--foreground);
}

.page-hero p {
  color: var(--muted);
}

.page-hero-stat {
  min-width: 180px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(7, 128, 128, 0.06);
}

.page-hero-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.article-content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.article-layout {
  position: relative;
}

.newsview,
.single-page-card,
.timeline-card {
  padding: 28px;
}

.breadcrumb-card {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(7, 128, 128, 0.06);
  color: var(--muted);
}

.breadcrumb-card a {
  color: var(--foreground);
}

.news_title {
  margin-top: 10px;
}

.article-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.reading-mode-btn,
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 254, 0.96);
  color: var(--foreground);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.reading-mode-btn.is-active,
.reading-mode-btn:hover,
.like-btn:hover,
.like-btn.is-liked {
  background: var(--primary);
  color: #fffffe;
  border-color: transparent;
}

.like-btn.is-liked {
  cursor: default;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.news_about {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(244, 93, 72, 0.08);
}

.news_about strong {
  margin-right: 10px;
  color: var(--foreground);
}

.post-content {
  margin-top: 24px;
  color: #222525;
  font-size: 17px;
  line-height: 1.9;
}

.post-content > * + * {
  margin-top: 1.15em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 1.6em;
  margin-bottom: 0.65em;
  line-height: 1.3;
  color: var(--foreground);
  scroll-margin-top: 110px;
}

.post-content h1 { font-size: 2em; }
.post-content h2 { font-size: 1.7em; }
.post-content h3 { font-size: 1.42em; }
.post-content h4 { font-size: 1.2em; }
.post-content h5,
.post-content h6 { font-size: 1.02em; }

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content table,
.post-content pre {
  margin-bottom: 1.1em;
}

.post-content ul,
.post-content ol {
  padding-left: 1.3em;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content blockquote {
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: rgba(244, 93, 72, 0.08);
  color: #3c4343;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.post-content th,
.post-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.post-content th {
  background: rgba(7, 128, 128, 0.08);
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.post-content pre,
.post-content .code-block {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 20px;
  background: #232323;
  color: #fffffe;
  border: 1px solid rgba(255, 255, 254, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  line-height: 1.75;
  font-size: 14px;
  white-space: pre;
}

.post-content pre code,
.post-content code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.post-content :not(pre) > code {
  padding: 0.2em 0.5em;
  border-radius: 8px;
  background: rgba(7, 128, 128, 0.08);
  color: #056b6b;
}

.share {
  margin-top: 28px;
}

.nextinfo,
.otherlink,
.news_pl {
  margin-top: 22px;
  padding: 22px;
}

.nextinfo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nextinfo p {
  padding: 16px;
  border-radius: 18px;
  background: rgba(7, 128, 128, 0.06);
}

.nextinfo span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nextinfo em {
  color: var(--muted-2);
  font-style: normal;
}

.otherlink ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.otherlink li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(244, 93, 72, 0.06);
}

.news_pl .gbko {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 128, 128, 0.04);
}

.article-reading-toc {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 248px;
}

.article-reading-toc.is-floating {
  position: fixed;
  z-index: 999;
}

.article-reading-toc.is-bottom-lock {
  position: absolute;
}

.article-reading-toc-inner {
  padding: 18px 16px;
  max-height: 520px;
  overflow: auto;
}

.article-reading-toc-title {
  margin-bottom: 12px;
}

.article-reading-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-reading-toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: #4b5252;
  font-size: 13px;
  line-height: 1.55;
}

.article-reading-toc-empty {
  display: none;
  font-size: 13px;
}

.article-reading-toc-list .level-1 a,
.article-reading-toc-list .level-2 a { padding-left: 10px; }
.article-reading-toc-list .level-3 a { padding-left: 18px; }
.article-reading-toc-list .level-4 a { padding-left: 28px; }
.article-reading-toc-list .level-5 a { padding-left: 38px; }
.article-reading-toc-list .level-6 a { padding-left: 48px; }

.inside-article.reading-mode .sidebar {
  display: none;
}

.inside-article.reading-mode .article-content-shell {
  grid-template-columns: minmax(0, 1fr);
}

.inside-article.reading-mode .article-layout {
  padding-right: 280px;
}

.inside-article.reading-mode .article-reading-toc {
  display: block;
}

.timeline-card {
  padding: 32px 28px;
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, rgba(7, 128, 128, 0.36), rgba(244, 93, 72, 0.24));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(7, 128, 128, 0.12);
}

.timeline-body {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 254, 0.92);
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 128, 128, 0.08);
  font-size: 12px;
  color: #4b5252;
}

.timeline-body a {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.pagination-shell {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 8px 8px;
}

.pagination-shell a,
.pagination-shell span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.pagination-shell .page-current {
  border-color: transparent;
  background: rgba(7, 128, 128, 0.1);
  color: var(--primary-deep);
}

.pagination-shell .is-disabled {
  color: var(--muted-2);
  background: rgba(35, 35, 35, 0.03);
}

.empty-card,
.empty-state-card {
  padding: 34px 30px;
  text-align: center;
}

.empty-card h3,
.empty-state-card h1 {
  color: var(--foreground);
}

.empty-card p {
  margin-top: 10px;
  color: var(--muted);
}

.empty-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  padding: 18px 0 36px;
}

.footer-inner {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 254, 0.94), rgba(248, 245, 242, 0.98));
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand img {
  width: 192px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 560px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.cd-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--primary);
  color: #fffffe;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.cd-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-shell,
  .article-content-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: 2;
  }

  .article-content-shell .sidebar {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .search_bar {
    width: 220px;
    min-width: 220px;
  }

  .mobile-trigger {
    display: inline-flex;
  }

  .inside-article.reading-mode .article-layout {
    padding-right: 0;
  }

  .article-reading-toc,
  .inside-article.reading-mode .article-reading-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .search_bar {
    display: none;
  }

  .blogs {
    grid-template-columns: 1fr;
  }

  .blogpic {
    min-height: 220px;
  }

  .page-hero,
  .section-header-card,
  .footer-inner,
  .nextinfo {
    grid-template-columns: 1fr;
    display: grid;
  }

  .page-hero,
  .section-header-card,
  .footer-inner {
    align-items: start;
  }

  .hero-secondary-grid,
  .otherlink ul {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav,
  .page-shell,
  .timeline-shell,
  .single-page-shell,
  .home-shell,
  .inside-article,
  .footer-inner {
    width: min(var(--content-width), calc(100% - 20px));
  }

  .menu {
    backdrop-filter: blur(14px);
  }

  .hero-copy-card,
  .section-card,
  .page-hero,
  .newsview,
  .single-page-card,
  .timeline-card,
  .side-card,
  .empty-card,
  .empty-state-card,
  .nextinfo,
  .otherlink,
  .news_pl {
    padding: 20px;
    border-radius: 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-copy-card h1,
  .page-hero h1,
  .empty-state-card h1 {
    font-size: 28px;
  }

  .blogtitle,
  .news_title,
  .timeline-body a {
    font-size: 22px;
  }

  .blogpic {
    min-height: 180px;
  }

  .bloginfo ul {
    gap: 8px;
  }

  .bloginfo li {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nextinfo,
  .pagination-shell,
  .empty-state-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-shell .page-current {
    justify-content: center;
  }

  .timeline-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-list::before {
    left: 7px;
  }

  .timeline-dot {
    width: 16px;
    height: 16px;
  }

  .footer-brand img {
    width: 160px;
  }
}


.latest-text-card {
  padding: 18px 22px;
}

.latest-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.latest-text-head strong {
  font-size: 16px;
}

.latest-text-head span,
.latest-text-meta {
  color: var(--muted);
}

.latest-text-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.latest-text-list-inline {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.latest-text-list li {
  min-width: 0;
  padding: 8px 0;
}

.latest-text-list a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.5;
}


.latest-text-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
}

.home-sidebar-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}

.home-sidebar-row .side-card {
  height: 100%;
}

.home-sidebar-row .side-card-head h2 {
  font-size: 20px;
}

.home-sidebar-row .rank-feature {
  min-height: 168px;
}

.home-sidebar-row .rank-list li {
  padding: 10px 12px;
}

@media (max-width: 1180px) {
  .latest-text-list,
  .home-sidebar-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .latest-text-card {
    padding: 16px 18px;
  }

  .section-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (max-width: 900px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy {
    overflow: hidden;
  }

  .brand-tagline {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    margin-left: auto;
    width: 44px;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .home-shell .section-header-card-merged {
    display: none;
  }

  .home-shell .blogsbox {
    gap: 14px;
  }

  .home-shell .blogs.mobile-text-only {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }

  .home-shell .blogs.mobile-text-only .blogpic,
  .home-shell .blogs.mobile-text-only .blogtext,
  .home-shell .blogs.mobile-text-only .blog-card-meta .category-pill,
  .home-shell .blogs.mobile-text-only .bloginfo li.lmname,
  .home-shell .blogs.mobile-text-only .bloginfo li.view,
  .home-shell .blogs.mobile-text-only .bloginfo li.like {
    display: none;
  }

  .home-shell .blogs.mobile-text-only .blogtitle {
    margin-top: 0;
    font-size: 20px;
  }

  .home-shell .blogs.mobile-text-only .blog-card-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .home-shell .blogs.mobile-text-only .bloginfo {
    margin-top: 10px;
    padding-top: 0;
  }

  .home-shell .blogs.mobile-text-only .bloginfo ul {
    gap: 8px;
  }

  .home-shell .blogs.mobile-text-only .bloginfo li {
    background: transparent;
    padding: 0;
    min-height: 0;
    color: var(--muted);
  }
}

@media (max-width: 640px) {
  .lists-shell .blogs.mobile-text-only {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }

  .lists-shell .blogs.mobile-text-only .blogpic,
  .lists-shell .blogs.mobile-text-only .blogtext,
  .lists-shell .blogs.mobile-text-only .blog-card-meta .category-pill,
  .lists-shell .blogs.mobile-text-only .bloginfo li.lmname,
  .lists-shell .blogs.mobile-text-only .bloginfo li.view,
  .lists-shell .blogs.mobile-text-only .bloginfo li.like {
    display: none;
  }

  .lists-shell .blogs.mobile-text-only .blogtitle {
    margin-top: 0;
    font-size: 20px;
  }

  .lists-shell .blogs.mobile-text-only .blog-card-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .lists-shell .blogs.mobile-text-only .bloginfo {
    margin-top: 10px;
    padding-top: 0;
  }

  .lists-shell .blogs.mobile-text-only .bloginfo ul {
    gap: 8px;
  }

  .lists-shell .blogs.mobile-text-only .bloginfo li {
    background: transparent;
    padding: 0;
    min-height: 0;
    color: var(--muted);
  }
}
