/* 笔趣阁官网 — 品牌蓝 + 文学气质 */
:root {
  --brand: #2b9de8;
  --brand-deep: #1a7fc4;
  --brand-soft: rgba(43, 157, 232, 0.12);
  --ink: #0c1624;
  --text: #1a2433;
  --muted: #5c6b7e;
  --line: rgba(26, 36, 51, 0.08);
  --paper: #f4f7fb;
  --white: #ffffff;
  --hero-veil: linear-gradient(
    115deg,
    rgba(6, 12, 26, 0.92) 0%,
    rgba(8, 16, 32, 0.78) 34%,
    rgba(10, 24, 48, 0.42) 62%,
    rgba(8, 18, 36, 0.55) 100%
  );
  --shadow-phone: 0 28px 60px rgba(12, 22, 36, 0.22);
  --radius: 18px;
  --header-h: 72px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header — 始终白底常显 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(43, 157, 232, 0.28);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-cta {
  margin-left: 8px !important;
  background: var(--brand) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--brand-deep) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(12, 22, 36, 0.12);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav a:hover {
  background: var(--paper);
}

.mobile-nav .nav-cta {
  text-align: center;
  margin-top: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 28px) 0 72px;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.hero-glow {
  position: absolute;
  inset: auto -10% -20% 35%;
  height: 70%;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(43, 157, 232, 0.28), transparent 55%),
    radial-gradient(ellipse at 40% 80%, rgba(120, 190, 255, 0.12), transparent 50%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  max-width: 560px;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-kicker {
  margin: 0 0 20px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(166, 214, 245, 0.92);
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-headline {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.hero-lead {
  margin: 0 0 34px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero product stage */
.hero-stage {
  position: relative;
  height: min(560px, 72svh);
  min-height: 420px;
  display: grid;
  place-items: center;
  animation: riseIn 1.05s var(--ease) 0.12s both;
}

.hero-orbit {
  position: absolute;
  width: min(400px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(43, 157, 232, 0.2), transparent 62%);
  border: 1px solid rgba(160, 210, 255, 0.12);
}

.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(180, 220, 255, 0.1);
}

.hero-phone {
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.45));
}

.hero-phone .phone-frame {
  width: 100%;
  margin: 0;
}

.hero-phone-main {
  width: min(250px, 58%);
  z-index: 4;
  animation: phoneFloat 5.5s ease-in-out infinite;
}

.hero-phone-side {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(180px, 42%);
  z-index: 2;
  opacity: 0.92;
  transform: rotate(8deg) translateY(8px);
  animation: phoneSideFloat 6.2s ease-in-out infinite;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  animation: scrollPulse 1.6s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(43, 157, 232, 0.38);
}

.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 16px 36px rgba(26, 127, 196, 0.42);
}

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(12, 22, 36, 0.45);
}

.btn-ghost:hover {
  background: rgba(12, 22, 36, 0.62);
  border-color: rgba(255, 255, 255, 0.95);
}

.btn-lg {
  min-height: 56px;
  padding-inline: 32px;
  font-size: 1.08rem;
  border-radius: 16px;
}

/* Trust bar */
.trust-bar {
  background: var(--ink);
  color: var(--white);
  padding: 28px 0;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border-left: 2px solid rgba(43, 157, 232, 0.55);
}

.trust-item strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #7ec8f5;
}

.trust-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head.center,
.section-head {
  text-align: left;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--ink);
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Features */
.features {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(43, 157, 232, 0.08), transparent 55%),
    linear-gradient(180deg, #eef4fa 0%, var(--white) 48%, var(--white) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.feature {
  padding: 8px 4px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Phone showcase */
.showcase {
  background: var(--white);
  overflow: hidden;
}

.phone-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 28px;
  align-items: end;
  perspective: 1200px;
}

.phone {
  margin: 0;
  text-align: center;
}

.phone figcaption {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.phone-frame {
  position: relative;
  margin-inline: auto;
  width: min(100%, 280px);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2433, #0c121c);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}

.phone-main .phone-frame {
  width: min(100%, 300px);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: #2a3344;
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
  object-position: top center;
  background: #f5f7fa;
}

.phone-side {
  transform: translateY(28px);
}

.phone-main {
  animation: phoneFloat 5.5s ease-in-out infinite;
}

/* Experience */
.experience {
  background:
    linear-gradient(180deg, var(--paper), #e8f2fb 55%, var(--paper));
}

.experience-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.experience-copy .section-desc {
  margin-bottom: 24px;
}

.check-list {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px;
}

.experience-visual {
  display: flex;
  justify-content: center;
}

.phone-solo .phone-frame {
  width: min(100%, 290px);
}

/* Trust */
.trust {
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  padding: 28px 24px;
  border-top: 3px solid var(--brand);
  background: linear-gradient(180deg, #f7fbfe, var(--white));
}

.trust-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
}

/* Download CTA */
.download {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.download-bg {
  position: absolute;
  inset: 0;
}

.download-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.05);
}

.download-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8, 16, 32, 0.45), rgba(8, 16, 32, 0.82)),
    linear-gradient(180deg, rgba(8, 16, 32, 0.55), rgba(8, 16, 32, 0.88));
}

.download-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.download-logo {
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
}

.download h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.06em;
}

.download-inner > p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.download-note {
  margin-top: 8px !important;
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

.footer-brand span {
  font-size: 0.82rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

.footer-link {
  color: #7ec8f5;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--white);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes glowPulse {
  from {
    opacity: 0.75;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes phoneSideFloat {
  0%,
  100% {
    transform: rotate(8deg) translateY(8px);
  }
  50% {
    transform: rotate(8deg) translateY(-6px);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .hero-glow,
  .hero-phone-main,
  .hero-phone-side,
  .phone-main,
  .hero-scroll span,
  .hero-content,
  .hero-stage {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stage {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .phone-side {
    display: none;
  }

  .phone-main {
    transform: none;
  }

  .experience-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-visual {
    order: -1;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-brand-lockup,
  .hero-actions {
    justify-content: center;
  }

  .hero-stage {
    height: auto;
    min-height: 380px;
    margin-inline: auto;
    width: min(420px, 100%);
  }

  .hero-phone-side {
    right: 8%;
    bottom: 4%;
    width: min(150px, 38%);
  }

  .hero-bg {
    object-position: 70% center;
  }

  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(6, 12, 26, 0.72) 0%,
      rgba(8, 16, 32, 0.78) 42%,
      rgba(8, 16, 32, 0.92) 100%
    );
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 72px 0;
  }

  .trust-bar-inner,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-left: 0;
    border-top: 2px solid rgba(43, 157, 232, 0.55);
    padding: 12px 0 4px;
  }

  .hero {
    align-items: start;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 64px;
  }

  .hero-logo {
    width: 56px;
    height: 56px;
  }

  .hero-stage {
    min-height: 340px;
  }

  .hero-phone-main {
    width: min(210px, 56%);
  }

  .hero-phone-side {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
