/* 妖精漫画网 - Webtoon/App风：深色底+紫粉渐变+横向滚动封面 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600&display=swap');

:root {
  --bg: #0c0c0f;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --text: #f0f0f2;
  --text-dim: #8b8b94;
  --accent-start: #8b5cf6;
  --accent-end: #ec4899;
  --badge: rgba(139, 92, 246, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

/* 顶栏 - 紧凑 */
.site-header {
  background: rgba(12, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}

.nav-menu a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* 主区 */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* 首屏 - 全宽渐变+大标题 */
.hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero .sub {
  font-size: 1rem;
  color: var(--text-dim);
}

/* 文案块 - 分块卡片 */
.blocks {
  margin: 2rem 0;
}

.block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.block h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.block p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.block p:last-child {
  margin-bottom: 0;
}

/* 横向滚动封面区 */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  padding-left: 0.25rem;
}

.scroll-wrap {
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}

.scroll-wrap::-webkit-scrollbar {
  height: 6px;
}

.scroll-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 3px;
}

.scroll-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.5rem;
  width: max-content;
}

.cover-card {
  flex-shrink: 0;
  width: 160px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.cover-card:hover {
  transform: translateY(-4px);
}

.cover-card .thumb {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
}

.cover-card .title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-card .meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* 列表页 */
.page-head {
  padding: 1.5rem 0 1rem;
}

.page-head h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-head p {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* 列表 - 大卡片 */
.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-card {
  display: flex;
  gap: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s;
}

.list-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.list-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.list-card .body {
  flex: 1;
  min-width: 0;
}

.list-card .body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.list-card .body h3 a {
  color: var(--text);
  text-decoration: none;
}

.list-card .body h3 a:hover {
  color: var(--accent-start);
}

.list-card .body p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
}

/* 内容页 */
.article {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.article .head {
  margin-bottom: 1.5rem;
}

.article .head h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.article .meta {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.article .content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article .content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article .content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}

.article .content h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.article .content p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.article .content ul, .article .content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* 链接条 */
.links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--accent-start);
  text-decoration: none;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.links a:hover {
  background: var(--accent-start);
  color: var(--bg);
}

/* 页脚 */
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  background: var(--surface);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--accent-start);
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
  .list-card {
    flex-direction: column;
  }

  .list-card img {
    width: 100%;
    height: 180px;
  }

  .cover-card {
    width: 140px;
  }
}

@media (max-width: 480px) {
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .scroll-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
