/* -------------------------------------- */
/* Index Page - index.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;
}

/* --- 修复图片溢出问题 - 添加图片样式 --- */

/* 确保图片自适应其容器 */
.guide-image-placeholder img {
    /* 核心代码：图片宽度占满父容器 */
    width: 100%;

    /* 保持图片比例 */
    height: 100%;

    /* 确保图片在容器中保持比例且覆盖整个区域，避免出现黑边 */
    object-fit: cover;

    /* 确保图片没有任何默认的边框或间距 */
    display: block;
}

/* 确保容器本身有尺寸约束 */
.guide-image-placeholder {
    /* 保持原有的弹性属性 */
    flex: 1;

    /* 确保容器有一个可见的最小高度 */
    min-height: 250px;

    /* 重要：隐藏任何溢出容器的图片部分 */
    overflow: hidden;

    /* 移除多余的居中和斜体样式，因为图片填充后不需要 */
    /* display: flex; 
       justify-content: center;
       align-items: center;
       font-style: italic; */
}

/* 确保容器本身有尺寸约束 */
.about-us-block .image-placeholder {
    order: 1;
    flex: 1;
    height: 300px; /* 容器固定高度 */
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    
    /* 💥 新增：隐藏溢出部分，保证图片被裁剪到容器内 */
    overflow: hidden; 
}

/* 💥 新增：确保图片完全填充其容器 */
.about-us-block .image-placeholder img {
    width: 100%;
    height: 100%;
    /* 使用 object-fit: cover 确保图片不失真且充满容器 */
    object-fit: cover; 
    display: block;
}

/* --- 全局按钮和链接样式 --- */
.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-top: 10px;
    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;
    text-align: center;
    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;
}

.hero-cta-group {
    margin-top: 10px;
}


/* --- 核心价值数据展示 (三栏卡片) --- */
.value-stats-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 60px 20px;
    text-align: center;
    background-color: #f0f0f0;
}

.stat-card {
    flex: 0 1 300px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-card h2 {
    color: #990000;
    margin-bottom: 10px;
    font-size: 1.5em;
}


/* --- 服务导航区块 (Guide Cards) --- */
.service-navigation-section {
    padding: 60px 20px;
    text-align: center;
}

.service-navigation-section h2 {
    color: #990000;
    margin-bottom: 40px;
}

.service-guide-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.guide-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guide-card.reverse {
    flex-direction: row-reverse;
}

/* Auto Glass 放在右边 */

.guide-image-placeholder {
    flex: 1;
    min-height: 250px;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
}

.guide-content {
    flex: 1;
    padding: 30px;
    text-align: left;
}

.guide-content h3 {
    color: #990000;
    font-size: 1.8em;
    margin-bottom: 10px;
}


/* --- 常见问题和客户评价 (两栏) --- */
.faq-reviews-section {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
}

.faq-placeholder,
.reviews-placeholder {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
}

.faq-placeholder {
    background-color: #e6f7ff;
}

/* 浅蓝色背景 */
.reviews-placeholder {
    background-color: #fff0e6;
}

/* 浅橙色背景 */
.faq-placeholder h2,
.reviews-placeholder h2 {
    color: #333;
    margin-bottom: 15px;
}


/* --- 关于我们/使命 (与 autoglass.html 的 value-block 相似) --- */
.about-us-block {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
}

/* 使用反转布局 */
.about-us-block .image-placeholder {
    order: 1;
    flex: 1;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-us-block .text-content {
    order: 2;
    flex: 1;
}

.about-us-block .text-content h2 {
    color: #990000;
    margin-bottom: 15px;
    font-size: 2em;
}


/* --- 职业和行业洞察 (两栏) --- */
.insights-careers-section {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 30px;
}

.insights-block,
.careers-block {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    background-color: #f7f7f7;
    border-top: 5px solid #FFCC00;
}

.insights-block h2,
.careers-block h2 {
    color: #990000;
    margin-bottom: 10px;
}


/* --- 底部 CTA 网格 (统一) --- */
.bottom-cta-grid {
    text-align: center;
    padding: 60px 20px;
    background-color: #990000;
    color: white;
    margin-top: 40px;
}

.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) {

    /* 堆叠布局 */
    .about-us-block {
        flex-direction: column;
    }

    .about-us-block .image-placeholder,
    .about-us-block .text-content {
        order: initial !important;
        width: 100%;
    }

    .service-guide-container {
        width: 100%;
    }

    .guide-card,
    .guide-card.reverse {
        flex-direction: column;
    }

    .guide-image-placeholder {
        min-height: 200px;
    }
}

@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;
    }

    /* 英雄区域 */
    .hero-text h1 {
        font-size: 2em;
    }

    /* 卡片堆叠 */
    .stat-card,
    .cta-card,
    .insights-block,
    .careers-block,
    .faq-placeholder,
    .reviews-placeholder {
        flex: 0 1 100%;
    }

    /* 隐藏品牌名以节省移动设备上的空间 */
    .brand-name {
        display: none;
    }
}