/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: white; 
    box-shadow: white 0px 5px 5px;
    padding: 1rem 0;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.navbar .logo {
    margin-left: 5%;
    margin-right: 35%;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    font-family: 'Do Hyeon', sans-serif;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight:normal; 
    font-family: 'Montserrat', sans-serif;
    font-size: small;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-links a:hover{
    background-color:#e3e2e2;
    font-weight: bold;
    /* font-size: large; */
    transition: all 0.3s ease;
}

/* 在CSS中添加 */
.nav-links a.active {
    background-color: #e3e2e2;
    font-weight: bold;
    /* 保持与 :hover 相同的样式 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about .content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}



/* 下拉菜单项样式 */
.dropdown-content li {
    display: inline-block;
    position: relative;
}

/* 分隔线样式 */
.dropdown-content li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 1px;
    background-color: #ddd;
}

/* 链接样式 */
.dropdown-content a {
    color: #000;
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    font-family: 'Kirang Haerang', cursive;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        background: #444;
        box-shadow: none;
        text-align: center;
    }
    
    .dropdown:hover .dropdown-content {
        transform: none;
    }
}
        /* 主标题容器样式 */
        .page-title-bg {
            width: 100%;
            height: 20%;
            margin-top: 5%;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            margin-bottom: 10px;
            background: linear-gradient(to right,
                rgba(245, 190, 209, 0.5),
                rgba(235, 236, 180, 0.5),
                rgba(179, 222, 229, 0.5)
                );
            padding-top: 5%;
            padding-bottom: 4%;
        }

        .page-title-bg .title-content {
            position: relative;
            z-index: 3;
            text-align: center;
            max-width: 70%;
            color: rgb(0, 0, 0);
        }

        /* Title hover effects */
        .page-title-bg .title-content h1 {
            /* Base styles */
            margin-top: 1%;
            font-size: 36px;
            margin: 0;
            font-weight: 600;
            color: rgb(0, 0, 0);
            margin-bottom: 5%;
            /* Add smooth transition for hover effects */
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .page-title-bg .title-content h1:hover {
            /* Hover effects */
            color: rgb(0, 0, 0);
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
            transform: translateY(-5px);
        }
        .page-title-bg .text-content p{
            /* Hover effects */
            font-size: 18px;
            color: rgb(0, 0, 0);
            transform: translateY(-5px);
            margin-bottom: 1%;
        }

        .page-title-bg .follow {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .page-title-bg .follow .follow_list {
            display: flex;
            flex-direction: row;
            gap: 25px;
            list-style-type: none;
        }

        .page-title-bg .follow .follow_list li {
            width: 31px;
            height: 31px;
            border-radius: 50%;
            transition: transform 0.3s ease;
        }

        .page-title-bg .follow .follow_list li:hover {
            transform: translateY(-4px);
        }

        .page-title-bg .follow .follow_list li img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 1px solid var(--gray);
            object-fit: cover;
        }

        /* main 容器样式 */
        .main-container {
            margin-top: 60px;  
            max-width: 100%;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 主菜单项样式 */
        .has-submenu > a {
            display: block;
            padding: 5px 8px;
            color: #333;
            text-decoration: none;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            font-weight: Semi-Bold;
            font-style: italic;
            font-size: 1.1rem;
        }

        /* 内容区样式 */
        .content-area {
            width: 85%;
            margin: 0 auto;
            margin-top: 5%;
            margin-bottom: 5%;
            padding: 20px;
            background-color: #fff;
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 20px;
            box-shadow: 10px 10px 10px #b9b9b6; 
        }
        
        .content-area h1 {
            font-family: 'Do Hyeon', sans-serif;
            font-size: 3rem;
            color: black;
            -webkit-text-stroke: 0.5px #0b0b0b;  /* 给文字添加边框 */
            /* text-shadow: #9383e4 1px 2px 2px; */
        }
        .content-area h2 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.4rem;
            font-weight: bold;
            color:black;
        }
        .content-area h3 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .content-area h4 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2rem;
            font-weight: normal;
        }
        
        .content-area p {   
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            line-height: 1.5;
        }
        .content-area ul {   
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            line-height: 1.5;
            margin-left: 1%;
        }

        .content-section {
            min-height: 100px;
            margin-bottom: 10px;
            margin-left: 10px;
            padding: 20px;
            border-radius: 10px;
        }

        .img-container {
            text-align: center;
        }
        

        .content-section img {
        display: inline-block;  /* 将图片设置为块级元素 */
        margin: 20px auto;  /* 上下间距20px，左右自动居中 */
        max-width: 90%;  /* 确保图片不会超出容器宽度 */
        height: auto;  /* 保持图片比例 */
        vertical-align: middle; /* 保持垂直对齐 */
        margin-right: 10px; /* 设置两张图片之间的间距 */
        }   

        .box-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin-top: 20px;
            box-sizing: border-box;
        }

        .box {
            background-color: rgb(247, 241, 229);
            border: 2px solid #ddd;
            padding: 20px;
            width: 23%;
            height: 260px;
            text-align: center;
            font-size: 16px;
            font-family: 'Montserrat', sans-serif;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .box:hover {
            background-color: rgb(250, 235, 205);
            width: 25%;
            height: 270px;
            transition: all 0.3s ease;  /* 添加过渡效果 */
            box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
        }