/* 主内容区域 */
.main-content {
    padding: 0 16px 160px;
    height: calc(100vh - 60px - 80px); /* 视口高度 - 顶部导航 - 输入栏 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
}

/* 隐藏滚动条但保持滚动功能 */
.main-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* 55寸触摸屏适配 - 支持竖屏1080px */
@media screen and (min-width: 1024px) {
    .main-content {
        padding: 0 60px 180px; /* 增加左右内边距 */
        max-width: 100%; /* 竖屏显示器使用全宽 */
        margin: 0 auto;
    }

    /* 平板适配：问候区域响应式优化 */
    .greeting-section {
        gap: 24px;
    }

    .greeting-text {
        padding-left: 30px; /* 平板增加左侧内边距 */
    }

    .greeting-text h1 {
        font-size: clamp(28px, 5vw, 48px);
    }

    .greeting-message {
        font-size: clamp(16px, 3vw, 28px);
    }

    .character-image {
        width: clamp(125px, 18vw, 200px);
        height: clamp(92px, 13vw, 148px);
    }
}

/* 横屏大屏幕 */
@media screen and (min-width: 1920px) {
    .main-content {
        padding: 0 80px 180px;
        max-width: 100%; /* 改为100%自适应 */
    }

    .greeting-section {
        gap: 40px;
    }

    .greeting-text {
        padding-left: 40px; /* 大屏增加左侧内边距 */
    }

    .greeting-text h1 {
        font-size: 64px;
        white-space: normal;
    }

    .greeting-message {
        font-size: 36px;
        white-space: normal;
    }

    .character-image {
        width: 280px;
        height: 206px;
    }
}

/* 问候区域 */
.greeting-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px; /* 添加间距防止元素过于紧密 */
    flex-wrap: nowrap; /* 防止换行 */
}

.greeting-text {
    flex: 1;
    min-width: 0; /* 允许文本容器收缩 */
    padding-left: 20px; /* 添加左侧内边距，避免太靠边 */
}

.greeting-text h1 {
    font-size: clamp(20px, 4vw, 28px); /* 响应式字体 */
    font-weight: 400;
    color: #000;
    margin-bottom: 5px;
    letter-spacing: -0.4px;
    white-space: nowrap; /* 防止标题换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.greeting-message {
    font-size: clamp(14px, 2.5vw, 16px); /* 响应式字体 */
    background: linear-gradient(90deg, #7B6BD6 0%, #9B8BE6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap; /* 防止问候语换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-image {
    position: relative;
    width: clamp(80px, 15vw, 125px); /* 响应式宽度 */
    height: clamp(60px, 11vw, 92px); /* 响应式高度 */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保图片完整显示不被裁剪 */
    filter: drop-shadow(0 2px 8px rgba(123, 107, 214, 0.15));
}

/* 我的健康卡片 - 优化版（包含预置问题） */
.health-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 13px 15px 15px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(123, 107, 214, 0.08), 
                0 0 1px rgba(0, 0, 0, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.health-card:hover {
    box-shadow: 0 3px 16px rgba(123, 107, 214, 0.12), 
                0 0 1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
}

.health-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-icon {
    width: 3.5px;
    height: 16px;
    background: linear-gradient(180deg, #7B6BD6 0%, #9B8BE6 100%);
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 3px rgba(123, 107, 214, 0.3);
}

.health-text {
    font-size: 15.5px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.health-data-btn {
    background: rgba(242, 242, 247, 0.98);
    border: none;
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: all 0.25s ease;
    letter-spacing: 0;
    line-height: 1.3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.health-data-btn:hover {
    background: rgba(235, 235, 242, 0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.health-data-btn:active {
    background: rgba(225, 225, 235, 0.98);
    transform: scale(0.96);
}

.arrow-down {
    font-size: 9px;
    color: #999;
    margin-left: 0;
    line-height: 1;
}

/* 问题卡片列表 */
.question-cards {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 13px;
}

.question-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 
                0 1px 3px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 0.5px solid rgba(245, 245, 248, 0.8);
}

.question-card:hover {
    box-shadow: 0 4px 20px rgba(123, 107, 214, 0.12);
    transform: translateY(-1px);
}

.question-card:active {
    transform: scale(0.98) translateY(0);
}

.question-icon {
    background: linear-gradient(135deg, #7B6BD6 0%, #9B8BE6 100%);
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

.question-text {
    flex: 1;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.question-arrow {
    color: #D0D0D0;
    font-size: 20px;
    flex-shrink: 0;
    font-weight: 300;
}
