/* 造梦开放平台 - 注册引导页面样式 */

/* 重置与基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 全屏动态背景 */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://coze-coding-project.tos.coze.site/coze_storage_7635226856358182921/image/generate_image_501c8893-8937-4ed5-90b8-803b322b3571.jpeg?sign=1809253867-58f803475e-0-04fde0f1365fe548ee17123c5ecc1773aeece96aca47c613275a44f510d30559') center/cover no-repeat;
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.92) 0%, rgba(49, 46, 129, 0.88) 50%, rgba(88, 28, 135, 0.85) 100%);
}

/* 浮动粒子效果 */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 50%; top: 10%; animation-delay: 1s; animation-duration: 19s; }
.particle:nth-child(5) { left: 60%; top: 60%; animation-delay: 3s; animation-duration: 21s; }
.particle:nth-child(6) { left: 70%; top: 30%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 80%; top: 70%; animation-delay: 2.5s; animation-duration: 23s; }
.particle:nth-child(8) { left: 90%; top: 50%; animation-delay: 1.5s; animation-duration: 20s; }
.particle:nth-child(9) { left: 15%; top: 55%; animation-delay: 3.5s; animation-duration: 18s; }
.particle:nth-child(10) { left: 85%; top: 15%; animation-delay: 4.5s; animation-duration: 24s; }

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(50px, -30px) scale(1.5); opacity: 0.6; }
  50% { transform: translate(-30px, -60px) scale(1); opacity: 0.4; }
  75% { transform: translate(40px, -20px) scale(1.3); opacity: 0.5; }
}

/* 光晕效果 */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.glow-orb.orb1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #667eea 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: pulse-glow 8s ease-in-out infinite;
}

.glow-orb.orb2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #f093fb 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

/* 页面容器 */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 统一导航栏 */
.site-navbar {
  padding: 16px 0;
  position: relative;
  z-index: 100;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: #fff;
}

.navbar-cta {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
  transition: all 0.3s !important;
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

/* 主内容区域 */
.main-content {
  flex: 1;
  padding: 30px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 顶部英雄区 */
.hero-section {
  text-align: center;
  padding: 40px 0 60px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  animation: fade-in-down 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 50%, #ddd6fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-in-up 0.8s ease 0.2s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 650px;
  margin: 0 auto 30px;
  animation: fade-in-up 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fade-in-up 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a2e;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-secondary {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.btn-secondary:hover {
  color: #fff;
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 数据统计区 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: #a5b4fc;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* 身份选择区 */
.identity-section {
  margin-bottom: 70px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #ddd6fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* 身份卡片 */
.identity-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.identity-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.identity-card:hover::before {
  opacity: 1;
}

/* 代理商专属 */
.identity-card.agent {
  border-top: 3px solid transparent;
  border-image: linear-gradient(135deg, #fbbf24, #f59e0b) 1;
}

.identity-card.agent .card-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* 分销商专属 */
.identity-card.distributor {
  border-top: 3px solid transparent;
  border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
}

.identity-card.distributor .card-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}

.card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.identity-card.agent .card-avatar {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.identity-card.distributor .card-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.card-avatar svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.card-title h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.card-title .en {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
}

.card-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* 功能网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  transition: all 0.3s;
}

.feature-item:hover {
  background: rgba(255,255,255,0.08);
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.identity-card.agent .feature-check {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
}

.identity-card.distributor .feature-check {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.feature-check svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.feature-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* 注册按钮 */
.register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.identity-card.agent .register-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.identity-card.agent .register-btn:hover {
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}

.identity-card.distributor .register-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.identity-card.distributor .register-btn:hover {
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.register-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s;
}

.register-btn:hover svg {
  transform: translateX(4px);
}

/* 优势图文区 */
.advantages-section {
  margin-bottom: 60px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.4s ease;
}

.advantage-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.adv-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.advantage-card:nth-child(2) .adv-icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
}

.advantage-card:nth-child(3) .adv-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
}

.adv-icon svg {
  width: 40px;
  height: 40px;
}

.advantage-card:nth-child(1) .adv-icon svg { fill: #a5b4fc; }
.advantage-card:nth-child(2) .adv-icon svg { fill: #fbbf24; }
.advantage-card:nth-child(3) .adv-icon svg { fill: #34d399; }

.advantage-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* 底部登录提示 */
.login-section {
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.login-section span {
  color: rgba(255,255,255,0.6);
}

.login-section a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
  transition: color 0.3s;
}

.login-section a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

/* 统一页脚 */
.site-footer {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-column h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* 动画 */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式 */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .identity-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .advantages-section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .navbar-menu a:not(.navbar-cta) {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 20px 16px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .identity-card {
    padding: 28px 24px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}
