/* 星空无限传媒 31 — 场记板顶栏 · 星幕 Hero · 马赛克栏目栅格 */
:root {
  --ip-bg: #050810;
  --ip-rise: #0c1222;
  --ip-panel: #121a2e;
  --ip-line: rgba(201, 162, 39, 0.12);
  --ip-gold: #d4af37;
  --ip-gold-2: #b8860b;
  --ip-cyan: #2dd4bf;
  --ip-text: #e8edf5;
  --ip-muted: #8b9bb4;
  --ip-max: 1180px;
  --ip-r: 12px;
  --ip-font: "Noto Sans SC", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ip-serif: "Noto Serif SC", "Songti SC", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ip-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ip-text);
  background: var(--ip-bg);
}

a {
  color: var(--ip-cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #5eead4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ip-skip {
  position: absolute;
  left: -9999px;
  background: var(--ip-gold);
  color: #0a0a0a;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 500;
  font-weight: 700;
}
.ip-skip:focus {
  left: 12px;
  top: 12px;
}

/* 场记板条：全宽，与既往顶栏不同 */
.ip-slate {
  background: #1a1510;
  border-bottom: 3px solid var(--ip-gold);
  padding: 8px 16px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5e6c8;
  text-align: center;
}

.ip-slate span {
  color: var(--ip-gold);
}

/* 主导航：居中品牌 + 底部分割线链接（非胶囊非侧轨） */
.ip-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ip-line);
}

.ip-head-in {
  width: min(100% - 28px, var(--ip-max));
  margin: 0 auto;
  padding: 16px 0 0;
}

.ip-brand-block {
  text-align: center;
  padding-bottom: 14px;
}

.ip-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ip-text);
  text-decoration: none;
}
.ip-brand:hover {
  text-decoration: none;
  color: var(--ip-gold);
}

.ip-star {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 35% 35%, #fff9e6, var(--ip-gold-2));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.35);
}

.ip-brand-text strong {
  display: block;
  font-family: var(--ip-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ip-brand-text small {
  display: block;
  font-size: 0.65rem;
  color: var(--ip-muted);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.12em;
}

.ip-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--ip-line);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ip-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ip-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

@media (max-width: 720px) {
  .ip-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .ip-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.ip-nav a:hover {
  color: var(--ip-gold);
  text-decoration: none;
}

.ip-nav a.is-on {
  color: var(--ip-gold);
  border-bottom-color: var(--ip-gold);
}

/* Hero：左文右图 + 星点伪背景 */
.ip-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--ip-rise) 0%, var(--ip-bg) 45%, #0a1628 100%);
}

.ip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(212, 175, 55, 0.4), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(45, 212, 191, 0.15), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.85;
}

.ip-hero-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, var(--ip-max));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  padding: 36px 0 44px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .ip-hero-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
  }
}

.ip-hero-copy .ip-k {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ip-gold);
  margin: 0 0 12px;
}

.ip-hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--ip-serif);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.18;
  font-weight: 700;
}

.ip-hero-copy .ip-dek {
  margin: 0 0 22px;
  color: var(--ip-muted);
  font-size: 0.93rem;
  max-width: 36em;
}

.ip-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ip-btn {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ip-btn-p {
  background: linear-gradient(135deg, var(--ip-gold), var(--ip-gold-2));
  color: #1a1206;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.25);
}
.ip-btn-p:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #1a1206;
}

.ip-btn-o {
  border: 1px solid var(--ip-line);
  color: var(--ip-gold);
  background: rgba(18, 26, 46, 0.6);
}
.ip-btn-o:hover {
  transform: translateY(-2px);
  border-color: var(--ip-gold);
  text-decoration: none;
  color: #fde68a;
}

.ip-hero-visual {
  position: relative;
  border-radius: 0 0 0 48px;
  overflow: hidden;
  border: 1px solid var(--ip-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@media (min-width: 900px) {
  .ip-hero-visual {
    margin-right: calc(-1 * min(40px, 4vw));
  }
}

.ip-hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.ip-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(5, 8, 16, 0.9));
  font-size: 0.75rem;
  color: var(--ip-muted);
}

/* 主区 */
.ip-shell {
  width: min(100% - 28px, var(--ip-max));
  margin: 0 auto;
  padding: 0 0 48px;
}

.ip-article {
  background: var(--ip-panel);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r);
  padding: 28px 26px 32px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .ip-article {
    padding: 32px 36px 38px;
  }
}

.ip-article h1 {
  margin: 0 0 14px;
  font-family: var(--ip-serif);
  font-size: clamp(1.18rem, 2.4vw, 1.36rem);
  font-weight: 700;
  color: var(--ip-gold);
}

.ip-article h2 {
  margin: 0 0 14px;
  font-family: var(--ip-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ip-gold);
}

/* 无 Hero 时内页 article 不再上叠 */
.ip-shell > .ip-crumb + .ip-article {
  margin-top: 0;
}

.ip-article .ip-sub {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: var(--ip-muted);
  padding-left: 14px;
  border-left: 3px solid var(--ip-cyan);
}

.ip-prose p {
  margin: 0 0 1.05em;
  color: #c5d0e0;
  font-size: 0.94rem;
}

.ip-prose p:last-child {
  margin-bottom: 0;
}

.ip-prose h3 {
  margin: 1.35em 0 0.55em;
  font-family: var(--ip-serif);
  font-size: 1.02rem;
  color: var(--ip-text);
}

.ip-prose h3:first-child {
  margin-top: 0;
}

.ip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ip-tags span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--ip-gold);
  border: 1px solid var(--ip-line);
}

/* 马赛克五栏：12 列栅格 */
.ip-sec {
  margin-top: 40px;
}

.ip-sec h2 {
  font-family: var(--ip-serif);
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--ip-gold);
}

.ip-sec > p {
  margin: 0 0 18px;
  font-size: 0.84rem;
  color: var(--ip-muted);
}

.ip-mosaic {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .ip-mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
  }

  .ip-mosaic .ip-tile:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
  }
  .ip-mosaic .ip-tile:nth-child(2) {
    grid-column: span 5;
  }
  .ip-mosaic .ip-tile:nth-child(3) {
    grid-column: span 5;
  }
  .ip-mosaic .ip-tile:nth-child(4) {
    grid-column: span 6;
  }
  .ip-mosaic .ip-tile:nth-child(5) {
    grid-column: span 6;
  }
}

.ip-tile {
  background: var(--ip-panel);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ip-tile:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ip-tile a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.ip-tile a:hover {
  text-decoration: none;
  color: inherit;
}

.ip-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.ip-mosaic .ip-tile:nth-child(1) img {
  aspect-ratio: 16 / 11;
}

.ip-tile-bd {
  padding: 14px 16px 16px;
}

.ip-tile h3 {
  margin: 0 0 6px;
  font-family: var(--ip-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.ip-tile p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ip-muted);
  line-height: 1.45;
}

/* 六专题：三列 */
.ip-grid6 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .ip-grid6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .ip-grid6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ip-card {
  background: var(--ip-panel);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r);
  overflow: hidden;
}

.ip-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.ip-card:hover {
  border-color: rgba(45, 212, 191, 0.25);
}

.ip-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ip-card .ip-tile-bd {
  padding: 12px 14px 14px;
}

/* 内页 */
.ip-crumb {
  font-size: 0.8rem;
  color: var(--ip-muted);
  margin: 28px 0 10px;
}

.ip-h1 {
  margin: 0 0 10px;
  font-family: var(--ip-serif);
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  color: var(--ip-text);
}

.ip-lead {
  margin: 0 0 18px;
  color: var(--ip-muted);
  font-size: 0.88rem;
}

.ip-cover {
  margin: 0 0 20px;
  border-radius: var(--ip-r);
  overflow: hidden;
  border: 1px solid var(--ip-line);
}

.ip-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 0;
}

.ip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ip-list a {
  display: block;
  padding: 16px 18px;
  background: var(--ip-panel);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r);
  text-decoration: none;
  color: var(--ip-text);
  transition: border-color 0.15s;
}
.ip-list a:hover {
  border-color: var(--ip-gold);
  text-decoration: none;
}

.ip-list strong {
  display: block;
  font-family: var(--ip-serif);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.ip-list span {
  font-size: 0.82rem;
  color: var(--ip-muted);
}

.ip-box {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--ip-r);
  font-size: 0.84rem;
  color: #a8bfd4;
}

.ip-box code {
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.ip-foot {
  text-align: center;
  padding: 32px 16px 40px;
  font-size: 0.75rem;
  color: var(--ip-muted);
  border-top: 1px solid var(--ip-line);
  background: var(--ip-rise);
}

.ip-foot strong {
  color: var(--ip-gold);
}

.ip-nav a:focus-visible,
.ip-btn:focus-visible,
.ip-brand:focus-visible {
  outline: 2px solid var(--ip-cyan);
  outline-offset: 2px;
}
