/* ==================== 全局变量 ==================== */
:root {
    --primary-color: #1989fa;
    --success-color: #07c160;
    --warning-color: #ff976a;
    --danger-color: #ee0a24;
    --bg-color: #f7f8fa;
    --text-color: #323233;
    --border-color: #ebedf0;
}

/* ==================== 重置样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==================== 布局容器 ==================== */
.page-container {
    padding: 46px 12px 50px;
    min-height: 100vh;
}

/* 有顶部导航栏 */
.has-navbar {
    padding-top: 46px;
}

/* 有底部标签栏 */
.has-tabbar {
    padding-bottom: 50px;
}

/* ==================== 卡片样式 ==================== */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(100, 101, 102, 0.08);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #323233;
}

/* ==================== 列表样式 ==================== */
.list-item {
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-item:last-child {
    border-bottom: none;
}

/* ==================== 按钮增强 ==================== */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: #fff;
}

.btn-shadow {
    box-shadow: 0 4px 12px rgba(25, 137, 250, 0.3);
}

/* ==================== 间距工具类 ==================== */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }

/* ==================== 文本工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-bold { font-weight: 600; }
.text-gray { color: #969799; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

/* ==================== Flex布局 ==================== */
.flex { display: flex; }
.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;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #969799;
}

.empty-state img {
    width: 120px;
    margin-bottom: 16px;
}

/* ==================== 加载骨架屏 ==================== */
.skeleton {
    background: linear-gradient(90deg, #f2f3f5 25%, #e6e8eb 50%, #f2f3f5 75%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 375px) {
    .page-container {
        padding-left: 8px;
        padding-right: 8px;
    }
}
