/* 菠萝TV · editorial sci-fi archive · responsive production styles */
:root {
  color-scheme:dark;
  --bg:#0a0d19;
  --panel:#131827;
  --panel2:#192034;
  --ink:#f5f4ef;
  --muted:#a5aabd;
  --line:#34394d;
  --gold:#f6cf76;
  --blue:#79d9eb;
  --shell:1280px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.75 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased
}

a {
  color:inherit;
  text-decoration:none
}

a:focus-visible,button:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:4px
}

img {
  max-width:100%;
  display:block
}

button {
  font:inherit
}

.gold {
  color:var(--gold)
}

.container {
  width:min(var(--shell),calc(100% - 64px));
  margin:auto
}

.site-header {
  position:relative;
  z-index:20;
  border-bottom:1px solid var(--line);
  background:#0d1120
}

.nav-shell {
  max-width:1400px;
  margin:auto;
  padding:17px 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap
}

.brand-symbol {
  width:46px;
  height:46px;
  border:1px solid #927945;
  border-radius:15px;
  background:linear-gradient(130deg,#362817,#131b2b);
  display:grid;
  place-items:center;
  color:var(--gold);
  font-size:30px;
  transform:rotate(-8deg)
}

.brand b {
  display:block;
  font-size:24px;
  line-height:1.15;
  letter-spacing:.05em
}

.brand small {
  display:block;
  margin-top:3px;
  font-size:9px;
  letter-spacing:.23em;
  color:var(--muted)
}

.desktop-nav {
  display:flex;
  gap:clamp(13px,2.1vw,31px)
}

.desktop-nav a {
  font-size:13px;
  font-weight:600;
  color:#dee0e9;
  white-space:nowrap
}

.desktop-nav a:hover,.desktop-nav a[aria-current] {
  color:var(--gold)
}

.nav-no {
  font-size:10px;
  display:block;
  color:#777f98;
  letter-spacing:.1em;
  line-height:1.5
}

.menu-button {
  display:none;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--ink);
  background:#1d2334;
  padding:8px 14px
}

.mobile-nav {
  display:flex;
  flex-wrap:wrap;
  padding:12px 25px;
  gap:16px;
  border-top:1px solid var(--line)
}

.mobile-nav[hidden] {
  display:none
}

.mobile-nav a {
  font-size:14px
}

.eyebrow {
  font-size:11px;
  letter-spacing:.25em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:800
}

.hero {
  position:relative;
  min-height:580px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  border-bottom:1px solid #2b3246;
  background:radial-gradient(ellipse at 72% 30%,#30345c 0,transparent 46%),#0e1427
}

.hero-copy {
  padding:90px 7vw 75px max(36px,calc((100vw - 1280px)/2));
  align-self:center;
  position:relative;
  z-index:2
}

.hero h1 {
  font-size:clamp(40px,4.5vw,75px);
  line-height:1.14;
  letter-spacing:-.04em;
  margin:21px 0 28px;
  font-weight:800
}

.hero h1 em {
  font-style:normal;
  color:var(--gold)
}

.hero p {
  max-width:550px;
  color:#ccd1e1;
  font-size:16px;
  line-height:2
}

.hero-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
  margin-top:32px
}

.btn {
  display:inline-flex;
  padding:12px 23px;
  border:1px solid var(--gold);
  border-radius:5px;
  background:var(--gold);
  color:#15171f;
  font-weight:800;
  font-size:14px
}

.btn.outline {
  background:transparent;
  color:var(--gold)
}

.hero-art {
  position:relative;
  min-width:0;
  min-height:580px
}

.hero-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center
}

.hero-art:before {
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  background:linear-gradient(90deg,#0e1427 0,transparent 36%)
}

.hero-edge {
  position:absolute;
  z-index:2;
  bottom:28px;
  right:32px;
  padding:9px 14px;
  border:1px solid #ffffff55;
  background:#11162abb;
  letter-spacing:.19em;
  font-size:11px
}

.strip {
  border-bottom:1px solid var(--line);
  background:#111626
}

.strip .container {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:18px 0;
  color:#b5bfd3;
  font-size:12px;
  letter-spacing:.12em
}

.strip b {
  color:var(--gold);
  font-weight:700
}

.section {
  padding:84px 0
}

.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:32px
}

.section-head h2 {
  font-size:clamp(27px,3vw,43px);
  line-height:1.3;
  margin:7px 0 0;
  letter-spacing:-.02em
}

.section-head p {
  color:var(--muted);
  max-width:380px;
  margin:0
}

.topic-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}

.topic-card {
  display:block;
  background:var(--panel);
  border:1px solid var(--line);
  overflow:hidden;
  transition:transform .2s,border .2s
}

.topic-card:hover,.article-card:hover {
  transform:translateY(-4px);
  border-color:#b59b63
}

.topic-visual {
  aspect-ratio:4/4.1;
  overflow:hidden;
  position:relative
}

.topic-visual img {
  width:100%;
  height:100%;
  object-fit:cover
}

.topic-visual:after {
  content:"";
  position:absolute;
  inset:30% 0 0;
  background:linear-gradient(transparent,#0b1020da)
}

.topic-visual .number {
  position:absolute;
  top:15px;
  left:17px;
  z-index:1;
  color:white;
  font-size:14px;
  letter-spacing:.16em
}

.topic-body {
  padding:20px 22px 24px
}

.topic-body h3 {
  font-size:24px;
  margin:0 0 6px
}

.topic-body small {
  color:var(--gold);
  letter-spacing:.13em;
  font-size:10px
}

.topic-body p {
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
  min-height:72px
}

.topic-cta {
  color:var(--gold);
  font-size:12px;
  font-weight:700
}

.feature-panel {
  display:grid;
  grid-template-columns:1.25fr .75fr;
  min-height:445px;
  background:#172033;
  border:1px solid var(--line)
}

.feature-img {
  min-height:400px;
  overflow:hidden
}

.feature-img img {
  width:100%;
  height:100%;
  object-fit:cover
}

.feature-body {
  padding:55px 48px;
  display:flex;
  flex-direction:column;
  justify-content:center
}

.feature-body h2 {
  font-size:clamp(28px,3vw,43px);
  line-height:1.35;
  margin:16px 0
}

.feature-body p {
  color:#c0c6da;
  line-height:2
}

.feature-body .btn {
  align-self:start;
  margin-top:22px
}

.archive-section {
  background:#0d1220;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}

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

.article-card {
  background:#131927;
  border:1px solid var(--line);
  min-width:0;
  transition:transform .2s,border .2s
}

.article-card .media {
  aspect-ratio:16/10;
  overflow:hidden
}

.article-card img {
  width:100%;
  height:100%;
  object-fit:cover
}

.article-info {
  padding:23px 24px 27px
}

.article-info .meta {
  font-size:11px;
  letter-spacing:.12em;
  color:var(--gold)
}

.article-info h3 {
  font-size:20px;
  line-height:1.5;
  margin:8px 0 10px
}

.article-info p {
  font-size:13px;
  color:var(--muted);
  margin:0 0 20px
}

.article-info .readmore {
  font-size:12px;
  font-weight:800;
  color:#f2d28d
}

.statement {
  padding:75px 0;
  text-align:center
}

.statement blockquote {
  font-size:clamp(23px,3.3vw,43px);
  line-height:1.6;
  max-width:950px;
  margin:20px auto;
  color:#eeeef5;
  font-weight:700
}

.statement p {
  color:var(--muted)
}

.footer {
  border-top:1px solid var(--line);
  background:#070a12
}

.footer-top {
  max-width:var(--shell);
  width:calc(100% - 64px);
  margin:auto;
  padding:65px 0;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:45px
}

.footer-logo {
  font-weight:800;
  font-size:25px;
  color:var(--gold)
}

.footer-top p {
  font-size:13px;
  color:var(--muted);
  line-height:2
}

.footer-top strong {
  display:block;
  margin-bottom:18px
}

.footer-top a:not(.footer-logo) {
  display:block;
  color:var(--muted);
  font-size:13px;
  margin:8px 0
}

.footer-top a:hover {
  color:var(--gold)
}

.footer-bottom {
  border-top:1px solid #252b39;
  padding:20px max(32px,calc((100% - 1280px)/2));
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  color:#80889b;
  font-size:12px
}

.crumbs {
  padding:28px 0;
  color:#a9b1c7;
  font-size:12px
}

.crumbs a {
  color:var(--gold)
}

.page-intro {
  padding:35px 0 55px
}

.page-intro h1 {
  font-size:clamp(32px,4vw,56px);
  line-height:1.3;
  margin:10px 0 20px
}

.page-intro p {
  max-width:820px;
  color:#bfc6d7;
  font-size:17px
}

.category-hero {
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  align-items:stretch;
  gap:30px
}

.category-hero .page-intro {
  padding:60px 0
}

.category-hero img {
  height:385px;
  width:100%;
  object-fit:cover;
  border:1px solid var(--line)
}

.article-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:52px;
  padding-bottom:95px
}

.article-body {
  min-width:0
}

.article-cover {
  width:100%;
  aspect-ratio:16/8;
  object-fit:cover;
  margin-bottom:36px;
  border:1px solid var(--line)
}

.article-body .lead {
  font-size:19px;
  color:#e0e4ef;
  line-height:2
}

.article-body h2 {
  margin-top:42px;
  font-size:25px;
  border-left:3px solid var(--gold);
  padding-left:17px
}

.article-body h3 {
  font-size:19px;
  margin:26px 0 12px
}

.article-body p {
  color:#bbc4d6;
  line-height:2.1
}

.article-aside {
  border-top:3px solid var(--gold);
  align-self:start;
  background:#141a2a;
  padding:26px
}

.article-aside strong {
  display:block;
  margin-bottom:12px
}

.article-aside a {
  display:block;
  border-bottom:1px solid var(--line);
  padding:12px 0;
  font-size:13px;
  color:#cbd0dc
}

.pill {
  display:inline-block;
  border:1px solid #5c5272;
  color:var(--gold);
  border-radius:100px;
  padding:3px 12px;
  font-size:12px;
  margin-right:8px
}

.related {
  border-top:1px solid var(--line);
  padding:58px 0 80px
}

.related h2 {
  font-size:27px
}

.about-copy {
  max-width:850px;
  padding-bottom:85px
}

.about-copy h2 {
  margin-top:35px
}

.about-copy p {
  line-height:2;
  color:#c3cad9
}

@media(max-width:1100px) {
  .desktop-nav {
    gap:13px
  }
  .desktop-nav a {
    font-size:12px
  }
  .nav-shell {
    padding:17px 22px
  }
  .hero-copy {
    padding-left:32px
  }
  .topic-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .topic-visual {
    aspect-ratio:16/10
  }
  .article-layout {
    gap:26px
  }
}

@media(max-width:760px) {
  .container {
    width:calc(100% - 34px)
  }
  .desktop-nav {
    display:none
  }
  .menu-button {
    display:block
  }
  .nav-shell {
    padding:13px 17px
  }
  .hero {
    display:flex;
    flex-direction:column-reverse
  }
  .hero-art {
    min-height:270px;
    height:270px
  }
  .hero-art:before {
    background:linear-gradient(0deg,#0e1427,transparent 45%)
  }
  .hero-copy {
    padding:12px 19px 45px
  }
  .hero h1 {
    font-size:39px
  }
  .hero p {
    font-size:14px
  }
  .strip .container {
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:12px 22px
  }
  .section {
    padding:55px 0
  }
  .section-head {
    display:block
  }
  .section-head p {
    margin-top:14px
  }
  .topic-grid,.article-grid {
    grid-template-columns:1fr 1fr
  }
  .feature-panel {
    grid-template-columns:1fr
  }
  .feature-img {
    min-height:255px;
    height:255px
  }
  .feature-body {
    padding:30px
  }
  .category-hero {
    display:block
  }
  .category-hero .page-intro {
    padding:25px 0
  }
  .category-hero img {
    height:240px
  }
  .article-layout {
    grid-template-columns:1fr
  }
  .article-aside {
    order:2
  }
  .footer-top {
    width:calc(100% - 34px);
    grid-template-columns:1fr 1fr
  }
  .footer-top>div:first-child {
    grid-column:1/-1
  }
  .footer-bottom {
    padding:20px 17px
  }
}

@media(max-width:510px) {
  .topic-grid,.article-grid {
    grid-template-columns:1fr
  }
  .topic-visual {
    aspect-ratio:16/9
  }
  .hero h1 {
    font-size:34px
  }
  .hero-actions {
    gap:8px
  }
  .btn {
    padding:10px 16px
  }
  .section-head h2 {
    font-size:29px
  }
  .article-body h2 {
    font-size:22px
  }
  .page-intro h1 {
    font-size:32px
  }
}

/* ================================================================
   2026-11 layout revision: consistent spacing, readable navigation,
   bounded hero media, and robust card grids across viewport widths.
   ================================================================ */
html {
  scroll-padding-top: 24px;
}

body {
  overflow-wrap: anywhere;
}

.container {
  max-width: var(--shell);
}

.site-header {
  width: 100%;
}

.nav-shell {
  width: min(100%, 1400px);
}

.desktop-nav {
  align-items: center;
  flex-wrap: nowrap;
}

.desktop-nav a {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
}

.hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}

.hero-copy {
  min-width: 0;
  padding-right: clamp(24px, 3.5vw, 72px);
}

.hero h1 {
  overflow-wrap: break-word;
}

.hero-art {
  height: 100%;
  overflow: hidden;
}

.hero-art img {
  position: absolute;
  inset: 0;
}

.topic-card, .article-card {
  min-width: 0;
}

.topic-body h3, .article-info h3 {
  overflow-wrap: anywhere;
}

.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--gold);
  color: #121622;
  padding: 8px 14px;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
  }
  .hero-copy {
    padding: 68px 30px 64px max(30px, calc((100vw - 1060px) / 2));
  }
  .hero h1 {
    font-size: clamp(34px, 4.6vw, 56px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 490px;
  }
  .hero-art {
    min-height: 490px;
  }
  .hero-copy {
    padding: 48px 25px;
  }
  .hero h1 {
    font-size: clamp(32px, 4.3vw, 43px);
  }
  .hero p {
    font-size: 14px;
    line-height: 1.85;
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-panel {
    grid-template-columns: 1fr 1fr;
  }
  .feature-body {
    padding: 30px;
  }
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }
  .hero-art {
    height: 290px;
    min-height: 290px;
    width: 100%;
  }
  .hero-copy {
    padding: 25px 19px 45px;
  }
  .hero h1 {
    font-size: clamp(32px, 7vw, 43px);
  }
  .feature-panel {
    grid-template-columns: 1fr;
  }
  .feature-img {
    height: 270px;
    min-height: 270px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 510px) {
  .topic-grid, .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    height: 240px;
    min-height: 240px;
  }
  .hero-edge {
    display: none;
  }
  .strip .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-head {
    margin-bottom: 22px;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
