/* 哔咔漫画 PicACG 官网 — 移动优先 */
:root {
  --pink: #ff6b9d;
  --pink-deep: #e84a7f;
  --pink-soft: #ffe4ee;
  --rose: #ff8fab;
  --ink: #1a1220;
  --muted: #6b5a66;
  --paper: #fff8fa;
  --card: #ffffff;
  --line: rgba(232, 74, 127, 0.18);
  --shadow: 0 12px 40px rgba(232, 74, 127, 0.16);
  --radius: 16px;
  --nav-h: 56px;
  --float-h: 72px;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6e7 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe8f0 0%, transparent 50%),
    linear-gradient(180deg, #fff5f8 0%, var(--paper) 40%, #fff 100%);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: calc(var(--float-h) + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pink-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 250, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(232, 74, 127, 0.35);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(232, 74, 127, 0.35);
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 14px 32px rgba(232, 74, 127, 0.28);
  animation: rise-in 0.7s ease both;
}

.nav-links {
  display: none;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-deep);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 18px;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  background: var(--pink-soft);
}

/* Hero */
.hero {
  padding: 36px 0 28px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 36px 24px 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 228, 238, 0.9)),
    radial-gradient(circle at 85% 20%, rgba(255, 107, 157, 0.35), transparent 45%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #ff4d88, #ff8fab 55%, #ff6b9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  animation: rise-in 0.7s ease both;
}

.hero h1 {
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  font-weight: 700;
  margin-bottom: 10px;
  animation: rise-in 0.7s ease 0.08s both;
}

.hero-lead {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36em;
  margin-bottom: 22px;
  animation: rise-in 0.7s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise-in 0.7s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: 0 10px 24px rgba(232, 74, 127, 0.35);
}

.btn-secondary {
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid var(--line);
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  animation: rise-in 0.7s ease 0.3s both;
}

.chip {
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Sections */
.section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}

.feature-item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  position: relative;
  padding: 16px 16px 14px 58px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 0.85rem;
  text-decoration: none;
}

.keyword-cloud a:hover {
  background: #ffd0e0;
}

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.article h2 {
  font-size: 1.2rem;
  margin: 18px 0 8px;
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.article ul {
  padding-left: 1.2em;
  margin-bottom: 12px;
}

.download-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--pink-soft));
  border: 1px solid var(--line);
  text-align: center;
}

.download-box h3 {
  margin-bottom: 8px;
}

.download-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.download-box .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
}

.site-footer .brand-line {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

/* Floating download bar */
.float-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 248, 250, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(26, 18, 32, 0.08);
}

.float-dl.show {
  transform: translateY(0);
}

.float-dl .inner {
  display: flex;
  gap: 10px;
  align-items: center;
}

.float-dl .info {
  flex: 1;
  min-width: 0;
}

.float-dl .info strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.float-dl .info span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-dl .btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
}

/* 右下角投诉举报（同 mufydown，避开底部下载栏） */
.complaint-float {
  position: fixed;
  right: 16px;
  bottom: calc(var(--float-h) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 210;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 25px;
  background: #1890ff;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(24, 144, 255, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.complaint-float:hover {
  background: #40a9ff;
  box-shadow: 0 6px 24px rgba(24, 144, 255, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}

.complaint-float svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #ffc53d;
  fill: currentColor;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-panel {
    padding: 48px 44px;
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .float-dl .btn {
    min-width: 160px;
  }
}

@media (min-width: 1024px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SEO / 可读性：更新时间、面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  opacity: 0.5;
}

.update-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.seo-block {
  margin-top: 16px;
}

.seo-block h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.seo-block p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

img[loading="lazy"] {
  content-visibility: auto;
}
