/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.page {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.page.active {
    display: block;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
   
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

/* 按钮样式 */
.btn-primary {
    background-color: #ab2824;
    color: rgb(243, 235, 152);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.btn-primary:hover {
    background-color: #8a1f1c;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3px 0;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.nav-item.active {
    color: #ab2824;
}

.nav-item:hover {
    color: #ab2824;
}

.nav-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 3px;
    fill: currentColor;
}

.nav-item span {
    font-size: 12px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-camera, .btn-album {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-camera:hover, .btn-album:hover {
    background-color: #f5f5f5;
    border-color: #ab2824;
}

/* 加载提示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ab2824;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #333;
    font-size: 16px;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 4000;
    max-width: 80%;
    text-align: center;
}

.toast-content {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        height: 100vh;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .nav-item {
        padding: 8px 0;
    }
} 

/* 导航栏占位元素样式 */
.nav-placeholder {
    width: 100%;
    height: 80px;
    background: transparent;
} 

.video-loading-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ab2824;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
  background: transparent;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 

/* 微信浏览器提示样式 */
.wechat-browser-tip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../static/home/swiper1.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.tip-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 300px;
  margin-top: -50px; /* 整体向上移动 */
}
.tip-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}
.tip-steps {
  margin-bottom: 30px;
}
.step {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
} 