* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    list-style: none;
    text-decoration: none;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* 滚动公告栏 */
.notice {
    background-color: #8b5cf6;
    color: #fff;
    padding: 0.5rem 0;
    overflow: hidden;
}

/* 头部 */
/* 头部（新增居中样式） */
.header {
    background-color:  #000000;
    padding: 1rem 0; /* 去掉左右内边距，改用容器宽度控制 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #8b5cf6;
    width: 90%; /* 与内容区宽度一致 */
    max-width: 1200px; /* 最大宽度限制 */
    margin: 0 auto; /* 水平居中 */
}

/* 导航栏（调整为右对齐） */
.nav {
    display: flex;
    gap: 2rem;
    line-height: 40px;
    text-align: center;

}

/* 滚动公告栏（新增居中容器） */
.notice-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav a {
            margin-right: 100px;
            color: #cbd5e1;
            text-decoration: none;
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.3s ease;
}

.nav a:hover, .nav a.active {
    background-color: #8b5cf6;
    color: #fff;
}

/* 轮播图 */
.banner {
    width: 100%;
    overflow: hidden;
}

/* 内容区 */
.content {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.intro, .hot-modules, .interaction {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

h2 {
    color: #8b5cf6;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.module-card {
    background-color: #334155;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.module-card h3 {
    text-align: center;
    padding: 1rem;
}

/* 留言表单 */
/* 互动留言 */
    .message-section {
      background-color: #2a2a40;
      padding: 20px;
      margin: 20px;
      border-radius: 8px;
    }
    .message-section h2 {
      color: #a76eff;
      margin-top: 0;
    }
    .message-section input,
    .message-section textarea {
      width: 100%;
      padding: 12px;
      margin-bottom: 15px;
      background-color: #3a3a50;
      border: none;
      border-radius: 4px;
      color: #fff;
      box-sizing: border-box;
    }
    .message-section input::placeholder,
    .message-section textarea::placeholder {
      color: #a0a0a0;
    }
    .message-section textarea {
      height: 100px;
      resize: none;
    }
    .message-section button {
      width: 100%;
      padding: 12px;
      background: linear-gradient(90deg, #8b5cf6, #d946ef);
      color: #fff;
      border: none;
      border-radius: 4px;
      font-size: 16px;
      cursor: pointer;
      transition: opacity 0.3s ease;
    }
    .message-section button:hover {
      opacity: 0.9;
    }


/* 友情链接 */
.friend-link {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: #1e293b;
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

.friend-link h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.friend-link a {
    color: #cbd5e1;
    text-decoration: none;
    margin-right: 2rem;
    transition: color 0.3s ease;
}

.friend-link a:hover {
    color: #8b5cf6;
}

/* 页脚 */
.footer {
    background-color: #1e293b;
    padding: 2rem 5%;
    margin-top: 2rem;
    border-top: 2px solid #8b5cf6;
    text-align: center;
}

.copyright p {
    margin: 0.5rem 0;
    color: #cbd5e1;
}
a:link, a:visited {
    text-decoration: none;

}
a:hover, a:active {
    text-decoration: none;
}
:target{
    display: block;
}
.banner{
    width: 100;
    overflow: hidden;
    text-align: center;
}