* { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; padding: 20px; min-height: 100vh; color: rgba(255, 255, 255, 0.9); } .page-container { max-width: 300px; margin: 0 auto; } .section { background: rgba(0, 0, 0, 0.5); border-radius: 16px; border: 2px solid rgba(0, 0, 0, 1); position: relative; display: flex; flex-direction: column; height: auto; /* 自动高度 */ max-height: 500px; min-height: 500px; /* 最大高度,超出滚动 */ padding: 20px 25px 0 25px; } .section#mainSection, .section#mapListSection, .section#mapSubListSection, .section#positionListSection, .section#friendListSection { display: none; } .section#mainSection.active, .section#mapListSection.active, .section#mapSubListSection.active, .section#positionListSection.active, .section#friendListSection.active { display: flex; } .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 15px; position: sticky; top: 0; padding-top: 10px; /* padding-bottom: 10px; */ z-index: 10; } .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; } .close-button { width: 30px; height: 30px; border-radius: 50%; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; color: rgba(255, 255, 255, 0.9); } .close-button i { font-size: 24px; } .close-button:hover { background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.9); } .back-button { width: 30px; height: 30px; border-radius: 50%; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; color: rgba(255, 255, 255, 0.9); } .back-button i { font-size: 24px; } .back-button:hover { background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.9); } h2 { margin: 0; font-size: 20px; font-weight: 600; background: linear-gradient(90deg, #fff, #e0e0e0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); flex: 1; text-align: center; } .container { max-height: 100%; min-height: 100%; overflow-y: auto; /* 隐藏滚动条 */ scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE and Edge */ padding-bottom: 25px; } .container::-webkit-scrollbar { display: none; } .button { background: rgba(0, 0, 0, 0.6); color: rgba(255, 255, 255, 0.9); border: none; border-radius: 14px; padding: 12px 24px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; margin-top: 15px; width: 100%; text-align: center; position: relative; overflow: hidden; } .button:hover { background: #000; transform: translateY(-1px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } .button:active { transform: translateY(2px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); background: #000; } #positionListTitle { max-width: 75%; /* 预留右侧返回按钮的空间 */ text-align: left; margin-right: auto; /* 确保标题靠左 */ padding-left: 10px; /* 左侧留一些空间 */ line-height: 1.2; /* 适当的行距 */ }