/* @budding */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { background-color: #f5f5f5; display: flex; justify-content: center; align-items: center; height: 100vh; font-family: sans-serif; }
#phone-screen { width: 100%; max-width: 400px; height: 100%; background-color: #ffffff; display: flex; flex-direction: column; position: relative; overflow: hidden; }

/* 主屏幕组件保持不变 */
#status-bar { padding: 40px 20px 20px 20px; }
#clock { font-size: 54px; font-weight: 300; color: #333; letter-spacing: 2px; }
.main-content { flex: 1; display: flex; flex-direction: column; padding: 0 25px; gap: 35px; }
.block { display: flex; justify-content: space-between; align-items: center; height: 160px; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 15px; width: 48%; height: 100%; }
.app-item, .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.app-icon { width: 48px; height: 48px; background-color: #f0f0f0; border-radius: 14px; display: flex; justify-content: center; align-items: center; font-size: 18px; color: #888; }
.app-name { margin-top: 6px; font-size: 12px; color: #666; }

.custom-area { width: 48%; height: 100%; display: flex; }
.right-custom { flex-direction: column; justify-content: space-evenly; align-items: flex-start; padding-left: 10px; }
.custom-circle-item { display: flex; align-items: center; gap: 12px; width: 100%; }
.custom-img { background-color: #e8e8e8; object-fit: cover; cursor: pointer; }
.custom-img.circle { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; }
.left-custom { justify-content: center; align-items: center; }
.custom-img.square { width: 130px; height: 130px; border-radius: 20px; }

.custom-text { font-size: 15px; color: #555; outline: none; min-width: 50px; border-bottom: 1px dashed transparent; transition: border-color 0.3s; }
.custom-text:focus { border-bottom: 1px dashed #aaa; }

.bottom-nav { display: flex; justify-content: space-around; align-items: center; padding: 15px 20px 30px 20px; background-color: rgba(255, 255, 255, 0.95); }
.bottom-nav .app-icon { border-radius: 18px; background-color: #f2f2f2; }

/* ================= 布丁专属 APL 界面样式 ================= */
.app-screen {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #fff; z-index: 100;
    display: flex; flex-direction: column;
}
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 20px 15px; background-color: #f8f8f8; border-bottom: 1px solid #eee;
}
.back-btn { cursor: pointer; color: #555; font-size: 16px; }
.app-title { font-weight: bold; color: #333; font-size: 18px; }
.app-body { flex: 1; overflow-y: auto; padding: 20px; }

/* 表单和小部件 */
.form-group { margin-bottom: 15px; display: flex; flex-direction: column; }
.row-group { flex-direction: row; align-items: center; gap: 10px; }
.form-group label { font-size: 13px; color: #666; margin-bottom: 5px; }
.switch-label { font-size: 13px; color: #333; display: flex; align-items: center; gap: 6px; flex: 1; cursor: pointer;}
.form-group input[type="text"], .form-group input[type="password"], 
.form-group input[type="number"], .form-group textarea, .form-group select {
    padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; 
    outline: none; background: #fafafa; transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #aaa; background: #fff;}
.form-group input:disabled { background: #f0f0f0; color: #999; border-color: #eee; }

.btn { padding: 12px 15px; border: none; border-radius: 8px; background: #eee; color: #333; cursor: pointer; font-size: 14px; }
.primary-btn { background: #333; color: #fff; width: 100%; font-weight: bold; margin-top: 5px;}

.divider { border: none; border-top: 1px dashed #ddd; margin: 25px 0; }

/* 预设列表的样式 */
.preset-item { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 12px;
    background-color: #fafafa;
}
.preset-name { font-weight: bold; font-size: 15px; color: #333; margin-bottom: 4px; }
.preset-url { font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px;}
.preset-actions span { cursor: pointer; font-size: 14px; margin-left: 15px; padding: 4px 8px; border-radius: 4px; }
.action-apply { background-color: #e6f7ff; color: #1890ff; }
.action-del { background-color: #fff1f0; color: #f5222d; }
