/* ===== MEGAMU 资料库公共样式 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #f0c040;
  --gold2:   #ffd97d;
  --gold-dim:#a07820;
  --bg-dark: #060912;
  --bg-card: #0d1325;
  --bg-card2:#111a30;
  --accent:  #3a6fd8;
  --text:    #cdd5e8;
  --text-dim:#7a8aaa;
  --border:  rgba(240,192,64,0.18);
}

html { scroll-behavior: smooth; }

/* ===== 顶部导航 ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: linear-gradient(180deg, rgba(4,8,16,.98) 0%, rgba(4,8,16,.85) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; filter: drop-shadow(0 0 8px rgba(240,192,64,.5)); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: .9rem; letter-spacing: .05em; transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-countdown-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: linear-gradient(135deg, rgba(247,151,30,.15), rgba(255,210,0,.1));
  border: 1px solid rgba(255,210,0,.35);
  color: var(--gold); padding: .5rem 1rem;
  border-radius: 22px; font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: all .25s;
}
.nav-countdown-btn:hover {
  background: linear-gradient(135deg, rgba(247,151,30,.28), rgba(255,210,0,.2));
  border-color: rgba(255,210,0,.7);
  box-shadow: 0 0 14px rgba(255,210,0,.3);
  color: #ffe44d;
}

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-author { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-dim); }
.nav-author-name { font-weight: 700; color: var(--gold2); }
.nav-author-divider { width: 1px; height: 16px; background: var(--border); }
.nav-qq { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--text); font-size: .82rem; font-weight: 600; transition: color .2s; }
.nav-qq:hover { color: var(--gold); }
.nav-qq-badge { background: linear-gradient(135deg, #1677ff, #0ea5e9); color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .45rem; border-radius: 10px; }

/* ===== 页脚 ===== */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  text-align: center; padding: 2.5rem 1.5rem;
  color: var(--text-dim); font-size: .8rem;
}
footer .footer-logo { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 900; color: var(--gold); margin-bottom: .5rem; letter-spacing: .1em; }
.footer-author {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(10,16,34,.8); border: 1px solid var(--border);
  border-radius: 20px; padding: .35rem 1rem; margin: .75rem 0; font-size: .82rem; color: var(--text-dim);
}
.footer-author strong { color: var(--gold2); }
.footer-qq-block { margin: .6rem 0 .5rem; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .85rem; }
.footer-qq-num {
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(135deg, rgba(22,119,255,.2), rgba(14,165,233,.2));
  border: 1px solid rgba(22,119,255,.4); border-radius: 20px;
  padding: .25rem .85rem; color: #7ab0ff; font-weight: 700; letter-spacing: .05em; text-decoration: none;
}
footer a { color: var(--gold-dim); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ===== 回到顶部按钮 ===== */
#back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2.2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13,19,37,.95), rgba(26,42,94,.9));
  border: 1px solid rgba(240,192,64,.4);
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(240,192,64,.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, box-shadow .2s, border-color .2s;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  border-color: rgba(240,192,64,.8);
  box-shadow: 0 6px 24px rgba(240,192,64,.4);
  color: var(--gold2);
}
body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-dark); color: var(--text); min-height: 100vh; overflow-x: hidden; }

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .4; }

/* 六芒星纹理层 */
.hero-rune {
  position: absolute; inset: 0; z-index: -2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.rune-star {
  width: min(700px, 90vw); height: min(700px, 90vw);
  opacity: .045;
  animation: runeRotate 60s linear infinite;
}
@keyframes runeRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 光柱层 */
.hero-beams {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 3px 55% at 25% 0%, rgba(240,192,64,.09) 0%, transparent 100%),
    radial-gradient(ellipse 3px 70% at 50% 0%, rgba(240,192,64,.07) 0%, transparent 100%),
    radial-gradient(ellipse 3px 45% at 75% 0%, rgba(90,140,240,.07) 0%, transparent 100%);
  animation: beamPulse 8s ease-in-out infinite;
}
@keyframes beamPulse {
  0%,100% { opacity: .7; }
  50%      { opacity: 1.3; }
}

/* 底部光晕 */
.hero-glow-bottom {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 160px; z-index: -1;
  background: radial-gradient(ellipse 100% 100%, rgba(240,192,64,.12) 0%, transparent 70%);
  pointer-events: none;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  background: rgba(6,9,18,.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(240,192,64,.5));
  transition: filter .2s;
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 14px rgba(240,192,64,.85));
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.active::after {
  transform: scaleX(1);
}

/* 导航栏右侧：活动倒计时入口 */
.nav-countdown-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: linear-gradient(135deg, rgba(247,151,30,.15), rgba(255,210,0,.1));
  border: 1px solid rgba(255,210,0,.35);
  color: #ffd200;
  padding: .32rem 1rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
  letter-spacing: .03em;
  flex-shrink: 0;
}
.nav-countdown-btn:hover {
  background: linear-gradient(135deg, rgba(247,151,30,.28), rgba(255,210,0,.2));
  border-color: rgba(255,210,0,.7);
  box-shadow: 0 0 12px rgba(255,210,0,.25);
  color: #ffe44d;
}

.page-main { position: relative; z-index: 1; padding-top: 64px; }

.page-header {
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(58,111,216,.1), transparent);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header-inner { max-width: 800px; margin: 0 auto; }

.section-tag {
  display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dim); border: 1px solid var(--border);
  padding: .22rem .7rem; border-radius: 20px; margin-bottom: .75rem;
}

.page-title {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900; color: var(--gold); margin-bottom: .5rem;
}

.page-desc { color: var(--text-dim); font-size: 1rem; }

.content-area { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }

/* 待开发占位 */
.coming-soon {
  text-align: center; padding: 6rem 2rem;
  border: 1px dashed var(--border); border-radius: 12px;
}
.cs-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.coming-soon h2 { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.5rem; margin-bottom: .75rem; }
.coming-soon p { color: var(--text-dim); margin-bottom: 2rem; }

.btn-back {
  display: inline-block; padding: .6rem 1.5rem;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-dim); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.btn-back:hover { color: var(--gold); border-color: var(--gold); }

/* 内容卡片 */
.content-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem; margin-bottom: 1.25rem;
}

.content-card h2 {
  font-family: 'Cinzel', serif; font-size: 1.15rem; color: var(--gold2);
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.content-card p, .content-card li {
  font-size: .9rem; color: var(--text); line-height: 1.8;
}

.content-card ul, .content-card ol {
  padding-left: 1.5rem; margin-top: .5rem;
}

.content-card li { margin-bottom: .35rem; }

.highlight { color: var(--gold2); font-weight: 600; }

@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
}
