/* index.html 特有样式 */

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../public/back.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
  opacity: 0.3;
}

/* Header for index page */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.header.scrolled .logo-text {
  color: var(--dark-gray);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 20px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.header.scrolled .nav-links a {
  color: var(--dark-gray);
}

.header.scrolled .nav-links a:hover {
  background: rgba(102, 51, 153, 0.1);
  color: var(--primary-purple);
}

.download-nav-btn {
  background: var(--white) !important;
  color: var(--primary-purple) !important;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.download-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: var(--primary-purple);
  color: var(--white);
}

.header.scrolled .download-nav-btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

.header.scrolled .download-nav-btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: var(--primary-purple-dark);
}

/* Hero Content */
.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 140px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btn {
  background: var(--white);
  color: var(--primary-purple);
  padding: 16px 32px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* App Screenshot */
.app-screenshot {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-left: 40px;
}

.phone-mockup {
  width: 300px;
  height: 640px;
  background: var(--white);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.app-header {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.app-title {
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card {
  padding: 24px;
  background: var(--white);
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-pic {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(102, 51, 153, 0.3);
}

.profile-name {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark-gray);
}

.profile-info {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--medium-gray);
  text-align: center;
  line-height: 1.4;
}

.profile-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  background: var(--light-gray);
  color: var(--primary-purple);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(102, 51, 153, 0.2);
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.question:last-child {
  border-bottom: none;
}

.answer {
  background: var(--primary-purple);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

/* Features Section */
.features {
  background: var(--light-gray);
  padding: 100px 40px;
}

.features-content {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-badge {
  display: inline-block;
  background: var(--primary-purple);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.features-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark-gray);
  line-height: 1.1;
}

.features-subtitle {
  font-size: 1.3rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

/* Night Bar 特殊样式 */
.feature-card.night-bar-card {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 50%,
    #0f3460 100%
  ) !important;
  color: var(--white) !important;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-right: 260px;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.feature-card.night-bar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.feature-card.night-bar-card .feature-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%) !important;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4) !important;
}

.feature-card.night-bar-card .feature-title {
  color: var(--white) !important;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.feature-card.night-bar-card .feature-description {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.feature-card.night-bar-card .night-bar-preview {
  position: absolute;
  right: 40px;
  top: 40px;
  width: 200px;
  height: calc(100% - 80px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.feature-card.night-bar-card .night-bar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.feature-card.night-bar-card .night-bar-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: none;
}

.feature-card {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(102, 51, 153, 0.3);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.feature-description {
  font-size: 1rem;
  color: var(--medium-gray);
  line-height: 1.6;
}

.discover-screenshot {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.night-bar-mockup {
  width: 320px;
  height: 680px;
  background: var(--white);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.night-bar-mockup:hover {
  transform: perspective(1000px) rotateY(2deg) rotateX(2deg) scale(1.02);
}

.night-bar-screen {
  width: 100%;
  height: 100%;
  background: var(--dark-gray);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.bar-header {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.bar-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.bar-title {
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
}

.bar-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.bar-content {
  padding: 24px;
}

.lobby-section {
  margin-bottom: 32px;
}

.section-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "👥";
  font-size: 16px;
}

.user-avatars {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 51, 153, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.tables-section {
  margin-bottom: 32px;
}

.tables-section .section-title::before {
  content: "🪑";
}

.table {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.table:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.table-label {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  min-width: 50px;
  text-align: center;
  background: var(--primary-purple);
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(102, 51, 153, 0.3);
}

.table-users {
  display: flex;
  gap: 8px;
  flex: 1;
}

.table-user {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 51, 153, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Footer for index page */
.footer {
  background: var(--dark-gray);
  padding: 60px 40px 40px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-purple) 50%,
    transparent 100%
  );
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-purple);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 40px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .features {
    padding: 80px 20px;
  }

  .features-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card.night-bar-card {
    grid-column: span 1;
    padding-right: 40px;
    flex-direction: column;
  }

  .feature-card.night-bar-card .night-bar-preview {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 500px;
    margin-top: 20px;
  }

  .header {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 12px;
  }

  .phone-mockup {
    width: 260px;
    height: 560px;
    transform: none;
  }

  .night-bar-mockup {
    width: 260px;
    height: 560px;
    transform: none;
  }

  .app-screenshot {
    padding-left: 0;
    margin-top: 40px;
  }

  .discover-screenshot {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .features {
    padding: 60px 20px;
  }

  .features-title {
    font-size: 2rem;
  }

  .features-subtitle {
    font-size: 1.1rem;
  }

  .feature-card {
    padding: 24px;
  }

  .header {
    padding: 12px 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 4px 8px;
  }

  .download-nav-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .phone-mockup,
  .night-bar-mockup {
    width: 220px;
    height: 480px;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.phone-mockup {
  animation: float 3s ease-in-out infinite;
}

.feature-card {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(5) {
  animation-delay: 0.5s;
}
.feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

.download-btn:hover {
  animation: pulse 0.6s ease-in-out;
}

/* 滚动动画 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 加载动画 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
