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

/* 基础样式定义 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面布局基础设置 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Element Plus 组件样式覆盖 */
.el-header {
    padding: 0;
    height: 52px !important;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.el-main {
    padding: 20px;
    min-height: calc(100vh - 82px);
    margin-top: 52px;
    margin-bottom: 30px;
    overflow-y: auto;
    position: static;
}

.el-footer {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    height: 30px !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.el-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.el-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.el-card__header {
    background-color: rgba(240, 242, 245, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 20px;
}

.el-card__body {
    padding: 16px 20px;
}

.card-header {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #165DFF;
}

/* 图标与文字间距和对齐优化 */
.card-header i,
.el-button i {
    margin-right: 8px !important;
    display: inline-block;
    vertical-align: middle;
}

.el-button span,
.card-header span {
    display: inline-block;
    vertical-align: middle;
}

.flex.items-center {
    display: flex !important;
    align-items: center;
}

.flex.items-center i {
    margin-right: 8px !important;
}

/* 顶栏菜单项样式优化 */
.el-menu--horizontal > .el-menu-item {
    height: 52px !important;
    line-height: 52px !important;
    padding: 0 16px !important;
    transition: all 0.2s ease;
    border-radius: 0;
    background-color: transparent !important;
}

.el-menu--horizontal > .el-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.el-menu--horizontal > .el-menu-item.is-active {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.el-menu--horizontal .el-menu-item i {
    margin-right: 6px !important;
    color: #ffffff;
}

/* 顶栏logo区域样式 */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-logo i {
    margin-right: 8px;
    font-size: 20px;
}

.header-logo span {
    font-size: 16px;
    font-weight: 600;
}

.el-form-item__label {
    font-weight: 500;
    color: #303133;
}

.el-form-item {
    margin-bottom: 16px;
}

.el-button--primary {
    background-color: #165DFF;
    border-color: #165DFF;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-button--primary:hover {
    background-color: #4080FF;
    border-color: #4080FF;
}

.el-input__inner {
    border-radius: 6px;
    transition: all 0.3s ease;
}

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

/* 内容容器样式 */
.content-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 提示信息样式 */
.el-alert {
    margin-bottom: 16px;
}

/* 页脚内容样式 */
.el-footer .text-center {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .el-header {
        height: 48px !important;
    }
    
    .el-main {
        padding: 15px;
        margin-top: 48px;
        min-height: calc(100vh - 78px);
    }
    
    .content-container {
        width: 100%;
    }
    
    .el-menu--horizontal > .el-menu-item {
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 8px !important;
        font-size: 12px;
    }
    
    .header-logo i {
        font-size: 18px;
    }
    
    .header-logo span {
        font-size: 14px;
    }
    
    .el-card__body {
        padding: 12px 16px;
    }
    
    .card-header {
        font-size: 14px;
    }
}

/* 加载状态样式增强 */
.el-loading-mask {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 描述列表样式优化 */
.el-descriptions-item__content {
    word-break: break-word;
    color: #606266;
}

.el-descriptions-item__label {
    font-weight: 500;
    color: #303133;
}