/* 震动效果 */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s;
}

/* 设置页面主体样式 */
body {
    background-color: #f5f5f7; /* 背景色 */
    color: #1d1d1f; /* 文字颜色 */
    margin: 0;
    /*margin: 25px 0 0 0; !* 去除默认边距 *!*/
    /*padding: 0; !* 去除默认填充 *!*/
    /*display: flex; !* 使用flex布局 *!*/
    /*flex-direction: column;*/
    /*justify-content: start; !* 水平居中 *!*/
    /*align-items: center; !* 垂直居中 *!*/
    /*height: 100vh; !* 设置高度为视口高度 *!*/
}

/* 容器样式 */
.container {
    width: 95%;
    background-color: #ffffff; /* 容器背景色 */
    padding: 15px 0; /* 内填充 */
    margin: 20px 10px;
    border-radius: 12px; /* 圆角 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 阴影效果 */
    text-align: center; /* 文字居中 */
}

/* 应用信息块样式 */
.app-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #ffffff; /* 背景色 */
    margin: 0 1px;
    border-radius: 12px; /* 圆角 */
    transition: box-shadow 0.3s; /* 过渡效果 */
    color: #1d1d1f; /* 文字颜色 */
}

/* 应用图标样式 */
.app-info img {
    width: 68px;
    height: 68px;
    border-radius: 8px; /* 圆角 */
}

/* 应用标题样式 */
.app-info .app-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.app-info .app-details h1 {
    font-size: 15px;
    /* 底部外边距 */
    margin: 0 0 10px;
    font-weight: 500;
}

/* 应用描述样式 */
.app-info .app-details p {
    font-size: 13px;
    color: #9e9e9e; /* 文字颜色 */
    margin: 5px 0; /* 上下外边距 */
}

/* 应用评分样式 */
.app-info .app-details .rating .star {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 5px 4px 0 0;
    background-color: #9e9e9e; /* 默认星星颜色 */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.app-info .app-details .rating .star.highlight {
    background-color: #ffcc00; /* 高亮星星颜色 */
}

/* 安装按钮样式 */
.app-info .install-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px; /* 顶部外边距 */
}

/* 安装按钮样式 */
.app-info .install-btn button {
    height: 40px;
    font-size: 16px;
    background-color: #2979ff; /* 按钮背景色 */
    color: #ffffff; /* 按钮文字颜色 */
    font-weight: bold; /* 字体加粗 */
    border-radius: 20px; /* 圆角 */
    border: none; /* 无边框 */
    padding: 0 30px; /* 内填充 */
    cursor: pointer; /* 光标样式 */
    transition: background-color 0.3s; /* 过渡效果 */
}

.app-info .install-btn button:hover {
    background-color: #005bb5; /* 悬停时背景色 */
}

.app-info .install-btn p {
    font-size: 13px;
    color: #9e9e9e;
}

/* 对话框样式 */
.dialog {
    display: none;
    background-color: #ffffff; /* 背景色 */
    color: #1d1d1f; /* 文字颜色 */
    padding: 20px; /* 内填充 */
    border-radius: 14px; /* 圆角 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 居中对齐 */
    z-index: 1000; /* 层级 */
    text-align: center; /* 文字居中 */
    max-width: 400px; /* 最大宽度 */
    width: calc(100% - 40px); /* 宽度，减去左右各20px边距 */
    box-sizing: border-box; /* 边框盒模型 */
}

/* 对话框标题样式 */
.dialog h4 {
    margin-bottom: 16px; /* 底部外边距 */
    font-size: 18px;
    font-weight: 600;
    color: #000000; /* 标题颜色 */
}

/* 输入框样式 */
.dialog input[type="text"] {
    width: 100%;
    padding: 12px; /* 内填充 */
    margin-bottom: 16px; /* 底部外边距 */
    border: 1px solid #d2d2d7; /* 边框样式 */
    border-radius: 8px; /* 圆角 */
    font-size: 16px;
    box-sizing: border-box; /* 边框盒模型 */
    outline: none; /* 去除默认外边框 */
    transition: border-color 0.2s; /* 过渡效果 */
}

.dialog input[type="text"]:focus {
    border-color: #2979ff; /* 焦点时边框颜色 */
}

/* 提交按钮样式 */
.dialog button {
    width: 100%;
    padding: 12px; /* 内填充 */
    background-color: #2979ff; /* 背景色 */
    color: #ffffff; /* 文字颜色 */
    font-size: 16px;
    border: none; /* 无边框 */
    border-radius: 8px; /* 圆角 */
    cursor: pointer; /* 光标样式 */
    transition: background-color 0.2s, transform 0.2s; /* 过渡效果 */
    font-weight: 600;
}

.dialog button:hover {
    background-color: #2979ff; /* 悬停时背景色 */
    transform: scale(1.02); /* 悬停时缩放效果 */
}

.dialog button:active {
    background-color: #2979ff; /* 点击时背景色 */
    transform: scale(0.98); /* 点击时缩放效果 */
}

/* 获取密码链接样式 */
.get-password-link {
    color: #000; /* 错误颜色 */
    text-align: center; /* 居中对齐 */
    margin: 0 0 15px 0; /* 顶部外边距 */
    font-size: 16px;
    font-weight: bold;
    padding: 8px 0;
    border-radius: 6px;
    background-color: #f5f5f5;
    letter-spacing: 1px;
}

/* 覆盖层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    z-index: 999; /* 层级 */
}
