* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --secondary: #00ccff;
    --accent: #ff6600;
    --dark: #0a1929;
    --dark-light: #1a2b3c;
    --light: #e6f2ff;
    --text: #f0f8ff;
    --text-secondary: #b3d9ff;
}

body {
    background: linear-gradient(135deg, var(--dark) 0%, #0d1f2e 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* 导航栏 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary);
    background: rgba(0, 102, 204, 0.1);
}

nav ul li a.active {
    color: var(--secondary);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

/* 主内容区 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    padding: 0px 0;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: rgba(26, 43, 60, 0.7);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 102, 204, 0.2);
    backdrop-filter: blur(5px);
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
}

.widget h3 i {
    margin-right: 10px;
}

/* 搜索框样式优化 */
.search-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box input,
.search-box select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 25, 41, 0.7);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 5px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.2);
}

.search-box select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300ccff' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.search-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.search-buttons button {
    flex: 1;
    padding: 12px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-buttons button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.search-buttons button:active {
    transform: translateY(0);
}

.search-buttons button.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-buttons button.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-secondary);
}

.category-list, .product-list, .news-list {
    list-style: none;
}

.category-list li, .product-list li, .news-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-list li:last-child, .product-list li:last-child, .news-list li:last-child {
    border-bottom: none;
}

.category-list li:hover, .product-list li:hover, .news-list li:hover {
    padding-left: 10px;
    color: var(--secondary);
}

.category-list a, .product-list a, .news-list a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.category-list a:hover, .product-list a:hover, .news-list a:hover {
    color: var(--secondary);
}

.category-list a i, .product-list a i, .news-list a i {
    margin-right: 10px;
    font-size: 14px;
}

/* 产品检索内容区 */
.content {
    background: rgba(26, 43, 60, 0.7);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 102, 204, 0.2);
    backdrop-filter: blur(5px);
}

.content h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
}

.product-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.product-count {
    color: var(--text-secondary);
    font-size: 16px;
    background: rgba(0, 102, 204, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 204, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 产品卡片布局优化 */
.product-card {
    background: rgba(10, 25, 41, 0.5);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary);
}

/* 产品图片容器 */
.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 15px;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* 图片加载失败时的占位符 */
.product-image-container::before {
    content: "产品图片";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 16px;
    opacity: 0.7;
    display: none;
}

.product-image-container:has(img[src=""])::before,
.product-image-container:not(:has(img))::before {
    display: block;
}

/* 产品信息区域优化 */
.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
}

.product-model {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align:left;
}

/* 文档下载链接样式 */
.product-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
    margin-top: 8px;
}

.product-download:hover {
    background: #0052a3;
    color: white;
}

/* 无文档样式 */
.product-download.no-document {
    background: #999;
    cursor: default;
}

.product-download.no-document:hover {
    background: #999;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination button {
    background: rgba(10, 25, 41, 0.7);
    border: 1px solid rgba(0, 102, 204, 0.3);
    color: var(--text);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.pagination button:hover:not(:disabled) {
    background: rgba(0, 102, 204, 0.2);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button i {
    margin: 0 5px;
}

.pagination-pages {
    display: flex;
    gap: 5px;
}

.pagination-page {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 25, 41, 0.7);
    border: 1px solid rgba(0, 102, 204, 0.3);
    color: var(--text);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-page.active {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination-page:hover:not(.active) {
    background: rgba(0, 102, 204, 0.2);
    border-color: var(--primary);
}

/* 页脚 */
footer {
    background: rgba(10, 25, 41, 0.95);
    padding: 60px 0 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 102, 204, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column p, .footer-column a {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 102, 204, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Hero Section 样式 - 优化版 */
.hero {
    background: linear-gradient(135deg, rgba(15, 35, 55, 0.85) 0%, rgba(30, 50, 75, 0.8) 100%);
    padding: 25px 0 40px;
    position: relative;
    overflow: visible;
    margin-bottom: 0;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%230066cc" fill-opacity="0.03" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-image-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 102, 204, 0.3);
}

.hero-image-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.hero-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-item.active {
    opacity: 1;
}

.image-wrapper {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.hero-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 8px;
}

.hero-image-item.active img {
    transform: scale(1.02);
}

/* 轮播控制按钮 - 纯箭头样式 */
.hero-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 10;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: transparent !important;
    border: none !important;
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: none !important;
    pointer-events: auto;
}

.slider-prev:hover,
.slider-next:hover {
    background: transparent !important;
    color: var(--secondary);
    transform: scale(1.2);
}

/* 移除所有可能存在的圆形背景 */
.slider-prev::before,
.slider-next::before,
.slider-prev::after,
.slider-next::after {
    display: none !important;
}

/* 简化轮播指示点样式 */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.active {
    background: var(--secondary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--secondary);
}

.dot:not(.active):hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 修复image-caption显示位置 */
.image-caption {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    padding: 14px 28px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    z-index: 3;
    min-width: 240px;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero-image-container {
        max-width: 95%;
    }
    
    .hero-image-slider {
        height: 280px;
    }
    
    .hero-slider-controls {
        padding: 0 30px;
    }
    
    .slider-prev,
    .slider-next {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .hero {
        min-height: 360px;
        padding: 45px 0 35px;
    }
}

@media (max-width: 768px) {
    .product-image-container {
        height: 200px;
    }
    
    .product-image {
        padding: 12px;
    }
    
    .main-content {
        padding: 10px 0;
    }
    
    .hero {
        padding: 40px 0 30px;
        min-height: 340px;
    }
    
    .hero-image-slider {
        height: 240px;
        margin: 10px;
    }
    
    .hero-image-container {
        max-width: 98%;
    }
    
    .image-caption {
        top: -60px;
        font-size: 15px;
        padding: 12px 24px;
        min-width: 220px;
    }
    
    .image-wrapper {
        width: 75%;
        height: 75%;
    }
    
    .slider-prev,
    .slider-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .hero-slider-controls {
        padding: 0 20px;
    }
    
    .search-buttons {
        flex-direction: column;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .slider-dots {
        gap: 10px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 180px;
    }
    
    .hero-image-slider {
        height: 200px;
        margin: 8px;
    }
    
    .image-wrapper {
        width: 70%;
        height: 70%;
    }
    
    .image-caption {
        top: -55px;
        font-size: 12px;
        padding: 10px 20px;
        min-width: 200px;
    }
    
    .slider-prev,
    .slider-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .hero-slider-controls {
        padding: 0 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .product-count {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .slider-dots {
        gap: 8px;
        padding: 6px 14px;
    }
    
    .hero {
        min-height: 320px;
        padding: 35px 0 25px;
    }
}
/* 无背景大箭头样式 */
.hero-image-container .hero-slider-controls button.slider-prev,
.hero-image-container .hero-slider-controls button.slider-next {
    background: transparent !important;
    border: none !important;
    color: var(--primary) !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 42px !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.hero-image-container .hero-slider-controls button.slider-prev {
    left: 30px !important;
    right: auto !important;
}

.hero-image-container .hero-slider-controls button.slider-next {
    right: 30px !important;
    left: auto !important;
}

.hero-image-container .hero-slider-controls button.slider-prev:hover,
.hero-image-container .hero-slider-controls button.slider-next:hover {
    background: transparent !important;
    border: none !important;
    color: var(--secondary) !important;
    transform: translateY(-50%) scale(1.3) !important;
    box-shadow: none !important;
    text-shadow: 0 4px 15px rgba(0, 204, 255, 0.5) !important;
}

.hero-image-container .hero-slider-controls button.slider-prev:active,
.hero-image-container .hero-slider-controls button.slider-next:active {
    transform: translateY(-50%) scale(1.1) !important;
}

/* 确保图标样式正确 */
.hero-image-container .hero-slider-controls button.slider-prev i,
.hero-image-container .hero-slider-controls button.slider-next i {
    color: inherit !important;
    font-size: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 700 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

/* 添加箭头悬浮发光效果 */
.hero-image-container .hero-slider-controls button.slider-prev:hover i,
.hero-image-container .hero-slider-controls button.slider-next:hover i {
    filter: drop-shadow(0 4px 8px rgba(0, 204, 255, 0.6)) !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .hero-image-container .hero-slider-controls button.slider-prev,
    .hero-image-container .hero-slider-controls button.slider-next {
        width: 75px !important;
        height: 75px !important;
        font-size: 38px !important;
    }
    
    .hero-image-container .hero-slider-controls button.slider-prev {
        left: 25px !important;
    }
    
    .hero-image-container .hero-slider-controls button.slider-next {
        right: 25px !important;
    }
}

@media (max-width: 768px) {
    .hero-image-container .hero-slider-controls button.slider-prev,
    .hero-image-container .hero-slider-controls button.slider-next {
        width: 70px !important;
        height: 70px !important;
        font-size: 34px !important;
    }
    
    .hero-image-container .hero-slider-controls button.slider-prev {
        left: 20px !important;
    }
    
    .hero-image-container .hero-slider-controls button.slider-next {
        right: 20px !important;
    }
}

@media (max-width: 480px) {
    .hero-image-container .hero-slider-controls button.slider-prev,
    .hero-image-container .hero-slider-controls button.slider-next {
        width: 60px !important;
        height: 60px !important;
        font-size: 30px !important;
    }
    
    .hero-image-container .hero-slider-controls button.slider-prev {
        left: 15px !important;
    }
    
    .hero-image-container .hero-slider-controls button.slider-next {
        right: 15px !important;
    }
}