/* 公共样式 - 上门按摩APP原型 */
* { font-family: 'Noto Sans SC', sans-serif; }

.phone-frame {
    width: 375px;
    height: 812px;
    border-radius: 40px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    border: 12px solid #1a1a1a;
}

.phone-frame-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #f3f4f6;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-around;
    z-index: 100;
}

.notch { 
    width: 150px; 
    height: 30px; 
    background: #000; 
    border-radius: 0 0 20px 20px; 
    position: absolute; 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 100; 
}

.screen { 
    height: 100%; 
    overflow-y: auto; 
    overflow-x: hidden; 
    background: #f8fafc; 
}

.screen::-webkit-scrollbar { 
    width: 0; 
}

.gradient-primary { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}

.gradient-secondary { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}

.gradient-green { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); 
}

.card-shadow { 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}

.btn-primary { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    transition: all 0.3s ease; 
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(102,126,234,0.4); 
}

.card-hover { 
    transition: all 0.3s ease; 
}

.card-hover:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); 
}

.fade-in { 
    animation: fadeIn 0.3s ease; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.toast { 
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s; 
}

@keyframes toastIn { 
    from { opacity: 0; transform: translateY(100px) scale(0.9); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(100px) scale(0.9); }
}

/* 底部导航栏固定定位 */
.bottom-nav-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #f3f4f6;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

/* 屏幕内容容器，为底部导航栏预留空间 */
.screen-content {
    padding-bottom: 4rem;
}

/* Toast 提示容器样式 */
#toast-container {
    position: absolute;
    bottom: 70px;
    left: 15px;
    right: 15px;
    z-index: 150;
}

/* Toast 提示项样式 */
.toast {
    width: 100%;
    max-width: none;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.4;
    box-sizing: border-box;
}

.toast span {
    overflow: hidden;
}

/* 支付弹窗样式 */
.payment-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: flex-end;
}

.payment-modal-content {
    background: white;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-height: 80%;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 充值页面的支付选项 */
.payment-option {
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:active {
    transform: scale(0.98);
}
