/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}

/* 淡入动画 */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 头部样式 */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(51, 51, 51, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border: 1px solid #fff;
    border-radius: 5px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffcc00;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: #ffcc00;
    transform: scale(1.1); /* 鼠标悬停时变大 */
}

.auth {
    display: flex;
    align-items: center;
}

.auth a {
    margin-left: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.auth a i {
    margin-right: 5px;
}

.auth a:hover {
    color: #ffcc00;
    transform: scale(1.3); /* 鼠标悬停时变大 */
}

/* 主内容区 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h1, section h2 {
    color: #333;
}

section p {
    margin: 10px 0;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin: 5px 0;
}

section ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

section ul li a i {
    margin-right: 5px;
}

section ul li a:hover {
    color: #ffcc00;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        margin-top: 10px;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .auth {
        margin-top: 10px;
    }

    main {
        padding: 0 10px;
    }
}