/* 扒书官网首页 — 对齐 Figma「ai 官网」设计 */
:root {
  --lp-primary: #0052d9;
  --lp-primary-dark: #003cab;
  --lp-primary-light: #e8f3ff;
  --lp-accent: #ff8a3d;
  --lp-text: #141829;
  --lp-text-muted: #5a6178;
  --lp-text-light: #8b92a8;
  --lp-bg: #f8faff;
  --lp-white: #ffffff;
  --lp-border: rgba(20, 24, 41, 0.08);
  --lp-shadow: 0 16px 48px rgba(0, 82, 217, 0.08);
  --lp-shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --lp-radius: 16px;
  --lp-radius-lg: 24px;
  --lp-max: 1200px;
  --lp-header-h: 72px;
}

.lp-page {
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, sans-serif;
  overflow-x: hidden;
}

/* 正文链接；按钮类单独样式，避免覆盖背景色与字色 */
.lp-page a:not([class*="lp-btn"]) {
  color: var(--lp-primary);
  transition: color 0.15s ease;
}

.lp-page a:not([class*="lp-btn"]):hover {
  color: var(--lp-primary-dark);
}

/* 背景光晕 */
.lp-bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lp-bg-blobs::before,
.lp-bg-blobs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.lp-bg-blobs::before {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, #b8d4ff 0%, transparent 70%);
}

.lp-bg-blobs::after {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: -100px;
  background: radial-gradient(circle, #ffe4c8 0%, transparent 70%);
}

/* 顶栏 */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--lp-header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-border);
}

.lp-header__inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.lp-brand:hover {
  color: inherit;
  text-decoration: none;
}

.lp-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.15);
}

.lp-brand__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: 0.02em;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lp-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-text-muted);
  text-decoration: none;
}

.lp-nav__link:hover {
  color: var(--lp-primary);
  text-decoration: none;
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.lp-btn:hover,
.lp-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.lp-btn--ghost {
  background-color: transparent;
  color: var(--lp-text-muted);
}

.lp-btn--ghost:hover,
.lp-btn--ghost:focus {
  color: var(--lp-primary);
  background-color: var(--lp-primary-light);
}

.lp-btn--primary {
  background-color: var(--lp-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 82, 217, 0.28);
}

.lp-btn--primary:hover,
.lp-btn--primary:focus {
  background-color: var(--lp-primary-dark);
  color: #fff;
}

.lp-btn--outline {
  background-color: var(--lp-white);
  color: var(--lp-primary);
  border: 1.5px solid rgba(0, 82, 217, 0.25);
}

.lp-btn--outline:hover,
.lp-btn--outline:focus {
  background-color: var(--lp-primary-light);
  color: var(--lp-primary);
  border-color: rgba(0, 82, 217, 0.35);
}

.lp-btn--lg {
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 12px;
}

.lp-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--lp-primary-light);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lp-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lp-primary);
  border-radius: 1px;
}

/* Hero */
.lp-hero {
  position: relative;
  z-index: 1;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.lp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--lp-primary-light);
  color: var(--lp-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.lp-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-primary);
  animation: lp-pulse 2s ease infinite;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lp-hero__title {
  margin: 0 0 8px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

.lp-hero__title-accent {
  display: block;
  background: linear-gradient(135deg, var(--lp-primary) 0%, #3d8bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero__desc {
  margin: 20px 0 32px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--lp-text-muted);
  max-width: 480px;
}

.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--lp-border);
}

.lp-stat__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--lp-text);
  line-height: 1.2;
}

.lp-stat__label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--lp-text-light);
}

/* Dashboard 预览 */
.lp-dashboard {
  position: relative;
  background: var(--lp-white);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-lg);
  border: 1px solid var(--lp-border);
  padding: 24px;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.lp-dashboard__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.lp-dash-card {
  background: #f6f8fc;
  border-radius: 12px;
  padding: 14px;
}

.lp-dash-card__label {
  font-size: 11px;
  color: var(--lp-text-light);
  margin-bottom: 6px;
}

.lp-dash-card__val {
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-dash-card__val--up {
  color: #00a870;
}

.lp-dash-card__val--up::before {
  content: "↑ ";
  font-size: 14px;
}

.lp-dashboard__chart {
  background: #f6f8fc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.lp-dashboard__chart-title {
  font-size: 12px;
  color: var(--lp-text-light);
  margin-bottom: 12px;
}

.lp-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
}

.lp-chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--lp-primary) 0%, #6ba8ff 100%);
  border-radius: 6px 6px 0 0;
  min-height: 20px;
}

.lp-dashboard__bottom {
  display: flex;
  gap: 12px;
}

.lp-dash-action {
  flex: 1;
  padding: 12px;
  background: var(--lp-primary-light);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-primary);
  text-align: center;
}

.lp-float-card {
  position: absolute;
  bottom: -16px;
  left: -24px;
  background: var(--lp-white);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--lp-shadow);
  border: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.lp-float-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e6f7ef;
  color: #00a870;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* 通用区块 */
.lp-section {
  position: relative;
  z-index: 1;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 80px 24px;
}

.lp-section--alt {
  background: var(--lp-white);
  max-width: none;
}

.lp-section--alt .lp-section__inner {
  max-width: var(--lp-max);
  margin: 0 auto;
}

.lp-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.lp-section__title {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.02em;
}

.lp-section__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lp-text-muted);
}

/* 功能卡片 */
.lp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lp-feature {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-section--alt .lp-feature {
  background: var(--lp-white);
}

.lp-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow);
}

.lp-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lp-primary-light);
  color: var(--lp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.lp-feature__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-feature__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--lp-text-muted);
}

.lp-feature--platforms .lp-feature__title {
  margin-bottom: 8px;
}

.lp-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lp-platform-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.lp-platform-tag--pdd {
  color: #fff;
  background: linear-gradient(135deg, #f2270c, #e02e24);
}

.lp-platform-tag--kfz {
  color: #5c3b1e;
  background: #f5ead6;
  border: 1px solid #d4b896;
}

.lp-platform-tag--xy {
  color: #1f1f1f;
  background: #ffe60f;
  border: 1px solid #e6cf00;
}

/* 客户案例 */
.lp-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-case {
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-case:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow);
}

.lp-case__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.lp-case__tag--textbook {
  color: #0d47a1;
  background: #e3f2fd;
}

.lp-case__tag--social {
  color: #6a1b9a;
  background: #f3e5f5;
}

.lp-case__tag--newbook {
  color: #2e7d32;
  background: #e8f5e9;
}

.lp-case__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--lp-text);
  line-height: 1.35;
}

.lp-case__desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--lp-text-muted);
}

.lp-case__highlights {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--lp-border);
}

.lp-case__highlights li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-text-muted);
}

.lp-case__highlights li:last-child {
  margin-bottom: 0;
}

.lp-case__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lp-primary);
}

.lp-case__highlights strong {
  color: var(--lp-text);
  font-weight: 700;
}

/* 解决方案双栏 */
.lp-solutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lp-solution {
  background: linear-gradient(145deg, #f0f6ff 0%, #fff 100%);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 36px 32px;
}

.lp-solution__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--lp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
}

.lp-solution__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
}

.lp-solution__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-solution__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--lp-text-muted);
}

.lp-solution__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-primary);
}

/* 下载 / 联系 */
.lp-download {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-download-card {
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

.lp-download-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.lp-download-card__desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.lp-download-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lp-download-card__hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--lp-text-light);
}

/* CTA */
.lp-cta {
  position: relative;
  z-index: 1;
  max-width: var(--lp-max);
  margin: 0 auto 80px;
  padding: 0 24px;
}

.lp-cta__box {
  background: linear-gradient(135deg, var(--lp-primary) 0%, #1a6fff 50%, #3d8bff 100%);
  border-radius: var(--lp-radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 64px rgba(0, 82, 217, 0.35);
}

.lp-cta__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
}

.lp-cta__desc {
  margin: 0 0 28px;
  font-size: 16px;
  opacity: 0.9;
}

.lp-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.lp-cta .lp-btn--primary {
  background-color: #fff;
  color: var(--lp-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lp-cta .lp-btn--primary:hover,
.lp-cta .lp-btn--primary:focus {
  background-color: #f0f6ff;
  color: var(--lp-primary-dark);
}

.lp-cta .lp-btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background-color: transparent;
}

.lp-cta .lp-btn--outline:hover,
.lp-cta .lp-btn--outline:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

/* 页脚 */
.lp-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--lp-border);
  background: var(--lp-white);
  padding: 40px 24px;
}

.lp-footer__inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--lp-text-light);
}

.lp-footer a {
  color: var(--lp-text-muted);
}

/* PDD 弹窗保留 */
#pddModel {
  position: fixed;
  z-index: 9999;
}

/* 响应式 */
@media (max-width: 1024px) {
  .lp-hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .lp-hero__visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .lp-dashboard {
    transform: none;
  }

  .lp-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-cases {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .lp-download {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .lp-nav,
  .lp-header__actions .lp-btn--ghost {
    display: none;
  }

  .lp-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--lp-header-h);
    left: 0;
    right: 0;
    background: var(--lp-white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--lp-border);
    box-shadow: var(--lp-shadow);
    gap: 16px;
  }

  .lp-menu-toggle {
    display: flex;
  }

  .lp-hero__title {
    font-size: 34px;
  }

  .lp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-features,
  .lp-solutions,
  .lp-cases {
    grid-template-columns: 1fr;
  }

  .lp-section__title {
    font-size: 28px;
  }

  .lp-cta__box {
    padding: 40px 24px;
  }

  .lp-float-card {
    display: none;
  }
}
