/* 星河影视门户 - 杂志风首页布局 */
:root {
  --bg-page: #0b1020;
  --bg-main: #050816;
  --bg-card: #111827;
  --bg-soft: #020617;
  --accent: #f97316;
  --accent-alt: #38bdf8;
  --text-main: #f9fafb;
  --text-sub: #9ca3af;
  --border: #1f2937;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 24px 65px rgba(0,0,0,0.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0, rgba(56,189,248,0.16), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(248,250,252,0.1), transparent 60%),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
}

/* 头部 - 杂志Logo + 导航条 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(15,23,42,0.96), rgba(15,23,42,0.88));
  border-bottom: 1px solid rgba(31,41,55,0.9);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: conic-gradient(from 160deg, #f97316, #eab308, #22c55e, #38bdf8, #f97316);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9), 0 0 30px rgba(248,250,252,0.4);
}
.logo-text-main {
  font-family: "SF Pro Display", system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: 0.06em;
  font-size: 0.96rem;
  text-transform: uppercase;
}
.logo-text-sub {
  font-size: 0.76rem;
  color: var(--text-sub);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.86rem;
}
.nav a {
  text-decoration: none;
  color: var(--text-sub);
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  transition: color .18s, background .18s;
}
.nav a:hover,
.nav a.active {
  background: rgba(31,41,55,0.85);
  color: var(--accent-alt);
}

/* 主容器 */
.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 1.4rem 2.6rem;
}

/* 杂志式首屏：大封面 + 侧栏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.5fr);
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}
.hero-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(248,250,252,0.2), transparent 60%);
  border: 1px solid rgba(31,41,55,0.95);
  box-shadow: var(--shadow);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-cover-img {
  position: absolute;
  inset: 0;
}
.hero-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,6,23,0.98), rgba(2,6,23,0.2), transparent);
}
.hero-cover-content {
  position: relative;
  padding: 1.6rem 1.7rem 1.5rem;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(55,65,81,0.9);
  font-size: 0.76rem;
  color: var(--accent-alt);
  margin-bottom: 0.6rem;
}
.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 780;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.hero-lead {
  font-size: 0.92rem;
  color: var(--text-sub);
  max-width: 34rem;
  margin-bottom: 0.8rem;
}
.hero-lead strong {
  color: var(--accent-alt);
  font-weight: 500;
}
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  font-size: 0.8rem;
  color: var(--text-sub);
}
.hero-meta-row span::before {
  content: "• ";
  color: var(--accent);
}

.hero-side {
  display: grid;
  gap: 1rem;
}
.hero-side-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem 1rem 0.9rem;
}
.hero-side-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.hero-side-text {
  font-size: 0.82rem;
  color: var(--text-sub);
}

/* 栏目头部 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.02rem;
  font-weight: 600;
}
.section-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.76rem;
}
.chip {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(55,65,81,0.85);
  color: var(--text-sub);
}

/* 首页下半区：左资讯列表 + 右视频卡片网格 */
.layout-main {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5fr);
  gap: 1.6rem;
}

.article-list {
  display: grid;
  gap: 0.9rem;
}
.article-item {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 0.9rem;
  padding: 0.8rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(31,41,55,0.9);
}
.article-thumb {
  border-radius: 10px;
  overflow: hidden;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.article-body-title a {
  color: var(--text-main);
  text-decoration: none;
}
.article-body-title a:hover {
  color: var(--accent-alt);
}
.article-body-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}
.article-body-meta {
  font-size: 0.76rem;
  color: var(--text-sub);
}

/* 视频卡片网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.video-card {
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid rgba(31,41,55,0.9);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.9);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 55px rgba(0,0,0,1);
  border-color: rgba(248,250,252,0.22);
}
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #facc15, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(248,250,252,0.5);
}
.video-play::after {
  content: "";
  margin-left: 3px;
  border: 10px solid transparent;
  border-left-color: #020617;
  border-left-width: 16px;
}
.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.72rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  color: #f9fafb;
}
.video-body {
  padding: 0.75rem 0.9rem 0.9rem;
}
.video-title {
  font-size: 0.9rem;
  margin-bottom: 0.28rem;
  line-height: 1.5;
}
.video-title a {
  color: var(--text-main);
  text-decoration: none;
}
.video-title a:hover {
  color: var(--accent);
}
.video-meta {
  font-size: 0.76rem;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.video-meta span:first-child::before {
  content: "▶ ";
  font-size: 0.68rem;
  opacity: .8;
}

/* 列表页卡片 */
.list-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 1.1rem;
  padding: 0.9rem;
  margin-bottom: 1.1rem;
}
.list-thumb {
  border-radius: 12px;
  overflow: hidden;
}
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.list-title a {
  color: var(--text-main);
  text-decoration: none;
}
.list-title a:hover {
  color: var(--accent-alt);
}
.list-desc {
  font-size: 0.84rem;
  color: var(--text-sub);
  margin-bottom: 0.35rem;
}
.list-meta {
  font-size: 0.76rem;
  color: var(--text-sub);
}

/* 内容页 */
.article {
  max-width: 820px;
  margin: 0 auto;
}
.article-header {
  margin-bottom: 1.7rem;
}
.article-title {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.article-meta {
  font-size: 0.8rem;
  color: var(--text-sub);
}
.article-content p {
  margin-bottom: 1.05rem;
  font-size: 0.94rem;
}
.article-content h2 {
  font-size: 1.04rem;
  margin: 1.7rem 0 0.8rem;
}
.article-content h3 {
  font-size: 0.94rem;
  margin: 1.3rem 0 0.6rem;
}
.article-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.2rem 0 1.5rem;
  border: 1px solid var(--border);
}
.article-nav {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.82rem;
}
.article-nav a {
  color: var(--accent-alt);
  text-decoration: none;
}
.article-nav a:hover {
  text-decoration: underline;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid rgba(31,41,55,0.9);
  padding: 1.8rem 1.4rem 2.2rem;
  font-size: 0.8rem;
  color: var(--text-sub);
  text-align: center;
}
.site-footer a {
  color: var(--text-sub);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent-alt);
}

/* 响应式 */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0,1fr);
  }
  .layout-main {
    grid-template-columns: minmax(0,1fr);
  }
}
@media (max-width: 720px) {
  .main {
    padding: 1.4rem 1.05rem 2.3rem;
  }
  .header-inner {
    padding-inline: 1.05rem;
  }
  .article-item {
    grid-template-columns: minmax(0,1fr);
  }
  .list-card {
    grid-template-columns: minmax(0,1fr);
  }
}

