/* ===== CSS Variables 白色主题 ===== */
:root {
  --bg: #ffffff;
  --bg2: #f7f9fc;
  --surface: rgba(0,0,0,0.03);
  --surface2: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.1);
  --accent: #3B82F6;
  --accent2: #6366F1;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --text: #1e293b;
  --text2: #64748b;
  --text3: #94a3b8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0,0,0,0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  padding-bottom: 20px;
}

/* ===== Background ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 60% 10%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===== Layout ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ===== App Header ===== */
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.7s ease both;
}

.app-logo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12), var(--shadow);
  position: relative;
}

.app-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.app-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.app-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
}

.badge.green {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.badge.blue {
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
}

/* ===== Download Button ===== */
.download-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.7s 0.15s ease both;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.btn-download:active {
  transform: scale(0.97);
}

.btn-main {
  /* 这里还原成你截图里的蓝色大按钮 */
  background: linear-gradient(90deg,#4088f5,#609fff);
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(64,136,245,0.35), 0 2px 8px rgba(0,0,0,0.15);
}

.btn-main:hover {
  box-shadow: 0 12px 40px rgba(64,136,245,0.4), 0 2px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-recommended {
  position: absolute;
  top: -1px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, #F59E0B, #EF4444);
  color: #fff;
  padding: 2px 8px;
  border-radius: 0 0 8px 8px;
}

/* ===== Screenshots Carousel ===== */
.screenshots-section {
  width: 100%;
  animation: fadeInUp 0.7s 0.25s ease both;
}

.screenshots-section h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 16px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 160px;
  height: 284px;
  border-radius: var(--radius-sm);
  background: #f1f1f1;
  border: 1px solid #ddd;
  overflow: hidden;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cccccc;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  width: 20px;
  border-radius: 3px;
  background: #4088f5;
}

/* ===== Info Card ===== */
.info-card {
  width: 100%;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  padding: 20px;
  animation: fadeInUp 0.7s 0.35s ease both;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: #666666;
}

.info-value {
  color: #222222;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  color: #777777;
  font-size: 12px;
  text-align: center;
  animation: fadeInUp 0.7s 0.4s ease both;
  line-height: 1.8;
}

.footer a {
  color: #777777;
  text-decoration: none;
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (min-width: 481px) {
  .carousel-slide {
    width: 180px;
    height: 320px;
  }

  .app-logo-wrap {
    width: 110px;
    height: 110px;
  }
}
