/* 哔咔漫画 bikas.forum — Twilight Ink Studio theme */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #0c1f24;
  --ink-soft: #1a353c;
  --mist: #e7f3f4;
  --mist-deep: #c8e4e7;
  --coral: #ff5e45;
  --coral-deep: #e2452e;
  --teal: #1aa6a0;
  --teal-glow: #5eead4;
  --sand: #f4ebe0;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(12, 31, 36, 0.12);
  --radius: 22px;
  --max: 1120px;
  --nav-h: 64px;
  --promo-h: auto;
  --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%, #b8ece8 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffd2c8 0%, transparent 50%),
    linear-gradient(165deg, #f7fbfb 0%, #eef6f7 45%, #f8f1ea 100%);
  line-height: 1.8;
  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);
}

.orbit-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— Top promo —— */
.flare-promo {
  background: linear-gradient(90deg, #0c1f24, #163a42 50%, #0c1f24);
  border-bottom: 1px solid rgba(94, 234, 212, 0.25);
  padding: 12px 0 8px;
}

.flare-promo .orbit-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.flare-chip {
  width: 72px;
  text-align: center;
  text-decoration: none;
  color: #d7efef;
  font-size: 11px;
}

.flare-chip img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.flare-chip:hover img {
  transform: translateY(-3px) scale(1.04);
}

.flare-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Nav —— */
.orbit-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 251, 251, 0.82);
  border-bottom: 1px solid rgba(26, 53, 60, 0.08);
  height: var(--nav-h);
}

.orbit-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-mark strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.orbit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.92rem;
}

.orbit-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}

.orbit-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  transition: right 0.25s ease;
}

.orbit-links a:hover::after,
.orbit-links a.is-on::after {
  right: 0;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

/* —— Sticky download dock —— */
.dock-rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 35;
  background: rgba(12, 31, 36, 0.94);
  backdrop-filter: blur(12px);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  border-bottom: 1px solid rgba(94, 234, 212, 0.2);
}

.dock-rail.is-shown {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dock-rail__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  padding: 10px 0;
  justify-items: center;
}

@media (min-width: 900px) {
  .dock-rail__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.dock-pill {
  width: 100%;
  max-width: 78px;
  text-align: center;
  text-decoration: none;
  color: #cfe8e8;
  font-size: 10px;
}

.dock-pill img {
  width: 48px;
  height: 48px;
  margin: 0 auto 3px;
  border-radius: 14px;
  object-fit: cover;
}

/* —— Hero —— */
.flare-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
}

.flare-hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 880px) {
  .flare-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.flare-hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 400;
  color: var(--ink);
}

.flare-hero__copy p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 36em;
}

.hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 166, 160, 0.35), transparent 70%);
  filter: blur(8px);
  top: -40px;
  right: -60px;
  pointer-events: none;
  animation: orb-drift 9s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 24px); }
}

.phone-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 280px);
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 12% -8% -6% 8%;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  border-radius: 36px;
  opacity: 0.35;
  filter: blur(18px);
  z-index: 0;
  animation: glow-pulse 3.6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.28; transform: scale(0.98); }
  to { opacity: 0.48; transform: scale(1.03); }
}

.phone-frame {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  background: #111;
  transform: rotate(2.5deg);
  transition: transform 0.35s ease;
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(-6px);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

/* —— Breadcrumb —— */
.crumb-path {
  font-size: 0.88rem;
  padding: 18px 0 6px;
  color: #4a646a;
}

.crumb-path a {
  color: #4a646a;
  text-decoration: none;
}

.crumb-path a:hover {
  color: var(--coral);
}

/* —— Content sections —— */
.ink-section {
  padding: 36px 0;
}

.ink-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.4;
}

.ink-section h3 {
  font-size: 1.12rem;
  margin: 22px 0 8px;
  color: var(--ink-soft);
}

.ink-section p {
  margin: 0 0 1em;
  font-size: 0.98rem;
}

.glass-pane {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.duo-rail {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 800px) {
  .duo-rail {
    grid-template-columns: 1fr 1fr;
  }
  .duo-rail.is-flip .duo-visual {
    order: 2;
  }
}

.duo-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.duo-visual img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.mosaic-board {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .mosaic-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mosaic-tile {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(12, 31, 36, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mosaic-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(12, 31, 36, 0.14);
}

.mosaic-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  margin-bottom: 12px;
}

.mosaic-tile h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.mosaic-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: #3d555b;
}

.ribbon-band {
  margin: 28px 0;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(26, 166, 160, 0.16), rgba(255, 94, 69, 0.14)),
    rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.timeline-spine {
  position: relative;
  padding-left: 22px;
  border-left: 3px solid rgba(26, 166, 160, 0.45);
  display: grid;
  gap: 18px;
}

.timeline-node {
  position: relative;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 94, 69, 0.25);
}

.quote-slab {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.55;
  padding: 24px;
  border-radius: 20px;
  background: var(--ink);
  color: #e8f6f6;
  margin: 24px 0;
}

.quote-slab span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  opacity: 0.7;
}

.cta-island {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn-coral,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 94, 69, 0.35);
}

.btn-coral:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(12, 31, 36, 0.12);
}

.btn-ghost:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.legal-body h2 {
  margin-top: 28px;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li {
  margin-bottom: 0.45em;
}

/* —— Error pages —— */
.error-stage {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.error-stage .code-glow {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--teal), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* —— Footer —— */
.site-foot {
  margin-top: 48px;
  padding: 36px 0 28px;
  background: var(--ink);
  color: #c5dede;
}

.site-foot a {
  color: #9fd9d5;
  text-decoration: none;
}

.site-foot a:hover {
  color: #fff;
}

.foot-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.foot-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.foot-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.foot-brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 400;
}

.foot-links {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.foot-copy {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  opacity: 0.75;
}

/* —— Motion —— */
.rise-in {
  animation: rise-in 0.7s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .orbit-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(247, 251, 251, 0.96);
    padding: 14px 16px 18px;
    flex-direction: column;
    border-bottom: 1px solid rgba(12, 31, 36, 0.08);
  }

  .orbit-links.is-open {
    display: flex;
  }
}
