/* 全局样式 */
:root {
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 注册表单样式 */
.register-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 注册背景样式 */
.register-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Swiper轮播图样式 */
.register-swiper {
    width: 100%;
    height: 100%;
}

.register-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.register-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图遮罩层 */
.register-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* 轮播图导航按钮样式 */
.register-swiper .swiper-button-next,
.register-swiper .swiper-button-prev {
    display: none;
}

/* 轮播图分页器样式 */
.register-swiper .swiper-pagination {
    display: none;
}

/* 注册内容样式 */
.register-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-start;
}

/* 注册容器样式 */
.register-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.register-container:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 验证码输入组样式 */
.verify-code-group {
    display: flex;
    gap: 1rem;
}

.verify-code-group input {
    flex: 1;
}

.send-code-btn {
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.send-code-btn:hover {
    background: var(--primary-color);
}

/* 性别选择器样式 */
.gender-group {
    display: flex;
    gap: 2rem;
}

.gender-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.gender-label input[type="radio"] {
    width: 18px;
    height: 18px;
}

.signup-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background: var(--secondary-color);
}

/* 标语和统计数据部分样式 */
.stats-slogan-section {
    text-align: center;
    padding: 6rem 2rem;
    background: url('../images/map-bg-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
}

.stats-slogan-section h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
}

.stat-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.stat-icon.heart {
    background-image: url('../images/status_01.png');
}

.stat-icon.users {
    background-image: url('../images/status_02.png');
}

.stat-icon.female {
    background-image: url('../images/status_03.png');
}

.stat-icon.male {
    background-image: url('../images/status_04.png');
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* 成功故事样式 */
.stories-section {
    padding: 4rem 2rem;
    background: var(--white);
    text-align: center;
}

.stories-section h2 {
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-color);
}

.stories-section h2 .highlight {
    color: var(--primary-color);
}

.stories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stories-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px;
    color: #333;
}

.story-remark {
    font-size: 14px;
    color: #666;
    margin: 0 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: var(--secondary-color);
}

/* 会员卡片样式 */
.top-members-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
}

.top-members-section h2 {
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-color);
}

.top-members-section h2 .highlight {
    color: var(--primary-color);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.members-container {
    text-align: center;
}

.member-card {
    text-align: center;
    transition: transform 0.3s ease;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: scale(1.05);
}

.member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.member-card h3 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.member-remark {
    font-size: 14px;
    color: #666;
    margin: 0 0 1rem 0;
}

.member-more-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.member-more-btn:hover {
    background: var(--secondary-color);
}

/* 群组样式 */
.groups-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.groups-section h2 {
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-color);
}

.groups-section h2 .highlight {
    color: var(--primary-color);
}

.groups-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.group-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    text-align: left;
}

.group-card:hover {
    transform: translateY(-5px);
}

.group-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.group-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.group-remark {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.group-info {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.member-num {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-num::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 50%;
}

.join-group-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.join-group-btn:hover {
    background: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .stories-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
    }

    .members-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .stories-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .register-section {
        height: auto;
        min-height: 60vh;
        padding: 2rem 0;
    }

    .register-container {
        max-width: 90%;
        padding: 1.5rem;
    }

    .register-form {
        gap: 1rem;
    }

    .form-group {
        gap: 0.3rem;
    }

    .form-group input {
        padding: 0.7rem;
        font-size: 15px;
    }

    .gender-group {
        gap: 1.5rem;
    }

    .gender-label input[type="radio"] {
        width: 16px;
        height: 16px;
    }

    .signup-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .stories-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .story-card {
        margin-bottom: 0;
    }

    .story-image {
        height: 200px;
    }

    .story-title {
        font-size: 18px;
        margin: 15px;
    }

    .story-remark {
        margin: 0 15px 15px;
        font-size: 14px;
        line-height: 1.6;
    }

    .read-more-btn {
        margin: 0 15px 15px;
    }

    .groups-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .group-card {
        flex-direction: column;
    }

    .group-image {
        width: 100%;
        height: 200px;
    }

    .group-content {
        padding: 15px;
    }

    .group-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .group-remark {
        margin-bottom: 15px;
    }

    .join-group-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px;
    }

    .member-card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .register-section {
        min-height: 50vh;
        padding: 1.5rem 0;
    }

    .register-container {
        max-width: 95%;
        padding: 1.2rem;
    }

    .register-form {
        gap: 0.8rem;
    }

    .form-group input {
        padding: 0.6rem;
        font-size: 14px;
    }

    .verify-code-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .send-code-btn {
        width: 100%;
        padding: 0.6rem;
        font-size: 14px;
    }

    .gender-group {
        gap: 1rem;
    }

    .gender-label {
        font-size: 14px;
    }

    .gender-label input[type="radio"] {
        width: 14px;
        height: 14px;
    }

    .signup-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .stories-list {
        gap: 15px;
        padding: 10px;
    }

    .story-image {
        height: 180px;
    }

    .story-title {
        font-size: 16px;
        margin: 12px;
    }

    .story-remark {
        margin: 0 12px 12px;
    }

    .read-more-btn {
        margin: 0 12px 12px;
    }

    .groups-list {
        gap: 15px;
    }

    .group-image {
        height: 180px;
    }

    .group-content {
        padding: 12px;
    }

    .group-card h3 {
        font-size: 16px;
    }

    .group-remark {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .join-group-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .members-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .member-card {
        padding: 15px;
    }

    .member-card img {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    .member-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .member-remark {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .member-more-btn {
        padding: 10px 25px;
    }

    .verify-code-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .send-code-btn {
        width: 100%;
        padding: 0.8rem;
    }

    .register-container {
        padding: 1.5rem;
    }

    .form-group input,
    .verify-code-group input {
        padding: 0.8rem;
        font-size: 16px; /* 防止iOS自动放大 */
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .register-container {
        padding: 1rem;
    }
    .members-container {
        grid-template-columns: 1fr;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: var(--white);
}

/* 会员选项卡样式 */
.members-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--light-bg);
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.empty-tip {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
    width: 100%;
    background: var(--light-bg);
    border-radius: 8px;
    grid-column: 1 / -1;
}

.empty-tip::before {
    content: '😅';
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.view-more-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    margin-top: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-more-btn:hover {
    background: var(--secondary-color);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.member-detail {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.member-detail img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.member-detail h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.member-detail .member-remark {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 14px;
    flex-shrink: 0;
}

.member-detail .member-detail-content {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    overflow-y: auto;
    max-height: 50vh;
}

.member-detail .member-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 故事详情弹窗样式 */
.story-detail {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.story-detail img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.story-detail h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.story-detail .story-remark {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 14px;
    flex-shrink: 0;
}

.story-detail .story-detail-content {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    overflow-y: auto;
    max-height: 50vh;
    line-height: 1.8;
    color: var(--text-color);
}

.story-detail .story-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 群组详情弹窗样式 */
.group-detail {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.group-detail img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.group-detail h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.group-detail .group-info {
    margin-bottom: 1rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.group-detail .member-num {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.group-detail .member-num::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 50%;
}

.group-detail .group-remark {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 14px;
    flex-shrink: 0;
}

.group-detail .group-detail-content {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    overflow-y: auto;
    max-height: 50vh;
    line-height: 1.8;
    color: var(--text-color);
}

.group-detail .group-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
} 

.floating-message-btn {
    position: fixed; /* 固定位置 */
    display: flex;
    align-items: center;
   justify-content: center;
    right: 20px; /* 距离页面右侧 20px */
    top: 50%; /* 距离页面顶部 50% */
    transform: translateY(-50%); /* 垂直居中 */
    background-color: #ff4d4f; /* 按钮背景颜色 */
    color: #ffffff; /* 按钮文字颜色 */
    width:100px;
    height:35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50px; /* 圆角按钮 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加阴影 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体加粗 */
    cursor: pointer; /* 鼠标悬停时显示手型 */
    z-index: 1000; /* 确保按钮在其他内容之上 */
    transition: background-color 0.3s ease; /* 添加背景颜色过渡效果 */
}
.floating-message-btn .icon,
.floating-contact-btn .icon{
    width:20px;
    height: 20px;
    margin-right: 2px;
}
.floating-message-btn:hover {
    background-color: #d9363e; /* 鼠标悬停时的背景颜色 */
}

/* 留言弹窗样式 */
.message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1001;
    padding: 20px;
  }
  
  .message-popup.hidden {
    display: none;
  }
  
  .popup-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    text-align: center;
  }
  
  .message-textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    resize: none;
    margin-bottom: 15px;
  }
  
  .popup-actions {
    display: flex;
    justify-content: end;
  }
  
  .popup-cancel-btn,
  .popup-submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 30px;
  }
  
  .popup-cancel-btn {
    background-color: #f5f5f5;
    color: #333;
  }
  
  .popup-submit-btn {
    background-color: #ff4d4f;
    color: #fff;
  }
  
  .popup-cancel-btn:hover {
    background-color: #e0e0e0;
  }
  
  .popup-submit-btn:hover {
    background-color: #d9363e;
  }
  
  /* 遮罩层 */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .popup-overlay.hidden {
    display: none;
  }

  /* 联系红娘按钮样式 */
.floating-contact-btn {
    position: fixed;
    display: flex;
    align-items: center;
   justify-content: center;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff4d4f;
    color: #ffffff;
    width:100px;
    height:35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
  }
  
  .floating-contact-btn:hover {
    background-color: #d9363e;
  }
  
  /* 联系红娘弹窗样式 */
  .contact-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1001;
    padding: 20px;
  }
  
  .contact-popup.hidden {
    display: none;
  }
  
  .contact-popup .popup-content {
    text-align: center;
  }
  
  .contact-popup .contact-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  .contact-popup .popup-actions {
    margin-top: 15px;
    text-align: center;
  }
  
  .popup-close-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #333;
  }
  
  .popup-close-btn:hover {
    background-color: #e0e0e0;
  }