/* ===== 基础与变量 (基于新品牌色) ===== */
:root {
    --yzg-primary-blue: #007fcc;      /* 主品牌蓝 */
    --yzg-primary-blue-dark: #0066a6; /* 深蓝 */
    --yzg-secondary-orange: #f18200;  /* 强调橙 */
    --yzg-secondary-orange-dark: #d17100; /* 深橙 */
    --yzg-secondary-color: #2c3e50;   /* 深灰蓝 */
    --yzg-light-bg: #f8f9fa;          /* 浅背景 */
    --yzg-card-bg: #ffffff;           /* 卡片背景 */
    --yzg-text-dark: #333333;         /* 深文字 */
    --yzg-text-light: #666666;        /* 浅文字 */
    --yzg-border-color: #eaeaea;      /* 边框色 */
    --yzg-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --yzg-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
    --yzg-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--yzg-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.yzg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.yzg-section {
    padding: 70px 0;
}

.yzg-section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.yzg-section-title h2 {
    font-size: 2.5rem;
    color: var(--yzg-secondary-color);
    margin-bottom: 15px;
}

.yzg-section-title .yzg-divider {
    width: 80px;
    height: 4px;
    background-color: var(--yzg-primary-blue);
    margin: 0 auto;
    border-radius: 2px;
}

.yzg-section-title p {
    color: var(--yzg-text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 15px auto 0;
}

.yzg-btn {   /* 按钮 */
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--yzg-primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--yzg-transition);
    border: none;
    cursor: pointer;
}

.yzg-btn:hover {
    background-color: var(--yzg-primary-blue-dark);
    color: var(--yzg-text-dark);  
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 127, 204, 0.3);
}
		
.yzg-btn:focus,
.yzg-btn:active {
    color: white;   
}

/* ===== 导航栏 ===== */
.yzg-header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
}

.yzg-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yzg-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo方块 */
.yzg-logo-placeholder {
    width: 164px;
    height: 58px;
    background-color: var(--yzg-primary-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 3px 10px rgba(0, 127, 204, 0.2);
}

.yzg-logo-slogan {
    font-size: 0.9rem;
    color: var(--yzg-text-light);
    font-style: italic;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

/* 主导航 */
.yzg-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.yzg-nav li {
    margin-left: 28px;
    position: relative;
}

.yzg-nav a {
    text-decoration: none;
    color: var(--yzg-secondary-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--yzg-transition);
    padding: 5px 0;
    position: relative;
}

.yzg-nav a:hover {
    color: var(--yzg-primary-blue);
}

.yzg-nav a.yzg-active {
    color: var(--yzg-primary-blue);
}

.yzg-nav a.yzg-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--yzg-primary-blue);
}

.yzg-dropdown.yzg-active .dropdown-toggle i { /*展开按钮 */
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* 产品中心下拉菜单 - 上下两组，每组三列 */
.yzg-dropdown {
    position: relative;
}
		
.yzg-dropdown::after {




    content: '';
    position: absolute;
    bottom: -10px;        /* 向下延伸 10px 的透明桥梁 */
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
    pointer-events: none; /* 让鼠标可以穿透点击到下拉菜单 */
}

.yzg-dropdown:hover::after {
    pointer-events: auto; /* 悬停时阻止穿透，保持父元素悬停状态？实际可能需要调整 */
}		

.yzg-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 800px; /* 增加宽度以容纳两组三列 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0; /* 修改为从按钮左侧开始展开 */
    padding: 0;
    border: 1px solid var(--yzg-border-color);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.yzg-dropdown:hover .yzg-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(5px);
}

/* 下拉菜单组样式 */
.yzg-dropdown-group {
    padding: 20px 25px;
}

.yzg-dropdown-group:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.yzg-dropdown-group p {
    color: var(--yzg-primary-blue);
    font-size: 1rem; /* 调小一号 */
    font-weight: 600; /* 取消加粗，改为半粗体 */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 127, 204, 0.2);
}

/* 三列布局 */
.yzg-dropdown-columns {
    display: flex;
    justify-content: space-between;
}

.yzg-dropdown-column {
    flex: 1;
    padding: 0 10px;
}

.yzg-dropdown-content a {
    color: var(--yzg-text-dark);
    padding: 10px 8px; /* 调整内边距 */
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem; /* 调小一号 */
    font-weight: 400; /* 取消加粗 */
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

.yzg-dropdown-content a:hover {
    color: var(--yzg-primary-blue);
    background-color: rgba(0, 127, 204, 0.05);
}

.yzg-dropdown-content a i {
    margin-right: 10px; /* 调整图标与文字的间距 */
    color: var(--yzg-primary-blue);
    width: 16px; /* 图标宽度调小 */
    text-align: center;
    font-size: 0.9rem; /* 图标大小调小 */
    opacity: 0.8;
}

/* 右侧联系方式与语言切换 */
.yzg-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.yzg-header-phone {
    display: flex;
    align-items: center;
    color: var(--yzg-primary-blue-dark);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--yzg-transition);
}

.yzg-header-phone i {
    margin-right: 8px;
    color: var(--yzg-primary-blue);
}

.yzg-header-phone:hover {
    color: var(--yzg-secondary-orange);
}

.yzg-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yzg-lang-btn {
    background: none;
    border: none;
    color: var(--yzg-text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--yzg-transition);
}

.yzg-lang-btn:hover {
    color: var(--yzg-primary-blue);
    background-color: rgba(0, 127, 204, 0.1);
}

.yzg-lang-btn.yzg-active {
    color: var(--yzg-primary-blue);
    font-weight: 600;
    background-color: rgba(0, 127, 204, 0.1);
}

.yzg-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--yzg-primary-blue);
    cursor: pointer;
}

/* ===== 页脚 ===== */
.yzg-footer {
    background-color: var(--yzg-primary-blue-dark);
    color: #d0d7e0;
    padding: 60px 0 0px;
}

.yzg-footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.yzg-footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 30px;
}

.yzg-footer-column h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yzg-secondary-orange);
}

.yzg-footer-column ul {
    list-style: none;
}

.yzg-footer-column li {
    margin-bottom: 12px;
}

.yzg-footer-column a {
    color: #d0d7e0;
    text-decoration: none;
    transition: var(--yzg-transition);
}


.yzg-footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.yzg-contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.yzg-contact-info i {
    color: var(--yzg-secondary-orange);
    margin-right: 10px;
    margin-top: 5px;
}

.yzg-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-color: white;
}

/* 页脚产品中心两列布局 */
.yzg-footer-product-columns {
    display: flex;
    gap: 30px;
}

.yzg-footer-product-column {
    flex: 1;
}

.yzg-footer-product-column ul {
    list-style: none;
}

.yzg-footer-product-column li {
    margin-bottom: 10px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1100px) {
    .yzg-dropdown-content {
        min-width: 700px;
    }
}

@media (max-width: 992px) {
    .yzg-header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .yzg-language-switcher {
        order: -1;
    }
}

@media (max-width: 850px) {
    .yzg-dropdown-content {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .yzg-nav.yzg-active {
        max-height: calc(100vh - 80px);  /* 减去头部高度，可根据实际情况调整 */
        overflow-y: auto;
    }
    .yzg-header-container {
        flex-wrap: wrap;
    }
    
    .yzg-logo-area {
        flex: 1;
    }
    
    .yzg-logo-placeholder {
        width: 140px;
        height: 49px;
        font-size: 1.2rem;
    }
    
    .yzg-header-right {
        display: none;
    }
    
    .yzg-header-right.yzg-mobile-visible {
        display: flex;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .yzg-nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .yzg-nav.yzg-active {
        display: block;
    }
    
    .yzg-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .yzg-nav li {
        margin: 10px 0;
        width: 100%;
    }
    
    .yzg-nav a {
        display: block;
        padding: 8px 0;
    }
    
    /* 移动端下拉菜单 - 简化版：只显示两大分类，隐藏所有子链接列 */
    .yzg-dropdown-content {
        position: static;
        display: none;
        min-width: 100%;
        /* 移除可能导致滚动的属性 */
        max-height: none;
        overflow: visible;
        flex-direction: column;
        box-shadow: none;
        border: none;
        padding: 0;
        transform: none !important;
        left: 0 !important;
    }
    
    .yzg-dropdown.yzg-active .yzg-dropdown-content {
        display: block;
    }
    
    /* 隐藏所有子链接列 */
    .yzg-dropdown-group .yzg-dropdown-columns {
        display: none;
    }
    
    /* 调整组的样式，让两大分类更突出 */
    .yzg-dropdown-group {
        padding: 10px 15px;
    }
    .yzg-dropdown-group p {
        margin-bottom: 0;
        border-bottom: none;
    }
    .yzg-dropdown-group p a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
        color: var(--yzg-primary-blue);
        font-weight: 600;
        text-decoration: none;
    }
    .yzg-dropdown-group p a:hover {
        color: var(--yzg-primary-blue-dark);
    }
    
    /* 可选：让下拉菜单整体更紧凑 */
    .yzg-dropdown-content {
        padding: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    /* 原有移动端下拉菜单其他样式（可保留，但部分已被覆盖） */
    .yzg-dropdown-columns {
        flex-direction: column;
    }
    
    .yzg-dropdown-column {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .yzg-dropdown-column:last-child {
        margin-bottom: 0;
    }
    
    .yzg-mobile-menu-btn {
        display: block;
    }
    
    .yzg-slide-content {
        margin: 0 auto;
        max-width: 90%;
    }
    
    .yzg-slide-content h1 {
        font-size: 2rem;
    }
    
    .yzg-dropdown-content a {
        font-size: 0.85rem;
        padding: 8px 5px;
    }
    
    .yzg-slide {
        height: 500px;
    }
    
    .yzg-footer-column {
        padding-right: 0;
    }
    
    .yzg-footer-product-columns {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .yzg-section-title h2 {
        font-size: 2rem;
    }
    
    .yzg-slide-content {
        padding: 25px;
    }
    
    .yzg-slide-content h1 {
        font-size: 1.8rem;
    }
}


/* 产品组显示/隐藏动画 */
.yzg-product-group {
    transition: opacity 0.3s ease;
}

.yzg-product-group[style*="display: none"] {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.yzg-product-group[style*="display: block"] {
    opacity: 1;
    height: auto;
}

/* ===== 页脚友情链接（置底，灰色背景，左对齐） ===== */
.yzg-footer-links {
    background-color: #333333;
    padding: 12px 0; 
    margin-top: 20px;           /* 上下内边距，不设左右，由内部 container 控制 */
}

.yzg-footer-links-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.yzg-footer-links-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.yzg-footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;                /* 链接之间水平间距 */
    list-style: none;
    padding: 0;
    margin: 0;
}

.yzg-footer-links-list a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.yzg-footer-links-list a:hover {
    color: var(--yzg-secondary-orange);
    text-decoration: underline;
}