/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ===== 通用组件 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: #FFF;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.section-header.light .section-title {
    color: #FFF;
}

.section-title i {
    font-size: 2.2rem;
    color: #FF6F00;
}

.subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.section-header.light .subtitle {
    color: #F5F5F5;
}

.section-desc {
    font-size: 1.1rem;
    color: #757575;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header.light .section-desc {
    color: #F5F5F5;
}

/* ===== 主横幅区域 ===== */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(21, 101, 192, 0.6));
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFF;
    z-index: 2;
}

.banner-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #FFF, #FF6F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInSlide 1.2s ease-out;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    animation: fadeInSlide 1.2s ease-out 0.2s both;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #FF6F00, #EF6C00);
    color: #FFF;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.4);
    transition: all 0.3s ease;
    animation: fadeInSlide 1.2s ease-out 0.4s both;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 111, 0, 0.6);
    background: linear-gradient(45deg, #EF6C00, #FF6F00);
}

/* ===== 产品展示区域 ===== */
.featured-products {
    padding: 100px 0;
    background: #F5F5F5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #FFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.9);
    color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.product-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-name a:hover {
    color: #1E3A8A;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6F00;
}

.original-price {
    font-size: 1rem;
    color: #757575;
    text-decoration: line-through;
}

.product-store {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #757575;
    font-size: 0.9rem;
}

/* ===== 传感器专区 ===== */
.sensor-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.sensor-section .container {
    position: relative;
    z-index: 3;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7), rgba(21, 101, 192, 0.6));
    z-index: 2;
}

.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card-alt {
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.product-card-alt:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.product-card-alt .product-image {
    height: 200px;
}

.product-card-alt .product-info {
    padding: 20px;
    color: #FFF;
}

.product-card-alt .product-name a {
    color: #FFF;
}

.product-card-alt .product-name a:hover {
    color: #FF6F00;
}

/* ===== 工具专区 ===== */
.tools-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tool-card {
    background: #FFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    transition: all 0.3s ease;
}

.tool-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.tool-image {
    flex: 0 0 150px;
    height: 120px;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.tool-name a:hover {
    color: #1E3A8A;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1E3A8A;
    color: #FFF;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.tool-btn:hover {
    background: #FF6F00;
    transform: translateX(5px);
}

/* ===== 电子模块专区 ===== */
.modules-section {
    padding: 100px 0;
    background: #F5F5F5;
}

.modules-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.module-item {
    background: #FFF;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
    transition: all 0.3s ease;
}

.module-item:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: translateX(10px);
}

.module-image {
    width: 150px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.module-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.module-name a:hover {
    color: #1E3A8A;
}

.module-price .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FF6F00;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #26A69A, #00ACC1);
    color: #FFF;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.view-btn:hover {
    background: linear-gradient(45deg, #00ACC1, #26A69A);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(38, 166, 154, 0.3);
}

/* ===== 服务优势区域 ===== */
.advantages-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1E3A8A, #1565C0);
    color: #FFF;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #FF6F00, #EF6C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #FFF;
}

.advantage-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #F5F5F5;
    line-height: 1.6;
}

/* ===== 通用按钮样式 ===== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #FF6F00, #EF6C00);
    color: #FFF;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 111, 0, 0.5);
}

.cta-btn.outline {
    background: transparent;
    border: 2px solid #FF6F00;
    color: #FF6F00;
    box-shadow: none;
}

.cta-btn.outline:hover {
    background: #FF6F00;
    color: #FFF;
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.3);
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .banner-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .module-item {
        grid-template-columns: 120px 1fr;
        gap: 20px;
        padding: 25px;
    }
    
    .module-image {
        width: 120px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 70vh;
        min-height: 500px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .featured-products,
    .sensor-section,
    .tools-section,
    .modules-section,
    .advantages-section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        flex-direction: column;
    }
    
    .tool-image {
        flex: none;
        height: 200px;
    }
    
    .module-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .module-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .tool-card,
    .module-item {
        border-radius: 10px;
        padding: 20px;
    }
    
    .advantage-card {
        padding: 30px 15px;
    }
}

/* ===== 加载动画 ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #1E3A8A, #FF6F00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #FF6F00, #1E3A8A);
}
