/* assets/css/pages/about/factory.css */

/* 核心技术展示区域 */
.core-tech-showcase {
    padding-top: 20px; /* 调整上边距 */
    padding-bottom: 40px; /* 调整下边距 */
    /* background-color: var(--background-color, #f8f9fa); */ /* 旧的背景色 */
    background-color: var(--light-tiffany, #A6E3DD); /* 使用用户指定的全局背景色 */
}

.core-tech-showcase h2 { /* "Core Technology Showcase" Main Title */
    /* color: var(--dark-tiffany, #5EBFB7); */ /* Original color */
    /* font-weight: bold; */ /* Original font-weight */
    
    font-size: 2.8rem; /* H1 style font-size */
    color: #333; /* H1 style color */
    font-weight: 600; /* H1 style font-weight */

    margin-bottom: 50px; /* Spacing below the title */
}

/* 单个技术特色区域 */
.tech-feature-item {
    margin-bottom: 60px; /* 增加每个技术区块之间的垂直间距 */
    padding: 30px 15px;
    background-color: var(--pale-tiffany, #E0F2F1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

/* 最后一个卡片特殊处理 */
#last-feature-item {
    margin-bottom: 20px; /* 设置最后一个卡片与分页之间的间距为20px */
}

/* 对于反向布局的区块，可能需要调整内边距使其对称，如果Bootstrap的默认列间距不够 */
/* .tech-feature-item.flex-row-reverse > div { ... } */

.tech-feature-item img {
    max-width: 100%;
    height: auto;
    /* 如果需要固定高度并裁剪，可以考虑 object-fit: cover 和固定高度 */
    /* max-height: 350px; */
    /* object-fit: cover; */
}

.tech-title { /* 每个技术的小标题，如"自动化生产线" */
    font-size: 2rem; /* 稍微增大字号 */
    font-weight: 600;
    color: var(--dark-tiffany, #5EBFB7);
    margin-bottom: 20px;
    margin-top: 10px; /* 在小屏幕堆叠时，与上方图片的间距 */
}

.tech-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444; /* 深灰色文字，比纯黑柔和 */
    margin-bottom: 25px;
    text-align: justify;
}

.features-title { /* "关键特性:" 或 "适用材料:" */
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--soft-gold, #FFB800); /* 使用金色作为强调 */
    margin-bottom: 15px;
}

.tech-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0; /* 移除列表底部的边距 */
}

.tech-features-list li {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start; /* 图标和文字顶部对齐 */
}

.tech-features-list li:last-child {
    margin-bottom: 0; /* 最后一个列表项没有下边距 */
}

.tech-features-list li .fas {
    margin-right: 10px;
    margin-top: 4px; /* 微调图标位置，使其与文字更协调 */
    color: var(--medium-tiffany, #A0D2DB); /* 可以用主题色系的图标颜色 */
}

/* 响应式调整：确保在小屏幕上图片和文字能良好堆叠 */
@media (max-width: 767.98px) {
    .tech-feature-item {
        padding: 20px 10px 30px; /* 小屏幕上也增加底部内边距 */
    }
    .tech-feature-item .col-md-6 {
        margin-bottom: 20px; /* 在堆叠时，图片和文字块之间的间距 */
    }
    .tech-feature-item .col-md-6:last-child {
        margin-bottom: 0;
    }
    .tech-title {
        font-size: 1.75rem; /* 调整小屏幕下的标题大小 */
        margin-top: 0; /* 移除文字块顶部的额外间距，因为图片块会有下边距*/
    }
    .tech-description {
        font-size: 0.95rem;
    }
    .features-title {
        font-size: 1.15rem;
    }
}

/* 技术卡片 */
.tech-card {
    border: 1px solid var(--pale-tiffany, #E0F2F1); /* 使用全局变量或备用颜色 */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* 表明可点击 */
    background-color: #fff; /* 卡片背景色 */
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tech-card .card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    max-height: 200px; /* 控制图片最大高度 */
    object-fit: cover; /* 确保图片覆盖区域，不变形 */
}

.tech-card .card-body {
    padding: 20px;
}

.tech-card .card-title {
    color: var(--dark-tiffany, #5EBFB7);
    font-weight: 600;
    margin-bottom: 10px;
}

.tech-card .card-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px; /* 为下方的"查看详情"留出空间 */
}

/* "查看详情"链接样式 */
.details-link {
    font-size: 0.9rem;
    color: var(--soft-gold, #FFB800); /* 使用您主题中的强调色 */
    font-weight: 500;
    text-decoration: none; /* 默认无下划线 */
    display: inline-block; /* 使其可以应用padding等 */
    padding-top: 5px; /* 与上方文本的间距 */
}

.tech-card:hover .details-link {
    text-decoration: underline; /* 悬停时显示下划线 */
    color: var(--dark-tiffany, #5EBFB7); /* 悬停时改变颜色 */
}

/* 模态框样式调整 */
.modal-header {
    background-color: var(--pale-tiffany, #E0F2F1);
    border-bottom: 1px solid var(--medium-tiffany, #A0D2DB); /* 使用稍深一点的颜色作为边框 */
}

.modal-title {
    color: var(--dark-tiffany, #5EBFB7);
    font-weight: 600;
}

.modal-body img.img-fluid {
    border-radius: 5px;
    margin-bottom: 20px; /* 图片与下方文字的间距 */
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body ul li {
    margin-bottom: 5px;
}

.modal-content {
    border-radius: 10px; /* 给模态框内容区也加上圆角 */
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 如果使用视频，可以添加以下样式 */
/*
.ratio-16x9 {
    margin-top: 15px;
}
*/

/* 响应式调整：在中等屏幕及以下，卡片标题和文本可以稍大一些，如果默认Bootstrap不够用的话 */
/*
@media (max-width: 768px) {
    .tech-card .card-title {
        font-size: 1.1rem;
    }
    .tech-card .card-text {
        font-size: 0.9rem;
    }
}
*/ 