/* pica.rest — 靛金暮潮 · 二次元短视频品牌官方站 */
:root {
  --abyss: #0a0e1c;
  --abyss-mid: #121829;
  --abyss-soft: #1a2238;
  --indigo: #2a3560;
  --coral: #ff4d6d;
  --coral-light: #ff7a94;
  --coral-glow: rgba(255, 77, 109, 0.35);
  --amber: #f0a030;
  --amber-pale: #fff8ec;
  --cyan: #3ecfcf;
  --mist: #e8edf8;
  --ink: #0c1020;
  --text: #1e2640;
  --text-soft: #5a6480;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-edge: rgba(240, 160, 48, 0.28);
  --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(--amber-pale);
  color: var(--text);
  line-height: 1.88;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 8%, rgba(255, 77, 109, 0.08), transparent 52%),
    radial-gradient(ellipse 48% 42% at 8% 88%, rgba(62, 207, 207, 0.09), transparent 48%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(240, 160, 48, 0.05), transparent 55%),
    linear-gradient(168deg, #faf6ef 0%, #f3eef8 40%, #eef4fa 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; }

.container { 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: linear-gradient(90deg, rgba(10, 14, 28, 0.97), rgba(26, 34, 56, 0.96));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240, 160, 48, 0.32);
  box-shadow: 0 6px 28px rgba(10, 14, 28, 0.45);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--amber);
  box-shadow: 0 0 14px rgba(240, 160, 48, 0.4);
}

.main-nav { display: flex; align-items: center; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  padding: 7px 11px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(240, 160, 48, 0.28);
  color: #fff;
}

.get-app {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: linear-gradient(115deg, var(--coral), #ff6b4a);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--coral-glow);
  white-space: nowrap;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== 粘性下载栏 ===== */
.float-dl {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 1150;
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.98), rgba(18, 24, 41, 0.96));
  border-bottom: 1px solid rgba(240, 160, 48, 0.22);
  padding: 7px 0;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.26s, opacity 0.26s;
  pointer-events: none;
}

.float-dl.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.pinned main { padding-top: calc(var(--nav-h) + var(--sticky-h) + 12px); }

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 3px;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 4px);
  min-width: 68px;
  max-width: 84px;
}

#ads img, #sticky-ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(240, 160, 48, 0.38);
  box-shadow: 0 5px 18px rgba(10, 14, 28, 0.25);
  transition: transform 0.18s, box-shadow 0.18s;
}

#ads a, #sticky-ads a { display: inline-block; border-radius: 16px; }

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px var(--coral-glow);
}

#ads .caption, #sticky-ads .caption {
  font-size: 10px;
  color: var(--text-soft);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  height: 14px;
}

.float-dl #sticky-ads .caption { color: rgba(255, 255, 255, 0.7); }

.ad-block {
  background: linear-gradient(140deg, rgba(255, 77, 109, 0.06), rgba(240, 160, 48, 0.05));
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 14px 12px 10px;
  margin-bottom: 28px;
}

.ad-block-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

/* ===== 主内容 ===== */
main { padding-top: calc(var(--nav-h) + 14px); }

/* ===== 面包屑 ===== */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.crumb a { color: var(--indigo); }
.crumb .sep { opacity: 0.4; }

/* ===== 首屏 ===== */
.hero {
  padding: 36px 0 44px;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(90deg, var(--abyss-mid), var(--indigo));
  color: var(--amber);
  font-size: 0.74rem;
  border-radius: 4px 14px 4px 14px;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.4rem, 4.2vw, 2.05rem);
  line-height: 1.48;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 760px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-chip {
  padding: 5px 13px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--indigo);
}

/* ===== 内容区块 ===== */
.block { margin-bottom: 48px; }

.block-title { margin-bottom: 22px; }

.block-title h2 {
  font-size: clamp(1.15rem, 3.3vw, 1.58rem);
  color: var(--ink);
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}

.block-title h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.12em; bottom: 0.12em;
  width: 4px;
  background: linear-gradient(180deg, var(--amber), var(--coral));
  border-radius: 2px;
}

.block-title .sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding-left: 16px;
}

.prose p { margin-bottom: 1.08em; text-align: justify; }

/* 图文 3:7 */
.split-row {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 26px;
  align-items: start;
  margin: 26px 0;
}

.split-row.flip { grid-template-columns: 7fr 3fr; }
.split-row.flip .shot-col { order: 2; }
.split-row.flip .text-col { order: 1; }

.shot-col figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 10px 36px rgba(10, 14, 28, 0.11);
  background: #fff;
}

.shot-col figcaption {
  padding: 9px 11px;
  font-size: 0.76rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
}

/* 卡片 */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.gold-tile {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gold-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(240, 160, 48, 0.14);
}

.gold-tile .tile-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 11px;
  margin-bottom: 12px;
}

.gold-tile h3 {
  font-size: 1rem;
  margin-bottom: 7px;
  color: var(--ink);
}

.gold-tile p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.72;
}

/* 色带 */
.glow-band {
  background: linear-gradient(135deg, var(--abyss-mid), var(--indigo));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  margin: 32px 0;
  border: 1px solid rgba(240, 160, 48, 0.2);
}

.glow-band h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--amber);
}

.glow-band p {
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.92rem;
}

/* FAQ */
.qa-list { margin-top: 18px; }

.qa-item {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 13px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.qa-item h3 {
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.qa-item p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* 子页面 */
.page-title {
  font-size: clamp(1.3rem, 3.8vw, 1.78rem);
  color: var(--ink);
  margin-bottom: 12px;
}

.page-lead {
  font-size: 0.98rem;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 800px;
}

.doc-body h2 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 30px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--glass-edge);
}

.doc-body h3 {
  font-size: 0.98rem;
  color: var(--indigo);
  margin: 18px 0 7px;
}

.doc-body p, .doc-body li {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.85em;
}

.doc-body ul, .doc-body ol {
  padding-left: 1.35em;
  margin-bottom: 0.9em;
}

/* 错误页 */
.err-wrap {
  text-align: center;
  padding: 72px 18px 90px;
}

.err-wrap h1 {
  font-size: 3.8rem;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.err-wrap p { color: var(--text-soft); margin-bottom: 22px; }
.err-wrap .get-app { display: inline-flex; }

/* 页脚 */
.page-foot {
  background: var(--abyss);
  color: rgba(255, 255, 255, 0.72);
  padding: 36px 0 24px;
  margin-top: 54px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.foot-cols h4 {
  color: var(--amber);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.foot-cols a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  margin-bottom: 7px;
}

.foot-cols a:hover { color: var(--coral-light); }

.foot-note {
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .split-row, .split-row.flip { grid-template-columns: 1fr; }
  .split-row.flip .shot-col,
  .split-row.flip .text-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;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 14, 28, 0.98);
    padding: 10px 14px 16px;
    border-bottom: 1px solid rgba(240, 160, 48, 0.2);
    box-shadow: 0 10px 28px rgba(10, 14, 28, 0.38);
    gap: 1px;
    z-index: 1199;
  }

  .main-nav ul.open { display: flex; }
  .main-nav a { display: block; padding: 11px 12px; }
  .main-nav .get-app { display: flex; justify-content: center; margin-top: 5px; }

  #ads > div, #sticky-ads > div {
    width: calc(25% - 4px);
    min-width: 60px;
    max-width: 74px;
  }

  #ads img, #sticky-ads img { width: 54px; height: 54px; }
  .hero { padding: 24px 0 32px; }
  .block { margin-bottom: 36px; }
}

@media (min-width: 769px) {
  #ads > div, #sticky-ads > div { width: calc(12.5% - 4px); }
}
