:root{
    --game-dark:#0A0704;
    --grad-start:#140E09;
    --grad-end:#20160C;
    --gold-dark:#9E6C37;
    --gold-light:#D4A058;
    --blue-accent:#2563EB;
    --card-white:#FFFFFF;
    --text-main:#222222;
    --text-gray:#666666;
    --text-light:#C9B89F;
    --border-normal:#DDDDDD;
    --border-gold:#9E6C37;
    --err-red:#E53E3E;
    --ok-green:#38A169;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html,body{
    height:100%;
}
body{
    background-color:var(--game-dark);
    font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
    font-size:14px;
    color:var(--text-main);
    display:flex;
    flex-direction:column;
}
.site-header{
    background:linear-gradient(135deg,var(--grad-start),var(--grad-end));
    border-bottom:1px solid var(--gold-dark);
    padding:16px 0;
}
.header-container{
    max-width:1240px;
    margin:0 auto;
    padding:0 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}
.site-logo a{
    color:var(--gold-light);
    font-size:24px;
    font-weight:700;
    text-decoration:none;
    letter-spacing:1px;
}
.header-nav a{
    color:var(--text-light);
    text-decoration:none;
    margin-left:28px;
    font-size:14px;
    transition:color 0.24s ease;
}
.header-nav a:hover{
    color:var(--gold-light);
}
.page-main{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px 20px;
}
.form-card{
    background:var(--card-white);
    width:400px;
    padding:44px 38px;
    border-radius:8px;
    border:1px solid var(--border-normal);
    box-shadow:0 4px 20px rgba(0,0,0,0.25);
}
.form-card.reg-card{
    width:440px;
}
.card-title{
    font-size:24px;
    text-align:center;
    font-weight:600;
    color:var(--text-main);
    margin-bottom:36px;
}
.card-title i{
    color:var(--gold-dark);
    margin-right:8px;
}
.form-item{
    margin-bottom:22px;
}
.form-item input{
    width:100%;
    height:46px;
    padding:0 16px;
    border:1px solid var(--border-normal);
    border-radius:6px;
    background:#fff;
    font-size:14px;
    transition:all 0.24s ease;
}
.form-item input:focus{
    outline:none;
    border-color:var(--gold-dark);
    box-shadow:0 0 0 3px rgba(158,108,55,0.12);
}
.checkbox-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:28px;
}
.submit-btn{
    width:100%;
    height:48px;
    border:none;
    border-radius:6px;
    background:linear-gradient(135deg,var(--gold-dark),var(--gold-light));
    color:#fff;
    font-size:16px;
    font-weight:500;
    transition:all 0.24s ease;
}
.submit-btn:hover{
    box-shadow:0 4px 14px rgba(158,108,55,0.22);
}
.tip-error{
    padding:12px 16px;
    background-color:#FEF0F0;
    border-left:4px solid var(--err-red);
    border-radius:6px;
    color:var(--err-red);
    margin-bottom:24px;
}
.tip-success{
    padding:12px 16px;
    background-color:#F0FFF4;
    border-left:4px solid var(--ok-green);
    border-radius:6px;
    color:var(--ok-green);
    margin-bottom:24px;
}
.link-bar{
    text-align:center;
    margin-top:32px;
}
.link-bar a{
    color:var(--gold-dark);
    text-decoration:none;
}
.link-bar a:hover{
    text-decoration:underline;
}
.site-footer{
    background:linear-gradient(135deg,var(--grad-start),var(--grad-end));
    border-top:1px solid var(--gold-dark);
    padding:24px 0;
    text-align:center;
    width:100%;
}
.footer-text{
    max-width:1240px;
    margin:0 auto;
    color:var(--text-light);
    font-size:13px;
    line-height:1.8;
    padding:0 20px;
}
.footer-text a{
    color:var(--text-light);
    text-decoration:none;
}
.footer-text a:hover{
    color:var(--gold-light);
}
@media(max-width:768px){
    .header-container{
        flex-direction:column;
    }
    .header-nav{
        margin-top:10px;
    }
    .header-nav a{
        margin:0 10px;
    }
    .form-card{
        width:100%;
        max-width:360px;
        padding:36px 28px;
    }
    .form-card.reg-card{
        width:100%;
        max-width:360px;
    }
    .card-title{
        font-size:20px;
    }
    .page-main{
        padding:40px 16px;
    }
}