/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 中国风配色方案 */
:root {
    --primary-color: #8B0000;    /* 暗红色 */
    --secondary-color: #E8C59E;  /* 米黄色 */
    --text-color: #333333;       /* 深灰色 */
    --bg-color: #F5F5F5;         /* 浅灰色 */
    --accent-color: #D4AF37;     /* 金色 */
}

/* 全局字体设置 */
body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.nav {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-item {
    margin: 0 1.5rem;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* 标题样式 */
.title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
}

.title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

/* 登录表单样式 */
.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #6B0000;
}

/* 内容卡片样式 */
.card {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 图片样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-text {
    margin-bottom: 1rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-link {
        margin: 0;
    }
} 