:root {
    --primary: #1a365d;
    --secondary: #d4af37;
    --accent: #2a5caa;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --success: #2ecc71;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; 
    line-height: 1.7; 
    color: var(--dark); 
    background-color: #fff; 
    overflow-x: hidden; 
    padding-top: 80px; /* 为固定导航栏留出空间 */
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.site-header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000;
    background-color: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.4s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.header-container {
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.logo { 
    font-size: 28px; 
    font-weight: 800; 
    color: white; 
    display: flex;
    align-items: center;
}
.logo span { color: var(--secondary); }
.nav-main { display: flex; list-style: none; }
.nav-item { margin-left: 40px; }
.nav-link {
    color: rgba(255, 255, 255, 0.9); 
    font-weight: 500; 
    font-size: 17px;
    padding-bottom: 5px; 
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { 
    color: white; 
    border-bottom-color: var(--secondary); 
}
.header-actions { display: flex; align-items: center; }
.header-actions .btn { margin-left: 15px; }

/* 按钮样式 */
.btn {
    display: inline-block; 
    padding: 12px 32px; 
    border-radius: 30px;
    font-weight: 600; 
    font-size: 16px; 
    cursor: pointer; 
    border: 2px solid transparent;
    transition: all 0.3s;
}
.btn-outline-light { 
    border-color: rgba(255,255,255,0.7); 
    color: white; 
    background: transparent; 
}
.btn-outline-light:hover { 
    background: white; 
    color: var(--primary); 
}
.btn-primary { 
    background: linear-gradient(135deg, var(--accent), #1a365d); 
    color: white; 
    border: none; 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(42, 92, 170, 0.3); 
}
.btn-outline { 
    border-color: var(--primary); 
    color: var(--primary); 
    background: transparent; 
}
.btn-outline:hover { 
    background-color: rgba(26, 54, 93, 0.05); 
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius:0px 0px 15px 15px;
    padding: 60px 40px;
    color: white;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* .page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
} */
.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}
.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}


/* 弹窗样式 - 修复版 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}
.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}
.modal-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.modal-close:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}
.modal-body {
    padding: 30px 40px 40px;
}
.modal-footer {
    padding: 20px 40px 30px;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--gray);
}
.modal-footer a {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}
.modal-footer a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}
.el-form-item .form-label {
    display: block !important;
    margin-bottom: 10px !important;
    color: #1a365d !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; 
}
.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 92, 170, 0.1);
}
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.form-check-input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.form-check-label {
    color: var(--gray);
    font-size: 14px;
    cursor: pointer;
}
.form-check-label a {
    color: var(--accent);
}
.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 92, 170, 0.3);
}
.form-submit:active {
    transform: translateY(-1px);
}

/* 会员类型选择 */
.member-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
.member-type-option {
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.member-type-option:hover {
    border-color: var(--accent);
    background-color: #f8fafc;
}
.member-type-option.selected {
    border-color: var(--accent);
    background-color: rgba(42, 92, 170, 0.05);
}
.member-type-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--accent);
}
.member-type-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 16px;
}
.member-type-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
}

/* 社交登录 */
.social-login {
    margin-top: 30px;
    position: relative;
    text-align: center;
}
.social-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}
.social-login-text {
    background: white;
    padding: 0 20px;
    color: var(--gray);
    font-size: 14px;
    position: relative;
    display: inline-block;
}
.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-button {
    flex: 1;
    padding: 14px;
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.social-button.wechat {
    border-color: #07C160;
    color: #07C160;
}
.social-button.wechat:hover {
    background-color: rgba(7, 193, 96, 0.05);
}
.social-button.linkedin {
    border-color: #0077B5;
    color: #0077B5;
}
.social-button.linkedin:hover {
    background-color: rgba(0, 119, 181, 0.05);
}



/* ========== Element 表单整体样式隔离 + 原有 form 样式复用 ========== */
.custom-login-form {
    /* 表单容器基础样式（对应原有 form 标签的默认样式） */
    width: 100%;
    max-width: 450px;
    /* 可选：限制表单最大宽度，和你原有布局一致 */
    margin: 0 auto;
    /* 可选：居中显示 */
}

/* 替代原有 .form-group 样式：Element 表单项间距 */
.custom-login-form .el-form-item {
    margin-bottom: 25px !important;
    margin-right: 0 !important;
    /* 重置 Element 默认右侧间距 */
}

/* 复用原有 .form-label 样式：适配 Element label 插槽 */
.custom-login-form .form-label {
    display: block !important;
    margin-bottom: 10px !important;
    color: #1a365d !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
}

/* 替代原有 .form-control 样式：Element 输入框核心样式 */
.custom-login-form .el-input__inner {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid #e1e5eb !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
    font-family: inherit !important;
    height: auto !important;
    /* 取消 Element 默认固定高度，适配 padding */
    line-height: 1.2 !important;
    /* 调整行高，避免文字垂直居中异常 */
}

/* 输入框聚焦样式：复用原有 .form-control:focus */
.custom-login-form .el-input__inner:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(42, 92, 170, 0.1) !important;
}

/* 复用原有 .form-check 样式：记住我选项 */
.form-check {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

/* 复用原有 .form-check-input 样式 */
.form-check-input {
    margin-right: 12px !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
}

/* 复用原有 .form-check-label 样式 */
.form-check-label {
    color: var(--gray) !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.form-check-label a {
    color: var(--accent) !important;
}

/* 复用原有 .form-submit 样式：登录按钮 */
.form-submit {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    margin-top: 10px !important;
    /* 重置 Element 按钮默认样式（如果按钮是 el-button 则需要） */
    line-height: 1 !important;
    height: auto !important;
}

.form-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(42, 92, 170, 0.3) !important;
}

.form-submit:active {
    transform: translateY(-1px) !important;
}

/* 可选：修复 Element 表单默认的 label-position:top 导致的间距问题 */
.custom-login-form .el-form-item__label {
    padding: 0 !important;
    height: auto !important;
    line-height: normal !important;
}



/* 响应式设计 */
@media (max-width: 1100px) {
    .header-container {
        padding: 0 30px;
    }
    .nav-item {
        margin-left: 30px;
    }
    .page-header {
        padding: 50px 30px;
    }
    .page-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-main {
        display: none; /* 移动端隐藏导航，实际项目中应该替换为汉堡菜单 */
    }
    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }
    .header-container {
        padding: 0 20px;
    }
    .logo {
        font-size: 24px;
    }
    .page-header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    .page-title {
        font-size: 32px;
    }
    .page-subtitle {
        font-size: 18px;
    }
    .card {
        padding: 25px;
    }
    .action-buttons {
        grid-template-columns: 1fr;
    }
    .btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    .page-title {
        font-size: 28px;
    }
    .page-subtitle {
        font-size: 16px;
    }
    .card-title {
        font-size: 22px;
    }
    .resource-grid {
        grid-template-columns: 1fr;
    }
    .header-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .path-stage {
        flex-direction: column;
        align-items: flex-start;
    }
    .stage-number {
        margin-bottom: 15px;
    }
}