/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1677ff;
}
.navbar .logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.navbar .nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s;
}
.navbar .nav-links a:hover {
  background: #e8f0fe;
  color: #1677ff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 40%, #e6f7ff 100%);
}
.hero-content {
  max-width: 700px;
}
.hero .app-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(22, 119, 255, 0.2);
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero h1 .reg {
  font-size: 0.5em;
  vertical-align: super;
  color: #999;
  font-weight: 400;
}
.hero .tagline {
  font-size: 18px;
  color: #666;
  margin-bottom: 8px;
}
.hero .sub-desc {
  font-size: 15px;
  color: #888;
  margin-bottom: 36px;
}
.hero .btn-download {
  display: inline-block;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.hero .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.45);
}
.hero .badge-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(22, 119, 255, 0.25);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #1677ff;
  margin-bottom: 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.hero .btn-download .icon {
  margin-right: 8px;
}

/* ===== Sections (通用) ===== */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  font-size: 15px;
  color: #888;
  margin-bottom: 48px;
}

/* ===== Section: Overview ===== */
.overview-section {
  background: #fff;
}
.overview-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}
.overview-text {
  flex: 1;
}
.overview-text h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.overview-text p {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.8;
}
.overview-text .highlight {
  margin-top: 20px;
  padding: 14px 18px;
  background: #f0f5ff;
  border-left: 3px solid #1677ff;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
/* ===== Carousel ===== */
.overview-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #e8f0fe;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.carousel-slide .slide-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.carousel-slide .slide-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.carousel-slide .slide-desc {
  font-size: 13px;
  color: #888;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* 导航按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 0.2s;
  z-index: 2;
}
.carousel-btn:hover {
  background: #fff;
}
.carousel-btn.prev {
  left: 12px;
}
.carousel-btn.next {
  right: 12px;
}
/* 指示点 */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
}
.carousel-dots .dot.active {
  background: #1677ff;
  transform: scale(1.3);
  border-color: #1677ff;
}

/* ===== Section: Features ===== */
.features-section {
  background: #f5f7fa;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.feature-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* ===== Section: Download ===== */
.download-section {
  background: #fff;
  text-align: center;
}
.download-section .btn-win {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 44px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin-bottom: 20px;
}
.download-section .btn-win:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.4);
}
.download-section .btn-win .btn-version {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  margin-left: 2px;
}
.download-section .sys-req {
  font-size: 13px;
  color: #999;
  line-height: 1.8;
}
.download-section .sys-req strong {
  color: #666;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: #999;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  line-height: 2;
}
.footer a {
  color: #bbb;
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
}
.footer .beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer .beian img {
  height: 16px;
  display: inline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 24px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .navbar .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 28px;
  }
  .hero .tagline {
    font-size: 16px;
  }

  .overview-grid {
    flex-direction: column;
    gap: 32px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 48px 0;
  }
  .section-title {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Purchase Page ===== */
.purchase-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.navbar .nav-links a.active {
  background: #e8f0fe;
  color: #1677ff;
  font-weight: 600;
}

/* ===== Purchase Section ===== */
.purchase-section {
  flex: 1;
  padding: 100px 24px 60px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 40%, #e6f7ff 100%);
}
.purchase-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 40px;
}
.purchase-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.purchase-subtitle {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.form-group .hint {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  margin-left: 4px;
}
.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
  color: #bbb;
}
.form-group input.error {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
}
.form-error {
  font-size: 12px;
  color: #ff4d4f;
  margin-top: 4px;
  display: none;
}
.form-error.show {
  display: block;
}

/* ===== Plan Cards ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.plan-card {
  position: relative;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.plan-card:hover {
  border-color: #91caff;
}
.plan-card.selected {
  border-color: #1677ff;
  background: #f0f5ff;
}
.plan-card .plan-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.plan-card .plan-price {
  font-size: 32px;
  font-weight: 700;
  color: #1677ff;
}
.plan-card .plan-price .unit {
  font-size: 13px;
  font-weight: 400;
  color: #888;
}
.plan-card .plan-desc {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* ===== Pay Button ===== */
.btn-pay {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.3);
  font-family: inherit;
}
.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.4);
}
.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-pay .loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* ===== QR Code ===== */
.qr-section {
  display: none;
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.qr-section.show {
  display: block;
}
.qr-section .qr-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.qr-section .qr-image {
  display: inline-block;
  width: 200px;
  height: 200px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
.qr-section .qr-image img,
.qr-section .qr-image canvas,
.qr-section .qr-image div {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-section .qr-hint {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
}
.qr-section .qr-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 16px;
  background: #fff7e6;
  border-radius: 20px;
  font-size: 13px;
  color: #d48806;
}
.qr-section .qr-status .dot {
  width: 6px;
  height: 6px;
  background: #d48806;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

/* ===== Success ===== */
.success-section {
  display: none;
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.success-section.show {
  display: block;
}
.success-section .success-icon {
  width: 56px;
  height: 56px;
  background: #f6ffed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-section .success-icon svg {
  color: #52c41a;
}
.success-section .success-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.success-section .license-key-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.success-section .license-key {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  background: #f0f5ff;
  border: 1px dashed #1677ff;
  border-radius: 8px;
  padding: 14px 20px;
  word-break: break-all;
  font-family: "Courier New", Courier, monospace;
  cursor: pointer;
  transition: background 0.2s;
  user-select: all;
}
.success-section .license-key:hover {
  background: #e6f0ff;
}
.success-section .success-email-hint {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
}
.success-section .copied-tip {
  font-size: 12px;
  color: #52c41a;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.3s;
}
.success-section .copied-tip.show {
  opacity: 1;
}

/* ===== Animations ===== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ===== Responsive (Purchase) ===== */
@media (max-width: 768px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .purchase-wrapper {
    padding: 24px 20px;
  }
  .purchase-section {
    padding: 80px 16px 40px;
  }
}
@media (max-width: 480px) {
  .purchase-title {
    font-size: 20px;
  }
  .plan-card .plan-price {
    font-size: 26px;
  }
}

/* ===== Changelog Page ===== */
.changelog-body {
  /* 去掉 flex 拉伸，让高度由内容自适应 */
}
.changelog-section {
  padding: 100px 24px 60px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 40%, #e6f7ff 100%);
}
.changelog-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 48px;
}
.changelog-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.changelog-subtitle {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 40px;
}

/* === Timeline === */

/* Vertical timeline line */
.changelog-wrapper {
  position: relative;
}
.changelog-wrapper::before {
  content: '';
  position: absolute;
  left: 34px;
  top: 130px;
  bottom: 50px;
  width: 2px;
  background: #dee8f2;
  border-radius: 1px;
}

/* Entry - timeline item */
.changelog-entry {
  position: relative;
  padding-left: 62px;
  margin-bottom: 28px;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.changelog-entry:last-of-type {
  margin-bottom: 0;
}

/* Timeline dot */
.changelog-entry::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1677ff;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #1677ff;
  z-index: 1;
}

/* Version header */
.changelog-version {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 0;
  background: none;
  border: none;
}
.changelog-version .version-tag {
  display: inline-block;
  padding: 3px 14px;
  background: #1677ff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
}
.changelog-version .version-date {
  font-size: 13px;
  color: #999;
}

/* Content body */
.changelog-body {
  padding: 0;
}
.changelog-group {
  margin-bottom: 10px;
}
.changelog-group:last-child {
  margin-bottom: 0;
}
.changelog-group .group-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 3px solid;
}
.changelog-group .group-new {
  color: #1677ff;
  border-color: #1677ff;
}
.changelog-group .group-opt {
  color: #13c2c2;
  border-color: #13c2c2;
}
.changelog-group .group-fix {
  color: #eb2f96;
  border-color: #eb2f96;
}
.changelog-group ul {
  list-style: none;
  padding: 0;
}
.changelog-group ul li {
  position: relative;
  padding: 3px 0 3px 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.changelog-group ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9d9d9;
}
.changelog-group ul li strong {
  color: #333;
}

.changelog-footer {
  text-align: center;
  padding: 20px 0 0;
  font-size: 13px;
  color: #bbb;
}

/* ===== Responsive (Changelog) ===== */
@media (max-width: 768px) {
  .changelog-wrapper {
    padding: 24px 16px;
  }
  .changelog-section {
    padding: 80px 12px 40px;
  }
  .changelog-title {
    font-size: 22px;
  }
  .changelog-wrapper::before {
    left: 18px;
  }
  .changelog-entry {
    padding-left: 40px;
  }
  .changelog-entry::before {
    left: 10px;
    width: 16px;
    height: 16px;
  }
  .changelog-version {
    flex-wrap: wrap;
    gap: 6px;
  }
}
