/* 自定义样式 - 景区图书馆服务设计App - 蓝白配色方案 */

/* iPhone 15 模拟器样式 - 真实外观 */
.phone-frame {
  width: 390px;
  height: 844px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
  margin: 20px auto;
}

/* iPhone 15 刘海 */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* 隐藏滚动条 */
.phone-screen * {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.phone-screen *::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* 状态栏 - 蓝白配色 */
.status-bar {
  height: 54px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  padding-top: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 5;
}

/* 安全区域 */
.safe-area {
  padding-bottom: env(safe-area-inset-bottom);
}

/* 底部导航栏 - 蓝白配色 */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: white;
  border-top: 1px solid #e0e7ff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 20px;
  padding-top: 8px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(59, 130, 246, 0.1);
  border-radius: 0 0 44px 44px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  transition: all 0.3s;
  cursor: pointer;
}

.nav-item.active {
  color: #3b82f6;
}

.nav-item.active i {
  transform: scale(1.1);
}

.nav-item i {
  font-size: 22px;
}

.nav-item span {
  font-size: 11px;
}

/* 主题渐变背景 - 蓝白配色 */
.gradient-bg {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.gradient-bg-warm {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.gradient-bg-culture {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 按钮样式 - 蓝白配色 */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  opacity: 0.9;
  transform: translateY(0);
}

/* 适老化大字体 */
.text-large {
  font-size: 18px;
  line-height: 1.6;
}

/* 文化主题色 - 蓝白配色 */
.culture-primary {
  color: #3b82f6;
}

.culture-secondary {
  color: #2563eb;
}

/* 滚动区域 - 隐藏滚动条 */
.scroll-area {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-area::-webkit-scrollbar {
  display: none;
}

/* 启动页动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* 任务卡片 - 蓝白配色 */
.task-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-left: 4px solid #3b82f6;
}

/* 路线步骤 */
.route-step {
  position: relative;
  padding-left: 30px;
}

.route-step::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: -20px;
  width: 2px;
  background: #e5e7eb;
}

.route-step:last-child::before {
  display: none;
}

.route-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* 阅读区沉浸式背景 - 蓝白配色 */
.reading-bg {
  background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
  min-height: 100vh;
}

/* 打卡点标记 - 蓝白配色 */
.checkpoint-marker {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.checkpoint-marker.completed {
  background: #10b981;
}

/* 亲子模块 - 蓝白配色 */
.family-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
}

/* 消息通知 */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 启动页优化动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* 隐藏iframe滚动条 */
iframe {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

iframe::-webkit-scrollbar {
  display: none;
}

