/* 产品列表样式 - 单列布局 */
.product-content .product-list {
    width: 100% !important;
    margin: 20px 0 !important;
    display: block !important;
    border: none !important;
    padding: 0 !important;
}

.product-content .product-list .product-item {
    max-width: 100%;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    transition: background-color 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    float: none !important;
    clear: both !important;
    max-width: 100% !important;
}

/* 清除浮动 */
.product-list::after {
    content: "";
    display: table;
    clear: both;
}

.product-item:hover {
    background-color: #f9f9f9;
}

.product-item h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: normal !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-right: 20px !important;
    width: 90% !important; /* 确保标题区域足够宽 */
}

.product-item h3 a {
    color: #333;
    text-decoration: none;
}

.product-item h3 a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.product-date {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

/* 统一背景样式 - 以News.html为参照 */
.hero-banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    background-size: 400% 400%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/product/background.webp') center/cover;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(41, 128, 185, 0.8) 50%, rgba(26, 188, 156, 0.8) 100%);
}

.banner-titles {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

.banner-titles h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-titles h2 {
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
    }
    
    .banner-titles h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .banner-titles h2 {
        font-size: 1.6rem;
    }
}

/* 主内容区域 */
.product-content {
    padding: 20px 0 30px;
    background: #f5f5f5;
    min-height: calc(100vh - 180px);
}

.content-container {
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 0;
    background: #fff;
    min-height: 600px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 移除重复的网格布局样式 */

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-btn {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #2980b9;
}

.product-image-link {
    display: block;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-link:hover {
    transform: scale(1.05);
}

/* 筛选区域 */
.filter-container {
    margin: 0 auto 30px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 100%;
}

.search-box {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    min-width: 350px;
    justify-content: flex-end;
}

#searchInput {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    min-width: 200px;
}

#searchInput:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

#searchBtn,
#resetFilter {
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#searchBtn:hover,
#resetFilter:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

#searchBtn:active,
#resetFilter:active {
    transform: translateY(0);
}

.filter-group select {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-width: 160px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-group select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

#resetFilter {
    background: #666;
    margin-left: 0;
}

#resetFilter:hover {
    background: #555;
}

.filter-group {
    flex: 1;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    margin-right: 20px;
}

/* 产品列表样式 */
.product-list {
    width: 100%;
    border-collapse: collapse;
}

.product-item {
    display: table-row;
    border-bottom: 1px solid #eee;
}

.product-item:hover {
    background-color: #f9f9f9;
}

.product-item:hover h3 a {
    color: #1a73e8;
}

h3, .product-date {
    display: table-cell;
    padding: 12px 15px;
    vertical-align: middle;
}

h3 {
    font-size: 1rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 12px 15px;
}

h3 a {
    color: inherit;
    text-decoration: none;
}

h3 a {
    color: inherit;
    text-decoration: none;
}

h3 a:hover {
    color: #1a73e8;
}

.product-date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: right;
    width: 100px;
    padding-right: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .current {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination a {
    color: #333;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 3px;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination a:hover:not(.active) {
    background-color: #f8f9fa;
}

/* 响应式设计 */
/* 产品规格 */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 15px;
}

.product-specs span {
    background: #f0f7ff;
    color: #2980b9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* 查看详情按钮 */
.view-details {
    display: inline-block;
    background: #3498db;
    color: white;
    text-align: center;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.view-details:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-item {
        padding: 10px 0;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .product-date {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding: 12px 15px;
    }
    
    .news-content {
        padding: 12px 15px;
    }
    
    .news-header h3 {
        font-size: 1.1rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .news-meta span {
        width: 100%;
        text-align: center;
    }
}