/* picac.lat — 哔咔漫画绯暮琉璃品牌站 */
:root {
  --bg-root: #1c0e16;
  --bg-layer: #26121e;
  --bg-surface: #321828;
  --bg-card: rgba(50, 24, 40, 0.88);
  --rose: #f04d8a;
  --rose-light: #ff7eb3;
  --rose-deep: #c42d6a;
  --amber: #e8a84c;
  --cream: #fff0f5;
  --cream-dim: #d4b8c4;
  --line: rgba(240, 77, 138, 0.22);
  --glow-rose: 0 0 32px rgba(240, 77, 138, 0.28);
  --radius: 16px;
  --radius-pill: 999px;
  --nav-h: 56px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "STSong", 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(--bg-root);
  color: var(--cream);
  line-height: 1.92;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--sticky-ads-h));
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 90% 0%, rgba(232, 168, 76, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 100%, rgba(240, 77, 138, 0.11), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rose-light); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(28, 14, 22, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid rgba(240, 77, 138, 0.45);
  box-shadow: var(--glow-rose);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 0.96rem; letter-spacing: 0.06em; }
.brand-text span { font-size: 0.66rem; color: var(--cream-dim); }

.main-nav {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-layer);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 14px 18px;
  gap: 4px;
}

.main-nav.open { display: flex; }

.main-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(240, 77, 138, 0.14);
  color: var(--rose-light);
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 1.25rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  background: linear-gradient(120deg, var(--rose-deep), var(--rose), var(--rose-light));
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--glow-rose);
  border: none;
  cursor: pointer;
}

.btn-dl:hover { opacity: 0.92; color: #fff !important; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--rose);
  color: var(--rose-light) !important;
  box-shadow: none;
}

.nav-btn-dl { display: none; }

/* Ads */
.ads-block {
  background: var(--bg-layer);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img, #sticky-ads img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
  border: 1px solid rgba(240, 77, 138, 0.3);
}

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-3px) scale(1.05);
}

#ads .caption, #sticky-ads .caption {
  font-size: 10px;
  color: var(--cream-dim);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.sticky-ads-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(28, 14, 22, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  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;
}

/* Hero */
.hero-band {
  padding: 40px 0 32px;
  position: relative;
}

.hero-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--amber), transparent);
  border-radius: 2px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  background: rgba(232, 168, 76, 0.08);
}

.hero-band h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  line-height: 1.38;
  margin-bottom: 20px;
  color: var(--cream);
}

.hero-band h1 em {
  font-style: normal;
  color: var(--rose-light);
}

.hero-intro {
  color: var(--cream-dim);
  font-size: 0.96rem;
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.content-section {
  padding: 36px 0;
  border-top: 1px solid rgba(240, 77, 138, 0.08);
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--rose);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--rose);
}

.content-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 3.6vw, 1.72rem);
  margin-bottom: 16px;
  line-height: 1.42;
  color: var(--cream);
}

.content-section h3 {
  font-size: 1.04rem;
  color: var(--rose-light);
  margin: 20px 0 10px;
}

.content-section p {
  color: var(--cream-dim);
  margin-bottom: 14px;
  font-size: 0.94rem;
}

/* Layout modules */
.block-text p:last-child { margin-bottom: 0; }

.block-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.info-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  opacity: 0.4;
}

.info-card h4 {
  font-size: 0.96rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.86rem;
  margin: 0;
}

.block-visual {
  margin-top: 22px;
}

.block-visual img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

.block-visual figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-dim);
  margin-top: 10px;
}

.layout-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.layout-duo .block-visual img { margin: 0; }

.layout-duo.text-major { }
.layout-duo.img-major { }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.pill-row span {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  background: rgba(240, 77, 138, 0.12);
  color: var(--rose-light);
  border: 1px solid var(--line);
}

.quote-strip {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--amber);
  background: rgba(232, 168, 76, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-strip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cream);
  font-style: italic;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric-cell {
  text-align: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-cell strong {
  display: block;
  font-size: 1.35rem;
  color: var(--amber);
  margin-bottom: 4px;
}

.metric-cell span {
  font-size: 0.76rem;
  color: var(--cream-dim);
}

.faq-block { margin-top: 18px; }

.faq-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-entry summary {
  padding: 15px 18px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--cream);
  background: var(--bg-card);
  list-style: none;
}

.faq-entry summary::-webkit-details-marker { display: none; }

.faq-entry p {
  padding: 0 18px 16px;
  font-size: 0.86rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.82rem;
  color: var(--cream-dim);
}

.breadcrumb a { color: var(--amber); }
.breadcrumb span { margin: 0 6px; opacity: 0.45; }

/* Sub pages */
.page-head {
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin-bottom: 10px;
}

.page-head p { color: var(--cream-dim); font-size: 0.9rem; }

.legal-body h2 {
  font-size: 1.12rem;
  color: var(--rose-light);
  margin: 30px 0 12px;
}

.legal-body h3 {
  font-size: 0.98rem;
  color: var(--cream);
  margin: 22px 0 8px;
}

.legal-body p, .legal-body li {
  color: var(--cream-dim);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: var(--bg-layer);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-top: 44px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.footer-logo p {
  font-size: 0.84rem;
  color: var(--cream-dim);
}

.footer-nav h4 {
  font-size: 0.88rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.footer-nav a {
  display: block;
  font-size: 0.84rem;
  color: var(--cream-dim);
  padding: 4px 0;
}

.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--cream-dim);
}

/* Error */
.err-wrap {
  text-align: center;
  padding: 64px 0 88px;
}

.err-num {
  font-size: 5.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 18px;
}

.err-wrap h1 { font-size: 1.35rem; margin-bottom: 12px; }
.err-wrap p { color: var(--cream-dim); margin-bottom: 26px; }

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    gap: 2px;
  }

  .main-nav a { padding: 6px 11px; }
  .nav-btn-dl { display: inline-flex; }

  .block-cards { grid-template-columns: repeat(2, 1fr); }
  .block-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }

  .layout-duo { grid-template-columns: 7fr 3fr; }
  .layout-duo.reverse { grid-template-columns: 3fr 7fr; }
  .layout-duo.reverse .block-visual { order: -1; }

  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-cols { grid-template-columns: 2fr 1fr 1fr; }

  #ads > div, #sticky-ads > div { width: calc(12.5% - 8px); }
  #ads img, #sticky-ads img { width: 64px; height: 64px; }
}

@media (max-width: 767px) {
  #ads > div, #sticky-ads > div { width: calc(25% - 8px); }
}
