/* picac.sbs — 哔咔官网品牌站 · 樱花暖调二次元风 */
:root {
  --rose: #e91e63;
  --rose-soft: #ff6b9d;
  --rose-pale: #ffe4ef;
  --coral: #ff8a65;
  --peach: #fff3ee;
  --cream: #fffaf7;
  --ink: #2a1520;
  --ink-muted: #6b4f5a;
  --mint: #26c6da;
  --gold: #ffb300;
  --panel: #ffffff;
  --line: rgba(233, 30, 99, 0.14);
  --shadow: 0 12px 40px rgba(233, 30, 99, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--sticky-ads-h));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(255, 107, 157, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 35% at 95% 8%, rgba(255, 138, 101, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(38, 198, 218, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(233, 30, 99, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--rose); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255, 250, 247, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
  height: var(--nav-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.08rem;
  color: var(--rose);
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.nav-toggle {
  display: none;
  background: var(--rose-pale);
  border: 1px solid var(--line);
  color: var(--rose);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--rose-pale);
  color: var(--rose);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.42);
  color: #fff !important;
}

.nav-btn { flex-shrink: 0; }

/* Sticky ads */
.sticky-ads-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(255, 250, 247, 0.97);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.sticky-ads-wrap.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-ads-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px;
}

#sticky-ads,
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  gap: 6px;
}

#sticky-ads > div,
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#sticky-ads img,
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(42, 21, 32, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: none;
}

#sticky-ads a,
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#sticky-ads img:hover,
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(42, 21, 32, 0.18);
}

#sticky-ads figcaption,
#sticky-ads .caption,
#ads figcaption,
#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;
}

@media (min-width: 769px) {
  #sticky-ads > div,
  #ads > div { width: calc(12.5% - 6px); min-width: 70px; }
}

@media (max-width: 768px) {
  #sticky-ads > div,
  #ads > div { width: calc(25% - 6px); min-width: 68px; }
}

/* Ads block */
.ads-block {
  padding: 16px 0 8px;
  background: linear-gradient(180deg, var(--rose-pale), transparent);
}

/* Main */
.page-main { padding-bottom: 60px; }

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb span { color: var(--rose); }

/* Hero */
.hero {
  padding: 48px 0 36px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--rose-pale);
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: left;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid var(--rose) !important;
  color: var(--rose) !important;
  box-shadow: none !important;
}

.btn-outline:hover { background: var(--rose-pale) !important; color: var(--rose) !important; }

/* Sections */
.section {
  padding: 40px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mint);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.4;
  position: relative;
  padding-left: 16px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, var(--rose), var(--coral));
  border-radius: 4px;
}

.section h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 22px 0 12px;
}

.section p {
  margin-bottom: 16px;
  color: var(--ink-muted);
  text-align: justify;
}

/* Module variants */
.module-text { margin-bottom: 28px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--mint));
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 99, 0.3);
}

.feature-card:hover::after { opacity: 1; }

.feature-card .fc-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 1rem;
  color: var(--rose);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.75;
}

.module-image-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

@media (min-width: 768px) {
  .module-image-text { grid-template-columns: 1fr 1fr; }
  .module-image-text.reverse { direction: rtl; }
  .module-image-text.reverse > * { direction: ltr; }
}

.shot-frame {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.shot-frame img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.shot-caption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 10px;
}

.module-card-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 28px 0;
}

@media (min-width: 900px) {
  .module-card-image { grid-template-columns: 1.1fr 0.9fr; }
}

.ci-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-card {
  background: var(--peach);
  border-left: 4px solid var(--rose);
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mini-card h4 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* FAQ */
.faq-list { margin-top: 20px; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.faq-item h4 {
  color: var(--rose);
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
}

/* Sub pages */
.page-hero {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--rose);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: var(--ink);
}

.legal-content p,
.legal-content li {
  color: var(--ink-muted);
  margin-bottom: 12px;
  text-align: justify;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 80px 20px 100px;
  min-height: 60vh;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.error-page p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 28px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--rose-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 250, 247, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-btn { display: none; }

  .hero { padding: 32px 0 24px; }

  .section { padding: 28px 0; }
}
