html {
    height: 100%;
    width: 100%;
    font-family: 'Microsoft YaHei';
}

* {
    margin: 0;
    padding: 0;
    color: #5D5D5D;
}

p {
    line-height: 1.2em;
}

:root{
    font-size: 20px;
}

h1 {
    /* font-size: 40px; */
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    /* font-size: 30px; */
    font-size:1.875rem;
    line-height: 30px;
    color: deepskyblue;
    margin: 30px 0 20px 0;
}

h3 {
    font-size: 24px;
    line-height: 30px;
    height: 30px;
    margin: 20px 0 10px 0;
}

h5 {
    font: 20px normal;
    line-height: 16px;
    width: 100%;
    height: 20px;
    margin: 10px 0;
    text-align: center;
}

h6 {
    text-align: center;
    font: 1.5rem normal;
    color: olive;
    margin: 20px 0 0 0;
}

a,
a:hover {
    outline: none;
    text-decoration: none;
    color: #A4AA04;
}

a:hover {
    text-decoration: none;
    color: #5D5D5D;
}

ul {
    line-height: 30px;
}

li {
    list-style: none;
    line-height: 2em;
}

.txt18{
    font-size: 18;
}

.bold {
    font-weight: bold;
}

.boldBlueviolet{
    color:blueviolet;
    font-weight: bold;
}

.notice{
    color:rgb(0, 213, 255);
}

.txtblue {
    color: blue;
}

.txtdarkgoldenrod {
    color:darkgoldenrod;
}


.center{
    text-align: center;
}

.hidden {
    /* display: none; */
    visibility: hidden;
}

#HeaderNavigation {
    width: 100%;
    min-width: max-content;
    height: 100px;
    background-color:dodgerblue;
    color: aquamarine;
}

/* #Container_HeaderNavigation {
    width: 1280px;
    margin: 0 auto;
} */

.container {
    width: 90%;      /* ✅ 相对宽度 */
    max-width: 1280px; /* ✅ 最大宽度限制 */
    margin: 0 auto;
    padding: 0 3%;   /* ✅ 添加内边距 */
}

/* #Navigation {
    float: right;
    padding-right: 40px;
} */

.nav-container {
    display: flex;         /* Flex布局 */
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    height: 80px;          /* 适配移动端的高度 */
}

.nav-menu {
    display: flex;         /* 横向排列 */
    gap: 25px;             /* 统一间距 */
    transition: all 0.3s ease;
    /* margin-left: auto; */
}

#Navigation ul {
    padding-right: 20px;
    height: 100px;
    line-height: 100px; 
    text-align: right;
} 

#Navigation li {
    display: inline;
    /* display: block; */
    list-style: none;
    padding: 0 20px;
}

#Navigation a, #Navigation a:hover {
    font-size: 26px;
    outline: none;
    color:aliceblue;
}

#Navigation a:hover {
    color: greenyellow;
    font-weight: bold;
}

/* #Container {
    width: 1280px;
    margin: 0 auto;
} */

#CourseCaption {
    width: 100%;
    /* margin: 30px auto; */
    margin: 20px auto;
    padding: 0 15px;
}

#CourseCaption p {
    text-align: center;
    line-height: 2em;
}

#Description {
    width: 100%;
    padding: 1px 20px 20px 20px;
    background-color: ivory;
}

#Description p {
    line-height: 36px;
}

#Description li {
    list-style: disc inside;
}

#Article {
    width: 100%;
    padding: 30px 0;
}

#Article p {
    line-height: 30px;
}


/***** TeachingTeam ******/

#TeachingTeam {
    width: 780px;
    padding-bottom: 30px;
}

#TeachingTeam td {
    padding: 10px 0 0 0;
    text-align: center;
    width: 150px;
}

#TeachingTeam a {
    color: darkviolet;
    font-weight: bold;
}

#TeachingTeam a:hover {
    color: fuchsia;
}

.indentText {
    list-style: disc inside;
    text-indent: 40px;
}


/***** Copyright ******/

#Copyright {
    width: 100%;
    background-color:dodgerblue;
    height: 70px;
    text-align: center;
    color:white;
    padding: 10px 0;
}

#Copyright p {
    line-height: 32px;
    color: white;
}

#Copyright a {
    color: white;
}

#Copyright a:hover {
    color: yellow;
}


/****** Content Pages ******/

#Syllabus {
    width: 100%;
    margin: 0 auto;
}

#Datasets {
    width: 80%;
    margin: 0 auto;
}

#Syllabus td, #Datasets td, #Examinations td, #ExaminationsSubmit td{
    margin: 10px;
    border-bottom: silver 1px solid;
    vertical-align: top;
    padding: 10px 20px;
}

#Examinations {
    margin: 0 auto;
    padding-bottom: 100px;
}

#Examinations td {
    margin: 10px;
    border-bottom: silver 1px solid;
    vertical-align: top;
    padding: 10px 20px;
}

#ExaminationsSubmit {
    width: 80%;
    margin: 0 auto;
}

.SyllabusTitle, .DatasetsTitle {
    height: 40px;
    line-height: 40px;
    background-color: silver;
}

.SyllabusDiscussion {
    background-color: lavender;
}

.SyllabusHolidays {
    background-color: beige;
}

.SyllabusChapter {
    background-color: beige;
    font-weight: bold;
    font-size: 24px;
    padding: 5px 0;
}

#Syllabus li, #Datasets li {
    list-style-type: none;
}


.TeachingWeeks {
    vertical-align: middle;
    width: 50px;
}

.OnlineResource {
    vertical-align: middle;
    width: 100px;
}

.OnlineResource a {
    padding: 0 4px;
}

.OnlineResource li{
    text-align: center;
}

#Syllabus img{
    width: 20px;
    height: 20px;
}


@media screen and (min-width:914px) {
    html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview {
        /* padding: 2em calc(50% - 457px + 2em) */
        padding: 2em calc(20%)
    }
}


/***** Examinations ******/
#Examinations td, #ExaminationsSubmit td{
    text-align: center;
    vertical-align: middle;
    padding: 10px;
}


#Examinations input, #ExaminationsSubmit input{
    width:80px;
    height: 30px;
    line-height: 30px;
    font-size: 18px;
    text-align: center;
}

.QuestionTitle{
    font-size: 36px;
    font-weight: bold;
    margin-top: 30px;
    color:black;
}

.QuestionType{
    background-color:honeydew;
}

.QuestionLink{
    font-size:16px;
}

.QuestionAuthor{
    color:blue;
    line-height: 40px;
    margin-top: 30px;
}

.QuestionUpdatetime{
    color:black;
    font-weight: bold;
    height:40px;
    line-height: 40px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px; /* 平板设备减少左右边距 */
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column; /* 移动端保持垂直排列 */
        align-items: flex-start; /* 保持左对齐便于阅读 */
    }
    
    #Navigation a {
        font-size: 1.2rem; /* ✅ 适配手机字体 */
    }
    
    .nav-container {
        justify-content: space-between; /* 移动端左右分布 */
        height: auto; /* 高度自适应 */
    }

    #Navigation li {
        padding: 0 5px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }
    
    h6{
        font-size: 1.1rem;
    }
}