/* 通用样式 */
:root {
    --primary-color: #daff00; /* 荧光色 */
    --secondary-color: #fff; /* 白色 */
    --font-size-large: 100pt; /* 按钮字体大小 */
    --spacing: 50px; /* 模块间距 */
    --project-width: 600px; /* 项目模块宽度 */
    --project-height: 400px; /* 项目模块高度 */
    --gap-small: 20px; /* 缩小一倍的间距 */
    --gap-large: 80px; /* 加大2倍的间距 */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #000;
}

/* Logo */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
}

.logo img {
    width: 100px;
}

/* 导航菜单 */
.nav-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin-bottom: 15px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 首图 */
.hero img {
    width: 100%;
    height: auto;
}

/* 首页项目展示 */
.projects {
    padding: var(--spacing);
}

.main-project img {
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing);
}

.sub-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 10px; /* 缩小间距为 10px（原为 var(--spacing)） */
    margin-bottom: var(--spacing);
}

.sub-project {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sub-project img {
    width: 100%;
    height: auto;
    display: block;
}

.sub-project .project-info {
    position: absolute;
    bottom: 20px; /* 调整项目信息与底部的间距 */
    left: 25px; /* 调整项目信息与左侧的间距 */
    color: #fff;
}

/* 首页项目文本样式 */
.home-project-name {
    font-size: 28pt; /* 项目名字字体大小 */
    margin: 0;
    color: #fff; /* 白色字体 */
}

.home-project-description {
    font-size: 12pt; /* 项目简介字体大小 */
    margin: 0;
    color: #fff; /* 白色字体 */
}

.project-name {
    font-size: var(--font-size-large);
    margin: 0;
}

.project-description {
    font-size: var(--font-size-small);
    margin: 0;
}

/* ABOUT US */
.about-us {
    padding: var(--spacing);
    text-align: center;
}

/* WORKS 二级页项目展示区域 */
.works-projects {
    padding: var(--spacing);
    max-width: 1920px; /* 最大宽度为1920px */
    margin: 0 auto; /* 居中显示 */
}

/* WORKS 二级页背景颜色 */
body.works-page {
    background-color: #fff; /* 白色背景 */
}

/* WORKS 二级页项目模块文字颜色 */
.works-project-name,
.works-project-description {
    color: #000; /* 黑色文字 */
}

/* 修改 works-project-grid 为每排3个模块顶部对齐的布局 */
.works-project-grid {
    position: relative; /* 相对定位，用于绝对定位子元素 */
    display: block; /* 不使用 Grid 布局 */
    max-width: 1920px;
    margin: 0 auto;
    padding: 50px;
}

/* 每个模块的宽度固定，高度自适应 */
.works-project-item {
    width: calc(33.33% - 10px); /* 每排3个模块，减去间距 */
    display: inline-block; /* 行内块元素 */
    margin-right: 10px; /* 左右间距 */
    margin-bottom: 10px; /* 上下间距 */
    vertical-align: top; /* 顶部对齐 */
}

/* 图片宽度固定，高度自适应 */
.works-project-item img {
    width: 100%; /* 宽度占满模块 */
    height: auto; /* 高度自适应 */
    border-radius: 10px;
}

/* 隐藏项目名和项目简介 */
.works-project-text {
    display: none; /* 隐藏项目名和简介 */
}

/* 背景区域 */
.works-banner {
    position: relative;
    width: 100%;
    height: 610px; /* 背景图高度 */
    overflow: hidden;
}

.banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保背景图完整显示 */
}

/* 悬浮按钮 */
.category-buttons {
    position: absolute;
    bottom: 80px; /* 按钮在背景图下方，距离背景图10px */
    left: 50%; /* 按钮居中 */
    transform: translateX(-50%); /* 水平居中 */
    display: flex;
    gap: 25px; /* 按钮之间的间距 */
}

.category-button {
    font-size: 25pt; /* 缩小两倍的字号（原为50pt，缩小为25pt） */
    color: var(--secondary-color);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-button.active,
.category-button:hover {
    color: var(--primary-color); /* 选中或悬停时变为荧光色 */
}

/* contact联系信息区域 */
.contact-section {
    position: relative;
    width: 100%;
    height: 1486px; /* 背景图高度 */
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 背景图在内容下方 */
}

.contact-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-content {
    position: absolute;
    top: 0;
    left: 100px; /* 与图片左侧相距 100px */
    z-index: 1; /* 内容在背景图上方 */
    padding: 400px;
    color: #fff;
    text-align: left;
}

.contact-content h1 {
    font-size: 72pt;
    margin-bottom: 60px;
}

.contact-info {
    font-size: 24pt;
    line-height: 1.2; /* 行高 */
}

.contact-info p {
    margin: 0;
}

/* 团队图片展示 */
.team-section {
    position: relative;
    margin-top: 400px; /* 调整与顶部的距离 */
    margin-left: 1000px; /* 距离左侧 1000px */
    width: 630px; /* 图片和文字的宽度 */
}

.team-image img {
    width: 630px; /* 图片宽度 */
    height: 420px; /* 图片高度 */
    object-fit: cover; /* 保持图片比例 */
}

.team-description {
    width: 1000px; /* 与图片宽度一致 */
    margin-top: 20px; /* 图片与文字的间距 */
    font-size: 20pt; /* 字号 20pt */
    line-height: 1.6; /* 行高 */
    text-align: left; /* 左对齐 */
    padding-right: 25px; /* 距离右侧 25px */
}

/* 团队成员展示 */
.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* 成员之间的间距 */
    margin-top: 50px; /* 与团队说明文字的间距 */
    margin-left: 1000px; /* 第1、4、7成员与左侧保持1000px */
    width: calc(3 * 306px + 2 * 20px); /* 每排3个成员，宽度为3个成员宽度 + 2个间距 */
}

.member {
    width: 306px; /* 每个成员的宽度 */
    text-align: center; /* 内容居中 */
    cursor: pointer; /* 鼠标悬停时显示手型 */
}

.member img {
    width: 100%; /* 图片宽度 */
    height: 306px; /* 图片高度 */
    object-fit: cover; /* 保持图片比例 */
}

.member h3 {
    margin-top: 10px; /* 图片与名字的间距 */
    font-size: 18px; /* 名字的字号 */
}

/* 自定义光标 */
body {
    cursor: url('custom-cursor.png'), auto; /* 使用 .cur 文件 */
    /* 如果使用 .png 文件，可以这样写： */
    /* cursor: url('images/custom-cursor.png'), auto; */
}

/* 针对链接或按钮等交互元素，可以设置不同的光标 */
a, button, .clickable-element {
    cursor: url('custom-cursor.png'), pointer; /* 悬停时的光标 */
    /* 如果使用 .png 文件，可以这样写： */
    /* cursor: url('光标.png'), pointer; */
}

/* 鼠标互动区域 */
.interactive-section {
    position: relative;
    width: 100%;
    height: 60px; /* 根据需要调整高度 */
    overflow: hidden;
    background-color: #000; /* 背景颜色 */
}

#webgl-canvas {
    width: 100%;
    height: 100%;
    display: block;  
}