/* 页脚 */
.footer {
    background: #273553;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    /* 三个板块等间距分布 */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px; /* 移除默认间距，使用自定义分割线 */
    margin-bottom: 30px;
    align-items: start;
    /* 与页面主元素宽度对齐 */
    max-width: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    width: 100%;
}

.footer-section h3:nth-child(n+3) {
    margin-top: 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #cbd5e0;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.company-philosophy { 
    background-color: #4242421f; 
    padding: 0px; 
    border-radius: 5px; 
    padding-right: 0px; /* 为分割线留出空间 */
}

.qr-section {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 auto 15px auto;
    max-width: 400px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: none;
    margin: 0;
    
}

.qr-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: #4a5568;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #cbd5e0;
    font-size: 12px;
}

.qr-label {
    font-size: 12px;
    color: #cbd5e0;
    font-weight: 500;
}

.contact-methods {
    display: flex;
    gap: 20px;
}

.contact-item {
    font-size: 14px;
    color: #cbd5e0;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.legal-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.legal-info span {
    font-size: 12px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
}

.icp-info, .police-info, .complaint-hotline {
    transition: color 0.3s ease;
}

.icp-info:hover, .police-info:hover, .complaint-hotline:hover {
    color: #cbd5e0;
}

/* 最底部版权信息 */
.footer-copyright {
    background: #0f172a;
    padding: 20px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.copyright-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.copyright-info p {
    color: #94a3b8;
    font-size: 12px;
    margin: 5px 0;
    text-align: center;
    width: 100%;
}

.copyright-info p:first-child {
    margin-bottom: 10px;
    font-weight: 500;
}

.copyright-info p:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

/* 优化后的导航菜单样式 */
.footer-nav-sections {
    margin-left: 40px; /* 分割线空间 */
    margin-right: 40px; /* 分割线空间 */
    display: grid;
    /* 修改为两行布局，第一行2个栏目，第二行2个栏目 */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    width: 100%;
    padding-right: 40px; /* 为分割线留出空间 */
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 特殊处理：将精彩动态和党建文化放在第二行 */
/* 第一个栏目 (关于我们, 就业与服务) 在第一行 */
.footer-nav-section:nth-child(1),
.footer-nav-section:nth-child(2) {
    grid-row: 1;
}

/* 第二个栏目 (精彩动态, 党建文化) 在第二行 */
.footer-nav-section:nth-child(3),
.footer-nav-section:nth-child(4) {
    grid-row: 2;
}

/* 第一列 */
.footer-nav-section:nth-child(1),
.footer-nav-section:nth-child(3) {
    grid-column: 1;
}

/* 第二列 */
.footer-nav-section:nth-child(2),
.footer-nav-section:nth-child(4) {
    grid-column: 2;
}

.nav-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    width: 100%;
}

.nav-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #4a90e2;
    border-radius: 1px;
    align-items: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.nav-links li {
    transition: transform 0.2s ease;
    width: 100%;
    text-align: center;
}

.nav-links li:hover {
    transform: translateX(5px);
}

.nav-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    position: relative;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.nav-link:hover {
    color: white;
    text-decoration: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #4a90e2;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

/* 美观的分割线样式 */
/* 第一个分割线 - 在公司理念和导航之间 */
.footer-content::before {
    content: '';
    position: absolute;
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 垂直居中 */
    /* 恢复原来的位置 */
    /*left: calc(33.333% - 0.5px);*/  /*位于第一个板块右侧 */
left: calc(33.333% + 25px);
    width: 1px;
    height: 80%; /* 保持高度 */
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

/* 第二个分割线 - 在导航和关注我们之间 */
.footer-content::after {
    content: '';
    position: absolute;
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 垂直居中 */
    /* 恢复原来的位置 */
    left: calc(66.666% - 0.5px); /* 位于第二个板块右侧 */
    width: 1px;
    height: 80%; /* 保持高度 */
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

/* 响应式设计 - 确保各板块元素适配缩放 */
@media screen and (min-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
    }
    
    .footer-section h3 {
        font-size: 18px;
    }
    
    .nav-title {
        font-size: 18px;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 14px;
        text-align: center;
        width: 100%;
    }
    
    .nav-links {
        align-items: center;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
    }
    
    /* 确保分割线在PC端正确显示 */
    .footer-content::before {
       /* left: calc(33.333% - 0.5px);*/
left: calc(33.333% + 25px);
    }
    
    .footer-content::after {
        left: calc(66.666% - 0.5px);
    }
}

/* 平板端适配 */
@media screen and (max-width: 1199px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .nav-title {
        font-size: 16px;
        margin-bottom: 12px;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 3px 0;
        text-align: center;
        width: 100%;
    }
    
    .nav-links {
        align-items: center;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
    }
    
    .qr-placeholder {
        width: 90px;
        height: 90px;
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .qr-label {
        font-size: 11px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    /* 调整分割线位置 */
    .footer-content::before {
        /*left: calc(33.333% - 0.5px);*/
left: calc(33.333% + 25px);
    }
    
    .footer-content::after {
        left: calc(66.666% - 0.5px);
    }
    
    /* 平板端保持两行布局 */
    .footer-nav-sections {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }
    
    .footer-nav-section:nth-child(1),
    .footer-nav-section:nth-child(2) {
        grid-row: 1;
    }
    
    .footer-nav-section:nth-child(3),
    .footer-nav-section:nth-child(4) {
        grid-row: 2;
    }
    
    .footer-nav-section:nth-child(1),
    .footer-nav-section:nth-child(3) {
        grid-column: 1;
    }
    
    .footer-nav-section:nth-child(2),
    .footer-nav-section:nth-child(4) {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .legal-info {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .legal-info span {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
        position: relative;
    }
    
    .footer-nav-sections {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
        padding-right: 0;
    }
    
    /* 移动端保持两行布局 */
    .footer-nav-section:nth-child(1),
    .footer-nav-section:nth-child(2) {
        grid-row: 1;
    }
    
    .footer-nav-section:nth-child(3),
    .footer-nav-section:nth-child(4) {
        grid-row: 2;
    }
    
    .footer-nav-section:nth-child(1),
    .footer-nav-section:nth-child(3) {
        grid-column: 1;
    }
    
    .footer-nav-section:nth-child(2),
    .footer-nav-section:nth-child(4) {
        grid-column: 2;
    }
    
    .copyright-info {
        padding: 0 15px;
    }
    
    .copyright-info p {
        font-size: 11px;
    }
    
    .copyright-info p:last-child {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-title {
        width: 100%;
        text-align: center;
    }
    
    .nav-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav-section {
        align-items: center;
    }
    
    .nav-links {
        justify-content: center;
        align-items: center;
    }
    
    /* 移动端隐藏分割线 */
    .footer-content::before,
    .footer-content::after {
        display: none;
    }
    
    .company-philosophy {
width:100%;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .footer-nav-sections {
        grid-template-columns: repeat(2, 1fr);
        /* grid-template-columns: 1fr;*/
        gap: 15px;
    }
    
    /* 在超小屏幕上，每个栏目单独一行 */
    .footer-nav-section:nth-child(1),
    .footer-nav-section:nth-child(2),
    .footer-nav-section:nth-child(3),
    .footer-nav-section:nth-child(4) {
       /* grid-row: auto;
        grid-column: 1;*/
    }
    
    .nav-title {
        font-size: 16px;
        margin-bottom: 12px;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 13px;
        text-align: center;
        width: 100%;
    }
    
    .nav-links {
        align-items: center;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
    }
    
    .footer-content {
        gap: 25px;
        padding: 0 10px;
    }
    
    .copyright-info {
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-section p {
        font-size: 12px;
    }
    
    .qr-section {
        gap: 15px;
    }
    
    .qr-placeholder {
        width: 80px;
        height: 80px;
    }
}