@charset "utf-8";
/* =====================================================================
   Foldable Solar Prefab House 页面样式
   ----------------------------------------------------------------
   文件     : house.css
   页面     : prefab-house.html
   内容对应 : 《Foldable Solar Prefab House.docx》第二部分 ~ 第七部分
   版式参照 : 文档内嵌设计稿 image2 ~ image7（1:1 还原布局与层次）
   品牌主色 : #01b753（Shinson 绿）
   字体     : Montserrat（继承站点）
   ===================================================================== */

/* ---------- 页面整体容器 ---------- */
.prefab-page {
    background: #fff;
}

/* ---------- 通用区块：上下留白 ---------- */
.house-section {
    padding: 84px 0;
}
/* 交替浅色背景，形成页面视觉节奏 */
.house-section.alt {
    background: #f7f9f8;
}

/* =====================================================================
   通用区块标题
   —— 标题层级有两种方向：
      ① 绿色小标题(house-kicker) → 黑色大标题(house-title)   [第三部分]
      ② 绿色大标题(house-title.green) → 黑色副标题(house-subline) [第四部分]
   ===================================================================== */
.house-head {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 52px;
    padding: 0 15px;
}
/* 绿色小标题（全大写） */
.house-head .house-kicker {
    color: #01b753;
    font-size: clamp(14px, 1.55vw, 17px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    line-height: 1.4;
    margin: 0 0 12px;
}
/* 黑色大标题（全大写） */
.house-head .house-title {
    color: #1a1a1a;
    font-size: clamp(24px, 3.1vw, 38px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.22;
    margin: 0 0 12px;
}
/* 绿色大标题（第四部分 CHOOSE YOUR SPACE） */
.house-head .house-title.green {
    color: #01b753;
    margin-bottom: 8px;
}
/* 说明性长句标题（第五部分，不转大写、字号略小） */
.house-head .house-title.plain {
    text-transform: none;
    font-size: clamp(20px, 2.35vw, 29px);
    font-weight: 700;
    line-height: 1.45;
    max-width: 940px;
    margin: 0 auto;
}
/* 黑色副标题（第四部分） */
.house-head .house-subline {
    color: #1a1a1a;
    font-size: clamp(16px, 1.85vw, 21px);
    font-weight: 600;
    letter-spacing: 0.2px;
    margin: 0;
}
/* 灰色描述文字（第六 / 第七部分） */
.house-head .house-desc {
    color: #7c7c7c;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.7;
    margin: 16px 0 0;
}

/* =====================================================================
   第二部分：核心优势（ONE HOUSE. FOUR CORE ADVANTAGES.）
   设计稿版式：无卡片边框，4 列「图标 + 标题 + 描述」，列间细竖线分隔
   ===================================================================== */
.adv-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.adv-grid .adv-col {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}
.adv-item {
    height: 100%;
    padding: 6px 20px;
    text-align: center;
}
/* 列与列之间的分隔竖线（首列不加） */
.adv-col + .adv-col .adv-item {
    border-left: 1px solid #ececec;
}
.adv-item .adv-icon {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.adv-item .adv-icon img {
    height: 66px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.adv-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 10px;
}
.adv-item p {
    font-size: 14px;
    color: #8c8c8c;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 240px;
}

/* =====================================================================
   第三部分：离网方案（MORE THAN A HOUSE）
   设计稿版式：左右两栏浅灰圆角框
   左栏 = 系统介绍 + 连线图；右栏 = 集成能源系统垂直列表
   ===================================================================== */
.og-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.og-left {
    width: calc(58% - 14px);
    margin-right: 28px;
}
.og-right {
    width: calc(42% - 14px);
}
/* 两个浅灰圆角框 */
.og-left,
.og-right {
    background: #f6f8f7;
    border-radius: 20px;
    padding: 34px 34px 30px;
}
/* 左栏描述 */
.og-left .og-desc {
    font-size: 14px;
    color: #8c8c8c;
    line-height: 1.72;
    margin: 0 0 18px;
}

/* 右栏标题 */
.og-list-title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 22px;
}
/* 右栏垂直列表 */
.og-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.og-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
}
.og-li-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.og-li-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.og-li-txt h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 3px;
}
.og-li-txt p {
    font-size: 12.5px;
    color: #8c8c8c;
    line-height: 1.5;
    margin: 0;
}

/* =====================================================================
   第四部分：四种尺寸（CHOOSE YOUR SPACE）
   Bootstrap 3 Tab 切换；Tab 为整体胶囊容器；主体「左参数、右平面图」
   ===================================================================== */
/* Tab 导航：整体浅灰胶囊，激活项绿色实心 */
.nav-tabs.size-tabs {
    display: inline-flex;
    align-items: center;
    background: #f1f2f1;
    border: none;
    border-radius: 50px;
    padding: 6px;
    margin: 0 0 46px;
}
.nav-tabs.size-tabs > li {
    float: none;
    margin: 0;
}
.nav-tabs.size-tabs > li > a {
    display: block;
    border: none;
    border-radius: 40px;
    background: transparent;
    color: #333;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    padding: 14px 34px;
    margin: 0;
    transition: background 0.25s ease, color 0.25s ease;
}
.nav-tabs.size-tabs > li > a:hover,
.nav-tabs.size-tabs > li > a:focus {
    background: transparent;
    border: none;
    color: #01b753;
}
.nav-tabs.size-tabs > li.active > a,
.nav-tabs.size-tabs > li.active > a:hover,
.nav-tabs.size-tabs > li.active > a:focus {
    background: #01b753;
    border: none;
    color: #fff;
}

/* 主体：左参数、右平面图 */
.size-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -15px;
}
.size-spec {
    width: 50%;
    padding: 0 15px;
}
.size-img {
    width: 50%;
    padding: 0 15px;
    text-align: center;
}
.size-img img {
    width: 100%;
    height: auto;
}
/* 尺寸名称与户型说明 */
.size-name {
    font-size: clamp(20px, 2.35vw, 26px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 8px;
}
.size-meta {
    font-size: 14px;
    color: #8c8c8c;
    margin: 0 0 24px;
}
/* 参数列表 */
.spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.spec-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
}
.spec-list .spec-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.spec-list .spec-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.spec-list .spec-txt {
    display: flex;
    flex-direction: column;
}
/* 标签为绿色，数值为黑色（与设计稿一致） */
.spec-list .spec-label {
    font-size: 13px;
    color: #01b753;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}
.spec-list .spec-val {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.35;
}

/* =====================================================================
   第五部分：结构特性（Wind / Seismic / Thermal / Life）
   设计稿版式：无卡片边框，「绿色圆形图标 + 灰色标签 + 黑色数值」
   ===================================================================== */
.struct-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -15px;
}
.struct-grid .struct-col {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}
.struct-item {
    height: 100%;
    text-align: center;
}
.struct-item .struct-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
}
.struct-item .struct-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.struct-item .struct-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #8c8c8c;
    line-height: 1.45;
    margin-bottom: 6px;
}
.struct-item .struct-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
}

/* =====================================================================
   第六部分：安装步骤（FROM FOLDED TO FULLY OPERATIONAL）
   设计稿版式：图片置于浅灰圆角框内；序号（绿色圆点）位于图片下方左侧、与标题同行
   ===================================================================== */
.step-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.step-grid .step-col {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 36px;
}
.step-card {
    height: 100%;
}
/* 图片所在的浅灰圆角框 */
.step-card .step-img {
    background: #f5f6f6;
    border-radius: 14px;
    overflow: hidden;
}
.step-card .step-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.step-card:hover .step-img img {
    transform: scale(1.04);
}
/* 序号 + 标题（图片下方） */
.step-card .step-con {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 4px 0;
}
.step-card .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #01b753;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-card .step-con h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0;
}

/* =====================================================================
   第七部分：应用场景（BUILT FOR LIFE BEYOND THE GRID）+ 下载
   设计稿版式：两列图片网格，最后一项通栏；场景名称已烫印在图片上，页面不再叠加
   ===================================================================== */
.app-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.app-grid .app-col {
    width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
}
/* 通栏项（Emergency & Relief） */
.app-grid .app-col-full {
    width: 100%;
}
.app-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}
.app-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.app-card:hover img {
    transform: scale(1.04);
}

/* 下载按钮 */
.download-cta {
    margin-top: 32px;
    text-align: center;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #01b753;
    color: #fff;
    padding: 15px 42px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(1, 183, 83, 0.28);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-download:hover,
.btn-download:focus {
    background: #019c46;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(1, 183, 83, 0.38);
}
.btn-download i {
    font-size: 18px;
}

/* =====================================================================
   响应式适配
   ===================================================================== */
@media (max-width: 1199px) {
    .house-section {
        padding: 70px 0;
    }
}

/* 平板端：两栏 → 上下；四列 → 两列 */
@media (max-width: 991px) {
    .house-section {
        padding: 58px 0;
    }
    .house-head {
        margin-bottom: 40px;
    }
    /* 去掉列间竖线 */
    .adv-col + .adv-col .adv-item {
        border-left: none;
    }
    .adv-grid .adv-col,
    .struct-grid .struct-col {
        width: 50%;
    }
    .step-grid .step-col {
        width: 50%;
    }
    /* 离网：左右栏改上下，去掉右侧间距 */
    .og-left,
    .og-right {
        width: 100%;
        margin-right: 0;
    }
    .og-left {
        margin-bottom: 24px;
    }
    /* 尺寸：左参数 / 右图 改上下 */
    .size-spec,
    .size-img {
        width: 100%;
    }
    .size-spec {
        margin-bottom: 30px;
    }
}

/* 手机端 */
@media (max-width: 767px) {
    .house-section {
        padding: 44px 0;
    }
    .house-head {
        margin-bottom: 32px;
    }
    .adv-grid .adv-col {
        width: 50%;
    }
    .step-grid .step-col {
        width: 100%;
    }
    .app-grid .app-col {
        width: 100%;
    }
    .og-left,
    .og-right {
        padding: 26px 22px 22px;
    }
    /* Tab 胶囊允许换行 */
    .nav-tabs.size-tabs {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 26px;
    }
    .nav-tabs.size-tabs > li > a {
        padding: 11px 22px;
        font-size: 15px;
    }
    .btn-download {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* 小屏手机：全部单列 */
@media (max-width: 575px) {
    .adv-grid .adv-col,
    .struct-grid .struct-col {
        width: 100%;
    }
    .adv-item {
        padding: 6px 0;
    }
    .nav-tabs.size-tabs > li > a {
        padding: 10px 18px;
        font-size: 14px;
    }
    .spec-list li {
        gap: 12px;
        padding: 11px 0;
    }
    .spec-list .spec-icon {
        width: 28px;
        height: 28px;
    }
    .spec-list .spec-val {
        font-size: 14px;
    }
}
