/* 关于我们页面基础布局 */
.about-main {
    padding-top: 0;
}

/* 顶部横幅区域 */
.about-hero {
    height: 40vh;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.about-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* 侧边导航和社交图标 */
.about-sidebar {
    flex: 0 0 250px;
}

/* 顶部导航样式重置 */
.navbar .logo {
    font-size: 1.5rem;
}

.navbar .nav-links a {
    font-size: 1rem;
}

.nav-buttons {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.nav-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-color);
    width: 100%;
}

.nav-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.nav-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

/* 社交媒体图标区域 */
.social-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 调整图标间距：左右极度紧凑，上下保持宽松 */
    column-gap: 2.0rem;
    row-gap: 4rem;
    padding: 2rem 2.0rem;
    margin-top: 1rem;
    border-top: 1px solid #eee;
}

/* 单个图标样式 */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin: 0 auto;
}

/* 图标悬停效果 */
.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* 提示框样式 */
.social-icon .tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--text-color);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.social-icon .tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.social-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 二维码样式 */
.qr-code {
    text-align: center;
    padding: 1rem 0;
}

.qr-code img {
    width: 60%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.qr-code p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 内容区域 */
.about-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 关于我们板块 */
.company-intro {
    margin-bottom: 3rem;
}

.company-intro > p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.company-intro h2,
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.company-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature:hover::before {
    transform: translateX(100%);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.certifications h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cert-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cert-item:hover {
    border-color: var(--secondary-color);
    background: white;
    transform: scale(1.05);
}

/* 联系我们板块 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#baiduMap {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.contact-form {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .contact-info,
    .contact-right {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
    }
}
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 450px;
    }


.contact-item {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    font-size: 0.9rem;
    line-height: 1.4;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    font-size: 1rem;
}

/* 响应式布局适配 */
@media (max-width: 1024px) {
    /* 平板布局调整 */
    .about-container {
        flex-direction: column;
    }

    .nav-buttons {
        position: static;
        flex-direction: column;
    }

    .company-features,
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 保持社交图标的间距一致 */
    .social-icons {
        justify-content: center;
        column-gap: 0.08rem;
        row-gap: 4rem;
    }

    .qr-code img {
        width: 200px;
    }
}

/* 移动端布局适配 */
@media (max-width: 768px) {
    /* 调整顶部横幅高度 */
    .about-hero {
        height: 30vh;
    }

    /* 内容区域调整 */
    .about-container {
        margin-top: -40px;
        padding: 1rem;
    }

    /* 一列布局展示 */
    .company-features,
    .contact-info,
    .cert-list {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 1rem;
    }
}
