/* -------------------------------------- */
/* Auto Glass Page - autoglass.css (M&Y 品牌色调) */
/* -------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    /* 统一白色背景 */
}

/* --- 导航栏和头部 --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    border-bottom: 3px solid #990000;
    /* 品牌主色：深红 */
}

.logo a { 
    display: flex; /* 使用 Flexbox 实现图片和文本对齐 */
    align-items: center; /* 垂直居中对齐 */
    text-decoration: none; /* 移除链接下划线 */
    /* 移除原来的固定宽度和高度 */
}

/* 调整 .logo img 样式 */
.logo img { 
    height: 50px; /* 固定 Logo 图片高度 */
    width: auto;
    margin-right: 10px; /* 在图片和文本之间增加间距 */
}

/* 新增：品牌名称样式 */
.brand-name {
    color: #990000; /* 深红色品牌主色 */
    font-size: 1.5em; /* 适当放大文字 */
    font-weight: bold; /* 突出显示 */
    white-space: nowrap; /* 防止名称换行 */
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 25px;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #990000;
    border-bottom: 3px solid #990000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #990000;
}

/* --- 全局按钮和链接样式 --- */
.cta-button {
    display: inline-block;
    background-color: #FFCC00;
    /* 品牌辅色：黄色 */
    color: #333;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.link-button {
    display: inline-block;
    color: #990000;
    font-weight: bold;
    text-decoration: none;
    margin-right: 15px;
    border-bottom: 1px solid #990000;
    padding-bottom: 2px;
}

.cta-button-small {
    display: inline-block;
    background-color: #990000;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #f0c000;
}

.cta-button-small:hover {
    background-color: #770000;
}


/* --- 英雄区域 (大图 + 文字) --- */
.hero-section {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: white;
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* 占位背景色 */
    opacity: 0.7;
    z-index: -1;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

/* --- 交替图文布局 (Value Block) --- */
.value-block {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
}

/* 默认布局: 左字右图 */
.value-block .image-placeholder {
    order: 2;
    flex: 1;
}

.value-block .text-content {
    order: 1;
    flex: 1;
}

.value-block.reverse .image-placeholder {
    order: 1;
    /* 左图 */
}

.value-block.reverse .text-content {
    order: 2;
    /* 右字 */
}

/* 确保容器本身有尺寸约束并隐藏溢出 */
.value-block .image-placeholder {
    height: 300px; /* 您当前定义的容器高度 */
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    /* 💥 关键新增：隐藏溢出内容，防止图片过大 */
    overflow: hidden; 

    /* 移除 display: flex/justify-content/align-items/font-style， 
       因为图片填充后不需要这些样式来居中占位符文本。
    */
    /* display: flex; 
       justify-content: center;
       align-items: center;
       font-style: italic; */
}

/* 💥 关键新增：确保图片完全填充其父容器且不失真 */
.value-block .image-placeholder img {
    width: 100%;
    height: 100%;
    /* 使用 object-fit: cover 确保图片不失真且充满容器 */
    object-fit: cover; 
    display: block; /* 消除图片底部的间隙 */
}

.value-block h2 {
    color: #990000;
    margin-bottom: 15px;
    font-size: 2em;
}

.value-block ul {
    list-style: none;
    padding: 0;
}

.value-block li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

/* --- 冰雹损坏警示区块 --- */
.hail-damage-alert {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff8e1;
    /* 浅黄色背景 */
    border: 1px solid #FFCC00;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 8px;
}

.hail-damage-alert h2 {
    color: #990000;
}

/* --- 服务列表区块 --- */
.services-list-section {
    padding: 60px 20px 40px;
    text-align: center;
    background-color: #f7f7f7;
}

.services-list-section h2 {
    color: #990000;
}

.service-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.service-card {
    flex: 0 1 200px;
    padding: 15px;
    background-color: white;
    border: 1px solid #990000;
    color: #990000;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.service-card:hover {
    background-color: #ffcccc;
}


/* --- 底部 CTA 网格 (与 Why M&Y 保持一致) --- */
.bottom-cta-grid {
    text-align: center;
    padding: 60px 20px;
    background-color: #990000;
    color: white;
}

.bottom-cta-grid h2 {
    margin-bottom: 40px;
}

.cta-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-card {
    flex: 0 1 300px;
    background-color: white;
    color: #333;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-card h3 {
    color: #990000;
    margin-bottom: 10px;
}


/* --- 页脚 --- */
.main-footer {
    background-color: #222;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 0.9em;
}

.main-footer p {
    margin: 0;
    line-height: 1.5;
}

/* -------------------------------------- */
/* 📱 媒体查询 (手机端兼容) */
/* -------------------------------------- */
@media (max-width: 992px) {

    /* 图文布局堆叠 */
    .value-block {
        flex-direction: column;
    }

    .value-block .image-placeholder,
    .value-block .text-content {
        order: initial !important;
        width: 100%;
    }

    .value-block .image-placeholder {
        margin-top: 20px;
    }

    .cta-card {
        flex: 0 1 100%;
    }

    .service-card {
        flex: 0 1 45%;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        border-top: 1px solid #ddd;
        z-index: 100;
        flex-direction: column;
        text-align: center;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav .nav-list {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: none !important;
    }

    .main-nav .nav-list a.active {
        color: #FFCC00;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    /* 隐藏品牌名以节省移动设备上的空间 */
    .brand-name {
        display: none;
    }
}