:root {
    /* 颜色系统 */
    --primary: #4A90E2;
    --secondary: #2C3E50;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --background: #FFFFFF;
    --background-light: #F5F7FA;
    
    /* 字体大小系统 */
    --font-xs: 0.75rem;    /* 12px */
    --font-sm: 0.875rem;   /* 14px */
    --font-base: 1rem;     /* 16px */
    --font-md: 1.125rem;   /* 18px */
    --font-lg: 1.5rem;     /* 24px */
    --font-xl: 2rem;       /* 32px */
    --font-2xl: 2.5rem;    /* 40px */
    --font-3xl: 3rem;       /* 48px */
    
    /* 间距系统 */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    
    /* 容器宽度 */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* 导航相关 */
    --nav-height: 60px;
    --nav-font-size: var(--font-base);  /* 导航菜单字体大小 */
    --logo-font-size: var(--font-lg); /* logo字体大小 */
}

/* 基础样式 */
html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
}

/* 容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 导航栏 */
.header {
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
}

.logo {
    font-size: var(--logo-font-size);
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-menu a {
    font-size: var(--nav-font-size);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 首屏 */
.hero {
    height: 100vh;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('../assets/images/bg1.jpg') center/cover;
    color: white;
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 var(--space-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-titles {
    margin-bottom: var(--space-xl);
}

.hero-titles h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-titles h1 + h1 {
    margin-top: 0.2em;
}

.hero-subtitle {
    margin-bottom: var(--space-xl);
}

.hero-subtitle h2 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
}

.hero-subtitle h2 + h2 {
    margin-top: 0.3em;
}

.hero-buttons {
    margin-top: var(--space-2xl);
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

/* 章节样式 */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.section-header p {
    font-size: var(--font-md);
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --font-2xl: 2rem;
        --font-xl: 1.75rem;
        --font-lg: 1.25rem;
        --space-2xl: 3rem;
        --space-xl: 2rem;
        --nav-font-size: var(--font-base);  /* 移动端导航字体调大 */
        --logo-font-size: var(--font-md);   /* 移动端logo字体调整 */
    }

    .container {
        padding: 0 var(--space-md);
    }

    .nav-menu {
        display: none;
    }

    .hero-titles h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .btn {
        width: 80%;
        max-width: 280px;
    }
}



/* ... 其他样式保持不变 ... */
/* 联系我们链接样式 */
.contact-link {
    position: relative;
}


.contact-link:hover::after {
    content: 'frank.sha01@qq.com';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: white; /* 改为白色 */
    font-size: 13px;
    font-weight: 600; /* 添加加粗效果 */
    white-space: nowrap;
    z-index: 1000;
}

/* 移除了之前的 ::before 伪元素（三角形）和背景色 */
