/* ===== 基础变量与重置 ===== */
:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #4096ff;
  --primary-bg: #e6f4ff;
  --primary-bg-light: #f0f7ff;
  --text-primary: #1d2129;
  --text-secondary: #4e5969;
  --text-muted: #86909c;
  --bg-white: #ffffff;
  --bg-gray: #f7f8fa;
  --border: #e5e6eb;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(22, 119, 255, 0.08);
  --shadow-lg: 0 8px 32px rgba(22, 119, 255, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --header-height: 60px;
  --max-width: 1280px;
  --section-gap: 52px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 14px;
  font-size: 15px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 首页横幅 ===== */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 48px) 0 56px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 55%, #003eb3 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-desc .nowrap {
  white-space: nowrap;
}

.hero-desc-line2 {
  display: inline-block;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-platforms span {
  padding: 5px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.hero-highlight {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

/* ===== 核心优势条 ===== */
.highlights {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  margin-top: -1px;
}

.highlights-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.highlight-item:last-child {
  border-right: none;
}

.highlight-item strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.highlight-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 通用区块 ===== */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 产品分区标题 ===== */
.product-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

/* ===== 授权说明横幅 ===== */
.pricing-banner {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-banner-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
}

.pricing-banner-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.pricing-label {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 2px;
}

.pricing-label-free {
  color: #389e0d;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

.pricing-label-paid {
  color: var(--primary-dark);
  background: var(--primary-bg);
  border: 1px solid #91caff;
}

.pricing-banner-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-banner-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 免费推荐产品 ===== */
.featured-product {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%);
  border: 1px solid #91caff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #52c41a, #389e0d);
  border-radius: 20px;
}

.featured-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.featured-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--bg-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.featured-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.featured-content {
  flex: 1;
  min-width: 0;
}

.featured-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.featured-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.featured-desc strong {
  color: #389e0d;
  font-weight: 600;
}

.featured-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.featured-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.featured-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.featured-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(145, 202, 255, 0.45);
}

.featured-version {
  font-size: 13px;
  color: var(--text-muted);
}

.tag-free {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #389e0d;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 4px;
  vertical-align: middle;
}

.tag-free-sm {
  font-size: 11px;
  font-weight: 600;
  color: #389e0d;
  background: #f6ffed;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #b7eb8f;
}

.tag-fullfree {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #52c41a, #389e0d);
  border-radius: 4px;
  vertical-align: middle;
}

.download-row-fullfree {
  background: linear-gradient(90deg, #f6ffed 0%, #f0f7ff 100%);
}

.download-row-fullfree:hover {
  background: linear-gradient(90deg, #f0ffe8 0%, #e6f4ff 100%) !important;
}

.download-card-fullfree {
  background: linear-gradient(90deg, #f6ffed 0%, #f0f7ff 100%) !important;
  border-color: #95de64 !important;
}

.btn-download-free {
  background: #52c41a;
}

.btn-download-free:hover {
  background: #389e0d;
}

.download-row-free {
  background: #f6ffed;
}

.download-row-free:hover {
  background: #f0ffe8 !important;
}

.download-card-free {
  background: #f6ffed !important;
  border-color: #b7eb8f !important;
}

/* ===== 软件产品 ===== */
.products {
  background: var(--bg-gray);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--primary-bg);
  border-radius: 10px;
  margin-bottom: 14px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
  flex: 1;
}

.product-features {
  margin-bottom: 14px;
}

.product-features li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.tag {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.version {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 下载中心 ===== */
.download {
  background: var(--bg-white);
}

.download-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.download-table thead {
  background: var(--primary-bg-light);
}

.download-table th {
  padding: 12px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.download-table td {
  padding: 12px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.download-table tbody tr:last-child td {
  border-bottom: none;
}

.download-table tbody tr:hover {
  background: var(--primary-bg-light);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-download:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.download-cards {
  display: none;
}

.download-notice {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.download-notice p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--bg-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-grid-dual {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.contact-card a {
  font-weight: 500;
}

.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--primary-bg);
  border-radius: 50%;
  margin: 0 auto 14px;
}

.contact-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-note {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-top: 6px;
}

/* ===== 页脚 ===== */
.footer {
  background: #1d2129;
  color: rgba(255, 255, 255, 0.65);
  padding: 32px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.footer-copy {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-links {
  font-size: 13px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links .divider {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
}

/* ===== 响应式 - 平板 ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-item:nth-child(2) {
    border-right: none;
  }

  .highlight-item:nth-child(1),
  .highlight-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .contact-grid-dual {
    max-width: 100%;
  }
}

/* ===== 响应式 - 手机 ===== */
@media (max-width: 768px) {
  :root {
    --section-gap: 40px;
  }

  .container {
    padding: 0 16px;
  }

  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .hero {
    padding: calc(var(--header-height) + 36px) 0 40px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .hero-actions {
    margin-bottom: 20px;
  }

  .highlights-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-item {
    padding: 16px 12px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    padding: 20px 18px;
  }

  .featured-product {
    padding: 20px 18px;
  }

  .featured-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .featured-badge {
    top: 12px;
    right: 12px;
    font-size: 12px;
  }

  .featured-features {
    justify-content: center;
  }

  .featured-actions {
    justify-content: center;
  }

  .pricing-banner {
    flex-direction: column;
  }

  .pricing-banner-divider {
    width: 100%;
    height: 1px;
  }

  .pricing-banner-item {
    padding: 16px 18px;
  }

  .download-table-wrap {
    display: none;
  }

  .download-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }

  .download-card-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
  }

  .download-card-info p {
    font-size: 12px;
    color: var(--text-muted);
  }

  .contact-grid,
  .contact-grid-dual {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    padding: 22px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
    letter-spacing: 1px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 200px;
  }

  .hero-platforms {
    gap: 8px;
  }

  .hero-platforms span {
    font-size: 12px;
    padding: 4px 12px;
  }
}
