/* style.css - 工程机械展示页面样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

/* 全局样式 */
body {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 25px;
  margin: 15px;
}

/* 头部样式 */
.main-header {
    background: linear-gradient(90deg, #1a365d 0%, #2a4365 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #63b3ed, #90cdf4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.divider-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #63b3ed, transparent);
}

.divider-icon {
    margin: 0 20px;
    font-size: 1.5rem;
    color: #63b3ed;
}

/* 主内容样式 */
.main-content {
    flex: 1;
    padding: 3rem 1rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 机械网格布局 - 修改为4列 */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 一行4张卡片 */
    gap: 1.5rem; /* 缩小间距以适应4列 */
    margin-bottom: 4rem;
}

/* 机械卡片样式 */
.machinery-card {
    background: white;
    border-radius: 14px; /* 稍小的圆角 */
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* 稍小的阴影 */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    height: 100%; /* 确保卡片高度一致 */
}

.machinery-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem 0; /* 减少内边距 */
    position: relative;
    z-index: 2;
}

.card-icon {
    /*width: 45px; */
    height: 45px;
    background: linear-gradient(135deg, #4299e1, #63b3ed);
    border-radius: 10px; /* 稍小的圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem; /* 稍小的图标字体 */
    box-shadow: 0 3px 8px rgba(66, 153, 225, 0.3);
}

.card-badge {
    background: #e53e3e;
    color: white;
    font-size: 0.75rem; /* 稍小的字体 */
    font-weight: 600;
    padding: 0.2rem 0.6rem; /* 稍小的内边距 */
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 卡片图片区域 */
.card-image {
    height: 180px; /* 稍矮的图片区域 */
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.machinery-card:hover .card-image img {
    transform: scale(1.05); /* 稍小的缩放效果 */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

/* 特殊卡片 - 更多设备 */
.highlight-card {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
}

.more-devices-bg {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4c51bf, #667eea);
}

.more-devices-content {
    text-align: center;
}

.more-devices-content i {
    font-size: 3rem; /* 稍小的图标 */
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.more-devices-content h3 {
    font-size: 1.6rem; /* 稍小的字体 */
    font-weight: 600;
}

/* 卡片内容区域 */
.card-content {
    padding: 1.2rem; /* 减少内边距 */
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem; /* 稍小的标题 */
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #2d3748;
}

.highlight-card .card-title {
    color: white;
}

.card-description {
    color: #718096;
    font-size: 0.9rem; /* 稍小的描述文字 */
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight-card .card-description {
    color: #cbd5e0;
}

/* 卡片特性标签 */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem; /* 稍小的间距 */
    margin-top: 0.8rem;
}

.feature-tag {
    background: #edf2f7;
    color: #4a5568;
    font-size: 0.75rem; /* 稍小的字体 */
    padding: 0.2rem 0.6rem; /* 稍小的内边距 */
    border-radius: 20px;
    font-weight: 500;
}

.highlight-card .feature-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* 卡片底部 */
.card-footer {
    padding: 0.8rem 1.2rem 1.2rem; /* 减少内边距 */
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fcb926, #fcb026);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem; /* 稍小的按钮 */
    border-radius: 8px; /* 稍小的圆角 */
    font-weight: 600;
    font-size: 0.9rem; /* 稍小的字体 */
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
}

.learn-more-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-2px); /* 稍小的上浮效果 */
    box-shadow: 0 5px 12px rgba(49, 130, 206, 0.25);
}

.learn-more-btn i {
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: translateX(4px);
}

.highlight-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.highlight-btn:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    box-shadow: 0 5px 12px rgba(56, 161, 105, 0.25);
}

/* 页面底部信息 */
.page-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 2.5rem;
    color: #4299e1;
    margin-bottom: 1rem;
}

.info-item h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #718096;
    font-size: 0.95rem;
}

/* 页脚样式 */
.main-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer-contact {
    font-size: 0.95rem;
}

.footer-contact i {
    margin: 0 0.5rem;
    color: #63b3ed;
}

/* 响应式设计 - 针对4列布局优化 */
@media (max-width: 1200px) {
    .machinery-grid {
        grid-template-columns: repeat(3, 1fr); /* 1200px以下显示3列 */
    }
}

@media (max-width: 992px) {
    .machinery-grid {
        grid-template-columns: repeat(2, 1fr); /* 992px以下显示2列 */
        gap: 1.2rem;
    }
    
    .site-title {
        font-size: 2.4rem;
    }
    
    .card-image {
        height: 200px; /* 恢复较高图片 */
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.2rem;
    }
    
    .machinery-grid {
        gap: 1.5rem;
    }
    
    .page-info {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
    
    .card-image {
        height: 220px; /* 在平板上有更好的显示 */
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
    
    .machinery-grid {
        grid-template-columns: 1fr; /* 手机显示1列 */
        gap: 1.5rem;
    }
    
    .page-info {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.2rem 0;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .card-footer {
        padding: 0.8rem 1.2rem 1.2rem;
    }
    
    .card-image {
        height: 200px; /* 保持适当高度 */
    }
}