/* 羞羞漫画 - 深红平台风格 · 羞羞漫画官网 · 热门羞羞漫画在线漫画阅读平台 | 最新漫画 */
:root {
  --bg: #1a1a1a;
  --bg-card: #242424;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #dc3545;
  --accent-hover: #c82333;
  --border: #3a3a3a;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 14px; min-height: 100vh; }

header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: 1100px; margin: 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent-hover); }
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}
.nav { list-style: none; display: flex; gap: 22px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* 顶部官网横幅 - 全宽强调 */
.banner {
  background: linear-gradient(135deg, var(--accent) 0%, #a71d2a 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 24px 28px;
  text-align: center;
  border: 1px solid rgba(220, 53, 69, 0.3);
}
.banner h1 { font-size: 1.2rem; color: #fff; margin-bottom: 6px; font-weight: 600; }
.banner p { font-size: 0.9rem; color: rgba(255,255,255,0.9); }

.intro { background: var(--bg-card); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; border: 1px solid var(--border); }
.intro h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.intro p { margin-bottom: 10px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }

/* 热门羞羞漫画横向滚动区 */
.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 1rem; color: var(--text); font-weight: 600; }
.section-head .more { color: var(--accent); text-decoration: none; font-size: 13px; }
.section-head .more:hover { text-decoration: underline; }

.hot-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border);
}
.hot-scroll::-webkit-scrollbar { height: 6px; }
.hot-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.hot-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.hot-item {
  flex-shrink: 0;
  width: 140px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hot-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hot-item a { text-decoration: none; color: inherit; display: block; }
.hot-item .cover { aspect-ratio: 3/4; overflow: hidden; }
.hot-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.hot-item .info { padding: 10px; }
.hot-item .t { font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-item .tag { font-size: 11px; color: var(--accent); }

/* 网格区 */
.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.manga-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.manga-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.manga-card a { text-decoration: none; color: inherit; display: block; }
.manga-card .cover { aspect-ratio: 3/4; overflow: hidden; }
.manga-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.manga-card .info { padding: 10px; }
.manga-card .t { font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manga-card .tag { font-size: 11px; color: var(--accent); }

.page-title { margin-bottom: 18px; }
.page-title h1 { font-size: 1.2rem; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.page-title p { font-size: 13px; color: var(--text-muted); }

.article { max-width: 720px; margin: 0 auto; background: var(--bg-card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.article h1 { font-size: 1.25rem; margin-bottom: 12px; color: var(--text); font-weight: 600; }
.article .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.article .content p { margin-bottom: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.85; }
.article .content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; border: 1px solid var(--border); }
.article .back { display: inline-block; margin-top: 18px; color: var(--accent); text-decoration: none; font-size: 13px; }
.article .back:hover { text-decoration: underline; }

footer { max-width: 1100px; margin: 24px auto 0; padding: 18px 20px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-muted); }

/* 分页导航 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination .page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.pagination .page:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pagination .page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pagination .prev-next {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 12px;
  width: auto;
}

.pagination .prev-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pagination .prev-next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .prev-next.disabled:hover {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

@media (max-width: 600px) {
  header {
    padding: 0 10px;
  }
  .header-inner {
    height: 48px;
    flex-wrap: wrap;
  }
  .logo {
    font-size: 1rem;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.active {
    max-height: 300px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 10px 0;
  }
  .nav {
    flex-direction: column;
    gap: 0;
  }
  .nav li {
    border-bottom: 1px solid var(--border);
  }
  .nav a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
  }
  main {
    padding: 10px;
  }
  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hot-item { width: 120px; }
  .pagination {
    gap: 6px;
  }
  .pagination a {
    width: 32px;
    height: 32px;
  }
  .pagination .prev-next {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 44px;
  }
  .logo {
    font-size: 0.9rem;
  }
  .nav a {
    padding: 10px 0;
    font-size: 13px;
  }
}
