/**********************************
  首页承载容器（关键点：替代主题默认pb7留白）
**********************************/
body.home main {
  padding: 0 !important;               /* 去掉主题 main 底部巨大 padding */
  margin: 0 auto;
}

body.home main > article {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5vw 1rem;                /* footer与内容间距，仅此决定底部距离 */
  box-sizing: border-box;
}

/**********************************
  内容区模块基础结构
**********************************/
.home-section {
  margin: 2.2rem auto;
  width: 100%;
  color: #222;
}

.indent {
  text-indent: 2em;
  line-height: 1.9;
  max-width: 75ch;
  margin: 0 auto;
}

/**********************************
  白底内容块（卡片+CTA）
**********************************/
.home-section-alt {
  background: #f8f9fa;
  padding: 2rem 2vw;
  border-radius: 12px;
  margin-top: 1.6rem;
  margin-bottom: 1.2rem;
}

/**********************************
  标题
**********************************/
.home-section h2,
.home-cta h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

/**********************************
  CTA区
**********************************/
.home-cta {
  margin-top: 2.4rem;                   /* 原来5rem太大，这里缩小回正常 */
  text-align: center;
}

.home-cta p {
  max-width: 70ch;
  margin:0 auto 1.2rem;
}

/**********************************
  CTA按钮
**********************************/
.hero-actions {
  margin-top:1.4rem;                    /* 缩小按钮区域间距 */
  display:flex;
  justify-content:center;
  gap:.8rem;
  flex-wrap:wrap;
}

.btn {
  padding:.6rem 1.2rem;
  border-radius:999px;
  font-size:.95rem;
  border:1px solid transparent;
}

.btn.primary {background:#5e93c1;color:#222;border-color:#5e93c1;}
.btn.ghost   {background:transparent;color:#5e93c1;border-color:#5e93c1;}

/**********************************
  底部距离优化
**********************************/
body.home .home-section:last-of-type,
body.home .home-section-alt:last-of-type {
  margin-bottom:.8rem !important;       /* 进一步收紧 footer 间距 */
}

/**********************************
  About 页面排版
**********************************/
.page-section {
  width: 92%;
  max-width: 1080px;
  margin: 1.8rem auto;
  padding: 2rem 2.4rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.page-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 1.2rem 0;
}

.page-section p {
  line-height: 1.9;
  color: #333;
  margin: 0 0 1rem 0;
}

.page-section ul {
  padding-left: 1.2rem;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem 1rem;
}

.page-section li {
  position: relative;
  padding-left: 12px;
  color: #444;
  line-height: 1.7;
}

.page-section li::before {
  content: "▍";
  position: absolute;
  left: 0;
  top: 0;
  color: #52b3b7;
  font-weight: 700;
}

.page-section .btn {
  margin-top: 1rem;
}

.page-section:last-of-type {
  text-align: center;
}

.page-section.alt {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.04);
}

.about-cta,
.services-cta {
  width: 92%;
  max-width: 1080px;
  margin: 2.4rem auto 1.4rem;
  text-align: center;
}

@media(max-width:800px){
  .page-section{
    width:94%;
    padding: 1.6rem 1.2rem;
    margin: 1.2rem auto;
  }
  .page-section h2{
    font-size:1.5rem;
    margin-bottom: 1rem;
  }
  .about-cta,
  .services-cta{
    width:94%;
  }
}

/**********************************
  移动端优化
**********************************/
@media(max-width:800px){
  body.home main > article{width:94%;padding-bottom:.6rem;}
  .indent{text-indent:0;}
  .home-section h2{font-size:1.6rem;}
}

/* 控制全站 main 底部与 footer 间距 */
.site-main {
  padding-bottom: 3rem !important;    /* 默认1rem，想更紧可换0.5rem */
  width: 99%;
  max-width: 99%;
  margin: auto;
  box-sizing: border-box;
}

/**********************************
  联系我们表单
**********************************/
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 600;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #52b3b7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(82,179,183,0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.form-actions .hint {
  color: #666;
  font-size: 0.95rem;
}

/**********************************
  Services 页面容器
**********************************/
.services-main {
  padding: 0 0 1rem;
}

.services-article {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5vw 1rem;
  box-sizing: border-box;
}

@media(max-width:800px){
  .services-article{
    width:94%;
    padding-bottom:.6rem;
  }
}
