:root {
  --scheme: #e31c23;
  --title: #212121;
  --body: #53585c;
  --muted: #a0a0a0;
  --line: #eee;
  --content: 750px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", "Roboto", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--scheme); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 30px);
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Article ===== */
.jeg_main { padding: 8px 0 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--scheme); }
.breadcrumb .sep { color: #ccc; font-size: 11px; }

.jeg_post_title {
  font-size: 24px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--title);
  margin: 4px 0 14px;
}

.jeg_post_meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-width: 0;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.meta-author img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}
.meta-author .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--title);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.meta-date svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.meta-item .in { color: var(--muted); }
.meta-item .cat {
  color: var(--scheme);
  font-weight: 500;
}

.jeg_font_switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
  min-width: 42px;
}
.jeg_font_switcher .a-sm {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}
.jeg_font_switcher .a-lg {
  font-size: 18px;
  color: #555;
  font-weight: 500;
  margin-top: 1px;
}
.jeg_font_switcher .reset {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.jeg_featured { margin: 8px 0 22px; }
.jeg_featured img { width: 100%; }

/* ===== Content (JNews entry-content) ===== */
.content-inner {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}
.content-inner.zoom-sm { font-size: 15px; }
.content-inner.zoom-md { font-size: 16px; }
.content-inner.zoom-lg { font-size: 18px; }

.content-inner p { margin-bottom: 1.25em; }
.content-inner a:hover { text-decoration: underline; }

.content-inner h3 {
  font-size: 1.375em;
  font-weight: 700;
  color: var(--title);
  line-height: 1.35;
  margin: 1.45em 0 0.7em;
  scroll-margin-top: 12px;
}

.content-inner ul {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}
.content-inner li { margin: 0.35em 0; }
.content-inner strong { color: var(--title); font-weight: 700; }

/* Easy TOC */
.ez-toc {
  background: #f9f9f9;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  display: table;
  width: auto;
  max-width: 100%;
  margin: 0 0 1.4em;
  padding: 18px 22px 12px;
}
.ez-toc.collapsed nav { display: none; }
.ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0.6em;
}
.ez-toc-title {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--title);
  margin: 0 !important;
  line-height: 1.45;
}
.ez-toc-toggle {
  font-size: 13px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ez-toc-toggle .caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
}
.ez-toc.collapsed .ez-toc-toggle .caret {
  border-top: 0;
  border-bottom: 5px solid #666;
}
.ez-toc-list {
  margin: 0;
  padding-left: 1.35em;
  color: var(--body);
}
.ez-toc-list li { margin: 0.35em 0; line-height: 1.55; }
.ez-toc-list a { color: var(--body); }
.ez-toc-list a:hover { color: var(--scheme); text-decoration: underline; }

/* Tags — JNews jeg_post_tags */
.jeg_post_tags {
  margin: 8px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
}

.tg-banner {
  margin: 0 0 28px;
}
.tg-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.jeg_post_tags span {
  font-weight: 700;
  color: var(--title);
  margin-right: 8px;
}
.jeg_post_tags a {
  color: var(--muted);
  margin-right: 8px;
}
.jeg_post_tags a:hover { color: var(--scheme); }

@media (min-width: 900px) {
  .jeg_main { padding-top: 18px; }

  .jeg_post_title {
    font-size: 32px;
    line-height: 1.22;
    margin-bottom: 16px;
  }

  .content-inner { font-size: 16px; }
  .content-inner.zoom-md { font-size: 16px; }
  .content-inner.zoom-lg { font-size: 18px; }
  .content-inner h3 { font-size: 22px; }
}
