/* ============================================================
   main.css — 主页样式：header、hero、下载、卡片、社区、footer
   ============================================================ */

/* ---- Header ---- */
header {
  padding: 24px 0 16px;
  text-align: center;
}

.logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: box-shadow .3s;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--header-gradient-1) 30%, var(--header-gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all .3s;
}

header p {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 1rem;
  transition: color .3s;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}

.hero h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  transition: color .3s;
}

.version-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 20px;
  font-weight: 500;
  transition: all .3s;
}

/* ---- Download grid ---- */
.download-section { padding: 0 0 48px; }

.download-section h3,
.section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.download-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: all .25s;
}

.download-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}
.dl-card:focus-visible,
.card:focus-visible,
.community-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dl-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #fff;
}

.dl-icon.baidu  { background: linear-gradient(135deg, #2196f3, #1976d2); }
.dl-icon.google  { background: linear-gradient(135deg, #34a853, #0f9d58); }
.dl-icon.nexus   { background: linear-gradient(135deg, #f59e0b, #d97706); }

.dl-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.dl-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color .3s;
}

/* ---- Sections ---- */
.section { padding: 0 0 48px; }

.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .25s;
}

.card-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-row .card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--card-hover-shadow);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.card-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color .3s;
}

/* ---- Community ---- */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: all .25s;
}
.community-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.community-card .emoji {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.community-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.community-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color .3s;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  transition: border-color .3s;
}

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color .3s;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

.icp {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.icp a {
  color: var(--text-muted);
  text-decoration: none;
}
.icp a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  header h1 { font-size: 1.6rem; }
  .download-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .card-row { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 28px; }
}
