/* --- 全局变量与重置 --- */
:root {
    --primary-blue: #1e3a8a; 
    --accent-orange: #f97316; 
    --text-main: #334155; 
    --text-light: #64748b; 
    --bg-light: #f4f7fb; 
    --white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', "Microsoft YaHei", sans-serif; }
body { color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 公共组件 */
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 3rem; color: var(--primary); font-weight: 700; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--accent); margin: 15px auto; }
.section-desc { text-align: center; color: #666; margin-top: -2rem; margin-bottom: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }

/* 通用按钮样式 */
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: bold; cursor: pointer; border: none; text-align: center; }
.btn-orange { background: var(--accent-orange); color: var(--white); padding: 10px 24px; border-radius: 4px; display: inline-block; font-weight: bold; transition: 0.3s; border: none; cursor: pointer; }
.btn-orange:hover { background: #ea580c; }
.btn-outline { border: 1px solid var(--primary-blue); color: var(--primary-blue); padding: 10px 24px; border-radius: 4px; display: inline-block; transition: 0.3s; background: transparent; cursor: pointer;}
.btn-outline:hover { background: var(--primary-blue); color: var(--white); }

/* --- 公用组件：页头导航 --- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.brand { display: flex; align-items: center; gap: 15px; }
.brand img { height: 48px; width: auto; }
.brand-text h1 { font-size: 18px; color: #0f172a; line-height: 1.2; }
.brand-text p { font-size: 11px; color: var(--text-light); text-transform: uppercase; }

header { background: var(--white); height: 85px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { color: var(--text-main); font-weight: 500; font-size: 18px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-blue); }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 2rem; color: var(--primary); }
.logo-icon img { display: block; transition: transform 0.3s ease;}
.logo-icon img:hover { transform: scale(1.05); /* 鼠标悬停略微放大，增加交互感 */}
.logo-text h1 { font-size: 1.2rem; color: var(--primary); }
.logo-text small { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.nav-desktop ul { display: flex; gap: 25px; }
.nav-desktop a { color: var(--dark); font-weight: 600; }
.nav-desktop a:hover { color: var(--primary); }
.phone-link { color: var(--primary); font-weight: 700; margin-right: 15px; }
.btn-quote { background: var(--accent); color: var(--white); padding: 10px 22px; border-radius: 5px; font-weight: 600; box-shadow: 0 4px 10px rgba(255,102,0,0.2); }
.btn-quote:hover { background: #e65c00; transform: scale(1.05); }

/* 英雄区 */
.hero { height: 75vh; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/nav01.png') center/cover; display: flex; align-items: center; color: var(--white); text-align: center; }
.hero h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero p { font-size: 1.4rem; margin-bottom: 2.5rem; opacity: 0.9; }
.btn-main { background: var(--primary); color: white; padding: 15px 35px; border-radius: 4px; font-size: 1.1rem; margin-right: 15px; }
.btn-orange1 { border: 2px solid white; color: white; padding: 13px 33px; border-radius: 4px; font-size: 1.1rem; }
.btn-outline1 { border: 2px solid white; color: white; padding: 13px 33px; border-radius: 4px; font-size: 1.1rem; }

/* 关于新华 */
.about-section { padding: 80px 0; }
.about-grid { display: flex; gap: 50px; align-items: center; }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.about-text { flex: 1; }
.about-text h2 { font-size: 28px; color: var(--primary-blue); margin-bottom: 20px; }
.about-text p { color: var(--text-main); margin-bottom: 25px; text-align: justify; }
		
/* 产品区 */
.products-section { padding: 80px 0; background: var(--bg-light); text-align: center; }
.section-title { font-size: 28px; color: var(--primary-blue); margin-bottom: 40px; font-weight: 600; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }

.product-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: left;}
.product-img { background: #e2e8f0; height: 220px; padding: 15px; display: flex; align-items: center; justify-content: center; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 16px; color: var(--text-main); margin-bottom: 5px; }
.product-info p { font-size: 13px; color: var(--text-light); }
		
/* 应用领域 */
.features-wrapper { padding: 80px 0; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }

.app-item i { font-size: 40px; color: var(--primary-blue); margin-bottom: 15px; }
.app-item h4 { font-size: 18px; margin-bottom: 5px; }
.app-item p { font-size: 13px; color: var(--text-light); }

.why-item i { font-size: 40px; color: var(--primary-blue); margin-bottom: 15px; }
.why-item h4 { font-size: 18px; }
.why-item p { font-size: 13px; color: var(--text-light); }

/* 优势区 */
.why { padding: 100px 0; background: var(--dark); text-align: center; }
.white-text { color: var(--white); }
.why-card { padding: 30px; }
.why-icon { width: 70px; height: 70px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; color: var(--accent); transition: 0.3s; }
.why-card h4 { color: var(--white); margin-bottom: 15px; }
.why-card p { color: #bdc3c7; font-size: 0.95rem; }
.why-card:hover .why-icon { background: var(--accent); color: white; transform: rotateY(360deg); }

/* 询单 */
.form-card { background: var(--white); padding: 30px; border-radius: 8px; color: var(--text-main); width: 80%; margin-left: auto; }
.form-card h3 { margin-bottom: 20px; font-size: 18px; border-left: 3px solid var(--primary-blue); padding-left: 10px; }
.form-card input, .form-card textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #cbd5e1; border-radius: 4px; font-family: inherit; }
.form-card .btn-submit { background: var(--primary-blue); color: var(--white); border: none; padding: 10px; width: 100%; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* 左侧分类侧边栏 */
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar-widget { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.widget-title { background: var(--bg-light); color: var(--primary-blue); padding: 15px 20px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.category-list li { border-bottom: 1px solid var(--border-color); }
.category-list li:last-child { border-bottom: none; }
.category-list a { display: flex; justify-content: space-between; padding: 12px 20px; color: var(--text-main); transition: all 0.3s; font-size: 15px; }
.category-list a:hover, .category-list a.active { background: var(--primary-blue); color: var(--white); padding-left: 25px; }

.contact-widget { background: var(--primary-blue); color: var(--white); padding: 20px; border-radius: 8px; text-align: center; }
.contact-widget h3 { margin-bottom: 15px; font-size: 18px; }
.contact-widget p { font-size: 14px; margin-bottom: 10px; color: #cbd5e1; }
.contact-widget .tel { font-size: 20px; font-weight: bold; color: var(--accent-orange); margin-bottom: 15px; display: block; }

/* 分页控件 */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination a { padding: 8px 15px; border: 1px solid var(--border-color); color: var(--text-main); border-radius: 4px; transition: 0.3s; }
.pagination a.active, .pagination a:hover { background: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }

/* 页脚 */
footer { background: #111; color: #999; padding: 80px 0 0; }
.grid-footer { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr; gap: 50px; padding-bottom: 50px; }
footer h4 { color: white; margin-bottom: 25px; border-left: 4px solid var(--primary); padding-left: 15px; }
.f-contact p { margin-bottom: 15px; font-size: 0.9rem; }
.f-form input, .f-form textarea { width: 100%; padding: 12px; margin-bottom: 10px; background: #222; border: 1px solid #333; color: white; border-radius: 4px; }
.btn-submit { width: 100%; padding: 12px; background: var(--primary); border: none; color: white; cursor: pointer; font-weight: 700; border-radius: 4px; }
.bottom-bar { text-align: center; padding: 25px; border-top: 1px solid #222; font-size: 0.8rem; }

/* --- 公用组件：页脚 --- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer h4 { color: var(--white); margin-bottom: 20px; font-size: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent-orange); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 14px; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }


.copyright1 { text-align: center; border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px; font-size: 12px; }
.copyright1 a { color:  #94a3b8; }
.copyright1 a:hover { color:  #94a3b8; }
.copyright { background: #1a2c4e; color: #cbd5e1; padding: 20px 0; text-align: center;  border-top: 1px solid #1e293b; font-size: 12px; }
.copyright a { color:  #94a3b8; }
.copyright a:hover { color:  #94a3b8; }


/* 基础样式 */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.site-logo img {
    height: 45px; /* PC端Logo高度 */
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #0056b3; /* 假设公司主色调为蓝色 */
}

/* 手机端样式重构 */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px; /* 缩小内边距 */
    }

    .site-logo img {
        height: 35px; /* 手机端缩小Logo，防止占据过多垂直空间 */
    }

    /* 初始隐藏导航列表 */
    .nav-menu {
        position: fixed;
        top: 60px; /* 对应Header高度 */
        left: -100%; /* 默认隐藏在左侧屏幕外 */
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - 60px);
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    /* 菜单激活状态 */
    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li a {
        display: block;
        padding: 20px;
    }

    /* 显示汉堡按钮 */
    .menu-toggle {
        display: block;
        cursor: pointer;
        background: none;
        border: none;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #333;
        transition: 0.3s;
    }
}


/* 响应式调整 */
@media (max-width: 768px) {
    .nav-desktop, .header-action { display: none; }
    .hero h2 { font-size: 2.2rem; }
    .grid-footer { grid-template-columns: 1fr; gap: 30px; }
}

/* 进场动画类 */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }