/* ============================================================
   德鸿精密机械 - 全站样式表
   参考: https://www.a-cnc.com/
   主色调: #0e50be (蓝) / 渐变: #00a350 → #15489e / 橙色: #f18d15
   ============================================================ */

/* ------------------------------------------------------------
   字体定义 - gilroy-extrabold 用于英文标题（含 fallback）
   ------------------------------------------------------------ */
@font-face {
    font-family: 'gilroy-extrabold';
    src: local('Gilroy Extrabold'), local('Gilroy-Extrabold'),
         url('https://fonts.cdnfonts.com/s/56593/Gilroy-Extrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------
   全局重置 - 清除默认边距，统一盒模型
   ------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* body 基础样式：使用系统字体栈，隐藏横向溢出 */
body {
    font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #666;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 链接重置 */
a {
    text-decoration: none;
    color: inherit;
}

/* 列表重置 */
ul, ol {
    list-style: none;
}

/* 图片基础样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------------------
   导航栏 - 默认透明，滚动后变白（关键效果）
   ------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* 滚动后状态：白色背景 + 阴影 + 毛玻璃 */
.header.scrolled {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 导航容器：宽度94%，居中，flex布局 */
.nav-container {
    width: 94%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Logo 默认状态：变白（透明导航栏上显示白色Logo） */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
}

.logo img {
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* 滚动后 Logo 恢复彩色 */
.header.scrolled .logo img {
    filter: none;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

/* 导航项：默认白色文字（透明导航栏），90px行高 */
.nav-menu li a {
    display: block;
    padding: 0 2vw;
    font-size: 16px;
    color: #ffffff;
    line-height: 90px;
    font-family: "PINGFANG MEDIUM", -apple-system, "system-ui", sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

/* 滚动后导航项：深色文字，66px行高 */
.header.scrolled .nav-menu li a {
    color: #333;
    line-height: 66px;
}

/* 透明状态下 hover / active 保持白色，加底部指示线 */
.nav-menu li a:hover,
.nav-menu li a.active {
    color: #ffffff;
}

/* 滚动后 hover / active 变蓝色 */
.header.scrolled .nav-menu li a:hover,
.header.scrolled .nav-menu li a.active {
    color: #0e50be;
}

/* 透明状态下 hover 保持白色，加底部指示线 */
.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #0e50be;
    border-radius: 2px;
}

/* 移动端汉堡按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.header.scrolled .mobile-menu-btn {
    color: #333;
}

/* ------------------------------------------------------------
   Hero / Banner 轮播区
   ------------------------------------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播 slide：绝对定位，透明度切换 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* 轮播遮罩：渐变黑色蒙版 */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* 轮播文字内容 */
.carousel-slide .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 30px;
    animation: fadeInUp 1s ease;
}

/* slide 副标题：大写、字间距 */
.slide-title {
    display: block;
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* 主标题 */
.carousel-slide h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* 副标题描述 */
.carousel-slide p {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

/* 轮播指示点 */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    width: 30px;
    border-radius: 10px;
}

/* 轮播左右箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* 滚动提示 */
.scroll-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* ------------------------------------------------------------
   通用 Section / Container
   ------------------------------------------------------------ */
.section {
    padding: 80px 0;
}

.container {
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 区块标题头部 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 区块副标题（英文） */
.section-subtitle {
    font-family: 'gilroy-extrabold', -apple-system, sans-serif;
    font-size: 14px;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* 区块主标题 */
.section-title {
    font-size: 36px;
    color: #000;
    margin-bottom: 15px;
    font-weight: 700;
}

/* 区块描述文字 */
.section-desc {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   产品分类网格区 - 12个产品，6列布局
   ------------------------------------------------------------ */
.products-section {
    background: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* 产品卡片：白底圆角阴影，hover上移 */
.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 80, 190, 0.2);
}

/* 产品图片容器 */
.product-img {
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 产品图片：contain 保持比例，内边距 */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

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

/* 产品图片底部渐变 */
.product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

/* 产品信息区 */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.product-info p {
    font-size: 14px;
    color: #999;
}

/* ------------------------------------------------------------
   产品详情展示区 - 浅蓝底色 rgb(243, 247, 255)
   ------------------------------------------------------------ */
/* 产品详情所在 section 背景为浅蓝色 */
.section:nth-of-type(3) {
    background: rgb(243, 247, 255);
}

.product-feature {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
}

/* 反向布局（图在左，文在右） */
.product-feature.reverse {
    flex-direction: row-reverse;
}

.product-feature-content {
    flex: 1;
}

/* 产品详情标题 */
.product-feature-content h2 {
    font-family: 'gilroy-extrabold', -apple-system, sans-serif;
    font-size: 30px;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}

.product-feature-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 特性列表 */
.product-feature-content ul {
    margin-bottom: 25px;
}

.product-feature-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 14px;
}

/* 列表项前圆点 - 蓝色 */
.product-feature-content ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #0e50be;
    font-size: 12px;
}

/* 产品详情图片 */
.product-feature-img {
    flex: 1;
    height: 400px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.product-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 15px;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* 主按钮：蓝色 */
.btn-primary {
    background: #409eff;
    color: #fff;
}

.btn-primary:hover {
    background: #0e50be;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 158, 255, 0.4);
}

/* 轮廓按钮：蓝色边框 */
.btn-outline {
    background: transparent;
    color: #409eff;
    border: 1px solid #409eff;
}

.btn-outline:hover {
    background: #409eff;
    color: #fff;
}

/* ------------------------------------------------------------
   关于我们区 - 左图右文
   ------------------------------------------------------------ */
.about-section {
    background: #ffffff;
    padding: 42px 0 83px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 英文副标题 */
.about-subtitle {
    display: block;
    font-family: 'gilroy-extrabold', -apple-system, sans-serif;
    font-size: 14px;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* 关于我们主标题 */
.about-text h2 {
    font-size: 36px;
    color: #000;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text p {
    font-size: 15px;
    color: #666;
    line-height: 2;
    margin-bottom: 20px;
}

/* 关于我们图片 */
.about-image {
    height: 400px;
    background: #f5f5f5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ------------------------------------------------------------
   企业文化 / 产品检测两栏
   ------------------------------------------------------------ */
.culture-section {
    background: #f8f9fa;
    color: #333;
}

/* 企业文化副标题 */
.culture-section .section-subtitle {
    color: #0e50be;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: none;
    font-weight: 600;
}

/* 企业文化主标题 */
.culture-section .section-title {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 400;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 企业文化卡片：白底圆角16px */
.culture-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.culture-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 80, 190, 0.2);
}

/* 企业文化图片：280px高 */
.culture-card > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* 企业文化内容区 */
.culture-card-content {
    padding: 30px;
}

.culture-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.culture-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 企业文化链接 */
.culture-link {
    color: #0e50be;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.culture-link:hover {
    color: #f18d15;
    text-decoration: underline;
}

/* ------------------------------------------------------------
   四大优势区
   ------------------------------------------------------------ */
.advantages-section {
    background: #ffffff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 优势卡片：白底圆角12px */
.advantage-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* hover 上移10px，阴影增大 */
.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 优势图片：180px高 */
.advantage-img {
    height: 180px;
    overflow: hidden;
}

.advantage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.advantage-card:hover .advantage-img img {
    transform: scale(1.08);
}

.advantage-card h3 {
    font-size: 18px;
    color: #333;
    margin: 20px 20px 10px;
}

.advantage-card p {
    font-size: 14px;
    color: #666;
    padding: 0 20px 25px;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   横幅区 - 固定背景 + 半透明遮罩
   ------------------------------------------------------------ */
.banner-section {
    position: relative;
    padding: 100px 0;
    color: white;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* 半透明遮罩 */
.banner-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 100px 0;
    margin: -100px 0;
}

.banner-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.banner-content h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.95;
}

.banner-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ------------------------------------------------------------
   新闻区
   ------------------------------------------------------------ */
.news-section {
    background: #ffffff;
}

/* "Latest News" 英文标题 */
.news-section .section-subtitle {
    font-family: 'gilroy-extrabold', -apple-system, sans-serif;
    font-size: 33px;
    color: transparent;
    background: linear-gradient(90deg, #00a350 0%, #15489e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 2px;
}

/* "新闻资讯" 中文标题 */
.news-section .section-title {
    font-size: 36px;
    color: #000;
    font-weight: 700;
}

/* 新闻头部：标题与标签 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

/* 新闻标签按钮组 */
.news-tabs {
    display: flex;
    gap: 10px;
}

.news-tab {
    padding: 10px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background: #ffffff;
    color: #666;
}

/* 激活/ hover 标签：蓝色 */
.news-tab.active,
.news-tab:hover {
    border-color: #0e50be;
    color: #0e50be;
    background: rgba(14, 80, 190, 0.05);
}

.news-tab.active {
    background: #0e50be;
    color: #fff;
    border-color: #0e50be;
}

/* 查看更多链接 */
.news-more {
    color: #0e50be;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-more:hover {
    color: #f18d15;
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 新闻卡片：白底圆角阴影，hover上移 */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 新闻图片：200px高 */
.news-img {
    height: 200px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* 新闻日期标签 */
.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 6px;
    text-align: center;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
    color: #0e50be;
    display: block;
}

.news-date .month {
    font-size: 12px;
    color: #888;
}

/* 新闻内容区 */
.news-content {
    padding: 20px;
}

/* 新闻标题 */
.news-content h3 {
    font-size: 22px;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 400;
}

/* 新闻摘要 */
.news-content p {
    font-size: 15px;
    color: rgb(136, 136, 136);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/* 了解详细按钮 */
.news-btn {
    display: inline-block;
}

.news-btn img {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.news-btn:hover img {
    transform: translateX(5px);
}

/* ------------------------------------------------------------
   页脚 - 深色背景
   ------------------------------------------------------------ */
.footer {
    background: #0d1b2a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

/* 页脚品牌区 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 页脚 Logo - 白色 */
.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 页脚标题 */
.footer h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

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

.footer ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

/* 链接 hover 变白 */
.footer ul li a:hover {
    color: #fff;
}

/* 页脚联系方式 */
.footer-contact li {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* 电话号码：深蓝色，arial 字体 */
.footer-contact li:nth-child(2) {
    font-size: 20px;
    font-family: arial, sans-serif;
    color: rgb(50, 79, 187);
}

/* 页脚二维码：120x120，白色圆角背景 */
.footer-qrcode {
    margin-top: 20px;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
}

/* 页脚底部版权区 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ------------------------------------------------------------
   侧边浮窗 - 固定右侧，渐变背景
   ------------------------------------------------------------ */
.sidebar-tools {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

/* 侧边按钮：圆形，蓝色渐变背景，白色图标 */
.sidebar-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #00a350 0%, #15489e 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
}

/* hover 变橙色 */
.sidebar-btn:hover {
    background: #f18d15;
    color: #fff;
    transform: translateX(-5px);
}

/* ------------------------------------------------------------
   搜索按钮（预留样式）
   ------------------------------------------------------------ */
.search-btn {
    width: 42px;
    height: 42px;
    border-radius: 25px;
    background: linear-gradient(90deg, #00a350 0%, #15489e 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.6s ease;
}

.search-btn:hover {
    background: #f18d15;
}

/* ------------------------------------------------------------
   内页通用 - 页面头部 / 面包屑
   ------------------------------------------------------------ */
.page-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a1a2e 50%, #0e50be 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.8;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.breadcrumb a:hover {
    color: #0e50be;
}

.breadcrumb span {
    color: #0e50be;
}

/* ------------------------------------------------------------
   产品列表页 - 侧边栏 + 内容区
   ------------------------------------------------------------ */
.pro-list-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* 侧边栏 */
.sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0e50be;
}

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

.sidebar ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: linear-gradient(90deg, #00a350 0%, #15489e 100%);
    color: #fff;
}

/* 产品列表内容网格 */
.pro-list-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ------------------------------------------------------------
   产品详情页
   ------------------------------------------------------------ */
.pro-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.pro-detail-img {
    height: 400px;
    background: #f5f5f5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pro-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.pro-detail-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.pro-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #888;
}

.pro-detail-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* 产品规格表 */
.pro-specs {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
}

.pro-specs h2 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0e50be;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.specs-table th {
    background: #f0f2f5;
    font-weight: 600;
    color: #333;
}

.specs-table tr:hover {
    background: #f8f9fa;
}

/* ------------------------------------------------------------
   联系我们页
   ------------------------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 联系信息区：蓝色渐变背景 */
.contact-info {
    background: linear-gradient(135deg, #0e50be 0%, #15489e 100%);
    padding: 50px;
    border-radius: 16px;
    color: white;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* 联系表单 */
.contact-form {
    background: #ffffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

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

/* ------------------------------------------------------------
   新闻列表页
   ------------------------------------------------------------ */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-item-img {
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-body {
    padding: 25px;
}

/* 新闻日期 - Microsoft JhengHei 字体 */
.news-item-body .date {
    font-size: 14px;
    color: rgb(87, 87, 87);
    font-family: "Microsoft JhengHei", sans-serif;
    margin-bottom: 10px;
}

.news-item-body h3 {
    font-size: 22px;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 400;
}

.news-item-body p {
    font-size: 15px;
    color: rgb(136, 136, 136);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* "了解详细" 链接 - 深蓝色 */
.news-item-body .more {
    color: rgb(4, 38, 160);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-item-body .more:hover {
    color: #0e50be;
    text-decoration: underline;
}

/* ------------------------------------------------------------
   分页样式
   ------------------------------------------------------------ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

/* 分页按钮 */
.page_a,
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8a8a8a;
    border: 1px solid #ebebeb;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.page_a:hover,
.pagination a:hover {
    color: #409eff;
    border-color: #409eff;
}

/* 当前页 - 蓝色背景 */
.page_a.current,
.pagination .active {
    background: #0e50be;
    color: #fff;
    border-color: #0e50be;
}

/* ------------------------------------------------------------
   新闻详情页
   ------------------------------------------------------------ */
.news-detail {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-detail-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #333;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #888;
}

.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-body h2 {
    font-size: 24px;
    margin: 30px 0 20px;
}

.news-detail-body h3 {
    font-size: 20px;
    margin: 25px 0 15px;
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.news-detail-body ul li {
    margin-bottom: 10px;
    list-style: disc;
}

/* 相关新闻 */
.news-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.news-related h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #f0f2f5;
}

.related-item-img {
    width: 80px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.related-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
    color: #333;
}

.related-item-info span {
    font-size: 12px;
    color: #999;
}

/* ------------------------------------------------------------
   动画定义
   ------------------------------------------------------------ */

/* 淡入上移动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹跳动画（滚动提示） */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* 滚动触发淡入效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   响应式 - 断点 1200px / 992px / 768px
   ------------------------------------------------------------ */

/* 1200px - 1440px：导航字体16px，logo 200px */
@media (max-width: 1440px) {
    .nav-menu li a {
        font-size: 16px;
        padding: 0 1.5vw;
    }

    .logo img {
        max-width: 200px;
    }
}

/* 1200px 断点 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-menu li a {
        padding: 0 1vw;
        font-size: 15px;
    }
}

/* 992px 断点 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 产品详情变单列 */
    .product-feature,
    .product-feature.reverse {
        flex-direction: column;
    }

    .about-content,
    .pro-detail,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-list-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .carousel-slide h1 {
        font-size: 36px;
    }
}

/* 768px 断点 - 移动端 */
@media (max-width: 768px) {
    /* 导航变白色背景，汉堡菜单 */
    .header {
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header .logo img {
        filter: none;
    }

    .header .nav-menu li a {
        color: #333;
        line-height: 50px;
    }

    .header .mobile-menu-btn {
        color: #333;
    }

    .nav-container {
        height: 66px;
    }

    /* 导航菜单变汉堡下拉 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 12px 0;
        line-height: 1.6;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* 网格变单列 */
    .products-grid,
    .advantages-grid,
    .news-grid,
    .news-list,
    .pro-list-content {
        grid-template-columns: 1fr;
    }

    /* section padding 减少 */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .news-section .section-subtitle {
        font-size: 24px;
    }

    /* banner 标题 22px */
    .banner-content h2 {
        font-size: 22px;
    }

    .banner-content h3 {
        font-size: 18px;
    }

    .banner-content p {
        font-size: 14px;
    }

    /* hero 标题缩小 */
    .carousel-slide h1 {
        font-size: 22px;
    }

    .carousel-slide p {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .slide-title {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .related-list {
        grid-template-columns: 1fr;
    }

    /* 图片高度缩小 */
    .pro-detail-img,
    .product-feature-img,
    .about-image {
        height: 250px;
    }

    .contact-info,
    .contact-form {
        padding: 30px;
    }

    .specs-table {
        font-size: 12px;
    }

    .specs-table th,
    .specs-table td {
        padding: 8px 10px;
    }

    /* 产品详情标题缩小 */
    .product-feature-content h2 {
        font-size: 24px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    /* 侧边浮窗缩小 */
    .sidebar-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .sidebar-tools {
        right: 10px;
        bottom: 80px;
    }

    /* banner 关闭固定背景（移动端性能） */
    .banner-section {
        background-attachment: scroll;
    }
}
