:root {
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-dark: #6D3FE8;
  --accent: #EC4899;
  --dark: #221B36;
  --dark-2: #3A2E63;
  --border: #EAE5F7;
  --bg: #F7F6FC;
  --card: #FFFFFF;
  --text: #2A2340;
  --text-sub: #6E6882;
  --radius: 16px;
  --radius-sm: 12px;
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --shadow: 0 6px 20px rgba(139, 92, 246, .08);
  --shadow-hover: 0 14px 32px rgba(139, 92, 246, .16);
  --nav-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

.nav-inner,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ver {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(139, 92, 246, .1);
  border: 1px solid rgba(139, 92, 246, .25);
  border-radius: 999px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu a {
  padding: 8px 11px;
  font-size: 14px;
  color: var(--text-sub);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}

.nav-menu a:hover {
  color: var(--primary);
  background: rgba(139, 92, 246, .08);
}

.nav-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, .3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, .4);
}

.hero {
  padding: calc(var(--nav-h) + 56px) 0 72px;
  background: linear-gradient(180deg, #F0EBFE 0%, var(--bg) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text,
.hero-img {
  flex: 1 1 0;
  min-width: 0;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero-desc {
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  color: var(--text-sub);
}

.hero-btns {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-btn,
.btn,
.download-btn {
  transition: transform .2s, box-shadow .2s;
}

.btn,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.btn {
  padding: 14px 30px;
  font-size: 15px;
  color: #fff;
}

.btn-primary {
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(139, 92, 246, .32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, .42);
}

.btn-ghost {
  color: var(--primary-dark);
  background: var(--card);
  border: 1.5px solid rgba(139, 92, 246, .35);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.hero-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 72px 0;
}

.section-title {
  position: relative;
  padding-bottom: 16px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-sub);
  text-align: center;
}

.works-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-card,
.feature-card,
.stat-card,
.review-card,
.version-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work-card,
.feature-card,
.stat-card,
.review-card {
  transition: transform .25s, box-shadow .25s;
}

.work-card:hover,
.feature-card:hover,
.stat-card:hover,
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.work-card {
  padding: 10px;
}

.work-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}

.intro-text {
  max-width: 860px;
  margin: 36px auto 0;
  font-size: 15.5px;
  color: var(--text-sub);
}

.intro-text p + p {
  margin-top: 16px;
}

.features-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(236, 72, 153, .12));
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
}

.feature-card p,
.review-text,
.version-list li,
.faq-a-inner {
  font-size: 14.5px;
  color: var(--text-sub);
}

.compare {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  align-items: center;
}

.compare-row + .compare-row {
  border-top: 1px solid var(--border);
}

.compare-head {
  background: var(--dark);
}

.compare-head .compare-cell {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.compare-cell {
  padding: 16px 20px;
  font-size: 14.5px;
}

.compare-name,
.compare-other {
  color: var(--text-sub);
}

.compare-name {
  font-weight: 600;
}

.compare-us {
  font-weight: 600;
  color: var(--primary-dark);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  vertical-align: -2px;
}

.mark-ok {
  background: var(--grad);
}

.mark-no {
  background: #C9C5D6;
}

.stats-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 34px 16px;
  text-align: center;
}

.logo,
.stat-num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-sub);
}

.reviews-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 24px;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: var(--grad);
}

.review-name {
  font-size: 15px;
  font-weight: 700;
}

.review-stars {
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #F5A623;
}

.review-text {
  margin-top: 14px;
}

.version-card {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 32px;
}

.version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.version-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
}

.version-date {
  font-size: 14px;
  color: var(--text-sub);
}

.version-list {
  margin-top: 10px;
  list-style: none;
}

.version-list li {
  position: relative;
  padding: 9px 0 9px 26px;
}

.version-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.faq-list {
  max-width: 820px;
  margin: 40px auto 0;
}

.faq-item {
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .25s;
}

.faq-item.open {
  box-shadow: var(--shadow-hover);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
}

.faq-q:hover {
  color: var(--primary-dark);
}

.arrow {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  border-radius: 1px;
}

.arrow::before {
  width: 14px;
  height: 2px;
}

.arrow::after {
  width: 2px;
  height: 14px;
  transition: opacity .2s;
}

.faq-item.open .arrow::after {
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a-inner {
  padding: 0 22px 18px;
}

.download {
  padding: 76px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}

.download h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.download .ver {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.download-meta {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
}

.download-btns {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.download-btn {
  min-width: 230px;
  padding: 15px 34px;
  font-size: 16px;
}

.download-btn-solid {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.download-btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .26);
}

.download-btn-line {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
}

.download-btn-line:hover {
  transform: translateY(-3px);
  border-color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.download-tip {
  margin-top: 22px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .85);
}

.footer {
  padding: 26px 0;
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, .65);
  background: #191427;
}

.footer-link {
  color: #fff;
  transition: color .2s;
}

.footer-link:hover {
  color: var(--primary-light);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(139, 92, 246, .35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}

.back-top svg {
  width: 20px;
  height: 20px;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero h1 {
    font-size: 36px;
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-inner,
  .container {
    padding: 0 20px;
  }
  .hero {
    padding: calc(var(--nav-h) + 28px) 0 44px;
  }
  .hero-inner {
    flex-direction: column;
    gap: 30px;
  }
  .hero-text {
    width: 100%;
  }
  .hero-desc {
    max-width: none;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .section {
    padding: 52px 0;
  }
  .section-title {
    font-size: 24px;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .compare-row {
    grid-template-columns: 1fr 1fr;
  }
  .compare-head {
    display: none;
  }
  .compare-name {
    grid-column: 1 / -1;
    padding: 12px 16px;
    font-size: 13px;
    background: rgba(139, 92, 246, .06);
  }
  .compare-cell {
    padding: 12px 16px;
    font-size: 13px;
  }
  .compare-other {
    background: rgba(139, 92, 246, .05);
  }
  .download {
    padding: 56px 0;
  }
  .download h1 {
    font-size: 26px;
  }
  .download-meta {
    font-size: 12px;
    white-space: nowrap;
  }
  .download-btns {
    flex-direction: column;
    width: 100%;
  }
  .download-btn {
    width: 100%;
    min-width: 0;
  }
  .version-card {
    padding: 24px 20px;
  }
  .back-top {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 27px;
  }
  .ver {
    margin-left: 8px;
    padding: 2px 9px;
    font-size: 12px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .download-meta {
    font-size: 11px;
  }
}
