/* pica.baby — 暮霓靛蓝 · 二次元短视频品牌官方站 */
:root {
  --ink-deep: #0c1222;
  --ink: #151d35;
  --indigo: #2a3a6e;
  --violet: #7c4dff;
  --violet-glow: rgba(124, 77, 255, 0.28);
  --coral: #ff5e7a;
  --coral-soft: #ff8fa3;
  --amber: #ffb347;
  --pearl: #ffffff;
  --mist: #f4f6fc;
  --text: #1e2a4a;
  --text-soft: #5a6788;
  --glass: rgba(255, 255, 255, 0.9);
  --line: rgba(124, 77, 255, 0.14);
  --nav-h: 56px;
  --sticky-h: 88px;
  --radius: 18px;
  --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(--mist);
  color: var(--text);
  line-height: 1.88;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 48% at 88% 8%, rgba(255, 94, 122, 0.11), transparent 58%),
    radial-gradient(ellipse 48% 42% at 6% 88%, rgba(124, 77, 255, 0.12), transparent 52%),
    radial-gradient(ellipse 35% 30% at 50% 50%, rgba(255, 179, 71, 0.05), transparent 60%),
    linear-gradient(168deg, #f8f9ff 0%, #eef1fb 42%, #fdf4f6 100%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--indigo); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; display: block; }

.shell { width: min(1080px, 92vw); margin: 0 auto; }

/* ===== 顶栏 ===== */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 28px rgba(12, 18, 34, 0.07);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-row img { border-radius: 10px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.main-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.main-nav a:hover,
.main-nav a.active { color: var(--violet); background: rgba(124, 77, 255, 0.08); }

.btn-get {
  background: linear-gradient(135deg, var(--coral), var(--violet));
  color: #fff !important;
  padding: 8px 16px !important;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--violet-glow);
}

.btn-get:hover { opacity: 0.92; color: #fff !important; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== 固定下载条 ===== */
.float-dl {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 1190;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.float-dl.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.has-float { padding-top: calc(var(--nav-h) + var(--sticky-h)); }
body:not(.has-float) { padding-top: var(--nav-h); }

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

#ads img, #sticky-ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(12, 18, 34, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

#ads a, #sticky-ads a { display: inline-block; text-decoration: none; border-radius: 14px; }

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(124, 77, 255, 0.22);
}

#ads .caption, #sticky-ads .caption,
#ads figcaption, #sticky-ads figcaption {
  height: 15px;
  font-size: 10px;
  color: var(--text-soft);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.ad-block {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.06), rgba(255, 94, 122, 0.06));
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px 12px 10px;
  margin: 18px 0 28px;
  text-align: center;
}

.ad-block-label {
  font-size: 0.78rem;
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ===== 面包屑 ===== */
.crumb {
  font-size: 0.78rem;
  color: var(--text-soft);
  padding: 14px 0 6px;
}

.crumb a { color: var(--text-soft); }
.crumb a:hover { color: var(--coral); }
.crumb span { margin: 0 6px; opacity: 0.5; }

/* ===== 首页区块 ===== */
main { padding-bottom: 40px; }

.hero-zone {
  padding: 28px 0 36px;
  position: relative;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(255, 94, 122, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-zone h1 {
  font-size: clamp(1.38rem, 4.2vw, 2rem);
  line-height: 1.42;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 920px;
}

.chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pearl);
  border: 1px solid var(--line);
  color: var(--indigo);
}

/* 通用内容块 */
.sect {
  margin-bottom: 42px;
}

.sect-top {
  margin-bottom: 18px;
}

.sect-top h2 {
  font-size: clamp(1.12rem, 3vw, 1.45rem);
  color: var(--ink);
  margin-bottom: 6px;
}

.sect-top .sub {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.prose p {
  font-size: 0.92rem;
  margin-bottom: 0.9em;
  color: var(--text);
}

.prose p:last-child { margin-bottom: 0; }

/* 卡片网格 */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.tile {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.tile:hover {
  box-shadow: 0 10px 32px rgba(124, 77, 255, 0.1);
  transform: translateY(-2px);
}

.tile .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tile h3 {
  font-size: 0.94rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.tile p {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* 图文分栏 */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 22px 0;
}

.split-row.flip .pic-col { order: 2; }
.split-row.flip .txt-col { order: 1; }

.pic-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(12, 18, 34, 0.1);
  background: var(--pearl);
}

.pic-frame figcaption {
  font-size: 0.76rem;
  color: var(--text-soft);
  padding: 8px 12px;
  background: var(--pearl);
  border-top: 1px solid var(--line);
}

/* 卡片+配图组合 */
.combo-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin: 22px 0;
}

.combo-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card {
  background: var(--pearl);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mini-card h3 {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.mini-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* 强调带 */
.glow-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--indigo) 55%, #3d2a6e 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 32px 0;
  color: rgba(255, 255, 255, 0.9);
}

.glow-band h2 {
  font-size: 1.1rem;
  color: var(--amber);
  margin-bottom: 10px;
}

.glow-band p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.75em;
}

/* FAQ */
.qa-list { margin-top: 16px; }

.qa-item {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  margin-bottom: 10px;
}

.qa-item h3 {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.qa-item p {
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* 子页面 */
.page-h1 {
  font-size: clamp(1.22rem, 3.5vw, 1.68rem);
  color: var(--ink);
  margin-bottom: 10px;
}

.page-intro {
  font-size: 0.94rem;
  color: var(--text-soft);
  margin-bottom: 26px;
  max-width: 840px;
}

.doc-body h2 {
  font-size: 1.06rem;
  color: var(--ink);
  margin: 26px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.doc-body h3 {
  font-size: 0.94rem;
  color: var(--indigo);
  margin: 15px 0 6px;
}

.doc-body p, .doc-body li {
  font-size: 0.9rem;
  margin-bottom: 0.82em;
}

.doc-body ul, .doc-body ol {
  padding-left: 1.35em;
  margin-bottom: 0.85em;
}

/* 错误页 */
.err-box {
  text-align: center;
  padding: 70px 16px 90px;
}

.err-box h1 {
  font-size: 3.8rem;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.err-box p { color: var(--text-soft); margin-bottom: 20px; }
.err-box .btn-get { display: inline-flex; }

/* 页脚 */
.bottom-bar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.68);
  padding: 36px 0 24px;
  margin-top: 48px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-bottom: 22px;
}

.foot-cols h4 {
  color: var(--coral-soft);
  font-size: 0.84rem;
  margin-bottom: 10px;
}

.foot-cols a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.foot-cols a:hover { color: var(--amber); }

.foot-note {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 响应式 */
@media (max-width: 900px) {
  .split-row, .combo-block { grid-template-columns: 1fr; }
  .split-row.flip .pic-col, .split-row.flip .txt-col { order: unset; }
}

@media (max-width: 768px) {
  .menu-btn { display: block; }

  .main-nav ul {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 14px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(12, 18, 34, 0.1);
    z-index: 1199;
  }

  .main-nav ul.open { display: flex; }
  .main-nav a { display: block; width: 100%; padding: 10px 12px; }
  .main-nav .btn-get { text-align: center; margin-top: 4px; }

  #ads > div, #sticky-ads > div {
    width: calc(25% - 4px);
    min-width: 56px;
    max-width: 74px;
  }

  #ads img, #sticky-ads img { width: 50px; height: 50px; }
  .hero-zone { padding: 20px 0 26px; }
  .sect { margin-bottom: 34px; }
}

@media (min-width: 769px) {
  #ads > div, #sticky-ads > div { width: calc(12.5% - 4px); }
}
