/* =========================================================
   联系我们页面样式 contact.css
   依赖：common.css
   风格：深青绿背景 + 玻璃卡片 + 发光表单 + 顶部光带
   ========================================================= */

/* ===== 顶部面包屑条（与 about 页面统一）===== */
.breadcrumb-bar {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}
.breadcrumb-bar .container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.breadcrumb-bar a { color: var(--text-secondary); }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar svg {
    width: 12px; height: 12px;
    stroke: var(--text-light);
    fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.breadcrumb-bar .current { color: var(--primary); }

/* ===== 页面 Hero ===== */
.page-hero {
    position: relative;
    height: 420px;
    background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-base) 50%, var(--bg-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(20px);
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(20px);
}
.page-hero .hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(74, 222, 128, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 75% 75%, rgba(34, 211, 238, 0.06) 1.5px, transparent 1.5px);
    background-size: 50px 50px, 70px 70px;
    opacity: 0.6;
}
.page-hero .hero-arc {
    position: absolute;
    width: 120%; height: 120%;
    top: -10%; left: -10%;
    border: 1px solid rgba(74, 222, 128, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero-content {
    z-index: 2;
    text-align: center;
    color: var(--white);
}
.page-hero-content .hero-tagline {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    background: rgba(74, 222, 128, 0.08);
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.2);
}
.page-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow:
        0 0 40px rgba(74, 222, 128, 0.5),
        0 0 80px rgba(34, 211, 238, 0.2);
}

/* ===== 主区：contact-section 顶部光带 + 角落光斑 ===== */
.contact-section {
    padding: 60px 0 ;
    position: relative;
    overflow: hidden;background: -webkit-linear-gradient(right, #1a693c, #08293f);
	background: -o-linear-gradient(left, #1a693c, #08293f);
	background: -moz-linear-gradient(left, #1a693c, #08293f);
	background: linear-gradient(to left, #1a693c, #08293f);
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74, 222, 128, 0.2) 15%,
        var(--primary) 50%,
        rgba(34, 211, 238, 0.2) 85%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    opacity: 0.7;
    z-index: 2;
}
.contact-section::after {
    content: '';
    position: absolute;
    top: 15%; right: -8%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ===== 左侧：公司信息卡（玻璃拟态）===== */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 44px;
    /* box-shadow: var(--shadow-soft); */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.info-card:hover {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
}
/* 卡片顶部聚光斑 */
.info-card::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.info-card .company-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    position: relative;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-default);
    position: relative;
}
.info-row:last-child { border-bottom: none; }

.info-row .icon-box {
    width: 44px; height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
    background: var(--primary-bg);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.15);
    transition: var(--transition);
}
.info-row:hover .icon-box {
    border-color: var(--primary);
    box-shadow: 0 0 24px var(--primary-glow);
}
.info-row .icon-box svg {
    width: 20px; height: 20px;
    stroke: var(--primary);
    fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.info-row .info-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 2px;
    text-transform: uppercase;
}
.info-row .info-value {
    font-size: 15px;
    color: #ECFDF5;
    font-weight: 500;
    line-height: 1.6;
}
.info-row .info-value a {
    color: var(--primary);
    font-weight: 600;
}
.info-row .info-value a:hover { color: var(--primary-light); }

/* 订阅盒（保留渐变绿，加发光）*/
.subscribe-box {
    margin-top: 28px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-deep);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}
.subscribe-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.subscribe-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.subscribe-box h4 svg {
    width: 18px; height: 18px;
    stroke: var(--bg-deep);
    fill: none;
    stroke-width: 2;
}
.subscribe-box p {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 16px;
    line-height: 1.5;
    position: relative;
}
.sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    background: var(--bg-deep);
    color: var(--primary);
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.sub-btn:hover {
    transform: translateY(-2px);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* 社交链接（发光圆形）*/
.social-row {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: var(--bg-deep);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: var(--primary);
}
.social-link svg { width: 18px; height: 18px; }

/* ===== 右侧：表单卡（玻璃拟态）===== */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 44px;
    /* box-shadow: var(--shadow-soft); */
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
}
.form-card::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.form-card:hover {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
}
.form-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    position: relative;
    text-shadow: 0 0 16px rgba(74, 222, 128, 0.25);
}
.form-card .form-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    position: relative;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ECFDF5;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.form-label .required {
    /* color: var(--accent); */
    margin-left: 2px;
}

/* 输入框（深色背景适配）*/
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    color: #fff;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12), 0 0 20px rgba(74, 222, 128, 0.15);
    background: rgba(255, 255, 255, 0.05);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}
.form-textarea {
    min-height: 225px;
    resize: vertical;
    line-height: 1.6;
}

.form-error {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 6px;
    display: none;
}
.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}
.form-group.error .form-error { display: block; }

/* 询问性质标签（发光态）*/
.inquiry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.inquiry-tag {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.inquiry-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.2);
}
.inquiry-tag.active {
    background: var(--primary);
    color: var(--bg-deep);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    font-weight: 700;
}

/* 提交按钮 */
.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
}
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-deep);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: var(--transition);
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow-strong);
}
.submit-btn svg {
    width: 18px; height: 18px;
    stroke: var(--bg-deep);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.required-note {
    font-size: 12px;
    color: var(--text-light);
}
/* .required-note span { color: var(--accent); } */

/* 成功提示 */
.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.form-success::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.18) 0%, transparent 50%);
    pointer-events: none;
}
.form-success.show {
    display: block;
    animation: fadeInUp 0.6s ease;
}
.form-success .check-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--primary-bg);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--primary-glow);
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
}
.form-success .check-circle svg {
    width: 36px; height: 36px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2.5;
}
.form-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary-glow);
    position: relative;
}
.form-success p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
}

/* ===== 地图区（顶部光带 + 玻璃卡）===== */
.map-section {
    padding: 0 0 100px;
    position: relative;
    overflow: hidden;
}
.map-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74, 222, 128, 0.2) 15%,
        var(--primary) 50%,
        rgba(34, 211, 238, 0.2) 85%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    opacity: 0.7;
    z-index: 2;
}
.map-wrap {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    height: 360px;
    background:
        radial-gradient(circle at 30% 70%, rgba(74, 222, 128, 0.08), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.06), transparent 50%),
        linear-gradient(135deg, var(--bg-deep), var(--bg-base));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.map-wrap .map-placeholder {
    text-align: center;
    color: var(--primary);
    position: relative;
    z-index: 1;
}
.map-wrap .map-placeholder svg {
    width: 48px; height: 48px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}
.map-wrap .map-placeholder p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
/* ===== social-row 增强（多社交 + 分隔线 + 二维码 hover 卡）===== */
.social-row {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
    align-items: center;
}

/* 分隔线 */
.social-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, var(--border-default), transparent);
    margin: 0 6px;
}

/* ===== 二维码 hover 卡 ===== */
.qr-item {
    position: relative;
    display: inline-block;
}

.qr-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.92);
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(74, 222, 128, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 100;
    text-align: center;
    min-width: 180px;
}

/* 小三角箭头 */
.qr-popup::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: var(--white);
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.qr-img-wrap {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}
.qr-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a3329;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.qr-sub {
    font-size: 11px;
    color: #6b8a7d;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* hover 触发（鼠标 + 键盘 focus 都支持）*/
.qr-item:hover .qr-popup,
.qr-item:focus-within .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* 二维码图标触发器特殊样式（带"扫一扫"标记）*/
.qr-trigger {
    position: relative;
}

@keyframes qrPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.3); }
}

/* 移动端：长按显示，避免 hover 在触屏上不友好 */
@media (hover: none) {
    .qr-popup {
        position: fixed;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%) scale(0.9);
    }
    .qr-item:hover .qr-popup,
    .qr-item:focus-within .qr-popup {
        transform: translate(-50%, 50%) scale(1);
    }
}

/* 响应式：小屏 social-row 整体居左 */
@media (max-width: 768px) {
    .social-row {
        gap: 8px;
    }
    .social-divider {
        margin: 0 4px;
    }
}
/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .page-hero-content h1 { font-size: 32px; }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .info-card,
    .form-card {
        padding: 28px;
    }
    .submit-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .submit-btn {
        justify-content: center;
    }
}