/* 基本样式 */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 全屏头部 */
.hero {
    background: url('https://www.lt518.com/theme/Office/fgmjeyik3576ykj.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
}

.cta-button {
    background: #ff6f61;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #e65a50;
}

/* 内容区块 */
.section {
    padding: 80px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* 网格布局 */
.about-grid, .services-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    /* 当屏幕小于 768px 时，修改布局为每行 2 张 */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 缩小页面整体字体大小 */
    html {
        font-size: 12px;
    }
}

.service-item img {
    max-width: 100%;
    height: auto; /* 确保图片按比例缩放 */
}
 
.service-item h3,
.service-item p {
    margin: 0;
    padding: 0;
}
 
/* 悬停效果 */
.service-item:hover {
    background-color: #f0f0f0; /* 背景色变浅 */
    color: #333; /* 文本颜色变深（如果文本颜色之前设置得较浅的话） */
}
 
/* 可选：改变悬停时标题和描述文本的样式 */
.service-item:hover h3 {
    color: #ff0000; /* 例如，将标题颜色改为红色 */
}
 
.service-item:hover p {
    color: #555; /* 描述文本颜色稍微变暗 */
}

.about-item, .service-item, .portfolio-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease; /* 平滑的过渡效果，用于跳动 */
}

.about-item:hover {
    transform: translateY(-10px); /* 向上移动10px */
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* 描述文本样式 */
.section-description {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

/* 表单列表样式 */
form {
    width: 80%; /* 指定表单的固定宽度 */
    margin: 0 auto; /* 居中表单 */
    padding: 20px; /* 可选：为表单添加内边距 */
}

form ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

form ul li {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* 标签样式 */
form ul li i {
    display: block;
    font-style: normal;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
}

/* 输入框样式 */
form input[type="text"],
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* 文本域样式 */
form textarea {
    height: 120px;
    resize: vertical; /* 允许垂直调整大小 */
}

/* 提交按钮样式 */
form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #fff;
    background-color: #ff6f61;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #e65a50;
}


.ket_list {
  max-width: 1200px; /* 设置最大宽度，防止在大屏幕上过于分散 */
  width: 90%; /* 宽度占父元素的 90%，实现自适应 */
  margin: 0 auto; /* 水平居中 */
}

.ket_list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.ket_list li {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ket_list li:hover {
  transform: translateY(-5px);
}

.ket_list li a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* 当空间不足时，允许子元素换行 */
}

.r_z {
  flex: 0 0 200px;
  margin-right: 20px;
}

.r_z img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.l_z {
  flex: 1;
  min-width: 300px; /* 设置最小宽度，防止内容过于紧凑 */
  text-align: left;
}

.l_z h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.dulou {
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.date {
  color: #999;
  font-size: 0.9em;
}

/* 媒体查询，当屏幕宽度小于 600px 时的样式调整 */
@media (max-width: 600px) {
  .r_z {
    flex-basis: 100%; /* 图片区域宽度占满一行 */
    margin-right: 0;
    margin-bottom: 20px;
  }

  .l_z {
    min-width: auto; /* 文字区域最小宽度恢复默认 */
  }
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 装修服务流程 */
.process-step {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease; /* 平滑的过渡效果，用于跳动 */
}

.process-step:hover {
    transform: translateY(-10px); /* 向上移动10px */
}

.process-step ul {
    list-style-type: disc;
    padding-left: 20px;
}

.process-step li {
    margin-bottom: 10px;
}

/* 公司资质 */
.qualification-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    justify-content: center;
}

.carousel-container img {
    width: 400px; /* 根据图片实际宽度调整 */
    height: auto;
    margin-right: 10px; /* 图片之间的间距 */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}





/* 整体展示区块样式 */
.decoration-effect-block {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    /*background-color: #f9f9f9;*/
    border-radius: 8px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
}

/* 标题样式 */
.decoration-effect-block h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 效果图网格布局 */
.effect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
  .effect-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 单个效果图项样式 */
.effect-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.effect-item:hover {
    transform: scale(1.05);
}

/* 图片样式 */
.effect-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 标题样式 */
.effect-item p {
    padding: 10px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 0;
}

/* 链接样式 */
.effect-item a {
    text-decoration: none;
    color: inherit;
}

/* 菜单栏样式 */
.menu-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 35px;
    cursor: pointer;
    z-index: 1000; /* 确保菜单按钮在其他内容之上 */
}
 
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px; /* 菜单栏宽度 */
    height: 100%;
    background-color: #333;
    transform: translateX(100%); /* 初始状态：隐藏菜单栏 */
    transition: transform 0.3s ease-in-out; /* 平滑过渡效果 */
    z-index: 999; /* 确保菜单栏在内容之下，但在按钮之上（根据需要调整） */
}
 
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.menu li {
    border-bottom: 1px solid #444;
}
 
.menu a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
}
 
.menu a:hover {
    background-color: #575757;
}
 
.menu.active {
    transform: translateX(0); /* 显示菜单栏 */
}

/* 核心优势样式 */
.core {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    flex-wrap: wrap;
    /* 去除左右的额外间距 */
    margin: 0 -15px; 
}

.card {
    width: 15%;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 20px;
    margin: 0 15px 30px; /* 左右 15px 间距，底部 30px 间距 */
}

.card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.card h2 {
    margin-bottom: 10px;
}

.card p {
    line-height: 1.6;
}

/* 媒体查询，在小屏幕下调整卡片宽度 */

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}