/* 
   合粒汇物联 - 全局变量与基础规范
   所有业务页面都应引入此文件以保证风格统一
*/

:root {
    /* 核心品牌色 */
    --logo-blue: #004098;
    --logo-cyan: #00A0E9;
    --logo-green: #8FC31F;
    
    /* 界面基础色调 */
    --bg-main: #F1F5F9;
    --bg-white: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    /* 圆角 */
    --radius-card: 20px;
    --radius-circle: 50%;
    --radius-pill: 30px;
    
    /* 投影 */
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px rgba(0, 64, 152, 0.15);
    
    /* 间距 */
    --safe-area-bottom: env(safe-area-inset-bottom);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* 通用渐变按钮基础 */
.btn-primary {
    background: linear-gradient(145deg, var(--logo-blue), var(--logo-cyan));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:active {
    transform: scale(0.95);
    opacity: 0.9;
}
/* 
   ==========================================================================
   公共导航组件 - 悬浮毛玻璃 Pro Max 级 (Global Tabbar)
   ==========================================================================
*/
.tabbar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 68px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 9999;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #94A3B8; /* var(--text-muted) */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    flex: 1;
}

.tab-item.active {
    color: #004098; /* var(--logo-blue) */
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 22px;
}

.tab-text {
    font-size: 11px;
    font-weight: 700;
}
