/* ============================================================
   主题7（美家科技）公共样式
   1) 复位段：抵消新项目基础样式 wwwroot/css/site.css 的全局规则，
      保证主题7 页面与现网 https://www.shhome.net/ 逐像素一致；
   2) 原子工具类：沿用旧项目 Themes/7/Static/css/common.css 原样；
   3) 公共区块：导航壳、留言区（program）、页脚（foot）。
      —— 这两段原本在 6 个页面级 CSS 里各写一遍，现上提至此，全局只加载一次。
   ============================================================ */

/* ------------------------------------------------------------
   1) 主题7 复位（必须置顶，且 common.css 需在 site.css 之后引入）
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: content-box; /* 抵消 site.css 的 border-box，恢复现网盒模型 */
}

html {
    font-size: 16px; /* 抵消 site.css 的 var(--fs-base)，page.css 的 rem 基准需为 16px */
}

body {
    line-height: normal; /* 抵消 site.css 的 1.7 行高 */
    color: #000;
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

img {
    max-width: none; /* 抵消 site.css 的 max-width:100% */
    height: auto;
    display: inline; /* 抵消 site.css 的 display:block */
    border: 0;
}

a {
    color: inherit; /* 抵消 site.css 的 var(--c-primary) */
    text-decoration: underline; /* 恢复浏览器默认，主题7 用 .tdn 显式去下划线 */
}

    a:hover {
        text-decoration: underline; /* 抵消 site.css 的 hover 加下划线差异 */
    }

input,
textarea,
button {
    font-family: inherit;
    outline: none;
}

/*base*/
body {
    margin: 0;
    padding: 0;
}

.min_wid {
    min-width: 1200px;
}

.wid {
    width: 1200px;
}

.margin {
    margin: 0 auto;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex_center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex_fdr {
    flex-direction: row;
}

.flex_fdc {
    flex-direction: column;
}

.flex1 {
    flex: 1;
}

.flex2 {
    flex: 2;
}

.flex_1 {
    flex: 1;
}

.flex_2 {
    flex: 2;
}


.flex_item_33 {
    flex: 0 0 33%;
}

.flex_item_24 {
    flex: 0 0 24%;
}

.flex_item_25 {
    flex: 0 0 25%;
}

/* flex-wrap*/
.flex_wrap {
    flex-wrap: wrap;
}

/*flex_align_center*/
.flex_aic {
    align-items: center;
}


.flex_aie {
    align-items: flex-end;
}

.flex_je {
    justify-content: flex-end;
}

/* 水平右对齐——容器 */
.flex_jc {
    justify-content: center;
}

/*水平中对齐——容器*/
.flex_jb {
    justify-content: space-between
}

/*水平两端对齐——容器*/
.flex_ja {
    justify-content: space-around
}

/*水平两侧间隔相等——容器*/
.flex_asc {
    align-self: center;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

/*垂直中对齐——项目*/

.pr {
    position: relative;
}

.tc {
    text-align: center;
}

.tdn {
    text-decoration: none;
}

.tr {
    text-align: right;
}

.dib {
    display: inline-block;
}

.di_line {
    display: inline;
}

.pr {
    position: relative;
}

.pa {
    position: absolute;
}

.f60 {
    font-size: 60px;
}

.f52 {
    font-size: 52px;
}

.f50 {
    font-size: 50px;
}

.f48 {
    font-size: 48px;
}

.f36 {
    font-size: 36px;
}

.f32 {
    font-size: 32px;
}

.f30 {
    font-size: 30px;
}

.f28 {
    font-size: 28px;
}

.f26 {
    font-size: 26px;
}

.f24 {
    font-size: 24px;
}

.f22 {
    font-size: 22px;
}

.f20 {
    font-size: 20px;
}

.f18 {
    font-size: 18px;
}

.f16 {
    font-size: 16px;
}

.f14 {
    font-size: 14px;
}

.f12 {
    font-size: 12px;
}

.fw3 {
    font-weight: 300;
}

.fw4 {
    font-weight: 400;
}

.fw5 {
    font-weight: 500;
}

.fwb {
    font-weight: bold;
}

.mt10 {
    margin-top: 10px;
}

.mt12 {
    margin-top: 12px;
}

.mt13 {
    margin-top: 13px;
}

.mt14 {
    margin-top: 14px;
}

.mt16 {
    margin-top: 16px;
}

.mt18 {
    margin-top: 18px;
}

.mt20 {
    margin-top: 20px;
}

.mt26 {
    margin-top: 26px;
}

.mt29 {
    margin-top: 29px;
}

.mt30 {
    margin-top: 30px;
}

.mt40 {
    margin-top: 40px;
}

.mt44 {
    margin-top: 44px;
}

.mt50 {
    margin-top: 50px;
}

.mt55 {
    margin-top: 55px;
}

.mt58 {
    margin-top: 58px;
}

.mt68 {
    margin-top: 68px;
}

.mt70 {
    margin-top: 70px;
}

.mt110 {
    margin-top: 110px;
}

.mt158 {
    margin-top: 158px;
}

.mr10 {
    margin-right: 10px;
}

.mr20 {
    margin-right: 20px;
}

.mr49 {
    margin-right: 49px;
}

.ml5 {
    margin-left: 10px;
}

.ml10 {
    margin-left: 10px;
}

.ml16 {
    margin-left: 16px;
}

.ml20 {
    margin-left: 20px;
}

.ml30 {
    margin-left: 30px;
}

.ml50 {
    margin-left: 50px;
}

.ml80 {
    margin-left: 80px;
}

.ml200 {
    margin-left: 200px;
}

.ml340 {
    margin-left: 340px;
}

.mb8 {
    margin-bottom: 8px;
}

.mb20 {
    margin-bottom: 20px;
}

.mb30 {
    margin-bottom: 30px;
}

.pt10 {
    padding-top: 10px;
}

.pt20 {
    padding-top: 20px;
}

.pt50 {
    padding-top: 50px;
}

.pt120 {
    padding-top: 120px;
}

.pb20 {
    padding-bottom: 20px;
}

.pb30 {
    padding-bottom: 30px;
}

.bg_white {
    background-color: #fff;
}

.bg_blue {
    background-color: #0667EC;
}

.bg_black {
    background: #171719;
}

.col_white {
    color: #fff;
}

.col_ltw {
    color: #E1E1E1;
}

.col_red {
    color: #C72631;
}

.col_blue {
    color: #0667EC;
}

.col_gray {
    color: #7f7f7f;
}

.col_ccc {
    color: #cccccc;
}

.col_333 {
    color: #333333;
}

.col_666 {
    color: #666666;
}

.col_ltb {
    color: #999999;
}

.col_999 {
    color: #999999;
}

.col_black {
    color: #171719;
}

.wtp17 {
    width: 17%;
}

.wtp90 {
    width: 90%;
}

.wtp50 {
    width: 50%;
}

.wtp100 {
    width: 100%;
}

.htp100 {
    height: 100%;
}

.br10 {
    border-radius: 10px;
}

.img {
    width: 100%;
    height: 100%;
}

/* .tdn 需同时压制 hover 态（site.css 的 a:hover 优先级为 0,1,1） */
.tdn,
.tdn:hover {
    text-decoration: none;
}

/* ------------------------------------------------------------
   3) 公共区块（原分散在 index/about/case/news/newsdetail/service
      六个页面级 CSS 中重复定义，现统一上提）
   ------------------------------------------------------------ */

/* —— 导航壳（绝对定位覆盖在首屏 Banner 之上） —— */
.nav_contain {
    position: absolute;
    z-index: 1;
    top: 40px;
    left: 10%;
    width: 90%;
    min-width: 1080px;
}

.logo {
    min-height: 40px;
    min-width: 328px;
}

.line_blue {
    width: 12px;
    height: 2px;
}

.title_lb {
    border: 1px solid #171719;
    width: 16px;
    height: 1px;
}

.case_line {
    border: 1px solid #e5e5e5;
    width: 16px;
    height: 1px;
    background: #e5e5e5;
}

/* —— Banner 文案容器（各页 top 偏移不同，保留在页面级 CSS 中覆盖） —— */
.banner_text {
    width: 148px;
    height: 42px;
}

.banner_text_bd {
    border: 1px solid #e5e5e5;
    border-radius: 21px;
}

/* —— 通用区段内边距 —— */
.pd {
    padding: 92px 0;
}

/* —— 留言 / 联系区（Contact 组件） —— */
.program_contain {
    width: 100%;
    background: url("../images/pro_bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 440px;
    padding: 160px 0 150px 0;
}

.program_right {
    width: 490px;
}

.program_input {
    width: 190px;
    height: 60px;
    background-color: #000;
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding-left: 20px;
    padding-right: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
}

.program_desc {
    width: 470px;
    height: 200px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    line-height: 50px;
}

.input_code {
    width: 280px;
    height: 60px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    padding-left: 20px;
    padding-right: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.code_show {
    background: #e1e1e1;
    width: 150px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 验证码占位（新项目 API 无验证码接口，改为前端生成，视觉与现网一致） */
.code_text {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #171719;
    font-family: "Courier New", Courier, monospace;
    user-select: none;
    cursor: pointer;
}

.program_btn {
    background-color: #ffffff;
    font-size: 24px;
    color: #000000;
    border-radius: 10px;
    width: 510px;
    height: 60px;
    border-color: #ffffff;
    cursor: pointer;
}

/* —— 页脚（Footer 组件） —— */
.foot_contain {
    padding: 90px 0 70px 0;
}

.copy_right {
    text-align: center;
    padding-bottom: 56px;
}

    .copy_right .txt {
        font-size: 16px;
        font-weight: 400;
        color: #999999;
    }

    .copy_right a {
        text-decoration-line: none;
        color: #999999;
    }
