/* =========================================
   0. 引入阿里巴巴普惠体 / 思源黑体 (免费可商用)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* =========================================
   1. 基础样式重置
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Alibaba PuHuiTi", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. 现代毛玻璃导航栏
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: background 0.3s;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a1a2e !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #333 !important;
    margin-left: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #0056b3 !important; /* 工业蓝 */
}

/* =========================================
   3. 首页 Hero 区域 (工业科技风)
   ========================================= */
.hero-banner {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

/* 背景光晕动画 */
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%);
    animation: pulse 10s ease-in-out infinite;
    pointer-events: none; /* 关键：光晕层不拦截点击，否则会挡住 Hero 区域内的按钮 */
}

/* Hero 区内容整体置于光晕层之上，保证按钮可点击 */
.hero-banner .container {
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-banner h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.hero-banner p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* =========================================
   4. 通用容器与排版
   ========================================= */
.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    position: relative;
    color: #1a1a2e;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #0056b3;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   5. 核心竞争力板块
   ========================================= */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.feature-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-8px);
}

.feature-card h5 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.25em;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.7;
}

/* =========================================
   6. 产品板块 (现代网格卡片)
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

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

/* 统一产品图片比例 */
.product-img, .card-img-top {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    background-color: #fff;
    padding: 12px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    margin-bottom: 12px;
    font-size: 1.2em;
    color: #1a1a2e;
    font-weight: 600;
}

.product-info p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-footer {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 15px 25px 25px;
    text-align: center;
}

/* 详情页大图 */
#product-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================================
   7. 页面通用标题头
   ========================================= */
.page-header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.8em;
    margin: 0;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1em;
    opacity: 0.8;
    margin-top: 10px;
}

/* =========================================
   8. 关于我们
   ========================================= */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 18px;
    text-align: justify;
    color: #555;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* =========================================
   9. 联系我们
   ========================================= */
.contact-info {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
}

.contact-info ul li {
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
    color: #555;
}

.contact-info ul li:last-child {
    border-bottom: none;
}

/* =========================================
   10. 现代页脚
   ========================================= */
footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
}

/* =========================================
   11. 按钮样式统一
   ========================================= */
.btn-danger, .btn-outline-danger {
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-danger:hover {
    background: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,86,179,0.3);
}

.btn-outline-danger {
    color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-danger:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* =========================================
   12. 产品中心：分类筛选与系列标题
   ========================================= */
.product-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    border: 1px solid #0056b3;
    color: #0056b3;
    background: #fff;
    border-radius: 25px;
    padding: 8px 24px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(0, 86, 179, 0.08);
}

.filter-btn.active {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.25);
}

.series-title {
    border-left: 5px solid #0056b3;
    padding-left: 15px;
    color: #1a1a2e;
    font-weight: 600;
}

.product-img-link {
    display: block;
    overflow: hidden;
}

/* 详情页标题（覆盖通用 h2 居中样式） */
.detail-title {
    text-align: left;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.detail-title::after {
    display: none;
}

/* 详情页搭配外机卡片图片比例 */
#product-detail-box .product-img {
    height: 220px;
    object-fit: contain;
    padding: 10px;
}