/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Arial', sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 24px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin: 0 1rem;
}

.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: #0073e6;
}

/* 手机端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .nav-menu ul {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    .nav-menu ul.show {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }
}

/* 内容样式 */
.content {
    padding: 6rem 2rem;
    text-align: center;
}

.home-content {
    background-image: url('background.jpg');
    background-size: cover;
    color: black;
    padding-top:25rem;
    height: 100vh;
	line-height:38px;
}


/* 设置未访问链接的样式 */  
a:link, a:visited {  
    color: black; /* 未访问和已访问链接都是黑色 */  
    text-decoration: none; /* 可选，去除下划线 */  
}  
  
/* 设置鼠标悬停时的链接样式 */  
a:hover {  
    color: green; /* 鼠标悬停时链接变为绿色 */  
    text-decoration: underline; /* 可选，鼠标悬停时添加下划线 */  
}  
  
/* 可选：设置激活（点击）链接的样式 */  
a:active {  
    color: red; /* 点击链接时的颜色，这里作为示例设置为红色 */  
}


.service-cards, .case-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card, .case-card {
    background-color: #f5f5f5;
    margin: 1rem;
    padding: 2rem;
    max-width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form input, form textarea, form button {
    margin: 0.5rem 0;
    padding: 0.8rem;
    width: 100%;
    max-width: 400px;
}

form button {
    background-color: #0073e6;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #005bb5;
}

/* 页脚样式 */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}


.width-controlled {  
  width: 30%; /* 设置宽度为父元素宽度的50% */  
  margin: 0 auto; /* 可选：使段落在其父元素中水平居中 */  
  border: 1px solid #000; /* 可选：添加边框以便更清楚地看到效果 */  
  padding: 10px; /* 可选：添加内边距 */  
}
