/* 主内容区域 */
.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: calc(var(--app-font-size) * 2.2);
    }

    .greeting-message {
        font-size: calc(var(--app-font-size) * 1.3);
    }

    .character-image {
        width: calc(var(--app-font-size) * 8);
        height: auto;
    }
}

/* 横屏大屏幕 */
@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: calc(var(--app-font-size) * 2.6);
        white-space: normal;
    }

    .greeting-message {
        font-size: calc(var(--app-font-size) * 1.5);
        white-space: normal;
    }

    .character-image {
        width: calc(var(--app-font-size) * 10);
        height: auto;
    }
}

/* 问候区域 */
.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: calc(var(--app-font-size) * 1.8); /* 响应式字体 */
        font-weight: 400;
        color: #000;
        margin-bottom: 5px;
        letter-spacing: -0.4px;
        white-space: normal; /* 允许换行 */
        word-break: break-word;
    }

    .greeting-message {
        font-size: calc(var(--app-font-size) * 1.1); /* 响应式字体 */
        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: normal; /* 允许换行 */
        word-break: break-word;
        line-height: 1.4;
    }

    .character-image {
        position: relative;
        width: calc(var(--app-font-size) * 6); /* 自适应宽度 */
        height: auto; /* 自适应高度 */
        min-width: 80px; /* 最小宽度 */
        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(59, 130, 246, 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: 1em; /* 自适应高度 */
    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: calc(var(--app-font-size) * 1.05); /* 响应式字体 */
    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: calc(var(--app-font-size) * 0.85); /* 响应式字体 */
    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: 2.25em; /* 自适应宽度 */
    height: 2.25em; /* 自适应高度 */
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--app-font-size); /* 基准字体 */
    font-weight: 700;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

.question-text {
    flex: 1;
    font-size: var(--app-font-size); /* 响应式字体 */
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.question-arrow {
    color: #D0D0D0;
    font-size: 1.25em; /* 自适应大小 */
    flex-shrink: 0;
    font-weight: 300;
}
