@charset "UTF-8";

/* ========== 基础样式重置 ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2ea44f;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1a7a33;
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 导航栏 ========== */
.site-header {
  background: #24292f;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}

.logo:hover {
  color: #fff;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: #2ea44f;
  text-decoration: none;
}

/* ========== 页面标题区 ========== */
.page-hero {
  background: linear-gradient(135deg, #24292f 0%, #1a1f27 100%);
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
}

.page-hero .logo-big {
  height: 64px;
  margin: 0 auto 16px;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero .subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-hero .actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #2ea44f;
  color: #fff;
  box-shadow: 0 2px 4px rgba(46,164,79,0.3);
}

.btn-primary:hover {
  background: #1a7a33;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(46,164,79,0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: #fff;
  color: #24292f;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #24292f;
  text-decoration: none;
}

/* ========== 主内容区 ========== */
.main-content {
  padding: 40px 0;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  width: 32px;
  height: 32px;
  background: #2ea44f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #f0fdf4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ========== 平台下载卡片 ========== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.platform-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.platform-card:hover {
  border-color: #2ea44f;
  box-shadow: 0 4px 16px rgba(46,164,79,0.1);
}

.platform-card img {
  height: 48px;
  margin: 0 auto 12px;
}

.platform-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.platform-card .version {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.platform-card .btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* ========== 图片展示 ========== */
.screenshot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.screenshot img {
  width: 100%;
  display: block;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.screenshot-caption {
  padding: 12px 16px;
  background: #f9fafb;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

/* ========== 步骤列表 ========== */
.steps {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #2ea44f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: #6b7280;
}

/* ========== 信息栏 ========== */
.info-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.info-box h4 {
  font-size: 15px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-box p {
  font-size: 14px;
  color: #15803d;
  line-height: 1.6;
}

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

.tag-green {
  background: #dcfce7;
  color: #166534;
}

.tag-blue {
  background: #dbeafe;
  color: #1e40af;
}

.tag-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

/* ========== 外部链接区 ========== */
.links-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  transition: all 0.2s;
}

.link-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #1f2937;
  text-decoration: none;
}

/* ========== 表格 ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover td {
  background: #f9fafb;
}

.data-table td {
  color: #4b5563;
}

/* ========== 页脚 ========== */
.site-footer {
  background: #1a1f27;
  color: #9ca3af;
  padding: 32px 0;
  margin-top: 60px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .main-nav {
    gap: 16px;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }

  .page-hero h1 {
    font-size: 24px;
  }

  .page-hero .actions {
    flex-direction: column;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ========== 辅助类 ========== */
.text-center { text-align: center; }
.text-gray { color: #6b7280; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

/* ========== QR 下载弹窗 ========== */
.qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}

.qr-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 32px;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-modal-overlay.active .qr-modal {
  transform: translateY(0) scale(1);
}

.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.qr-modal-close:hover {
  color: #4b5563;
  background: #f3f4f6;
}

.qr-modal-content {
  display: flex;
  gap: 28px;
  align-items: center;
}

.qr-modal-left {
  flex: 1;
  min-width: 0;
}

.qr-modal-left h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.qr-feature-list {
  list-style: none;
  margin-bottom: 16px;
}

.qr-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
  line-height: 1.5;
}

.qr-feature-list li .check-icon {
  color: #2ea44f;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}

.qr-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #9a3412;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.qr-warning .warn-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.qr-modal-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.qr-code-wrapper {
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 3px solid #2ea44f;
  animation: qr-breathing 2.5s ease-in-out infinite;
}

@keyframes qr-breathing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 164, 79, 0.35);
    border-color: rgba(46, 164, 79, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px 5px rgba(46, 164, 79, 0.12);
    border-color: rgba(46, 164, 79, 0.35);
    transform: scale(1.03);
  }
}

.qr-code-img {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 8px;
}

.qr-scan-tip {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 14px;
  text-align: center;
}

.qr-modal-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
  text-align: center;
}

.qr-password {
  font-size: 13px;
  color: #9a3412;
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
}

/* QR弹窗响应式 */
@media (max-width: 580px) {
  .qr-modal {
    padding: 28px 20px 24px;
  }

  .qr-modal-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .qr-feature-list li {
    justify-content: flex-start;
    text-align: left;
  }
}
