/* 字体声明已移至 css/common/fonts.css 统一管理 */

  @font-face {
    font-family: "DIN-Medium";
    src: url("../fonts/DIN-Medium.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
  }

/* 顶部横幅区域样式 */
.banner {
    position: relative;
    width: 100%;
    height: 600px;
    background-image: url('../images/products/hf.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    margin-top: -70px; /* 抵消固定导航栏的高度 */
    padding-top: 70px; /* 补偿上方的负边距 */
}

.banner .container {
    position: relative;
    width: 100%;
    top: 100px;
    height: fit-content;
    padding: 0 20px;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 8%;
    font-family: var(--font-heading);
    color: #0066FF;
}

.banner p {
    font-size: 24px;
    font-family: var(--font-heading);
    color: #333333;
    max-width: 600px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .banner {
        height: 400px;
    }

    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 300px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }
}

.products {
    padding: 40px 0;
    background-color: #F2F4FA;
}

.products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 36px;
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-family: var(--font-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: contain;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
    font-family: var(--font-primary);
    font-weight: 500;
    text-align: left;
    display: block;
    overflow: visible;
    height: auto;
    word-break: break-all;
    white-space: normal;
}

.product-price {
    color: #333;
    font-size: 16px;
    font-weight: normal;
    text-align: left;
    font-family: var(--font-primary);
    margin-bottom: 0;
}

.product-price::before {
    content: "¥";
    font-size: 14px;
    margin-right: 2px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}