* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
#app, .container {
    max-width: 750px;
    min-width: 320px;
    margin: 0 auto;
    background: #fff;
    width: 100%;
}
img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}
a {
    text-decoration: none;
    color: #333;
}

/* Swiper */
.swiper {
    width: 100%;
    height: auto;
    overflow: hidden; /* 确保内容不溢出 */
    margin: 0 auto; /* 居中显示 */
}
.swiper-slide {
    width: 100% !important; /* 强制每个slide宽度为100% */
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    display: block; /* 防止图片底部有间隙 */
    object-fit: cover; /* 保持图片比例 */
}

/* Form Container */
.form-container {
    background-color: white;
    padding: 4vw 3vw;
    margin: 3vw 2vw;
    border-radius: 2vw;
}
.form-group {
    margin-bottom: 3vw;
}
.form-label {
    display: block;
    margin-bottom: 1.5vw;
    color: #333;
    font-size: clamp(14px, 3.8vw, 16px);
}
.form-label span {
    color: red;
}
.form-control {
    width: 100%;
    padding: 2.5vw;
    border: 1px solid #ddd;
    border-radius: 1.5vw;
    font-size: clamp(14px, 3.8vw, 16px);
}
.form-text {
    text-align: center;
    margin: 3vw 0;
    font-size: clamp(12px, 3.2vw, 14px);
    color: #888;
}
.form-text a {
    color: #1a86ff;
}
.btn-primary {
    display: block;
    width: 100%;
    background-color: #1a86ff;
    color: white;
    border: none;
    border-radius: 6vw;
    padding: 3vw;
    font-size: clamp(16px, 4.5vw, 20px);
    cursor: pointer;
    text-align: center;
    margin: 4vw 0 2vw;
}

/* Info Box */
.info-box {
    background-color: white;
    padding: 3vw;
    margin: 3vw 2vw;
    border-radius: 2vw;
    font-size: clamp(12px, 3.2vw, 14px);
}
.info-title {
    color: #1a86ff;
    font-weight: bold;
}

/* Records */
.records {
    background-color: white;
    padding: 3vw;
    border-radius: 2vw;
    margin: 3vw 2vw;
}
.records-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 2vw;
    font-size: clamp(16px, 4.5vw, 18px);
}
.records-list {
    height: 40vw;
    overflow: hidden;
}
.record-item {
    padding: 2vw 0;
    border-bottom: 1px solid #eee;
    font-size: clamp(12px, 3.2vw, 14px);
}
.record-info {
    display: flex;
    justify-content: space-between;
}
.record-user, .record-address {
    margin-bottom: 1vw;
}
.record-location {
    color: #1a86ff;
}

/* Categories */
.categories {
    background-color: white;
    padding: 3vw;
    border-radius: 2vw;
    margin: 3vw 2vw;
}
.categories-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 3vw;
    position: relative;
    font-size: clamp(16px, 4.5vw, 18px);
}
.categories-title:before, .categories-title:after {
    content: "";
    display: inline-block;
    width: 2vw;
    height: 2vw;
    background-color: #1a86ff;
    border-radius: 50%;
    margin: 0 2vw;
    position: relative;
    top: -0.5vw;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
    margin-bottom: 2vw;
}
.category-item {
    background-color: #f7f7f7;
    border-radius: 1.5vw;
    padding: 2vw 1vw;
    text-align: center;
    font-size: clamp(10px, 3vw, 11px);
}
.category-icon {
    display: block;
    width: 12vw;
    height: 12vw;
    margin: 0 auto 1.5vw;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Disclaimer */
.disclaimer {
    background-color: white;
    padding: 3vw;
    border-radius: 2vw;
    margin: 3vw 2vw;
    font-size: clamp(12px, 3.2vw, 14px);
    color: #666;
}

/* Contact & Footer */
.contact-btn {
    text-align: center;
    margin: 4vw 2vw;
}
.footer {
    text-align: center;
    padding: 3vw;
    font-size: clamp(12px, 3.2vw, 14px);
    color: #888;
}

/* PC-specific styles */
@media (min-width: 751px) {
    .container {
        width: 800px; /* Restore a wider layout for PC */
        margin: 0 auto;
        padding: 0;
        background-color: #f5f5f5;
    }
    
    /* Banner 轮播图样式 */
    .swiper {
        width: 100%;
        max-height: 280px;
        overflow: hidden;
        border-radius: 0;
    }
    
    .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* 分页器样式优化 */
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: #fff;
        opacity: 0.6;
    }
    
    .swiper-pagination-bullet-active {
        opacity: 1;
        background: #1a86ff;
    }

    /* 表单容器 */
    .form-container, .info-box, .records, .categories, .disclaimer {
        margin: 15px auto;
        padding: 20px;
        border-radius: 8px; /* Reduce border radius */
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        background-color: #fff;
    }

    /* 表单样式调整 */
    .form-group {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }
    
    .form-label {
        font-size: 15px; /* Increase font size */
        margin-bottom: 0;
        width: 100px;
        text-align: right;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .form-label span {
        color: #ff4d4f;
    }

    .form-control {
        font-size: 15px; /* Increase font size */
        padding: 12px 15px;
        border-radius: 8px; /* Match container radius */
        height: 48px;
        border: 1px solid #e8e8e8;
        flex: 1; /* Allow input to fill remaining space */
    }

    .form-text {
        font-size: 14px; /* Increase font size */
        margin: 15px 0;
        padding-left: 115px; /* Align with inputs */
        text-align: left;
        color: #666;
    }
    
    .form-text a {
        color: #1a86ff;
    }

    .btn-primary {
        font-size: 18px; /* Increase font size */
        padding: 12px;
        border-radius: 25px;
        height: 50px;
        background-color: #1a86ff;
        font-weight: 500;
        display: block;
        width: 50%;
        margin: 20px auto 0;
    }

    /* 信息框 */
    .info-box, .records, .disclaimer {
        font-size: 15px; /* Increase font size */
        line-height: 1.6;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .records-title, .categories-title {
        font-size: 18px; /* Increase font size */
        margin-bottom: 15px;
        text-align: center;
        font-weight: bold;
    }

    .categories-title::before,
    .categories-title::after {
        width: 8px;
        height: 8px;
        top: -2px;
        margin: 0 10px;
    }
    
    .records-container {
        height: 250px;
    }
    
    /* 分类区域 */
    .categories {
        margin: 15px auto;
        padding: 20px;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .categories-title {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
        font-weight: bold;
    }
    
    .category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin-bottom: 15px;
    }

    .category-item {
        font-size: 14px; /* Increase font size */
        padding: 10px 5px;
        text-align: center;
        background-color: #f7f7f7; /* Add background color */
        border-radius: 6px; /* Add fixed border radius */
    }

    .category-icon {
        width: 55px;
        height: 55px;
        margin: 0 auto 10px;
        background-size: contain;
    }
    
    /* 免责声明 */
    .disclaimer {
        margin: 15px auto;
        padding: 15px;
        border-radius: 15px;
        background-color: #fff;
        font-size: 12px;
        line-height: 1.5;
        color: #999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    /* 联系按钮 */
    .contact-btn {
        margin: 20px auto;
        text-align: center;
    }
    
    .contact-btn .btn-primary {
        display: inline-block;
        width: 200px;
    }
    
    /* 页脚 */
    .footer {
        font-size: 14px; /* Increase font size */
        padding: 20px;
        text-align: center;
        color: #999;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 恢复为原来的5%，保持PC端样式不变 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal-content h2 {
    text-align: center;
    font-size: 16px; /* You can change this value */
    margin-bottom: 15px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 10px; /* Adjust font size for agreement text */
}

.modal-body h4 {
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Responsive modal height for mobile */
@media (max-width: 750px) {
    .modal-body {
        max-height: 40vh;
    }
}

.modal-actions {
    display: flex;
    justify-content: center; /* 修改为center使按钮居中 */
    gap: 50px; /* 增加按钮之间的间距 */
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.modal-btn {
    background: none;
    border: none;
    font-size: clamp(14px, 4vw, 16px);
    color: #1a86ff;
    cursor: pointer;
    padding: 10px 20px;
}

.modal-btn:hover {
    text-decoration: underline;
}

/* 为移动端单独设置弹窗位置 */
@media (max-width: 750px) {
    .modal-content {
        margin: 30% auto; /* 移动端弹窗位置更靠下 */
    }
    
    .modal-body {
        max-height: 40vh;
    }
}
