/* ==========================================================================
   detail.css — 文章页：居中长文 + 横向分享条
   ========================================================================== */

/* ---------- 分享图标字体 ---------- */
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.fa-circle-exclamation:before,
.fa-exclamation-circle:before { content: "\f06a"; margin-right: 2px; }
.fa-facebook:before { content: "\f09a"; }
.fa-twitter:before { content: "\f099"; }
.fa-google-plus:before { content: "\f2b3"; }
.fa-stumbleupon:before { content: "\f1a4"; }
.fa-linkedin:before { content: "\f08c"; }


.article__head { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.article__title {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 3.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.022em;
  word-wrap: break-word;
}
.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article__avatar { width: 30px; height: 30px; border: 1px solid var(--rule-2); border-radius: 50%; object-fit: cover; }
.article__author { color: var(--fg); font-family: var(--font-body); font-size: .84rem; letter-spacing: 0; text-transform: none; }
.article__bar { width: 1px; height: 13px; background: var(--rule-2); }
.article__read { display: inline-flex; align-items: center; gap: 6px; }
.article__read svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---------- 横向分享条 ---------- */
.socialbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.socialbar__label { color: var(--fg-3); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; }
.socialbar__list { display: flex; flex-wrap: wrap; gap: 8px; }
.socialbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--rule-2);
  color: var(--fg-2);
  font-size: .79rem;
  transition: all .2s var(--ease);
  min-height: 36px;;
}
.socialbar__link:hover { border-color: var(--lime); color: var(--fg); transform: translateY(-2px); }
.socialbar__ico { display: inline-flex; align-items: center; justify-content: center; width: 16px; font-size: 13px; }
.socialbar__link--facebook .socialbar__ico { color: #7b9fe0; }
.socialbar__link--twitter .socialbar__ico { color: #56b6e8; }
.socialbar__link--google .socialbar__ico { color: #e57368; }
.socialbar__link--stumbleupon .socialbar__ico { color: #ef6a4a; }
.socialbar__link--linkedin .socialbar__ico { color: #4d9fdd; }

.article__hero { margin: 18px 0 0; overflow: hidden;}
.article__hero img {  max-height: 450px; }

.article__content {
  padding: 18px 0 6px;
  color: #ccd2d7;
  font-size: 1.02rem;
  line-height: 1.72;
  word-wrap: break-word;
}
.article__content p { margin-bottom: 18px; }
.article__content h1,
.article__content h2,
.article__content h3,
.article__content h4 { margin: 28px 0 12px; color: var(--fg); font-family: var(--font-head); line-height: 1.3; }
.article__content ul,
.article__content ol { margin-bottom: 18px; padding-left: 24px; list-style: revert; }
.article__content li { margin-bottom: 5px; }
.article__content a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.article__content a:hover { color: var(--lime-2); }
.article__content blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--lime);
  background: var(--bg-2);
  color: var(--fg-2);
}
.article__content img,
.article__content iframe,
.article__content video {
  max-width: 100% !important;
  height: auto;
  max-height: 470px;
  margin: 0 auto 14px;
}
.article__content table { width: 100%; margin-bottom: 18px; border-collapse: collapse; }
.article__content th,
.article__content td { padding: 8px 11px; border: 1px solid var(--rule); }
.article__content hr { margin: 26px 0; border: 0; border-top: 1px solid var(--rule); }
.ez-toc-title { color: var(--fg); }

@media (max-width: 620px) {
  .article__title { font-size: 1.44rem; }
  .article__content { font-size: .96rem; line-height: 1.68; }
  .socialbar { padding: 8px 10px; gap: 8px; }
  .socialbar__text { display: none; }
  .socialbar__link { padding: 8px 11px; }
  .article__hero img {width: 100%;height: auto;}
}
