/* ============================================
   超图联系方式页面样式 - 响应式设计
   ============================================ */

/* 基础样式重置 */
.contact-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.contact-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
.contact-page h2 {
    text-align: center;
    color: #d7000f;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d7000f;
}

/* 导航标签样式 */
.contact-nav {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 0;
}

.contact-nav-item {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    position: relative;
    bottom: -2px;
}

.contact-nav-item:hover {
    color: #d7000f;
    border-bottom-color: #ffd0d3;
}

.contact-nav-item.active {
    color: #d7000f;
    border-bottom-color: #d7000f;
    font-weight: 600;
}

/* 内容区域样式 */
.contact-section {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.contact-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片容器 */
.contact-cards {
    display: block;
    margin-top: 20px;
}

/* 单个联系卡片 */
.contact-card {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: none;
}

.contact-card:last-child {
    border-bottom: none;
}

.contact-card:hover {
    /* 移除悬停效果 */
}

/* 卡片标题 */
.card-title {
    font-size: 20px;
    color: #d7000f;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #d7000f, #a0000b);
    margin-right: 10px;
    border-radius: 2px;
}

.card-title a {
    color: #d7000f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #a0000b;
    text-decoration: underline;
}

/* 信息行 */
.info-row {
    display: flex;
    margin-bottom: 12px;
    line-height: 1.8;
}

.info-label {
    min-width: 90px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    flex: 1;
    word-break: break-word;
}

.info-value a {
    color: #d7000f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #a0000b;
    text-decoration: underline;
}

/* 总部特殊样式 */
.headquarters-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
}

/* 区块容器 */
.section-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 区块标题 */
.section-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

/* 区块描述 */
.section-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.headquarters-info {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: none;
}

.headquarters-info p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.headquarters-info strong {
    color: #d7000f;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.map-container {
    text-align: center;
    margin: 20px 0;
}

.map-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.map-container img:hover {
    transform: none;
}

/* 链接样式 */
.contact-link {
    color: #d7000f;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #a0000b;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .contact-page {
        padding: 15px;
    }

    .contact-page h2 {
        font-size: 24px;
    }

    .contact-nav {
        gap: 20px;
        overflow-x: auto;
    }

    .contact-nav-item {
        padding: 10px 15px;
        font-size: 14px;
        white-space: nowrap;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 15px 0;
    }

    .card-title {
        font-size: 18px;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        min-width: auto;
        margin-bottom: 4px;
    }


}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .contact-page {
        padding: 10px;
    }

    .contact-page h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-nav {
        gap: 15px;
        overflow-x: auto;
    }

    .contact-nav-item {
        width: auto;
        text-align: left;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .contact-card {
        padding: 12px 0;
    }

    .card-title {
        font-size: 16px;
    }

    .info-value {
        font-size: 14px;
    }
}

/* 打印样式优化 */
@media print {
    .contact-nav {
        display: none;
    }

    .contact-section {
        display: block !important;
        page-break-inside: avoid;
    }

    .contact-card {
        box-shadow: none;
        border: none;
        border-bottom: 1px solid #eee;
    }
}
