/* ==========================================================================
   武汉安居租房 APP 风格 - 移动端UI改版
   主色调：大红色 #E53935 / 橙红色
   卡片：白底圆角卡片
   ========================================================================== */

/* ========== 变量覆盖 ========== */
.app-shell {
    --anjie-red: #E53935;
    --anjie-red-dark: #C62828;
    --anjie-red-light: #FFEBEE;
    --anjie-orange: #FF6D00;
    --anjie-orange-light: #FFF3E0;
    --anjie-green: #4CAF50;
    --anjie-green-light: #E8F5E9;
    --card-bg: #FFFFFF;
    --text-main: #212121;
    --text-regular: #424242;
    --text-secondary: #757575;
    --text-placeholder: #9E9E9E;
    --border: #F5F5F5;
    --bg-page: #FAFAFA;
}

/* ========== 手机壳框架 ========== */
.app-shell .phone-frame {
    background: #0d0f12;
    border-radius: 46px;
    padding: 11px;
    overflow: visible;
    box-shadow:
        0 0 0 2px #2b3038,
        0 0 0 5px #101318,
        0 18px 45px rgba(0, 0, 0, .3);
}
/* 侧边实体键：音量在左、电源在右，贴齐机身外缘 */
.app-shell .phone-frame::before {
    left: -3px; width: 3px; top: 116px; height: 26px; background: #3a4048;
}
.app-shell .phone-frame::after {
    right: -3px; width: 3px; top: 152px; height: 40px; background: #3a4048;
}
.app-shell .phone-screen { border-radius: 36px; }

/* ========== 状态栏：时间 / 信号 / WiFi / 电量 ========== */
.phone-statusbar {
    height: 34px; flex-shrink: 0; position: relative; z-index: 3;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; background: var(--anjie-red);
    color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px;
}
.phone-statusbar .sb-icons { display: flex; align-items: center; gap: 5px; }
.phone-statusbar svg { display: block; }
.phone-island {
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 84px; height: 22px; background: #0b0d10; border-radius: 12px;
}

/* ========== 顶部标题栏 - 大红色风格 ========== */
.phone-header {
    background: var(--anjie-red);
    height: 48px;
    padding: 0 16px;
    border-bottom: none;
    position: relative;
}

.phone-header .ph-title {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.phone-header .ph-badge {
    background: #FFFFFF;
    color: var(--anjie-red);
    font-size: 11px;
    padding: 0 6px;
    border-radius: 8px;
}

/* ========== 手机内容区 ========== */
.phone-body {
    background: #FAFAFA;
    padding: 12px;
}

/* ========== 工作台首页 - 网格宫格风格 ========== */
.wb-header {
    background: linear-gradient(135deg, var(--anjie-red) 0%, #FF6D00 100%);
    padding: 16px;
    margin: -12px -12px 12px;
    border-radius: 0;
}

.wb-header .wb-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wb-header .wb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.4);
}

.wb-header .wb-name {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.wb-header .wb-project {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 12px;
    color: #FFFFFF;
    outline: none;
    cursor: pointer;
}

/* 工作台应用卡片 */
.wb-app-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wb-app-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    padding-left: 12px;
    margin-bottom: 14px;
    position: relative;
}

.wb-app-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 2px;
    background: var(--anjie-red);
}

/* 网格宫格 - 4列 */
.wb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}

.wb-item {
    text-align: center;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 10px;
    transition: all 0.2s;
}

.wb-item:hover {
    background: #F5F5F5;
}

.wb-item:active {
    transform: scale(0.95);
}

.wb-item .wb-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.wb-item .wb-label {
    font-size: 11px;
    color: var(--text-regular);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 列表页 - 白底卡片 + 状态标签 ========== */
.app-search {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #F0F0F0;
}

.app-search .as-icon {
    color: var(--anjie-red);
    opacity: 0.7;
}

.app-search .as-input {
    font-size: 13px;
    color: var(--text-main);
}

/* 状态筛选横向标签 */
.app-status-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    margin-bottom: 0;
    scrollbar-width: none;
}

.app-status-chips::-webkit-scrollbar {
    display: none;
}

.app-status-chips .asc-item {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.app-status-chips .asc-item.active {
    color: #FFFFFF;
    background: var(--anjie-red);
    border-color: var(--anjie-red);
    font-weight: 600;
}

/* 任务卡片 - 白底圆角卡片 */
.app-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border: 1px solid #FAFAFA;
}

.app-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.app-card:active {
    transform: scale(0.98);
}

.app-card.is-new {
    border-left: 3px solid var(--anjie-red);
}

.app-new-dot {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    background: var(--anjie-red);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ac-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* 状态标签 - 红色/橙色/绿色 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tag-red {
    background: #FFEBEE;
    color: var(--anjie-red);
}

.tag-orange {
    background: #FFF3E0;
    color: var(--anjie-orange);
}

.tag-green {
    background: #E8F5E9;
    color: var(--anjie-green);
}

.tag-blue {
    background: #E3F2FD;
    color: #1976D2;
}

.tag-purple {
    background: #F3E5F5;
    color: #7B1FA2;
}

.tag-gray {
    background: #F5F5F5;
    color: #757575;
}

/* 卡片元数据 */
.ac-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F5F5F5;
}

.ac-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ac-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ac-rectify {
    font-size: 12px;
    color: var(--text-secondary);
}

.ac-rectify.ok {
    color: var(--anjie-green);
}

.ac-rectify.warn-text {
    color: var(--anjie-orange);
}

/* ========== 按钮样式 ========== */
.app-btn {
    background: var(--anjie-red);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.app-btn:hover {
    background: var(--anjie-red-dark);
}

.app-btn:active {
    transform: scale(0.96);
}

.app-btn.ghost {
    background: #FFFFFF;
    color: var(--anjie-red);
    border: 1px solid var(--anjie-red);
}

.app-btn.ghost:hover {
    background: #FFEBEE;
}

.app-btn.warn {
    background: var(--anjie-orange);
    color: #FFFFFF;
}

.app-btn.warn:hover {
    background: #F57C00;
}

.app-btn.purple {
    background: #7B1FA2;
    color: #FFFFFF;
}

.app-done-tag {
    font-size: 12px;
    color: var(--anjie-green);
    background: #E8F5E9;
    padding: 4px 10px;
    border-radius: 12px;
}

/* ========== 详情页 - 左右两列键值对 ========== */
.app-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.app-detail-head .ath-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

/* 详情信息卡 */
.md-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.md-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F5F5F5;
}

.md-title .md-status {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 左右两列键值对 */
.md-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #F5F5F5;
    font-size: 13px;
}

.md-row:last-child {
    border-bottom: none;
}

.md-label {
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 90px;
    font-size: 12px;
}

.md-value {
    flex: 1;
    text-align: right;
    color: var(--text-main);
    font-weight: 500;
    word-break: break-all;
}

.md-copy-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.md-copy {
    color: var(--anjie-red);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

/* 状态标签色块 */
.md-status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.md-status-tag.red {
    background: #FFEBEE;
    color: var(--anjie-red);
}

.md-status-tag.orange {
    background: #FFF3E0;
    color: var(--anjie-orange);
}

.md-status-tag.green {
    background: #E8F5E9;
    color: var(--anjie-green);
}

/* ========== 流程节点时间线 ========== */
.md-node {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.md-node .nd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--anjie-red);
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #FFEBEE;
}

.md-node .nd-body {
    flex: 1;
}

.md-node .nd-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.md-node .nd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-main);
}

.md-node .nd-key {
    font-weight: 500;
}

.md-node .nd-val {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ========== 底部导航 - Tab栏 ========== */
.app-tabbar {
    background: var(--card-bg);
    border-top: 1px solid #F0F0F0;
    height: 56px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.app-tabbar .atb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s;
}

.app-tabbar .atb-item.active {
    color: var(--anjie-red);
}

.app-tabbar .atb-icon {
    font-size: 20px;
    line-height: 1;
}

.app-tabbar .atb-icon b {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--anjie-red);
    color: #FFFFFF;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* 中间突出悬浮圆形入口 */
.app-tabbar .atb-item.center {
    position: relative;
    flex: 0 0 auto;
    padding: 0 16px;
}

.app-tabbar .atb-item.center .atb-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--anjie-red);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-top: -22px;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
    border: 3px solid #FFFFFF;
}

.app-tabbar .atb-item.center .atb-label {
    color: var(--anjie-red);
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}

.app-tabbar-spacer {
    height: 56px;
}

/* ========== 列表头 ========== */
.app-list-head {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-list-head .alh-project {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-list-head .alh-label {
    font-size: 10px;
    font-weight: 400;
    color: var(--anjie-red);
    background: #FFEBEE;
    border-radius: 4px;
    padding: 2px 6px;
}

.app-list-head .alh-hint {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ========== 任务Tab ========== */
.app-home-tabs {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    gap: 4px;
}

.app-home-tabs .aht-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.app-home-tabs .aht-item.active {
    background: var(--anjie-red);
    color: #FFFFFF;
    font-weight: 600;
}

.app-home-tabs .aht-item em {
    font-style: normal;
    margin-left: 3px;
    font-size: 10px;
    opacity: 0.85;
}

/* ========== 页面区块标题 ========== */
.app-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 3px solid var(--anjie-red);
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-section-title em {
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    background: #F5F5F5;
    padding: 1px 6px;
    border-radius: 8px;
}

/* ========== 空状态 ========== */
.app-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.app-empty span {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

/* ========== 底部主按钮 - 红色长条 ========== */
.app-fixed-btn {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 68px;
    z-index: 20;
}

.app-fixed-btn .app-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* ========== 消息提醒FAB ========== */
.app-msg-fab {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.app-msg-fab b {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--anjie-red);
    color: #FFFFFF;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ========== 巡检项卡片样式 ========== */
.mt-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    cursor: pointer;
}

.mtc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mtc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.mtc-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mtc-status.red {
    background: #FFEBEE;
    color: var(--anjie-red);
}

.mtc-status.green {
    background: #E8F5E9;
    color: var(--anjie-green);
}

.mtc-status.orange {
    background: #FFF3E0;
    color: var(--anjie-orange);
}

.mtc-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.mtc-label {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.mtc-value {
    color: var(--text-main);
}

.mtc-copy {
    color: var(--anjie-red);
    font-size: 11px;
    margin-left: auto;
    cursor: pointer;
    font-weight: 500;
}

.mtc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #F5F5F5;
}

.mtc-time {
    font-size: 11px;
    color: var(--text-placeholder);
}

.mt-btn {
    border: 1px solid var(--anjie-red);
    color: var(--anjie-red);
    background: #FFFFFF;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mt-btn:active {
    background: #FFEBEE;
}

/* ========== Tab样式 ========== */
.m-tabs {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.m-tabs::-webkit-scrollbar {
    display: none;
}

.m-tab {
    flex-shrink: 0;
    padding: 12px 0 10px;
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.m-tab.active {
    color: var(--anjie-red);
    font-weight: 600;
}

.m-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 1px;
    background: var(--anjie-red);
}

/* ========== Hero区域（任务详情顶部） ========== */
.app-hero {
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--anjie-red) 0%, #FF6D00 100%);
}

.app-hero.done {
    background: linear-gradient(135deg, var(--anjie-green) 0%, #66BB6A 100%);
}

.app-hero.wait {
    background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
}

.app-hero .ah-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.app-hero .ah-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.app-hero .ah-type {
    font-size: 11px;
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 2px 8px;
}

.app-hero .app-status-tag {
    background: rgba(255,255,255,0.3);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
}

/* ========== 双列键值对网格 ========== */
.adc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
}

.adc-grid .adc-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.adc-grid .adc-cell.full {
    grid-column: 1 / -1;
}

.adc-grid .adc-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.adc-grid .adc-value {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    word-break: break-all;
}

/* ========== 房间图选择 ========== */
.room-floor {
    margin-bottom: 12px;
}

.room-floor-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin: 4px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-floor-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #F5F5F5;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.room-card {
    position: relative;
    background: var(--card-bg);
    border: 1.5px solid #F0F0F0;
    border-radius: 8px;
    padding: 10px 4px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.room-card:hover {
    border-color: var(--anjie-red);
}

.room-card:active {
    transform: scale(0.96);
}

.room-card .rc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.room-card .rc-tag {
    font-size: 10px;
    margin-top: 3px;
    border-radius: 4px;
    padding: 1px 6px;
}

.room-card .rc-tag.live {
    color: var(--anjie-green);
    background: #E8F5E9;
}

.room-card .rc-tag.wait {
    color: var(--anjie-orange);
    background: #FFF3E0;
}

.room-card .rc-tag.idle {
    color: var(--text-secondary);
    background: #F5F5F5;
}

.room-card .rc-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--anjie-red);
    color: #FFFFFF;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* 房屋本自然年巡查次数角标（区间色弱化：0 灰 / 1-2 绿 / ≥3 红，次年清零） */
.room-card .rc-visits {
    position: absolute;
    top: 4px;
    left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 8px;
    z-index: 1;
}
.room-card .rc-visits b { font-size: 10px; }
.room-card .rc-visits.visits-low { background: #F5F5F5; color: #9E9E9E; }
.room-card .rc-visits.visits-ok { background: #E8F5E9; color: #2E7D32; }
.room-card .rc-visits.visits-warn { background: #FFEBEE; color: #C62828; }
.room-card.selected .rc-visits { display: inline-flex; }

.room-card.selected {
    background: #FFEBEE;
    border-color: var(--anjie-red);
}

.room-card.selected .rc-name {
    color: var(--anjie-red);
}

.room-card.selected .rc-check {
    display: flex;
}

/* ========== 房间调整卡片（任务填写页） ========== */
.app-room-edit-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.app-room-edit-card .app-room-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.app-room-edit-card .are-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}
.app-room-edit-card .are-count {
    font-size: 12px;
    color: var(--text-secondary);
}
.app-room-edit-card .are-rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.app-room-edit-card .are-empty {
    font-size: 12px;
    color: var(--text-placeholder);
}
.app-room-edit-card .are-edit-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(229,57,53,0.25);
}

/* ========== 入户巡检：房间切换 Tab ========== */
.app-room-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.app-room-tabs::-webkit-scrollbar { display: none; }
.art-item {
    flex: 0 0 auto;
    min-width: 116px;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 11px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    cursor: pointer;
    transition: all .18s;
}
.art-item.active {
    border-color: var(--anjie-red);
    background: var(--anjie-red-light);
}
.art-item .art-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}
.art-item.active .art-name { color: var(--anjie-red-dark); }
.art-item .art-live {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.5;
    padding: 0 4px;
    border-radius: 3px;
    color: var(--anjie-green);
    background: var(--anjie-green-light);
}
.art-item .art-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.art-item .art-meta .ok { color: var(--anjie-green); font-weight: 600; }
.art-item .art-meta .fail { color: var(--anjie-red); font-weight: 600; }
.art-item .art-meta .wait { color: var(--anjie-orange); }

.app-progress-meta.sub {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--text-placeholder);
}

/* ========== 入户巡检：住户签名（仅留痕，不强校验） ========== */
.app-sign-card { border-left-color: var(--anjie-orange); }
.app-sign-card .asp-tip {
    align-self: center;
    font-size: 11px;
    color: var(--anjie-orange);
    white-space: nowrap;
}
.app-sign-pad {
    position: relative;
    background: #fafafa;
    border: 1px dashed #c9ced6;
    border-radius: 8px;
    overflow: hidden;
}
.app-sign-pad canvas {
    display: block;
    width: 100%;
    height: 120px;
    touch-action: none;
    cursor: crosshair;
}
.app-sign-pad .asp-hint {
    position: absolute;
    left: 0; right: 0; bottom: 6px;
    text-align: center;
    font-size: 10px;
    color: var(--text-placeholder);
    pointer-events: none;
}
.app-sign-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.app-sign-actions .asp-state { font-size: 11px; color: var(--text-placeholder); }
.app-sign-actions .asp-state.ok { color: var(--anjie-green); font-weight: 600; }
.app-btn.sm {
    width: auto;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: none;
}
.app-sign-view {
    background: #fafafa;
    border: 1px solid var(--border-dark, #e4e7ed);
    border-radius: 8px;
    padding: 6px;
}
.app-sign-view img { display: block; width: 100%; height: 96px; object-fit: contain; }

/* ========== 评分录入 ========== */
.app-score-total {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.app-score-total .ast-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.app-score-total .ast-score b {
    font-size: 32px;
    line-height: 1;
    color: var(--anjie-red);
    font-weight: 700;
}

.app-score-total .ast-score .ast-unit {
    font-size: 13px;
    color: var(--text-main);
}

.app-score-total .ast-score .ast-full {
    font-size: 12px;
    color: var(--text-secondary);
}

.app-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.app-score-row .asr-name {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.app-score-row .asr-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.app-score-row .asr-score {
    font-size: 16px;
    font-weight: 600;
}

.app-score-row .asr-score.full {
    color: var(--anjie-green);
}

.app-score-row .asr-score.lost {
    color: var(--anjie-red);
}


/* ========== 提示Toast ========== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: rgba(0,0,0,0.85);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

/* ========== 响应式 ========== */
@media (max-width: 360px) {
    .wb-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px 4px;
    }
    
    .wb-item .wb-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .wb-item .wb-label {
        font-size: 10px;
    }
    
    .room-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ==========================================================================
   移动端巡检功能优化（仅作用于手机内容区，避免影响 PC 端）
   1. 巡检项行内单项选择（正常/异常）
   2. 综合巡检非满分必填扣分原因
   ========================================================================== */
.phone-body .app-check-row.editable {
    flex-wrap: wrap;
    cursor: default;
    border-left: 3px solid transparent;
    transition: border-color .2s;
}
.phone-body .app-check-row.editable:hover { box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.phone-body .app-check-row .acr-body { flex: 1; min-width: 0; }
.phone-body .app-check-row .acr-name { font-size: 13px; color: var(--text-main); line-height: 1.5; }

.phone-body .acr-opts {
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
}
.phone-body .acr-opt {
    min-width: 56px;
    text-align: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    color: var(--text-regular);
    transition: all .2s;
}
.phone-body .acr-opt:active { transform: scale(.96); }
.phone-body .acr-opt.ok.active {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}
.phone-body .acr-opt.fail.active {
    background: #FFEBEE;
    border-color: #E53935;
    color: #C62828;
}
.phone-body .app-check-row .acr-arrow {
    font-size: 12px;
    color: var(--anjie-red);
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 综合巡检：非满分项 + 扣分原因 */
.phone-body .app-score-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.phone-body .app-score-item .app-score-row { margin-bottom: 0; box-shadow: none; padding: 0; background: transparent; }
.phone-body .asr-reason { margin-top: 10px; }
.phone-body .asr-reason label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.phone-body .asr-reason label::before { content: '*'; color: var(--anjie-red); margin-right: 3px; }
.phone-body .asr-reason-input {
    width: 100%;
    min-height: 64px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    background: #FFFFFF;
    box-sizing: border-box;
}
.phone-body .asr-reason-input:focus { border-color: var(--anjie-red); box-shadow: 0 0 0 2px rgba(229,57,53,.1); }
.phone-body .asr-reason-text {
    font-size: 12px;
    color: var(--text-regular);
    background: #FAFAFA;
    border-radius: 6px;
    padding: 8px 10px;
    line-height: 1.6;
}
.phone-body .app-score-item .asr-score.lost { color: var(--anjie-red); }
.phone-body .app-score-item .asr-score.full { color: #2E7D32; }