
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    color: #0A2647;
    line-height: 1.6;
}

/* 顶部固定导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0A2647;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar li {
    position: relative;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FF8C00;
}

/* 下拉菜单样式 */
.dropdown {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dropdown a {
    color: #0A2647;
    padding: 10px 20px;
    display: block;
}

.dropdown a:hover {
    background-color: #F5F5F5;
}

/* 导航栏悬停显示下拉菜单 */
.navbar li:hover .dropdown {
    display: block;
}

/* 主要内容区 */
.main-content {
    padding: 100px 20px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 图像装饰样式 */
.decorative-image {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 條件提示樣式 */
.reference-note {
    background-color: rgba(255, 140, 0, 0.1);
    border-left: 5px solid #FF8C00;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
}

/* 文章内容样式 */
article {
    max-width: 800px;
    margin: 0 auto;
}

article h2, article h3, article h4 {
    color: #0A2647;
    margin-top: 20px;
    margin-bottom: 10px;
}

article h2 {
    font-size: 24px;
}

article h3 {
    font-size: 20px;
}

article h4 {
    font-size: 18px;
}

/* 段落样式 */
article p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* 代码块样式 */
article pre {
    background-color: #F5F5F5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #0A2647;
}

/* 渐变标题 */
.gradient-title {
    background: linear-gradient(90deg, #0A2647, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: box-shadow 0.3s ease;
}

.gradient-title:hover {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* 动态文本效果 */
.dynamic-text {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(45deg, #0A2647, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: text-shadow 0.3s ease;
}

.dynamic-text:hover {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* 三维模型容器 */
.threejs-container {
    width: 100%;
    height: 600px;
    perspective: 1000px;
    overflow: hidden;
    background-color: #0A2647;
    margin-bottom: 40px;
    position: relative;
}

.threejs-model {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* 鼠标悬停旋转效果 */
.threejs-container:hover .threejs-model {
    transform: rotateY(360deg);
}

/* 网格布局容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    padding: 20px;
    background: linear-gradient(to bottom, #0A2647, #FFFFFF);
    border-radius: 10px;
}

.grid-item {
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FF8C00;
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 18px;
}

.back-to-top:hover {
    background-color: #0A2647;
    transform: scale(1.1);
}

/* 联系方式模块 */
.contact-module {
    background-color: #F5F5F5;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 40px;
}

.contact-module a {
    color: #0A2647;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-module a:hover {
    color: #FF8C00;
}

/* 半透明元素 */
.semi-transparent-element {
    background-color: rgba(255, 140, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.semi-transparent-element:hover {
    transform: translateY(-5px);
    opacity: 1;
}

/* 扁平化3D图标 */
.flat-3d-icon {
    width: 50px;
    height: 50px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
}

.flat-3d-icon:hover {
    transform: rotateY(180deg);
}

/* 数据可视化图表 */
.chart-container {
    display: flex;
    align-items: flex-end;
    height: 300px;
    padding: 20px;
    background-color: #F5F5F5;
    border-radius: 8px;
}

.bar {
    flex: 1;
    margin: 0 5px;
    background-color: #0A2647;
    animation: grow 1s ease-out forwards;
    height: 0;
}

/* 动画关键帧 */
@keyframes grow {
    to {
        height: var(--bar-height);
    }
}

/* 滚动触发动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .threejs-container {
        height: 50vh;
    }

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

/* 提示信息样式 */
.reference-note {
    font-size: 18px;
    font-weight: bold;
    color: #FF8C00;
    text-align: center;
    margin: 20px 0;
}

/* 过渡效果 */
* {
    box-sizing: border-box;
}

a {
    transition: all 0.3s ease;
}

/* 高级样式调整 */
section {
    margin-bottom: 40px;
}


