/* 社小智微信小程序样式 - 修复版 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px; /* 基础字体大小 */
}

/* 针对高分辨率设备的适配 */
@media screen and (min-width: 1800px) {
    html {
        font-size: 18px;
    }
}

@media screen and (min-width: 2400px) {
    html {
        font-size: 20px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f2f2f7;
    color: #333;
    line-height: 1.5;
    padding-bottom: 49px; /* 为底部导航栏留出空间 */
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar-title {
    font-size: 17px;
    font-weight: 600;
}

.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 65px; /* 为底部导航栏留出空间 */
    max-width: 100%;
    margin: 0 auto;
}

/* 针对更高分辨率的内容区域调整 */
@media screen and (min-width: 2400px) {
    .page-content {
        max-width: 2400px;
        margin: 0 auto;
    }
}

/* 底部导航栏 */
.bottom-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 49px; /* iOS标准高度 */
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-top: 1px solid #e5e5e5;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
    text-decoration: none;
    font-size: 10px;
    padding: 6px 0;
    flex: 1;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.tab-label {
    font-size: 10px;
}

.tab-item.active {
    color: #007aff;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: #007aff;
    color: white;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

/* 触屏优化 */
.clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.clickable:active {
    opacity: 0.7;
}

/* 高分辨率设备中触摸目标的优化 */
@media screen and (min-width: 2400px) {
    .btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .tab-icon {
        font-size: 24px;
    }
    
    .tab-label {
        font-size: 12px;
    }
    
    .bottom-tab-bar {
        height: 56px;
    }
    
    body {
        padding-bottom: 56px;
    }
}

/* 输入框样式 */
input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    font-size: 16px;
    background-color: #f2f2f7;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007aff;
}

/* 头像样式 */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    object-fit: cover;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    object-fit: cover;
}

/* 列表项样式 */
.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
} 