/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

/* 头部导航栏 */
header {
    background-color: #1a5276;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav li {
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

nav li:hover {
    background-color: #2980b9;
}

/* 导航链接样式 */
nav li a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

nav li a:hover {
    text-decoration: none;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* 如果需要，可以在这里增加一些额外的上内边距 */
    padding-top: 2.5rem;
}

h1, h2 {
    color: #1a5276;
    margin-bottom: 1rem;
}

/* 英雄区域 */
#hero {
    text-align: center;
    background: linear-gradient(to right, #1a5276, #2980b9);
    color: white;
    padding: 4rem 2rem;
    border-radius: 8px;
}

#hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 关于我们 */
#about p {
    text-align: justify;
    line-height: 1.8;
}

/* 服务与产品 */
#services ul {
    list-style-position: inside;
    margin-left: 1rem;
}

#services li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

#services li::before {
    content: "•";
    color: #1a5276;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* 联系我们 */
#contact p {
    margin-bottom: 0.8rem;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #1a5276;
    color: white;
    margin-top: 2rem;
}

footer a {
    color: #add8e6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 3rem 1rem;
    }
    
    #hero h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* 平滑滚动效果和锚点跳转调整 */
html {
    scroll-behavior: smooth;
    /* 添加顶部滚动内边距，使锚点跳转时内容不被导航栏遮挡 */
    scroll-padding-top: 80px; /* 根据导航栏实际高度调整这个值 */
}

/* 案例展示和新闻动态部分 */
#cases, #news {
    min-height: 200px;
}
