@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; }

.article-header { min-height: 55vh; display: flex; align-items: flex-end; padding-top: 100px; padding-bottom: 3rem; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.25) 0%, transparent 60%); }
.article-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 28, 0.95) 100%); pointer-events: none; }
.article-header-bg { position: absolute; inset: 0; z-index: -1; }
.article-header-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.article-header-content { position: relative; z-index: 1; max-width: 800px; }
.article-header-content .category { display: inline-block; background: rgba(37, 99, 235, 0.2); color: var(--accent); padding: 0.35rem 1rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.article-header-content h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--text-main); margin-bottom: 1rem; line-height: 1.3; }
.article-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.article-meta-bar i { color: var(--secondary); margin-right: 0.4rem; }

.article-main { padding: 4rem 0; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.article-body { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 2rem; }
.article-body p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.95; margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.5rem; color: var(--text-main); margin: 2.5rem 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(37, 99, 235, 0.2); }
.article-body h3 { font-size: 1.25rem; color: var(--accent); margin: 2rem 0 0.75rem; }
.article-body ul { list-style: none; margin: 1.25rem 0; }
.article-body li { color: var(--text-muted); padding: 0.5rem 0 0.5rem 1.5rem; position: relative; line-height: 1.8; }
.article-body li::before { content: '✦'; position: absolute; left: 0; color: var(--secondary); }
.article-body strong { color: var(--secondary); }
.article-body img { max-width: 100%; height: auto; display: block; border-radius: 12px; margin: 1.5rem 0; border: 1px solid var(--card-border); }

.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--bg-light); border: 1px solid var(--card-border); border-radius: 16px; padding: 1.5rem; }
.sidebar-card h3 { font-size: 1.15rem; color: var(--secondary); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(37, 99, 235, 0.2); }
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.3s ease; }
.sidebar-card a:hover { color: var(--secondary); }
.sidebar-card .download-cta { text-align: center; }
.sidebar-card .download-cta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.article-nav { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(37, 99, 235, 0.15); }
.article-nav a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; transition: all 0.3s ease; }
.article-nav a:hover { background: var(--bg-light); border-color: var(--card-border); transform: translateY(-3px); }
.article-nav a.next { text-align: right; }
.article-nav span { font-size: 0.8rem; color: var(--accent); }
.article-nav strong { color: var(--text-main); font-size: 1rem; }

.related-section { padding: 4rem 0; background: rgba(37, 99, 235, 0.03); }
.related-section h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text-main); margin-bottom: 2.5rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.related-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 1.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15); }
.related-card .date { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; margin-bottom: 0.5rem; }
.related-card h4 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 0.5rem; }
.related-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.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); }
.btn-seal { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--secondary); padding: 0.875rem 1.75rem; border-radius: 8px; font-size: 0.95rem; font-weight: 700; border: 2px solid var(--secondary); transition: all 0.3s ease; cursor: pointer; }
.btn-seal:hover { background: rgba(251, 191, 36, 0.1); color: var(--text-main); box-shadow: 0 0 20px var(--glow-secondary); }

.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; }
  .article-layout { grid-template-columns: 1fr 320px; }
  .article-nav { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .article-body { padding: 3rem; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
