/* 页脚美化样式 - 简洁版 */
.contact-info-bottom.homepage-footer {
    background: linear-gradient(to right, #e8f5e9, #f1f8e9); /* 渐变背景 */
    padding: 3rem 0; /* 适中内边距 */
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    border-top: 2px solid rgba(46, 125, 50, 0.2); /* 简洁顶部边框 */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03); /* 轻微阴影 */
    position: relative;
    overflow: hidden;
    margin-top: 0 !important; /* 强制移除顶部margin */
    border-top-width: 0; /* 移除顶部边框以减少分隔感 */
}

/* 添加简洁的顶部装饰条 */
.contact-info-bottom.homepage-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2E7D32, #66BB6A, #2E7D32);
    opacity: 0.8;
}

.contact-info-bottom .container {
    display: flex;
    align-items: flex-start; /* 顶部对齐 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.contact-logo {
    margin-right: 4rem;
    position: relative;
}

.contact-logo:after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(46, 125, 50, 0.2), transparent);
}

.contact-logo img {
    max-height: 100px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

/* 简化LOGO悬停效果 */
.contact-logo img:hover {
    transform: scale(1.03);
}

.contact-details {
    flex: 1;
    padding-top: 0.3rem;
}

.contact-details p {
    margin: 0.8rem 0;
    font-size: 1rem;
    line-height: 1.5; /* 适中的行高 */
    color: #3a3a3a;
    letter-spacing: 0.02em;
    position: relative;
    padding-left: 1.8rem;
}

.contact-details p:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 1.3rem;
    padding-left: 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.15);
    padding-bottom: 0.8rem;
}

/* 合并标签和内容的样式 */
.contact-detail-item {
    position: relative;
    padding-left: 0;
}

.contact-detail-label {
    font-weight: bold;
    color: #2E7D32;
    margin-right: 0.5rem;
}

.legal-links-inline {
    margin-top: 1.8rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-left: 0 !important;
}

.legal-links-inline .terms-link {
    color: #2E7D32;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 2px;
    font-weight: 500;
}

/* 简化链接悬停效果 */
.legal-links-inline .terms-link:hover {
    color: #1B5E20;
}

.legal-links-inline .terms-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1B5E20;
    transition: width 0.3s ease;
}

.legal-links-inline .terms-link:hover:after {
    width: 100%;
}

.legal-links-inline .terms-link:not(:last-child) {
    margin-right: 0.5rem;
}

/* 为所有 contact-info-bottom 添加相同的背景色 */
.contact-info-bottom {
    background: linear-gradient(to right, #e8f5e9, #f1f8e9);
    border-top: 2px solid rgba(46, 125, 50, 0.2);
}

/* 友情链接区域美化 */
.friend-links {
    background-color: white;
    padding: 1.5rem 0 0;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 添加轻微阴影 */
    border-bottom: 1px solid var(--border-color);
}

.friend-links h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.friend-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.5rem 0 1rem;
}

.link-card {
    background-color: var(--light-green);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.2);
    border-color: var(--primary-color);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.5s ease-in-out;
}

.link-card:hover::before {
    left: 100%;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .contact-info-bottom.homepage-footer {
        padding: 2.5rem 0;
        margin-top: 0 !important;
        border-top-width: 0;
    }
    
    .contact-logo {
        margin-right: 2.5rem;
    }
    
    .contact-logo:after {
        right: -1.25rem;
    }
    
    .friend-links {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .friend-links h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .links-container {
        gap: 0.6rem;
    }
    
    .link-card {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .contact-info-bottom.homepage-footer {
        padding: 2.5rem 0 2rem;
        margin-top: 0 !important;
        border-top-width: 0;
    }
    
    .contact-info-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-logo {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-logo:after {
        display: none;
    }
    
    .contact-details p {
        margin: 0.8rem auto;
        font-size: 0.95rem;
        padding-left: 0;
        line-height: 1.5; /* 适中的行高 */
    }
    
    .contact-details p:before {
        position: static;
        margin-right: 0.5rem;
    }
    
    .contact-details p:first-child {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .legal-links-inline {
        justify-content: center;
        gap: 1rem 1.5rem;
    }
    
    .legal-links-inline .terms-link {
        font-size: 0.9rem;
    }
    
    .legal-links-inline .terms-link:not(:last-child) {
        margin-right: 0;
    }
    
    .friend-links {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .contact-info-bottom.homepage-footer {
        padding: 2rem 0 1.5rem;
        margin-top: 0 !important;
        border-top-width: 0;
    }
    
    .contact-logo img {
        max-height: 80px;
    }
    
    .contact-details p:first-child {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .legal-links-inline {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .legal-links-inline .terms-link {
        font-size: 0.85rem;
        padding: 0.2rem 0;
    }
    
    .friend-links {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}