/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 50%, #ffffff 100%);
  color: #2e7d32;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #2e7d32;
}

.navbar-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar-link {
  text-decoration: none;
  color: #555;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease-out;
}

.navbar-link:hover {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.navbar-link.active {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.15);
}

.navbar-link-primary {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #2e7d32;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
}

.navbar-link-primary:hover {
  background: linear-gradient(135deg, #ffb300, #ff9800);
  color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
}

/* ========== 顶部Banner区域 ========== */
.header-banner {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.game-logo {
  width: 200px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-text {
  text-align: left;
}

.game-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.game-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #e8f5e9;
  opacity: 0.9;
}

.header-decoration {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
  opacity: 0.3;
}

.decoration-block {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  animation: float 3s ease-in-out infinite;
}

.block-green { background: #4caf50; animation-delay: 0s; }
.block-blue { background: #7c4dff; animation-delay: 0.5s; }
.block-orange { background: #ff7043; animation-delay: 1s; }
.block-purple { background: #9c27b0; animation-delay: 1.5s; }

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

/* ========== 截图展示区 ========== */
.screenshots-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
  text-align: center;
  margin-bottom: 2rem;
}

.screenshots-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.screenshots-slider {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease-out;
}

.screenshot-card {
  min-width: 280px;
  max-width: 280px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  cursor: pointer;
}

.screenshot-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.25);
}

.screenshot-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 24px;
  color: #2e7d32;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-btn:hover {
  background: #4caf50;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.3);
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.indicator.active {
  background: #4caf50;
  width: 24px;
  border-radius: 6px;
}

.indicator:hover {
  background: rgba(76, 175, 80, 0.6);
}

/* ========== 游戏特色 ========== */
.features-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.25);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-icon-green { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.feature-icon-purple { background: linear-gradient(135deg, #7c4dff, #6a1b9a); }
.feature-icon-orange { background: linear-gradient(135deg, #ff7043, #e64a19); }
.feature-icon-blue { background: linear-gradient(135deg, #2196f3, #1976d2); }

.icon-block::before { content: '◆'; color: white; }
.icon-star::before { content: '★'; color: white; }
.icon-heart::before { content: '♥'; color: white; }
.icon-crown::before { content: '👑'; }

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

/* ========== 下载区域 ========== */
.download-section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.download-desc {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.download-btn-primary {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #2e7d32;
}

.download-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.download-btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.download-btn-secondary:hover {
  background: #4caf50;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
}

.btn-icon {
  font-size: 1.5rem;
}

.download-tip {
  font-size: 0.875rem;
  color: #999;
}

/* ========== 底部信息 ========== */
.footer {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #ffffff;
  padding: 3rem 2rem 2rem;
  margin-top: 2rem;
}

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

.company-info {
  text-align: center;
  margin-bottom: 2rem;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-item {
  font-size: 1rem;
  opacity: 0.9;
}

.info-label {
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}

.icp-info a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.icp-info a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .game-subtitle {
    font-size: 1rem;
  }
  
  .game-logo {
    width: 150px;
    height: 90px;
  }
  
  .screenshot-card {
    min-width: 240px;
    max-width: 240px;
  }
  
  .screenshot-image {
    height: 400px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  
  .header-decoration {
    display: none;
  }
}

/* ========== 登录/注册页面样式 ========== */
.auth-page {
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.auth-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(46, 125, 50, 0.15);
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 1rem;
  color: #666;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.form-input {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease-out;
  background: #fafafa;
}

.form-input:focus {
  outline: none;
  border-color: #4caf50;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.phone-input-group {
  display: flex;
  gap: 0.5rem;
}

.phone-prefix {
  width: 80px;
  text-align: center;
  background: #f0f0f0;
  cursor: not-allowed;
}

.captcha-group {
  display: flex;
  gap: 0.5rem;
}

.captcha-input {
  flex: 1;
}

.captcha-btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease-out;
  white-space: nowrap;
}

.captcha-btn:hover {
  background: linear-gradient(135deg, #388e3c, #1b5e20);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.captcha-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #555;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease-out;
}

.checkbox-input:checked + .checkbox-custom {
  background: #4caf50;
  border-color: #4caf50;
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.form-link {
  font-size: 0.875rem;
  color: #4caf50;
  text-decoration: none;
}

.form-link:hover {
  text-decoration: underline;
}

.auth-btn {
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease-out;
  margin-top: 0.5rem;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #ffffff;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #388e3c, #1b5e20);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider-text {
  font-size: 0.875rem;
  color: #999;
}

.auth-social {
  display: flex;
  gap: 1rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease-out;
  background: #ffffff;
}

.social-btn:hover {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.social-icon {
  font-size: 1.25rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.auth-link {
  color: #4caf50;
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

/* ========== 充值页面样式 ========== */
.recharge-page {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.recharge-header {
  text-align: center;
  margin-bottom: 3rem;
}

.recharge-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.recharge-subtitle {
  font-size: 1.2rem;
  color: #666;
}

.recharge-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.plan-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.1);
  transition: all 0.3s ease-out;
  position: relative;
  border: 2px solid transparent;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.2);
}

.plan-card.popular {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fffbf0, #ffffff);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #ffffff;
}

.popular-badge {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #2e7d32;
}

.plan-diamonds {
  margin: 1.5rem 0;
}

.diamond-icon {
  font-size: 2.5rem;
  margin-right: 0.5rem;
}

.diamond-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e7d32;
}

.diamond-bonus {
  font-size: 1rem;
  font-weight: 500;
  color: #ff7043;
  margin-left: 0.25rem;
}

.plan-price {
  margin-bottom: 1.5rem;
}

.price-symbol {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ff7043;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #ff7043;
}

.recharge-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease-out;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #ffffff;
}

.recharge-btn:hover {
  background: linear-gradient(135deg, #388e3c, #1b5e20);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.recharge-btn-popular {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #2e7d32;
}

.recharge-btn-popular:hover {
  background: linear-gradient(135deg, #ffb300, #ff9800);
  color: #1b5e20;
}

.recharge-info {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.1);
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-list li {
  font-size: 1rem;
  color: #666;
  padding-left: 1.5rem;
  position: relative;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: 700;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0.75rem 1rem;
  }
  
  .navbar-right {
    gap: 0.75rem;
  }
  
  .navbar-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .navbar-link-primary {
    padding: 0.5rem 1rem;
  }
  
  .auth-container {
    padding: 2rem 1.5rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .recharge-plans {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .plan-card {
    padding: 1.5rem 1rem;
  }
  
  .diamond-count {
    font-size: 2rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .game-subtitle {
    font-size: 1rem;
  }
  
  .game-logo {
    width: 150px;
    height: 90px;
  }
  
  .screenshot-card {
    min-width: 240px;
    max-width: 240px;
  }
  
  .screenshot-image {
    height: 400px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  
  .header-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar-right {
    gap: 0.5rem;
  }
  
  .navbar-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
  
  .navbar-link-primary {
    padding: 0.4rem 0.75rem;
  }
  
  .navbar-brand {
    display: none;
  }
  
  .auth-container {
    padding: 1.5rem 1rem;
  }
  
  .auth-social {
    flex-direction: column;
  }
  
  .recharge-plans {
    grid-template-columns: 1fr;
  }
  
  .recharge-title {
    font-size: 2rem;
  }
  
  .screenshot-card {
    min-width: 200px;
    max-width: 200px;
  }
  
  .screenshot-image {
    height: 300px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}