/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #e6f0ff, #eef2ff);
  color: #333;
  overflow-x: hidden;
  min-height: 100vh;
}

.app-container {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

/* 动态背景元素 */
.animated-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
}

.sphere-1 {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(59, 130, 246, 0.2));
  animation: float1 25s ease-in-out infinite;
}

.sphere-2 {
  top: 30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.1));
  animation: float2 30s ease-in-out infinite;
}

.sphere-3 {
  bottom: -15%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.1));
  animation: float3 28s ease-in-out infinite;
}

.sphere-4 {
  top: 10%;
  left: 40%;
  width: 30vw;
  height: 30vw;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
  animation: float4 22s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5%, 5%) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5%, 3%) rotate(-5deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3%, -3%) rotate(3deg); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3%, -2%) rotate(-3deg); }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(0.75rem);
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(243, 244, 246, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100px); }
  to { transform: translateY(0); }
}

.navbar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-size: 1.875rem;
  font-weight: bold;
  background: linear-gradient(to right, #2563eb, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-links button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-links button:hover {
  color: #2563eb;
  background-color: #eff6ff;
  transform: scale(1.05);
}

.nav-links button:active {
  transform: scale(0.95);
}

/* 主要内容 */
main {
  padding: 2rem 1rem;
}

/* 标题部分 - 使用CSS渐变和动画代替背景图片 */
.hero-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, opacity 0.3s;
  height: 400px;
}

.hero-section:hover {
  transform: scale(1.02);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* 使用CSS图案代替背景图片 */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: 
    radial-gradient(circle at 25px 25px, #4f46e5 2px, transparent 0),
    radial-gradient(circle at 75px 75px, #3b82f6 2px, transparent 0);
  background-size: 100px 100px;
  animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e40af, #3730a3, #4338ca);
  opacity: 0.9;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}

.hero-glow-1 {
  top: -50%;
  left: -20%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.4) 0%, transparent 70%);
  animation: glow1 15s ease-in-out infinite;
}

.hero-glow-2 {
  bottom: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  animation: glow2 18s ease-in-out infinite;
}

.hero-glow-3 {
  top: 30%;
  left: 50%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  animation: glow3 20s ease-in-out infinite;
}

@keyframes glow1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
}

@keyframes glow2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, -5%) scale(1.1); }
}

@keyframes glow3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(-3%, 3%) scale(1.2); opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 3rem 4rem;
  backdrop-filter: blur(4px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 英雄区域文字样式调整 */
.hero-content h2 {
  font-size: 2.25rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  line-height: 1.2;
  white-space: nowrap; /* 防止文字换行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-content p {
  font-size: 1.25rem;
  color: #bfdbfe;
  margin-top: 1rem;
  max-width: 32rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
  white-space: nowrap; /* 防止文字换行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 平板设备上的字体大小调整 */
@media (max-width: 768px) {
  .hero-content {
    padding: 2rem 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
}

/* 手机设备上的字体大小调整 */
@media (max-width: 480px) {
  .hero-content {
    padding: 1.5rem 1.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
  }
}

/* 小型手机设备上的字体大小调整 */
@media (max-width: 360px) {
  .hero-content {
    padding: 1.25rem 1.25rem;
  }
  
  .hero-content h2 {
    font-size: 1.25rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(to right, #3b82f6, #4f46e5);
  color: white;
  padding: 1.75rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  border: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #60a5fa, #6366f1, #a855f7);
}

/* 应用部分容器 */
.apps-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* 部分标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #1f2937;
  display: flex;
  align-items: center;
}

.section-marker {
  height: 2rem;
  width: 0.5rem;
  border-radius: 9999px;
  margin-right: 0.75rem;
}

.blue-marker {
  background: linear-gradient(to right, #3b82f6, #2563eb);
}

.green-marker {
  background: linear-gradient(to right, #10b981, #059669);
}

.purple-marker {
  background: linear-gradient(to right, #8b5cf6, #7c3aed);
}

.indigo-marker {
  background: linear-gradient(to right, #6366f1, #4f46e5);
}

.red-marker {
  background: linear-gradient(to right, #ef4444, #f97316);
}

/* 应用卡片 */
.app-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .app-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.app-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .app-row {
    grid-template-columns: 1fr 1fr;
  }
}

.half-width {
  width: 100%;
}

.app-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid rgba(243, 244, 246, 1);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  z-index: 0;
}

.app-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.app-card-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.app-icon {
  width: 4rem;
  height: 4rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.app-card:hover .app-icon {
  transform: scale(1.15) rotate(5deg);
}

.app-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.ios-icon::before {
  background: linear-gradient(to bottom right, #60a5fa, #3b82f6);
}

.chrome-icon::before {
  background: linear-gradient(to bottom right, #60a5fa, #3b82f6);
}

.android-icon::before {
  background: linear-gradient(to bottom right, #34d399, #10b981);
}

.web-icon::before {
  background: linear-gradient(to bottom right, #a78bfa, #8b5cf6);
}

.windows-icon::before {
  background: linear-gradient(to bottom right, #818cf8, #6366f1);
}

.mac-icon::before {
  background: linear-gradient(to bottom right, #818cf8, #6366f1);
}

.app-icon .icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: auto;
  color: #1f2937;
}

.app-info {
  flex-grow: 1;
}

.app-info h4 {
  font-weight: bold;
  font-size: 1.125rem;
  color: #1f2937;
}

.app-info p {
  color: #4b5563;
  margin-top: 0.25rem;
}

.highlight {
  color: #3b82f6;
  font-weight: 500;
}

.help-link {
  color: #3b82f6;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.help-link:hover {
  color: #2563eb;
}

.mobile-download {
  margin-top: 0.75rem;
  display: none;
}

@media (max-width: 767px) {
  .mobile-download {
    display: block;
  }
  
  .qr-code {
    display: none;
  }
}

.btn-outline {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-outline:hover {
  transform: scale(1.05);
}

.btn-outline:hover::before {
  left: 100%;
}

.btn-outline:active {
  transform: scale(0.95);
}

.btn-outline.blue {
  background: linear-gradient(to right, #eff6ff, #e0f2fe);
  color: #2563eb;
  border-color: #bfdbfe;
}

.btn-outline.blue:hover {
  background: linear-gradient(to right, #dbeafe, #bfdbfe);
  border-color: #93c5fd;
}

.btn-outline.green {
  background: linear-gradient(to right, #ecfdf5, #d1fae5);
  color: #059669;
  border-color: #a7f3d0;
}

.btn-outline.green:hover {
  background: linear-gradient(to right, #d1fae5, #a7f3d0);
  border-color: #6ee7b7;
}

.btn-outline.purple {
  background: linear-gradient(to right, #f5f3ff, #ede9fe);
  color: #7c3aed;
  border-color: #c4b5fd;
}

.btn-outline.purple:hover {
  background: linear-gradient(to right, #ede9fe, #ddd6fe);
  border-color: #a78bfa;
}

.btn-outline.indigo {
  background: linear-gradient(to right, #eef2ff, #e0e7ff);
  color: #4f46e5;
  border-color: #c7d2fe;
}

.btn-outline.indigo:hover {
  background: linear-gradient(to right, #e0e7ff, #c7d2fe);
  border-color: #a5b4fc;
}

/* 二维码样式修改 */
.qr-code {
  margin-left: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.qr-code:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 移除旧的占位符样式 */
.qr-placeholder {
  display: none;
}
/* 热门推荐部分 */
.hot-recommendations {
  margin-top: 5rem;
  margin-bottom: 4rem;
}

.recommendations-container {
  position: relative;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
}

@media (min-width: 768px) {
  .scroll-btn {
    display: block;
  }
}

.scroll-btn:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn:active {
  transform: translateY(-50%) scale(0.9);
}

.scroll-left {
  left: -2.5rem;
}

.scroll-right {
  right: -2.5rem;
}

.scroll-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #4b5563;
}

.recommendations-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.recommendations-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.recommendation-card {
  flex-shrink: 0;
  width: 11.25rem;
  scroll-snap-align: start;
  transition: all 0.3s;
}

.recommendation-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.recommendation-img {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  aspect-ratio: 2/3;
}

/* 使用CSS渐变代替海报图片 */
.recommendation-poster {
  position: absolute;
  inset: 0;
  transition: transform 0.5s;
}

.recommendation-card:hover .recommendation-poster {
  transform: scale(1.1);
}

/* 为每个海报创建不同的渐变背景 */
.poster-1 {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.poster-2 {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.poster-3 {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.poster-4 {
  background: linear-gradient(135deg, #10b981, #047857);
}

.poster-5 {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.poster-6 {
  background: linear-gradient(135deg, #6366f1, #4338ca);
}

.poster-7 {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.poster-8 {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.poster-9 {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
}

.poster-10 {
  background: linear-gradient(135deg, #f97316, #c2410c);
}

/* 添加纹理和图案 */
.recommendation-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 20%);
  opacity: 0.5;
}

.recommendation-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.recommendation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
  opacity: 0.7;
}

.recommendation-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.75rem;
  width: 100%;
}

.recommendation-info h4 {
  color: white;
  font-weight: bold;
}

.recommendation-info p {
  color: #d1d5db;
  font-size: 0.875rem;
}

/* 底部 */
footer {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(0.75rem);
  border-top: 1px solid #f3f4f6;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-info {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-info {
    margin-bottom: 0;
  }
}

.footer-info p {
  color: #6b7280;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* 底部装饰 */
.bottom-gradient {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8rem;
  background: linear-gradient(to top, rgba(219, 234, 254, 0.5), transparent);
  pointer-events: none;
}

.bottom-blob {
  position: fixed;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(3rem);
  pointer-events: none;
}

.bottom-blob-1 {
  bottom: -5rem;
  left: -5rem;
  background-color: rgba(96, 165, 250, 0.2);
}

.bottom-blob-2 {
  bottom: -5rem;
  right: -5rem;
  background-color: rgba(99, 102, 241, 0.2);
}
/* 确保所有按钮样式的链接没有下划线 */
a.btn-outline,
a.btn-primary {
  text-decoration: none;
  display: inline-block;
}

a.btn-outline:hover,
a.btn-primary:hover {
  text-decoration: none;
}