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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-logo .site-title {
    font-size: 24px;
    font-weight: bold;
    margin-left: 8px;
    line-height: 1;
    display: inline-block;
    color: #2c5aa0;
}
.nav-logo i { vertical-align: middle; }
.nav-logo .site-title { vertical-align: middle; }

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 28px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主横幅区域 */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1740px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* 设备模型 */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
}

.device-mockup {
    width: 300px;
    height: 400px;
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border-radius: 20px;
    box-shadow: 
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

.device-screen {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 80px;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
}

.screen-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.data-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric {
    text-align: center;
    color: #00ff88;
    font-family: 'Courier New', monospace;
}

.metric .value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.metric .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 产品特性区域 */
.features {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* 检测指标区域 */
.metrics {
    padding: 60px 0;
    background: white;
}

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

.metric-category {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.metric-category h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.metric-category h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    margin-right: 15px;
}

.metric-category ul {
    list-style: none;
}

.metric-category li {
    padding: 10px 0;
    color: #555;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.metric-category li:hover {
    color: #667eea;
}

.metric-category li i {
    color: #28a745;
    margin-right: 15px;
    font-size: 0.9rem;
}

/* 技术规格区域 */
.specifications {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.specs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.specs-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-3d {
    width: 250px;
    height: 300px;
    perspective: 1000px;
}

.device-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 20px;
    box-shadow: 
        20px 20px 60px #d1d1d1,
        -20px -20px 60px #ffffff;
    transform: rotateY(-20deg) rotateX(10deg);
    position: relative;
    animation: rotate3d 8s ease-in-out infinite;
}

.device-display {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 10px;
}

.device-sensors {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 40px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px;
    opacity: 0.8;
}

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

.spec-group h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.spec-label {
    font-weight: 600;
    color: #555;
}

.spec-value {
    color: #333;
    font-weight: 500;
}

/* 应用场景区域 */
.applications {
    padding: 60px 0;
    background: white;
}

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

.application-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.application-card:hover::before {
    opacity: 0.9;
}

.application-card:hover {
    transform: translateY(-10px);
    color: white;
}

.application-card:hover .app-icon {
    color: white;
}

.app-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.application-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.application-card p {
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* 联系我们区域 */
.contact {
    padding: 60px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 公司介绍左栏：使图标与多行文本顶部对齐，避免垂直居中导致的视觉错位 */
.contact-info .contact-item {
    align-items: flex-start;
}
.contact-info .contact-item i {
    margin-top: 2px; /* 细微上移，光学对齐标题基线 */
}

.contact-item i {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;            /* 固定为 60x60，不随父级拉伸 */
    aspect-ratio: 1 / 1;       /* 强制正方形比例（新浏览器） */
    line-height: 60px;         /* 与高度一致，避免行高影响 */
    padding: 0;                /* 防止内边距导致变形 */
    overflow: hidden;          /* 防止内部内容撑破形状 */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: #667eea;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #667eea;
}

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

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

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

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

/* 页脚电话样式，与页脚配色保持一致 */
.footer-phone {
    margin-top: 8px;
}
.footer-phone a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.footer-phone a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bbb;
}

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

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

@keyframes float {
    0%, 100% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-20px);
    }
}

@keyframes rotate3d {
    0%, 100% {
        transform: rotateY(-20deg) rotateX(10deg);
    }
    50% {
        transform: rotateY(-10deg) rotateX(5deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        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;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .device-mockup {
        width: 250px;
        height: 320px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* 全局段落字体统一设置 */
:root {
    --p-font-size: 20px;
}
p {
    font-size: var(--p-font-size) !important;
}

/* ====== 以下为从页面抽取的通用样式类 ====== */
/* 导航 Logo 图片 */
.nav-logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: inline-block;
    object-fit: contain;
}

/* Hero 顶部 Banner 的轻量化样式 */
.hero.hero--banner {
    padding: 0;
    background: transparent;
    min-height: 0;
}
.banner-wrapper {
    max-width: 1990px;
    height: 450px;
    margin: 70px auto 0;
    position: relative;
    overflow: hidden;
}
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 特性区媒体容器与图片 */
.feature-media { margin: 0 0 20px 0; }
.media-wrap { position: relative; display: inline-block; }
.feature-img {
    width: 450px;
    height: 650px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* 图片角标（左上角） */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}
.badge--orange { background: linear-gradient(135deg,#ff7e5f,#feb47b); }
.badge--purple { background: linear-gradient(135deg,#667eea,#764ba2); }
.badge--green  { background: linear-gradient(135deg,#00b09b,#96c93d); }

/* 右下角 CTA 咨询按钮 */
.cta-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-block;
    background: linear-gradient(135deg,#2c5aa0,#4e89ff);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 26px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

/* metrics 内层统一上下留白 */
.metrics-inner { padding: 40px 0; }
.metrics-img {
    width: 1754px;
    height: 6527px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* 联系我们右侧面板与品牌图尺寸 */
.contact-form-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.brand-image {
    width: 660px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.figure-full {
    width: 100%;
    margin: 0 0 20px 0;
}

/* 工具类：小间距 */
.mt-6 { margin-top: 6px; }

/* 页脚 Logo 图片尺寸与间距 */
.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

/* 导航菜单字号统一（可替代内联设置） */
.nav-menu { font-size: 20px; }

/* 案例图片尺寸（用户展示区） */
.case-img {
    width: 450px;
    height: 300px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* 联系我们左侧：无背景无阴影的条目 */
.contact-item-plain {
    background: transparent;
    box-shadow: none;
}

/* 带圆点的列表（联系模块内的资质列表） */
.list-bulleted {
    margin-top: 8px;
    color: #555;
    line-height: 1.8;
    list-style: disc;
    padding-left: 18px;
}
