        /* --- 主题与全局 --- */
        :root {
            --bg-color: #f0f2f5; --phone-bg: #F8F9FA; --primary-text: #1d2129;
            --secondary-text: #8a8d91; --accent-color: #007AFF; --border-color: #dee2e6;
            --bubble-user: #007AFF; --bubble-user-text: #200707; --bubble-ai: #E9ECEF;
            --bubble-ai-text: #1d2129; --page-transition-duration: 0.3s;
			--bg-color-secondary: #ffffff; /* 卡片背景色 (白色) */
            --bg-color-tertiary: #f8f9fa;  /* 悬停/高亮背景色 (淡灰色) */
            --tertiary-text: #adb5bd;      
			--header-bg-rgb: 255, 255, 255;
			--header-background-image: none;
			 --page-background-image: none;
        }
		
		/* --- 推荐的全局设置 --- */
		* {
		    box-sizing: border-box;
		}


                /* --- 基础布局 --- */
        /* --- 全局顶部状态栏样式 --- */
#global-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px; /* 状态栏高度 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    z-index: 10000; /* 确保在最顶层 (比弹窗低一点，比页面高) */
    pointer-events: none; /* 让点击穿透，不影响下面操作 */
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text); /* 默认深色字 */
    /* 添加一点背景模糊，确保在复杂背景上可见 */
    backdrop-filter: blur(1px); 
    /* 适配刘海屏模拟（可选） */
    box-sizing: border-box;
}

#global-status-bar .status-left,
#global-status-bar .status-right {
    display: flex;
    align-items: center;
}

#global-status-bar .status-right {
    gap: 4px;
}

/* 电池图标绘制 */
.battery-icon {
    width: 22px;
    height: 11px;
    border: 1px solid currentColor; /* 跟随文字颜色 */
    border-radius: 2px;
    position: relative;
    padding: 1px;
    display: flex;
    align-items: center;
}

/* 电池正极头 */
.battery-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 5px;
    background-color: currentColor;
    border-radius: 0 1px 1px 0;
}

/* 电池电量填充 */
#battery-fill {
    height: 100%;
    width: 0%;
    background-color: currentColor;
    border-radius: 1px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* 电量低时的颜色 */
#global-status-bar.low-battery #battery-fill {
    background-color: #ff3b30; /* 红色 */
}
#global-status-bar.low-battery .battery-icon {
    border-color: #ff3b30;
}
#global-status-bar.low-battery #status-battery-level {
    color: #ff3b30;
}

/* 充电时的闪电图标 */
#charging-indicator {
    font-size: 12px;
    margin-left: 2px;
    color: #34c759; /* 绿色 */
}

       /* --- 基础布局 (无边框修正版) --- */
       html {
           height: 100%;
		   overflow: hidden; /* <-- 非常重要！禁止html和body滚动 */
    overscroll-behavior: contain; /* <-- 锦上添花，防止滚动穿透 */
       }
       body { 
           background-color: var(--bg-color); 
           font-family: 'Inter', sans-serif; 
           height: 100%;
           margin: 0;
           overscroll-behavior: contain;
		   overflow: hidden; /* <-- 非常重要！禁止html和body滚动 */
       }
       
       .phone-container {
           width: 100%;
           height: 100%;/* 使用 vh 单位，直接获取视口高度 */
           background: none;
           padding: 0;
           box-shadow: none;
       }.phone-body { background: var(--phone-bg); width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; position: relative;    zoom: var(--global-zoom-factor, 1.0); }
        
        /* --- 页面导航 --- */
        /* --- 页面导航 (修改为淡入淡出效果) --- */
        .page-stack { 
    position: relative; 
    width: 100%; 
    flex: 1; /* 使用此复合属性替换 height 和 flex-grow */
    min-height: 0; /* 【重要】添加此行以增强布局稳定性 */
}
        .page { 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background-color: var(--phone-bg); 
            display: flex; 
            flex-direction: column; 
            /* 核心修改：过渡效果改为透明度和缩放 */
            transition: opacity var(--page-transition-duration) ease-in-out, 
                        transform var(--page-transition-duration) ease-in-out; 
            /* 默认状态：完全透明，不可点击 */
            opacity: 0; 
            pointer-events: none; 
            z-index: 1; 
			overflow: hidden;
        }
		/* ▼▼▼ 全新添加下面的伪元素样式 ▼▼▼ */
		.page::before {
		    content: '';
		    position: absolute;
		    top: 0;
		    left: 0;
		    width: 100%;
		    height: 100%;
		    
		    /* 核心！背景图应用在这里 */
		    background-image: var(--page-background-image);
		    background-size: cover;
		    background-position: center;
		    
		    /* 把它放在内容后面，背景色的前面 */
		    z-index: -1; 
		    
		    /* (可选) 你甚至可以给背景图本身加一点模糊，让效果更梦幻 */
		    /* filter: blur(2px); */
		}
        .page.active { 
            /* active状态：完全不透明，恢复正常大小，可点击 */
            opacity: 1; 
            transform: scale(1);
            pointer-events: auto; 
            z-index: 2; /* 显示在最上层 */
        }
        .page.previous {
            /* 后退时，下层页面保持可见，但无交互 */
            opacity: 1;
            pointer-events: none;
            z-index: 1; 
            /* 可以加一个轻微的缩放，更有层次感 */
            transform: scale(0.98); 
        }


        /* --- 通用 UI --- */
              .app-header {
           /* 1. 将布局模式从 flex 改为 grid */
           display: grid;
           /* 2. 定义一个三列网格 */
           grid-template-columns: 1fr auto 1fr; /* 左中右三列 */
           align-items: center;
           padding: 48px 8px 12px; /* <-- 修改这里，顶部内边距改为 34px(为状态栏留出空间) */
           flex-shrink: 0;
           border-bottom: 1px solid var(--border-color);
           background-color: rgba(var(--header-bg-rgb), 0.9);
           backdrop-filter: blur(10px);
           position: relative;
           z-index: 5; 
           background-color: var(--headerBg); 
           background-image: var(--header-background-image); 
           background-size: cover;          
           background-position: center;     
       }

	   .header-left, .header-right {
	       display: flex;
	       align-items: center;
	   }
	   .header-right {
	       justify-content: flex-end; /* 让右侧按钮靠右对齐 */
	   }
	   /* --- --- */
	   .app-header .back-btn, .app-header .action-btn { 
	       background: none; 
	       border: none; 
	       cursor: pointer; 
	       padding: 8px;
	       /* ▼▼▼【核心修复 ①】新增固定的宽高，为背景图提供“画布” ▼▼▼ */
	       width: 40px;
	       height: 40px;
	       display: flex;
	       align-items: center;
	       justify-content: center;
	   }
	   .app-header .back-btn { margin-left: -8px; }
	   .app-header .action-btn { margin-right: 8px; }
	   /* --- --- */

      .app-header .title {
          /* 告诉标题去占据第二列（也就是中间那列） */
          grid-column: 2;
          
          /* 其他样式保持不变，但不再需要 flex-grow */
          font-weight: 600;
          font-size: 17px;
          color: var(--primary-text);
          text-align: center;
          
          /* 同样可以加上防止文字溢出的样式 */
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
      }
	  .svg-icon { width: 24px; height: 24px; color: var(--accent-color); }
	  
        .page-content { flex: 1; overflow-y: auto; background-size: cover; background-position: center;position: relative; z-index: 1; min-height: 0; } 
		/* MODIFIED: Added background properties */

        /* --- 主屏幕 --- */
        #home-screen .page-content { padding: 40px 20px; }
        .app-list { list-style: none; padding: 0; margin: 0; }
        .app-list-item { display: flex; align-items: center; padding: 12px 20px; cursor: pointer; border-radius: 12px; margin-bottom: 12px; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
        .app-list-item .icon-bg { width: 48px; height: 48px; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-right: 16px; flex-shrink: 0; }
        .app-list-item .icon-bg .svg-icon { color: #fff; }
        .app-list-item .info .name { font-weight: 500; font-size: 16px; color: var(--primary-text); }
        .app-list-item .info .desc { font-size: 14px; color: var(--secondary-text); }
        .app-list-item .chevron .svg-icon { color: var(--secondary-text); width: 20px; height: 20px; }

