/* ================================================================
 * series.css - Styles for Product Series listing page
 * ================================================================ */

/* 页面整体样式 */
.drone-series-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 0;
}

.drone-series-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 10vh;
}

.page-header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: #666;
}

/* 内容区域 */
.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 左侧导航 */
.side-nav {
    width: 260px;
    flex-shrink: 0;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.side-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.side-nav li:last-child {
    border-bottom: none;
}

.side-nav a {
    display: block;
    padding: 16px 24px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.side-nav a:hover {
    background: #f5f5f5;
    color: #007bff;
}

.side-nav a.active {
    background: #e0e0e0;
    color: #333;
    font-weight: 600;
}

/* 右侧产品列表 */
.product-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
        margin-bottom: 20px;
    }

    .side-nav ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }

    .side-nav li {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }

    .side-nav li:last-child {
        border-right: none;
    }

    .product-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }

    .product-card {
        padding: 20px;
    }

    .product-image {
        height: 200px;
    }
}
