/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    overflow-x: hidden;
    line-height: 1.5;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.btn.primary {
    background-color: #1677ff;
    color: white;
}

.btn.primary:hover {
    background-color: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 106, 0, 0.3);
}

.btn.secondary {
    background-color: #28a745;
    color: white;
}

.btn.secondary:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #1677ff;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 13px;
}

nav ul li a:hover {
    color: #1677ff;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1677ff;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.login-btn .btn {
    background-color: transparent;
    border: 1px solid #1677ff;
    color: #1677ff;
    padding: 5px 10px;
}

.login-btn .btn:hover {
    background-color: #1677ff;
    color: white;
}

/* 主横幅区域 */
.hero {
    padding: 100px 0 5px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.hero .container {
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #212529;
    line-height: 1.2;
    animation: fadeInUp 0.5s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #495057;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.cta-buttons {
    animation: fadeInUp 0.5s ease 0.2s both;
    display: flex;
    justify-content: center;
    gap: 20px
}

.cta-buttons .btn {
    margin: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    font-size: 14px;
}

.hero-image {
    display: none;
}

/* 产品优势 */
.features {
    padding: 30px 0 15px;
    background-color: transparent;
}

.features .container h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    color: #212529;
    position: relative;
}

.features .container h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #1677ff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.feature-item {
    text-align: center;
    padding: 20px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #fff;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1677ff;
}

.feature-item p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}


/* 产品展示 */
.products {
    padding: 50px 0;
    background-color: #f5f7fa;
}

.products .container h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: #212529;
    position: relative;
}

.products .container h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #1677ff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

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

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 120px;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 70%;
    max-height: 70%;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    font-weight: bold;
}

.product-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    color: black;
    margin-bottom: 10px;
}

.product-price span {
    font-size: 23px;
    color: #ff6a00;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.detail-btn, .buy-btn {
    height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.detail-btn {
    background-color: #fff;
    border: 1px solid #1677ff;
    color: #1677ff;
}

.buy-btn {
    background-color: #1677ff;
    border: 1px solid #1677ff;
    color: #fff;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    font-size: 10px;
    padding: 1px 5px;
    background-color: #f0f2f5;
    color: #666;
    border-radius: 2px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag.hot {
    background-color: #fff0e6;
    color: #ff6a00;
}

.tag.new {
    background-color:#fff0e6;
    color: #ff6a00;
}



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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    nav ul {
        margin: 10px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 2px 6px;
    }
    
    .hero {
        padding: 80px 0 5px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .features, .use-cases, .testimonials, .products {
        padding: 40px 0;
    }
    
    .features .container h2,
    .use-cases .container h2,
    .testimonials .container h2,
    .products .container h2 {
        font-size: 22px;
    }
    
    .cta-buttons {
        text-align: center;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 6px auto;
        width: 80%;
        max-width: 250px;
    }
    
    .feature-grid,
    .use-case-grid,
    .product-list,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item,
    .use-case-item,
    .testimonial-item {
        padding: 15px 12px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 70px 0 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .container {
        padding: 0 20px;
    }
}