/* --- Google Fonts 引入 (推荐放在CSS文件最顶部) --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');

/* --- 全局基础样式 (Body) --- */
body {
    color: #2c3e50;
    font-family: 'Noto Sans SC', Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    animation: pageFadeIn 0.8s cubic-bezier(.4,0,.2,1);
}

/* 首页背景 */
.page-home {
    background: linear-gradient(120deg, #e0f7fa 0%, #b2dfdb 100%);
    background-attachment: fixed;
}
/* 联系页背景 */
.page-contact {
    background: linear-gradient(120deg, #69f7be 0%, #3a95f7 100%);
    background-attachment: fixed;
}

@keyframes pageFadeIn {
    from { opacity: 0; filter: blur(8px); }
    to { opacity: 1; filter: blur(0); }
}
}

/* --- 主要内容容器 (Main) - 毛玻璃效果 --- */
main {
    width: 90%;
    max-width: 800px;
    /* 新增: 毛玻璃效果核心 */
    background: rgba(255, 255, 255, 0.35); /* 半透明背景 */
    backdrop-filter: blur(15px) saturate(180%); /* 模糊效果和饱和度提升 */
    -webkit-backdrop-filter: blur(15px) saturate(180%); /* 兼容Safari */
    border: 1px solid rgba(255, 255, 255, 0.5); /* 增加一个微妙的边框，让边缘更清晰 */
    
    padding: 20px 40px;
    margin-top: 30px;
    border-radius: 16px; /* 改动: 增加圆角，配合毛玻璃效果更佳 */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* 改动: 调整阴影以适应新风格 */
}


/* --- 标题样式 (h2) --- */
h2 {
    font-size: 36px;
    text-align: center;
    color: #1e2a38; /* 改动: 使用更深的颜色以保证在毛玻璃背景上的可读性 */
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 700;
}

/* --- 通用段落样式 (p) --- */
p {
    font-size: 17px;
    margin: 15px 0;
    text-align: left;
}

/* --- 专门用于居中的正文样式 (.jvzhongzhengwen) --- */
.jvzhongzhengwen {
    text-align: center;
    color: #2c3e50; /* 改动: 调整颜色 */
    font-size: 18px;
}

/* --- 导航栏容器 (nav) - 毛玻璃效果 --- */
nav {
    width: 100%;
    position: sticky; /* 新增: 让导航栏在滚动时固定在顶部 */
    top: 0;
    z-index: 1000; /* 确保导航栏在最上层 */
    
    /* 新增: 毛玻璃效果核心 */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 导航链接样式 (a) --- */
nav ul li a {
    color: #1e2a38; /* 改动: 使用深色以保证可读性 */
    text-decoration: none;
    padding: 18px 25px; /* 改动: 调整padding */
    font-size: 18px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 700;
    position: relative;
}

/* --- 导航链接悬停效果 (hover) --- */
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* 改动: 悬停时增加一个半透明的背景高亮 */
    color: #000;
}

/* --- 导航链接下划线动效 (保持) --- */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px; /* 改动: 调整位置 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e2a38; /* 改动: 匹配新的文字颜色 */
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 50%; /* 改动: 调整宽度 */
}

/* --- 页脚样式 (footer) --- */
footer {
    width: 100%;
    margin-top: auto; /* 新增: 将页脚推到底部 */
}

footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8); /* 改动: 使用半透明白色，以适应背景 */
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1); /* 新增: 给页脚一个轻微的背景以区分 */
}
h3{
    font-size: 24px;
    color: #1e2a38;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}
.notouch {
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
}
.notouch:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.notouch.active {
animation: shake 0.3s ease-in-out;

}


@keyframes shake {
    0% { transform: translateX(0) scale(1); }    /* 动画开始时，是正常大小 */
    25% { transform: translateX(-5px) scale(0.98); } /* 抖动的同时，轻微缩小 */
    50% { transform: translateX(5px) scale(0.95); }  /* 在抖动最剧烈时，缩小到最小 */
    75% { transform: translateX(-3px) scale(0.98); } /* 抖动的同时，轻微缩小 */
    100% { transform: translateX(0) scale(1); }   /* 动画结束时，回到原样 */
}
.nottouch.active {
    animation: shake 0.5s ease-in-out;
    color: red; 
    transform: scale(0.95);
    opacity: 0.8; 
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 设置地球容器的样式 */
#cesiumContainer {
    width: 100%;
    height: 100%;
}