/* 哔咔漫画 picac.click — 暖色二次元官方品牌站 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #fff8f4;
  --cream-deep: #ffefe8;
  --rose: #ff5c8a;
  --rose-deep: #e8356a;
  --plum: #6b2d7b;
  --plum-soft: #9b5cb0;
  --peach: #ffb4a2;
  --lavender: #d4b8ff;
  --ink: #2a1a2e;
  --ink-soft: #5a4558;
  --ink-muted: #8c7a88;
  --white: #ffffff;
  --card-shadow: 0 12px 40px rgba(107, 45, 123, 0.1);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --nav-h: 58px;
  --sticky-h: 0px;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(255, 180, 162, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 5%, rgba(212, 184, 255, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(255, 92, 138, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--rose-deep); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--plum); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--rose), var(--lavender), var(--peach)) 1;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(107, 45, 123, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-link:hover { color: var(--rose-deep); }

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 92, 138, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.12), rgba(212, 184, 255, 0.15));
  color: var(--rose-deep);
}

.nav-cta {
  background: linear-gradient(135deg, var(--rose), var(--plum-soft)) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  opacity: 0.92;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--plum);
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== 广告位 ===== */
.ads-section {
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: 8px;
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
  gap: 8px;
}

#ads > div,
#sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads img,
#sticky-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(42, 26, 46, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a,
#sticky-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover,
#sticky-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(42, 26, 46, 0.18);
}

#ads figcaption,
#ads .caption,
#sticky-ads figcaption,
#sticky-ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* ===== 粘性广告栏 ===== */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 92, 138, 0.15);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  padding: 6px 0;
}

.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#sticky-ads > div {
  width: calc(12.5% - 6px);
  min-width: 70px;
}

@media (max-width: 768px) {
  #sticky-ads > div {
    width: calc(25% - 6px);
  }
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: calc(var(--nav-h) + 20px) 0 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { margin: 0 6px; }

/* ===== 页面主视觉 ===== */
.page-hero {
  padding: 32px 0 48px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--rose-deep), var(--plum));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 2;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--white);
  color: var(--plum);
  border: 1px solid rgba(155, 92, 176, 0.25);
  box-shadow: 0 2px 8px rgba(107, 45, 123, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(232, 53, 106, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 53, 106, 0.35);
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid var(--plum-soft);
  color: var(--plum);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}

/* ===== 内容区块 ===== */
.content-section {
  padding: 48px 0;
}

.content-section:nth-child(even) {
  background: linear-gradient(180deg, rgba(255, 239, 232, 0.5) 0%, transparent 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 400;
}

.section-header p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose), var(--peach));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* 纯文本 */
.text-block {
  max-width: 860px;
  margin: 0 auto;
}

.text-block p {
  margin-bottom: 1.2em;
  color: var(--ink-soft);
  text-align: justify;
}

.text-block h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.6em 0 0.8em;
  font-weight: 600;
}

/* 文本+卡片 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--rose);
  transition: transform 0.25s;
}

.feature-card:nth-child(2) { border-top-color: var(--plum-soft); }
.feature-card:nth-child(3) { border-top-color: var(--peach); }
.feature-card:nth-child(4) { border-top-color: var(--lavender); }

.feature-card:hover { transform: translateY(-4px); }

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.85;
}

.feature-card .card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* 文本+配图 */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .media-row {
    grid-template-columns: 3fr 7fr;
  }
  .media-row.reverse {
    grid-template-columns: 7fr 3fr;
  }
  .media-row.reverse .media-visual {
    order: 2;
  }
}

.media-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 3px solid var(--white);
}

.media-caption {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 8px;
}

.media-body p {
  margin-bottom: 1.1em;
  color: var(--ink-soft);
  text-align: justify;
}

/* 文本+卡片+配图 */
.combo-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .combo-block {
    grid-template-columns: 1fr 280px;
  }
}

.combo-side img {
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.mini-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  border-left: 3px solid var(--rose);
  box-shadow: 0 4px 16px rgba(107, 45, 123, 0.06);
}

.mini-card h4 {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* 数据条 */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 32px 0;
  margin: 24px 0;
}

.stat-item {
  text-align: center;
  min-width: 120px;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--rose-deep);
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(107, 45, 123, 0.05);
  border: 1px solid rgba(255, 92, 138, 0.1);
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 600;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.85;
}

/* 内链 */
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.inline-links a {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 92, 138, 0.08);
  font-size: 0.85rem;
  color: var(--rose-deep);
}

/* 子页面 */
.subpage-main {
  padding-bottom: 60px;
}

.subpage-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ink);
  margin-bottom: 24px;
  text-align: center;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 92, 138, 0.2);
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 1.4em 0 0.6em;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  margin-bottom: 0.9em;
  text-align: justify;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.legal-content li { margin-bottom: 0.5em; }

/* 错误页 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.error-page p {
  color: var(--ink-muted);
  margin-bottom: 24px;
}

/* 页脚 */
.site-footer {
  background: linear-gradient(180deg, var(--cream-deep), #ffe8df);
  border-top: 1px solid rgba(255, 92, 138, 0.15);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.footer-nav h4 {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-nav a:hover { color: var(--rose-deep); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(107, 45, 123, 0.1);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(107, 45, 123, 0.12);
    border-bottom: 1px solid rgba(255, 92, 138, 0.12);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .menu-toggle { display: block; }

  .page-hero { padding: 24px 0 36px; }

  .content-section { padding: 36px 0; }

  .stat-strip { gap: 16px; }

  .stat-item strong { font-size: 1.4rem; }
}
