@charset "utf-8";
/* ==========================================================================
   chunyam 表单页样式 (snc-form.css)
   - 用于在线报价 / 预约上门 / 联系咨询 表单页
   - 沿用绿色配色, 配合 Bootstrap 3 表单组件
   ========================================================================== */

/* ==========================================================================
   内页通用 Banner (snc-page-banner)
   - 复用首页 snc-hero 绿色渐变 + 径向高光纹理的视觉语言
   - 支持背景图: 通过 .snc-page-banner-mask 叠加半透明绿色遮罩保证文字可读
   - PC 高度 290px(与 wmdfw 等万网原生 banner 一致, 全站内页统一), 移动端 160px
   ========================================================================== */
.snc-page-banner {
    position: relative;
    display: block;
    /* 高度由内部 .snc-page-banner-img 按比例撑开: 满宽 + 完整不裁切; 无图时绿色渐变兜底 */
    background: linear-gradient(135deg, #2e7d32 0%, #6aa84f 50%, #81c784 100%);
    color: #fff;
    overflow: hidden;
}
.snc-page-banner-img {
    display: block;
    width: 100%;
    height: auto;
}
/* 装饰性径向高光(纯 CSS, 无背景图时也呈现质感) */
.snc-page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 30%, rgba(255,255,255,0.10) 0, transparent 42%),
        radial-gradient(circle at 82% 70%, rgba(255,255,255,0.08) 0, transparent 42%);
    pointer-events: none;
}
/* 背景图遮罩: banner 已无文字(纯背景装饰), 仅保留极淡色调统一, 让背景图清晰展示 */
.snc-page-banner-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.22) 0%, rgba(106,168,79,0.18) 50%, rgba(129,199,132,0.15) 100%);
    pointer-events: none;
}
.snc-page-banner .container { position: relative; z-index: 2; width: 100%; }
.snc-page-banner-inner {
    width: 100%;
    padding: 56px 0;
    text-align: center;
}
.snc-page-banner-tagline {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 6px;
    opacity: 0.92;
    text-transform: uppercase;
}
.snc-page-banner h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.snc-page-banner-divider {
    width: 64px;
    height: 3px;
    background: rgba(255,255,255,0.72);
    margin: 16px auto;
    border-radius: 2px;
}
.snc-page-banner-sub {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.92;
    margin: 0 auto;
    max-width: 760px;
}
/* 面包屑 */
.snc-page-banner-crumb {
    margin-top: 18px;
    font-size: 13px;
    opacity: 0.88;
}
.snc-page-banner-crumb a,
.snc-page-banner-crumb span {
    color: #fff;
    text-decoration: none;
}
.snc-page-banner-crumb a:hover { opacity: 0.8; }
/* 分隔符: 每项后加 /, 末项去除(CSS 处理, 不依赖模板判断) */
.snc-page-banner-crumb a + a,
.snc-page-banner-crumb a + span,
.snc-page-banner-crumb span + a,
.snc-page-banner-crumb span + span {
    margin-left: 8px;
}
.snc-page-banner-crumb a::before,
.snc-page-banner-crumb span::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.6;
}
.snc-page-banner-crumb > :first-child::before {
    content: "";
    margin-right: 0;
}

/* 表单页容器(修复万网 header 通栏溢出, 同首页) */
.snc-page { padding: 40px 0 60px; min-height: 400px; }
html, body { overflow-x: hidden !important; }
#mainContentWrapper { min-width: 0 !important; max-width: 100vw; overflow-x: hidden; }

/* 卡片容器 */
.snc-form-wrap {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(60, 90, 40, 0.10);
    padding: 36px 40px;
    margin: 0 auto;
}
.snc-form-head { text-align: center; margin-bottom: 28px; }
.snc-form-head h1 {
    font-size: 28px; color: #222; margin: 0 0 8px; font-weight: 700;
}
.snc-form-head .snc-form-sub {
    font-size: 15px; color: #666; margin: 0;
}

/* 表单组 */
.snc-form .form-group { margin-bottom: 18px; }
.snc-form label {
    display: block; font-size: 14px; color: #333; font-weight: 500;
    margin-bottom: 6px;
}
.snc-form label .required { color: #d9534f; }
.snc-form .form-control {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    height: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.snc-form .form-control:focus {
    border-color: #6aa84f;
    box-shadow: 0 0 0 3px rgba(106, 168, 79, 0.15);
    outline: none;
}
.snc-form textarea.form-control { resize: vertical; min-height: 90px; }

/* 提交按钮 */
.snc-form-actions { margin-top: 24px; }
.snc-form .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s;
}

/* 移动端表单 */
.snc-page-m { padding: 16px 0 30px; }
.snc-page-m .snc-form-wrap {
    padding: 20px 16px;
    box-shadow: none;
    border-radius: 0;
}
.snc-page-m .snc-form-head h1 { font-size: 20px; }
.snc-page-m .snc-form-head .snc-form-sub { font-size: 13px; }
.snc-page-m .snc-form .form-group { margin-bottom: 14px; }
.snc-page-m .snc-form label { font-size: 13px; }
.snc-page-m .snc-form .form-control { padding: 8px 10px; font-size: 14px; }

/* ==========================================================================
   悬浮在线客服 widget
   ========================================================================== */
.snc-float-tools {
    position: fixed;
    right: 16px;
    bottom: 100px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.snc-float-item {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #6aa84f;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}
.snc-float-item:hover {
    background: #6aa84f;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(106,168,79,0.4);
}
.snc-float-item .snc-float-icon { font-size: 20px; line-height: 1; }
.snc-float-item .snc-float-label { font-size: 10px; line-height: 1.2; margin-top: 2px; }

/* 微信二维码弹出 */
.snc-float-wechat .snc-float-qrcode {
    display: none;
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    white-space: nowrap;
}
.snc-float-wechat .snc-float-qrcode img { width: 120px; height: 120px; display: block; }
.snc-float-wechat .snc-float-qrcode span { display: block; font-size: 12px; color: #666; margin-top: 6px; }
.snc-float-wechat:hover .snc-float-qrcode { display: block; }
.snc-float-wechat .snc-float-qrcode::after {
    content: ""; position: absolute; right: -6px; top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent; border-left-color: #fff;
}

/* 返回顶部 */
.snc-float-top { background: rgba(0,0,0,0.5); color: #fff; }
.snc-float-top:hover { background: #6aa84f; color: #fff; }

/* 移动端悬浮客服(缩小) */
@media (max-width: 768px) {
    .snc-float-tools { right: 10px; bottom: 70px; gap: 8px; }
    .snc-float-item { width: 44px; height: 44px; }
    .snc-float-item .snc-float-icon { font-size: 17px; }
    .snc-float-item .snc-float-label { font-size: 9px; }
}

/* ==========================================================================
   列表页(案例/新闻资讯)
   ========================================================================== */
.snc-list-page .snc-list-head { text-align: center; margin-bottom: 28px; }
.snc-list-page .snc-list-head h1 {
    font-size: 28px; color: #222; margin: 0; font-weight: 700;
    position: relative; display: inline-block; padding-bottom: 12px;
}
.snc-list-page .snc-list-head h1::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 50px; height: 3px; background: #6aa84f; border-radius: 2px;
}
/* 子栏目切换 */
.snc-list-tabs {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 30px;
}
.snc-tab {
    padding: 6px 18px; border-radius: 20px;
    background: #f5f7f5; color: #666;
    font-size: 14px; text-decoration: none;
    transition: all 0.2s;
}
.snc-tab:hover, .snc-tab.active {
    background: #6aa84f; color: #fff;
}
/* 列表卡片 */
.snc-list-grid { display: flex; flex-wrap: wrap; }
.snc-list-card {
    display: block; background: #fff; border-radius: 8px;
    overflow: hidden; box-shadow: 0 2px 12px rgba(60,90,40,0.08);
    transition: all 0.3s; height: 100%; margin-bottom: 24px;
    text-decoration: none;
}
.snc-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(60,90,40,0.16);
}
.snc-list-img { width: 100%; height: 180px; overflow: hidden; background: #f5f7f5; }
.snc-list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.snc-list-card:hover .snc-list-img img { transform: scale(1.05); }
.snc-list-img-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #c8d8c0; font-size: 40px;
    background: linear-gradient(135deg, #f5f7f5 0%, #e8f0e5 100%);
}
.snc-list-body { padding: 16px 18px; }
.snc-list-body h3 {
    font-size: 16px; color: #222; margin: 0 0 8px;
    font-weight: 600; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.snc-list-body p {
    font-size: 13px; color: #888; margin: 0 0 10px; line-height: 1.6;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.snc-list-date { font-size: 12px; color: #aaa; }
/* 空状态 */
.snc-empty {
    text-align: center; padding: 80px 20px; color: #999; font-size: 16px;
}
/* 分页 */
.snc-pagination {
    text-align: center; margin-top: 30px; padding-bottom: 20px;
}
.snc-page-btn {
    display: inline-block; padding: 6px 14px; margin: 0 3px;
    border: 1px solid #ddd; border-radius: 4px;
    color: #666; text-decoration: none; font-size: 14px;
    transition: all 0.2s;
}
.snc-page-btn:hover, .snc-page-btn.active {
    background: #6aa84f; color: #fff; border-color: #6aa84f;
}
.snc-page-info { display: inline-block; padding: 6px 12px; color: #888; font-size: 13px; }

/* 移动端列表页 */
.snc-page-m .snc-list-head h1 { font-size: 20px; }
.snc-page-m .snc-list-tabs { gap: 6px; margin-bottom: 18px; }
.snc-page-m .snc-tab { padding: 4px 12px; font-size: 12px; }
.snc-page-m .snc-list-card { margin-bottom: 14px; }
.snc-page-m .snc-list-img { height: 140px; }
.snc-page-m .snc-list-body { padding: 12px 14px; }
.snc-page-m .snc-list-body h3 { font-size: 15px; }
.snc-page-m .snc-list-body p { font-size: 12px; }
.snc-page-m .snc-empty { padding: 50px 20px; font-size: 14px; }

/* ==========================================================================
   联系我们页
   ========================================================================== */
.snc-contact-page .snc-contact-head { text-align: center; margin-bottom: 32px; }
.snc-contact-page .snc-contact-head h1 {
    font-size: 28px; color: #222; margin: 0 0 8px; font-weight: 700;
}
.snc-contact-page .snc-contact-head p { font-size: 15px; color: #666; margin: 0; }
/* 联系信息卡 */
.snc-contact-info {
    background: #fff; border-radius: 8px; padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(60,90,40,0.08); height: 100%;
}
.snc-contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid #f0f2f0;
}
.snc-contact-item:last-child { border-bottom: none; }
.snc-contact-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #6aa84f 0%, #81c784 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.snc-contact-text { flex: 1; }
.snc-contact-text strong { display: block; font-size: 14px; color: #333; margin-bottom: 4px; font-weight: 600; }
.snc-contact-text span, .snc-contact-text a { font-size: 14px; color: #666; text-decoration: none; word-break: break-all; }
.snc-contact-text a:hover { color: #6aa84f; }
.snc-contact-qr { width: 80px; height: 80px; margin-top: 6px; border-radius: 4px; }
/* 地图 */
.snc-contact-map { margin-top: 36px; }
.snc-contact-map h3 { font-size: 20px; color: #222; margin: 0 0 14px; }
.snc-map-embed { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(60,90,40,0.08); }
.snc-map-actions { text-align: center; margin-top: 18px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.snc-btn--ghost-green {
    background: transparent; color: #6aa84f; border: 2px solid #6aa84f;
    padding: 12px 28px; border-radius: 30px; font-size: 15px; text-decoration: none;
    display: inline-block; transition: all 0.25s;
}
.snc-btn--ghost-green:hover { background: #6aa84f; color: #fff; }
.snc-contact-actions { margin-top: 20px; }
/* 移动端联系页 */
.snc-page-m .snc-contact-head h1 { font-size: 20px; }
.snc-page-m .snc-contact-head p { font-size: 13px; }
.snc-page-m .snc-contact-info { padding: 16px 14px; box-shadow: none; }
.snc-page-m .snc-contact-item { padding: 10px 0; }
.snc-page-m .snc-contact-icon { width: 34px; height: 34px; font-size: 14px; }
.snc-page-m .snc-contact-text strong { font-size: 13px; }
.snc-page-m .snc-contact-text span, .snc-page-m .snc-contact-text a { font-size: 13px; }

/* ==========================================================================
   内页 Banner 响应式: img 自适应高度, 无固定高度(满宽 + 完整不裁切)
   ========================================================================== */

/* ==========================================================================
   PC/移动 Banner 图切换 (snc-page-banner-pc / snc-page-banner-mobile)
   - PC 用超宽幅图(如 2048x512), 移动用 2:1 图(如 1024x512), 各自比例匹配容器避免裁切
   - 默认显示 PC 版, 隐藏移动版; <=991px 反转
   ========================================================================== */
.snc-page-banner-mobile { display: none; }
@media (max-width: 991px) {
    .snc-page-banner-pc { display: none; }
    /* !important 覆盖移动 section 内联 display:none, 确保移动端显示 */
    .snc-page-banner-mobile { display: flex !important; }
}

/* ==========================================================================
   表单页短内容吸底 (sticky footer)
   - 表单页正文较短时, 让 .snc-page 撑满剩余视口, 使页脚始终贴浏览器底部,
     避免页面下半截出现大片留白; 内容超过视口时自动滚动, 不影响长内容。
   - 仅作用于加载本 CSS 的表单页(quote/booking/contact), 不影响首页/文章/产品等。
   ========================================================================== */
html, body { min-height: 100%; }
body#smart-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.snc-page {
    flex: 1 0 auto;
    width: 100%;
}
