/* download.css - 纸飞机下载中心样式 */

:root {
  --primary: #0088cc;
  --primary-hover: #0077b5;
  --dark: #0f172a;
  --light: #f8fafc;
  --text: #475569;
  --border: #e2e8f0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.6;
}

/* ===== 头部导航 ===== */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 25px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: #ffffff;
  background-color: var(--primary);
}

/* ===== 下载页顶部介绍 ===== */
.download-hero {
  padding: 90px 20px 60px;
  text-align: center;
  background: radial-gradient(100% 100% at 50% 0%, rgba(0, 136, 204, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.download-hero h1 {
  font-size: 42px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.download-hero p {
  font-size: 17px;
  color: #64748b;
  max-width: 760px;
  margin: 0 auto;
}

/* ===== 下载卡片矩阵 ===== */
.matrix-section {
  max-width: 1200px;
  margin: 20px auto 60px;
  padding: 0 20px;
}

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

.matrix-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.matrix-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background 0.3s;
}

.matrix-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: #cbd5e1;
}

.matrix-card:hover::before {
  background: var(--primary);
}

.os-svg-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  fill: #475569;
  transition: fill 0.3s;
}

.matrix-card:hover .os-svg-icon {
  fill: var(--primary);
}

.matrix-card h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.version-tag {
  display: inline-block;
  font-size: 12px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.sys-req {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 30px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.btn-download {
  display: block;
  background: var(--dark);
  color: #ffffff;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.matrix-card:hover .btn-download {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.btn-download:hover {
  background: var(--primary-hover) !important;
}

/* ===== 创意跨平台叙事区域 ===== */
.creative-download-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 32px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 16px;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.creative-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.creative-download-card {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.creative-download-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 20px -8px rgba(0,0,0,0.04);
}

.creative-download-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

.creative-download-card h3 {
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.creative-download-card p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.7;
}

/* ===== GitHub 开源入口横幅 ===== */
.github-banner {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.github-banner-inner {
  background: var(--dark);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.2);
}

.github-banner-inner h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.github-banner-inner p {
  color: #cbd5e1;
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: var(--dark);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-github svg {
  fill: var(--dark);
  transition: fill 0.2s;
}

.btn-github:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== 安全校验表格 ===== */
.verify-box {
  max-width: 1200px;
  margin: 40px auto 90px;
  padding: 0 20px;
}

.verify-table-wrapper {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.verify-title {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verify-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.verify-table th {
  background: #f1f5f9;
  padding: 14px 16px;
  color: var(--dark);
  font-weight: 600;
  border: 1px solid var(--border);
}

.verify-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.code-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  word-break: break-all;
  display: inline-block;
  border: 1px solid #e2e8f0;
}

/* ===== 页脚 ===== */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 70px 20px 40px;
  font-size: 14px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-column h5 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .creative-download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .github-banner-inner {
    padding: 40px 24px;
  }
}