/* --- 弹窗遮罩层 (对应 Tailwind: fixed inset-0 z-50 ... bg-black/70) --- */
.modal-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7); /* bg-black/70 */
    backdrop-filter: blur(4px); /* backdrop-blur-sm */
    -webkit-backdrop-filter: blur(4px);
    
    /* Flex 居中 */
    align-items: center;
    justify-content: center;
    padding: 16px; /* p-4 */
    
    /* 简单的淡入动画 */
    animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- 弹窗主体 (对应 Tailwind: w-full max-w-[320px] bg-[#28282b] ...) --- */
.modal-container {
    width: 100%;
    max-width: 320px;
    background-color: #28282b; /* bg-[#28282b] */
    border-radius: 16px; /* rounded-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* shadow-2xl */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05); /* border border-white/5 */
    
    /* 防止点击弹窗内部时关闭弹窗 (如果需要点击背景关闭的话) */
    /* 在本题中，点击任意位置弹出，通常意味着它是一个强制模态框，或者点击背景不关闭 */
}

/* --- 内容区域 --- */
.modal-content {
    padding: 24px; /* p-6 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- 标题 --- */
.modal-title {
    font-size: 0.32rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: #ffffff; /* text-white */
    margin-bottom: 16px; /* mb-4 */
    letter-spacing: 0.025em; /* tracking-wide */
}

/* --- 提示文本 --- */
.modal-text {
    font-size: 0.26rem; /* text-base */
    color: #d1d5db; /* text-gray-300 */
    margin-bottom: 32px; /* mb-8 */
    line-height: 1.5; /* leading-relaxed */
}

/* --- 按钮组 --- */
.button-group {
    display: flex;
    width: 100%;
    gap: 16px; /* gap-4 */
}

/* --- 通用按钮样式 --- */
.btn {
    flex: 1; /* flex-1 */
    padding: 12px 16px; /* py-3 px-4 */
    border-radius: 12px; /* rounded-xl */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s duration;
    border: none;
    outline: none;
    font-size: 0.26rem;
}

/* --- 左侧按钮：暂不登录 --- */
.btn-cancel {
    background-color: #3f3f46; /* bg-[#3f3f46] */
    color: #d1d5db; /* text-gray-300 */
}

.btn-cancel:hover {
    background-color: #52525b; /* hover:bg-[#52525b] */
}

.btn-cancel:active {
    background-color: #2d2d32;
}

/* --- 右侧按钮：立即登录 (金色渐变) --- */
.btn-login {
    /* bg-gradient-to-b from-[#e6c97a] to-[#cfa045] */
    background: linear-gradient(to bottom, #e6c97a, #cfa045);
    color: #ffffff; /* text-white */
    font-weight: 700; /* font-bold */
    box-shadow: 0 10px 15px -3px rgba(146, 64, 14, 0.2); /* shadow-lg shadow-yellow-900/20 */
}

.btn-login:hover {
    /* hover:from-[#ebd48c] hover:to-[#dbb050] */
    background: linear-gradient(to bottom, #ebd48c, #dbb050);
}

.btn-login:active {
    transform: scale(0.95); /* active:scale-95 */
}

/* 模拟页面内容样式 */
.page-content h1 { margin-bottom: 20px; color: #333; }
.card { background: white; padding: 20px; margin-bottom: 10px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }