// my.page.scss
@use '../tab1/tab1.page.scss' as tab1;

.main-content {
  padding: 80px 15px 90px;
  background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(30, 30, 30, 0.95) 100%),
              url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEiLz4KICA8cGF0aCBkPSJNMjAgMjBMODAgODBNODAgMjBMMjAgODAiIHN0cm9rZT0iI2ZmZCIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPg==');
}

.profile-card {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gold);
  
  .profile-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
      linear-gradient(45deg, rgba(247, 148, 34, 0.6) 0%, rgba(222, 187, 187, 0.6) 100%),
      url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZkIiBzdHJva2Utd2lkdGg9IjEiIG9wYWNpdHk9IjAuMiIvPgogIDxwYXRoIGQ9Ik0wIDUwIEwxMDAgNTBNNTAgMCBMNTAgMTAwIiBzdHJva2U9IiNmZmQiIHN0cm9rZS13aWR0aD0iMSIgb3BhY2l0eT0iMC4yIi8+Cjwvc3ZnPg==');
    background-size: cover;
    filter: brightness(0.8);
  }
  
  .profile-content {
    position: relative;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    color: white;
    z-index: 2;
    
    .avatar-container {
      margin-right: 20px;
      
      .avatar {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        background: 
          linear-gradient(45deg, #f79422 0%, #debbbb 100%),
          url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZkIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBkPSJNMzUgNjVhMTUgMTUgMCAxIDEgMzAgMCIgc3Ryb2tlPSIjZmZkIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8Y2lyY2xlIGN4PSI0MCIgY3k9IjQwIiByPSI1IiBmaWxsPSIjZmZkIi8+CiAgPGNpcmNsZSBjeD0iNjAiIGN5PSI0MCIgcj0iNSIgZmlsbD0iI2ZmZCIvPgo8L3N2Zz4=');
        background-size: cover;
        border: 2px solid var(--gold);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      }
    }
    
    .profile-info {
      flex: 1;
      
      .nickname {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
      }
      
      .account {
        font-size: 0.9rem;
        opacity: 0.9;
        margin-bottom: 10px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
      }
      
      .motto {
        font-size: 0.9rem;
        font-style: italic;
        opacity: 0.8;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
      }
    }
  }
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  
  .action-button {
    flex: 1;
    margin: 0 5px;
    padding: 15px 0;
    background: rgba(197, 177, 177, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    
    &:hover {
      background: rgba(255, 215, 0, 0.2);
      transform: translateY(-3px);
    }
    
    .action-icon {
      font-size: 1.8rem;
      margin-bottom: 8px;
    }
    
    .action-text {
      font-size: 0.9rem;
      color: var(--gold);
    }
  }
}

.menu-list {
  background: rgba(197, 177, 177, 0.15);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  
  .menu-item {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    
    &:last-child {
      border-bottom: none;
    }
    
    &:hover {
      background: rgba(255, 215, 0, 0.1);
    }
    
    .menu-icon {
      font-size: 1.3rem;
      margin-right: 15px;
      width: 24px;
      text-align: center;
      color: var(--gold);
    }
    
    .menu-text {
      flex: 1;
      font-size: 1rem;
      color: var(--gold);
    }
    
    .menu-arrow {
      font-size: 1.5rem;
      color: rgba(255, 215, 0, 0.7);
    }
  }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
  .profile-card {
    .profile-bg {
      filter: brightness(0.6);
    }
  }
  
  .action-buttons .action-button {
    background: rgba(50, 50, 50, 0.5);
  }
  
  .menu-list {
    background: rgba(50, 50, 50, 0.3);
  }
}