/* QuickEdit 下载站 - 移动端优先（品牌蓝对齐 logo） */
:root {
  --qe-primary: #556ffe;
  --qe-primary-dark: #3d56d4;
  --qe-primary-light: #7b91ff;
  --qe-accent: #5b7cff;
  --qe-bg: #f3f5ff;
  --qe-bg-deep: #e8ecff;
  --qe-surface: #ffffff;
  --qe-ink: #1a2238;
  --qe-muted: #5a6480;
  --qe-line: #d4daf2;
  --qe-dark: #12182b;
  --qe-dark-card: #1a2340;
  --qe-shadow: 0 8px 28px rgba(61, 86, 212, 0.14);
  --qe-radius: 14px;
  --qe-bar-h: 64px;
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--qe-ink);
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(85, 111, 254, 0.18), transparent 55%),
    radial-gradient(90% 60% at -10% 20%, rgba(61, 86, 212, 0.12), transparent 50%),
    linear-gradient(180deg, #eef1ff 0%, var(--qe-bg) 40%, #f8f9ff 100%);
  line-height: 1.65;
  padding-bottom: calc(var(--qe-bar-h) + 20px + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--qe-primary-dark);
  text-decoration: none;
}

a:hover {
  color: var(--qe-primary);
}

.container {
  width: min(960px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 245, 255, 0.92);
  border-bottom: 1px solid rgba(212, 218, 242, 0.85);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--qe-ink);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(61, 86, 212, 0.25);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--qe-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--qe-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.86rem;
}

.nav-links a {
  color: var(--qe-muted);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--qe-primary-dark);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--qe-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 24, 43, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: var(--qe-bg-deep);
    color: var(--qe-primary-dark);
  }
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
  }
}

/* Hero */
.hero {
  padding: 28px 0 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px 22px 26px;
  color: #fff;
  background:
    linear-gradient(145deg, #3d56d4 0%, #556ffe 48%, #7b91ff 100%);
  box-shadow: var(--qe-shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hero-brand {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.15;
}

.hero-tag {
  margin: 4px 0 0;
  opacity: 0.92;
  font-size: 0.92rem;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.25rem, 4.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-desc {
  margin: 0 0 18px;
  opacity: 0.95;
  font-size: 0.95rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-download {
  background: #fff;
  color: var(--qe-primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-download:hover {
  background: #f5f7ff;
  color: var(--qe-primary-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* 首页英雄区 CTA：提高对比与点击感 */
.hero-card .cta-row {
  gap: 12px;
  margin-top: 2px;
}

.hero-card .cta-row .btn {
  flex: 1 1 calc(50% - 6px);
  min-width: 132px;
  min-height: 50px;
  padding: 12px 18px;
  font-size: 1.02rem;
  font-weight: 800;
  border-radius: 14px;
  letter-spacing: 0.02em;
}

.hero-card .cta-row .btn-download {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  color: #2f48c9;
  border: 2px solid #ffffff;
  box-shadow:
    0 10px 28px rgba(18, 24, 43, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.85) inset;
}

.hero-card .cta-row .btn-download:hover {
  background: #ffffff;
  color: #2439ad;
  filter: brightness(1.03);
  box-shadow:
    0 12px 32px rgba(18, 24, 43, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.hero-card .cta-row .btn-ghost {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(18, 24, 43, 0.18);
  backdrop-filter: blur(6px);
}

.hero-card .cta-row .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

.download-stats {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.download-stats strong {
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.download-stats__sep {
  margin: 0 6px;
  opacity: 0.55;
}

.hero-card .download-stats {
  margin-top: 12px;
}

.dl-card .download-stats {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 0.8rem;
}

.dl-card .download-stats strong {
  color: #fff;
}

.panel > .download-stats,
.section .btn-download + .download-stats {
  color: var(--qe-muted);
}

.panel > .download-stats strong,
.section .btn-download + .download-stats strong {
  color: var(--qe-primary-dark);
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Sections */
.section {
  padding: 22px 0 8px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--qe-dark);
}

.section-sub {
  margin: 0 0 16px;
  color: var(--qe-muted);
  font-size: 0.92rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-card {
    padding: 36px 40px;
  }
}

.feature {
  background: var(--qe-surface);
  border: 1px solid var(--qe-line);
  border-radius: var(--qe-radius);
  padding: 16px 16px 14px;
  box-shadow: 0 2px 10px rgba(61, 86, 212, 0.05);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--qe-primary), var(--qe-accent));
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.feature p {
  margin: 0;
  color: var(--qe-muted);
  font-size: 0.9rem;
}

/* Content blocks */
.panel {
  background: var(--qe-surface);
  border: 1px solid var(--qe-line);
  border-radius: var(--qe-radius);
  padding: 18px 16px;
  margin-bottom: 12px;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel p,
.panel li {
  color: var(--qe-muted);
  font-size: 0.94rem;
}

.panel ul {
  padding-left: 1.15em;
  margin: 8px 0 0;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--qe-bg-deep);
  color: var(--qe-primary-dark);
  font-size: 0.84rem;
  border: 1px solid var(--qe-line);
}

.keyword-cloud a:hover {
  background: #d4ebe7;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 12px 12px 12px 54px;
  margin-bottom: 10px;
  background: var(--qe-surface);
  border: 1px solid var(--qe-line);
  border-radius: var(--qe-radius);
  color: var(--qe-muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--qe-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.faq details {
  background: var(--qe-surface);
  border: 1px solid var(--qe-line);
  border-radius: var(--qe-radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--qe-ink);
}

.faq details p {
  margin: 8px 0 0;
  color: var(--qe-muted);
  font-size: 0.92rem;
}

.download-cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .download-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.dl-card {
  background: linear-gradient(160deg, var(--qe-dark) 0%, var(--qe-dark-card) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
}

.dl-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.dl-card p {
  margin: 0 0 14px;
  opacity: 0.85;
  font-size: 0.9rem;
}

.dl-card .btn-download {
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0 0;
  font-size: 0.82rem;
  color: var(--qe-muted);
}

.breadcrumb a {
  color: var(--qe-primary-dark);
}

.breadcrumb span {
  color: var(--qe-ink);
}

/* Footer */
.site-footer {
  margin-top: 28px;
  padding: 22px 0 10px;
  border-top: 1px solid var(--qe-line);
  color: var(--qe-muted);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--qe-muted);
}

/* Floating download bar */
.float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 31, 30, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(38, 166, 154, 0.35);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.float-bar.show {
  transform: translateY(0);
}

.float-inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-info {
  flex: 1;
  min-width: 0;
  color: #fff;
}

.float-info strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-info span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-bar .btn-download {
  flex-shrink: 0;
  min-height: 42px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--qe-accent), var(--qe-primary));
  color: #fff;
  box-shadow: none;
}

.float-bar .btn-download:hover {
  background: linear-gradient(135deg, #7b91ff, var(--qe-primary));
  color: #fff;
}

/* APP 截图展示 */
.shot-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.shot-rail::-webkit-scrollbar {
  height: 6px;
}

.shot-rail::-webkit-scrollbar-thumb {
  background: var(--qe-line);
  border-radius: 999px;
}

.shot-card {
  flex: 0 0 auto;
  width: min(210px, 58vw);
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.phone-frame {
  position: relative;
  border-radius: 22px;
  padding: 10px 8px 12px;
  background: linear-gradient(160deg, #1a2340, #12182b);
  box-shadow: 0 14px 32px rgba(18, 24, 43, 0.22);
}

.phone-frame::before {
  content: "";
  display: block;
  width: 36%;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.phone-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 853;
  object-fit: cover;
  border-radius: 14px;
  background: #0b1020;
}

.shot-card figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--qe-ink);
}

@media (min-width: 760px) {
  .shot-rail {
    justify-content: center;
    overflow: visible;
    padding-bottom: 8px;
  }

  .shot-card {
    width: 220px;
  }
}

/* SEO helper text visually secondary */
.seo-block {
  font-size: 0.9rem;
}

.seo-block h2 {
  font-size: 1.15rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-bar,
  .btn {
    transition: none;
  }
}
