.page-config-container {
  padding: 20px;
  min-height: calc(100vh - 160px);
}

.form-card {
  height: 100%;
  overflow-y: auto;

  .page-config-form {
    .ant-form-item {
      margin-bottom: 16px;
    }
  }
}

.preview-card {
  height: 100%;
  display: flex;
  flex-direction: column;

  .ant-card-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
}

.phone-frame {
  width: 375px;
  height: 812px;
  border: 10px solid #333;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  background-color: #000;

  // 手机顶部听筒
  &::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background-color: #222;
    border-radius: 3px;
    z-index: 1;
  }

  // 手机底部home键
  // &::after {
  //   content: '';
  //   position: absolute;
  //   bottom: 10px;
  //   left: 50%;
  //   transform: translateX(-50%);
  //   width: 50px;
  //   height: 50px;
  //   border: 2px solid #333;
  //   border-radius: 50%;
  //   z-index: 1;
  // }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow-y: auto;
  font-size: 14px;
  color: #333;

  // 滚动条样式
  &::-webkit-scrollbar {
    width: 4px;
  }

  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
  }
}

.phone-status-bar {
  height: 44px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.phone-header {
  background-color: #1890ff;
  color: #fff;
  padding: 16px;
  text-align: center;
}

.phone-content {
  padding: 20px;
  height: 300px;
  // min-height: calc(100% - 120px);
  background: linear-gradient(
      180deg,
      rgba(208, 229, 255, 0.44) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(146deg, #d3d7ff 0%, rgba(255, 255, 255, 0) 37%),
    linear-gradient(194deg, #dffff3 0%, #ffffff 30%);
  p {
    margin: 0 0 16px 0;
    line-height: 1.6;
  }

  .page-type-indicator {
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
  }
  .page-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    img {
      width: 24px;
      height: 24px;
      margin-right: 8px;
    }
  }

  .tab-content {
    padding: 15px 0 0 0;
    position: relative;
  }
  .phone-button {
    padding: 4px 12px;
    border-radius: 4px;
    color: #fff;
  }
  .tabs-content {
    display: flex;
    align-items: center;
    .tab-item {
      padding: 5px 15px;
      border-radius: 4px;
      margin-right: 10px;
      color: #333;
      cursor: pointer;
    }
  }
}

.phone-footer {
  background-color: #f5f5f5;
  color: #666;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid #e8e8e8;
  position: sticky;
  bottom: 0;
}

@media (max-width: 1200px) {
  .page-config-container {
    .ant-row {
      .ant-col {
        &[span='12'] {
          width: 100%;
          margin-bottom: 20px;
        }
      }
    }
  }
}

.menu-content {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: #fff;
  font-size: 12px;
  .item {
    text-align: center;
    padding: 10px 0;
    width: 50%;
    cursor: pointer;
  }
}
