
/* Vue v-cloak - 隐藏未编译的模板 */
[v-cloak] {
    display: none !important;
}

 /* 加载中样式 */
 .loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e88e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 14px;
}

/* 错误提示样式 */
.error-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.error-content {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 64px;
    color: #f44336;
    margin-bottom: 16px;
}

.error-message {
    color: #666;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn i {
    font-size: 20px;
}
 /* 加载中样式结束 */


 
/* 全局布局 */
#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* 页面头部 */
.header {
    background-color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 5;
}
.page-title {
    font-size: 18px;
    font-weight: 500;
}

/* 内容区域 */
.content {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
}

/* 卡片样式 */
.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;
}

/* 表单组件 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-primary i {
    margin-right: 6px;
}

/* 输入框样式 */
.mui-textfield {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mui-textfield:focus {
    outline: none;
    border-color: #1e88e5;
}

/* 水表卡片 */
.meter-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent; /* 默认透明边框，防止选中时布局跳动 */
}

.meter-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.meter-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.meter-icon i {
    color: #1e88e5;
    font-size: 24px;
}

.meter-info {
    flex-grow: 1;
}

.meter-id {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.meter-balance {
    font-size: 14px;
    color: #666;
}

.balance-amount {
    color: #4caf50;
    font-weight: 500;
}

/* 底部导航 */
.bottom-nav {
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.nav-item:hover {
    background-color: #f5f5f5;
}

.nav-item.active {
    color: #1e88e5;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        padding: 12px;
    }
    
    .card {
        padding: 12px;
    }
}

/* 桌面端布局 - 移除宽度限制，保持全宽显示 */
@media (min-width: 769px) {
    /* 注释掉宽度限制，让页面全宽显示 */
    /* #app {
        max-width: 1200px;
        margin: 0 auto;
    } */
}
