/* ========== 联系我们页面样式 ========== */

.contact-page .page-hero {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.contact-page .page-hero-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-page .page-hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* 联系我们主内容区域 */
.contact-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 600px;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
}

/* 左侧联系方式 */
.contact-info-card {
    flex: 0 0 380px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.contact-info-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-info-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-info-header p {
    font-size: 14px;
    color: #999;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon .icon-emoji {
    font-size: 22px;
    line-height: 1;
}

.contact-method-content {
    flex: 1;
}

.contact-method-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.contact-method-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.contact-method-value a {
    color: #333;
    transition: color 0.3s ease;
}

.contact-method-value a:hover {
    color: #FF6B35;
}

/* 二维码区域 */
.contact-qrcode {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.contact-qrcode img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.contact-qrcode p {
    font-size: 13px;
    color: #666;
}

/* 右侧留言表单 */
.contact-form-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: #999;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-label .required {
    color: #FF6B35;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb;
}

.form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-tip {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.form-submit {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.submit-btn {
    padding: 16px 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #ff7a4d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 提交成功提示 */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.form-success h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-success p {
    font-size: 14px;
    color: #666;
}

/* 地图区域 */
.map-section {
    padding: 0 0 60px;
    background: #f8f9fa;
}

.map-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-display {
    display: flex;
    min-height: 300px;
}

.map-info-box {
    width: 300px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info-box .map-pin-icon {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1;
}

.map-info-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.map-info-box p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 16px;
}

.map-coords {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.map-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #FF6B35;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-open-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    color: #FF6B35;
}

.map-preview {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.map-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    background-image:
        linear-gradient(90deg, #c9d6e5 1px, transparent 1px),
        linear-gradient(#c9d6e5 1px, transparent 1px);
    background-size: 40px 40px;
}

.map-pin {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -100%);
    z-index: 2;
    font-size: 48px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.4));
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -100%) translateY(0); }
    50%       { transform: translate(-50%, -100%) translateY(-10px); }
}

.map-preview::before {
    content: '';
    position: absolute;
    bottom: 30%; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    background: rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0%   { transform: translateX(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(3); opacity: 0; }
}

/* ========== 移动端适配 ========== */
@media screen and (max-width: 1024px) {
    .contact-wrapper { flex-direction: column; gap: 24px; }
    .contact-info-card { flex: none; width: 100%; padding: 30px; }
    .contact-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-method { flex-direction: column; align-items: center; text-align: center; }
    .contact-qrcode { display: none; }
    .contact-form-card { padding: 30px; }
    .map-display { flex-direction: column; }
    .map-info-box { width: 100%; padding: 30px; text-align: center; }
    .map-coords { display: none; }
    .map-preview { min-height: 250px; }
}

@media screen and (max-width: 768px) {
    .contact-page .page-hero { padding: 40px 20px; }
    .contact-page .page-hero-title { font-size: 28px; }
    .contact-page .page-hero-subtitle { font-size: 14px; }
    .contact-section { padding: 30px 0 40px; }
    .contact-info-card { padding: 24px 20px; }
    .contact-methods { grid-template-columns: 1fr; gap: 20px; }
    .contact-method-icon { width: 44px; height: 44px; }
    .contact-method-value { font-size: 15px; }
    .contact-form-card { padding: 24px 20px; }
    .form-header h2 { font-size: 20px; }
    .contact-form { grid-template-columns: 1fr; gap: 20px; }
    .form-group.full-width { grid-column: span 1; }
    .form-submit { grid-column: span 1; }
    .form-input, .form-select, .form-textarea { padding: 12px 14px; }
    .form-textarea { min-height: 120px; }
    .submit-btn { width: 100%; justify-content: center; padding: 14px 30px; font-size: 15px; }
    .map-section { padding: 0 0 40px; }
    .success-icon { width: 64px; height: 64px; font-size: 32px; }
    .form-success h3 { font-size: 20px; }
}

@media screen and (max-width: 480px) {
    .contact-page .page-hero { padding: 32px 16px; }
    .contact-page .page-hero-title { font-size: 24px; }
    .contact-info-card { padding: 24px 16px; border-radius: 12px; }
    .contact-info-header h2 { font-size: 20px; }
    .contact-form-card { padding: 20px 16px; border-radius: 12px; }
    .form-header h2 { font-size: 18px; }
    .map-info-box { padding: 24px 16px; }
    .map-pin-icon { font-size: 32px !important; }
    .map-info-box h4 { font-size: 18px; }
    .map-preview { min-height: 180px; }
}
