:root {
  --ev-c-white: #ffffff;
  --ev-c-white-soft: #f8f8f8;
  --ev-c-white-mute: #f2f2f2;

  --ev-c-black: #1b1b1f;
  --ev-c-black-soft: #222222;
  --ev-c-black-mute: #282828;

  --ev-c-gray-1: #515c67;
  --ev-c-gray-2: #414853;
  --ev-c-gray-3: #32363f;

  --ev-c-text-1: rgba(255, 255, 245, 0.86);
  --ev-c-text-2: rgba(235, 235, 245, 0.6);
  --ev-c-text-3: rgba(235, 235, 245, 0.38);

  --ev-button-alt-border: transparent;
  --ev-button-alt-text: var(--ev-c-text-1);
  --ev-button-alt-bg: var(--ev-c-gray-3);
  --ev-button-alt-hover-border: transparent;
  --ev-button-alt-hover-text: var(--ev-c-text-1);
  --ev-button-alt-hover-bg: var(--ev-c-gray-2);
}

:root {
  --color-background: var(--ev-c-black);
  --color-background-soft: var(--ev-c-black-soft);
  --color-background-mute: var(--ev-c-black-mute);

  --color-text: var(--ev-c-text-1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

ul {
  list-style: none;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.no-select {
  user-select: none;
  -webkit-user-select: none; /* Safari/iOS */
  -ms-user-select: none;     /* 旧版Edge */
  -moz-user-select: none;    /* Firefox */
  -webkit-touch-callout: none; /* iOS 长按气泡菜单 */
}

body {
  height: 100vh;
  overflow: hidden;
  background-color: #F7F7F7;
}

code {
  font-weight: 600;
  padding: 3px 5px;
  border-radius: 2px;
  background-color: var(--color-background-mute);
  font-family:
    ui-monospace,
    SFMono-Regular,
    SF Mono,
    Menlo,
    Consolas,
    Liberation Mono,
    monospace;
  font-size: 85%;
}

#root {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 80px;
}

.logo {
  margin-bottom: 20px;
  -webkit-user-drag: none;
  height: 128px;
  width: 128px;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 1.2em #6988e6aa);
}

.creator {
  font-size: 14px;
  line-height: 16px;
  color: var(--ev-c-text-2);
  font-weight: 600;
  margin-bottom: 10px;
}

.text {
  font-size: 28px;
  color: var(--ev-c-text-1);
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  margin: 0 10px;
  padding: 16px 0;
}

.tip {
  font-size: 16px;
  line-height: 24px;
  color: var(--ev-c-text-2);
  font-weight: 600;
}

.react {
  background: -webkit-linear-gradient(315deg, #087ea4 55%, #7c93ee);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.ts {
  background: -webkit-linear-gradient(315deg, #3178c6 45%, #f0dc4e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.actions {
  display: flex;
  padding-top: 32px;
  margin: -6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.action {
  flex-shrink: 0;
  padding: 6px;
}

.action a {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 20px;
  padding: 0 20px;
  line-height: 38px;
  font-size: 14px;
  border-color: var(--ev-button-alt-border);
  color: var(--ev-button-alt-text);
  background-color: var(--ev-button-alt-bg);
}

.action a:hover {
  border-color: var(--ev-button-alt-hover-border);
  color: var(--ev-button-alt-hover-text);
  background-color: var(--ev-button-alt-hover-bg);
}

.versions {
  position: absolute;
  bottom: 30px;
  margin: 0 auto;
  padding: 15px 0;
  font-family: 'Menlo', 'Lucida Console', monospace;
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  border-radius: 22px;
  background-color: #202127;
  backdrop-filter: blur(24px);
}

.versions li {
  display: block;
  float: left;
  border-right: 1px solid var(--ev-c-gray-1);
  padding: 0 20px;
  font-size: 14px;
  line-height: 14px;
  opacity: 0.8;
  &:last-child {
    border: none;
  }
}

@media (max-width: 720px) {
  .text {
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  .versions {
    display: none;
  }
}

@media (max-width: 350px) {
  .tip,
  .actions {
    display: none;
  }
}
.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.content {
  overflow-y: hidden; /* 超出滚动 */
}

.page-header {
  flex: 0 0 auto; /* 固定高度 */
  font-size: 30px;
  color: #333;
  font-weight: bold;
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

.button-style {
  background-color: #E8ECEF;
  width: 100px;
  height: 90px;
  font-size: 50px;
  color: #31577E;
  border-radius: 20%;
}

.e-button-style {
  background-color: #2D5789;
  width: 100px;
  height: 90px;
  font-size: 50px;
  color: white;
  border-radius: 20%;
}

.l-button-style {
  background-color: #E8ECEF;
  width: 100px;
  height: 90px;
  font-size: 50px;
  color: black;
  border-radius: 20%;
}

.card-style {
  width: 460px;
  height: 150px;
  background-color: black;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 60px;
  color: white;
  text-align: right;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
}

.card-style:hover {
  background-color: #2D5789;
  transition: background-color 0.3s ease;
}

.ant-carousel .slick-arrow {
  color: #31577E;
  font-size: 24px;
  opacity: 1;
}

.row-style {
  height: 460px;
  width: 480px;
  background-color: transparent;
}

.button-top-grid {
  display: grid;
  width: 400px;
  grid-template-columns: repeat(4, 1fr); /* 一行3列 */
  column-gap: 15px;
  justify-content: center;
  padding: 5px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 一行3列 */
  row-gap: 20px;
  column-gap: 10px;
  justify-content: center;
  padding: 20px;
}

.button-left-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 一行1列 */
  row-gap: 20px;
  justify-content: center;
  padding: 15px;
}

#keys {
  /* position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 70px);
  row-gap: 20px;
  column-gap: 10px;
  justify-content: center; */
  padding: 20px;
}.mcard-style {
  width: 460px;
  height: 150px;
  /* background-color: black; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  /* color: white; */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
}

.page {
  display: flex;
  flex-direction: column;
  /* height: 100vh; */
}

.content {
  flex: 1 1 auto; /* 占满剩余空间 */
  overflow-y: hidden; /* 超出滚动 */
  padding: 20px; /* 内边距 */
  color: #000;
}

.page-header {
  flex: 0 0 auto; /* 固定高度 */
  font-size: 30px;
  color: #333;
  font-weight: bold;
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

.button-style {
  background-color: #E8ECEF;
  width: 100px;
  height: 90px;
  font-size: 50px;
  color: #31577E;
  border-radius: 20%;
}

.e-button-style {
  background-color: #2D5789;
  width: 100px;
  height: 90px;
  font-size: 50px;
  color: white;
  border-radius: 20%;
}

.l-button-style {
  background-color: #E8ECEF;
  width: 100px;
  height: 90px;
  font-size: 50px;
  color: black;
  border-radius: 20%;
}

.card-style {
  width: 460px;
  height: 150px;
  background-color: black;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 60px;
  color: white;
  text-align: right;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
}

.card-style:hover {
  background-color: #2D5789;
  transition: background-color 0.3s ease;
}

.ant-carousel .slick-arrow {
  color: #31577E;
  font-size: 24px;
  opacity: 1;
}

.row-style {
  height: 460px;
  width: 480px;
  background-color: transparent;
}

.draw-button-top-grid {
  display: grid;
  width: 400px;
  grid-template-columns: repeat(4, 1fr); /* 一行3列 */
  column-gap: 15px;
  justify-content: center;
  margin: auto;
  margin-top: 25px; 
  margin-bottom: -10px;
  padding: 5px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 一行3列 */
  row-gap: 20px;
  column-gap: 10px;
  justify-content: center;
  padding: 20px;
}

.button-left-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 一行1列 */
  row-gap: 20px;
  justify-content: center;
  padding: 15px;
}

#keys {
  /* position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 70px);
  row-gap: 20px;
  column-gap: 10px;
  justify-content: center; */
  padding: 20px;
}

/* .plot-container {
  width: 100%;
  height: 90%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */
#title-bar {
  -webkit-app-region: drag;
  display: flex;
  width: 550px;
  justify-content: space-between;
  align-items: center;
  padding: 7px 15px;
  background: #151b27;
  color: white;
  font-size: 14px;
  user-select: none;
}

#buttons {
  display: flex;
  gap: 10px;
  -webkit-app-region: no-drag;
}

.button {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.button:hover {
  background: rgba(255, 255, 255, 0.1);
}
