* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* 头部 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

/* 主视觉区域 */
.hero {
  position: relative;
  height: 600px;
  margin-top: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 通用区域样式 */
.cities,
.members {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.section-desc {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 16px;
}

/* 城市网格 */
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.city-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.city-card:nth-child(even) {
  margin-top: 40px;
}

.city-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.city-card:active {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.city-card:hover img {
  transform: scale(1.05);
}

.city-card:active img {
  transform: scale(1.05);
}

.city-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-name {
  font-size: 18px;
  font-weight: bold;
}

.city-count {
  font-size: 14px;
  opacity: 0.9;
}

/* 会员网格 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.member-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.member-card:nth-child(even) {
  margin-top: 40px;
}

.member-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.member-card:active {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.member-card:hover img {
  transform: scale(1.05);
}

.member-card:active img {
  transform: scale(1.05);
}

.member-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
}

.member-status {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: 4px 10px;
  background: #4ade80;
  border-radius: 15px;
  font-size: 11px;
  color: white;
  font-weight: bold;
}

/* 固定底部栏 */
.fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.fixed-bar-btn {
  padding: 12px 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  }
}

/* 弹窗 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 20px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background-size: cover;
  background-position: center;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  z-index: 0;
}

.modal-content > * {
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
  font-family: Arial, sans-serif;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  background: #e0e0e0;
}

/* 问卷 */
.quiz-progress {
  margin-bottom: 30px;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.quiz-question {
  font-size: 22px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quiz-option {
  padding: 15px;
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.quiz-option:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* 结果 */
.result-container {
  text-align: center;
}

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.result-container h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

.result-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.result-rules {
  text-align: left;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.result-rules h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.result-rules ul {
  list-style: none;
}

.result-rules li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #666;
}

.result-rules li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.result-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

.result-btn:hover {
  transform: scale(1.02);
}

.hidden {
  display: none !important;
}

/* 响应式 */
@media (max-width: 768px) {
  .header-content {
    padding: 10px 15px;
  }

  .hero {
    height: 400px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .city-grid,
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .city-card:nth-child(even),
  .member-card:nth-child(even) {
    margin-top: 20px;
  }

  .modal-content {
    padding: 30px 20px;
  }
}
