/* ==========================================================
   长沙山岚环保科技有限公司 — 全站样式
   主色：环保绿  辅色：深林绿 / 浅灰绿背景
   ========================================================== */

:root {
    --green-dark: #1b5e20;
    --green: #2e7d32;
    --green-light: #66bb6a;
    --bg-light: #f4f8f4;
    --text: #2c332d;
    --text-muted: #6b7570;
    --white: #ffffff;
    --border: #e0e8e0;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(27, 94, 32, 0.08);
    --shadow-hover: 0 8px 24px rgba(27, 94, 32, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--green-dark);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部联系条 ---------- */
.top-bar {
    background: var(--green-dark);
    color: #dcedc8;
    font-size: 14px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar .phone {
    color: var(--white);
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
}

.top-bar .phone:hover {
    color: var(--green-light);
}

/* ---------- 导航栏 ---------- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 20px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--green-dark);
    white-space: nowrap;
    position: relative;
    padding-left: 16px;
}

.logo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 26px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--green-light), var(--green-dark));
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text);
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}

.nav a:hover {
    background: var(--bg-light);
    color: var(--green-dark);
}

.nav a.active {
    background: var(--green);
    color: var(--white);
    font-weight: 600;
}

/* ---------- 首屏大图 ---------- */
.hero {
    background:
        linear-gradient(135deg, rgba(27, 94, 32, .94) 0%, rgba(46, 125, 50, .88) 55%, rgba(102, 187, 106, .82) 100%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px);
    color: var(--white);
    padding: 110px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 22px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.hero-content p {
    font-size: 18px;
    max-width: 760px;
    margin: 0 auto 36px;
    color: #e8f5e9;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.btn-primary {
    background: var(--white);
    color: var(--green-dark);
}

.btn-primary:hover {
    background: #f1f8e9;
    color: var(--green-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    color: var(--white);
}

.btn-lg {
    padding: 16px 44px;
    font-size: 18px;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 76px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-title {
    font-size: 30px;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 14px;
    font-weight: 700;
}

.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--green-light);
    margin: 16px auto 0;
}

.section > .container > .section-title + * {
    margin-top: 40px;
}

/* ---------- 内页页头 ---------- */
.page-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    color: var(--white);
    padding: 62px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: #e8f5e9;
}

/* ---------- 核心优势卡片 ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ---------- 服务项目卡片 ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card h3 {
    font-size: 19px;
    color: var(--green-dark);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    flex: 1;
}

.service-card .link {
    margin-top: 18px;
    font-weight: 600;
    font-size: 15px;
}

/* ---------- 服务详情（服务项目页） ---------- */
.service-detail-card {
    background: var(--white);
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.service-detail-card:last-child {
    margin-bottom: 0;
}

.service-detail-card h2 {
    font-size: 22px;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.service-detail-card p {
    color: var(--text-muted);
}

/* ---------- 工程案例 ---------- */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.project-info h3 {
    font-size: 23px;
    color: var(--green-dark);
    margin-bottom: 18px;
}

.project-info ul {
    list-style: none;
}

.project-info li {
    padding: 9px 0 9px 22px;
    border-bottom: 1px dashed var(--border);
    position: relative;
    color: var(--text-muted);
    font-size: 15px;
}

.project-info li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 19px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-light);
}

.project-info li:last-child {
    border-bottom: none;
}

.project-info strong {
    color: var(--text);
}

.project-image img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

/* 实拍照片就位前的本地占位块 */
.img-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    border: 2px dashed var(--green-light);
    background:
        linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 50%, #dcedc8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
}

.img-placeholder .ph-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-dark);
}

.img-placeholder .ph-tip {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- 首屏实拍背景 ---------- */
.hero.hero-photo {
    background:
        linear-gradient(135deg, rgba(20, 60, 24, .82) 0%, rgba(27, 94, 32, .62) 45%, rgba(27, 94, 32, .35) 100%),
        url("images/city-loading.jpg") center 55% / cover no-repeat;
    color: var(--white);
}

.hero.hero-photo .hero-content p {
    color: #f1f8e9;
}

/* ---------- 卡片内配图 ---------- */
.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: var(--bg-light);
}

/* ---------- 设备实拍画廊（关于我们） ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.gallery-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--white);
    border-top: 1px solid var(--border);
    text-align: center;
}

/* ---------- 服务详情卡（左文右图） ---------- */
.service-detail-card.has-img {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: center;
}

.service-detail-card.has-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ---------- 多案例网格（工程案例 / 首页） ---------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}

.project-grid .project-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    margin: 0;
}

.project-grid .project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.project-grid .project-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.project-grid .project-info li {
    font-size: 14px;
    padding: 7px 0 7px 20px;
}

.project-grid .project-info li::before {
    top: 16px;
}

/* ---------- 现场视频区 ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #0d1a0f;
}

.video-card figcaption {
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--green-dark);
    border-top: 1px solid var(--border);
    text-align: center;
}

.video-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 22px;
}

/* ---------- 设备清单与画廊间距 ---------- */
.section-gap {
    margin-top: 34px;
}

/* ---------- 新增版块的响应式 ---------- */
@media (max-width: 860px) {
    .service-detail-card.has-img {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-detail-card.has-img img {
        order: -1;
    }

    .gallery-grid,
    .project-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 底部 CTA ---------- */
.cta {
    background:
        linear-gradient(135deg, rgba(27, 94, 32, .93) 0%, rgba(46, 125, 50, .88) 60%, rgba(27, 94, 32, .82) 100%),
        url("images/liuyang-site.jpg") center 60% / cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 68px 0;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.cta p {
    font-size: 17px;
    color: #dcedc8;
    margin-bottom: 30px;
}

/* ---------- 关于我们：正文 / 设备 ---------- */
.content-block p {
    margin-bottom: 18px;
    color: var(--text-muted);
    text-indent: 2em;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.equipment-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 22px;
    text-align: center;
    font-size: 15px;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease;
}

.equipment-item:hover {
    transform: translateY(-4px);
    border-color: var(--green-light);
}

/* ---------- 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.contact-info,
.contact-cta {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 32px;
    box-shadow: var(--shadow);
}

.contact-cta {
    background: linear-gradient(160deg, #f1f8e9, var(--white));
    border-color: var(--green-light);
    text-align: center;
}

.contact-info h2,
.contact-cta h2 {
    font-size: 22px;
    color: var(--green-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-light);
}

.contact-info p {
    padding: 9px 0;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border);
}

.contact-info p:last-child {
    border-bottom: none;
}

.contact-info strong {
    color: var(--text);
    display: inline-block;
    min-width: 84px;
}

.contact-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-cta .btn-primary {
    background: var(--green);
    color: var(--white);
}

.contact-cta .btn-primary:hover {
    background: var(--green-dark);
    color: var(--white);
}

/* ---------- 页脚 ---------- */
.footer {
    background: #16281a;
    color: #a8b8aa;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin-bottom: 8px;
    line-height: 1.9;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer #beian-number {
    color: #c8d6c8;
}

/* ---------- 响应式：手机 / 平板 ---------- */
@media (max-width: 860px) {
    .header-container {
        height: auto;
        flex-direction: column;
        padding: 14px 20px;
        gap: 12px;
    }

    .nav {
        justify-content: center;
    }

    .nav a {
        padding: 7px 11px;
        font-size: 14px;
    }

    .hero {
        padding: 72px 0;
    }

    .hero-content h1 {
        font-size: 30px;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section {
        padding: 54px 0;
    }

    .section-title {
        font-size: 25px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .project-card,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .cta h2 {
        font-size: 25px;
    }

    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-content h1 {
        font-size: 25px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .content-block p {
        text-indent: 0;
    }
}

/* ---------- 清表常见问题 FAQ ---------- */
.faq-item{border-bottom:1px solid var(--border);padding:16px 0;}
.faq-item:last-child{border-bottom:none;}
.faq-item h3{margin:0 0 8px;font-size:16px;color:var(--green-dark);}
.faq-item p{margin:0;color:var(--text-muted);font-size:14px;line-height:1.8;}
