/* 小商系统 - 手机端样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移动端适配 */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 主容器样式 */
#app {
    min-height: 100vh;
}

/* 页面容器样式 */
.page-container {
    padding: 16px;
    background-color: #fff;
    margin-bottom: 60px; /* 为底部导航栏留出空间 */
}

/* 顶部导航栏样式 */
.header {
    background-color: #1989fa;
    color: #fff;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* TopMenu组件样式 */
.navbar {
    z-index: 1000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.header-back {
    position: absolute;
    left: 16px;
    color: #fff;
}

/* 底部导航栏样式 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    flex: 1;
}

.footer-nav-item.active {
    color: #1989fa;
}

.footer-nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 按钮样式 */
.btn-primary {
    background-color: #1989fa;
    border-color: #1989fa;
}

.btn-primary:hover {
    background-color: #1677d2;
    border-color: #1677d2;
}

/* 列表样式 */
.list-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

/* 响应式适配 */
@media (max-width: 375px) {
    .page-container {
        padding: 12px;
    }
    
    .header-title {
        font-size: 16px;
    }
}