/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

html, body {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 页面容器 */
.page {
    width: 100%;
    min-height: 100vh;
    display: none;
    flex-direction: column;
}

.page.active {
    display: flex;
}

/* 顶部导航栏 */
.navbar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.navbar-back {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.navbar-back::before {
    content: '<';
    font-size: 24px;
    color: #333;
}

.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.navbar-action {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    padding: 0 5px;
}

/* 底部导航栏 */
.tabbar {
    height: 60px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #f0f0f0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.tabbar-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabbar-label {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.2;
}

.tabbar-item.active .tabbar-label {
    color: #8b5cf6;
}

.tabbar-add {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    position: absolute;
    top: -25px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn {
    background-color: #c8a882;
    color: #fff;
}

.primary-btn:hover {
    background-color: #b89770;
}

.secondary-btn {
    background-color: #d4c4b0;
    color: #333;
}

.secondary-btn:hover {
    background-color: #c4b4a0;
}

/* 内容区域 */
.content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px;
}

.content-no-tabbar {
    flex: 1;
    overflow-y: auto;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

