/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', '微软雅黑', sans-serif;
}
.target-element {
  width: 100%;   /* 宽度撑满父容器 */
}
body {
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
    margin: 0;     /* 重置 body 的默认外边距 */
    padding: 0;    /* 重置 body 的默认内边距 */
}

.container {
    padding: 0 20px; /* 父容器有左右内边距 */
    max-width: 1200px;
    margin: 0 auto;
}
h1{
    margin-left: -190px;
    margin-top: 25px;
    margin-bottom: 20px;
}
.yzwrj-title{
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
}
.product-image1{
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0,46,109,0.08);
    position: relative;
    min-height: 400px;
    margin-top: 50px;
    width: 657px;
    background-size: cover;
}
/* 产品主图区域 */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.product-image{
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0,46,109,0.08);
    position: relative;
    min-height: 400px;
    width: 657px;
    background-image: url(../../images/UAV/清洁机器人.png);
    background-size: cover;
}


.product-image::after {
    content: "产品示意图";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #64748b;
    font-size: 0.9rem;
}

/* 核心参数展示 */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.spec-card {
    background: rgba(255,255,255,0.97);
    border-radius: 15px;
    padding: 30px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 6px 20px rgba(0,46,109,0.05);
}

.spec-card h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.spec-item {
    margin: 12px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.spec-label {
    color: #64748b;
    font-weight: 500;
}

.spec-value {
    margin-top:10px;
    line-height: 25px;
    color: #1e3a8a;
    font-weight: 600;
}

/* 技术参数区块 */
.tech-specs {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0,46,109,0.08);
    margin-bottom: 60px;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.param-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.param-table tr:last-child td {
    border-bottom: none;
}

.param-category {
    color: #3b82f6;
    font-weight: 600;
    width: 200px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        width: 100%;
        min-height: 300px;
    }

    h1 {
        margin-left: 0;
        text-align: center;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .tech-specs {
        padding: 20px;
    }

    .param-table td {
        padding: 10px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-section {
        gap: 30px;
    }

    .product-image {
        width: 100%;
    }

    h1 {
        margin-left: -100px;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 确保图片在各种设备上都能正确显示 */
.product-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 优化表格在小屏幕上的显示 */
@media (max-width: 576px) {
    .param-table {
        display: block;
        overflow-x: auto;
    }
    
    .param-table td {
        min-width: 120px;
    }
}