/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 加载状态 */
.van-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: white;
}

.van-loading__text {
  color: white !important;
  margin-top: 12px;
}

/* 页面容器 */
.page-container {
  background: white;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 头部区域 */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.app-icon-wrapper {
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 120px;
  height: 120px;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e6e9ef);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 18px;
  /* 浮雕阴影效果 */
  box-shadow: 
    10px 10px 20px rgba(163, 177, 198, 0.6),
    -10px -10px 20px rgba(255, 255, 255, 0.9),
    inset 3px 3px 6px rgba(255, 255, 255, 0.2),
    inset -3px -3px 6px rgba(163, 177, 198, 0.2);
}

.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: 18%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  background: white;
}

.app-icon img[src=""],
.app-icon img[src="assets/icon-placeholder.png"] {
  display: none;
}

.app-icon:empty::after {
  content: '📱';
  font-size: 50px;
  position: relative;
  z-index: 2;
}

.app-name {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.app-version {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 8px;
}

.app-desc {
  font-size: 15px;
  color: #515154;
  line-height: 1.6;
  padding: 0 12px;
}

/* 安装按钮 */
.install-button {
  margin: 24px 0 28px;
  height: 52px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(79, 195, 247, 0.35);
  transition: all 0.3s ease;
}

.install-button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(79, 195, 247, 0.3);
}

/* 信息组 */
.info-group {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.info-group .van-cell {
  padding: 16px !important;
  font-size: 15px !important;
  background: white !important;
}

.info-group .van-cell::after {
  border-bottom: 1px solid #ebedf0;
}

.info-group .van-cell:last-child::after {
  border-bottom: none;
}

.info-group .van-cell__title {
  color: #515154 !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}

.info-group .van-cell__value {
  color: #1d1d1f !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}

.info-group .van-icon {
  color: #29b6f6 !important;
  font-size: 20px !important;
  margin-right: 12px !important;
}

/* 安装等待提示 */
.install-notice {
  margin: 16px;
  border-radius: 12px;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(255, 109, 0, 0.15);
  min-height: 120px;
}

.install-notice .van-notice-bar__wrap {
  padding: 18px 16px !important;
  min-height: 100px;
  white-space: normal !important;
}

.install-notice .van-notice-bar__content {
  white-space: normal !important;
  word-wrap: break-word !important;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
}

.wait-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  object-fit: contain;
  background: #f5f5f5;
}

.notice-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  color: #d84315;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  overflow-wrap: break-word;
}

.notice-text strong {
  display: block;
  font-weight: 600;
  color: #ff6d00;
  margin-bottom: 6px;
  font-size: 14px;
  word-wrap: break-word;
  white-space: normal;
}

.notice-text span {
  display: block;
  color: #d84315;
  font-size: 13px;
  line-height: 1.7;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  overflow-wrap: break-word;
}

/* 帮助区域 */
.help-section {
  margin-bottom: 24px;
}

.help-section .van-collapse-item__title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  padding: 16px;
}

.help-content {
  padding: 8px 16px 16px;
}

.help-content .van-steps {
  padding: 12px 0;
}

.help-content .van-step__title {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.help-content .van-step__title h3 {
  font-size: 15px;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.help-content .van-step__title p {
  font-size: 14px;
  color: #86868b;
  margin: 0;
  font-weight: normal;
  line-height: 1.6;
}

.question-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.answer {
  font-size: 14px;
  color: #515154;
  line-height: 1.7;
  margin-top: 8px;
  padding: 12px;
  background: #f7f8fa;
  border-radius: 8px;
  border-left: 3px solid #29b6f6;
}

/* 页脚 */
.footer {
  margin-top: 32px;
  text-align: center;
}

.footer .van-divider {
  margin: 20px 0;
}

.footer-text {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 6px;
}

.footer-note {
  font-size: 12px;
  color: #c8c9cc;
}

/* 验证码弹窗 */
.captcha-container {
  padding: 12px 0;
  min-width: 300px;
}

.captcha-title {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 8px;
}

.captcha-desc {
  font-size: 14px;
  color: #86868b;
  text-align: center;
  margin-bottom: 20px;
}

.turnstile-box {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.verify-button {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  border: none;
}

.verify-button[disabled] {
  background: #f7f8fa;
  color: #c8c9cc;
  opacity: 0.6;
}

/* 滑动验证码样式自定义 */
#captcha-box canvas {
  border-radius: 8px;
}

/* 响应式 */
@media (max-width: 480px) {
  #app {
    padding: 12px;
  }
  
  .page-container {
    padding: 28px 20px;
    border-radius: 20px;
  }
  
  .app-name {
    font-size: 24px;
  }
  
  .app-icon-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .app-icon {
    width: 100px;
    height: 100px;
    padding: 15px;
    /* 移动端浮雕阴影 */
    box-shadow: 
      8px 8px 16px rgba(163, 177, 198, 0.5),
      -8px -8px 16px rgba(255, 255, 255, 0.9),
      inset 2px 2px 4px rgba(255, 255, 255, 0.2),
      inset -2px -2px 4px rgba(163, 177, 198, 0.2);
  }
  
  .app-icon img {
    border-radius: 16%;
  }
  
  .app-icon:empty::after {
    font-size: 42px;
  }
  
  .install-button {
    height: 48px;
    font-size: 17px;
  }
  
  .info-group .van-cell {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }
  
  .info-group .van-cell__title {
    font-size: 14px !important;
  }
  
  .info-group .van-cell__value {
    font-size: 14px !important;
  }
  
  .info-group .van-icon {
    font-size: 18px !important;
  }
}

/* Vant 组件样式覆盖 */
.van-button--primary {
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  border: none;
}

.van-popup {
  max-width: 90%;
}

.van-cell {
  line-height: 1.5 !important;
}

.van-cell__title,
.van-cell__value,
.van-cell__label {
  line-height: 1.5 !important;
}

.van-cell-group {
  background-color: transparent !important;
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
  /* 暂不支持暗黑模式 */
}

