/* ===================================
   联系我们页面样式 - contact.css
   青岛青铜器科技有限公司 BROIT
   仅本页专属类（联系卡片 / 留言表单 / 地图占位）
   通用类（.btn/.section/.section-title/.container/.page-banner/.navbar/.footer）见 common.css
   =================================== */

/* ============ 区块A：联系信息卡片 ============ */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.contact-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 26px;
    text-align: center;
    transition: all 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px var(--shadow-medium);
    border-color: transparent;
}

/* 圆形徽记（中文短字，红 / 金） */
.contact-card-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-serif);
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(187, 27, 33, 0.28);
    transition: transform 0.35s ease;
}

.contact-card-mark.gold {
    background: linear-gradient(135deg, var(--brand-gold), #9c7f44);
    box-shadow: 0 8px 20px rgba(192, 160, 98, 0.32);
}

.contact-card:hover .contact-card-mark {
    transform: scale(1.08) rotate(-4deg);
}

.contact-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.contact-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-medium);
}

.contact-card p a {
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: var(--brand-red);
}

.contact-card-note {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
}

/* ============ 区块B：留言表单 + 信息侧栏 ============ */
.contact-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 40px;
    align-items: start;
}

/* —— 左：表单 —— */
.contact-form-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 6px 22px var(--shadow-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 9px;
}

.form-group label em {
    font-style: normal;
    color: var(--brand-red);
    margin-left: 2px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(187, 27, 33, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

.contact-form .btn {
    width: 100%;
    margin-top: 6px;
}

/* —— 右：信息侧栏 —— */
.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-aside-card {
    background: linear-gradient(140deg, #1a1a1a 0%, #2a1416 70%, var(--brand-red-dark) 130%);
    border-radius: 14px;
    padding: 34px 30px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-aside-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(0, 154, 192, 0.2), transparent 55%);
    pointer-events: none;
}

.contact-aside-card h3 {
    position: relative;
    z-index: 2;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.aside-list {
    position: relative;
    z-index: 2;
    list-style: none;
}

.aside-list li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.aside-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aside-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--brand-gold);
}

.aside-value {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.contact-aside-invite {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-red);
    border-radius: 12px;
    padding: 28px 30px;
}

.contact-aside-invite h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.contact-aside-invite p {
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--text-medium);
}

/* ============ 区块C：地图 / 位置占位区 ============ */
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.map-placeholder {
    position: relative;
    min-height: 380px;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #161616 0%, #2a1416 55%, var(--tech-blue-deep) 100%);
    color: #ffffff;
}

.map-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 22% 28%, rgba(187, 27, 33, 0.22), transparent 42%),
        radial-gradient(circle at 80% 72%, rgba(0, 154, 192, 0.2), transparent 46%);
    pointer-events: none;
}

/* CSS 绘制的定位图标（水滴形） */
.map-pin {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin-bottom: 30px;
    background: var(--brand-red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 10px 24px rgba(187, 27, 33, 0.5);
    animation: pin-float 2.6s ease-in-out infinite;
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pin-float {
    0%, 100% { transform: rotate(-45deg) translate(0, 0); }
    50% { transform: rotate(-45deg) translate(4px, -4px); }
}

.map-address {
    position: relative;
    z-index: 2;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.map-sub {
    position: relative;
    z-index: 2;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 28px;
}

.map-btn {
    position: relative;
    z-index: 2;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-aside {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-aside-card,
    .contact-aside-invite {
        flex: 1 1 280px;
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-aside {
        flex-direction: column;
    }

    .map-placeholder {
        min-height: 320px;
        padding: 48px 20px;
    }

    .map-address {
        font-size: 16.5px;
    }
}
