

:root {
  --primary: #4338CA;
  --secondary: #06B6D4;
  --accent: #FBBF24;
  --dark: #09090b;
  --darker: #030304;
  --light: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(9, 9, 11, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(67, 56, 202, 0.25);
}

.page-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(67, 56, 202, 0.25) 0%, transparent 55%),
              linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://yqcdn.fuhua95.com/game/20240320/7b93aaea324425a605abe90acd697beb.jpg') center/cover no-repeat;
  opacity: 0.16;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.75) 0%, var(--dark) 100%);
}

.banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 80px;
}

.banner-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(67, 56, 202, 0.35);
  margin-bottom: 1rem;
}

.banner-title span {
  color: var(--accent);
}

.banner-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.articles-section {
  background: linear-gradient(180deg, var(--dark) 0%, #0c0c10 100%);
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.5rem;
}

.article-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: rgba(67, 56, 202, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.article-card.featured {
  grid-column: span 7;
  grid-row: span 2;
}

.article-card.side {
  grid-column: span 5;
}

.article-card.wide {
  grid-column: span 8;
}

.article-card.tall {
  grid-column: span 4;
  grid-row: span 2;
}

.article-card-image {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 180px;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.08);
}

.article-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(9, 9, 11, 0.85) 100%);
}

.article-card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

.article-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.article-tag.accent {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--accent);
}

.article-card-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.article-card:hover .article-card-title {
  color: var(--accent);
}

.article-card-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.article-card-meta i {
  margin-right: 0.35rem;
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: transparent;
  border: 2px solid rgba(6, 182, 212, 0.5);
  color: var(--secondary);
  font-weight: 700;
  transition: all 0.3s ease;
}

.load-more:hover {
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.contact-section {
  background: linear-gradient(180deg, #0c0c10 0%, var(--darker) 100%);
}

.qr-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.qr-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.qr-card:hover {
  transform: translateY(-5px);
  border-color: rgba(67, 56, 202, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.qr-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 0.75rem;
  margin: 0 auto 0.75rem;
  background: white;
  padding: 0.4rem;
}

.qr-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.qr-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .banner-content {
    padding-top: 100px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .magazine-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .article-card.featured,
  .article-card.side,
  .article-card.wide,
  .article-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .article-card-image {
    min-height: 200px;
    max-height: 240px;
  }

  .qr-wall {
    grid-template-columns: 1fr 1fr;
  }

  .qr-card img {
    width: 90px;
    height: 90px;
  }
}

/* Position-specific image sizing */

header img { height: clamp(2rem, 10vw, 3rem); width: auto; }
.hero-logo { width: min(340px, 75vw); height: auto; }
.feature-card img { width: 100%; height: 220px; object-fit: cover; }
.showcase-image img { width: 100%; height: auto; border-radius: .75rem; }
.contact-card img { width: 100%; max-width: 160px; height: auto; margin: 0 auto; }
footer img { height: 2rem; width: auto; }

/* Friendly links block */

.friendly-links.zyzr { padding: 2.5rem 1rem; background: #09090b; border-top: 1px solid rgba(67,56,202,.35); }
.friendly-links.zyzr .friendly-links-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.zyzr h2 { font-family: 'Ma Shan Zheng', cursive; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .25rem; }
.friendly-links.zyzr h2 i { color: #FBBF24; margin-right: .5rem; }
.friendly-links.zyzr p { color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.friendly-links.zyzr ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.zyzr li a { display: block; padding: .55rem .75rem; border-radius: .5rem; background: rgba(67,56,202,.12); border: 1px solid rgba(67,56,202,.35); color: #E2E8F0; font-size: .9rem; transition: .2s; }
.friendly-links.zyzr li a:hover { background: rgba(251,191,36,.15); border-color: #FBBF24; color: #FBBF24; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.zyzr ul { grid-template-columns: repeat(2, 1fr); } }

