/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, a:link, a:visited, a:hover, a:focus, a:active {
    text-decoration: none !important;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    border-top: 25px solid #FF6B35;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #FF6B35;
    cursor: pointer;
    padding: 5px;
}

/* Menu and Search Box */
.menu {
    display: block;
}

.search-box {
    display: flex;
}

.logo h1 {
    color: #FF6B35;
    font-size: 2rem;
    font-weight: bold;
}

.menu ul {
    display: flex;
    list-style: none;
}

.menu ul li {
    margin: 0 15px;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu ul li a:hover {
    color: #FF6B35;
}

.menu ul li a.active {
    color: #FF6B35;
    font-weight: bold;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 10px 15px;
    background-color: #FF6B35;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #e55a2a;
}

/* 轮播图 */
.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-content {
    position: relative;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-text h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.slider-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e55a2a;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-controls button:hover {
    background-color: #FF6B35;
    color: white;
}

/* 通用 section 样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    padding-top: 60px;
}

/* 推荐产品 */
.featured-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-item h3 {
    padding: 20px;
    text-align: center;
    color: #333;
}

/* 产品列表 */
.products {
    padding: 60px 0;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 确保在中等及以上屏幕尺寸显示4列 */
@media (min-width: 768px) {
    .products-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product h3 {
    padding: 15px;
    text-align: center;
    color: #333;
    font-size: 1rem;
}

/* 产品类别 */
.categories {
    padding: 60px 0;
    background-color: #FF6B35;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.category-item {
    text-align: center;
}

.category-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 5px solid #FF6B35;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item h3 {
    color: #333;
    font-size: 1.1rem;
}

/* 客户案例 */
.cases {
    padding: 60px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.case-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.case-item h3 {
    padding: 15px;
    text-align: center;
    color: #333;
    font-size: 1rem;
}

/* 企业形象大图 */
.company-image {
    width: 100%;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* About Us */
.about {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

/* FAQ */
.faq {
    padding: 60px 0;
}

.faq-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.faq-image {
    flex: 1;
    min-width: 300px;
    max-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
}

.faq-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
}

.faq-accordion {
    flex: 1;
    min-width: 300px;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background-color: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f8f9fa;
}

.accordion-header.active {
    background-color: #FF6B35;
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 200px;
}

.accordion-content p {
    padding: 15px 20px;
    background-color: white;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: #FF6B35;
    margin-bottom: 15px;
}

.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #FF6B35;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 社交媒体和新闻订阅样式 */
.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-social h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #FF6B35;
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
    font-size: 1rem;
}

.newsletter-form .btn {
    margin: 0;
    padding: 12px 20px;
    height: auto;
    border-radius: 5px;
    width:100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* Simplified Pagination Styles */
.pagination {
    text-align: center !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

/* Base styles for all pagination elements */
.pagination span, 
.pagination a {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    border-radius: 50% !important;
    border: 2px solid #FF6B35 !important;
    background-color: #FF6B35 !important;
    color: white !important;
    font-size: 1rem !important;
    margin: 0 5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

/* Special styles for non-numeric elements */
.pagination span:first-child, 
.pagination span.disabled, 
.pagination a:last-child {
    width: auto !important;
    padding: 0 15px !important;
    border-radius: 20px !important;
}

/* Record count */
.pagination span:first-child {
    border: none !important;
    background: transparent !important;
    color: #666 !important;
    cursor: default !important;
}

/* Current page */
.pagination span.current {
    background-color: #333 !important;
    border-color: #333 !important;
}

/* Disabled state */
.pagination span.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Hover effects */
.pagination span:hover, 
.pagination a:hover {
    background-color: #e55a2a !important;
    border-color: #e55a2a !important;
}

/* Prevent hover on record count */
.pagination span:first-child:hover {
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    cursor: default !important;
}

.pagination a:last-child {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
        align-items: center;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        margin: 0;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 1001;
    }
    
    /* Hide Menu and Search by default on mobile */
    .menu {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 10px;
        background-color: white;
        padding: 15px 0;
        border-top: 1px solid #eee;
    }
    
    .search-box {
        display: none;
        width: 80%;
        max-width: 500px;
        order: 2;
        margin: 10px auto 0;
        justify-content: center;
    }
    
    /* Show Menu and Search when active */
    .menu.active {
        display: block;
    }
    
    .search-box.active {
        display: flex;
    }
    
    .menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        list-style: none;
        margin: 0;
    }
    
    .menu ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .menu ul li a {
        display: block;
        padding: 10px 20px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .menu ul li a:hover {
        color: #FF6B35;
    }
    
    .slider {
        height: 400px;
    }
    
    .slider-text h2 {
        font-size: 2rem;
    }
    
    .slider-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding-top: 40px;
    }
    
    .featured-products,
    .products,
    .categories,
    .cases,
    .about,
    .faq {
        padding: 40px 0;
    }
    
    .about-content,
    .faq-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
    }
    
    .slider-text {
        left: 5%;
    }
    
    .slider-text h2 {
        font-size: 1.5rem;
    }
    
    .slider-text p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-img {
        width: 120px;
        height: 120px;
    }
}