/**
 * 联系我们页面样式
 * 作者: Bruce (ID: 19314067)
 * 更新时间: 2026-02-27
 * 设计系统: 烽云科技官网 - 科技感浅色主题
 * 
 * 注意：CSS变量统一使用 index.css 中定义的全局变量
 */


/* ---- 面包屑导航 - 与新闻列表页保持一致 ---- */
.news-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.news-breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
}

.news-breadcrumb a {
    color: #64748b;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.news-breadcrumb a:hover {
    color: #1a72b3;
}

.news-breadcrumb .home-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.news-breadcrumb .separator {
    margin: 0 12px;
    color: #cbd5e1;
}

.news-breadcrumb .current {
    color: #1a72b3;
    font-weight: 500;
}

/* ---- 子栏目选项卡 - 与新闻列表页保持一致 ---- */
.news-tabs-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.news-tabs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.news-tabs::-webkit-scrollbar {
    display: none;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    padding: 20px 32px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.tab-link:hover {
    color: #1a72b3;
    background: #f0f9ff;
}

.tab-link.active {
    color: #1a72b3;
    border-bottom-color: #1a72b3;
    background: #f0f9ff;
    font-weight: 600;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb-section {
    background: #f8fafc;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 150ms ease;
}

.breadcrumb-link:hover {
    color: #1a72b3;
}

.breadcrumb-link svg {
    flex-shrink: 0;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: #94a3b8;
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

/* ==================== 联系信息卡片板块 ==================== */
.contact-info-section {
    padding: 80px 0;
    background: #ffffff;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    transition: all 200ms ease;
    cursor: pointer;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #dbeafe;
}

.contact-info-icon {
    width: 72px;
    height: 72px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #1a72b3;
    transition: all 200ms ease;
}

.contact-info-card:hover .contact-info-icon {
    background: #1a72b3;
    color: #FFFFFF;
    transform: scale(1.1);
}

.contact-info-icon svg {
    width: 32px;
    height: 32px;
}

.contact-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.contact-info-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 8px;
    word-break: break-all;
}

.contact-info-desc {
    font-size: 13px;
    color: #94a3b8;
}

/* 商务微信二维码样式 */
.contact-info-qrcode {
    margin: 8px auto;
}

.contact-info-qrcode img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

/* ==================== 地图与表单板块 ==================== */
.contact-main-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

/* 左侧地图 */
.contact-map-wrapper {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-map-container {
    position: relative;
    flex: 1;
    min-height: 350px;
    overflow: hidden;
}

.contact-map-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.contact-map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.contact-map-marker svg {
    width: 48px;
    height: 48px;
    color: #1a72b3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.contact-map-marker span {
    background: #1a72b3;
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-map-info {
    padding: 24px;
}

.contact-map-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.contact-map-info p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.map-direction-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a72b3;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 150ms ease;
}

.map-direction-link:hover {
    color: #145a8f;
}

.map-direction-link svg {
    transition: transform 150ms ease;
}

.map-direction-link:hover svg {
    transform: translateX(4px);
}

/* 右侧表单 */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.contact-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 14px;
    color: #94a3b8;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    flex: 1;
    align-content: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group-verify {
    grid-column: 1 / -1;
}

.form-group.focused .form-label {
    color: #1a72b3;
}

.form-group.focused .form-input,
.form-group.focused .form-textarea {
    border-color: #1a72b3;
    box-shadow: 0 0 0 3px #f0f9ff;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: color 150ms ease;
}

.form-label svg {
    color: #1a72b3;
}

.form-required {
    color: #EF4444;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    transition: all 150ms ease;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-input:hover,
.form-textarea:hover {
    border-color: #3d8bc7;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a72b3;
    box-shadow: 0 0 0 3px #f0f9ff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-char-count {
    text-align: right;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.form-char-count.warning {
    color: #F97316;
    font-weight: 500;
}

/* 验证码区域 */
.verify-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verify-code {
    flex-shrink: 0;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: border-color 150ms ease;
}

.verify-code:hover {
    border-color: #1a72b3;
}

.verify-code img {
    width: 108px;
    height: 46px;
    display: block;
}

.verify-input {
    flex: 1;
    max-width: 200px;
}

/* 提交按钮 */
.form-submit {
    grid-column: 1 / -1;
    margin-top: 12px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1a72b3 0%, #3d8bc7 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 10px 30px -5px rgba(26, 114, 179, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit svg {
    transition: transform 150ms ease;
}

.btn-submit:hover svg {
    transform: rotate(45deg);
}

/* 加载动画 */
.btn-submit .animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 快速咨询板块 ==================== */
.contact-cta-section {
    padding: 80px 0;
    background: #ffffff;
}

.contact-cta-wrapper {
    background: linear-gradient(135deg, #1a72b3 0%, #145a8f 100%);
    border-radius: 16px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 10px 30px -5px rgba(26, 114, 179, 0.3);
}

.contact-cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.contact-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

.btn-cta-primary {
    background: #FFFFFF;
    color: #1a72b3;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==================== 容器样式 ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 响应式设计 ==================== */

/* 平板端 (768px - 1023px) */
@media (max-width: 1023px) {
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info-card {
        padding: 32px 24px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .contact-info-icon {
        margin: 0;
        flex-shrink: 0;
        width: 56px;
        height: 56px;
    }
    
    .contact-info-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: stretch;
    }
    
    .contact-map-wrapper {
        height: auto;
    }
    
    .contact-map-container {
        min-height: 300px;
        height: 300px;
        flex: none;
    }
    
    .contact-form-wrapper {
        padding: 32px;
        height: auto;
    }
    
    .contact-cta-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }
    
    .contact-cta-actions {
        width: 100%;
        justify-content: center;
    }
}

/* 移动端 (< 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    
    .news-breadcrumb {
        padding: 12px 0;
    }
    
    .news-breadcrumb-inner {
        font-size: 12px;
    }
    
    .contact-info-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .contact-info-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-map-container {
        height: 280px;
    }
    
    .contact-form-wrapper {
        padding: 24px 20px;
    }
    
    .contact-form-title {
        font-size: 22px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group-full,
    .form-group-verify {
        grid-column: 1;
    }
    
    .verify-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .verify-input {
        max-width: none;
    }
    
    .contact-cta-wrapper {
        padding: 32px 20px;
    }
    
    .contact-cta-content h2 {
        font-size: 24px;
    }
    
    .contact-cta-content p {
        font-size: 14px;
    }
    
    .contact-cta-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* 小屏移动端 (< 375px) */
@media (max-width: 374px) {
    .contact-banner-title {
        font-size: 24px;
    }
    
    .contact-form-wrapper {
        padding: 20px 16px;
    }
    
    .contact-info-text {
        font-size: 14px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .contact-banner,
    .contact-cta-section,
    .breadcrumb-section {
        display: none;
    }
    
    .contact-main-section {
        padding: 20px 0;
    }
    
    .contact-form-wrapper {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
