/* 联系我们页面专属样式 */

/* Hero区域 */
.contact-hero {
    background-color: white;
    width: 100%;
    padding: 48px 16px;
    position: relative;
    overflow: hidden;
}

.hero-decoration-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    background-color: rgba(43, 140, 238, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(50%, -50%);
}

.hero-decoration-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 192px;
    height: 192px;
    background-color: rgba(34, 197, 94, 0.05);
    border-radius: 50%;
    filter: blur(48px);
    transform: translate(-33%, 33%);
}

.contact-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-hero h1 {
    font-size: 32px;
    font-weight: bold;
    color: #111418;
    margin-bottom: 24px;
}

.contact-hero p {
    color: #64748b;
    max-width: 768px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

/* 主内容区域 */
.contact-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 16px;
    margin-top: -32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: flex-start;
}

/* 左侧：联系方式 */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.contact-info-header {
    font-size: 20px;
    font-weight: bold;
    color: #111418;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-header::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: #2b8cee;
    border-radius: 9999px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.contact-icon.phone {
    background-color: rgba(43, 140, 238, 0.1);
    color: #2b8cee;
}

.contact-icon.email {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.contact-icon.location {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.contact-info-item:hover .contact-icon.phone {
    background-color: #2b8cee;
    color: white;
}

.contact-info-item:hover .contact-icon.email {
    background-color: #f97316;
    color: white;
}

.contact-info-item:hover .contact-icon.location {
    background-color: #22c55e;
    color: white;
}

.contact-icon .material-symbols-outlined {
    font-size: 24px;
}

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

.contact-info-content .title {
    font-weight: bold;
    font-size: 18px;
    color: #111418;
    margin-bottom: 4px;
}

.contact-info-content .value {
    color: #2b8cee;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 4px;
}

.contact-info-content .value.email {
    color: #64748b;
}

.contact-info-content .description {
    font-size: 14px;
    color: #94a3b8;
}

.contact-info-content .address {
    color: #64748b;
    line-height: 1.6;
}

/* 社交媒体卡片 */
.social-card {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.social-header {
    font-size: 20px;
    font-weight: bold;
    color: #111418;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-header::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: #f97316;
    border-radius: 9999px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.social-item:hover {
    background-color: rgba(7, 193, 96, 0.1);
    border-color: rgba(7, 193, 96, 0.2);
}

.social-item .material-symbols-outlined {
    font-size: 30px;
    color: #94a3b8;
    transition: color 0.3s;
}

.social-item:hover .material-symbols-outlined {
    color: #07c160;
}

.social-item span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: #111418;
}

/* 右侧：在线留言表单 */
.contact-form-section {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    height: 100%;
}

.form-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #111418;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    margin-bottom: 32px;
}

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

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #111418;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #111418;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2b8cee;
    box-shadow: 0 0 0 3px rgba(43, 140, 238, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: none;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-label {
    cursor: pointer;
    position: relative;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-label span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s;
}

.radio-label input:checked + span {
    background-color: #2b8cee;
    color: white;
    border-color: #2b8cee;
}

/* 提交按钮 */
.submit-button {
    width: 100%;
    padding: 14px 32px;
    background-color: #2b8cee;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 16px rgba(43, 140, 238, 0.3);
    transition: all 0.3s;
    margin-top: 16px;
}

.submit-button:hover {
    background-color: #2580d3;
}

.submit-button .material-symbols-outlined {
    font-size: 14px;
}

/* 地图区域 */
.map-section {
    margin-top: 48px;
    width: 100%;
    height: 256px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    background-color: #f1f5f9;
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.map-section:hover {
    box-shadow: 0 8px 24px rgba(43, 140, 238, 0.15);
    transform: translateY(-2px);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.7s;
}

.map-section:hover .map-placeholder {
    filter: grayscale(0%);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(43, 140, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-label {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-label .material-symbols-outlined {
    color: #2b8cee;
}

.map-label span:last-child {
    font-weight: bold;
    font-size: 14px;
}

/* 响应式设计 - 联系我们页面 */

/* 微信公众号二维码弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background-color: #e2e8f0;
    color: #111418;
    transform: rotate(90deg);
}

.modal-close .material-symbols-outlined {
    font-size: 20px;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #111418;
    margin-bottom: 8px;
    text-align: center;
}

.modal-content p {
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.qrcode-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.qrcode-container img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 - 联系我们页面 */
@media (min-width: 768px) {
    .contact-hero h1 {
        font-size: 48px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .submit-button {
        width: auto;
    }

    .map-section {
        height: 320px;
    }

    .map-label span:last-child {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .contact-main {
        padding: 48px 40px;
    }

    .contact-grid {
        grid-template-columns: 5fr 7fr;
    }
}
