@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Zcool+QingKe+HuangYou&display=swap');

:root {
  --primary: #2563EB;
  --secondary: #FBBF24;
  --accent: #0EA5E9;
  --bg-dark: #0a0f1c;
  --bg-light: rgba(37, 99, 235, 0.08);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.65);
  --card-border: rgba(37, 99, 235, 0.25);
  --glow-primary: rgba(37, 99, 235, 0.6);
  --glow-secondary: rgba(251, 191, 36, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Serif SC', serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { font-family: 'Zcool QingKe HuangYou', 'Noto Serif SC', serif; font-weight: 400; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease; padding: 0.75rem 0; }
.navbar.scrolled { background: rgba(10, 15, 28, 0.92); backdrop-filter: blur(12px); box-shadow: 0 4px 30px rgba(37, 99, 235, 0.2); border-bottom: 1px solid rgba(37, 99, 235, 0.15); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--secondary); box-shadow: 0 0 15px var(--glow-secondary); }
.nav-brand span { font-family: 'Zcool QingKe HuangYou', serif; font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--text-main); letter-spacing: 2px; text-shadow: 0 0 10px var(--glow-primary); }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.3s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 600; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 0 20px var(--glow-primary); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--glow-primary); }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 0.5rem; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text-main); transition: all 0.3s ease; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: rgba(10, 15, 28, 0.98); backdrop-filter: blur(16px); z-index: 999; padding: 6rem 2rem 2rem; transition: right 0.4s ease; border-left: 1px solid rgba(37, 99, 235, 0.3); box-shadow: -10px 0 40px rgba(37, 99, 235, 0.2); }
.mobile-drawer.open { right: 0; }
.mobile-drawer a { display: block; padding: 1rem 0; font-size: 1.1rem; color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: color 0.3s ease, padding-left 0.3s ease; }
.mobile-drawer a:hover { color: var(--secondary); padding-left: 0.75rem; }
.mobile-drawer .mobile-cta { margin-top: 1.5rem; display: inline-block; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 0.75rem 1.5rem; border-radius: 9999px; width: 100%; text-align: center; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.overlay.active { opacity: 1; pointer-events: auto; }

.page-hero { min-height: 45vh; display: flex; align-items: center; justify-content: center; padding-top: 80px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.18) 0%, transparent 55%); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 28, 0.6) 100%); pointer-events: none; }
.page-hero-content { text-align: center; position: relative; z-index: 1; }
.page-hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 4px; margin-bottom: 0.75rem; background: linear-gradient(135deg, var(--text-main), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-content p { color: var(--text-muted); font-size: 1.05rem; }

.articles-section { padding: 4rem 0; }
.magazine-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.article-card { position: relative; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.article-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2); }
.article-card.featured { grid-column: 1 / -1; }
.article-card.featured .article-image { height: 240px; }
.article-image { width: 100%; height: 200px; overflow: hidden; position: relative; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-image img { transform: scale(1.08); }
.article-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 28, 0.9) 100%); }
.article-body { padding: 1.5rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.article-category { background: rgba(37, 99, 235, 0.2); color: var(--accent); padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.article-date { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; }
.article-body h3 { font-size: 1.25rem; color: var(--text-main); margin-bottom: 0.75rem; line-height: 1.4; }
.article-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--secondary); font-weight: 600; font-size: 0.9rem; transition: gap 0.3s ease; }
.read-more:hover { gap: 0.75rem; }
.read-more i { font-size: 0.8rem; }

.btn-glow { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 0.875rem 1.75rem; border-radius: 9999px; font-size: 0.95rem; font-weight: 700; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 0 25px var(--glow-primary); border: none; cursor: pointer; }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 0 40px var(--glow-primary); }

.load-more { text-align: center; margin-top: 3rem; }

.section-friends { padding: 3rem 0; background: rgba(37, 99, 235, 0.03); border-top: 1px solid rgba(37, 99, 235, 0.1); }
.friends-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(37, 99, 235, 0.2); border-radius: 16px; padding: 1.75rem; }
.friends-title { font-family: 'Zcool QingKe HuangYou', serif; font-size: 1.35rem; color: var(--secondary); margin-bottom: 1.25rem; text-align: center; letter-spacing: 2px; }
.friends-title::before, .friends-title::after { content: '◆'; color: var(--primary); margin: 0 0.75rem; font-size: 0.6rem; }
.friends-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.friends-list a { color: var(--text-muted); font-size: 0.9rem; padding: 0.5rem 0.9rem; border: 1px solid rgba(37, 99, 235, 0.2); border-radius: 999px; background: rgba(37, 99, 235, 0.08); transition: all 0.3s ease; word-break: break-all; }
.friends-list a:hover { color: var(--secondary); border-color: var(--secondary); background: rgba(251, 191, 36, 0.1); transform: translateY(-2px); }
.footer { position: relative; padding: 4rem 0 2rem; overflow: hidden; border-top: 1px solid rgba(37, 99, 235, 0.15); }
.footer-lightbeams { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; height: 100%; pointer-events: none; background: radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.15) 0%, transparent 50%); }
.footer-content { position: relative; z-index: 1; text-align: center; }
.footer-logo { font-family: 'Zcool QingKe HuangYou', serif; font-size: 2rem; color: var(--secondary); margin-bottom: 1rem; letter-spacing: 3px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--secondary); }
.footer-copy { color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; line-height: 1.8; }
.footer-qr { display: flex; justify-content: center; gap: 1.5rem; margin: 1.5rem 0; flex-wrap: wrap; }
.footer-qr .qr-item { text-align: center; }
.footer-qr img { width: 90px; height: 90px; border-radius: 10px; border: 2px solid rgba(251, 191, 36, 0.3); object-fit: contain; background: white; margin-bottom: 0.5rem; }
.footer-qr p { font-size: 0.8rem; color: var(--text-muted); }
.footer-ai { margin-bottom: 1rem; }
.footer-ai a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-ai a:hover { color: var(--secondary); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .magazine-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.featured { grid-column: 1 / -1; }
  .article-card.featured .article-image { height: 320px; }
  .article-card:nth-child(3) { transform: translateY(40px); }
  .article-card:nth-child(4) { transform: translateY(-20px); }
  .article-card:nth-child(5) { transform: translateY(30px); }
}
@media (min-width: 1024px) {
  .magazine-grid { grid-template-columns: repeat(3, 1fr); }
  .article-card.featured { grid-column: span 2; }
  .article-card.featured .article-image { height: 360px; }
}
