/* -------------------------------------- */
/* Collision 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;
}

/* --- 全局按钮和链接样式 --- */
.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: 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;
}


/* --- 交替图文布局 (Value Block - 与 autoglass 保持一致) --- */
.value-block {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
}

/* 默认布局: 左字右图 */
.value-block .image-placeholder {
    height: 350px;
    background-color: #f0f0f0;
    border-radius: 8px;
    
    /* 💥 新增：确保溢出内容被隐藏，防止图片过大 */
    overflow: hidden; 
    
    /* 移除多余的居中样式，因为图片填充后不需要 */
    /* display: flex; 
       justify-content: center;
       align-items: center;
       font-style: italic; */

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 💥 新增：确保图片完全填充其父容器 */
.value-block .image-placeholder img {
    width: 100%;
    height: 100%;
    /* 使用 object-fit: cover 确保图片不失真且充满容器 */
    object-fit: cover; 
    display: block; /* 移除图片默认的底部间隙 */
}

.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: 350px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.value-block h2 {
    color: #990000;
    margin-bottom: 15px;
    font-size: 2em;
}

.value-block h3 {
    color: #555;
    margin-top: 15px;
    font-size: 1.2em;
}


/* --- 特色服务卡片 (三栏) --- */
.services-highlight-grid {
    padding: 60px 20px;
    text-align: center;
    background-color: #f7f7f7;
}

.services-highlight-grid h2 {
    color: #990000;
    margin-bottom: 40px;
}

.highlight-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.highlight-card {
    flex: 0 1 300px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.highlight-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.icon-placeholder {
    font-size: 3em;
    color: #FFCC00;
    margin-bottom: 10px;
}

/* --- 底部服务列表 (Tags) --- */
.services-list-section {
    padding: 40px 20px;
    text-align: center;
}

.services-list-section h2 {
    color: #990000;
    margin-bottom: 20px;
}

.service-tags-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.service-tag {
    background-color: #ffcccc;
    /* 浅红背景 */
    color: #990000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}


/* --- 底部 CTA 网格 (与 autoglass 保持一致) --- */
.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;
    }

    .highlight-card {
        flex: 0 1 100%;
    }

    .cta-card {
        flex: 0 1 100%;
    }
}

@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;
    }
}