/* =============================================================
   舒尔特方格专业版 — 官网 stylesheet
   ============================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
blockquote {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

/* ---------- Tokens ---------- */
:root {
  --color-text-primary: #1F1F1F;
  --color-text-secondary: #6B6B6B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAF7;
  --color-accent: #FF4F00;
  --color-accent-hover: #E04600;
  --color-border: #E5E5E5;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container-max: 1200px;
  --header-height: 72px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.10);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(32px, 3.5vw, 44px);
}
h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  color: var(--color-text-secondary);
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--color-text-secondary);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 72px 0;
}
@media (min-width: 768px) {
  .section {
    padding: 120px 0;
  }
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  font-size: clamp(16px, 1.4vw, 19px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: #F5F5F5;
  border-color: #D8D8D8;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text-primary);
}
.site-logo img,
.site-logo svg {
  width: 32px;
  height: 32px;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-desktop a {
  font-size: 15px;
  color: var(--color-text-primary);
  font-weight: 500;
}
.nav-desktop a:hover {
  color: var(--color-accent);
}
.header-cta {
  display: none;
}
@media (min-width: 900px) {
  .nav-desktop,
  .header-cta {
    display: flex;
  }
}

/* hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* mobile menu */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 24px;
  transform: translateY(-110%);
  transition: transform 0.25s ease;
  z-index: 99;
}
.nav-mobile.is-open {
  transform: translateY(0);
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile a {
  display: block;
  padding: 14px 8px;
  font-size: 17px;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:last-child {
  border-bottom: 0;
}
.nav-mobile .btn {
  width: 100%;
  margin-top: 16px;
}
@media (min-width: 900px) {
  .nav-mobile {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, #FFF7F2 0%, #FFFFFF 100%);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + 96px);
    padding-bottom: 120px;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
  }
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .lead {
  margin-bottom: 16px;
  color: var(--color-accent);
  font-weight: 600;
}
.hero p.hero-desc {
  margin-bottom: 32px;
  font-size: clamp(16px, 1.3vw, 18px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual img,
.hero-visual svg {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  box-shadow:
    0 30px 60px rgba(31, 31, 31, 0.18),
    0 8px 20px rgba(31, 31, 31, 0.06);
}

/* ---------- Why cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.why-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.why-card .icon-wrap {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: #FFF1E8;
  color: var(--color-accent);
  margin-bottom: 24px;
}
.why-card .icon-wrap svg {
  width: 28px;
  height: 28px;
}
.why-card h3 {
  margin-bottom: 12px;
}
.why-card p {
  font-size: 16px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.feature-item .icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #FFF1E8;
  color: var(--color-accent);
}
.feature-item .icon-wrap svg {
  width: 24px;
  height: 24px;
}
.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-primary);
}
.feature-item p {
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Screenshots ---------- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 600px) {
  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1000px) {
  .screenshots-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.screenshot {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  aspect-ratio: 9 / 19.5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.screenshot:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.screenshot img,
.screenshot svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Try Now ---------- */
.try-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .try-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.try-card {
  padding: 48px 36px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.try-card.is-primary {
  background: linear-gradient(180deg, #FFF7F2 0%, #FFE9DB 100%);
  border-color: transparent;
}
.try-card .badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 16px;
}
.try-card .badge.is-live {
  background: #E8F8EE;
  color: #1F8F44;
}
.try-card .badge.is-soon {
  background: #FFE9DB;
  color: var(--color-accent);
}
.try-card h3 {
  margin-bottom: 12px;
}
.try-card p {
  font-size: 16px;
  margin-bottom: 24px;
}
.qr-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 0 auto 16px;
}
.qr-wrap img,
.qr-wrap svg {
  width: 100%;
  height: 100%;
}
.qr-tip {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.app-soon-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

/* ---------- About ---------- */
.about-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-wrap h2 {
  margin-bottom: 24px;
}
.about-wrap p {
  font-size: clamp(16px, 1.4vw, 19px);
  margin-bottom: 24px;
}
.about-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-accent);
}
.about-contact:hover {
  color: var(--color-accent-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 56px;
  background: #1F1F1F;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s;
}
.site-footer a:hover {
  color: #fff;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.footer-links .sep {
  opacity: 0.4;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 80px;
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}
.legal-content .meta {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.legal-content h2 {
  font-size: clamp(22px, 2vw, 26px);
  margin: 40px 0 16px;
  font-weight: 700;
}
.legal-content h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  font-weight: 600;
}
.legal-content p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 1.7;
}
.legal-content ul {
  margin-bottom: 16px;
  padding-left: 0;
}
.legal-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--color-text-primary);
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}
.legal-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
}
.legal-content .back-link:hover {
  color: var(--color-accent);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.no-scroll {
  overflow: hidden;
}
