/* ================================================
   联系我们专用样式 - contact.css
   藏后品牌官网
   ================================================ */

/* ---- 1. Banner 区 ---- */
.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,31,77,0.7) 0%, rgba(17,31,77,0.45) 100%);
}
.contact-hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
}
.contact-hero-tag {
    display: inline-block;
    background: rgba(201,162,39,0.2);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    padding: 6px 18px;
    margin-bottom: 20px;
    border-radius: 2px;
}
.contact-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.contact-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.1em;
}
.contact-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}
.contact-hero-wave svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* ---- 2. 核心联系卡片区 ---- */
.contact-cards-section {
    padding: 100px 0 60px;
    background: var(--color-bg);
    position: relative;
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.contact-card {
    background: var(--color-white);
    border: 1px solid rgba(201,162,39,0.15);
    border-top: 4px solid var(--color-gold);
    border-radius: 4px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(26, 47, 110, 0.04);
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 12px 40px rgba(201, 162, 39, 0.12);
}
.card-icon-wrap {
    width: 68px;
    height: 68px;
    background: rgba(201,162,39,0.06);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-gold-dark);
    transition: var(--transition);
}
.contact-card:hover .card-icon-wrap {
    background: var(--color-gold);
    color: var(--color-white);
    transform: rotateY(180deg);
}
.card-icon {
    width: 28px;
    height: 28px;
}
.contact-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.card-highlight {
    font-size: 1.4rem;
    font-family: var(--font-en);
    color: var(--color-gold-dark);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.card-desc {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ---- 3. 留言 + 地图展示区 ---- */
.contact-interactive-section {
    padding: 60px 0 100px;
    background: var(--color-bg);
}
.contact-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* 在线留言表单 */
.contact-form-wrap {
    background: var(--color-white);
    border: 1px solid rgba(201,162,39,0.12);
    border-radius: 4px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(26, 47, 110, 0.03);
}
.contact-section-header {
    margin-bottom: 36px;
}
.contact-section-header .sub-title {
    display: block;
    color: var(--color-gold);
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}
.contact-section-header h2 {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}
.contact-section-header .header-p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* 表单元素 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.form-group label span {
    color: var(--color-red);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #faf8f5;
    border: 1px solid rgba(17,31,77,0.1);
    border-radius: 3px;
    padding: 14px 16px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: var(--color-white);
    box-shadow: 0 0 10px rgba(201,162,39,0.08);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
}
.form-group textarea {
    resize: none;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-submit:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
}
.btn-submit:active {
    transform: translateY(0);
}

/* 提交加载效果 */
.btn-loader {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-loader .dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: inline-block;
    animation: loaderDot 1.4s infinite ease-in-out both;
}
.btn-loader .dot:nth-child(1) { animation-delay: -0.32s; }
.btn-loader .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loaderDot {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* 提示框 */
.form-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: fadeIn 0.4s ease both;
}
.form-alert.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}
.form-alert.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 右侧：地图卡片及交通指南 */
.contact-map-wrap {
    position: sticky;
    top: 110px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.map-inner-card {
    background: var(--color-white);
    border: 1px solid rgba(17,31,77,0.05);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 47, 110, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 虚拟地图容器 */
.map-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.hq-building-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}
.map-inner-card:hover .hq-building-img {
    transform: scale(1.08);
}
.map-overlay-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,31,77,0.85) 0%, rgba(17,31,77,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--color-white);
    z-index: 5;
}
.map-overlay-info .logo-box {
    margin-bottom: 12px;
}
.map-overlay-info .logo-box img {
    height: 40px;
    width: auto;
}
.map-p-addr {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 乘车指南 */
.guide-box {
    padding: 30px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.guide-box h4 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(17,31,77,0.06);
    padding-bottom: 10px;
}
.guide-title-icon {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
}
.guide-list li {
    margin-bottom: 18px;
    position: relative;
}
.guide-list li:last-child {
    margin-bottom: 0;
}
.guide-list li strong {
    display: block;
    color: var(--color-gold-dark);
    font-size: 0.95rem;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.guide-list li span {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}
.guide-list li span strong {
    display: inline;
    color: var(--color-primary);
}

/* ---- 4. 响应式 ---- */
@media (max-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-map-wrap {
        position: static;
        height: auto;
    }
    .map-inner-card {
        height: auto;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 55vh;
        min-height: 380px;
        max-height: 480px;
    }
    .contact-hero-wave svg {
        height: 24px;
    }
    .contact-cards-section {
        padding: 60px 0 40px;
    }
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-card {
        padding: 36px 20px;
    }
    .contact-interactive-section {
        padding: 40px 0 60px;
    }
    .contact-form-wrap {
        padding: 30px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-section-header {
        margin-bottom: 24px;
    }
    .contact-section-header h2 {
        font-size: 1.5rem;
    }
    .guide-box {
        padding: 24px 16px;
    }
}
