/* 主样式文件 */
:root {
  --primary-color: #2A9D8F; /* 主色调：深绿色 */
  --background-color: #121212; /* 背景色：深黑色 */
  --text-color: #FFFFFF; /* 文字颜色：白色 */
  --card-bg: rgba(18, 18, 18, 0.8); /* 卡片背景：半透明黑色 */
  --card-border: rgba(42, 157, 143, 0.3); /* 卡片边框：半透明主色 */
  --success-color: #4CAF50; /* 成功色：绿色 */
  --warning-color: #FFC107; /* 警告色：黄色 */
  --danger-color: #F44336; /* 危险色：红色 */
  --info-color: #2196F3; /* 信息色：蓝色 */
}

/* 全局样式 */
body {
  font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* 玻璃态效果 */
.glass-effect {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(42, 157, 143, 0.3);
  border-radius: 16px;
}

/* 卡片样式 */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #238b7e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 157, 143, 0.4);
}

/* 输入框样式 */
.input-field {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.3);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  z-index: 1000;
}

/* 上涨下跌颜色 */
.up {
  color: #4CAF50;
}

.down {
  color: #F44336;
}

/* iPhone样式模拟 */
.iphone-frame {
  position: relative;
  width: 375px;
  height: 812px;
  background-color: var(--background-color);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 0 0 10px #1a1a1a, 0 0 0 11px #333, 0 20px 50px rgba(0, 0, 0, 0.5);
  margin: 20px auto;
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 30px;
  background-color: #1a1a1a;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏Chrome, Safari和Opera的滚动条 */
.iphone-screen::-webkit-scrollbar {
  display: none;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(42, 157, 143, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .iphone-frame {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
  
  .iphone-notch {
    display: none;
  }
}