@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:host {
  display: block;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
}

.home-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;

  .logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    span {
      font-weight: 300;
    }
  }

  .user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(#7C3AED, 0.5);
    
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .avatar-glow {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(#7C3AED, 0.4) 0%, transparent 70%);
      animation: pulse 2s infinite alternate;
    }
  }
}

.tab-navigation {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 12px;
  padding: 0.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);

  .tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;

    i {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }

    &.active {
      color: white;
      background: rgba(#2563EB, 0.2);

      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
        height: 3px;
        background: #2563EB;
        border-radius: 3px 3px 0 0;
      }
    }

    &:hover:not(.active) {
      background: rgba(255, 255, 255, 0.05);
      color: rgba(255, 255, 255, 0.8);
    }
  }
}

.main-content {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-section {
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}