:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-color: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

/* 头部样式 */
.app-header {
    background: var(--white);
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-button {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 主内容区域 */
.app-main {
    padding: 15px;
}

/* 导航栏 */
.app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    text-decoration: none;
    color: var(--text-light);
    text-align: center;
    padding: 5px;
    flex: 1;
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 提示框样式 */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-error {
    background: #ffebee;
    color: var(--danger-color);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e9;
    color: var(--success-color);
    border: 1px solid #c8e6c9;
}

/* 账单列表样式 */
.bill-list {
    margin: 0 -15px;
}

.bill-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

.bill-item:last-child {
    border-bottom: none;
}

.bill-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.bill-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.bill-content {
    flex: 1;
}

.bill-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.bill-time {
    font-size: 12px;
    color: var(--text-light);
}

.bill-amount {
    font-weight: 600;
}

.bill-amount.expense {
    color: var(--danger-color);
}

.bill-amount.income {
    color: var(--success-color);
}

/* 统计卡片样式 */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.stat-card-title {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card-amount {
    font-size: 24px;
    font-weight: 600;
}

/* 预算进度条样式 */
.progress-bar {
    height: 6px;
    background: var(--bg-color);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .app-container {
        padding-bottom: 70px;
    }
    
    .app-nav {
        padding: 8px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
} 