/* style.css */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --bg-color: #f8f9fa;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* 导航栏 */
nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 导航栏普通链接颜色 */
.nav-links a {
    margin-left: 15px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* 当前所在页面的链接颜色（加深并加粗） */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 修改.logo 样式，加入 Flexbox，让图片和文字垂直居中对齐 */
.logo {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* 控制 Logo 图片的尺寸和间距 */
.nav-icon {
    height: 32px; /* 控制盾牌高度，与文字尺寸相协调 */
    width: auto; /* 宽度自动缩放，保持盾牌比例 */
    margin-right: 2px; /* 在盾牌和文字之间留出呼吸空间 */
    display: block; 
}

.nav-links a {
    margin-left: 15px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* 内容区 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h1, h2 {
    color: var(--primary-color);
    margin-top: 0;
}

h1 { font-size: 1.8rem; margin-bottom: 40px;}
h2 { font-size: 1.4rem; margin-top: 30px; border-bottom: 2px solid #eee; padding-bottom: 10px; }

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
}

.warning-box {
    border-left: 4px solid var(--accent-color);
    background-color: #fdf2f2;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* 时间轴样式 */
.timeline-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* Google Form 嵌入容器响应式样式 */
.iframe-container {
    margin-top: 30px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fafafa;
    border: 1px solid #eee;
}

.iframe-container iframe {
    width: 100%;
    min-height: 800px; /* 确保问卷内容不会被截断 */
    border: none;
}

/* 邮箱链接的基础样式 */
.email-protection .email-link {
    color: #007bff; /* 蓝色，传统的链接颜色，可根据你网站主色调修改 */
    text-decoration: none; /* 去掉下划线，看起来更现代 */
    transition: color 0.2s ease-in-out; /* 添加鼠标悬停的平滑过渡效果 */
    margin-left: 5px; /* 与前面的文本保持一点距离 */
}

/* 鼠标悬停时的样式 */
.email-protection .email-link:hover {
    color: #0056b3; /* 悬停时变深蓝色 */
    text-decoration: underline; /* 悬停时显示下划线，增强交互感 */
}

/* ==========================================
   首页专属虚化背景
   ========================================== */
.home-page::before {
    content: "";
    position: fixed;     /* 让背景固定，用户往下滚动网页时背景不动，更有高级感 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 这里替换成你的图片实际路径 */
    background-image: url('home-bg.jpg'); 
    background-size: cover;      /* 让图片按比例铺满整个屏幕 */
    background-position: center; /* 图片居中对齐 */
    
    /* 核心虚化效果 */
    filter: blur(6px);           /* 数值越大越模糊，建议在 5px 到 15px 之间微调 */
    
    /* 极客细节：虚化后边缘容易出现白边，稍微放大一点点就能完美解决 */
    transform: scale(1.05);      
    
    /* 关键：把透明度稍微降低，并把层级设为 -1，确保它永远垫在最底层 */
    opacity: 0.6;                /* 如果图片本身颜色太深，可以降低透明度，0.1~1 之间 */
    z-index: -1;                 
}

/* 确保前面的白色卡片有一点点半透明的质感（可选微调） */
.home-page .card {
    background-color: rgba(255, 255, 255, 0.95); /* 95%的白色，透出一点点底色 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);   /* 让阴影稍微明显一点，增加层次感 */
}
