/* ===== 黑金商务风格登录注册页面 ===== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 确保layui弹窗文字正常显示 */
.layui-layer-dialog .layui-layer-content {
    color: #333333 !important;
}

.layui-layer-title {
    color: #333333 !important;
}

.layui-layer-content {
    color: #333333 !important;
}

/* 弹窗按钮样式 - 金色主题 */
.layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%) !important;
    color: #000000 !important;
    border: 1px solid #ffd700 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.layui-layer-btn .layui-layer-btn0:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%) !important;
    color: #000000 !important;
    border-color: #ffb300 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

/* 成功图标金色 */
.layui-layer-ico1 {
    filter: hue-rotate(45deg) saturate(1.2) brightness(1.1) !important;
}

/* 背景装饰效果 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.05)"/></svg>') repeat;
    animation: backgroundFloat 30s linear infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-10px, -10px) rotate(360deg); }
}

/* 链接样式 */
a:link, a:visited {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffb300;
    text-decoration: none;
}

a:active {
    color: #ffa000;
    text-decoration: none;
}

/* 表单容器主样式 */
.p1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(255, 215, 0, 0.1);
    max-width: 420px;
    margin: 50px auto;
    padding: 40px 40px 60px 40px;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.p1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.02) 0%, rgba(255, 179, 0, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.p1:hover::before {
    opacity: 1;
}

/* 主标题样式 */
.main-title {
    color: #ffd700;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    border-radius: 2px;
}

/* 表单项容器 */
.p3 {
    margin: 20px 0;
    position: relative;
}

.p3.pmob1, .p3.pmob2 {
    margin: 16px 0;
}

/* 浏览器原生密码输入框的眼睛图标 */
/* Edge/IE 浏览器 */
.p3.pmob2 input[type="password"]::-ms-reveal {
    filter: invert(1) brightness(1) !important;
    color: #ffffff !important;
}

.p3.pmob2 input[type="password"]::-ms-reveal:hover {
    filter: invert(1) brightness(1) hue-rotate(45deg) !important;
    color: #ffd700 !important;
}

/* Webkit 浏览器 (Chrome, Safari, Edge Chromium) */
.p3.pmob2 input[type="password"]::-webkit-credentials-auto-fill-button {
    filter: invert(1) brightness(1) !important;
    color: #ffffff !important;
}

.p3.pmob2 input[type="password"]::-webkit-credentials-auto-fill-button:hover {
    filter: invert(1) brightness(1) hue-rotate(45deg) !important;
    color: #ffd700 !important;
}

/* Firefox 浏览器 */
.p3.pmob2 input[type="password"]::-moz-reveal {
    filter: invert(1) brightness(1) !important;
    color: #ffffff !important;
}

.p3.pmob2 input[type="password"]::-moz-reveal:hover {
    filter: invert(1) brightness(1) hue-rotate(45deg) !important;
    color: #ffd700 !important;
}

/* 输入框样式 */
.input {
    width: 100%;
    background: #2a2a2a;
    border: 2px solid rgba(255, 215, 0, 0.2);
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.input::placeholder {
    color: #999999;
    font-weight: 400;
}

.input:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: #333333;
}

.input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: #333333;
    transform: translateY(-1px);
}

/* 密码输入框特殊样式 */
.input.pwd {
    background: #2a2a2a;
}

/* 按钮样式 */
.btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.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: left 0.6s ease;
}

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

.btn:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    background: #555555;
    color: #999999;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* 错误信息样式 */
.errorBox {
    background: rgba(255, 67, 67, 0.1);
    border: 1px solid rgba(255, 67, 67, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 当错误信息需要显示时 */
.errorBox.show,
.errorBox[style*="display: block"] {
    display: block !important;
    opacity: 1;
    animation: errorFadeIn 0.3s ease;
}

@keyframes errorFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 验证码容器样式 */
.p3.captcha-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-container .input.captcha-input {
    flex: 1;
    margin: 0;
}

.captcha-image {
    width: 100px;
    height: 48px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
    background: #2a2a2a;
}

.captcha-image:hover {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

/* LOGO和装饰元素 */
.p2, .p5 {
    margin: 20px auto;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.p2 {
    height: 102px;
    width: 99px;
    background-image: url(/assets/logo/logo2.png);
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

.p5 {
    height: 80px;
    width: 200px;
    border-radius: 12px;
}

/* 页面信息文字 */
.p4, .p6 {
    text-align: center;
    color: #cccccc;
    margin: 20px 0;
}

.p6 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.p4 {
    font-size: 16px;
    line-height: 1.8;
}

/* 页脚信息 */
.copyright, .foot_info {
    text-align: center;
    color: #999999;
    font-size: 12px;
    line-height: 1.5;
    margin: 40px 0 20px;
}

/* 底部链接容器优化 */
.p3[style*="text-align:left"] {
    text-align: left !important;
    padding: 8px 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p3[style*="text-align:left"] p {
    margin: 0 0 8px 0;
}

.p3[style*="text-align:left"] a {
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    width: fit-content;
}

.p3[style*="text-align:left"] a:hover {
    color: #ffb300;
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

/* 修复注册区域中绝对定位的链接 */
.p3[style*="position:absolute"] {
    position: relative !important;
    margin-top: 25px;
    text-align: center !important;
}

.p3[style*="position:absolute"] a {
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.p3[style*="position:absolute"] a:hover {
    color: #ffb300;
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

/* 页面容器 */
.p9 {
    padding-top: 60px;
    max-width: 500px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    background: rgba(255, 215, 0, 0.1);
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 215, 0, 0.7);
}

/* 页面加载动画 */
@keyframes pageLoad {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.p1 {
    animation: pageLoad 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .p1 {
        margin: 20px auto;
        padding: 30px 20px;
        max-width: 90%;
        min-width: 280px;
    }
    
    .main-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .btn {
        height: 44px;
        font-size: 15px;
    }
    
    .p3 {
        margin: 15px 0;
    }
    
    .p9 {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .p1 {
        padding: 25px 15px;
        margin: 10px auto;
        border-radius: 16px;
    }
    
    .main-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .btn {
        height: 42px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .captcha-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .captcha-image {
        width: 120px;
        height: 42px;
        align-self: center;
    }
    
    .p6 {
        font-size: 20px;
    }
    
    .p4 {
        font-size: 14px;
    }
    
    /* 移动端底部链接优化 */
    .p3[style*="text-align:left"] a,
    .p3[style*="position:absolute"] a {
        font-size: 13px;
        padding: 6px 12px;
        border-radius: 8px;
    }
    
    .p3[style*="text-align:left"] {
        gap: 8px;
    }
    
    .p1 {
        padding: 30px 20px 50px 20px;
    }
}

/* 特殊层级和隐藏元素 */
.d12 {
    display: none;
}

.ylogin {
    display: none;
}

.e_u {
    display: none;
}

/* 兼容性样式保持 */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 高级视觉效果 */
.p1 {
    position: relative;
}

.p1::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffd700, #ffb300, #ffd700);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.p1:hover::after {
    opacity: 0.1;
}

/* Google登录按钮hover效果 */
.google-login-btn:hover {
    background: linear-gradient(135deg, #357ae8 0%, #2a66d6 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4) !important;
}

.google-login-btn:active {
    transform: translateY(-1px);
}
