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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #F2F2F7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  background-color: #F2F2F7;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 80px; /* 🎯 为底部导航栏留出空间 */
}

/* 导航栏样式 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: none; /* 默认隐藏，PC端显示 */
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 8px;
}

.logo-icon {
  font-size: 16px;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: #1C1C1E;
}

.navbar-menu {
  display: flex;
  flex: 1;
  justify-content: center;
  margin: 0 40px;
  gap: 120px;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-menu-item:hover {
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
  text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.nav-menu-item.active {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-icon {
  display: none;
}

.nav-text {
  font-size: 15px;
}

.navbar-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.simple-login-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 25px;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  width: 65px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.simple-login-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.4);
}

.login-btn-text {
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-menu .user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}

.username {
  font-size: 14px;
  color: #1C1C1E;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* 返回按钮 */
.back-btn {
  display: none; /* 默认隐藏，PC端显示 */
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.back-btn:active {
  transform: translateY(0);
}

.back-icon {
  font-size: 20px;
  margin-right: 8px;
}

.back-text {
  font-size: 16px;
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  text-align: center;
  padding: 40px 20px 60px 20px;
  color: white;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 400;
}

/* 主要内容 */
.main-content {
  padding: 20px 20px 40px 20px;
}

/* 招募信息 */
.recruitment-section {
  margin-bottom: 30px;
}

.recruitment-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  flex: 1;
}

.card-badge {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.card-content {
  text-align: center;
}

.highlight-text {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #FF6B35;
  margin-bottom: 8px;
}

.desc-text {
  font-size: 14px;
  color: #86868b;
  line-height: 1.5;
}

/* 区域标题 */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  text-align: center;
}

/* 合作优势 */
.advantages-section {
  margin-bottom: 30px;
}

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

.advantage-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.advantage-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
}

.advantage-content {
  flex: 1;
}

.advantage-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.advantage-desc {
  font-size: 13px;
  color: #86868b;
  line-height: 1.4;
}

/* 合作模式 */
.cooperation-section {
  margin-bottom: 30px;
}

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

.cooperation-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cooperation-item.featured {
  border: 1px solid #FF6B35;
  background: rgba(255, 107, 53, 0.05);
}

.cooperation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cooperation-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
}

.cooperation-price {
  font-size: 12px;
  color: #FF6B35;
  font-weight: 500;
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.cooperation-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-item {
  font-size: 13px;
  color: #1d1d1f;
  line-height: 1.4;
}

/* 联系方式 */
.contact-section {
  margin-bottom: 30px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.qr-section {
  text-align: center;
  margin-bottom: 20px;
}

.qr-code {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: 10px;
}

.contact-text {
  font-size: 14px;
  color: #1d1d1f;
}

.contact-actions {
  display: flex;
  gap: 12px;
}

.contact-btn {
  flex: 1;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.contact-btn.primary {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
}

.contact-btn.secondary {
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
}

/* 申请流程 */
.process-section {
  margin-bottom: 30px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.process-number {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

.process-content {
  flex: 1;
}

.process-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.process-desc {
  font-size: 13px;
  color: #86868b;
  line-height: 1.4;
}

/* 加载状态 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-top: 2px solid #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px auto;
}

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

.loading-text {
  font-size: 14px;
  color: #1d1d1f;
}

/* 支付按钮样式 */
.cooperation-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #F2F2F7;
}

.pay-now-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.pay-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.pay-now-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* PC端响应式样式 - 屏幕宽度 >= 1100px */
@media (min-width: 1100px) {
  body {
    background-color: #e5e5ea;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    padding-bottom: 0; /* 🎯 PC端不需要底部padding */
  }

  /* 显示顶部导航栏 */
  .navbar {
    display: flex !important;
  }

  /* 隐藏导航栏登录按钮 */
  .navbar-auth {
    display: none !important;
  }

  /* 隐藏底部导航栏 */
  .tabbar {
    display: none !important;
  }

  /* 隐藏返回按钮（有顶部导航栏了） */
  .back-btn {
    display: none !important;
  }
}

/* 移动端响应式样式 - 屏幕宽度 < 1100px */
@media (max-width: 1099px) {
  /* 隐藏顶部导航栏 */
  .navbar {
    display: none !important;
  }

  /* 显示底部导航栏 */
  .tabbar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    transform: none !important;
  }

  /* 确保container有底部padding，避免内容被导航栏遮挡 */
  .container {
    padding-bottom: 70px;
  }
}
