/* 让 html 和 body 铺满视口，不产生滚动条留白 */
html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* 禁止横向滚动条 = 彻底消除右侧空白 */
}

/* 基本样式 */
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('/theme/Office/picture/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.2rem;
    margin: 20px 0;
}

.banner-phone {
  font-size: 35px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  width: 100%;
}

.banner-phone a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cta-button {
    background: #ff6f61;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    position: relative;
    top: 50px;
}

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

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

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


/* 网格布局 */
.about-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, .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;
}


/* 表单列表样式 */
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-row {
            display: flex;
            gap: 12px;
            padding: 15px;
            /* 小屏幕自动换行竖排 */
            flex-wrap: wrap;
            /* 让图片在竖排时撑满宽度 */
            justify-content: center;
        }

        /* 图片基础样式 */
        .qualification-row img {
            height: auto;
            /* 电脑端最大宽度限制 */
            max-width: 300px;
            /* 移动端撑满容器 */
            width: 100%;
            object-fit: contain;
            border-radius: 4px;
        }

        /* ========== 电脑端横排放大 ========== */
        @media (min-width: 768px) {
            .qualification-row img {
                max-width: 380px;
            }
        }



/* 效果图展示区块样式 */
.decoration-effect-block {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.decoration-effect-block h2 {
    font-size: 2rem;
    color: #333;
    text-align: center;
    font-weight: 600;
    margin: 0 0 10px;
}
.section-description {
    text-align: center;
    color: #666;
    margin: 0 0 30px;
    font-size: 1.2rem;
}

/* 分类导航 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
    /* background: #f8f9fa;*/
    border-radius: 8px;
}
.category-btn {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-title {
    margin: 0;
    font-size: inherit;
    font-weight: normal;
    color: inherit;
}
.category-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.category-btn:hover:not(.active) {
    border-color: #999;
    color: #333;
}

/* 固定网格布局 */
.effect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.effect-item {
    display: block;
}
.effect-item.hide-default {
    display: none !important;
}
.effect-grid.open .hide-default {
    display: block !important;
}
.effect-item.hidden-by-category {
    display: none !important;
}

/* 响应式 */
@media (max-width: 1024px) { 
    .effect-grid { grid-template-columns: repeat(3, 1fr) !important; } 
}
@media (max-width: 768px) {
    .effect-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) { 
    .effect-grid { grid-template-columns: repeat(1, 1fr) !important; } 
}

/* 固定图片卡片 */
.effect-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    background: #fff;
    height: 220px;
    display: flex;
    flex-direction: column;
}
.effect-item:hover { transform: translateY(-5px); }
.effect-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.effect-item p {
    padding: 10px;
    text-align: center;
    margin: 0;
    font-size: 14px;
    color: #333;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 展开按钮 */
.effect-btn-box { 
    text-align: center; 
    margin-top: 20px; 
}
.effect-toggle-btn {
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.effect-toggle-btn:hover {
    border-color: #999;
    color: #333;
}
.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    line-height: 1;
}
.effect-grid.open .arrow {
    transform: rotate(180deg);
}

/* 图片预览灯箱 */
.img-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}
.img-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}



/* 汉堡按钮样式 */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 999;
    color: #ffffff;
}

/* 导航菜单 */
.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); /* 显示菜单栏 */
}

/* 核心优势样式 */
.section-title {
width: 100%;
text-align: center;
font-size: 2rem;
font-weight: bold;
margin-bottom: 40px;
color: #333;
}
.core {
    display: flex;
    padding: 50px;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

.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 间距 */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.card p {
    line-height: 1.6;
}

/* 鼠标悬浮效果 */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card:hover img {
    transform: scale(1.03);
}

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

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

/* 服务网格容器：每行4个，自动换行 */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 项目之间的间距，可自行调整 */
  justify-content: flex-start;
}

/* 每个服务项：宽度固定为 25% 减去间距，保证每行4个 */
.services-grid .service-item {
  width: calc(25% - 15px);
  box-sizing: border-box;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  /* 下面是可选样式，让卡片更好看 */
  border: 1px solid #eee;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 可选：鼠标悬浮效果 */
.services-grid .service-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* 服务项内图片统一大小 */
.services-grid .service-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* 标题样式 */
.services-grid .service-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #333;
}

/* 描述文字 */
.services-grid .service-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* 移动端适配：屏幕小于768px 每行2个 */
@media (max-width: 768px) {
  .services-grid .service-item {
    width: calc(50% - 10px);
  }
}

/* 超小屏幕：每行1个 */
@media (max-width: 480px) {
  .services-grid .service-item {
    width: 100%;
  }
}


/* 右侧悬浮栏 */
.sidebar {
  position: fixed;
  right: 0;
  bottom: 80px;
  z-index: 9999; /* 提高层级，确保不被遮挡 */
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
  border-radius: 8px 0 0 8px;
  overflow: visible; /* 关键：允许弹出层显示在外面 */
}

/* 单个菜单项 */
.sidebar-item {
  width: 50px;
  height: 50px;
  background: #ff6f61;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item:hover {
  background: #e65a50;
}

/* 子菜单通用样式 */
.sub-menu {
  position: absolute;
  right: 55px;
  z-index: 9999; /* 弹出层最高优先级 */
  white-space: nowrap;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 普通文字提示垂直居中 */
.sidebar-item:hover .sub-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 微信二维码单独样式 */
#wechat-menu .sub-menu {
  top: 0;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

/* 电话单独样式 */
#phone-menu .sub-menu {
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.qr-code img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.mt-2 {
  margin-top: 4px;
  font-size: 12px;
}

/* 链接样式 */
.sidebar-item a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}


