/* Hearth 桌面样式:侧边栏 + 5 页框架 + 柔光玻璃容器 */ /* Hearth launcher styles: sidebar + 5-page frame + soft-glass containers */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; } /* 壁纸透明:html/body 不设背景,露出原生壁纸 */ /* Wallpaper transparency: html/body keep transparent to reveal native wallpaper */ html, body { background: transparent; } body { color: var(--text); font-family: -apple-system, "MiSans", "PingFang SC", sans-serif; overflow: hidden; } .app { display: flex; height: 100vh; } /* 侧边栏:柔光玻璃容器,非纯色背景 */ /* Sidebar: soft-glass container, not a solid color */ .rail { width: 80px; background: var(--glass-bg); backdrop-filter: blur(20px) saturate(1.2) brightness(1.05) contrast(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.2) brightness(1.05) contrast(1.1); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 8px; transition: width .2s; } .rail.expanded { width: 240px; align-items: stretch; padding: 12px 8px; } .rail-clock { font-size: 14px; color: var(--text-dim); display: none; } .rail-item { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: var(--text-dim); padding: 8px; border-radius: 16px; cursor: pointer; } .rail-item .ico { font-size: 20px; } .rail-item .lbl { font-size: 11px; } .rail-item.active { background: var(--accent); color: #fff; } .content { flex: 1; overflow: hidden; } .page { display: none; height: 100%; } .page.active { display: flex; flex-direction: column; } /* 首页三栏布局:三等分纵向列,卡片向下堆叠 */ /* Home three-column layout: three equal vertical columns, cards stack downward */ .tri-col { flex: 1; min-height: 0; display: flex; gap: 16px; padding: 16px; } .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; } /* 卡片:柔光玻璃拟态(复用 Task 4 token,非纯色背景) */ /* Card: soft-glass morphism (reuse Task 4 tokens, not a solid color) */ .card { background: var(--glass-bg); backdrop-filter: blur(20px) saturate(1.2) brightness(1.05) contrast(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.2) brightness(1.05) contrast(1.1); border: 1px solid var(--glass-border); border-radius: 14px; padding: 20px; color: var(--text); } /* 大字时间卡:主时间大字 + 日期副行 */ /* Big time card: large clock + date subtitle */ .time-card .big { font-size: 56px; font-weight: 300; line-height: 1; } .time-card .sub { margin-top: 8px; font-size: 14px; color: var(--text-dim); } /* 安卓 APP 列表页:搜索框 + 网格 */ /* Android app list page: search box + grid */ .search { padding: 16px; } .search input { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text); font-size: 14px; outline: none; } .grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; padding: 0 16px 16px; } .cell { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 12px 8px; cursor: pointer; color: var(--text); } .cell .ic { width: 48px; height: 48px; border-radius: 12px; } .cell .lbl { font-size: 12px; color: var(--text-dim); text-align: center; } /* H5 应用列表页:富卡片 + 在线/离线标签 */ /* H5 web app list page: rich cards + online/offline badge */ .wcell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 12px 8px; cursor: pointer; color: var(--text); } .wcell .ic { width: 48px; height: 48px; border-radius: 12px; } .wcell .lbl { font-size: 12px; color: var(--text-dim); text-align: center; } .wcell .tag { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 2px 6px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-dim); } /* webAPP 顶栏:浮层玻璃条 + 标签面板 */ /* webapp topbar: floating glass bar + tab panel */ #web-topbar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--glass-bg); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border: 1px solid var(--glass-border); z-index: 100; } #web-topbar button { width: 30px; height: 30px; border: none; border-radius: 999px; background: none; color: var(--text); font-size: 16px; cursor: pointer; } #web-topbar button:active { background: var(--glass-border); } #web-topbar #tb-tabs { width: auto; padding: 0 12px; font-size: 13px; color: var(--text-dim); } #web-topbar .tb-title { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text); } #tab-panel { position: fixed; top: 56px; right: 16px; display: none; min-width: 180px; max-width: 260px; padding: 8px; border-radius: 16px; background: var(--glass-bg); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border: 1px solid var(--glass-border); z-index: 100; } #tab-panel .tab-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; } #tab-panel .tab-row.active { background: var(--accent); color: #fff; } #tab-panel .tab-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; } #tab-panel .tab-close { border: none; background: none; color: inherit; font-size: 16px; cursor: pointer; opacity: 0.7; } #tab-panel .tab-close:hover { opacity: 1; }