/*
Theme Name: MOMENT 此刻AIGC
Theme URI: https://cikeaigc.com
Author: Moment
Description: AI知识付费教程平台 - 深色宇宙科幻风格WordPress主题
Version: 1.0
Text Domain: moment-aigc
*/

/* ========== CSS Variables ========== */
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #0d1333;
  --accent-blue: #00d4ff;
  --accent-gold: #ffd700;
  --accent-purple: #818cf8;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(10, 14, 39, 0.85);
  --card-bg: rgba(15, 20, 50, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-card: 16px;
  --radius-btn: 12px;
}

/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary) !important;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== Canvas Background ========== */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#galaxy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* ========== Main Content Area ========== */
.main-content {
  min-height: calc(100vh - 70px);
  position: relative;
  z-index: 1;
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    #e8f4ff 0%,
    #5cb8ff 15%,
    #00d4ff 25%,
    #a78bfa 40%,
    #c4b5fd 50%,
    #818cf8 60%,
    #38bdf8 75%,
    #00d4ff 85%,
    #e8f4ff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGradient 4s linear infinite;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
  text-decoration: none;
}

@keyframes logoGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current-menu-parent a {
  color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after,
.nav-menu .current-menu-parent a::after {
  width: 100%;
}

/* Sub-menu */
.nav-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 180px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.nav-menu li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu ul li {
  padding: 0;
}

.nav-menu ul a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
}

.nav-menu ul a::after {
  display: none;
}

.nav-menu ul a:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ========== Buttons ========== */
.btn {
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)), 
                    linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--text-primary);
}

.btn-outline:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  color: var(--bg-primary);
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

/* ========== Hero Section (Global) ========== */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue), #a855f7, var(--accent-blue));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 3s ease infinite;
  margin-bottom: 16px;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6)) drop-shadow(0 0 60px rgba(129, 140, 248, 0.3)) drop-shadow(0 0 100px rgba(0, 212, 255, 0.15));
}

.hero-title::before {
  content: 'MOMENT';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    #e8f4ff 0%,
    #b0d4ff 8%,
    #5cb8ff 16%,
    #00d4ff 24%,
    #7ee8ff 32%,
    #a78bfa 40%,
    #c4b5fd 48%,
    #818cf8 56%,
    #38bdf8 64%,
    #00d4ff 72%,
    #22d3ee 80%,
    #67e8f9 88%,
    #e8f4ff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGalaxyFlow 5s linear infinite;
  filter: blur(25px) brightness(1.5);
  opacity: 0.5;
  z-index: -1;
}

@keyframes heroGalaxyFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 28px;
  color: rgba(0, 212, 255, 0.8);
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.hero-slogan {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  letter-spacing: 2px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary {
  padding: 16px 40px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  border-radius: var(--radius-btn);
  color: var(--bg-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-primary:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
  transform: translateY(-3px);
}

.btn-hero-secondary {
  padding: 16px 40px;
  font-size: 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-secondary:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ========== Section Common ========== */
.section {
  padding: 100px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
}

/* ========== Cards ========== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ========== VIP Lock Component ========== */
.vip-lock {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  margin: 30px 0;
}

.vip-lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.vip-lock h3 {
  font-size: 22px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.vip-lock p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-vip {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--accent-gold), #ff9500);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--bg-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-vip:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

/* ========== Footer ========== */
.footer {
  background: rgba(13, 19, 51, 0.8);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 60px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Entrance Animation ========== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ========== Page Header ========== */
.page-header {
  padding: 140px 60px 60px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ========== Post/Page Content ========== */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-primary);
  margin: 30px 0 16px;
}

.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }

.entry-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.entry-content a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.entry-content a:hover {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.entry-content ul,
.entry-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.entry-content li {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent-blue);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-muted);
}

.entry-content code {
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.entry-content pre {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* ========== WordPress Core ========== */
.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ========== Pagination ========== */
.pagination,
.post-navigation,
.comments-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination a,
.pagination span,
.post-navigation a {
  padding: 10px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current,
.post-navigation a:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

/* ========== Comments ========== */
.comments-area {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.comments-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.comment-list {
  list-style: none;
}

.comment {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 20px;
}

.comment-author {
  font-weight: 600;
  color: var(--accent-blue);
}

.comment-metadata {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.comment-content {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .navbar {
    padding: 0 40px;
  }
  
  .nav-menu {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 0 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 52px;
  }
  
  .hero-title::before {
    font-size: 52px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu a {
    display: block;
    padding: 15px 0;
  }
  
  .nav-menu ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding-left: 20px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-title::before {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer {
    padding: 40px 20px 20px;
  }
  
  .page-header {
    padding: 120px 20px 40px;
  }
  
  .page-header h1 {
    font-size: 32px;
  }
}

/* ===== APP下载卡片隐藏 + 一行布局 ===== */
.header-slider-card .flex1:last-child { display: none !important; }
.header-slider-card .flex-col-sm-2 { flex-wrap: nowrap !important; }
.header-slider-card .flex1 { min-width: 0 !important; flex: 1 1 0% !important; }
.header-slider-card .icon-cover-desc { padding: 0 4px !important; }
.header-slider-card .em12 { font-size: 0.85em !important; }
.header-slider-card .muted-color { font-size: 0.75em !important; }
