/* --- 1. 全局设置 --- */
body {
    margin: 0;
    padding: 0;
    height: 100vh; /* 占满整个视口高度 */
    overflow: hidden; /* 防止整个网页出现滚动条，只让中间的框滚动 */
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    
    /* 设置背景图片 */
    background-image: url('./xwgc.png'); 
    background-size: cover;      /* 图片铺满屏幕 */
    background-position: center; /* 图片居中 */
    background-attachment: fixed;
    
    /* 居中布局：让那个方框永远在屏幕正中间 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 2. 背景磨砂处理层 --- */
/* 为了让背景图有磨砂质感，我们盖一层半透明的模糊蒙版 */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 背景图稍微变暗一点，突出前景 */
    background: rgba(0, 0, 0, 0.1); 
    /* 核心代码：背景模糊滤镜 */
    backdrop-filter: blur(5px); 
    z-index: -1; /* 放在最底层 */
}

/* --- 3. Win7 Aero 玻璃方框 (核心容器) --- */
.glass-window {
    width: 900px;  /* 宽度：比网页窄 */
    max-width: 90%; /* 移动端适配 */
    height: 95vh;  /* 高度：占据视口高度的80% */
    
    /* Aero 玻璃特效的关键属性 */
    background: rgba(255, 255, 255, 0.45); /* 半透明白色背景 */
    backdrop-filter: blur(15px) saturate(180%); /* 强力模糊+色彩饱和 */
    -webkit-backdrop-filter: blur(15px) saturate(180%); /* 兼容Safari */
    
    /* 边框和圆角 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.8); /* 顶部更亮，模拟高光 */
    border-radius: 12px;
    
    /* 阴影：模拟玻璃的厚度和投影 */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2), /* 外部投影 */
        inset 0 0 20px rgba(255, 255, 255, 0.5); /* 内部高光 */
        
    /* 布局 */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 防止圆角被内部内容溢出遮挡 */
}

/* --- 4. 窗口顶部标题栏 (装饰用) --- */
.window-header {
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    flex-shrink: 0; /* 防止标题栏被压缩 */
}

.window-controls span {
    margin-left: 5px;
    cursor: pointer;
    opacity: 0.6;
}

/* --- 5. 内容区域与滚动条 (那个“滑动框”) --- */
.content-area {
    padding: 30px;
    flex-grow: 1; /* 填满剩余空间 */
    color: #222;
    line-height: 1.6;
    
    /* 核心代码：开启垂直滚动 */
    overflow-y: auto; 
    
    /* 让文字在玻璃上更清晰 */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); 
}

/* --- 6. 自定义滚动条 (Webkit内核浏览器，如Chrome/Edge) --- */
/* 滚动条整体 */
.content-area::-webkit-scrollbar {
    width: 12px; /* 滚动条宽度 */
}

/* 滚动条轨道 (背景) */
.content-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 0 0 12px 0;
}

/* 滚动条滑块 (那个可以拖动的东西) */
.content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); /* 半透明白色 */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
}

/* 鼠标悬停在滑块上时 */
.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}