    /* ============= 基础与主题 ============= */
    :root {
      --bg: #0f1115;
      --bg-soft: #141823;
      --card: #171b27;
      --text: #e6e8ef;
      --text-dim: #aab0c0;
      --brand: #7c5cff;
      --brand-2: #3ec6ff;
      --muted: #2a2f41;
      --border: #1e2332;
      --success: #32d583;
      --warn: #f5a524;
      --danger: #ef4d4d;
      --radius: 16px;
      --shadow: 0 8px 30px rgba(0,0,0,.35);
      --container: 1280px;
    }

    html,body{height:100%;}
    body {
      margin: 0; background: var(--bg); color: var(--text);
      font: 14px/1.6 system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, "Microsoft YaHei", Helvetica, Arial, sans-serif;
      -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    }
    *, *::before, *::after { box-sizing: border-box; }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
    .hide { display: none !important; }

    /* 顶部 */
    .header{position:sticky;top:0;z-index:50;background:rgba(15,17,21,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);margin:0px 16px;}
    .header-inner{display:flex;align-items:center;gap:12px;padding:12px 0;}

    /* LOGO */
    .brand{flex:0 0 auto; display:flex;align-items:center;gap:8px;margin:0px 20px;}
	.brand-name{font-size: 18px;}

/* 搜索框容器 */
.search {
  flex: 1 1 auto;
  position: relative;
  min-width: 200px;
}

/* 输入框 */
.search input {
  width: 100%;
  height: 36px;
  padding: 0 36px 0 12px; /* 右侧留出按钮空间 */
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
}

/* 搜索按钮 */
.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 按钮 hover 效果 */
.search-btn:hover {
  opacity: 1;
}

/* 图标大小控制 */
.search-btn .icon {
  width: 18px;
  height: 18px;
}


    /* 导航栏 */
    .nav-wrapper{flex:0 0 auto; display:flex;gap:12px;}
    .nav-wrapper a{padding:8px 12px;border-radius:12px;color:var(--text-dim);}
    .nav-wrapper a:hover,.nav-wrapper a.active{color:var(--text);background:var(--muted);}

    /* 汉堡按钮 */
    .hamburger{display: none;font-size:24px;cursor:pointer;}


    /* ============= Banner ============= */
    .hero { margin-top: 8px; border-radius: var(--radius); background: radial-gradient(1200px 400px at 20% -10%, rgba(124,92,255,.25), transparent),
        linear-gradient(180deg, #121725, #0f1115); border: 1px solid var(--border); box-shadow: var(--shadow); }
    .hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 24px; }
    .hero h1 { margin: 0 0 10px; font-size: 26px; }
    .hero p { margin: 0; color: var(--text-dim); }
    .hero .cta { margin-top: 16px; display: flex; gap: 10px; }
    .hero .cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }

    /* ============= 标签筛选 ============= */
    .tabs { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
    .tab { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-dim); }
    .tab.active, .tab:hover { color: var(--text); background: var(--muted); }

    /* ============= 卡片网格 ============= */
    .section { margin-top: 20px; }
    .section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
    .section-title { font-size: 18px; font-weight: 700; }
    .grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

    .card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s ease; }
    .card:hover { transform: translateY(-2px); }
    .thumb { aspect-ratio: 3/4; background: #0b0d12; display: grid; place-items: center; }
    .thumb img { width: 100%; height: 100%; object-fit: cover; }
    .badge { position: absolute; left: 8px; top: 8px; font-size: 12px; background: rgba(124,92,255,.15); border: 1px solid var(--border);
      color: #cbb6ff; padding: 4px 8px; border-radius: 999px; }
    .meta { padding: 10px; display: grid; gap: 6px; }
    .title {font-weight: 600; font-size: 14px; line-height: 1.4; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; word-break: keep-all; max-width: 100%;}
    .subtitle { color: var(--text-dim); font-size: 12px; }

    /* ============= 列表页（分类/标签） ============= */
    .filters { display: flex; gap: 8px; flex-wrap: wrap; }
    .filter { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-dim); }
    .filter.active { color: var(--text); background: var(--muted); }
    .navlist{max-width:1280px; font-size:14px; padding:15px 15px 5px 15px; margin:0 auto; color: #777777;}
    .navlist a{font-size:14px; color: #777777;}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 20px 0 40px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  background: #fff;
  white-space: nowrap;
}

.pagination b{
  display: inline-block;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  background: #fff;
  white-space: nowrap;
  background: #ff4757;
  color: #fff;
  border-color: #ff4757;
}

.pagination span.ellipsis {
  border: none;
  background: transparent;
  cursor: default;
}
.prev ,.next{padding: 0 5px;}

    /* ============= 漫画详情页 ============= */
    .detail { display: grid; gap: 16px; grid-template-columns: 160px 1fr; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
    .detail .cover { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
    .detail h2 { margin: 0 0 6px; }
    .chips { display: flex; gap: 8px; flex-wrap: wrap; }
    .chip { padding: 6px 10px; border-radius: 999px; background: var(--muted); color: var(--text-dim); border: 1px solid var(--border); font-size: 12px; }
    .chapter-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .chapter { text-align: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }

    /* ============= 阅读器页 ============= */

.reader { background: var(--bg, #0f1115); }
.reader-title {text-align:center; padding-top:12px; color:#aaa; margin:0 auto;}
.reader-title h1{text-align:center; padding-top:12px; color:#aaa; text-decoration: none; font-size: 16px; color:#aaa;}
.description{max-width:800px; color:#aaa; padding:12px 0; font-size: 14px;margin:0 auto;}
.reader-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  background: rgba(15,17,21,.62);
  padding: 8px 12px;
  border-radius: 12px 12px 0 0;
}

.reader-actions { display: flex; gap: 8px; justify-content: center; align-items: center; }

.btn {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #4a5568, #718096);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.25); background: linear-gradient(135deg, #5a6578, #8190a6); }
.btn:active { transform: translateY(0); box-shadow: 0 3px 6px rgba(0,0,0,0.2); }
.btn { touch-action: manipulation; }

.reader-main {
  display: grid;
  gap: 12px;
  padding-top:12px;
  padding-bottom: 70px;
  justify-items: center;
  overflow: auto;
}

.reader-img { 
  width: 100%; 
  max-width: 800px; 
  height: auto; 
  border-radius: 12px; 
  border: 1px solid #333; 
  background: #0b0d12; 
  user-drag: none; -webkit-user-drag: none; -moz-user-drag: none; -ms-user-drag: none; 
}

/* 懒加载初始状态 */
.reader-img.lazy { 
  opacity: 0; 
  transition: opacity 0.3s; 
  min-height: 400px;
}

    /* ============= 底部 ============= */
    .footer { margin: 0 auto; padding:40px 0; color: var(--text-dim); display: grid; gap: 8px; justify-items: center; font-size: 12px; }

    /* ============= 响应式断点 ============= */
    @media (min-width: 1024px) {
      .grid {grid-template-columns: repeat(6, 1fr);}
    }
    @media (max-width: 1024px) {
      .hero-inner { grid-template-columns: 1fr; }
      .detail { grid-template-columns: 120px 1fr; }
    }
    @media (max-width: 768px) {
      .nav { display: none; }
      .nav-wrapper{
        position:fixed;top:64px;left:0;right:0;
        flex-direction:column;
        background:var(--bg);
        padding:16px;
        display:none;
      }
      .nav-wrapper.open{display:flex;}
      .hamburger{display:block;}
      .brand{margin:0;}
      .brand-name { font-weight: 800; }
      .hero-inner { padding: 16px; }
      .grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
    }
    @media (max-width: 480px) {
      .search input { height: 38px; }
      .chapter-list { grid-template-columns: repeat(3, 1fr); }
        #btnZoomIn{
      display: none;
  }
  #btnZoomOut{
      display: none;
  }

    }