:root {
  --primary: #F472B6;
  --secondary: #8B5CF6;
  --accent: #FBBF24;
  --bg-dark: #1a0b2e;
  --bg-light: rgba(255, 255, 255, 0.08);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --card-glass: rgba(255, 255, 255, 0.1);
  --neon-pink: 0 0 20px rgba(244, 114, 182, 0.55), 0 0 40px rgba(244, 114, 182, 0.25);
  --neon-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  background: var(--bg-dark); color: var(--text-main); line-height: 1.7; overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 800; line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

#main-header { transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease; }
.header-scrolled { background: rgba(26, 11, 46, 0.92) !important; backdrop-filter: blur(16px); box-shadow: 0 4px 30px rgba(0,0,0,0.25); }
.nav-link { position: relative; padding: 0.25rem 0; font-weight: 600; color: rgba(255,255,255,0.85); transition: color 0.25s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.3s ease; }
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent); }

.btn-neon {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 2rem; border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 800;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem); box-shadow: var(--neon-pink), 0 6px 0 #9d174d;
  transition: transform 0.2s ease, box-shadow 0.2s ease; border: 2px solid rgba(255,255,255,0.25);
}
.btn-neon:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 30px rgba(244,114,182,0.75), 0 0 60px rgba(139,92,246,0.4), 0 8px 0 #9d174d; }
.btn-liquid {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 2rem; border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent), #f59e0b, var(--primary), var(--accent)); background-size: 300% 100%;
  color: #1a0b2e; font-weight: 900; font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  box-shadow: 0 6px 0 #b45309, 0 12px 24px rgba(251,191,36,0.25); animation: liquidMove 3.5s linear infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease; border: 2px solid rgba(255,255,255,0.35);
}
.btn-liquid:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 0 #b45309, 0 18px 36px rgba(251,191,36,0.45); }
@keyframes liquidMove { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.page-banner {
  position: relative; padding: 10rem 0 5rem;
  background: radial-gradient(ellipse at 30% 20%, rgba(244,114,182,0.2) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.18) 0%, transparent 50%),
              linear-gradient(135deg, #2e1065 0%, #1a0b2e 100%);
  overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.banner-content { position: relative; z-index: 2; text-align: center; }
.page-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 0.75rem; background: linear-gradient(135deg, #fff 0%, #fbcfe8 55%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-subtitle { font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--text-muted); }

.section-label { display: inline-flex; align-items: center; gap: 0.6rem; font-size: clamp(1.4rem, 2.2vw, 2.2rem); font-weight: 900; color: #fff; margin-bottom: 0.75rem; }
.section-label::before { content: ''; width: 6px; height: 1.2em; border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--accent)); box-shadow: 0 0 12px rgba(244,114,182,0.6); }
.handwritten { font-family: "Comic Sans MS", "PingFang SC", "Microsoft YaHei", cursive; color: var(--accent); font-size: clamp(1rem, 1.4vw, 1.35rem); font-weight: 700; }

.articles-section { padding: 4rem 0; }
@media (min-width: 768px) { .articles-section { padding: 6rem 0; } }

.magazine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .magazine-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
}

.article-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--card-glass);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.article-card:hover { transform: translateY(-8px); box-shadow: var(--neon-purple); }

@media (min-width: 768px) {
  .article-card.large { grid-column: span 7; grid-row: span 2; }
  .article-card.medium { grid-column: span 5; grid-row: span 1; }
  .article-card.tall { grid-column: span 5; grid-row: span 2; }
  .article-card.small { grid-column: span 4; grid-row: span 1; }
  .article-card.wide { grid-column: span 8; grid-row: span 1; }
}

.article-card.large .article-thumb { aspect-ratio: 16 / 10; }
.article-card.medium .article-thumb { aspect-ratio: 16 / 9; }
.article-card.tall .article-thumb { aspect-ratio: 4 / 3; }
.article-card.small .article-thumb { aspect-ratio: 16 / 9; }
.article-card.wide .article-thumb { aspect-ratio: 21 / 9; }

.article-thumb {
  position: relative;
  overflow: hidden;
}
.article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.06); }
.article-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26,11,46,0.9) 100%);
}

.article-content {
  padding: 1.25rem 1.5rem 1.5rem;
}
.article-card.large .article-content,
.article-card.tall .article-content { padding: 1.5rem; }

.article-tag {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: rgba(244,114,182,0.2); border: 1px solid rgba(244,114,182,0.35);
  color: #fbcfe8; font-size: 0.75rem; font-weight: 800; margin-bottom: 0.6rem;
}
.article-title {
  font-size: 1.15rem; margin-bottom: 0.6rem; color: #fff;
  transition: color 0.2s ease;
}
.article-card:hover .article-title { color: var(--accent); }
.article-card.large .article-title { font-size: 1.5rem; }
.article-excerpt {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card.large .article-excerpt { -webkit-line-clamp: 3; }
.article-meta {
  display: flex; align-items: center; gap: 1rem; margin-top: 1rem;
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
}
.article-meta i { margin-right: 0.3rem; }

.contact-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #1a0b2e 0%, rgba(244, 114, 182, 0.08) 100%);
}
@media (min-width: 768px) { .contact-section { padding: 7rem 0; } }

.qr-card {
  position: relative;
  padding: 1.75rem 1.25rem;
  border-radius: 2rem;
  background: var(--card-glass);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.qr-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--neon-purple);
}
.qr-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.15);
  filter: blur(30px);
}
.qr-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.qr-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0.75rem auto;
  border-radius: 1rem;
  background: #fff;
  padding: 0.5rem;
}
.qr-card p { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

.page-footer { position: relative; background: #140821; padding-top: 6rem; padding-bottom: 2.5rem; }
.wave-divider { position: absolute; top: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 80px; }
.wave-divider path { fill: var(--bg-dark); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { font-size: 1.35rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-weight: 600; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: rgba(255,255,255,0.45); font-size: 0.85rem; max-width: 720px; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.revealed { opacity: 1; transform: translateY(0); }

.mobile-nav { background: rgba(26, 11, 46, 0.98); backdrop-filter: blur(18px); border-left: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { display: flex; align-items: center; padding: 0.9rem 1rem; border-radius: 1rem; color: rgba(255,255,255,0.9); font-weight: 700; transition: background 0.2s ease, color 0.2s ease; }
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(244,114,182,0.15); color: var(--accent); }
.mobile-nav i { width: 28px; text-align: center; margin-right: 0.75rem; color: var(--primary); }
