/**
 * Layui自定义样式表
 * 
 * 这个文件包含使用Layui重构的网站样式
 * 包括从内联样式整合的新样式类
 */

/* 全局样式 */
body {
    padding-top: 0; /* 移除顶部填充 */
    padding-bottom: 60px; /* 添加底部填充，为固定页脚留出空间 */
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative; /* 为粒子背景定位 */
    overflow-x: hidden; /* 防止水平滚动条 */
    min-height: 100vh; /* 确保body至少有视口高度 */
}

/* 粒子背景样式 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* 允许点击穿透 */
}

/* 页脚样式 */
.layui-footer {
    padding: 15px 0;
    text-align: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
    z-index: 100;
    position: fixed; /* 固定定位，使页脚始终在视口底部 */
    bottom: 0; /* 固定在底部 */
    left: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); /* 添加顶部阴影，增强视觉分离 */
}

/* 内容包装器样式 */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    margin-top: 5vh;
    padding-bottom: 20px; /* 减少底部填充，因为页脚现在会自然跟随内容 */
}

/* 自定义布局样式，替代layui-layout-admin */
.layui-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Logo容器样式 */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    height: 100px;
    width: 100px;
    margin-bottom: 15px;
}

/* 网站标题容器样式 */
.site-title-container {
    text-align: center;
    margin-bottom: 15px;
}

/* 扁平化网站标题样式 */
.site-title {
    font-size: 23px;
    font-weight: 500;
    color: #2196F3;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
}

.site-title:hover {
    color: #1976D2;
}

/* 自定义Layui样式 */
.layui-input, .layui-textarea {
    height: 38px;
    border: 1px solid #e6e6e6;
}

.layui-input:focus, .layui-textarea:focus {
    border-color: #1E9FFF !important;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.layui-btn {
    border-radius: 4px;
}

.layui-btn-lg {
    padding: 0 25px;
    font-size: 16px;
    height: 44px;
    line-height: 44px;
    min-width: 120px;
}

.layui-btn-normal {
    background-color: #2196F3;
}

.layui-btn-normal:hover {
    background-color: #1976D2;
}

.layui-btn-primary {
    background-color: #f0f0f0;
    color: #333;
}

.layui-btn-primary:hover {
    background-color: #e0e0e0;
    color: #333;
}

.layui-btn-success {
    background-color: #4CAF50;
}

.layui-btn-success:hover {
    background-color: #388E3C;
}

/* 面板样式 */
.layui-panel {
    border-radius: 6px;
    border: 1px solid #eaeaea;
    margin-top: 50px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.1);
}

.panel-heading {
    background-color: #79bdf1;
    color: #0c0c0c;
    border-radius: 6px 6px 0 0;
    padding: 15px;
    text-align: center;
}

.panel-body {
    padding: 20px 20px 5px 20px;
}

/* 表单面板样式 */
.form-panel {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: none;
}

/* 验证码容器样式 */
.captcha-container {
    text-align: right;
}

/* 验证码图片样式 */
.captcha-img {
    height: 36px !important;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    cursor: pointer;
    max-width: 100%;
    display: inline-block;
}

/* 表单按钮容器样式 */
.form-button-container {
    text-align: center;
    margin-top: 20px;
}

/* 表单按钮样式 */
.form-button {
    width: 100%;
    /* 移除最大宽度限制，使按钮占据100%宽度 */
}

/* 错误信息样式 */
.form-error {
    color: #FF5722;
}

/* 返回链接样式 */
.back-link {
    text-align: center;
    margin-top: 5px;
}

.back-link a {
    color: #1E9FFF;
    text-decoration: none;
    font-size: 16px;
}

/* 页脚文本样式 */
.footer-text {
    color: #757575;
    font-size: 13px;
    margin: 0;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .action-buttons .layui-btn {
        margin: 5px 0;
        width: 100%;
    }
    
    body {
        padding-bottom: 50px; /* 减小底部填充，适应移动设备 */
    }
    
    .layui-footer {
        padding: 10px 0; /* 减小页脚内边距 */
    }
    
    .layui-footer p {
        font-size: 12px; /* 减小字体大小 */
    }
}