/* @🍮 */
:root {
    --bg-color: #f2f2f6;
    --card-bg: #ffffff;
    --text-main: #000000;
    --text-sub: #8e8e93;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* 防止内容溢出屏幕 */
}

.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 20px;
}

.screen.active {
    display: flex;
}

/* 隐藏 contenteditable 的默认轮廓线 */
[contenteditable="true"] {
    outline: none;
}

/* 顶部个人卡片 */
.widget-top-card {
    background: var(--card-bg);
    border-radius: 20px;
    margin-top: 40px; /* 为突破边界的头像留出空间 */
    position: relative;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    position: absolute;
    top: -30px; /* 头像一半在外面 */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    padding: 2px; /* 白底圆形边框 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.nickname {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 4px;
}

.sub-id, .signature, .location-text {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.location-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-location {
    width: 12px;
    height: 12px;
}

/* 预留组件和 Dock 样式... 后续步骤细化 */
.widget-middle-container {
    display: flex;
    margin-top: 20px;
    gap: 15px;
    height: 150px;
}
.widget-left-text, .widget-right-polaroid {
    background: var(--card-bg);
    border-radius: 16px;
    flex: 1;
}
.dock {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    background: #fff;
    padding: 15px;
    border-radius: 20px;
}
