/* 全局重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    display: block;
}

/* 强行控制移动端竖屏容器居中 */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.header-title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-title p {
    font-size: 14px;
    color: #86868b;
}

/* 首页用户选择列表 */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.user-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    background-color: #f5f5f7;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    transition: background-color 0.2s;
}

.user-btn.dm-btn {
    background-color: #e3f2fd;
    color: #0d47a1;
}

/* --- PIN码登录界面专用样式 --- */
.pin-dots-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border: 1.5px solid #86868b;
    border-radius: 50%;
    transition: background-color 0.1s;
}

.pin-dot.filled {
    background-color: #1d1d1f;
    border-color: #1d1d1f;
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: auto auto 40px auto;
    width: 100%;
    max-width: 280px;
}

.pin-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background-color: #f5f5f7;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.pin-btn:active {
    background-color: #e8e8ed;
}

.pin-btn.text-btn {
    background-color: transparent;
    font-size: 14px;
}

.pin-btn.text-btn:active {
    background-color: transparent;
    opacity: 0.6;
}