/* custom.css */
/* 
 * 星座预测App自定义样式
 * @created: 2023-05-11
 */

:root {
  --app-primary: #007AFF;
  --app-secondary: #5856D6;
  --app-success: #34C759;
  --app-warning: #FF9500;
  --app-danger: #FF3B30;
  --app-gray: #8E8E93;
  --app-light-gray: #E5E5EA;
  --app-background: #F2F2F7;
  --app-card-bg: #FFFFFF;
  
  /* 行星主题色 */
  --planet-sun: #FF9500;
  --planet-moon: #D1D1D6;
  --planet-mercury: #8E8E93;
  --planet-venus: #FF2D55;
  --planet-mars: #FF3B30;
  --planet-jupiter: #FF9500;
  --planet-saturn: #AF52DE;
  --planet-uranus: #5AC8FA;
  --planet-neptune: #007AFF;
  --planet-pluto: #8E8E93;
}

/* iPhone状态栏样式 */
.ios-status-bar {
  height: 44px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

/* iPhone底部导航栏样式 */
.ios-tab-bar {
  height: 83px;
  padding-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* iPhone 15 Pro样式 */
.iphone-frame {
  width: 393px;
  height: 852px;
  border-radius: 55px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: var(--app-background);
  margin: 20px;
}

/* iOS样式按钮 */
.ios-button {
  background-color: var(--app-primary);
  color: white;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ios-button:active {
  opacity: 0.8;
}

/* iOS样式卡片 */
.ios-card {
  background-color: var(--app-card-bg);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* iOS风格列表 */
.ios-list-item {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-light-gray);
}

.ios-list-item:last-child {
  border-bottom: none;
}

/* 星座图标样式 */
.zodiac-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  object-fit: cover;
}

/* 行星图标样式 */
.planet-icon {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  object-fit: cover;
}

/* iOS风格分段控制器 */
.ios-segment {
  display: flex;
  background-color: var(--app-light-gray);
  border-radius: 8px;
  padding: 2px;
  margin: 16px 0;
}

.ios-segment-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ios-segment-item.active {
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 评分条样式 */
.rating-bar {
  height: 8px;
  border-radius: 4px;
  background-color: var(--app-light-gray);
  overflow: hidden;
  margin: 8px 0;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--app-primary), var(--app-secondary));
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* 磨砂玻璃效果 */
.glass-effect {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

/* 行星抽取动画 */
@keyframes planetSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.planet-animation {
  animation: planetSpin 2s ease-in-out;
} 