/* 通用响应式样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 确保移动设备上的文本可读性 */
body {
    font-size: 16px;
    line-height: 1.5;
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 响应式容器 */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 媒体查询 - 小屏幕手机 */
@media (max-width: 375px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    /* 调整二维码大小 */
    #qrcode {
        width: 220px !important;
        height: 220px !important;
    }
}

/* 媒体查询 - 大屏幕手机和小平板 */
@media (min-width: 376px) and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* 调整二维码大小 */
    #qrcode {
        width: 260px !important;
        height: 260px !important;
    }
}

/* 触摸目标优化 */
button, a, input, select, textarea {
    min-width: 18px;
    min-height: 18px;
    padding: 8px 12px;
}

/* 表单元素响应式优化 */
input, select, textarea {
    width: 100%;
    font-size: 1rem;
}

/* 底部导航固定 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #eee;
    justify-content: space-around;
    padding: 10px 0;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: auto;
    min-height: auto;
    padding: 5px;
}

/* 底部导航固定 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #eee;
    justify-content: space-around;
    padding: 10px 0;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: auto;
    min-height: auto;
    padding: 5px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #eee;
    justify-content: space-around;
    padding: 10px 0;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: auto;
    min-height: auto;
    padding: 5px;
}

/* 微信浏览器特殊处理 */
.wechat-browser .content-container {
    padding-bottom: 20px;
}

.wechat-browser .bottom-nav {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

/* 确保在微信浏览器中元素正确显示 */
.wechat-browser * {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
