/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    height: 100vh;
    overflow: hidden;
    padding-bottom: 60px; /* 为底部导航留出空间 */
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 16px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 8px;
    color: #1e88e5;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary i {
    margin-right: 8px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.mui-textfield {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
}

.mui-textfield:focus {
    border-color: #1e88e5;
    outline: none;
}

/* 水表卡片 */
.meter-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.meter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.meter-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.meter-icon i {
    font-size: 20px;
    color: #1e88e5;
}

.meter-info {
    flex-grow: 1;
}

.meter-id {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

.meter-balance {
    font-size: 12px;
    color: #666;
}

.balance-amount {
    font-weight: 500;
    color: #4caf50;
}

/* 表格样式 */
.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.records-table th {
    background-color: #f5f7fa;
    text-align: left;
    padding: 8px 10px;
    font-weight: 500;
    color: #555;
    border-bottom: 1px solid #eee;
}

.records-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.records-table tr:hover {
    background-color: #f9f9f9;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #bbdefb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    color: #1e88e5;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    color: #666;
}

.nav-item.active {
    color: #1e88e5;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: rgba(30, 136, 229, 0.1);
}

/* 水表选择卡片 */
.water-select-card {
    margin-bottom: 16px;
}

.water-amount-form {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.water-amount-form label {
    margin-right: 12px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.water-amount-form input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-info {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 4px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
}

.price-row {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: #666;
}

.price-value {
    font-weight: 500;
    font-size: 16px;
}

.total-price {
    border-top: 1px solid #ccc;
    padding-top: 8px;
    margin-top: 8px;
}

/* 过滤栏 */
.filter-bar {
    display: flex;
    margin-bottom: 16px;
    gap: 8px;
}

.filter-group {
    flex: 1;
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px;
}

.info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
}

/* 摘要卡片 */
.water-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 16px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.summary-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 20px;
    font-weight: 500;
    color: #1e88e5;
}