@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');


* {
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  font-family: 'Roboto', sans-serif;
  color: rgb(29, 29, 31);
}

/* Header 标头的设置 */
header,
.right,
.left {
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-wrap {
  background-color: rgba(245, 245, 247);
  width: 100%;
  backdrop-filter: blur(12px);
  padding: 20px 40px;
  overflow: auto;
  margin-bottom: 40px;
}

.head-logo {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.head-logo span {
  color: rgb(29, 29, 31);
}

.nav-items {
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin: 20px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

section,
.right,
.left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-wrap {
  background-color: rgba(250, 246, 243);
  width: 80%;
  border: 1px solid rgba(250, 246, 243, 0.8);
  box-shadow: inset 0 0 5px rgba(250, 246, 243, 0.6);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  padding: 50px 100px;
  overflow: auto;
  margin-bottom: 50px;
}

card,
.right,
.left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-wrap {
  background-color: rgb(207, 237, 181);
  width: 80%;
  border: 1px solid rgba(207, 237, 181, 0.8);
  box-shadow: inset 0 0 5px rgba(207, 237, 181, 0.6);
  border-radius: 15px;
  backdrop-filter: blur(4px);
  padding: 15px 30px;
  overflow: auto;
  margin-bottom: 10px;
}

inputcard,
.right,
.left {
  display: flex;
  justify-content: left;
  align-items: center;
}

.inputcard-wrap {
  background-color: rgb(195, 232, 163);
  width: 100%;
  border: 1px solid rgba(195, 232, 163, 0.8);
  box-shadow: inset 0 0 5px rgba(195, 232, 163, 0.6);
  border-radius: 15px;
  backdrop-filter: blur(4px);
  padding: 5px 5px;
  overflow: auto;
  margin-bottom: 5px;
}

.inputcard-wrap label {
  display: flex;
  align-items: center; /* 垂直居中 */
  gap: 10px; /* 文字和输入框的间距 */
}

label {
  font-size: 1rem;
  color: rgb(29, 29, 31);
  width: 100%;          /* 让 label 宽度与输入框一致 */
  text-align: left;
}

input,
textarea {
  background-color: transparent;
  color: rgb(29, 29, 31);
  font-size: 1rem;
  padding: 5px;
  border: 1px solid rgb(29, 29, 31, 0.5);
  border-radius: 10px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(29, 29, 31, 0.5);
}

/* 下面是代码框的风格部分，没有问题的情况下，无需修改 */

/* 代码框整体 */
.code-container {
  position: relative;
  background-color: #1e1e1e;
  /* 深色背景 */
  border-radius: 10px;
  /* 圆角 */
  padding-top: 25px;
  /* 给标题栏留空间 */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  /* 阴影 */
  max-width: 600px;
  overflow: auto;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
}

/* Xcode 风格标题栏 */
.title-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: #2d2d2d;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

/* macOS 风格的红黄绿按钮 */
.title-bar .btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.btn.red {
  background-color: #ff5f57;
}

.btn.yellow {
  background-color: #ffbd2e;
}

.btn.green {
  background-color: #28c940;
}

/* 代码框 */
pre,
pre code {
  margin: 0;
  padding: 15px;
  text-align: left;
  color: #dcdcdc !important;
  /* 浅色文本 */
  font-size: 14px;
  white-space: pre;
  overflow-x: auto;
}

/* 滚动条美化 */
.code-container::-webkit-scrollbar {
  height: 8px;
}

.code-container::-webkit-scrollbar-track {
  background: #2d2d2d;
  /* 滚动条轨道颜色 */
  border-radius: 10px;
}

.code-container::-webkit-scrollbar-thumb {
  background: #4e4e4e;
  /* 滚动条滑块颜色 */
  border-radius: 10px;
}

.code-container::-webkit-scrollbar-thumb:hover {
  background: #6e6e6e;
}

/* 复制按钮 */
.copy-btn {
  position: absolute;
  top: 4px;
  right: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-btn:active {
  background: rgba(255, 255, 255, 0.4);
}