.demo-editorial,
.demo-editorial * {
  box-sizing: border-box;
}

.demo-editorial {
  --demo-accent: #2563eb;
  --demo-accent-soft: rgba(37, 99, 235, 0.12);
  width: 100%;
  padding: 72px 20px;
  color: #172033;
  background:
    radial-gradient(circle at 8% 8%, var(--demo-accent-soft), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f5f7fb 100%);
  border-top: 1px solid #e5eaf1;
  border-bottom: 1px solid #e5eaf1;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.demo-editorial button {
  font: inherit;
}

.demo-editorial__shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.demo-editorial__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}

.demo-editorial__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: var(--demo-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.demo-editorial__eyebrow::before {
  width: 28px;
  height: 3px;
  content: "";
  border-radius: 99px;
  background: var(--demo-accent);
}

.demo-editorial h2 {
  margin: 0;
  color: #101828;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.demo-editorial__lead {
  margin: 0;
  color: #5d6675;
  font-size: 16px;
  line-height: 1.9;
}

.demo-editorial__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  background: #e4e9f0;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.demo-editorial__stat {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.96);
}

.demo-editorial__stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--demo-accent);
  font-size: 23px;
  line-height: 1;
}

.demo-editorial__stat span {
  color: #667085;
  font-size: 13px;
}

.demo-editorial__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.demo-story {
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.demo-story:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(16, 24, 40, 0.13);
}

.demo-story__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe5ec;
}

.demo-story__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.demo-story__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease;
}

.demo-story:hover .demo-story__media img {
  transform: scale(1.04);
}

.demo-story__body {
  padding: 21px 22px 22px;
}

.demo-story__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  color: #8a94a3;
  font-size: 12px;
}

.demo-story__category {
  color: var(--demo-accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.demo-story h3 {
  min-height: 3.05em;
  margin: 0 0 10px;
  color: #172033;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.52;
}

.demo-story p {
  min-height: 5.1em;
  margin: 0;
  color: #697386;
  font-size: 14px;
  line-height: 1.72;
}

.demo-story__open {
  width: 100%;
  margin-top: 17px;
  padding: 10px 0 0;
  color: var(--demo-accent);
  border: 0;
  border-top: 1px solid #edf0f4;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.demo-briefs {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 38px;
  padding: 28px 30px;
  border-radius: 18px;
  color: #f8fafc;
  background: #131b2a;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.18);
}

.demo-briefs h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.demo-briefs__label {
  color: #9aa7b9;
  font-size: 12px;
  line-height: 1.6;
}

.demo-briefs ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-briefs li {
  position: relative;
  padding-left: 16px;
  color: #d8dee8;
  font-size: 14px;
  line-height: 1.65;
}

.demo-briefs li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--demo-accent);
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 20, 0.74);
  backdrop-filter: blur(7px);
}

.demo-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.demo-modal__image {
  width: 100%;
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
}

.demo-modal__content {
  padding: 34px clamp(24px, 6vw, 54px) 46px;
}

.demo-modal__category {
  color: var(--demo-accent, #2563eb);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.demo-modal h2 {
  margin: 10px 0 14px;
  color: #111827;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.35;
}

.demo-modal__summary {
  margin: 0 0 26px;
  padding: 16px 18px;
  color: #4b5563;
  border-left: 4px solid var(--demo-accent, #2563eb);
  background: #f6f8fb;
  font-size: 15px;
  line-height: 1.8;
}

.demo-modal__article p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
  line-height: 2;
}

.demo-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.demo-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .demo-editorial__heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .demo-editorial__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-briefs {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .demo-editorial {
    padding: 50px 14px;
  }

  .demo-editorial__stats,
  .demo-editorial__grid,
  .demo-briefs ul {
    grid-template-columns: 1fr;
  }

  .demo-story h3,
  .demo-story p {
    min-height: 0;
  }

  .demo-briefs {
    padding: 24px 22px;
  }

  .demo-modal {
    padding: 10px;
  }
}
