/* ============================================
   南京灵漫阁 - 专业商务深色风格
   ============================================ */

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --dark-bg: #0f172a;
  --darker-bg: #080f1e;
  --card-bg: rgba(30, 41, 59, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(148, 163, 184, 0.15);
  --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 动态背景网格 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* 发光球体背景 */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 50px) scale(1.1); }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   导航栏 - 霓虹风格
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  display: block;
}

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

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

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  width: 100%;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-full {
  width: 100%;
  margin-top: 12px;
}
.btn-icon-md svg {
  width: 28px;
  height: 28px;
}
.footer-logo {
  height: 44px;
  display: block;
}
.qr-title-sm {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.qr-pay-hint {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 8px;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* 用户头像 */
.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#loggedOut {
  display: flex;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 28px;
  cursor: pointer;
}

/* ============================================
   Hero区域 - 震撼视觉效果
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  filter: blur(60px);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--primary);
  border-radius: 30px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 30px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

.hero-title {
  
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 60px;
}

.stat-item {
  position: relative;
}

.stat-number {
  
  font-size: 42px;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Hero视觉区域 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.manga-showcase {
  position: relative;
  width: 400px;
  height: 550px;
}

.manga-cover-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-main);
  filter: blur(40px);
  opacity: 0.5;
  border-radius: 30px;
}

.manga-cover-main {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(139, 92, 246, 0.3);
}

.manga-cover-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 装饰元素 */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.3;
}

.deco-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation: rotate 20s linear infinite;
}

.deco-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  border-color: var(--secondary);
  animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   内容区域
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--secondary);
  border-radius: 30px;
  font-size: 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-title {
  
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-title span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   漫画详情页 - manga.html
   ============================================ */
.manga-detail-card {
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 48px;
}
.manga-page {
  padding-top: 180px;
}
.manga-detail-card:first-of-type {
  margin-top: 0;
}
.manga-detail-inner {
  display: flex;
  gap: 40px;
  padding: 40px;
}
.manga-detail-cover {
  flex-shrink: 0;
  width: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.manga-detail-cover img {
  width: 100%;
  display: block;
}
.manga-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(59,130,246,0.12);
  border-radius: 20px;
  margin-bottom: 16px;
}
.manga-detail-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.manga-detail-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.manga-stats {
  display: flex;
  gap: 32px;
}
.manga-stat-item {
  text-align: center;
}
.manga-stat-number {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.manga-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chapters-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 0 4px;
}
.chapter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 80px;
}
.chapter-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.25s;
  text-decoration: none;
}
.chapter-item:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-2px);
}
.chapter-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59,130,246,0.1);
  border-radius: 10px;
  flex-shrink: 0;
}
.chapter-item-info {
  flex: 1;
  min-width: 0;
}
.chapter-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.chapter-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   漫画卡片网格
   ============================================ */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.manga-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s;
}

.manga-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
}

.manga-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-color);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(139, 92, 246, 0.2);
}

.manga-card:hover::before {
  opacity: 1;
}

.manga-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.manga-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.manga-card:hover .manga-cover img {
  transform: scale(1.1);
}

.manga-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--gradient-main);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.manga-info {
  padding: 24px;
}

.manga-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.manga-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   特色功能区
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  position: relative;
  padding: 40px 30px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.4s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card:hover {
  border-color: var(--border-color);
  transform: translateY(-5px);
}

.feature-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--gradient-main);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
  z-index: 1;
}

.feature-title {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  z-index: 1;
}

.feature-desc {
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  z-index: 1;
}

/* ============================================
   登录/注册页面
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
  filter: blur(60px);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px 40px;
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-main);
  border-radius: 26px;
  z-index: -1;
  opacity: 0.3;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--gradient-main);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.auth-title {
  
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-error {
  color: var(--accent);
  font-size: 13px;
  margin-top: 8px;
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   充值中心
   ============================================ */
.recharge-login-prompt {
  text-align: center;
  padding: 80px 40px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.recharge-login-prompt h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 0 12px;
}
.recharge-login-prompt p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.balance-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(59,130,246,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recharge-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.qr-timer {
  text-align: center;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}
.qr-status {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.qr-success {
  text-align: center;
  padding: 40px;
}
.qr-success .icon {
  width: 64px;
  height: 64px;
  color: #22c55e;
  margin-bottom: 16px;
}
.qr-success p {
  font-size: 18px;
  font-weight: 600;
}
.recharge-order-id {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  word-break: break-all;
}
.recharge-page .section {
  padding-top: 0;
}
.footer-help {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 40px;
  background: rgba(255,255,255,0.02);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}
.footer-help-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-help-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 4px;
}
.footer-help-links a {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  transition: all 0.2s;
}
.footer-help-links a:hover {
  color: var(--primary);
  background: rgba(59,130,246,0.08);
}

/* ============================================
   充值中心
   ============================================ */
.recharge-page {
  min-height: 100vh;
  background: var(--dark-bg);
}

.recharge-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent);
}

.recharge-title {
  
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.recharge-desc {
  color: var(--text-muted);
  font-size: 18px;
}

.recharge-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.balance-card {
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.balance-value {
  
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recharge-item {
  position: relative;
  padding: 40px 30px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.recharge-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.recharge-item.popular {
  border-color: var(--secondary);
}

.recharge-item.popular::before {
  content: 'HOT';
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 6px 16px;
  background: var(--gradient-main);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.recharge-amount {
  
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.recharge-unit {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.recharge-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.recharge-bonus {
  font-size: 13px;
  color: var(--accent);
}

/* ============================================
   漫画阅读器
   ============================================ */
.reader-header {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.reader-title {
  font-size: 18px;
  font-weight: 600;
}

.chapter-select {
  padding: 12px 24px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
}
.chapter-select option {
  background: #1e293b;
  color: var(--text-primary);
}

.reader-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.reader-page {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.reader-page img {
  width: 100%;
  display: block;
}

.paywall {
  text-align: center;
  padding: 80px 40px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  margin-top: 60px;
}

.paywall-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.paywall-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(59,130,246,0.2);
}

.paywall-title {
  
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.paywall-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.qr-modal img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 2px solid var(--border-color);
}

/* ============================================
   静态页面
   ============================================ */
.static-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent);
}

.static-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.static-header {
  padding: 100px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent);
}

.static-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 120px;
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}

.static-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 48px 0 24px;
  color: var(--primary);
}

.static-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.static-content ul {
  margin: 0 0 20px 24px;
  padding: 0;
}

.static-content ul li {
  margin-bottom: 10px;
  list-style: none;
  position: relative;
  padding-left: 16px;
}

.static-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

.static-content strong {
  color: var(--text-primary);
}

/* 子导航栏 - 用于展示协议链接 */
.sub-nav {
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sub-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.sub-nav a {
  color: var(--text-muted);
  font-size: 13px;
  padding: 0 18px;
  height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  position: relative;
}

.sub-nav a:first-child {
  padding-left: 0;
}

.sub-nav a::after {
  content: '|';
  position: absolute;
  right: -2px;
  color: rgba(255,255,255,0.06);
  font-size: 12px;
}

.sub-nav a:last-child::after {
  display: none;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.static-content p {
  margin-bottom: 20px;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-title {
  
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-beian a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.3s;
}

.footer-beian a:hover {
  color: var(--primary);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .user-actions {
    display: none;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .recharge-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .manga-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-card {
    padding: 40px 24px;
  }
}

/* ============================================
   Reader utility classes
   ============================================ */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.icon-lg {
  width: 48px;
  height: 48px;
}

.icon-xl {
  width: 64px;
  height: 64px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
}

.reader-chapter-cover {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
}

.reader-chapter-cover img {
  width: 100%;
  display: block;
}

.paywall-section {
  text-align: center;
  padding: 60px 24px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  margin-top: 40px;
}

.paywall-section .paywall-icon {
  margin-bottom: 16px;
}

.paywall-section .balance-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 15px;
}

.paywall-section .balance-display .balance-amount {
  font-weight: 700;
  color: var(--primary);
}

.qr-pay-btn {
  margin-top: 20px;
}

.qr-status-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.hidden { display: none !important; }
.qr-modal-full { max-width: 420px; }
.qr-pay-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}
.qr-amount {
  color: var(--primary-light);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.qr-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.qr-canvas-wrap canvas {
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.paywall-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.paywall-actions .btn {
  min-width: 200px;
}

@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
