/* ===== 通用 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: #3e3e3e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-image: url('./a.jpg');
    background-size: cover;
    -webkit-text-size-adjust: 100%;
    font-family: Arial, sans-serif;
}

/* ===== 容器 ===== */
.content, .appleid-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 700px;
    width: 100%;
    margin: 5% auto;
    padding: 0 10px;
}

/* ===== 标题 & 文本 ===== */
h2 {
    font-size: 1.2em;
    margin: 0 0 6px 0;
}
a {
    color: #f1a3b0;
    text-decoration: none;
}
ul {
    font-size: 13px;
    list-style-type: disc;
    margin: 0;
    padding-inline-start: 25px;
}
li {
    line-height: 1.3rem;
}
.AnnouncementList h3 {
    margin: 5px 0 0 0;
    font-size: 15px;
}

/* ===== 内容块 ===== */
.content-block {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 5px 5px 20px 8px rgba(199,199,199,0.1);
}

/* ===== 提示信息 ===== */
.tip {
    padding: 8px 12px;
    border-radius: 10px;
    color: #333;
    background-color: #f2f8fc;
    font-size: 13px;
    margin-bottom: 10px;
}
.ColorWarning {
    display: inline-block;
    font-size: 14px;
    background-color: #fff0ae;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
}

/* ===== 输入框 & 按钮 ===== */
.enter input,
.enter button {
    font-size: 16px;
    border-radius: 8px;
    padding: 10px;
    vertical-align: middle;
    border: 1.5px solid #f4f4f4;
    appearance: none;
}
.enter button {
    cursor: pointer;
    background-color: #3e3e3e;
    color: #fff;
}

/* ===== 用户信息 ===== */
.user {
    font-size: 13px;
    display: flex;
    align-items: center;
    width: 100%;
}
.logout-button {
    color: #ffffff;
    background-color: #3e3e3e;
    font-weight: bold;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* ===== AppleID账号密码 ===== */
.appleid-Account, .appleid-Password {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px dashed #efefef;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}
.appleid-Account span, .appleid-Password span {
    white-space: nowrap;
}
.appleid-Account button,
.appleid-Password button {
    margin-left: 10px;
    font-size: 14px;
    padding: 4px 10px;
    cursor: pointer;
}

/* ===== nationLabel按钮 ===== */
.nationLabel {
    display: inline-block;
    color: #fff;
    background-color: #28d094;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 10px;
    text-align: center;
    border: none;
}
.nationLabel:hover {
    background-color: #43ecaf;
}

/* ===== 文档链接 ===== */
.DocumentLink {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
}
.DocumentLink a {
    font-weight: bold;
    display: block;
    font-size: 14px;
    padding: 10px 12px;
    background: linear-gradient(146deg, #ebcc85, #e7b8c4);
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0px 0px 10px 5px rgba(199,199,199,0.1);
}
.DocumentLink a:hover {
    background: linear-gradient(146deg, #28d094, #43ecaf);
}

/* ===== 第一个 HTML 页面提示块（图片左、文字右） ===== */
.content .projection.icon-tip {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.content .projection.icon-tip img {
    width: 60px;
    margin-right: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.content .projection.icon-tip div {
    flex: 1;
}

/* ===== 提取码错误标题（红色） ===== */
.appleid-content .content-block.projection .error-message .error-title {
    color: red !important;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    display: block; /* 确保块元素 */
}

/* ===== 提取码错误列表样式 ===== */
.content-block.projection .error-message ul {
    padding-left: 20px;
    margin: 0;
    color: #3e3e3e;
}
.content-block.projection .error-message li {
    line-height: 1.4rem;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {

    /* 手机端内容上下边距优化 */
    .content {
        width: 100%;
        max-width: 700px;
        padding: 0 10px;
        margin: 5% auto;
        min-height: calc(100vh - 40px);
        box-sizing: border-box;
    }

    /* 第二个 HTML 页面用户信息布局保持原样 */
    .appleid-content .user {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .appleid-content .user .title-icon {
        flex-shrink: 0;
        margin-right: 10px;
        margin-bottom: 0;
    }
    .appleid-content .user .CodeInformation {
        flex: 1;
    }
    .appleid-content .user .logout-button {
        width: 100%;
        margin-top: 6px;
    }

    /* 文档链接手机端改两列显示 */
    .DocumentLink {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
