/* ===== 首页样式 ===== */

/* Hero 三分构图 */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(180, 83, 9, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 35%),
    linear-gradient(180deg, #1c1917 0%, #24201e 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23B45309' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-left .subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-left .subtitle::before,
.hero-left .subtitle::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--color-gold);
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-muted);
}

.hero-features li i {
  color: var(--color-gold);
  font-size: 1rem;
}

.hero-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-ring {
  position: relative;
  padding: 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  box-shadow: 0 0 80px rgba(180, 83, 9, 0.35);
}

.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.35);
  animation: spin 24s linear infinite;
}

.hero-logo-ring img {
  width: clamp(10rem, 22vw, 16rem);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-right {
  display: flex;
  justify-content: center;
}

.download-card {
  width: 100%;
  max-width: 22rem;
  padding: 2rem;
  text-align: center;
}

.download-card .version-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.download-card .main-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.download-card .platforms {
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: var(--color-stone);
  font-size: 0.8125rem;
}

/* 特色区左右交替 */
.features-section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head p {
  color: var(--color-muted);
  max-width: 42rem;
  margin: 1rem auto 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-img:hover img {
  transform: scale(1.04);
}

.feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(28, 25, 23, 0.55) 100%);
  pointer-events: none;
}

.feature-text .number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(245, 158, 11, 0.22);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: var(--color-muted);
  margin-top: 0.75rem;
}

/* 下载区 */
.download-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #1c1917 0%, #201d1b 100%);
}

.download-tabs {
  max-width: 56rem;
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(120, 113, 108, 0.25);
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.tab-btn:hover {
  color: var(--color-gold);
  background: rgba(245, 158, 11, 0.08);
}

.tab-btn.active {
  color: var(--color-bg);
  background: var(--color-gold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.tab-panel {
  animation: fadeIn 0.4s ease;
}

.tab-panel.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 联系区 */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.contact-list li i {
  color: var(--color-gold);
  width: 1.25rem;
}

.qr-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.qr-card p {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-center { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .qr-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .hero-section { padding: 2.5rem 0 3.5rem; }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }
  .feature-row .feature-text { order: 2; }
  .feature-row .feature-img { order: 1; }
  .qr-wall { grid-template-columns: repeat(2, 1fr); }
  .tab-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .qr-wall { grid-template-columns: 1fr; }
}
