* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #87CEEB; /* 天蓝色背景 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem; /* 预留边框空间 */
    user-select: none; /* 禁止页面文字选中 */
}
/* 旋转线条边框容器 */
.border-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px; /* 边框厚度 */
    pointer-events: none; /* 不影响内部内容交互 */
}
/* 四条旋转线条 */
.border-line {
    position: absolute;
    background-color: #fff;
    animation: rotate 10s linear infinite; /* 旋转动画 */
}
.top { top: 0; left: 0; width: 100%; height: 2px; }
.right { top: 0; right: 0; height: 100%; width: 2px; }
.bottom { bottom: 0; left: 0; width: 100%; height: 2px; }
.left { top: 0; left: 0; height: 100%; width: 2px; }
/* 旋转动画关键帧 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* 主文字样式 */
.hello-text {
    font-size: 3rem;
    color: #fff; /* 白色文字 */
    font-weight: bold;
    text-align: center;
    pointer-events: none; /* 不接收事件，让覆盖层处理 */
}
/* 透明覆盖层（全屏覆盖，接收所有点击/长按事件） */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10; /* 确保在文字和边框之上 */
}
/* 长按菜单样式 */
.context-menu {
    position: absolute;
    width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 8px 0;
    display: none; /* 默认隐藏 */
    z-index: 100; /* 确保在最上层 */
}
.context-menu-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.context-menu-item:hover {
    background: #f5f5f5;
}
.context-menu-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}
/* 响应式文字大小 */
@media (max-width: 768px) {
    .hello-text {
        font-size: 2rem;
    }
}

