/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体及背景色 */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* 浅灰色背景 */
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 设置整个页面的高度 */
}

header {
    background-color: #0052cc;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5em;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

header .login-btn {
    background-color: #fff;
    color: #0052cc;
    padding: 5px 10px;
    border-radius: 5px;
}

/* 内容区域布局 */
.content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-around; /* 左右内容间距 */
    padding: 1rem;
}

/* 左侧手机模块 */
.left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 1s ease-out; /* 出场动画 */
}

/* 手机模拟框样式 */
.phone-mockup {
    width: 200px;
    height: 400px;
    border: 4px solid #0046b8; /* 边框颜色 */
    border-radius: 20px; /* 圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* 阴影效果 */
    transform: rotate(-10deg); /* 左倾效果 */
    transition: transform 0.3s ease; /* 悬停变换的动画过渡 */
}

/* 手机模块悬停效果 */
.phone-mockup:hover {
    transform: rotate(-10deg) scale(1.05); /* 增加缩放效果 */
}

.phone-mockup img {
    width: 120%;
}

/* 右侧登录框 */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录框样式 */
.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* 阴影效果 */
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease; /* 悬停缩放过渡效果 */
}

/* 登录框悬停效果 */
.login-box:hover {
    transform: scale(1.05); /* 缩放效果 */
}

/* 登录框标题样式 */
.login-box h2 {
    color: #0046b8;
    margin-bottom: 1rem;
    font-size: 20px;
}

/* 登录表单布局 */
.login-box form {
    display: flex;
    flex-direction: column;
}

/* 输入框样式 */
.login-box input[type="text"],
.login-box input[type="password"] {
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 登录按钮样式 */
.login-box button {
    background-color: #0046b8;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* 登录按钮悬停效果 */
.login-box button:hover {
    background-color: #003290; /* 悬停变深色 */
}

/* 隐私条款文字样式 */
.login-box p {
    font-size: 12px;
    color: #666;
    margin-top: 1rem;
}

/* 页脚样式 */
footer {
    background-color: #0046b8;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 14px;
    position: fixed;       /* 固定位置 */
    left: 0;
    bottom: 0;             /* 固定在页面底部 */
    width: 100%;           /* 宽度占满全屏 */
    z-index: 9999;         /* 确保页脚位于最上层 */
}

/* 左侧手机模块出场动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px) ; /* 从左侧滑入，带倾斜 */
    }
    to {
        opacity: 1;
        transform: translateX(0px); /* 定位到最终位置 */
    }
}
