/*
 * 前端共用样式
 * 适用于安卓执法记录仪端的所有页面
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #F5F7FA;
    color: #333333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #165DFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0E42D2;
}

.btn-warning {
    background-color: #FF7D00;
    color: white;
}

.btn-warning:hover {
    background-color: #E56A00;
}

.btn-danger {
    background-color: #F53F3F;
    color: white;
}

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

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 标题样式 */
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    margin-bottom: 16px;
    color: #1D2129;
}

.h1 {
    font-size: 24px;
}

.h2 {
    font-size: 20px;
}

.h3 {
    font-size: 18px;
}

/* 输入框样式 */
.input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E6EB;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

.input:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

/* 列表样式 */
.list {
    list-style: none;
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid #E5E6EB;
}

.list-item:last-child {
    border-bottom: none;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(22, 93, 255, 0.3);
    border-radius: 50%;
    border-top-color: #165DFF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.toast-success {
    background-color: #00B42A;
}

.toast-error {
    background-color: #F53F3F;
}

.toast-warning {
    background-color: #FF7D00;
}

/* 图片样式 */
.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid #E5E6EB;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #86909C;
    text-decoration: none;
}

.nav-item.active {
    color: #165DFF;
}

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

.nav-text {
    font-size: 12px;
}