/* =========================================================
   享定官网 · 资讯与案例样式
   ========================================================= */

/* ---------- 列表头 ---------- */
.news-hero { padding: calc(var(--nav-h) + 56px) 0 28px; }
.news-hero .h1 { max-width: 20em; }

.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.news-tabs button {
  appearance: none; cursor: pointer;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 0.86rem; font-weight: 600;
  transition: 0.18s;
}
.news-tabs button:hover { border-color: rgba(47, 227, 181, 0.4); color: #fff; }
.news-tabs button.is-on {
  background: var(--grad-soft);
  border-color: rgba(47, 227, 181, 0.45);
  color: #9ff6e2;
}

/* ---------- 卡片列表 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: 0.22s;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 227, 181, 0.35);
  box-shadow: var(--shadow-glow);
}
.post-card__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(120% 120% at 20% 10%, rgba(47, 227, 181, 0.22), rgba(79, 209, 255, 0.08) 45%, #0a1420 100%);
  position: relative;
}
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__cover.is-ph::after {
  content: "XIANGDING";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.28);
}
.post-card__bd { padding: 18px 19px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; color: var(--muted);
  margin-bottom: 10px;
}
.post-card__cat {
  color: #8ef0da;
  border: 1px solid rgba(47, 227, 181, 0.28);
  background: rgba(47, 227, 181, 0.08);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
}
.post-card__t {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 9px;
  letter-spacing: -0.01em;
}
.post-card__x {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7bf0d5;
}
.post-card:hover .post-card__more span { transform: translateX(4px); display: inline-block; }

.news-empty {
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager__b {
  appearance: none; cursor: pointer;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 0.84rem;
  transition: 0.16s;
}
.pager__b:hover:not(:disabled) { border-color: rgba(47, 227, 181, 0.45); color: #fff; }
.pager__b.is-on { background: var(--grad); color: #04231d; border-color: transparent; font-weight: 700; }
.pager__b:disabled { opacity: 0.35; cursor: default; }

/* ---------- 案例卡 ---------- */
.case-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 60%);
}
.case-card__m { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.case-card__m b {
  font-family: var(--font-mono);
  font-size: 1.42rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.case-card__m span { font-size: 0.76rem; color: var(--muted); }
.case-card__t { font-size: 0.98rem; color: #fff; margin: 0 0 8px; line-height: 1.5; }
.case-card__x { font-size: 0.83rem; color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.case-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.case-card__tags span {
  font-size: 0.7rem; color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---------- 文章详情 ---------- */
.article-head { padding: calc(var(--nav-h) + 56px) 0 8px; }
.article-head .h1 { max-width: 22em; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; }
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; font-size: 0.82rem; color: var(--muted);
}
.article-cover {
  margin: 34px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-cover img { width: 100%; display: block; }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 0 80px;
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.95;
}
.article-body h2 {
  font-size: 1.42rem;
  color: #fff;
  margin: 2.2em 0 0.7em;
  letter-spacing: -0.015em;
}
.article-body h3 { font-size: 1.14rem; color: #fff; margin: 1.8em 0 0.6em; }
.article-body p { margin: 0 0 1.3em; }
.article-body strong { color: #fff; font-weight: 700; }
.article-body em { color: #b9f3e6; font-style: italic; }
.article-body a { color: #7bf0d5; text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.25em; }
.article-body li { margin-bottom: 0.55em; }
.article-body li::marker { color: rgba(47, 227, 181, 0.7); }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 16px 22px;
  border-left: 3px solid rgba(47, 227, 181, 0.6);
  background: rgba(47, 227, 181, 0.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #d8ece9;
  font-size: 1rem;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 5px;
  color: #b9f3e6;
}
.article-body pre {
  background: #08111a;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 1.5em;
}
.article-body pre code { background: none; padding: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article-body figure { margin: 1.8em 0; }
.article-body figure img, .article-body img { border-radius: var(--r-sm); width: 100%; }

.article-foot {
  max-width: 760px; margin: 0 auto 90px;
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.86rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 0.98rem; }
  .article-body h2 { font-size: 1.24rem; }
}
