/* BIKA / picar.cyou — Inkpetal Pulse theme */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --paper: #fff4ec;
  --paper-deep: #ffe8d6;
  --coral: #ff4f73;
  --coral-deep: #e02955;
  --teal: #0f8f8c;
  --teal-soft: #d7f3f2;
  --amber: #ff9b3d;
  --mist: #f0f7f7;
  --glass: rgba(255, 255, 255, 0.72);
  --line: rgba(26, 35, 50, 0.1);
  --shadow: 0 18px 40px rgba(26, 35, 50, 0.08);
  --radius: 22px;
  --max: 1080px;
  --header-h: 58px;
  --font-display: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
  --font-body: 'Noto Sans SC', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 79, 115, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(15, 143, 140, 0.14), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #fffaf6 40%, var(--mist) 100%);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-deep);
}

.petal-shell {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.ink-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 244, 236, 0.86);
  border-bottom: 1px solid var(--line);
}

.ink-nav__inner {
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--coral-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

/* —— Top ads (above fold) —— */
.pulse-ads {
  background: linear-gradient(90deg, rgba(255, 79, 115, 0.08), rgba(15, 143, 140, 0.08));
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

#ads,
.pulse-ads #ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 6px 0;
  gap: 4px 2px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: none;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Sticky download under header —— */
.flux-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 250, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  padding: 8px 0;
}

.flux-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.flux-sticky__label {
  width: min(100% - 24px, var(--max));
  margin: 0 auto 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.flux-sticky__grid {
  width: min(100% - 16px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

@media (min-width: 900px) {
  .flux-sticky__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.flux-sticky__grid a {
  text-decoration: none;
  color: var(--ink-soft);
  text-align: center;
  font-size: 10px;
  width: 100%;
  max-width: 72px;
}

.flux-sticky__grid img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(26, 35, 50, 0.12);
}

.flux-sticky__grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Hero —— */
.ribbon-hero {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
}

.ribbon-hero::before {
  content: '';
  position: absolute;
  inset: 8% -20% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(145deg, rgba(255, 79, 115, 0.35), rgba(255, 155, 61, 0.2));
  filter: blur(2px);
  animation: drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.ribbon-hero::after {
  content: '';
  position: absolute;
  left: -8%;
  bottom: 0;
  width: 220px;
  height: 220px;
  border-radius: 55% 45% 40% 60%;
  background: linear-gradient(160deg, rgba(15, 143, 140, 0.28), rgba(215, 243, 242, 0.5));
  animation: drift 11s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(18px, -14px) rotate(8deg); }
}

.ribbon-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 12px;
  background: linear-gradient(120deg, var(--coral-deep), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.ribbon-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 1.85rem);
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 18em;
}

.ribbon-hero__lead {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1rem;
}

.ribbon-hero__ornament {
  margin-top: 28px;
  height: 4px;
  width: 88px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { width: 72px; opacity: 0.7; }
  50% { width: 108px; opacity: 1; }
}

/* —— Sections —— */
.chapter {
  padding: 42px 0;
}

.chapter--band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(215, 243, 242, 0.35));
  border-block: 1px solid var(--line);
}

.chapter--amber {
  background: linear-gradient(135deg, rgba(255, 155, 61, 0.12), rgba(255, 79, 115, 0.06));
}

.chapter__tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 700;
}

.chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 16px;
  line-height: 1.35;
}

.chapter h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 28px 0 10px;
  color: var(--ink);
}

.chapter p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.chapter p:last-child {
  margin-bottom: 0;
}

.split-pane {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 860px) {
  .split-pane {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split-pane--flip {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split-pane--flip .pane-copy {
    order: 2;
  }
}

.phone-frame {
  position: relative;
  margin: 0 auto;
  max-width: 280px;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #fff, #f3f3f3);
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
  transition: transform 0.35s ease;
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-frame--tilt {
  transform: rotate(3deg);
}

.phone-frame img {
  border-radius: 20px;
  width: 100%;
}

.stack-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 720px) {
  .stack-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .stack-cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pulse-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pulse-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 115, 0.35);
}

.pulse-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.pulse-card p {
  margin: 0;
  font-size: 0.92rem;
}

.feature-rail {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

@media (min-width: 800px) {
  .feature-rail {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.ink-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ink-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.ink-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--amber));
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 10px;
}

/* —— Breadcrumb —— */
.crumb {
  width: min(100% - 32px, var(--max));
  margin: 14px auto 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--coral);
}

.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0 0 10px;
  font-weight: 400;
}

.legal-body {
  padding-bottom: 48px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 28px 0 10px;
  font-weight: 400;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.legal-body ul {
  padding-left: 1.2em;
}

/* —— Error pages —— */
.error-panel {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.error-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 4rem);
  margin: 0 0 8px;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-panel p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 0 auto 18px;
}

.ghost-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.ghost-link:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

/* —— Footer —— */
.site-foot {
  margin-top: 20px;
  padding: 36px 0 28px;
  background: #17202b;
  color: rgba(255, 255, 255, 0.78);
}

.site-foot a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-foot a:hover {
  color: #ff9bb0;
}

.site-foot__grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .site-foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-foot h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 400;
}

.site-foot p,
.site-foot li {
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li + li {
  margin-top: 6px;
}

.site-foot__copy {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Mobile nav —— */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    background: rgba(255, 250, 246, 0.98);
    padding: 12px 18px 16px;
    border-bottom: 1px solid var(--line);
    gap: 10px;
  }
  .nav-links.is-open {
    display: flex;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}
