: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;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

body {
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
}

#app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

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%;
}

#app {
  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;
}

.vue {
  background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff);
  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;
  }
}

.app-container[data-v-62602f2f] {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

/* 在移动端设备上旋转整个界面90° */
@media screen and (max-width: 768px) {
.app-container[data-v-62602f2f] {
    transform: rotate(90deg);
    transform-origin: center;
    /* 当旋转后，宽度和高度需要交换以适应屏幕 */
    width: 100vh;
    height: 100vw;
    /* 确保不会有滚动条 */
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}
}
.calculator-card[data-v-62602f2f] {
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.input-field[data-v-62602f2f] {
  margin-bottom: 20px;
}
.button-group[data-v-62602f2f] {
  margin-bottom: 20px;
}
.result-success[data-v-62602f2f] {
  padding: 12px;
  background-color: rgba(240, 249, 235, 0.3);
  border-radius: 6px;
  text-align: center;
  color: #52c41a;
  font-size: 18px;
}
.result-error[data-v-62602f2f] {
  padding: 12px;
  background-color: rgba(254, 240, 240, 0.3);
  border-radius: 6px;
  text-align: center;
  color: #ff4d4f;
  font-size: 16px;
}

/* 手指计算动画弹窗样式 */
.finger-calculation-modal[data-v-62602f2f] {
  width: 90%;
  max-width: 500px;
}
.calculation-animation[data-v-62602f2f] {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.hands-container[data-v-62602f2f] {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
}
.hand-container[data-v-62602f2f] {
  position: relative;
  width: 150px;
  height: 200px;
}
.hand-image[data-v-62602f2f] {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hand-image.mirrored[data-v-62602f2f] {
  transform: scaleX(-1); /* 镜像反转，模拟右手 */
}
.finger-markers[data-v-62602f2f] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.finger-marker[data-v-62602f2f] {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: transparent;
  background-color: transparent;
  transition: all 0.3s ease;
}
.finger-marker.active[data-v-62602f2f] {
  background-color: #ff4d4f;
  color: white;
  animation: pulse-62602f2f 0.5s ease-in-out;
}

/* 左手手指位置 */
.left-hand .finger-marker.thumb[data-v-62602f2f] {
  top: 48%;
  left: 10%;
}
.left-hand .finger-marker.index[data-v-62602f2f] {
  top: 16%;
  left: 37%;
}
.left-hand .finger-marker.middle[data-v-62602f2f] {
  top: 13%;
  left: 53%;
}
.left-hand .finger-marker.ring[data-v-62602f2f] {
  top: 17%;
  left: 66%;
}
.left-hand .finger-marker.pinky[data-v-62602f2f] {
  top: 28%;
  left: 85%;
}

/* 右手手指位置（镜像反转后，位置也需要调整） */
.right-hand .finger-marker.thumb[data-v-62602f2f] {
  top: 48%;
  right: 10%;
  left: auto;
}
.right-hand .finger-marker.index[data-v-62602f2f] {
  top: 16%;
  right: 38%;
  left: auto;
}
.right-hand .finger-marker.middle[data-v-62602f2f] {
  top: 13%;
  right: 53%;
  left: auto;
}
.right-hand .finger-marker.ring[data-v-62602f2f] {
  top: 18%;
  right: 65%;
  left: auto;
}
.right-hand .finger-marker.pinky[data-v-62602f2f] {
  top: 28%;
  right: 85%;
  left: auto;
}
@keyframes pulse-62602f2f {
0% {
    transform: scale(1);
}
50% {
    transform: scale(1.2);
}
100% {
    transform: scale(1);
}
}
@keyframes fadeIn-62602f2f {
from {
    opacity: 0;
    transform: translateY(10px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}
