﻿
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 1200px;
  margin: 0 auto;
}
/* 顶部页眉 */
.site-header {
  background-color: #fff8ee;
  border-bottom: 2px solid #c8161d;
}
.header-inner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.header-brand {
  font-size: 22px;
  font-weight: bold;
  color: #c8161d;
}
.header-nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #3b2a1a;
  font-size: 15px;
}
.header-nav a:hover,
.header-nav a.active {
  color: #c8161d;
  border-bottom: 2px solid #c8161d;
  padding-bottom: 4px;
}
.header-hotline {
  color: #c8161d;
  font-size: 18px;
  font-weight: bold;
}
/* 面包屑 */
.breadcrumb {
  background-color: #faf4e6;
  border-bottom: 1px solid #e6d9c0;
}
.breadcrumb-inner {
  width: 1200px;
  margin: 0 auto;
  padding: 12px 0;
  font-size: 14px;
  color: #6b5a44;
}
/* 首屏 */
/* 首屏Banner 族谱背景图 */
.page-hero {
  /* 替换成你的banner图片路径 */
  background: url("../images/lxwm_banner.png") no-repeat center center;
  background-size: cover;
  min-height: 420px; /* 控制banner高度，按需调整 */
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.hero-inner h1 {
  font-size: 56px;
  color: #c8161d;
  font-weight:bold;
  margin-bottom:16px;
}
.hero-sub {
  font-size:22px;
  color:#443322;
}
/* 通用卡片 */
.contact-section,
.why-section,
.factory-section,
.process-section,
.info-section,
.faq-section {
  padding: 60px 0;
}
.card-title{
    background:#c8161d;
    color:#fff;
    font-size:20px;
    padding:14px 20px;
    font-weight:bold;
}
.qrcode-box{
    padding:24px;
    text-align:center;
}
.qrcode-box img{
    width:160px;
    max-width:100%;
    height:auto;
    display:inline-block;
}
.card-desc{
    text-align:center;
    padding:0 20px 20px;
    color:#444;
    font-size:16px;
}
/* 联系方式与表单 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}
.contact-card {
	border:1px solid #e9dfce;
    background:#fffaf0;
}
.contact-list {
  list-style: none;
  padding: 0 24px;
}
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px dashed #d9c9ad;
  font-size: 16px;
}
.contact-list .icon {
  display: inline-block;
  width: 30px;
  color: #c8161d;
}
/* 表单 */
.form-card input,
.form-card textarea {
  width: calc(50% - 10px);
  padding: 12px 14px;
  margin: 0 10px 16px 0;
  border: 1px solid #d9c9ad;
  background-color: #fffdf6;
  font-size: 15px;
  outline: none;
}
.form-card textarea {
  width: calc(100% - 20px);
  margin: 0 10px 16px;
}
.form-card input:nth-child(2n) {
  margin-right: 0;
}
.btn-submit {
  display: block;
  margin: 0 10px;
  padding: 14px 40px;
  background-color: #c8161d;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.btn-submit:hover {
  background-color: #a71218;
}
/* 为什么选择我们 */
.section-title {
  text-align: center;
  font-size: 28px;
  color: #c8161d;
  margin-bottom: 40px;
}
.section-title.left {
  text-align: left;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  background-color: #fff8ee;
  border: 1px solid #e6d9c0;
  padding: 30px 20px;
  text-align: center;
}
.why-icon {
  font-size: 40px;
  color: #c8161d;
  margin-bottom: 14px;
}
.why-item h3 {
  margin-bottom: 10px;
  color: #3b2a1a;
}
.why-item p {
  color: #6b5a44;
  font-size: 14px;
}
/* 工厂实力 */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.factory-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 1px solid #e6d9c0;
}
.factory-content p {
  margin-bottom: 20px;
  color: #5a4430;
}
.factory-list {
  list-style: none;
}
.factory-list li {
  padding: 10px 0;
  padding-left: 20px;
  position: relative;
  color: #3b2a1a;
}
.factory-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background-color: #c8161d;
}
/* 服务流程 */
.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff8ee;
  border: 1px solid #e6d9c0;
  padding: 40px 20px;
}
.step {
  text-align: center;
}
.step-num {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #c8161d;
  color: #fff;
  font-size: 20px;
  margin: 0 auto 14px;
}
.step-arrow {
  color: #c8161d;
  font-size: 24px;
}
/* 信息区 ========== 修改这里 .qr-box img ========== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background-color: #fff8ee;
  border: 1px solid #e6d9c0;
  padding-bottom: 24px;
}
.map-box,
.qr-box {
  width: 100%;
  height: 240px;
  border: 1px solid #e6d9c0;
  background-color: #fffdf6;
  display:flex;
  align-items:center;
  justify-content:center;
}
.map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* qr-box内二维码居中缩小 */
.qr-box img {
  width: 160px;
  height: auto;
  object-fit: contain;
}
.info-text {
  padding: 16px 20px 0;
  color: #3b2a1a;
  text-align: center;
}
.time-list {
  list-style: none;
  padding: 0 24px;
}
.time-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #d9c9ad;
}
/* 常见问题 */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background-color: #fff8ee;
  border: 1px solid #e6d9c0;
  margin-bottom: 16px;
}
.faq-q {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #3b2a1a;
  cursor: pointer;
}
.faq-a {
  padding: 0 20px 20px;
  color: #5a4430;
}

/* ====================== 移动端适配 媒体查询 ====================== */
@media screen and (max-width:1200px){
  .container,
  .header-inner,
  .breadcrumb-inner{
    width:96%;
  }
}
@media screen and (max-width:768px){
  .container,
  .header-inner,
  .breadcrumb-inner{
    width:94%;
  }
  .header-inner{
    height:auto;
    flex-wrap:wrap;
    padding:15px 0;
  }
  .header-nav{
    margin-top:10px;
  }
  .header-nav a{
    margin:0 8px;
    font-size:14px;
  }
  /* banner */
  .page-hero{
    min-height:260px;
  }
  .hero-inner h1{
    font-size:36px;
  }
  .hero-sub{
    font-size:18px;
  }
  /* 栅格全部改成单列 */
  .contact-grid,
  .why-grid,
  .factory-grid,
  .info-grid{
    grid-template-columns: 1fr;
  }
  .why-grid{
    gap:16px;
  }
  /* 服务流程横向改为纵向 */
  .process-steps{
    flex-direction:column;
    gap:20px;
  }
  .step-arrow{
    transform:rotate(90deg);
  }
  /* 表单输入框一行一个 */
  .form-card input{
    width: calc(100% - 20px);
    margin-right:0;
  }
  /* 移动端二维码继续缩小 */
  .qrcode-box img{
    width:140px;
  }
  .qr-box img{
    width:140px;
  }
  .factory-image img{
    height:240px;
  }
  .contact-section,
  .why-section,
  .factory-section,
  .process-section,
  .info-section,
  .faq-section {
    padding: 30px 0;
  }
  .section-title{
    font-size:24px;
    margin-bottom:24px;
  }
}
/* 验证码行样式 */
.code-row {
    display: flex;
    align-items: center;
    gap:12px;
    padding:0 10px;
    margin-bottom:16px;
}
.code-row span{
    color:#3b2a1a;
    white-space: nowrap;
}
.code-row input[name="checkcode"]{
    width: 180px !important;
    margin:0 !important;
}
.code-img{
    height:44px;
    border:1px solid #d9c9ad;
    cursor:pointer;
    border-radius:4px;
}
.code-img:hover{
    opacity:0.85;
}

/* 移动端适配 */
@media screen and (max-width:768px){
    .code-row{
        flex-wrap:wrap;
    }
    .code-row input[name="checkcode"]{
        width: calc(100% - 120px) !important;
    }
}
