/* ==========================================================================
   AURORA MANGA (极光漫界) - 极简明绿蓝色视觉冲击力样式表
   HTML + CSS + jQuery 传统多页面架构
   ========================================================================== */

:root {
  --bg-main: #070c12;
  --bg-surface: #0e1620;
  --bg-card: #131f2c;
  --bg-card-hover: #182838;
  --bg-elevated: #1a2c3d;
  
  /* 极简明绿蓝核心主色调 (Electric Mint & Aqua Cyan) */
  --neon-mint: #00f29d;
  --neon-cyan: #00d2ff;
  --neon-teal: #05d5b2;
  --neon-glow: 0 0 20px rgba(0, 242, 157, 0.35);
  --cyan-glow: 0 0 20px rgba(0, 210, 255, 0.35);
  
  --text-main: #f3f8fc;
  --text-sub: #94a9be;
  --text-muted: #5e7388;
  --text-dark: #070c12;
  
  --border-subtle: rgba(0, 242, 157, 0.12);
  --border-active: rgba(0, 242, 157, 0.5);
  --border-cyan: rgba(0, 210, 255, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 15% 10%, rgba(0, 242, 157, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 85% 60%, rgba(0, 210, 255, 0.05) 0%, transparent 45%),
              var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e3347;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-teal);
}

/* Layout Utilities */
.aurora-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.aurora-flex {
  display: flex;
}
.aurora-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.aurora-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Neon Gradient Text & Accents */
.neon-gradient-text {
  background: linear-gradient(135deg, var(--neon-mint) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.neon-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 242, 157, 0.1);
  color: var(--neon-mint);
  border: 1px solid rgba(0, 242, 157, 0.25);
  white-space: nowrap;
}
.neon-tag.cyan {
  background: rgba(0, 210, 255, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(0, 210, 255, 0.25);
}
.neon-tag.hot {
  background: rgba(255, 71, 87, 0.15);
  color: #ff5264;
  border-color: rgba(255, 71, 87, 0.35);
}

/* Common Buttons */
.btn-aurora {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-aurora-primary {
  background: linear-gradient(135deg, var(--neon-mint) 0%, var(--neon-cyan) 100%);
  color: #05131c;
  box-shadow: 0 4px 15px rgba(0, 242, 157, 0.25);
  position: relative;
  overflow: hidden;
}
.btn-aurora-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 157, 0.45);
}
.btn-aurora-primary:active {
  transform: translateY(0);
}

.btn-aurora-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-aurora-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-mint);
  color: var(--neon-mint);
  transform: translateY(-2px);
}

.btn-aurora-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--border-cyan);
}
.btn-aurora-outline:hover {
  background: rgba(0, 210, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

/* ==========================================================================
   GLOBAL HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 12, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}
.site-header.scrolled {
  background: rgba(7, 12, 18, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(0, 242, 157, 0.2);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-mint), var(--neon-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05131c;
  box-shadow: 0 0 16px rgba(0, 242, 157, 0.4);
}
.brand-title {
  color: #ffffff;
}
.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 242, 157, 0.15);
  color: var(--neon-mint);
  margin-left: 4px;
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: all var(--transition-fast);
}
.nav-link:hover {
  color: var(--neon-mint);
  background: rgba(0, 242, 157, 0.06);
}
.nav-link.active {
  color: #ffffff;
  font-weight: 700;
  background: rgba(0, 242, 157, 0.12);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--neon-mint);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-mint);
}

/* Header Search */
.header-search {
  position: relative;
  width: 240px;
}
.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.85rem;
  transition: all var(--transition-normal);
}
.header-search input:focus {
  border-color: var(--neon-cyan);
  background: var(--bg-elevated);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
  width: 280px;
}
.header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Header Actions / User */
.header-user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-shelf-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  transition: all var(--transition-fast);
}
.header-shelf-btn:hover {
  color: var(--neon-mint);
  border-color: var(--neon-mint);
}
.header-shelf-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--neon-mint);
  color: #05131c;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.user-profile-menu:hover {
  border-color: var(--neon-cyan);
  background: var(--bg-card-hover);
}
.user-avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--neon-mint);
}
.user-name-mini {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   COMMON CARDS & MANGA GRID
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
}
.section-title-line {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--neon-mint), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-mint);
}
.section-more-link {
  font-size: 0.88rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.section-more-link:hover {
  color: var(--neon-cyan);
}

/* Manga Grid */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 22px;
}

/* Manga Card */
.manga-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
}
.manga-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-mint);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 157, 0.2);
}
.manga-card-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #09131d;
}
.manga-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.manga-card:hover .manga-card-cover img {
  transform: scale(1.06);
}
.manga-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 12, 18, 0.95) 0%, rgba(7, 12, 18, 0.3) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}
.manga-card-badge {
  align-self: flex-start;
}
.manga-card-score {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffcc00;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.manga-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.manga-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}
.manga-card:hover .manga-card-title {
  color: var(--neon-mint);
}
.manga-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.manga-card-chapter {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #05090e;
  border-top: 1px solid rgba(0, 242, 157, 0.1);
  padding: 45px 0 25px;
  color: var(--text-sub);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(260px, 1fr) minmax(240px, 0.9fr);
  gap: 40px;
  margin-bottom: 35px;
}
.footer-remark {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}
.footer-remark-line {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col-title::after {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--neon-mint);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links li,
.footer-links span,
.footer-links a {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.footer-links span {
  color: var(--text-sub);
}
.footer-legal-link {
  color: #d8f7ff;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--neon-mint);
  padding-left: 4px;
}
.footer-legal-link:hover {
  color: var(--neon-mint);
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
#aurora-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.aurora-toast {
  min-width: 280px;
  max-width: 380px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--neon-mint);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 157, 0.2);
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.aurora-toast.info {
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.2);
}
.aurora-toast.error {
  border-color: #ff4757;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 71, 87, 0.2);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  .site-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }
}
