@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css";

:root {
    --wood: #6E5B4C;      /* 木刻主色 */
    --ink: #3A2E28;       /* 版画墨色 */
    --paper: #F5F1E8;     /* 宣纸底色 */
    --mountain: #7A9D96;  /* 重庆山色 */
    --accent: #D4A373;    /* 点缀色 */
}


/* 导航栏优化 */
.nav-bar,
.nav-bar1 {
    background: rgba(142, 140, 140, 0.5); /* 透明黑背景 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 底部细边框 */
    padding: 0.95rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-bar {
    top: 0;
    justify-content: space-between;
}

.nav-bar1 {
    top:77px;
    justify-content: center;
    justify-items: center;
}

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

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--paper);
    line-height: 1.3; /* 调整整体行高 */
}

.logo-en {
    font-size: 0.9rem;  /* 英文缩小到原字号的75% */
    font-weight: normal; /* 去除加粗 */
    display: block;     /* 确保换行生效 */
    margin-top: 0.2rem; /* 增加中英文间距 */
    letter-spacing: 0.5px; /* 适当字母间距 */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 80%;
}


.menu-toggle {
    display: none;
    color: var(--paper);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 统一导航链接颜色 */
.nav-bar .nav-link,
.nav-bar1 .nav-link {
    color: rgba(255, 255, 255, 0.9) !important; /* 强制统一颜色 */
    opacity: 0.9; /* 统一透明度 */
}

.social-links {
    display: flex;
    gap: 3rem;/* 第一栏图标间隔 */
}

.social-icon {
    /* 新增以下两行 */
    color: inherit;       /* 继承父元素颜色 */
    text-decoration: none; /* 去除下划线 */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
}



/* 响应式设计 */
/* 在现有媒体查询中添加768px适配 */
@media (max-width: 768px) {
    /* 导航栏整体调整 */
    .nav-bar {
        padding: 0.75rem 3%; /* 减少左右留白 */
    }

    /* Logo区域优化 */
    .logo img {
        height: 35px; /* 适当缩小logo */
    }
    .logo-text {
        font-size: 1rem; /* 调小中文标题 */
        line-height: 1.2;
    }
    .logo-en {
        font-size: 0.7rem; /* 调小英文副标题 */
        margin-top: 0.1rem;
    }

    /* 导航链接区域 */
    .social-links {
        gap: 1.2rem; /* 缩小导航项间距 */
        display: none; /* 默认隐藏桌面导航 */
    }

    /* 显示移动端菜单按钮 */
    .menu-toggle {
        display: block;
    }

    /* 移动端菜单样式 */
    .social-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(94, 93, 93, 0.95);
        flex-direction: column;
        padding: 1rem 3%;
        gap: 0.8rem;
    }

    /* 下拉菜单调整 */
    .dropdown {
        position: relative;
        width: 100%;
        text-align: center;
    }
    .submenu {
        position: static;
        display: none !important; /* 移动端默认隐藏二级菜单 */
        width: 100%;
        background: rgba(70, 70, 70, 0.9);
        padding: 0.5rem 0;
    }
    .submenu.active {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* 导航链接通用样式 */
    .nav-link {
        padding: 0.5rem;
        display: block;
        width: 100%;
        border-radius: 8px;
    }
}

/* 新增992-769px区间适配（可选） */
@media (min-width: 769px) and (max-width: 992px) {
    .social-links {
        gap: 1.5rem; /* 适当缩小间距 */
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .logo-en {
        font-size: 0.75rem;
    }
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* 下拉菜单样式 */
.submenu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(94, 93, 93, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 5%;
    top: 100%; /* 紧贴父菜单底部 */
    z-index: 1001; /* 确保高于其他元素 */
}

/* 显示逻辑改为JS控制 */
.submenu.active {
    display: flex;
    justify-content: right;
    gap: 2rem;
}

/* 在home.css中添加 */
.column-intro {
    font-size: 50%;
    text-align: justify;
    margin-top: -30px;
    margin-bottom: 30px;
}

/* 新增dropdown容器样式 */
.dropdown .nav-link{
    position: relative;
    display: flex;
    align-items: center; /* 垂直居中 */
    height: 100%; /* 继承父级高度 */
}

