@charset "UTF-8";
/* ==========================================================================
   博客资讯（列表 + 文章详情）
   设计语汇：黑底图头 / 宋体大标题 / 英文小标签 / 细线 / 红色菱形编号
   ========================================================================== */

/* ---------- 头图右下角统计 ---------- */
.news-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 24px;
}
.news-stats > div {
  padding-right: 44px;
  margin-right: 44px;
  border-right: 1px solid rgba(255, 255, 255, .16);
}
.news-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.news-stats b {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}
.news-stats b i { font-style: normal; color: var(--xh-red-bright); font-size: 16px; margin-left: 3px; vertical-align: 8px; }
.news-stats span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .45);
}

/* ---------- 分类筛选 ---------- */
.news-filter {
  position: sticky;
  top: var(--xh-head-h);
  z-index: 60;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--xh-line);
}
.news-filter__inner {
  max-width: var(--xh-maxw);
  margin: 0 auto;
  padding: 0 var(--xh-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.news-filter__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.news-filter__tabs::-webkit-scrollbar { display: none; }
.news-filter__tabs button {
  flex: 0 0 auto;
  position: relative;
  padding: 18px 16px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--xh-gray-2);
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.news-filter__tabs button:hover { color: #111; }
.news-filter__tabs button.is-active { color: #111; border-bottom-color: var(--xh-red); }
.news-filter__tabs button em {
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #b5b5b5;
  margin-left: 4px;
}
.news-filter__search {
  position: relative;
  flex: 0 0 auto;
  width: 230px;
}
.news-filter__search input {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--xh-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #111;
  outline: none;
  transition: border-color .25s;
}
.news-filter__search input:focus { border-color: #111; }
.news-filter__search button {
  position: absolute;
  right: 4px; top: 4px;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.news-filter__search button::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 11px;
  border: 1.5px solid #888;
  border-radius: 50%;
  transform: translate(-60%, -60%);
}
.news-filter__search button::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 1.5px;
  background: #888;
  transform: translate(2px, 4px) rotate(45deg);
}

/* ---------- 列表主体 ---------- */
.news-main { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); min-height:500px;}

.news-featured {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 0;
  margin-bottom: clamp(40px, 6vw, 72px);
  background: #fff;
  border: 1px solid var(--xh-line);
}
.news-featured__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 760;
  background: #e9edf1;
}
.news-featured__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
.news-featured:hover .news-featured__media img { transform: scale(1.04); }
.news-featured__body {
  padding: clamp(26px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.news-featured__body::before {
  content: "";
  position: absolute;
  left: 0; top: clamp(26px, 3.4vw, 48px);
  width: 3px; height: 54px;
  background: var(--xh-red);
}
.news-featured__body .meta { margin-bottom: 18px; }
.news-featured__body h2 {
  margin: 0 0 18px;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 29px);
  line-height: 1.45;
  letter-spacing: .02em;
}
.news-featured__body h2 a:hover { color: var(--xh-red); }
.news-featured__body p {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured__body .xh-btn { align-self: flex-start; }

/* 元信息（日期 / 分类） */
.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--xh-gray);
}
.meta time { font-family: Arial, Helvetica, sans-serif; letter-spacing: .12em; }
.meta .dot { width: 3px; height: 3px; background: #ccc; border-radius: 50%; }
.meta .tag {
  color: var(--xh-red);
  border: 1px solid rgba(230, 0, 18, .3);
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .12em;
}

/* 列表卡片 */
.news-list { display: grid; gap: 0;}
.news-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 320px 150px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: 28px 4px;
  border-bottom: 1px solid var(--xh-line);
  transition: background .3s ease, padding .3s ease;
}
.news-card:hover { background: #f7f7f7; padding-left: 14px; padding-right: 14px; }
.news-card__no {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: .14em;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-card__no::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--xh-red);
  transform: rotate(45deg);
  transition: transform .4s ease;
}
.news-card:hover .news-card__no::before { transform: rotate(135deg); }
.news-card__main h3 {
  margin: 0 0 8px;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  letter-spacing: .02em;
}
.news-card__main h3 a:hover { color: var(--xh-red); }
.news-card__main p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #6b6b6b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__media {
  aspect-ratio: 1200 / 400;
  overflow: hidden;
  background: #eef1f4;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__go {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .2em;
  color: #999;
  transition: color .25s;
}
.news-card__go i {
  width: 38px; height: 38px;
  border: 1px solid var(--xh-line);
  border-radius: 50%;
  position: relative;
  transition: border-color .25s, background .25s;
}
.news-card__go i::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
  transform: translate(-60%, -50%) rotate(45deg);
}
.news-card:hover .news-card__go { color: #111; }
.news-card:hover .news-card__go i { border-color: var(--xh-red); background: var(--xh-red); }
.news-card:hover .news-card__go i::before { border-color: #fff; }

/* 待发布占位卡 */
.news-card--soon { opacity: .55; pointer-events: none; }
.news-card--soon .news-card__main h3 { color: #666; }
.news-card--soon .news-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  font-size: 12px;
  letter-spacing: .3em;
  color: #aaa;
}

.news-empty {
  display: none;
  padding: 64px 0;
  text-align: center;
  color: var(--xh-gray);
  font-size: 14px;
  letter-spacing: .08em;
}
.news-empty.is-show { display: block; }

/* ---------- 列表底部订阅/联系条 ---------- */
.news-ctaband {
  background: #fff;
  border-top: 1px solid #111;
}
.news-ctaband__inner {
  max-width: var(--xh-maxw);
  margin: 0 auto;
  padding: 34px var(--xh-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.news-ctaband h3 {
  margin: 0;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: .06em;
}
.news-ctaband p { margin: 6px 0 0; font-size: 13.5px; color: var(--xh-gray-2); letter-spacing: .04em; }
.news-ctaband__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   文章详情
   ========================================================================== */
.article-hero__inner { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(40px, 5vw, 64px); }
.article-hero .meta { color: rgba(255, 255, 255, .55); margin-bottom: 22px; }
.article-hero .meta .dot { background: rgba(255, 255, 255, .35); }
.article-hero .meta .tag { color: #fff; border-color: rgba(230, 0, 18, .8); background: rgba(230, 0, 18, .16); }
.article-hero__title {
  margin: 0;
  max-width: 920px;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: clamp(27px, 4vw, 46px);
  line-height: 1.35;
  letter-spacing: .04em;
}
.article-hero__lead {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.9;
  color: rgba(255, 255, 255, .62);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(44px, 6vw, 84px);
}
.article-figure { margin: 0 0 34px; }
.article-figure img { width: 100%; display: block; }
.article-figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--xh-gray);
  letter-spacing: .06em;
  border-left: 2px solid var(--xh-red);
  padding-left: 10px;
}

.article-body {
  font-size: 16.5px;
  line-height: 2;
  color: #333;
  letter-spacing: .01em;
}
.article-body > p { margin: 0 0 22px; }
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--xh-serif);
  font-size: 46px;
  line-height: .9;
  padding: 6px 10px 0 0;
  color: var(--xh-red);
}
.article-body h3 {
  position: relative;
  margin: 44px 0 18px;
  padding-left: 18px;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: #111;
}
.article-body h3::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 8px; height: 8px;
  background: var(--xh-red);
  transform: rotate(45deg);
}
.article-body strong { color: #111; }
.article-body .compare {
  margin: 26px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: 14.5px;
}
.article-body .compare div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--xh-line);
}
.article-body .compare div:last-child { border-bottom: 0; }
.article-body .compare div span { padding: 12px 14px; }
.article-body .compare div span + span { border-left: 1px solid var(--xh-line); }
.article-body .compare div:first-child span { background: #f6f6f6; color: #111; letter-spacing: .1em; font-size: 13px; }
.article-body blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  background: #111;
  color: rgba(255, 255, 255, .82);
  font-size: 15.5px;
  line-height: 1.95;
  border-left: 3px solid var(--xh-red);
}

.article-end {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--xh-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--xh-gray);
  letter-spacing: .06em;
}
.article-end .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-end .tags span { border: 1px solid var(--xh-line); padding: 4px 10px; font-size: 12px; color: var(--xh-gray-2); }

/* 侧栏 */
.article-side { position: sticky; top: calc(var(--xh-head-h) + 28px); align-self: start; display: grid; gap: 22px; }
.side-card { border: 1px solid var(--xh-line); padding: 24px 22px; background: #fff; }
.side-card h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .28em;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-card h4::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--xh-red);
  transform: rotate(45deg);
}
.side-toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.side-toc li { counter-increment: toc; border-bottom: 1px dashed var(--xh-line); }
.side-toc li:last-child { border-bottom: 0; }
.side-toc a {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #444;
  transition: color .25s;
}
.side-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #bbb;
  padding-top: 2px;
}
.side-toc a:hover { color: var(--xh-red); }
.side-card--dark { background: #111; border-color: #111; color: #fff; position: relative; overflow: hidden; }
.side-card--dark h4 { color: #fff; }
.side-card--dark p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .6); }
.side-card--dark .tel {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 23px;
  letter-spacing: .04em;
}
.side-card--dark .tel:hover { color: var(--xh-red-bright); }
.side-card--dark::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -34px;
  width: 90px; height: 90px;
  border: 1px solid rgba(255, 255, 255, .16);
  transform: rotate(45deg);
}
.side-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  letter-spacing: .06em;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
}
.side-card__link:hover { color: var(--xh-red); border-color: var(--xh-red); }

/* 相关文章 */
.related { border-top: 1px solid #111; padding-top: 0; }
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0 0;
  margin-bottom: 26px;
}
.related-head h2 {
  margin: 0;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .08em;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.related-card {
  display: block;
  border: 1px solid var(--xh-line);
  background: #fff;
  transition: border-color .3s, transform .3s;
}
.related-card:hover { border-color: #111; transform: translateY(-4px); }
.related-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f4; }
.related-card__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.related-card__body { padding: 18px 18px 20px; }
.related-card__body h3 {
  margin: 10px 0 0;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .02em;
}
.related-card:hover h3 { color: var(--xh-red); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .news-card { grid-template-columns: 70px minmax(0, 1fr) 220px 110px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 900px) {
  .news-stats > div { padding-right: 24px; margin-right: 24px; }
  .news-stats b { font-size: 24px; }
  .news-filter__inner { padding: 8px 0 0; flex-wrap: wrap; gap: 0; }
  .news-filter__tabs { width: 100%; padding: 0 var(--xh-pad); }
  .news-filter__tabs button { padding: 14px 12px; font-size: 13px; }
  .news-filter__search { width: calc(100% - var(--xh-pad) * 2); margin: 6px var(--xh-pad) 12px; }

  .news-featured { grid-template-columns: 1fr; }
  .news-featured__media { aspect-ratio: 16 / 10; }
  .news-featured__body::before { top: 26px; height: 40px; }

  .news-card {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "no main"
      "media media";
    row-gap: 16px;
    padding: 22px 0;
    align-items: start;
  }
  .news-card:hover { padding-left: 0; padding-right: 0; background: none; }
  .news-card__no { grid-area: no; padding-top: 4px; font-size: 12px; gap: 8px; }
  .news-card__main { grid-area: main; }
  .news-card__main h3 { font-size: 17px; }
  .news-card__main p { font-size: 13px; }
  .news-card__media { grid-area: media; aspect-ratio: 16 / 7; }
  .news-card__go { display: none; }

  .news-ctaband__inner { flex-direction: column; align-items: flex-start; }

  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; grid-template-columns: 1fr; }
  .article-body { font-size: 15.5px; line-height: 1.95; }
  .article-body h3 { font-size: 19px; margin-top: 34px; }
  .article-body .compare div span { padding: 10px 10px; font-size: 13px; }
  .article-body blockquote { padding: 18px; font-size: 14.5px; }
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .related-card { display: grid; grid-template-columns: 132px 1fr; align-items: center; }
  .related-card__media { aspect-ratio: 1; height: 100%; }
}

@media (max-width: 420px) {
  .news-stats > div { padding-right: 18px; margin-right: 18px; }
  .news-stats span { font-size: 11px; letter-spacing: .1em; }
  .side-card { padding: 20px 18px; }
}