/* =========================================
   学霸到家 - Custom Styles
   ========================================= */

:root {
  --primary: #ff7a45;
  --primary-dark: #f0552a;
  --primary-light: #ffb199;
  --warm-bg: #fff7f2;
  --text-dark: #2d2a32;
  --text-muted: #8a858f;
  --footer-bg: #241f26;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero / Welcome ---------- */
.shards-app-promo-page--1 .welcome {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff8a5c 0%, #ff6a3d 45%, #f5471f 100%) !important;
  background-attachment: scroll !important;
  overflow: hidden;
}

/* soft decorative glow */
.shards-app-promo-page--1 .welcome:before {
  display: none;
}

.welcome::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -220px;
  right: -160px;
  pointer-events: none;
}

.welcome .inner-wrapper {
  position: relative;
  z-index: 2;
}

.welcome-heading {
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.welcome .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.25rem;
  letter-spacing: 4px;
}

/* Nav */
.welcome .navbar {
  position: relative;
  z-index: 2;
}

.welcome .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.welcome .nav-link {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 1.1rem !important;
  transition: opacity 0.2s ease;
}

.welcome .nav-link:hover {
  opacity: 0.8;
}

/* CTA button */
.btn-hero {
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.75rem 2.4rem;
  border-radius: 50rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  color: var(--primary-dark);
}

/* Phone mockup：固定较大宽度并裁掉底部，视觉上更宽大饱满 */
.shards-app-promo-page--1 .welcome .iphone-mockup {
  max-width: none !important;
  width: min(32vw, 400px) !important;
  height: min(80vh, 660px) !important;
  object-fit: cover;
  object-position: top center;
  border-radius: 36px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* ---------- Features ---------- */
.app-features.section {
  background: var(--warm-bg);
  position: relative;
}

.app-features .section-title {
  font-weight: 700;
  color: var(--text-dark);
}

.app-features .feature {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem !important;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(240, 85, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-features .feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(240, 85, 42, 0.16);
}

.app-features .feature .icon {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px !important;
  height: 52px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  box-shadow: 0 8px 18px rgba(240, 85, 42, 0.3);
  margin-right: 1.5rem !important;
}

.app-features .feature h5 {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.app-features .feature p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* 左侧截图：与右侧同一背景，以白色手机框样式居中呈现 */
.features-phone {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border: 10px solid #ffffff;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(240, 85, 42, 0.18);
}

/* 标题下划线改为品牌色 */
.shards-app-promo-page--1 .section-title:after {
  background: var(--primary) !important;
  height: 3px !important;
  border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.25rem 0;
}

.site-footer .footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.site-footer .footer-links {
  margin-bottom: 1rem;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin: 0 0.9rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: var(--primary-light);
}

.site-footer .footer-copy {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* 关键：备案号 + 编号保持同一行，不换行 */
.site-footer .beian {
  display: inline-block;
  white-space: nowrap;
}

.site-footer .beian a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .beian a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .welcome-heading {
    letter-spacing: 1px;
  }

  .welcome .text-muted {
    font-size: 1.05rem;
    letter-spacing: 2px;
  }

  .shards-app-promo-page--1 .welcome .iphone-mockup {
    width: min(64vw, 280px) !important;
    height: 54vh !important;
    margin-top: 2rem;
  }

  .features-phone {
    max-width: 280px;
    border-width: 8px;
  }

  .app-features-wrapper {
    text-align: left;
  }

  /* 移动端：版权与备案号各占一行，但备案号自身仍不折行 */
  .site-footer .footer-copy {
    display: block;
    line-height: 1.8;
  }

  .site-footer .beian {
    display: block;
    white-space: nowrap;
    margin-top: 0.35rem;
  }
}
