/* 梵净山OA - 移动端样式 */
:root {
  --primary-color: #1890ff;
  --success-color: #52c41a;
  --warning-color: #faad14;
  --error-color: #f5222d;
  --bg-gray: #f5f5f5;
  --bg-white: #ffffff;
  --text-main: #333333;
  --text-sub: #666666;
  --text-tip: #999999;
  --border-color: #e8e8e8;
  --safe-bottom: env(safe-area-inset-bottom);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif; background: var(--bg-gray); color: var(--text-main); font-size: 14px; }

/* 页面容器 */
.page { min-height: 100vh; padding-bottom: calc(56px + var(--safe-bottom)); }

/* 顶部导航栏 */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--primary-color); color: white; padding: 12px 16px; display: flex; align-items: center; justify-content: center; height: 48px; }
.navbar .back { position: absolute; left: 12px; font-size: 18px; padding: 4px 8px; }
.navbar .title { font-size: 16px; font-weight: 500; }
.navbar .action { position: absolute; right: 12px; font-size: 14px; padding: 4px 8px; }

/* 底部TabBar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--border-color); display: flex; padding-bottom: var(--safe-bottom); z-index: 100; }
.tabbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0; color: var(--text-tip); font-size: 11px; gap: 2px; text-decoration: none; }
.tabbar-item .icon { font-size: 22px; line-height: 1; }
.tabbar-item.active { color: var(--primary-color); }

/* 卡片 */
.card { background: white; border-radius: 8px; margin: 12px; padding: 14px; }
.card-title { font-size: 15px; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.card-title .more { font-size: 12px; color: var(--text-tip); }

/* 列表项 */
.list-item { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.list-item:last-child { border-bottom: none; }
.list-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 12px; background: rgba(24,144,255,0.08); }
.list-body { flex: 1; }
.list-title { font-size: 15px; margin-bottom: 4px; }
.list-desc { font-size: 12px; color: var(--text-tip); }
.list-arrow { color: var(--text-tip); font-size: 12px; }
.list-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.status-pending { background: #fff7e6; color: var(--warning-color); }
.status-approved { background: #f6ffed; color: var(--success-color); }
.status-rejected { background: #fff1f0; color: var(--error-color); }

/* 按钮 */
.btn-primary { background: var(--primary-color); color: white; border: none; border-radius: 20px; padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 14px; }
.btn-outline { background: white; color: var(--primary-color); border: 1px solid var(--primary-color); }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; display: block; }
.form-input, .form-select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 14px; background: white; }

/* 搜索栏 */
.search-bar { padding: 10px 12px; background: white; position: sticky; top: 48px; z-index: 99; }
.search-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 16px; font-size: 13px; background: var(--bg-gray); }

/* 浮动操作按钮 */
.fab { position: fixed; right: 16px; bottom: calc(72px + var(--safe-bottom)); width: 52px; height: 52px; border-radius: 50%; background: var(--primary-color); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 12px rgba(24,144,255,0.4); z-index: 90; border: none; }

/* 标签页 */
.tabs { display: flex; background: white; border-bottom: 1px solid var(--border-color); }
.tab { flex: 1; text-align: center; padding: 12px; font-size: 14px; color: var(--text-sub); position: relative; }
.tab.active { color: var(--primary-color); font-weight: 500; }
.tab.active::after { content: ''; position: absolute; bottom: 0; left: 30%; right: 30%; height: 2px; background: var(--primary-color); border-radius: 1px; }

/* 工作台网格 */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.app-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text-main); }
.app-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(24,144,255,0.08); }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: var(--text-tip); }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* 时间轴 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-dot { position: absolute; left: -22px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-color); border: 2px solid white; }
.timeline-time { font-size: 12px; color: var(--text-tip); margin-bottom: 4px; }
.timeline-title { font-size: 14px; margin-bottom: 2px; }
.timeline-desc { font-size: 12px; color: var(--text-sub); }

/* 会议室卡片 */
.room-card-m { background: white; border-radius: 8px; margin: 12px; overflow: hidden; }
.room-image-m { height: 120px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 48px; color: rgba(255,255,255,0.9); }
.room-info-m { padding: 12px; }
.room-name-m { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.room-meta-m { font-size: 12px; color: var(--text-tip); margin-bottom: 10px; }
.room-tags-m { display: flex; gap: 6px; flex-wrap: wrap; }
.room-tag-m { font-size: 11px; padding: 2px 8px; background: var(--bg-gray); border-radius: 10px; color: var(--text-sub); }

/* 审批流程步骤 */
.flow-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.flow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); margin-top: 4px; }
.flow-dot.active { background: var(--primary-color); }
.flow-text { font-size: 13px; }
.flow-name { font-weight: 500; margin-bottom: 2px; }
.flow-status { font-size: 11px; color: var(--text-tip); }
