/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:  'Microsoft YaHei';
}
a{
    color:inherit;
    text-decoration:none;
}
/* 背景样式 - 默认用于登录页 */
body {
    height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 会员中心页面body样式 */
body.member-page, body.edit-page {
    background-color: #f5f7fa;
    overflow: visible;
    flex-direction: column;
    justify-content: flex-start;
}
.login_body {
    background-image: url('../img/login_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* 粒子效果容器 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 会员中心粒子容器 */
.member-particles {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 登录框 */
.login-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 表单样式 */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    z-index: 1;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 45px 12px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgb(217 217 217);
    border-radius: 8px;
    color: #000;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 密码显示切换按钮 */
.toggle-password {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #fff;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* 复选框样式 */
.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox:hover input ~ .checkmark {
    background: rgba(255, 255, 255, 0.15);
}

.checkbox input:checked ~ .checkmark {
    background: #e63946;
    border-color: #e63946;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox .checkmark:after {
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 忘记密码链接 */
.forgot-password {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #e63946;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(135deg, #c1121f 0%, #a4133c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.login-btn:hover:before {
    left: 100%;
}

/* 登录底部 */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-box {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 10px 40px 10px 40px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 10px;
        font-size: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.login-box {
    animation: fadeIn 0.6s ease-out;
}

.form-group {
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-options {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.login-btn {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.ml-8 { margin-left: 8px; }
.ml-16 { margin-left: 16px; }
.mr-8 { margin-right: 8px; }
.mr-16 { margin-right: 16px; }

.p-8 { padding: 8px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 卡片基础样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    color: #fff;
    background-color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

.btn-danger {
    color: #fff;
    background-color: #ff4d4f;
    border: 1px solid #ff4d4f;
}

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

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.5;
}

.badge-success {
    color: #fff;
    background-color: #52c41a;
}

.badge-warning {
    color: #fff;
    background-color: #faad14;
}

.badge-danger {
    color: #fff;
    background-color: #ff4d4f;
}

.badge-default {
    color: #666;
    background-color: #f0f0f0;
}
input::placeholder {
    color: #888 !important;
}