/* =========================================================
   POKEJI V45.7.15 · 灰线层级 + 桌面清爽化
   白底靠灰线撑出结构，线条分四级深浅：
   --ln-1 #f0f1f2  最浅，行与行之间的分隔
   --ln-2 #e4e6e8  常规，卡片与容器的边
   --ln-3 #d3d6d9  稍重，需要被看见的分组边界
   --ln-4 #bfc3c7  最重，输入框、选中态、当前项
   ========================================================= */

/* ============ 一、桌面清爽化：去掉装饰，只留图标与组件 ============ */

/* 时间、日期、品牌字、竖排小字，全部撤掉 */
#home .home-clockline{display:none!important}
#home .p12-home:before{display:none!important;content:none!important}
/* 顶部状态栏保留（那是系统信息，不是装饰），但压淡 */
#home .p12-statusbar{color:#9a9da2!important}
/* 灵动岛保留：它是硬件开孔 */

/* ============ 二、图标容器缩小，更像正常手机桌面 ============ */
/* 原本 min(62px,86%)，改成 min(54px,74%)：格子不变，只是图标本身小一圈 */
#home .home-app-icon{width:min(54px,74%)!important;border-radius:15px!important}
#home .home-app-label{font-size:9.5px!important;margin-top:1px}

/* ============ 三、Dock 图标：容器原本是深色方块 ============ */
/* 桌面图标是白玻璃，Dock 图标却是深色底，看起来像两套东西。统一成透明 */
#home .p12-dock .dock-icon{
 background:none!important;box-shadow:none!important;
 width:40px!important;height:40px!important}
#home .p12-dock .dock-icon svg{stroke:#23262b!important;width:23px;height:23px}

/* ============ 四、其余页面：灰线层级 ============ */
html[data-pokeji-theme] .view:not(#home) .header,
html[data-pokeji-theme] #chat .chat-head{
 border-bottom:1px solid var(--ln-3,#d3d6d9)!important}
html[data-pokeji-theme] #chat .composer{
 border-top:1px solid var(--ln-3,#d3d6d9)!important}

/* 卡片与分组：常规灰边 */
html[data-pokeji-theme] .view:not(#home) .row.card,
html[data-pokeji-theme] .view:not(#home) .card,
html[data-pokeji-theme] .view:not(#home) .section,
html[data-pokeji-theme] .view:not(#home) .group,
html[data-pokeji-theme] .view:not(#home) .data-panel,
html[data-pokeji-theme] .view:not(#home) .character-studio-hero{
 border:1px solid var(--ln-2,#e4e6e8)!important;border-radius:12px!important}

/* 行与行之间：最浅的分隔线 */
html[data-pokeji-theme] .view:not(#home) .setting,
html[data-pokeji-theme] .view:not(#home) .row:not(.card),
html[data-pokeji-theme] .view:not(#home) .meta-row{
 border-bottom:1px solid var(--ln-1,#f0f1f2)!important}
html[data-pokeji-theme] .view:not(#home) .setting:last-child,
html[data-pokeji-theme] .view:not(#home) .meta-row:last-child{border-bottom:0!important}

/* 输入框与按钮：最重的一级，要看得出可点 */
html[data-pokeji-theme] .view:not(#home) input,
html[data-pokeji-theme] .view:not(#home) textarea,
html[data-pokeji-theme] .view:not(#home) select,
html[data-pokeji-theme] .view:not(#home) .search,
html[data-pokeji-theme] .view:not(#home) .v453-safe-editor,
html[data-pokeji-theme] #modal:not(.phone-fullscreen) input,
html[data-pokeji-theme] #modal:not(.phone-fullscreen) textarea,
html[data-pokeji-theme] #modal:not(.phone-fullscreen) select{
 border:1px solid var(--ln-4,#bfc3c7)!important;border-radius:10px!important}
html[data-pokeji-theme] .view:not(#home) .icon-btn,
html[data-pokeji-theme] .view:not(#home) button:not(.primary):not(.danger),
html[data-pokeji-theme] #modal:not(.phone-fullscreen) button:not(.primary):not(.danger){
 border:1px solid var(--ln-3,#d3d6d9)!important;border-radius:10px!important}

/* 强调块：黑底白字，这是唯一的深色 */
html[data-pokeji-theme] .view:not(#home) button.primary,
html[data-pokeji-theme] .view:not(#home) .send,
html[data-pokeji-theme] #modal:not(.phone-fullscreen) button.primary{
 background:#1c1e22!important;color:#ffffff!important;border:0!important}
html[data-pokeji-theme] #chat .msg-group.me .bubble{
 background:#1c1e22!important;color:#ffffff!important;border:0!important}
html[data-pokeji-theme] #chat .msg-group.me .bubble *{color:#ffffff!important}
/* 对方气泡：白底灰边 */
html[data-pokeji-theme] #chat .msg-group:not(.me) .bubble{
 background:#ffffff!important;color:#141518!important;
 border:1px solid var(--ln-2,#e4e6e8)!important}
html[data-pokeji-theme] .view:not(#home) button.danger,
html[data-pokeji-theme] #modal:not(.phone-fullscreen) button.danger{
 background:#ffffff!important;color:#a03a32!important;
 border:1px solid var(--ln-3,#d3d6d9)!important}

/* 文字四级，保证清晰 */
html[data-pokeji-theme] .view:not(#home) b,
html[data-pokeji-theme] .view:not(#home) strong,
html[data-pokeji-theme] .view:not(#home) h1,
html[data-pokeji-theme] .view:not(#home) h2,
html[data-pokeji-theme] .view:not(#home) h3{color:#141518!important}
html[data-pokeji-theme] .view:not(#home) .muted{color:#6f7278!important}
html[data-pokeji-theme] .view:not(#home) small,
html[data-pokeji-theme] .view:not(#home) time,
html[data-pokeji-theme] .view:not(#home) .section-title{color:#9a9da2!important}

/* ============ 五、虚拟手机：同一套灰线 ============ */
#modal.phone-fullscreen .vphone-app-head,
#modal.phone-fullscreen .v455-phone-head{
 border-bottom:1px solid #d3d6d9!important}
#modal.phone-fullscreen .v455-phone-row,
#modal.phone-fullscreen .v455-thread-row,
#modal.phone-fullscreen .v455-sheet-list button,
#modal.phone-fullscreen .v455-settings-list button,
#modal.phone-fullscreen .v455-management-grid button{
 border-bottom:1px solid #f0f1f2!important}
#modal.phone-fullscreen .v455-thread-bubble,
#modal.phone-fullscreen .v454-thread-bubble{
 border:1px solid #e4e6e8!important}
#modal.phone-fullscreen input,
#modal.phone-fullscreen textarea,
#modal.phone-fullscreen select{border:1px solid #bfc3c7!important}
#modal.phone-fullscreen .v455-phone-toolbar,
#modal.phone-fullscreen .v455-phone-search{
 border-bottom:1px solid #d3d6d9!important}

/* ============ 六、去掉其他页面的装饰性英文大小写标签 ============ */
/* 这类 kicker 是纯装饰，白底上更显杂乱 */
html[data-pokeji-theme] .view:not(#home) .character-studio-hero small,
html[data-pokeji-theme] .view:not(#home) .data-hero small,
html[data-pokeji-theme] .view:not(#home) .memory-hero small{display:none!important}
