/* 公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
}

/* 顶部标题栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    z-index: 100;
}

.header h1 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* 底部导航栏 */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-item {
    text-align: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #f23030;
    transform: scale(1.05);
}

.nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item span {
    font-size: 12px;
}

/* 页面通用样式 */
.page {
    padding: 59px 15px 65px;  /* 顶部44px + 15px, 底部50px + 15px */
    min-height: 100vh;
    background: #f8f8f8;
}

.card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 15px;
    transition: all 0.3s ease;
}

.card:active {
    transform: scale(0.98);
}

/* 按钮样式 */
.btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #f23030;
    color: #fff;
}

.btn-primary:active {
    background: #e62020;
}

.btn-default {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn-default:active {
    background: #f5f5f5;
}

/* 空状态提示 */
.empty-tip {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.empty-tip i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 15px 0;
    color: #999;
}

.loading i {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}