/* 易小算 产品站 — 清爽移动风 + 桌面适配 */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --line: #e8eaed;
  --primary: #5b78e6;
  --primary-dark: #3d5acb;
  --accent: #f97316;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: none;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--primary);
}

.hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 320px;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 700;
}

.hero-slogan {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.45;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--text);
}

.highlight {
  color: var(--primary);
}

.lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 36em;
}

.hero-alert {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.65;
}

.hero-alert-key {
  color: var(--primary-dark);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(91, 120, 230, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--line);
}

.hero-shot {
  display: flex;
  justify-content: center;
}

.hero-shot img {
  max-width: 280px;
  margin-inline: auto;
}

/* 手机端：首屏介绍图限制高度与宽度，避免单图占满整屏 */
@media (max-width: 899px) {
  .hero {
    padding: 28px 0 40px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-shot {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: min(38vh, 220px);
  }

  .hero-shot img {
    max-width: min(68vw, 240px);
    max-height: min(38vh, 220px);
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* 首屏文案与配图：轻量入场（尊重系统减少动效） */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-fade-up {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-copy .eyebrow {
    animation: hero-fade-up 0.45s ease backwards;
  }

  .hero-copy h1 {
    animation: hero-fade-up 0.5s ease 0.06s backwards;
  }

  .hero-copy .lead {
    animation: hero-fade-up 0.52s ease 0.1s backwards;
  }

  .hero-copy .hero-cta {
    animation: hero-fade-up 0.52s ease 0.14s backwards;
  }

  /* 配图淡入（与下方 max-height 共用 transform，不再叠加循环动画以免冲突） */
  .hero-shot img {
    animation: hero-fade-up 0.55s ease 0.12s backwards;
  }
}

/* 滚动进入视口：区块淡入 */
.js-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* 界面预览：小屏下单张截图限制高度，避免撑满视窗 */
@media (max-width: 599px) {
  .screen-grid img {
    max-height: min(46vh, 260px);
    width: auto;
    margin-inline: auto;
    object-fit: contain;
  }
}

/* 界面预览：进入视口后错开淡入 + 悬停微动效 */
@keyframes screen-shot-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screen-grid figure {
  margin: 0;
  text-align: center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-grid figure img {
  cursor: zoom-in;
  transition: box-shadow 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-grid figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.25s ease, transform 0.32s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .screens.js-reveal.is-visible .screen-grid figure {
    animation: screen-shot-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .screens.js-reveal.is-visible .screen-grid figure:nth-child(1) {
    animation-delay: 0.05s;
  }
  .screens.js-reveal.is-visible .screen-grid figure:nth-child(2) {
    animation-delay: 0.11s;
  }
  .screens.js-reveal.is-visible .screen-grid figure:nth-child(3) {
    animation-delay: 0.17s;
  }
  .screens.js-reveal.is-visible .screen-grid figure:nth-child(4) {
    animation-delay: 0.23s;
  }
  .screens.js-reveal.is-visible .screen-grid figure:nth-child(5) {
    animation-delay: 0.29s;
  }
  .screens.js-reveal.is-visible .screen-grid figure:nth-child(6) {
    animation-delay: 0.35s;
  }

  .screen-grid:not(.screen-grid--open) figure:hover {
    transform: translateY(-4px);
  }

  .screen-grid:not(.screen-grid--open) figure:hover img {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(91, 120, 230, 0.16);
  }

  .screen-grid:not(.screen-grid--open) figure:hover figcaption {
    color: var(--primary-dark);
    transform: translateY(1px);
  }

  /* 页面内放大：当前图略撑开，左右邻图外移让位 */
  .screen-grid--open figure.is-nudge-prev {
    transform: translateX(-16px);
  }

  .screen-grid--open figure.is-nudge-next {
    transform: translateX(16px);
  }

  .screen-grid--open figure.is-expanded {
    z-index: 2;
  }

  .screen-grid--open figure.is-expanded img {
    transform: scale(1.12);
    box-shadow: 0 18px 44px rgba(91, 120, 230, 0.28);
    cursor: zoom-out;
  }

  .screen-grid--open figure.is-expanded figcaption {
    color: var(--primary-dark);
    font-weight: 600;
  }

  .screen-grid--open figure:not(.is-expanded):not(.is-nudge-prev):not(.is-nudge-next):hover img {
    transform: none;
    box-shadow: var(--shadow);
  }

  .screen-grid--open figure.is-nudge-prev:hover {
    transform: translateX(-16px);
  }

  .screen-grid--open figure.is-nudge-next:hover {
    transform: translateX(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-grid figure:hover {
    transform: none;
  }

  .screen-grid figure:hover img {
    transform: none;
    box-shadow: var(--shadow);
  }

  .screen-grid--open figure.is-expanded img {
    transform: none;
    box-shadow: var(--shadow);
  }

  .screen-grid--open figure.is-nudge-prev,
  .screen-grid--open figure.is-nudge-next {
    transform: none;
  }
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 0.95rem;
}

.features {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-grid--three {
  grid-template-columns: 1fr;
  max-width: 960px;
  margin-inline: auto;
}

@media (min-width: 700px) {
  .feature-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(91, 120, 230, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 120, 230, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card {
    transition: border-color 0.2s ease;
  }

  .feature-card:hover {
    transform: none;
  }
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.screen-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.download {
  padding-bottom: 72px;
}

.download-card {
  background: linear-gradient(145deg, #ede9fe 0%, #dbeafe 40%, var(--surface) 100%);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-card .section-title {
  margin-bottom: 12px;
}

.download-card > p {
  color: var(--muted);
  max-width: 36em;
  margin-inline: auto;
}

.download-card .fine-print a {
  color: var(--primary-dark);
  font-weight: 500;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 28px 0 8px;
}

.btn-download {
  min-width: 160px;
  padding: 14px 28px;
}

.btn-android {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

.btn-android:hover {
  color: #fff;
}

.btn-ios {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-ios:hover {
  color: #fff;
}

.fine-print {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 16px 0 0;
}

.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 28px 0;
  font-size: 0.9rem;
}

.footer-inner {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 12px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fff;
}

.official-intro .intro-text {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.official-intro .intro-text p {
  margin: 0 0 14px;
}

.official-intro .intro-text p:last-child {
  margin-bottom: 0;
}

.about-block {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-inner p {
  margin: 0 0 8px;
}

.footer-icp {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.footer-icp-label {
  margin-right: 6px;
  color: #94a3b8;
}

.footer-icp a {
  color: #93c5fd;
  text-decoration: none;
}

.footer-icp a:hover {
  text-decoration: underline;
}

.site-footer .fine-print {
  color: #64748b;
  margin: 0;
}

/* —— 联系我们 —— */
.page-contact .contact-main {
  padding: 40px 0 56px;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 45%);
}

.contact-wrap {
  max-width: 560px;
}

.contact-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
}

.contact-title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.contact-lead {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.contact-card--plain {
  box-shadow: none;
}

.contact-card__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-card__value {
  margin: 0;
  font-size: 1.25rem;
}

.contact-tel {
  font-weight: 600;
  color: var(--primary-dark);
}

.contact-wechat {
  text-align: center;
}

.contact-qrcode {
  max-width: 200px;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.contact-wechat__hint {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-icp {
  margin: 0;
  font-size: 0.95rem;
}

.contact-icp a {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--primary);
}

.contact-wrap--wide {
  max-width: 720px;
}

.seo-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.seo-list li {
  margin-bottom: 4px;
}

.seo-cta {
  margin: 18px 0 0;
}

.seo-cta .btn-download {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.seo-cta .btn-download:hover {
  text-decoration: none;
}

.section-more {
  text-align: center;
  color: var(--muted);
  margin: 28px 0 0;
  font-size: 0.95rem;
}

.related-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-links h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.related-links ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer--company .footer-company {
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.site-footer--company .footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}
