:root {
  --brand-primary: #007AFF;
  --brand-secondary: #34C759;
  --success: #34C759;
  --error: #E53935;
  --warning: #FFA726;
  --info: #2196F3;
  --background-primary: #FFFFFF;
  --background-secondary: #F5F5F7;
  --text-primary: #000000;
  --text-secondary: #3C3C43;
  --gradient-primary: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
  --gradient-secondary: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
  --gradient-accent: linear-gradient(135deg, #34C759 0%, #30B350 100%);
  --gradient-elevated: linear-gradient(
    135deg,
    #007AFF 0%,
    #34C759 50%,
    #00C7BE 100%
  );
  --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-accent: 0 8px 25px rgba(0, 122, 255, 0.25);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.18);
  --border-radius: 20px;
  --border-radius-small: 12px;
  --divider: rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.05;
  animation: float 8s ease-in-out infinite;
  filter: blur(3px);
  box-shadow: 0 0 40px rgba(134, 146, 247, 0.1);
}

.bg-circle:nth-child(1) {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.bg-circle:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -75px;
  animation-delay: 2s;
}

.bg-circle:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* 添加页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

.logo {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary), 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.4);
  animation: logoFloat 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

.logo::before {
  content: "📏";
  font-size: 42px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.logo::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.title {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(134, 146, 247, 0.1);
  letter-spacing: -0.5px;
  position: relative;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.card {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-primary);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  width: 100%;
  max-width: 400px;
  min-width: 320px;
  box-sizing: border-box;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  z-index: -1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.input-group {
  margin-bottom: 24px;
  position: relative;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.input-label.optional::after {
  content: "（选填）";
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  margin-left: 8px;
  background: rgba(153, 153, 153, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.input-field {
  width: 100%;
  padding: 18px 22px;
  border: 2px solid rgba(134, 146, 247, 0.15);
  border-radius: var(--border-radius-small);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
  backdrop-filter: blur(15px);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-width: 0;
}

.input-field::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.input-field:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(134, 146, 247, 0.15),
    0 4px 12px rgba(134, 146, 247, 0.1);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px);
}

.input-field:focus::before {
  opacity: 1;
}

.input-field::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--border-radius-small);
  background: var(--gradient-primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-secondary), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  background: var(--gradient-elevated);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading {
  display: none;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 360px;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-title {
  color: var(--brand-primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-body {
  margin-bottom: 28px;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.card-key {
  background: var(--gradient-secondary);
  padding: 16px;
  border-radius: var(--border-radius-small);
  font-family: "SF Mono", "Monaco", "Inconsolata", monospace;
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0;
  user-select: all;
  border: 2px solid rgba(134, 146, 247, 0.1);
  position: relative;
  overflow: hidden;
}

.card-key::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(134, 146, 247, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.card-key:hover::before {
  left: 100%;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.modal-close {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-secondary);
  flex: 1;
}

.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(134, 146, 247, 0.3);
}

.modal-copy {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, #45a049, #3d8b40);
}

.modal-copy:active {
  transform: translateY(0);
}

.modal-copy.copied {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.modal-copy.copied:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* 邮箱已使用弹窗特殊样式 */
#email-used-modal .modal-content {
  text-align: center;
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
  position: relative;
}

.modal-icon::before {
  content: "⚠️";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  line-height: 1;
  color: white;
}

#email-used-modal .modal-title {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  background: none;
  -webkit-text-fill-color: initial;
}

#email-used-modal .modal-body p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

#email-used-modal .modal-close {
  background: linear-gradient(135deg, #8692f7, #6c7bff);
  box-shadow: 0 4px 12px rgba(134, 146, 247, 0.3);
}

#email-used-modal .modal-close:hover {
  box-shadow: 0 6px 16px rgba(134, 146, 247, 0.4);
}

/* 邮箱已使用弹窗按钮布局 */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* modal-join-group 既支持button也支持a */
.modal-join-group {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.modal-join-group::before {
  content: "💬";
  font-size: 16px;
}

.modal-join-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

.modal-join-group:active {
  transform: translateY(0);
}

/* 调整按钮大小 */
#email-used-modal .modal-close,
#email-used-modal .modal-join-group {
  padding: 12px 20px;
  font-size: 14px;
  min-width: 100px;
}

/* 次级按钮容器 */
.modal-actions.secondary {
  margin-top: 10px;
}

/* 发送到邮箱按钮样式（仅UI） */
.modal-send-email {
  background: linear-gradient(135deg, #8ec5fc 0%, #e0c3fc 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(142, 197, 252, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.modal-send-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(142, 197, 252, 0.45);
  filter: brightness(1.02);
}

.modal-send-email:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .container {
    padding: 16px;
  }

  .card {
    padding: 24px 20px;
  }

  .title {
    font-size: 24px;
  }

  .logo {
    width: 70px;
    height: 70px;
  }

  .logo::before {
    font-size: 32px;
  }
}

/* 错误提示样式 */
.error-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(229, 57, 53, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  z-index: 1000;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
  font-weight: 500;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* 查询结果样式 */
.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(134, 146, 247, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kv:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(134, 146, 247, 0.2);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(134, 146, 247, 0.1);
}

.kv b {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 高度数据特殊样式 */
.kv[style*="font-weight:600"] {
  background: var(--gradient-secondary);
  border: 2px solid rgba(134, 146, 247, 0.2);
  font-weight: 700;
  color: var(--brand-primary);
  margin: 16px 0 8px 0;
  padding: 16px;
  border-radius: var(--border-radius-small);
  position: relative;
}

.kv[style*="font-weight:600"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
}

.kv[style*="font-weight:600"] b {
  font-size: 16px;
  color: var(--brand-primary);
}

.kv[style*="font-weight:600"] b::before {
  content: "📊";
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 16px;
}

/* 装扮数据特殊样式 */
.kv[style*="装扮数据"] {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.1),
    rgba(255, 152, 0, 0.1)
  );
  border: 2px solid rgba(255, 193, 7, 0.3);
  font-weight: 700;
  color: #ff9800;
  margin: 16px 0 8px 0;
  padding: 16px;
  border-radius: var(--border-radius-small);
  position: relative;
}

.kv[style*="装扮数据"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
}

.kv[style*="装扮数据"] b {
  font-size: 16px;
  color: #ff9800;
}

.kv[style*="装扮数据"] b::before {
  content: "👗";
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 16px;
}

/* 数值样式 */
.kv:not([style*="font-weight:600"]):not([style*="装扮数据"]) {
  font-family: "SF Mono", "Monaco", "Inconsolata", monospace;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(134, 146, 247, 0.05);
}

.kv:not([style*="font-weight:600"]):not([style*="装扮数据"]) b {
  color: var(--text-secondary);
  font-weight: 500;
  font-family: "Noto Sans SC", sans-serif;
}

/* 分隔线样式 */
hr {
  margin: 20px 0 !important;
  border: none !important;
  height: 2px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(134, 146, 247, 0.3),
    transparent
  ) !important;
  border-radius: 1px !important;
}

/* 消息样式 */
.kv:first-child {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1),
    rgba(76, 175, 80, 0.05)
  );
  border: 2px solid rgba(76, 175, 80, 0.2);
  margin-bottom: 16px;
}

.kv:first-child b {
  color: #4caf50;
  font-weight: 600;
}

.kv:first-child b::before {
  content: "💬";
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 16px;
}

/* 弹窗内容优化 */
.modal-content {
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.modal-body {
  text-align: left;
}

/* JavaScript相关的样式 */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.input-field.has-value {
  border-color: var(--brand-primary);
}

/* 身高解析按钮样式 */
.analysis-button-container {
  margin: 16px 0;
  text-align: center;
}

.analyze-btn {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-accent), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.analyze-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.analyze-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  background: var(--gradient-elevated);
}

.analyze-btn:hover::before {
  left: 100%;
}

.analyze-btn:active {
  transform: translateY(0);
}

/* 身高解析模态框样式 */
#analysisModal .modal-content {
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

#analysisModal .modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.height-analysis {
  text-align: left;
}

.analysis-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(134, 146, 247, 0.1);
}

.analysis-header h3 {
  color: var(--brand-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.analysis-section {
  margin: 20px 0;
  padding: 16px;
  background: linear-gradient(
    to bottom,
    rgba(134, 146, 247, 0.08),
    rgba(134, 146, 247, 0.03)
  );
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(134, 146, 247, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.analysis-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
}

.analysis-section:first-of-type {
  margin-top: 0;
}

.analysis-section:last-of-type {
  margin-bottom: 0;
}

/* 身高解析中的特殊样式 */
.height-analysis .kv {
  margin: 8px 0;
  padding: 10px 14px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.8)
  );
  border: 1px solid rgba(134, 146, 247, 0.2);
  border-radius: 8px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.height-analysis .kv:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(134, 146, 247, 0.25);
  transform: translateX(2px);
}

.height-analysis .kv b {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.height-analysis .kv span {
  font-family: "SF Mono", "Monaco", "Inconsolata", monospace;
  font-weight: 600;
}

/* 添加高级视觉效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.neon-glow {
  box-shadow: 
    0 0 5px rgba(134, 146, 247, 0.5),
    0 0 10px rgba(134, 146, 247, 0.3),
    0 0 15px rgba(134, 146, 247, 0.2);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 146, 247, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(134, 146, 247, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 146, 247, 0);
  }
}

/* 增强加载动画 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(134, 146, 247, 0.1);
  border-top: 3px solid var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite, pulse 2s infinite;
}

/* 跑马灯文字效果样式 */
.btn.marquee-mode {
  position: relative;
  overflow: hidden;
  background: var(--gradient-elevated);
  animation: marqueeGlow 1.5s ease-in-out infinite alternate;
}

@keyframes marqueeGlow {
  0% {
    box-shadow: 
      var(--shadow-elevated),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 10px rgba(134, 146, 247, 0.3);
  }
  100% {
    box-shadow: 
      var(--shadow-elevated),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 20px rgba(134, 146, 247, 0.5);
  }
}

.btn.marquee-mode::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: marqueeShine 2s ease-in-out infinite;
}

@keyframes marqueeShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* 跑马灯文字打字机效果 */
.btn.marquee-mode {
  font-family: "Noto Sans SC", sans-serif;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .analyze-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  #analysisModal .modal-content {
    max-width: 95%;
    padding: 24px 20px;
  }

  .analysis-section {
    padding: 12px;
  }

  .tip-content {
    font-size: 13px;
  }
  
  .btn.marquee-mode {
    letter-spacing: 1px;
  }
}
