/* 基础样式和重置 */
:root {
    /* 定义全局颜色变量 */
    --primary: #ffcccc;    /* 主要强调色 */
    --secondary: #715aa8;  /* 次要强调色 */
    --dark: #666666;       /* 深色文本 */
    --light: #f3feff;      /* 浅色背景 */
    --transition: all 0.3s ease-in-out;  /* 通用过渡效果 */
}

/* 重置所有元素的默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置基础字体大小 */
html {
    font-size: 16px;
}

/* 设置页面整体样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;  /* 确保至少占满整个视口高度 */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 内容容器通用样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* 背景Canvas样式 */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* 允许点击穿透Canvas */
}

/* 页面主体部分样式 */
header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

/* 网站title样式 */
.title h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* 欢迎内容区样式 */
.topic {
    margin-top: 2rem;
}

/* 欢迎文本样式 */
.topic p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
}


/* 响应式样式调整 */
@media (max-width: 768px) {
    /* 在小屏幕上减小文字大小 */
    .topic p {
        font-size: 1.2rem;
    }
    
    .title h1 {
        font-size: 2rem;
    }
}