/* ================================================================
   医疗设备移动端框架样式
   顶部导航 / 横幅 / 功能入口 / 列表区 / 底部导航
   ================================================================ */

/* ----- 基础重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #f2f3f5;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

img,
svg {
    display: block;
}

ul {
    list-style: none;
}

/* ----- 页面容器（手机居中） ----- */
.m-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 750px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

/* ----- 顶部导航栏 ----- */
.m-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 8px;
    background: #fff;
    color: #333;
    border-bottom: 1px solid #eef0f2;
    flex-shrink: 0;
}

.m-topbar .m-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #555;
    border-radius: 50%;
}

.m-topbar .m-topbar-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.m-topbar .m-topbar-center {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.m-topbar .m-topbar-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-topbar .m-topbar-sub {
    font-size: 11px;
    color: #8a8f99;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----- 横幅 ----- */
.m-banner {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 16px;
    background: linear-gradient(135deg, #24536e 0%, #1f5d7f 100%);
    color: #fff;
    flex-shrink: 0;
}

.m-banner .m-banner-logo {
    width: 42px;
    height: 42px;
    color: #fff;
}

/* ----- 功能入口区 ----- */
.m-actions {
    display: flex;
    border-bottom: 1px solid #ebedf0;
    background: #fff;
    flex-shrink: 0;
}

.m-actions .m-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 118px;
    padding: 16px 0 18px;
    margin: 0;
    gap: 12px;
    cursor: pointer;
}

.m-actions .m-action:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #ebedf0;
}

.m-actions .m-action .m-action-icon {
    width: 52px;
    height: 52px;
}

.m-actions .m-action .m-action-icon svg {
    width: 100%;
    height: 100%;
}

.m-actions .m-action .m-action-text {
    font-size: 15px;
    color: #333;
    line-height: 1.2;
}

/* 维修查询：青蓝色 */
.m-action--query .m-action-icon {
    color: #14a7c9;
}

/* 设备报修：红色 */
.m-action--report .m-action-icon {
    color: #e05348;
}

/* ----- 区块标题 ----- */
.m-section-title {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    background: #f5f6f8;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.m-section-title::before {
    content: "";
    width: 3px;
    height: 14px;
    margin-right: 8px;
    border-radius: 2px;
    background: #1f5d7f;
}

/* ----- 内容区 ----- */
.m-content {
    flex: 1;
    padding: 12px;
    background: #fff;
}

/* ----- 底部导航栏 ----- */
.m-tabbar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    height: 54px;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom);
}

.m-tabbar .m-tabbar-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8a8f99;
}

.m-tabbar .m-tabbar-item .m-tabbar-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-tabbar .m-tabbar-item .m-tabbar-icon svg {
    width: 100%;
    height: 100%;
}

.m-tabbar .m-tabbar-item .m-tabbar-text {
    font-size: 11px;
    line-height: 1;
}

.m-tabbar .m-tabbar-item.active {
    color: #1f9b8a;
}
