/* 主要样式文件 */

/* ===== 欢迎页面样式 ===== */
.mp-welcome-body {
  background: linear-gradient(135deg, #07C160 0%, #059A4C 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.mp-welcome-container {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--mp-space-lg);
  padding-top: calc(var(--mp-space-lg) + var(--mp-safe-area-top));
  padding-bottom: calc(var(--mp-space-lg) + var(--mp-safe-area-bottom) + 60px);
}

.mp-welcome-header {
  text-align: center;
  margin-bottom: var(--mp-space-xl);
}

.mp-welcome-logo {
  animation: mp-fade-in-down 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-logo-large {
  width: 80px;
  height: 80px;
  margin-bottom: var(--mp-space-md);
  border-radius: var(--mp-radius-large);
  box-shadow: var(--mp-shadow-base);
  background: var(--mp-white);
  padding: var(--mp-space-xs);
}

.mp-welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mp-white);
  margin-bottom: var(--mp-space-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mp-welcome-subtitle {
  font-size: var(--mp-font-lg);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

/* ===== 功能入口网格 ===== */
.mp-function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--mp-space-lg);
  margin-bottom: var(--mp-space-xl);
  max-width: 100%;
  width: 100%;
  padding: 0 var(--mp-space-md);
}

.mp-function-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--mp-radius-large);
  padding: var(--mp-space-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  min-height: 80px;
}

.mp-function-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mp-function-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-light));
  border-radius: var(--mp-radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mp-space-xs);
  color: var(--mp-white);
  font-size: var(--mp-font-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-function-item:hover .mp-function-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
}

.mp-function-text {
  font-size: var(--mp-font-sm);
  font-weight: 500;
  color: var(--mp-text-primary);
  margin: 0;
  line-height: 1.2;
}

.mp-feature-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--mp-radius-large);
  padding: var(--mp-space-xl);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  animation: mp-fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mp-primary) 0%, var(--mp-primary-light) 100%);
}

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

.mp-feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-light));
  border-radius: var(--mp-radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mp-space-md);
  color: var(--mp-white);
  font-size: var(--mp-font-2xl);
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-feature-card:hover .mp-feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.4);
}

.mp-feature-title {
  font-size: var(--mp-font-xl);
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: var(--mp-space-sm);
}

.mp-feature-desc {
  color: var(--mp-text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: var(--mp-font-base);
}

/* ===== 操作按钮区域 ===== */
.mp-welcome-actions {
  display: flex;
  gap: var(--mp-space-md);
  margin-bottom: var(--mp-space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.mp-welcome-actions .mp-btn {
  min-width: 160px;
  box-shadow: var(--mp-shadow-base);
}

/* ===== 统计信息 ===== */
.mp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--mp-space-md);
  max-width: 600px;
  width: 100%;
  margin-bottom: var(--mp-space-xl);
}

.mp-stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--mp-radius-base);
  padding: var(--mp-space-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mp-stat-number {
  font-size: var(--mp-font-2xl);
  font-weight: 700;
  color: var(--mp-white);
  margin-bottom: var(--mp-space-xs);
}

.mp-stat-label {
  font-size: var(--mp-font-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ===== 精简统计信息 ===== */
.mp-stats-summary {
  display: flex;
  justify-content: center;
  gap: var(--mp-space-xl);
  margin-bottom: var(--mp-space-lg);
  padding: var(--mp-space-md);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--mp-radius-large);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mp-stat-summary-item {
  text-align: center;
  flex: 1;
}

.mp-stat-summary-number {
  font-size: var(--mp-font-xl);
  font-weight: 700;
  color: var(--mp-primary);
  margin-bottom: var(--mp-space-xs);
  display: block;
  line-height: 1;
}

.mp-stat-summary-label {
  font-size: var(--mp-font-xs);
  color: var(--mp-text-secondary);
  margin: 0;
  font-weight: 500;
}

/* ===== 底部信息 ===== */
.mp-welcome-footer {
  margin-top: auto;
  text-align: center;
}

.mp-footer-content {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--mp-font-sm);
}

.mp-footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--mp-transition);
}

.mp-footer-link:hover {
  color: var(--mp-white);
  text-decoration: underline;
}

.mp-footer-version {
  margin-top: var(--mp-space-xs);
  font-size: var(--mp-font-xs);
  opacity: 0.7;
}

/* ===== 背景装饰 ===== */
.mp-welcome-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.mp-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: mp-float 6s ease-in-out infinite;
}

.mp-bg-circle-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.mp-bg-circle-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.mp-bg-circle-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

/* ===== 动画效果 ===== */
@keyframes mp-fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mp-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .mp-welcome-container {
    padding: var(--mp-space-md);
    padding-top: calc(var(--mp-space-md) + var(--mp-safe-area-top));
    padding-bottom: calc(var(--mp-space-md) + var(--mp-safe-area-bottom));
  }

  .mp-welcome-title {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
  }

  .mp-welcome-subtitle {
    font-size: var(--mp-font-base);
  }

  .mp-logo-large {
    width: 72px;
    height: 72px;
  }

  .mp-function-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mp-space-sm);
    padding: 0 var(--mp-space-sm);
  }

  .mp-function-item {
    padding: var(--mp-space-md);
    min-height: 70px;
  }

  .mp-function-icon {
    width: 36px;
    height: 36px;
    font-size: var(--mp-font-base);
  }

  .mp-function-text {
    font-size: var(--mp-font-xs);
  }

  .mp-welcome-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--mp-space-sm);
  }

  .mp-welcome-actions .mp-btn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
  }

  .mp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mp-space-sm);
  }

  .mp-main-with-sidebar {
    margin-left: 0;
  }

  .mp-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mp-sidebar.open {
    transform: translateX(0);
  }

  .mp-content {
    padding: var(--mp-space-md);
  }

  .mp-main {
    padding-bottom: calc(70px + var(--mp-safe-area-bottom));
  }
}

@media (max-width: 480px) {
  .mp-welcome-container {
    padding: var(--mp-space-sm);
    padding-top: calc(var(--mp-space-sm) + var(--mp-safe-area-top));
    padding-bottom: calc(var(--mp-space-sm) + var(--mp-safe-area-bottom));
  }

  .mp-welcome-title {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .mp-welcome-subtitle {
    font-size: var(--mp-font-sm);
  }

  .mp-logo-large {
    width: 64px;
    height: 64px;
  }

  .mp-function-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mp-space-xs);
    padding: 0 var(--mp-space-xs);
  }

  .mp-function-item {
    padding: var(--mp-space-sm);
    min-height: 60px;
    border-radius: var(--mp-radius-base);
  }

  .mp-function-icon {
    width: 32px;
    height: 32px;
    font-size: var(--mp-font-sm);
    margin-bottom: 2px;
  }

  .mp-function-text {
    font-size: 10px;
    line-height: 1.1;
  }

  .mp-stats-summary {
    gap: var(--mp-space-md);
    padding: var(--mp-space-sm);
    max-width: 300px;
  }

  .mp-stat-summary-number {
    font-size: var(--mp-font-lg);
  }

  .mp-stat-summary-label {
    font-size: 10px;
  }

  .mp-welcome-actions .mp-btn {
    max-width: 100%;
    font-size: var(--mp-font-base);
  }

  .mp-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--mp-space-xs);
  }

  .mp-stat-item {
    padding: var(--mp-space-sm);
  }

  .mp-stat-number {
    font-size: var(--mp-font-xl);
  }

  .mp-stat-label {
    font-size: var(--mp-font-xs);
  }
}

/* ===== 工具类 ===== */
.mp-text-center { text-align: center; }
.mp-text-left { text-align: left; }
.mp-text-right { text-align: right; }

.mp-mt-0 { margin-top: 0; }
.mp-mt-1 { margin-top: var(--mp-space-xs); }
.mp-mt-2 { margin-top: var(--mp-space-sm); }
.mp-mt-3 { margin-top: var(--mp-space-md); }
.mp-mt-4 { margin-top: var(--mp-space-lg); }
.mp-mt-5 { margin-top: var(--mp-space-xl); }

.mp-mb-0 { margin-bottom: 0; }
.mp-mb-1 { margin-bottom: var(--mp-space-xs); }
.mp-mb-2 { margin-bottom: var(--mp-space-sm); }
.mp-mb-3 { margin-bottom: var(--mp-space-md); }
.mp-mb-4 { margin-bottom: var(--mp-space-lg); }
.mp-mb-5 { margin-bottom: var(--mp-space-xl); }

.mp-hidden { display: none; }
.mp-visible { display: block; }
