/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background: #0052a3;
}

.text-center {
    text-align: center;
}

.btn-wrap {
    margin-top: 30px;
}

/* 头部导航 */
.site-header {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #555;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0066cc;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 移动端侧边栏 */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

/* 轮播图 */
.banner-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* 页面海报 */
.page-poster {
    height: 300px;
    overflow: hidden;
}

.page-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #555;
}

.breadcrumb a:hover {
    color: #0066cc;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 区块 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

.product-card .product-info {
    padding: 15px;
}

.product-card .product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.product-card .product-info p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-item a {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.news-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

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

.news-info {
    flex: 1;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: #0066cc;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.news-info p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.news-date {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #aaa;
}

/* 分类筛选 */
.product-search {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
}

.search-btn {
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.search-btn:hover {
    background: #0052a3;
}

.search-clear {
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}

.search-clear:hover {
    color: #dc3545;
}

.category-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-filter a {
    padding: 8px 20px;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
}

.category-filter a.active,
.category-filter a:hover {
    background: #0066cc;
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 14px;
}

.pagination a:hover {
    background: #0066cc;
    color: #fff;
}

.pagination span.current {
    background: #0066cc;
    color: #fff;
}

/* 产品详情 */
.product-detail .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-images .main-image {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: #0066cc;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-summary {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.product-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.product-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* 新闻详情 */
.news-detail article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-detail h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.news-cover {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.news-cover img {
    width: 100%;
    height: auto;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.article-nav a {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.article-nav .next-article {
    text-align: right;
}

/* 联系信息卡片 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: rgba(200, 200, 200, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.contact-card .card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.contact-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.contact-card p {
    font-size: 14px;
    color: #666;
}

/* 留言表单 */
.message-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.captcha-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input input {
    flex: 1;
}

.captcha-input img {
    height: 50px;
    width: 140px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 富文本内容 */
.rich-content {
    line-height: 1.8;
    color: #444;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
    margin: 30px 0 15px;
    color: #333;
}

.rich-content p {
    margin-bottom: 15px;
}

.rich-content ul,
.rich-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.rich-content li {
    margin-bottom: 8px;
}

.rich-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px 0;
}

/* 页脚 */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-contact-item {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-contact-item:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

/* 移动端底部TabBar */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 5px 0;
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px;
    color: #888;
    font-size: 12px;
}

.tabbar-item.active {
    color: #0066cc;
}

.tabbar-icon {
    font-size: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-sidebar {
        display: block;
    }
    
    .mobile-tabbar {
        display: flex;
    }
    
    .banner-slider {
        height: 250px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item a {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .page-poster {
        height: 150px;
    }
    
    .product-detail .product-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title,
    .page-title {
        font-size: 24px;
    }
    
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
