/* 开源硬件页面专用样式 */
.hardware-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 30px;
    color: white;
}

.blue-bg {
    background-color: #0066cc;
}

.green-bg {
    background-color: #00a651;
}

.purple-bg {
    background-color: #8e44ad;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 精选产品样式 */
.featured-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.product-item ul {
    margin-bottom: 20px;
}

.product-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.product-item ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #0066cc;
    position: absolute;
    left: 0;
    top: 0;
}

.product-item .product-btn {
    display: inline-block;
    background-color: #1890ff;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: auto;
    text-decoration: none;
}

.product-item .product-btn:hover {
    background-color: #0055aa;
}

/* 开发板样式 */
.section-header {
    margin-bottom: 25px;
    background-color: #0ea6e9;
}

.board-title {
    color: white;
    padding: 6px 20px;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
}

.dev-boards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.board-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.board-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.board-img {
    height: 150px;
    overflow: hidden;
}

.board-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-content {
    padding: 15px;
}

.view-more-container {
    text-align: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #2563eb;
    color: white;
}

.board-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.board-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.learn-more {
    display: inline-block;
    background-color: #1890ff;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    align-self: flex-end;
    margin-top: auto;
}

.learn-more:hover {
    background-color: #0055aa;
    text-decoration: none;
}

/* 技术文档样式 */
.docs-resources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.docs-column, .resources-column {
    flex: 0 1 400px;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.docs-column h3, .resources-column h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.docs-list, .resources-list {
    list-style: none;
}

.docs-list li, .resources-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.docs-list li i, .resources-list li i {
    margin-right: 10px;
    color: #0066cc;
    font-size: 16px;
}

.docs-list a, .resources-list a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.docs-list a:hover, .resources-list a:hover {
    color: #0066cc;
    text-decoration: none;
}

.docs-list li span, .resources-list li span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    padding-left: 26px;
}

.docs-download-btn {
    display: block;
    text-align: center;
    margin: 40px auto 0;
    padding: 10px 30px;
    background-color: #0ea6e9;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    width: fit-content;
}

.docs-download-btn:hover {
    background-color: #0b8bc7;
    text-decoration: none;
    color: white;
}

/* Banner样式 */
.hardware-banner {
    height: 500px;
    background-image: url('../images/banner_hardware.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 64px;
    position: relative;
}

.banner-content {
    max-width: 600px;
    margin-left: 100px;
    color: white;
    z-index: 2;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .advantage-cards,
    .featured-products,
    .docs-resources {
        gap: 20px;
    }

    .dev-boards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .banner-content {
        margin-left: 50px;
    }
}

@media (max-width: 768px) {
    .advantage-card,
    .product-item {
        min-width: 100%;
    }

    .featured-products {
        flex-direction: column;
    }

    .dev-boards {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .banner-content {
        margin-left: 30px;
        max-width: 80%;
    }
    .hardware-banner {
        background-image: url('/images/banner_hardware_1.png');
        background-size: cover;
        background-position: center;
    }
}