:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8f9fa;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo i {
    font-size: 1.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

/* 主要内容区 */
.main-content {
    padding: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.card-action {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

/* 统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1rem;
    border-radius: var(--border-radius);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #f72585, #b5179e);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #7209b7, #560bad);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-icon {
    font-size: 1.5rem;
    align-self: flex-end;
    opacity: 0.8;
}

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

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

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

.data-info h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.data-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.data-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: rgba(74, 222, 128, 0.2);
    color: #16a34a;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.status-archived {
    background-color: rgba(100, 116, 139, 0.2);
    color: #475569;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    flex: 1;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

/* 按钮样式 */
.btn {
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

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

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

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

/* 表单样式 */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
.edit-body {
    padding: 1.2rem;
    overflow-y: auto;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(230, 230, 230);
    border-image: initial;
    padding: 0.1rem 0.1rem 1rem 0.1rem;
}
/*自定义编辑菜单*/
.form-groupxs {
    margin-top: 0.5rem;
    position: relative;
}
.form-labelxs {
    width: 35%;
    float: left;
    text-align: right;
    padding: 0.1rem 0.2rem;
    margin: 0.1rem 0.1rem;
    font-weight: 500;
    font-size: 1rem;
    height: 2rem;
    color: var(--dark-color);
    
} 

.form-contentxs {
    /*width: 40%;*/
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 1rem;
    height: 2rem;
    transition: var(--transition);
}
.form-inputxs {
    width: 60%;
    padding: 0.2rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    height: 2rem;
    transition: var(--transition);
}

.form-selectxs {
    width: 40%;
    padding: 0.2rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}
.form-textxs {
    width: 60%;
    padding: 0.2rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    /*height: 2rem;*/
    transition: var(--transition);
}

.thumb {
    float: left;
    display: block;
    width: 2rem;
    height: 2rem;
    padding: 0.01rem;
}
.thumb img {
    max-width: 2rem;
    max-height: 2rem;
    vertical-align: middle;
}


/*
.form-labelxs {
    width: 20%;
    float: left;
    top: 0;
    left: 0;
    line-height: 0.32rem;
    text-align: right;
    
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
} 

.form-inputxs {
    border: solid 1px #E6E6E6;
    padding: 0 0.05rem;
    width: 60%;
    top: 0;
    

    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
*/
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

/* 图表容器 */
.chart-container {
    height: 200px;
    margin: 1.5rem 0;
    position: relative;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

/* 通知 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 警告框 */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: rgba(74, 222, 128, 0.2);
    color: #16a34a;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

.modal-body {
    padding: 1.2rem;
}

.modal-footer {
    padding: 1.2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

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

.table th,
.table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    font-weight: 600;
    background-color: #f8fafc;
}

.table tr:hover {
    background-color: #f8fafc;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

/* 登录页面 */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-box {
    background-color: white;
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.login-logo i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-logo h1 {
    font-size: 1.8rem;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

.login-footer a {
    color: white;
    font-weight: 600;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

 

/*手动添加cdn*/
.fa-database:before {
    content: "\f1c0";
}

.tip {
    display: table;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
}
.tip .box {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 0;
    height: 0;
}
.tip .box .detail {
    display: none;
    border-radius: 2px;
    padding: 0.1rem;
    color: #FFF;
    background: rgba(0,0,0,0.6);
    -webkit-box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.8);
    -moz-box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.8);
    -o-box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.8);
}