/* 自定义样式 */
:root {
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
}

.prototype-container {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.prototype-container:hover {
  transform: translateY(-5px);
}

.iphone-frame {
  position: relative;
  width: 402px;
  height: 874px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 5px 5px 5px 5px ;
  background-color: #111827;
}

.iphone-frame:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 25px;
  background: #111827;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  z-index: 20;
}

.iphone-frame iframe {
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  background-color: white;
}

/* iOS 状态栏样式 */
.ios-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem 0.25rem 1rem;
  background-color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* iOS 底部导航栏样式 */
.ios-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.95);
 
  border-top: 1px solid #e5e7eb;
  z-index: 50;
}

.ios-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ios-bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: #6b7280;
}

.ios-bottom-nav-item.active i,
.ios-bottom-nav-item.active span {
  color: var(--primary);
}

.ios-bottom-nav-item span {
  font-size: 0.65rem;
  color: #6b7280;
}

/* 进度圆环 */
.progress-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-image: conic-gradient(var(--primary) 0% 75%, #e5e7eb 75% 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-ring-inner {
  width:65px;
  height: 65px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 渐变按钮 */
.btn-gradient {
  background-image: var(--primary-gradient);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* 卡片效果 */
.card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f3f4f6;
  color: #4b5563;
}

.tag-blue {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.tag-purple {
  background-color: #ede9fe;
  color: #6d28d9;
}

.tag-green {
  background-color: #d1fae5;
  color: #065f46;
}

/* 波浪动画效果 (语音波形) */
.wave-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background-color: white;
  border-radius: 3px;
  animation: wave 1.5s infinite ease-in-out;
}

.wave-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.wave-bar:nth-child(3) {
  animation-delay: 0.4s;
}

.wave-bar:nth-child(4) {
  animation-delay: 0.6s;
}

.wave-bar:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes wave {
  0%, 100% {
    height: 15px;
  }
  50% {
    height: 30px;
  }
}

/* iOS滑块样式 */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: #e5e7eb;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* 磨砂玻璃效果 */
.glassmorphism {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
} 