/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 全局样式 */
body {
    color: #1F2937;
    background-color: #FFFFFF;
    line-height: 1.6;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.primary-btn {
    background-color: #1E40AF;
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: white;
    color: #1E40AF;
    border: 2px solid #1E40AF;
}

.secondary-btn:hover {
    background-color: #EFF6FF;
    transform: translateY(-2px);
}

.outline-btn {
    background-color: transparent;
    color: #1E40AF;
    border: 2px solid #1E40AF;
}

.outline-btn:hover {
    background-color: #1E40AF;
    color: white;
    transform: translateY(-2px);
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    text-decoration: none;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #1E40AF;
}

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

.desktop-nav a {
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: #1E40AF;
}

.contact-btn {
    display: none;
    background-color: #1E40AF;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
}

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

.mobile-menu {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.mobile-menu-content a {
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.mobile-menu-content a:hover {
    color: #1E40AF;
}

.mobile-contact-btn {
    background-color: #1E40AF;
    color: white !important;
    padding: 10px;
    border-radius: 50px;
    text-align: center;
    margin-top: 10px;
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 英雄区域样式 */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F3F4F6;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #1E40AF;
}

.hero-text p {
    font-size: 1.1rem;
    color: #4B5563;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 5px;
}

.stat-item .stat-text {
    color: #4B5563;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #1E40AF;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* 通用区块标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-header p {
    color: #4B5563;
    max-width: 700px;
    margin: 0 auto;
}

/* 产品展示区样式 */
.products-section {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.product-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: white;
    color: #1F2937;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background-color: #1E40AF;
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: #EFF6FF;
    color: #1E40AF;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

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

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-badge.hot {
    background-color: #F97316;
    color: white;
}

.product-badge.new {
    background-color: #1E40AF;
    color: white;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-info p {
    color: #4B5563;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: bold;
    color: #1E40AF;
    font-size: 1.1rem;
}

.view-details {
    background-color: rgba(30, 64, 175, 0.1);
    color: #1E40AF;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details:hover {
    background-color: rgba(30, 64, 175, 0.2);
}

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

/* 关于我们区域样式 */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 64, 175, 0.1);
    color: #1E40AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.badge-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.badge-text p {
    color: #4B5563;
    font-size: 0.9rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: #4B5563;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 10px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 64, 175, 0.1);
    color: #1E40AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-text p {
    color: #4B5563;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 公司优势区域样式 */
.advantages-section {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 64, 175, 0.1);
    color: #1E40AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #4B5563;
}

/* 客户评价区域样式 */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #F9FAFB;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h4 {
    font-weight: bold;
}

.client-details p {
    color: #4B5563;
    font-size: 0.9rem;
}

.rating {
    color: #FBBF24;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    color: #4B5563;
}

/* 联系我们区域样式 */
.contact-section {
    padding: 80px 0;
    background-color: rgba(30, 64, 175, 0.05);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #4B5563;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(30, 64, 175, 0.1);
    color: #1E40AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detail-text p {
    color: #4B5563;
    margin-bottom: 0;
}

.social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #1E40AF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 页脚样式 */
.footer {
    background-color: #1F2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column p {
    color: #9CA3AF;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #1E40AF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-bottom p {
    color: #9CA3AF;
    text-align: center;
}

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

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1E40AF;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
}

/* 工具类 */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* 响应式设计 */
@media (min-width: 768px) {
    .contact-btn {
        display: block;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-text, .hero-image {
        flex: 1;
    }
    
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-image, .about-text {
        flex: 1;
    }
    
    .contact-content {
        flex-direction: row;
    }
    
    .contact-info, .contact-form {
        flex: 1;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-bottom p {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .about-badge {
        position: static;
        margin-top: 20px;
        max-width: 100%;
    }
}
    