/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-size: cover; /* 让背景图片覆盖整个页面 */
    background-attachment: fixed; /* 固定背景，不随页面滚动 */
    background-position: center; /* 居中图片 */
    background-repeat: no-repeat; /* 平铺图片 */
    background-color: #0a0a1a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    /* 使用伪元素创建遮罩 */
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.85); !* 深蓝黑色，90%不透明 *!*/
    z-index: -1; /* 确保遮罩在背景图之上但在内容之下 */
}

/* 布局容器 */
.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
    width: 280px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li {
    margin-bottom: 1.2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    background: linear-gradient(90deg, rgba(252, 85, 19, 0.7) 0%, rgba(209, 103, 50, 0.7) 25.69%, rgba(83, 153, 137, 0.7) 100%);
    color: #fff;
    font-weight: bold;
}

.nav-links i {
    margin-right: 10px;
    width: 24px;
    text-align: center;
}


.contact-info {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #ff7b00;
}

/* 右侧内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 0.8rem 2rem;
    width: 220px;
    border-radius: 6px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.18);
}

.page-title i {
    margin-right: 15px;
    font-size: 2rem;
}

/* 移动端导航头部 */
.mobile-nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(10, 10, 26, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.mobile-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
}

.mobile-logo span {
    margin-left: 8px;
    font-size: 1.2rem;
    color: #ff7b00;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* 移动端侧边栏背景 */
@media screen and (max-width: 768px) {

    /* 如果需要渐变背景，可以使用： */
     .sidebar {
        background: linear-gradient(135deg, rgba(10, 10, 26, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    }
    .sidebar .logo {
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
}

/* 艺术字体样式 */
.art-font {
    /*font-family: 'Times New Roman', serif;*/
    /*font-style: italic;*/
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Logo背景图层 - 保留部分 */
.logo-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 调整为-1，因为删除了tech-background */
    opacity: 0.15; /* 调整透明度以达到最佳效果 */
    pointer-events: none;
}
/* 不同页面的Logo部位 - 示例样式 */
.logo-bg-home {
    background-size: 150%; /* 放大显示部分Logo */
    /* 显示Logo的特定部位 */
    background: url('/img/wy.png') no-repeat 30% 40%;
}

.logo-bg-work {
    background: url('/img/wy.png') no-repeat center center;
    background-size: 180%;
    background-position: 70% 20%;
}

.logo-bg-introduction {
    background: url('/img/wy.png') no-repeat center center;
    background-size: 160%;
    background-position: 50% 60%;
}

.logo-bg-exhibition {
    background: url('/img/wy.png') no-repeat center center;
    background-size: 140%;
    background-position: 20% 80%;
}

.logo-bg-news {
    background: url('/img/wy.png') no-repeat center center;
    background-size: 170%;
    background-position: 80% 50%;
}

.logo-bg-contact {
    background: url('/img/wy.png') no-repeat center center;
    background-size: 200%;
    background-position: 40% 30%;
}

.logo-bg-more {
    background: url('Z') no-repeat center center;
    background-size: 190%;
    background-position: 60% 70%;
}