/* * 患者转运中心调度管理平台 - 移动端专用样式表 (mobile_style.css)
 * 覆盖 style.css，用于构建小程序/H5风格的界面
 */

/* === 1. 基础重置 === */
body {
    background: #f4f6f8; /* 移动端常用的浅灰色背景 */
    min-height: 100vh;
}

/* === 2. 布局覆盖 (PC -> Mobile) === */
/* 移除PC端的.container限制 */
.container {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* 隐藏PC端的.header */
.header {
    display: none;
}

/* 移除PC端的.content内外边距和阴影 */
.content {
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent; /* 背景由 body 控制 */
}

/* === 3. 移动端新布局 === */
.mobile-screen {
    width: 100%;
    margin: 0 auto;
    background: #f4f6f8;
    min-height: 100vh;
}

.mobile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header .back-btn {
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 15px;
    text-decoration: none;
    color: white;
    line-height: 1;
}

.mobile-header .title {
    flex-grow: 1;
    text-align: center;
    /* 动态调整居中 */
    padding-right: 2.5em; /* 约等于返回按钮的宽度 */
}

.mobile-header .right-action {
    font-size: 0.9em;
    text-decoration: none;
    color: white;
}

.mobile-content {
    padding: 15px;
}

/* === 4. 组件覆盖 === */

/* 按钮组: 移动端默认为垂直堆叠 */
.btn-group {
    flex-direction: column;
}
.btn-group .btn {
    width: 100%;
}

/* 模态框: 移动端更贴合屏幕 */
.modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
}

/* 标签页: 移动端均分宽度 */
.tabs {
    background: white;
    position: sticky;
    top: 0; /* 适用于没有 mobile-header 的页面 */
    z-index: 9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.tab {
    flex: 1; /* 均分 */
    text-align: center;
    padding: 15px 10px;
    font-size: 1em;
}
/* 修正 .tab-content 的内边距 */
.tab-content {
    padding: 15px;
}
/* 如果 .mobile-content 包含 .tabs，移除 .mobile-content 的内边距 */
.mobile-content.has-tabs {
    padding: 0;
}

/* 卡片: 移动端默认100%宽度，调整内边距 */
.card {
    padding: 15px;
}
.card h3 {
    font-size: 1.1em;
}

/* 表单: 标签字体缩小 */
.form-group label {
    font-size: 0.95em;
}

/* 表格: 字体缩小 */
.table {
    font-size: 14px;
}

/* section: 减小标题字号和下边距 */
.section {
    margin-bottom: 20px;
}
.section h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* 列表项 (例如用于指派) */
.list-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-item:last-child {
    margin-bottom: 0;
}
.list-item-content {
    flex-grow: 1;
}
.list-item-content h4 {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}
.list-item-content p {
    font-size: 0.9em;
    color: #7f8c8d;
}
.list-item-action input {
    transform: scale(1.5); /* 放大勾选框 */
}
  .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #fff;
            display: flex;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            z-index: 100;
        }
        .nav-item {
            flex: 1;
            text-align: center;
            padding: 10px 0;
            text-decoration: none;
            color: #7f8c8d;
        }
        .nav-item.active {
            color: #667eea;
        }
        .nav-item-icon {
            font-size: 1.5em;
            display: block;
        }
        .nav-item-label {
            font-size: 0.8em;
            display: block;
        }