﻿/* 全局样式重置与基础配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* 核心优势区域 */
.benefits-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 15px;
}
.benefits-title {
    font-size: 28px;
    color: #e87b08;
    margin-bottom: 40px;
    font-weight: bold;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.benefit-item {
    text-align: center;
    padding: 20px;
}
.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}
.icon-green {
    background: #8bc34a;
}
.icon-blue {
    background: #4fc3f7;
}
.icon-yellow {
    background: #ffca28;
}
.icon-pink {
    background: #e91e63;
}
.benefit-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}
.benefit-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 入驻按钮 */
.btn-join {
    background: #2979ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-join:hover {
    background: #1565c0;
    color: #fff;
    text-decoration: none;
}

/* 合作商家区域 */
.partners-section {
    margin-bottom: 50px;
    padding: 0 3px;
}
.partners-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    position: relative;
}

.subname{
    font-size: 18px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.partners-title::before {
    content: "— ";
}
.partners-title::after {
    content: " —";
}
/* 修改后的 .partners-grid 控制商戶行數 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.partner-item {
   /* border: 1px solid #ddd7d7;*/
    padding: 0px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.partner-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.partner-logo {
    max-height: 60px;
    max-width: 100%;
    margin-bottom: 10px;
}
.partner-name {
    font-size: 15px;
  color: #666;
  padding: 5px;
  font-weight: bold;
  min-height: 50px;
       
}

/* 响应式适配 */
@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 新增: 手機版合作商家圖片居中顯示，一行2個 */
@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0);

    }

    .partner-item img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        width:100%; /*fixed*/
    }
    .banner-text strong {
        font-size: 22px;
    }
    .benefits-title {
  font-size: 20px;

}
}