/* Sudoku landing — layout & image sizing overrides */

.site-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .site-logo {
    height: 40px;
    max-width: 160px;
  }
}

.navbar-area .navbar {
  align-items: center;
}

.slider-area--app {
  padding-top: 72px;
  background: linear-gradient(180deg, #e8f5e9 0%, #f4f6f7 100%);
  --slide-outer-h: 360px;
  /* 半宽 + 间距 + 箭头按钮，避免 PC 上压住图片 */
  --slide-half: min(42.5vw, 160px);
  --carousel-arrow-offset: calc(var(--slide-half) + 72px);
}

.slider-area--app .bd-example .carousel .carousel-inner {
  background: transparent;
  /* 覆盖主题里 700px 固定高度，避免非激活项把容器撑乱 */
  min-height: var(--slide-outer-h, 360px);
}

.slider-area--app .bd-example .carousel .carousel-inner .carousel-item {
  height: auto !important;
  background: transparent;
}

/* 不要改 .carousel-item 的 display，否则会叠在一起 */
.slider-area--app .carousel-slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px 28px;
  box-sizing: border-box;
}

.slider-area--app .slide-frame {
  width: min(85vw, 320px);
  height: min(85vw, 320px);
  max-height: 52vh;
  max-width: min(320px, 52vh);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  background: #fff;
  flex-shrink: 0;
}

.slider-area--app .slide-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 576px) {
  .slider-area--app {
    --slide-outer-h: 420px;
    --slide-half: min(200px, 21vw);
    --carousel-arrow-offset: calc(var(--slide-half) + 80px);
  }

  .slider-area--app .carousel-slide-inner {
    padding: 28px 56px 36px;
  }

  .slider-area--app .slide-frame {
    width: min(400px, 42vw);
    height: min(400px, 42vw);
    max-height: 56vh;
    max-width: min(400px, 56vh);
  }
}

@media (min-width: 992px) {
  .slider-area--app {
    --slide-outer-h: 480px;
    --slide-half: 200px;
    --carousel-arrow-offset: calc(var(--slide-half) + 96px);
  }

  .slider-area--app .slide-frame {
    width: 400px;
    height: 400px;
    max-height: min(400px, 58vh);
    max-width: min(400px, 58vh);
  }
}

/* 覆盖主题轮播箭头（默认 opacity:0、left:70px 等） */
.slider-area--app .bd-example .carousel .carousel-control-prev,
.slider-area--app .bd-example .carousel .carousel-control-next {
  opacity: 1 !important;
  top: 55%;
  bottom: auto;
  width: auto;
  height: auto;
  font-size: inherit;
  transform: translateY(-50%);
}

.slider-area--app .bd-example .carousel .carousel-control-prev {
  left: max(4px, calc(50% - var(--carousel-arrow-offset)));
}

.slider-area--app .bd-example .carousel .carousel-control-next {
  right: max(4px, calc(50% - var(--carousel-arrow-offset)));
}

.slider-area--app .bd-example .carousel:hover .carousel-control-prev {
  left: max(4px, calc(50% - var(--carousel-arrow-offset))) !important;
}

.slider-area--app .bd-example .carousel:hover .carousel-control-next {
  right: max(4px, calc(50% - var(--carousel-arrow-offset))) !important;
}

.slider-area--app .carousel-nav-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #2e7d32;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.slider-area--app .app-indicators {
  position: static;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-area--app .app-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.35);
  border: 0;
}

.slider-area--app .app-indicators li.active {
  background-color: #2e7d32;
}

.about-area--app {
  padding-top: 80px;
  padding-bottom: 80px;
}

.about-area--app .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.about-area--app .section-head .title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
  color: #121212;
}

.about-area--app .section-head .lead {
  font-size: 18px;
  line-height: 1.6;
  color: #6c6c6c;
  margin-top: 12px;
}

.about-area--app .about-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(254, 81, 150, 0.25);
}

.about-area--app .single-about {
  align-items: flex-start;
  gap: 0;
}

.about-area--app .about-content {
  padding-left: 24px;
}

@media (max-width: 575px) {
  .about-area--app .about-content {
    padding-left: 0;
    padding-top: 20px;
  }
}

.about-area--app .about-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #121212;
  margin: 0;
}

.about-area--app .feature-list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.about-area--app .feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #121212;
}

.about-area--app .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(to right, #f77062, #fe5196);
}

.about-area--app .showcase-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-area--app .showcase-frame {
  width: min(85vw, 320px);
  height: min(85vw, 320px);
  max-width: min(320px, 50vh);
  max-height: min(320px, 50vh);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.about-area--app .showcase-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 576px) {
  .about-area--app .showcase-frame {
    width: min(360px, 38vw);
    height: min(360px, 38vw);
    max-width: min(360px, 52vh);
    max-height: min(360px, 52vh);
  }
}

@media (min-width: 992px) {
  .about-area--app .showcase-frame {
    width: 380px;
    height: 380px;
    max-height: min(380px, 55vh);
    max-width: min(380px, 55vh);
  }
}

.footer-area--app {
  background-color: #121212;
}

.footer-area--app .footer-copyright {
  padding: 28px 0 32px;
  border: 0;
}

.footer-area--app .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-area--app .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
}

.footer-area--app .footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.footer-area--app .footer-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-area--app .footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.footer-area--app .footer-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .footer-area--app .footer-copyright {
    padding: 36px 0 40px;
  }

  .footer-area--app .footer-inner {
    gap: 16px;
  }
}

/* —— Privacy policy page —— */
.policy-page .policy-header .navbar-area {
  position: relative;
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.policy-main {
  padding: 48px 0 72px;
  background-color: #fff;
}

.policy-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px;
}

.policy-title {
  font-size: 2rem;
  font-weight: 600;
  color: #121212;
  margin: 0 0 20px;
  line-height: 1.25;
}

.policy-intro {
  font-size: 16px;
  line-height: 1.65;
  color: #121212;
  margin-bottom: 32px;
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #121212;
  margin: 0 0 14px;
  line-height: 1.35;
}

.policy-section p {
  font-size: 15px;
  line-height: 1.65;
  color: #121212;
  margin: 0 0 12px;
}

.policy-section ul {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.policy-section li {
  font-size: 15px;
  line-height: 1.65;
  color: #121212;
  margin-bottom: 6px;
}

.policy-section a {
  color: #fe5196;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-section a:hover {
  color: #f77062;
}

.policy-links li {
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .policy-main {
    padding: 64px 0 88px;
  }

  .policy-title {
    font-size: 2.25rem;
  }
}
