﻿/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4;
  color: #333;
  background: #fff;
  overflow-x: hidden;
  width: 100%;
  max-width: 455px;
  margin: 0 auto;
  /* padding-bottom: 80px;  */
}

/* Hero Section - Top with Background Image */
.hero-section {
  position: relative;
  /* height: 400px; */
  min-height: 600px;
  /* overflow: hidden; */
  background: url("../picture/图片1.gif");
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.speech-bubbles {
  position: absolute;
  top: 20%;
  right: 5%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bubble {
  padding: 12px 18px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  color: white;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
  max-width: 140px;
  text-align: center;
}

.bubble.pink {
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
}

.bubble.blue {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  animation-delay: 1.5s;
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid inherit;
}

.bubble.pink::after {
  border-top-color: #ff6b9d;
}

.bubble.blue::after {
  border-top-color: #4facfe;
}

.hero-content {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  color: white;
  width: 90%;
}

.main-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  color: #ffeb3b;
  line-height: 1.1;
}

.subtitle {
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  line-height: 1.3;
}

/* Features Section - Purple Gradient Background */
.features-section {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 20%, #6d28d9 60%, #5b21b6 100%);
  /* padding: 60px 20px; */
  position: relative;
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* padding-top: 80px; */
}

.central-profile {
  margin-bottom: 40px;
  z-index: 2;
}

.profile-circle {
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  /* background: url("../picture/图片2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
}

/* .profile-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  border-color: #ffeb3b;
} */

.profile-circle:active {
  transform: scale(0.95);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-circle.large {
  width: 200px;
  height: 200px;
}

.profile-circle.small {
  width: 80px;
  height: 80px;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-profiles {
  position: relative;
  width: 100%;
  /* max-width: 100px; */
  /* height: 400px; */
  margin: 0 auto;
}

.feature-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-item.top-left {
  top: -50px;
  left: 30px;
}

.feature-item.top-right {
  top:-50px;
  right: 30px;
}

.feature-item.mid-left {
  top: 60%;
  left: 10px;
  transform: translateY(-50%);
}

.feature-item.mid-right {
  top: 60%;
  right: 10px;
  transform: translateY(-50%);
}

.feature-item.bottom-left {
  bottom: -60px;
  left: 30%;
  transform: translateX(-50%);
}
.feature-item.bottom-right {
  bottom: -60px;
  right: 10%;
  transform: translateX(-50%);
}
.location-pin {
  font-size: 12px;
  margin: 5px 0;
  color: #ff4444;
}

.feature-text {
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-top: 5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  line-height: 1.2;
  max-width: 100px;
  text-align: center;
}

/* Introduction Section */
.intro-section {
  background: linear-gradient(180deg, #5b21b6 0%, #4c1d95 100%);
  padding: 30px 20px;
  text-align: center;
  color: white;
  padding-top: 100px;
}

.intro-section h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.intro-section p {
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Profile Grid Section */
.profile-grid {
  background: linear-gradient(180deg, #4c1d95 0%, #3c1a7a 100%);
  padding: 30px 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 100%;
}

.profile-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  aspect-ratio: 1;
  cursor: pointer;
}

.profile-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.profile-card:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-bubble {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  line-height: 1.2;
  white-space: nowrap;
  min-width: fit-content;
  max-width: calc(100% - 16px);
}

/* Footer CTA Section */
.footer-cta {
  background: #3c1a7a;
  padding: 30px 20px;
  text-align: center;
  color: white;
  margin-bottom: 120px; /* Add space for fixed social-links */
}

.footer-cta p {
  margin-bottom: 12px;
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  line-height: 1.3;
}

.cta-button {
  background: linear-gradient(135deg, #ffeb3b, #ffc107);
  color: #333;
  border: none;
  padding: 15px 35px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}

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

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  background: linear-gradient(135deg, #fff176, #ffd54f);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #fdd835, #ffb300);
}

/* Social Links */
.social-links {
  background: #3c1a7a;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 455px;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-links:hover {
  background: #4c1d95;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-links div:first-child {
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  flex: 1;
  margin-right: 15px;
}

.social-links-img {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.social-links-img img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
}

.social-links-img img:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  filter: brightness(1.1);
}

.social-links-img img:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-link, .btn-link-1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  margin: 8px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.btn-link {
  background: linear-gradient(135deg, #00c851, #00a041);
  color: white;
}

.btn-link-1 {
  background: linear-gradient(135deg, #ffeb3b, #ffc107);
  color: #333;
}
.line-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}
.btn-link::before, .btn-link-1::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: left 0.6s ease;
}

.btn-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,200,81,0.4);
  background: linear-gradient(135deg, #00e676, #00c853);
}

.btn-link-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,193,7,0.4);
  background: linear-gradient(135deg, #fff176, #ffd54f);
}

.btn-link:hover::before, .btn-link-1:hover::before {
  left: 100%;
}

.btn-link:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,200,81,0.3);
  background: linear-gradient(135deg, #00a041, #007e33);
}

.btn-link-1:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,193,7,0.3);
  background: linear-gradient(135deg, #fdd835, #ffb300);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
  body {
    max-width: 100%;
  }
  
  .hero-section {
    /* height: 100vh; */
    min-height: 500px;
  }
  
  .hero-content {
    bottom: 20%;
  }
  
  .main-title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .speech-bubbles {
    right: 5%;
    top: 18%;
  }
  
  .bubble {
    font-size: 12px;
    padding: 10px 15px;
    max-width: 120px;
  }
  
  .profile-circle.large {
    width: 180px;
    height: 180px;
  }
  
  .profile-circle.small {
    width: 70px;
    height: 70px;
  }
  
  .feature-text {
    font-size: 11px;
    max-width: 90px;
  }
  
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px 10px;
  }
  
  .card-bubble {
    font-size: 10px;
    padding: 5px 10px;
    white-space: nowrap;
    min-width: fit-content;
    max-width: calc(100% - 16px);
  }
  
  .intro-section h2 {
    font-size: 1.5rem;
  }
  
  .cta-button {
    font-size: 1.1rem;
    padding: 12px 30px;
  }
  
  .btn-link, .btn-link-1 {
    font-size: 0.8rem;
    padding: 10px 20px;
  }
  
  .social-links-img img {
    width: 50px;
    height: 50px;
  }
  
  .social-links-img {
    gap: 15px;
  }
}

/* Ensure vertical layout matches image exactly */
@media (max-width: 375px) {
  .hero-section {
    /* height: 100vh; */
    min-height: 400px;
  }
  
  .features-section {
    /* min-height: 100vh; */
    padding: 40px 15px;
    padding-top: 60px;
  }
  
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 20px 8px;
  }
  
  .profile-card {
    aspect-ratio: 1;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .profile-circle.large {
    width: 160px;
    height: 160px;
  }
  
  .profile-circle.small {
    width: 60px;
    height: 60px;
  }
  
  .feature-profiles {
    max-width: 350px;
    height: 350px;
    }
    
  .social-links-img img {
    width: 45px;
    height: 45px;
  }
  
  .social-links-img {
    gap: 12px;
  }
  
  .social-links div:first-child {
    font-size: 0.8rem;
  }
  }