/* --- 全局样式重置与基础设定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* 实现平滑的锚点滚动效果 */
    scroll-behavior: smooth;
    font-size: 16px; /* 设定基础字体大小 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #ffffff; /* 默认文字颜色为白色 */
    line-height: 1.8; /* 设置舒适的行高 */
    
    /* 深邃的星空渐变背景 */
    background: linear-gradient(145deg, #1d1b4b, #333d4b, #079402);
    background-attachment: fixed; /* 固定背景，滚动时内容移动，背景不动 */
}

/* --- 核心区块样式 --- */
.section {
    min-height: 100vh; /* 核心魔法：让每个部分都至少占据一整个屏幕的高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px; /* 上下60px, 左右20px的内边距，防止内容贴边 */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 每个部分之间添加一个细微的分隔线 */
}

/* 最后一个部分不需要底部分隔线 */
.section:last-of-type {
    border-bottom: none;
}

/* --- 内容容器样式 --- */
.content-box {
    max-width: 800px; /* 内容最大宽度，在大屏幕上也不会过宽 */
    background-color: rgba(0, 0, 0, 0.3); /* 半透明黑色背景，增强文字可读性 */
    padding: 30px 40px;
    border-radius: 12px; /* 圆角效果 */
    backdrop-filter: blur(5px); /* 毛玻璃效果 (现代浏览器支持) */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* 添加阴影，增加立体感 */
}

/* --- 文字排版样式 --- */
h1 {
    font-size: 2.5rem; /* rem单位相对于根元素(html)字体大小，更适合响应式 */
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85); /* 段落文字使用稍暗的白色，突出标题 */
}

/* --- 链接与页脚样式 --- */
.scroll-down-link {
    display: inline-block;
    margin-top: 2rem;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}

.scroll-down-link:hover {
    background-color: #ffffff;
    color: #121212;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    background-color: #121212;
}