/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f7fa;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
.header {
    background-color: #3498db;
    color: #fff;
    padding: 15px 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.header-back {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
}

.header-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
}

.card-body {
    padding: 15px;
}

.card-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: #fff;
}

.btn-success {
    background-color: #2ecc71;
    color: #fff;
}

.btn-success:hover {
    background-color: #27ae60;
    color: #fff;
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    font-weight: bold;
    color: #555;
    background-color: #f9f9f9;
}

/* 警告框 */
.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.page-link.disabled {
    color: #999;
    cursor: not-allowed;
}

/* 仪表板卡片 - 新样式 */
.dashboard-card {
    background-color: #3498db;
    color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.dashboard-card.orange {
    background-color: #f39c12;
}

.dashboard-card.green {
    background-color: #2ecc71;
}

.dashboard-card-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.dashboard-card-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dashboard-card-info {
    font-size: 12px;
    margin-top: 2px;
}

.dashboard-card-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 60px;
    opacity: 0.2;
}

.trend-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-right: 3px;
}

/* 工具栏 */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px 15px;
}

.tool-item {
    width: 25%;
    padding: 5px;
}

.tool-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fa;
    border-radius: 50%;
    margin-bottom: 8px;
    color: #3498db;
    font-size: 18px;
}

.tool-text {
    font-size: 12px;
    color: #333;
    text-align: center;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: #999;
    font-size: 12px;
}

.nav-item.active {
    color: #3498db;
}

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

/* 主体内容 */
.main-content {
    padding: 15px 0;
    margin-bottom: 60px; /* 为底部导航留出空间 */
}

/* 公告 */
.announcement {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.announcement-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.announcement-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.announcement-content {
    color: #555;
}

/* 交易记录 */
.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.transaction-time {
    font-size: 12px;
    color: #999;
}

.transaction-amount {
    font-weight: bold;
}

.transaction-amount.positive {
    color: #2ecc71;
}

.transaction-amount.negative {
    color: #e74c3c;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .toolbar {
        margin: 0 -3px 15px;
    }
    
    .tool-item {
        padding: 3px;
    }
    
    .tool-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .tool-text {
        font-size: 11px;
    }
}

/* 图标字体 */
.icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}