/* 基本页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Jost;
}

body {
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
}

header {
    text-align: center;
}

h1 {
    font-size: 32px;
    color: #18185b;
    font-weight: 700;
    letter-spacing: -0.5px;
}


/* 产品分类样式 */

.product-category {
    margin-bottom: 50px;
}

.product-category h2 {
    color: #18185b;
    margin-bottom: 30px;
    border-bottom: 3px solid #f5ad0d;
    padding-bottom: 10px;
    font-weight: 600;
}


/* 产品卡片样式 */

.product-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    background-color: #fafafa;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 24px;
    color: #18185b;
    margin: 10px 0;
    font-weight: 700;
}

.product-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}


/* CTA按钮样式 */

.cta-btn {
    background: linear-gradient(135deg, #f5ad0d, #f5a623);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #f5a623, #f5ad0d);
    transform: scale(1.05);
}


/* footer样式 */

footer {
    text-align: center;
    margin-top: 50px;
}

footer p {
    font-size: 16px;
    color: #333;
}

footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.logo-mobile {
    display: block;
    margin: 0 auto 20px;
    text-align: center;
    width: 200px;
}

.logo-mobile img {
    width: 200px;
    /* Adjust as per mobile requirements */
}

header h1 {
    font-size: 24px;
    margin-top: 10px;
}


/* 响应式设计 */

@media (min-width: 768px) {
    .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .product-image {
        width: 50%;
        height: auto;
    }
    .product-info {
        padding: 20px 30px;
        width: 50%;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .product-category {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-category h2 {
        grid-column: span 2;
        /* 使标题横跨两列 */
        margin-bottom: 30px;
    }
    .product-card {
        /* 保持卡片宽度为自适应 */
        width: 100%;
    }
}

.product-term-section {
    padding: 20px;
    background-color: #f7f7f7;
}

.product-term-title {
    text-align: center;
    font-size: 24px;
    color: #18185b;
    margin-bottom: 20px;
}

.product-term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 0 20px;
}

.product-term-item {
    padding: 10px;
    background-color: #f5ad0d;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-term-item:hover {
    background-color: #e59d0b;
    cursor: pointer;
}


/* IBIE 横幅提示 */

.ibie-banner {
    position: sticky;
    top: 0;
    background-color: #f5ad0d;
    color: #18185b;
    text-align: center;
    padding: 14px 20px;
    line-height: 1.6;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ibie-banner strong {
    color: #18185b;
}

.ibie-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #18185b;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.ibie-btn:hover {
    background-color: #333;
}

.close-banner {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    color: #18185b;
    cursor: pointer;
    font-weight: bold;
}

.ibie-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #18185b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 9999;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ibie-toggle:hover {
    background-color: #333;
}