/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 顶部信息条样式 */
.top-bar {
    background: #2c3e50;
    color: white;
    font-size: 14px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid #34495e;
    height: 40px;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-info {
    display: flex;
    align-items: center;
}

.welcome-text {
    color: #ecf0f1;
    font-weight: 400;
}

.contact-info-top {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #00d4aa;
}

.contact-item i {
    font-size: 12px;
    color: #00d4aa;
}

/* 导航栏样式 */
.header {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 40px;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主横幅区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 160px 0 80px;
    color: white;
    overflow: hidden;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.cta-button {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* 产品分类样式 */
.products {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.feature-item i {
    font-size: 18px;
    opacity: 0.8;
}

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

.product-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.product-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.product-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 热门产品样式 */
.hot-products {
    padding: 80px 0;
    background: #f8f9fa;
}

.hot-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hot-product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

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

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

.hot-product-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.hot-product-tag {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.hot-product-info {
    padding: 25px;
}

.hot-product-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.rating {
    margin-bottom: 20px;
}

.rating i {
    color: #ffd700;
    margin-right: 2px;
}

.hot-product-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hot-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

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

.view-more-btn {
    background: transparent;
    border: 2px solid #00d4aa;
    color: #00d4aa;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.view-more-btn:hover {
    background: #00d4aa;
    color: white;
    transform: translateY(-3px);
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 24px;
    color: #00d4aa;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4aa;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-links a:hover {
    background: #00d4aa;
    transform: translateY(-3px);
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #00d4aa;
    width: 16px;
}

.contact-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

/* 页脚底部版权信息 */
.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
}

.copyright-info {
    color: #95a5a6;
    font-size: 14px;
    line-height: 1.8;
}

.copyright-info p {
    margin-bottom: 8px;
}

.icp-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.icp-info a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icp-info a:hover {
    color: #00d4aa;
}

.icp-info i {
    font-size: 12px;
    color: #00d4aa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 8px;
        padding: 10px 20px;
    }

    .contact-info-top {
        gap: 15px;
    }

    .contact-item {
        font-size: 12px;
    }

    .header {
        top: 60px;
    }

    .hero {
        padding: 180px 0 80px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 130px;
        flex-direction: column;
        background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hot-products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .icp-info {
        flex-direction: column;
        gap: 5px;
    }

    .copyright-info {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .welcome-info {
        display: none;
    }

    .top-bar-container {
        justify-content: center;
        padding: 8px 20px;
    }

    .header {
        top: 40px;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .nav-menu {
        top: 110px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-card {
        padding: 20px;
    }

    .products,
    .hot-products {
        padding: 60px 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.hot-product-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00a693 0%, #008a7a 100%);
}