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

body {
    background-color: #f7f3ec;
    font-family: 'Apple LiSung Light', serif;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* main {flex: 1;} */

/* 导航栏样式 - 包含阴影和透明度 */
.navbar {
    background-color: rgba(174, 58, 30, 0.95); /*深蓝灰色*/
    color: white;
    padding: 0 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.navbar-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-container h1 {
    padding-bottom: .3rem;
    margin-left: 2rem;
    font-size: 2.7rem;
    font-family: 'Apple LiSung Light', serif
}

.logo {
    margin-left: 2.5%;
    height: 72px;
    width: auto;
}

.title {
    margin-left: 2%;
    height: 42px;
    width: auto;
}

.nav-links {
    margin: 0 auto;
    margin-right: 5%;
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    /* font-weight: 340; */
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    line-height: 80px;
}

.nav-links a:hover {
    color: wheat;
}

/* 选中项高亮和下划线效果 */
.nav-links a.active {
    color: wheat;
    font-weight: bold;
    /* font-weight: bold; */
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: wheat;
    animation: underline 0.3s ease-out;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container img{
    width: 100%;
    height: auto;
}

.img-btn {
    position: absolute;
    bottom: 4%; /* 距底部15%位置 */
    right: 23%;
    transform: translateX(50%);
    display: inline-block; /* 改为行内块元素 */
    width: 20%; /* 宽度由内容决定 */
    height: auto;
    padding: 0; /* 移除内边距 */
    transition: all 0.3s ease;
}

.btn-img {
    display: block;
    margin: 0; /* 移除外边距 */
}

.site-footer {
    /* margin-top: auto; */
    background-color: #ae3a1e;
    color: #ecf0f1;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-container {
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-info p {
    margin-bottom: 0.8rem;
    color: white;
}

.footer-info a {
    color: white;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: #7f8c8d;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.social-icon img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icon img:hover {
    opacity: 1;
}

/* 悬停效果 */
.img-btn:hover .btn-img {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
}

@keyframes underline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* 移动端菜单按钮 - 默认隐藏 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* 响应式设计 - 移动端 */
@media (max-width: 1080px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(174, 58, 30, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        clip-path: circle(10000px at 90% -10%);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: flex;
        margin-right: 3%;
    }
    
    /* 菜单按钮动画 */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 移动端logo调整 */
    .logo img {
        height: 30px;
    }
}

.beian {
    display: inline-block;
    margin-right: 10px;
    padding-left: 20px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI2JkYzNjNyIgZD0iTTEyLDJBMTAsMTAgMCAwLDAgMiwxMkExMCwxMCAwIDAsMCAxMiwyMkExMCwxMCAwIDAsMCAyMiwxMkExMCwxMCAwIDAsMCAxMiwyTTEyLDNBOSw5IDAgMCwxIDIxLDEyQTksOSAwIDAsMSAxMiwyMUE5LDkgMCAwLDEgMywxMkE5LDkgMCAwLDEgMTIsM00xMSw3VjE3SDEzVjdIMTFNMTUsN1YxN0gxN1Y3SDE1WiIgLz48L3N2Zz4=') no-repeat left center;
    background-size: 16px;
}