/* 患者移动端专用样式 */

/* 移动端容器 */
.mobile-container {
    max-width: 414px;
    margin: 0 auto;
    background: #F5F5F5;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px; /* 为底部导航留空间 */
}

/* 顶部导航栏 */
.mobile-header {
    background: linear-gradient(135deg, #1890FF 0%, #096DD9 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-header-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-header-back {
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.mobile-header-action {
    font-size: 14px;
    cursor: pointer;
}

/* 底部Tab导航 */
.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #F0F0F0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

.mobile-tabbar-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: #8C8C8C;
}

.mobile-tabbar-item.active {
    color: #1890FF;
}

.mobile-tabbar-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.mobile-tabbar-label {
    font-size: 10px;
}

/* 移动端内容区 */
.mobile-content {
    padding: 16px;
}

/* 移动端卡片 */
.mobile-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 列表项 */
.mobile-list-item {
    background: white;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.mobile-list-item:active {
    background: #F5F5F5;
}

.mobile-list-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E6F7FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 12px;
}

.mobile-list-item-content {
    flex: 1;
}

.mobile-list-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #262626;
}

.mobile-list-item-desc {
    font-size: 12px;
    color: #8C8C8C;
}

.mobile-list-item-arrow {
    color: #BFBFBF;
    font-size: 14px;
}

/* 宫格布局 */
.mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.mobile-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mobile-grid-item {
    text-align: center;
    text-decoration: none;
    color: #595959;
}

.mobile-grid-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1890FF 0%, #096DD9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 8px;
}

.mobile-grid-label {
    font-size: 12px;
}

/* 徽章 */
.mobile-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F5222D;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}

/* 标签组 */
.mobile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

/* 表单 */
.mobile-form-item {
    margin-bottom: 16px;
}

.mobile-form-label {
    font-size: 14px;
    color: #595959;
    margin-bottom: 8px;
    display: block;
}

.mobile-form-input {
    width: 100%;
    height: 44px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.mobile-form-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
}

/* 轮播图 */
.mobile-swiper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.mobile-swiper-item {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* 分割线 */
.mobile-divider {
    height: 8px;
    background: #F5F5F5;
    margin: 16px -16px;
}

/* 空状态 */
.mobile-empty {
    text-align: center;
    padding: 48px 16px;
    color: #8C8C8C;
}

.mobile-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.mobile-empty-text {
    font-size: 14px;
}

/* 加载更多 */
.mobile-loadmore {
    text-align: center;
    padding: 16px;
    color: #8C8C8C;
    font-size: 14px;
}

/* 固定底部按钮 */
.mobile-fixed-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 414px;
    margin: 0 auto;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #F0F0F0;
    z-index: 99;
}

/* 进度条 */
.mobile-progress {
    width: 100%;
    height: 8px;
    background: #F0F0F0;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.mobile-progress-bar {
    height: 100%;
    background: #1890FF;
    transition: width 0.3s;
}

/* 时间轴 */
.mobile-timeline {
    position: relative;
    padding-left: 32px;
}

.mobile-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.mobile-timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 8px;
    width: 2px;
    height: 100%;
    background: #F0F0F0;
}

.mobile-timeline-dot {
    position: absolute;
    left: -30px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1890FF;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #1890FF;
}

.mobile-timeline-item:last-child::before {
    display: none;
}

/* 日历周视图 */
.mobile-calendar-week {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
}

.mobile-calendar-day {
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

.mobile-calendar-day.active {
    background: #1890FF;
    color: white;
}

.mobile-calendar-day-label {
    font-size: 12px;
    margin-bottom: 4px;
}

.mobile-calendar-day-date {
    font-size: 16px;
    font-weight: 600;
}

.mobile-calendar-day-dot {
    width: 4px;
    height: 4px;
    background: #F5222D;
    border-radius: 50%;
    margin: 4px auto 0;
}