
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
}

/* 全局配色变量 */
:root {
    --primary-brown: #8B7355;
    --light-brown: #D4C4B0;
    --bg-cream: #F8F5F0;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 轮播横幅 */
.banner {
    width: 100%;
    height: 500px;
    background: url('../images/1.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(139, 115, 85, 0.2), rgba(139, 115, 85, 0.1));
}

/* 导航栏 */
header {
    background-color: var(--primary-brown);
    padding: 18px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 2px;
}

nav a:hover {
    opacity: 0.9;
    border-bottom: 2px solid #fff;
}

/* 主体容器 */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.login-section {
    display: flex;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin: 30px 0 60px;
}

/* 左侧横图 */
.login-left {
    flex: 1.2;
    background: url('../images/3.1.webp') center/cover no-repeat;
    min-height: 500px;
    margin-top: 50px;
}

/* 右侧表单 */
.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 切换标签 */
.tab-wrap {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}

.tab.active {
    color: var(--primary-brown);
    border-bottom: 3px solid var(--primary-brown);
}

/* 表单默认隐藏 */
.form-item {
    display: none;
}

.form-item.show {
    display: block;
}

/* 输入框 */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
}

.input-group input {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-brown);
}

/* 按钮 */
.btn {
    width: 100%;
    height: 48px;
    background: var(--primary-brown);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* 响应式 */
@media (max-width: 992px) {
    .login-section {
        flex-direction: column;
    }
    .login-left {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner {
        height: 240px;
    }
    .login-right {
        padding: 35px 25px;
    }
}

/* 页脚 */
footer {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 15px;
}

footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}
