/* 页面切换动画 */
.page-transition {
    animation: fadeIn 0.3s ease-out;
}

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

/* 返回按钮交互 */
.back-btn {
    border: none;
    background: none;
    padding: 8px;
    margin-right: 10px;
    color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.back-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

/* 页面头部 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.page-title {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
    text-align: center;
    margin-right: 35px; /* 与返回按钮宽度对应 */
}

/* 内容区域 */
.content {
    margin: 60px 15px 15px;
    animation: fadeIn 0.3s ease-out;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.card:active {
    transform: scale(0.99);
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 5px;
}

.bottom-nav .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.bottom-nav .nav-link.active {
    color: #0d6efd;
}

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

/* 为底部导航腾出空间 */
body {
    background-color: #f8f9fa;
    padding-bottom: 60px;
}

/* 添加容器最大宽度限制 */
.container {
    max-width: 1200px;  /* 设置最大宽度 */
    margin: 0 auto;     /* 水平居中 */
    padding: 0 15px;    /* 小屏幕时的左右内边距 */
    width: 100%;        /* 确保小屏幕时占满宽度 */
}

/* 页面头部也需要限制宽度 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 0;  /* 修改padding，去掉左右内边距 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* 页面头部内容容器 */
.page-header .nav-content {
    max-width: 1200px;  /* 与container保持一致 */
    margin: 0 auto;     /* 水平居中 */
    padding: 0 15px;    /* 左右内边距 */
    display: flex;      /* 保持原有的flex布局 */
    align-items: center;
}

/* 底部导航栏也需要限制宽度 */
.bottom-nav .container {
    max-width: 1200px;  /* 与container保持一致 */
    margin: 0 auto;     /* 水平居中 */
    padding: 0 15px;    /* 左右内边距 */
}
  
